RISC-V: Make stack_save_restore tests more robust
[official-gcc.git] / gcc / configure
blob07e8a64afbbde574835b6e6b5dabd16d452ebe13
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 d_target_objs
649 fortran_target_objs
650 cxx_target_objs
651 c_target_objs
652 use_gcc_stdint
653 xm_defines
654 xm_include_list
655 xm_file_list
656 tm_d_include_list
657 tm_d_file_list
658 tm_p_include_list
659 tm_p_file_list
660 tm_defines
661 tm_include_list
662 tm_file_list
663 common_out_object_file
664 common_out_file
665 out_object_file
666 out_file
667 objc_boehm_gc
668 md_file
669 local_prefix
670 lang_tree_files
671 lang_specs_files
672 lang_opt_files
673 install
674 out_host_hook_obj
675 host_xm_defines
676 host_xm_include_list
677 host_xm_file_list
678 host_exeext
679 gcc_gxx_libcxx_include_dir_add_sysroot
680 gcc_gxx_libcxx_include_dir
681 gcc_gxx_include_dir_add_sysroot
682 gcc_gxx_include_dir
683 gcc_config_arguments
684 float_h_file
685 extra_programs
686 extra_objs
687 extra_headers_list
688 user_headers_inc_next_post
689 user_headers_inc_next_pre
690 extra_gcc_objs
691 TM_MULTILIB_EXCEPTIONS_CONFIG
692 TM_MULTILIB_CONFIG
693 TM_ENDIAN_CONFIG
694 tmake_file
695 xmake_file
696 cpp_install_dir
697 selftest_languages
698 check_languages
699 build_file_translate
700 build_xm_defines
701 build_xm_include_list
702 build_xm_file_list
703 build_install_headers_dir
704 build_exeext
705 all_selected_languages
706 all_languages
707 all_lang_makefrags
708 all_lang_configurefrags
709 all_gtfiles
710 all_compilers
711 srcdir
712 subdirs
713 dollar
714 gcc_tooldir
715 enable_lto
716 DO_LINK_SERIALIZATION
717 DO_LINK_MUTEX
718 CSCOPE
719 ETAGS
720 CTAGS
721 MAINT
722 zlibinc
723 zlibdir
724 HOST_LIBS
725 enable_default_ssp
726 thin_archive_support
727 ld_soname_option
728 ld_version_script_option
729 libgcc_visibility
730 ORIGINAL_DSYMUTIL_FOR_TARGET
731 gcc_cv_dsymutil
732 gcc_cv_otool
733 gcc_cv_readelf
734 gcc_cv_objdump
735 ORIGINAL_NM_FOR_TARGET
736 gcc_cv_nm
737 ORIGINAL_LD_GOLD_FOR_TARGET
738 ORIGINAL_LD_BFD_FOR_TARGET
739 ORIGINAL_LD_FOR_TARGET
740 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 gcc_cv_ld
742 ORIGINAL_AS_FOR_TARGET
743 gcc_cv_as
744 enable_fast_install
745 objdir
746 OTOOL64
747 OTOOL
748 LIPO
749 NMEDIT
750 DSYMUTIL
751 STRIP
752 OBJDUMP
753 ac_ct_DUMPBIN
754 DUMPBIN
756 FGREP
758 LIBTOOL
759 collect2
760 STMP_FIXINC
761 BUILD_LDFLAGS
762 BUILD_CXXFLAGS
763 BUILD_CFLAGS
764 CXX_FOR_BUILD
765 CC_FOR_BUILD
766 inhibit_libc
767 BUILD_SYSTEM_HEADER_DIR
768 SYSTEM_HEADER_DIR
770 CROSS
771 CATOBJEXT
772 GENCAT
773 INSTOBJEXT
774 DATADIRNAME
775 CATALOGS
776 POSUB
777 GMSGFMT
778 XGETTEXT
779 INCINTL
780 LIBINTL_DEP
781 LIBINTL
782 USE_NLS
783 get_gcc_base_ver
784 HAVE_AUTO_BUILD
785 extra_opt_files
786 extra_modes_file
787 NATIVE_SYSTEM_HEADER_DIR
788 objext
789 manext
790 LIBICONV_DEP
791 LTLIBICONV
792 LIBICONV
793 ZSTD_LDFLAGS
794 ZSTD_CPPFLAGS
795 ZSTD_LIB
796 ZSTD_INCLUDE
797 DL_LIB
798 LDEXP_LIB
799 NETLIBS
800 EXTRA_GCC_LIBS
801 GNAT_LIBEXC
802 COLLECT2_LIBS
803 CXXDEPMODE
804 DEPDIR
805 am__leading_dot
806 doc_build_sys
809 HAVE_PYTHON
810 PYTHON
811 BISON
812 FLEX
813 GENERATED_MANPAGES
814 MAKEINFO_TOC_INLINE_FLAG
815 BUILD_INFO
816 MAKEINFO
817 have_mktemp_command
818 make_compare_target
819 INSTALL_DATA
820 INSTALL_PROGRAM
821 INSTALL
822 ranlib_flags
823 RANLIB
825 LN_S
827 SET_MAKE
828 omp_device_property_deps
829 omp_device_properties
830 accel_dir_suffix
831 real_target_noncanonical
832 enable_as_accelerator
833 gnat_install_lib
834 REPORT_BUGS_TEXI
835 REPORT_BUGS_TO
836 PKGVERSION
837 CONFIGURE_SPECS
838 enable_gcov
839 enable_shared
840 enable_fixed_point
841 enable_decimal_float
842 DEFAULT_MATCHPD_PARTITIONS
843 with_float
844 with_cpu
845 enable_multiarch
846 enable_multilib
847 coverage_flags
848 valgrind_command
849 valgrind_path_defines
850 valgrind_path
851 TREECHECKING
852 nocommon_flag
853 noexception_flags
854 warn_cxxflags
855 warn_cflags
856 c_strict_warn
857 strict_warn
858 c_loose_warn
859 loose_warn
860 aliasing_flags
862 EGREP
863 GREP
864 CXXCPP
865 PICFLAG_FOR_TARGET
866 GDCFLAGS
868 GNATMAKE
869 GNATBIND
870 ac_ct_CXX
871 CXXFLAGS
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
880 GENINSRC
881 CROSS_SYSTEM_HEADER_DIR
882 TARGET_SYSTEM_ROOT_DEFINE
883 TARGET_SYSTEM_ROOT
884 SYSROOT_CFLAGS_FOR_TARGET
885 target_subdir
886 host_subdir
887 build_subdir
888 build_libsubdir
889 target_noncanonical
890 host_noncanonical
891 target_os
892 target_vendor
893 target_cpu
894 target
895 host_os
896 host_vendor
897 host_cpu
898 host
899 build_os
900 build_vendor
901 build_cpu
902 build
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files='option_includes
942 language_hooks'
943 ac_user_opts='
944 enable_option_checking
945 with_build_libsubdir
946 with_local_prefix
947 with_native_system_header_dir
948 with_build_sysroot
949 with_sysroot
950 with_gxx_include_dir
951 with_gxx_libcxx_include_dir
952 with_cpp_install_dir
953 enable_generated_files_in_srcdir
954 with_gnu_ld
955 with_ld
956 with_demangler_in_ld
957 with_dsymutil
958 with_gnu_as
959 with_as
960 enable_largefile
961 enable_build_format_warnings
962 enable_werror_always
963 enable_checking
964 enable_coverage
965 enable_gather_detailed_mem_stats
966 enable_valgrind_annotations
967 enable_multilib
968 enable_multiarch
969 with_stack_clash_protection_guard_size
970 with_matchpd_partitions
971 enable___cxa_atexit
972 enable_decimal_float
973 enable_fixed_point
974 enable_threads
975 enable_tls
976 enable_vtable_verify
977 enable_analyzer
978 enable_objc_gc
979 with_dwarf2
980 enable_shared
981 enable_gcov
982 with_specs
983 with_pkgversion
984 with_bugurl
985 with_documentation_root_url
986 with_changes_root_url
987 enable_languages
988 with_multilib_list
989 with_multilib_generator
990 with_zstd
991 with_zstd_include
992 with_zstd_lib
993 enable_rpath
994 with_libiconv_prefix
995 with_libiconv_type
996 enable_sjlj_exceptions
997 with_gcc_major_version_only
998 enable_secureplt
999 enable_mingw_wildcard
1000 enable_large_address_aware
1001 enable_leading_mingw64_underscores
1002 enable_cld
1003 enable_frame_pointer
1004 enable_win32_registry
1005 enable_static
1006 with_pic
1007 enable_fast_install
1008 enable_libtool_lock
1009 enable_ld
1010 enable_gold
1011 with_plugin_ld
1012 enable_gnu_indirect_function
1013 enable_initfini_array
1014 enable_comdat
1015 enable_newlib_nano_formatted_io
1016 enable_standard_branch_protection
1017 enable_fix_cortex_a53_835769
1018 enable_fix_cortex_a53_843419
1019 with_glibc_version
1020 enable_gnu_unique_object
1021 enable_linker_build_id
1022 enable_libssp
1023 enable_default_ssp
1024 with_long_double_128
1025 with_long_double_format
1026 with_gc
1027 with_system_zlib
1028 enable_maintainer_mode
1029 enable_link_mutex
1030 enable_link_serialization
1031 enable_version_specific_runtime_libs
1032 enable_plugin
1033 enable_host_shared
1034 enable_host_pie
1035 enable_host_bind_now
1036 enable_libquadmath_support
1037 with_linker_hash_style
1038 with_diagnostics_color
1039 with_diagnostics_urls
1040 enable_default_pie
1041 enable_cet
1042 enable_s390_excess_float_precision
1044 ac_precious_vars='build_alias
1045 host_alias
1046 target_alias
1048 CFLAGS
1049 LDFLAGS
1050 LIBS
1051 CPPFLAGS
1053 CXXFLAGS
1055 CXXCPP
1057 GMPLIBS
1058 GMPINC
1059 ISLLIBS
1060 ISLINC'
1063 # Initialize some variables set by options.
1064 ac_init_help=
1065 ac_init_version=false
1066 ac_unrecognized_opts=
1067 ac_unrecognized_sep=
1068 # The variables have the same names as the options, with
1069 # dashes changed to underlines.
1070 cache_file=/dev/null
1071 exec_prefix=NONE
1072 no_create=
1073 no_recursion=
1074 prefix=NONE
1075 program_prefix=NONE
1076 program_suffix=NONE
1077 program_transform_name=s,x,x,
1078 silent=
1079 site=
1080 srcdir=
1081 verbose=
1082 x_includes=NONE
1083 x_libraries=NONE
1085 # Installation directory options.
1086 # These are left unexpanded so users can "make install exec_prefix=/foo"
1087 # and all the variables that are supposed to be based on exec_prefix
1088 # by default will actually change.
1089 # Use braces instead of parens because sh, perl, etc. also accept them.
1090 # (The list follows the same order as the GNU Coding Standards.)
1091 bindir='${exec_prefix}/bin'
1092 sbindir='${exec_prefix}/sbin'
1093 libexecdir='${exec_prefix}/libexec'
1094 datarootdir='${prefix}/share'
1095 datadir='${datarootdir}'
1096 sysconfdir='${prefix}/etc'
1097 sharedstatedir='${prefix}/com'
1098 localstatedir='${prefix}/var'
1099 includedir='${prefix}/include'
1100 oldincludedir='/usr/include'
1101 docdir='${datarootdir}/doc/${PACKAGE}'
1102 infodir='${datarootdir}/info'
1103 htmldir='${docdir}'
1104 dvidir='${docdir}'
1105 pdfdir='${docdir}'
1106 psdir='${docdir}'
1107 libdir='${exec_prefix}/lib'
1108 localedir='${datarootdir}/locale'
1109 mandir='${datarootdir}/man'
1111 ac_prev=
1112 ac_dashdash=
1113 for ac_option
1115 # If the previous option needs an argument, assign it.
1116 if test -n "$ac_prev"; then
1117 eval $ac_prev=\$ac_option
1118 ac_prev=
1119 continue
1122 case $ac_option in
1123 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1124 *=) ac_optarg= ;;
1125 *) ac_optarg=yes ;;
1126 esac
1128 # Accept the important Cygnus configure options, so we can diagnose typos.
1130 case $ac_dashdash$ac_option in
1132 ac_dashdash=yes ;;
1134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1135 ac_prev=bindir ;;
1136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1137 bindir=$ac_optarg ;;
1139 -build | --build | --buil | --bui | --bu)
1140 ac_prev=build_alias ;;
1141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1142 build_alias=$ac_optarg ;;
1144 -cache-file | --cache-file | --cache-fil | --cache-fi \
1145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1146 ac_prev=cache_file ;;
1147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1149 cache_file=$ac_optarg ;;
1151 --config-cache | -C)
1152 cache_file=config.cache ;;
1154 -datadir | --datadir | --datadi | --datad)
1155 ac_prev=datadir ;;
1156 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1157 datadir=$ac_optarg ;;
1159 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1160 | --dataroo | --dataro | --datar)
1161 ac_prev=datarootdir ;;
1162 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1163 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1164 datarootdir=$ac_optarg ;;
1166 -disable-* | --disable-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid feature name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "enable_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval enable_$ac_useropt=no ;;
1182 -docdir | --docdir | --docdi | --doc | --do)
1183 ac_prev=docdir ;;
1184 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1185 docdir=$ac_optarg ;;
1187 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1188 ac_prev=dvidir ;;
1189 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1190 dvidir=$ac_optarg ;;
1192 -enable-* | --enable-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid feature name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "enable_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval enable_$ac_useropt=\$ac_optarg ;;
1208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1210 | --exec | --exe | --ex)
1211 ac_prev=exec_prefix ;;
1212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1214 | --exec=* | --exe=* | --ex=*)
1215 exec_prefix=$ac_optarg ;;
1217 -gas | --gas | --ga | --g)
1218 # Obsolete; use --with-gas.
1219 with_gas=yes ;;
1221 -help | --help | --hel | --he | -h)
1222 ac_init_help=long ;;
1223 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1224 ac_init_help=recursive ;;
1225 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1226 ac_init_help=short ;;
1228 -host | --host | --hos | --ho)
1229 ac_prev=host_alias ;;
1230 -host=* | --host=* | --hos=* | --ho=*)
1231 host_alias=$ac_optarg ;;
1233 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1234 ac_prev=htmldir ;;
1235 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1236 | --ht=*)
1237 htmldir=$ac_optarg ;;
1239 -includedir | --includedir | --includedi | --included | --include \
1240 | --includ | --inclu | --incl | --inc)
1241 ac_prev=includedir ;;
1242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1243 | --includ=* | --inclu=* | --incl=* | --inc=*)
1244 includedir=$ac_optarg ;;
1246 -infodir | --infodir | --infodi | --infod | --info | --inf)
1247 ac_prev=infodir ;;
1248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1249 infodir=$ac_optarg ;;
1251 -libdir | --libdir | --libdi | --libd)
1252 ac_prev=libdir ;;
1253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1254 libdir=$ac_optarg ;;
1256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1257 | --libexe | --libex | --libe)
1258 ac_prev=libexecdir ;;
1259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1260 | --libexe=* | --libex=* | --libe=*)
1261 libexecdir=$ac_optarg ;;
1263 -localedir | --localedir | --localedi | --localed | --locale)
1264 ac_prev=localedir ;;
1265 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1266 localedir=$ac_optarg ;;
1268 -localstatedir | --localstatedir | --localstatedi | --localstated \
1269 | --localstate | --localstat | --localsta | --localst | --locals)
1270 ac_prev=localstatedir ;;
1271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1272 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1273 localstatedir=$ac_optarg ;;
1275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1276 ac_prev=mandir ;;
1277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1278 mandir=$ac_optarg ;;
1280 -nfp | --nfp | --nf)
1281 # Obsolete; use --without-fp.
1282 with_fp=no ;;
1284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1285 | --no-cr | --no-c | -n)
1286 no_create=yes ;;
1288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1290 no_recursion=yes ;;
1292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1294 | --oldin | --oldi | --old | --ol | --o)
1295 ac_prev=oldincludedir ;;
1296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1299 oldincludedir=$ac_optarg ;;
1301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1302 ac_prev=prefix ;;
1303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1304 prefix=$ac_optarg ;;
1306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1307 | --program-pre | --program-pr | --program-p)
1308 ac_prev=program_prefix ;;
1309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1311 program_prefix=$ac_optarg ;;
1313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1314 | --program-suf | --program-su | --program-s)
1315 ac_prev=program_suffix ;;
1316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1318 program_suffix=$ac_optarg ;;
1320 -program-transform-name | --program-transform-name \
1321 | --program-transform-nam | --program-transform-na \
1322 | --program-transform-n | --program-transform- \
1323 | --program-transform | --program-transfor \
1324 | --program-transfo | --program-transf \
1325 | --program-trans | --program-tran \
1326 | --progr-tra | --program-tr | --program-t)
1327 ac_prev=program_transform_name ;;
1328 -program-transform-name=* | --program-transform-name=* \
1329 | --program-transform-nam=* | --program-transform-na=* \
1330 | --program-transform-n=* | --program-transform-=* \
1331 | --program-transform=* | --program-transfor=* \
1332 | --program-transfo=* | --program-transf=* \
1333 | --program-trans=* | --program-tran=* \
1334 | --progr-tra=* | --program-tr=* | --program-t=*)
1335 program_transform_name=$ac_optarg ;;
1337 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1338 ac_prev=pdfdir ;;
1339 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1340 pdfdir=$ac_optarg ;;
1342 -psdir | --psdir | --psdi | --psd | --ps)
1343 ac_prev=psdir ;;
1344 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1345 psdir=$ac_optarg ;;
1347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348 | -silent | --silent | --silen | --sile | --sil)
1349 silent=yes ;;
1351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1352 ac_prev=sbindir ;;
1353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1354 | --sbi=* | --sb=*)
1355 sbindir=$ac_optarg ;;
1357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1359 | --sharedst | --shareds | --shared | --share | --shar \
1360 | --sha | --sh)
1361 ac_prev=sharedstatedir ;;
1362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1365 | --sha=* | --sh=*)
1366 sharedstatedir=$ac_optarg ;;
1368 -site | --site | --sit)
1369 ac_prev=site ;;
1370 -site=* | --site=* | --sit=*)
1371 site=$ac_optarg ;;
1373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1374 ac_prev=srcdir ;;
1375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1376 srcdir=$ac_optarg ;;
1378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1379 | --syscon | --sysco | --sysc | --sys | --sy)
1380 ac_prev=sysconfdir ;;
1381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1383 sysconfdir=$ac_optarg ;;
1385 -target | --target | --targe | --targ | --tar | --ta | --t)
1386 ac_prev=target_alias ;;
1387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1388 target_alias=$ac_optarg ;;
1390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1391 verbose=yes ;;
1393 -version | --version | --versio | --versi | --vers | -V)
1394 ac_init_version=: ;;
1396 -with-* | --with-*)
1397 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1400 as_fn_error $? "invalid package name: $ac_useropt"
1401 ac_useropt_orig=$ac_useropt
1402 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1403 case $ac_user_opts in
1405 "with_$ac_useropt"
1406 "*) ;;
1407 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1408 ac_unrecognized_sep=', ';;
1409 esac
1410 eval with_$ac_useropt=\$ac_optarg ;;
1412 -without-* | --without-*)
1413 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1414 # Reject names that are not valid shell variable names.
1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1416 as_fn_error $? "invalid package name: $ac_useropt"
1417 ac_useropt_orig=$ac_useropt
1418 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419 case $ac_user_opts in
1421 "with_$ac_useropt"
1422 "*) ;;
1423 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1424 ac_unrecognized_sep=', ';;
1425 esac
1426 eval with_$ac_useropt=no ;;
1428 --x)
1429 # Obsolete; use --with-x.
1430 with_x=yes ;;
1432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1433 | --x-incl | --x-inc | --x-in | --x-i)
1434 ac_prev=x_includes ;;
1435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1437 x_includes=$ac_optarg ;;
1439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1441 ac_prev=x_libraries ;;
1442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1444 x_libraries=$ac_optarg ;;
1446 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1447 Try \`$0 --help' for more information"
1450 *=*)
1451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1452 # Reject names that are not valid shell variable names.
1453 case $ac_envvar in #(
1454 '' | [0-9]* | *[!_$as_cr_alnum]* )
1455 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1456 esac
1457 eval $ac_envvar=\$ac_optarg
1458 export $ac_envvar ;;
1461 # FIXME: should be removed in autoconf 3.0.
1462 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1464 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1465 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1468 esac
1469 done
1471 if test -n "$ac_prev"; then
1472 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1473 as_fn_error $? "missing argument to $ac_option"
1476 if test -n "$ac_unrecognized_opts"; then
1477 case $enable_option_checking in
1478 no) ;;
1479 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1480 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1481 esac
1484 # Check all directory arguments for consistency.
1485 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1486 datadir sysconfdir sharedstatedir localstatedir includedir \
1487 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1488 libdir localedir mandir
1490 eval ac_val=\$$ac_var
1491 # Remove trailing slashes.
1492 case $ac_val in
1493 */ )
1494 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1495 eval $ac_var=\$ac_val;;
1496 esac
1497 # Be sure to have absolute directory names.
1498 case $ac_val in
1499 [\\/$]* | ?:[\\/]* ) continue;;
1500 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1501 esac
1502 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1503 done
1505 # There might be people who depend on the old broken behavior: `$host'
1506 # used to hold the argument of --host etc.
1507 # FIXME: To remove some day.
1508 build=$build_alias
1509 host=$host_alias
1510 target=$target_alias
1512 # FIXME: To remove some day.
1513 if test "x$host_alias" != x; then
1514 if test "x$build_alias" = x; then
1515 cross_compiling=maybe
1516 elif test "x$build_alias" != "x$host_alias"; then
1517 cross_compiling=yes
1521 ac_tool_prefix=
1522 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1524 test "$silent" = yes && exec 6>/dev/null
1527 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1528 ac_ls_di=`ls -di .` &&
1529 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1530 as_fn_error $? "working directory cannot be determined"
1531 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1532 as_fn_error $? "pwd does not report name of working directory"
1535 # Find the source files, if location was not specified.
1536 if test -z "$srcdir"; then
1537 ac_srcdir_defaulted=yes
1538 # Try the directory containing this script, then the parent directory.
1539 ac_confdir=`$as_dirname -- "$as_myself" ||
1540 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1541 X"$as_myself" : 'X\(//\)[^/]' \| \
1542 X"$as_myself" : 'X\(//\)$' \| \
1543 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1544 $as_echo X"$as_myself" |
1545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1546 s//\1/
1549 /^X\(\/\/\)[^/].*/{
1550 s//\1/
1553 /^X\(\/\/\)$/{
1554 s//\1/
1557 /^X\(\/\).*/{
1558 s//\1/
1561 s/.*/./; q'`
1562 srcdir=$ac_confdir
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1564 srcdir=..
1566 else
1567 ac_srcdir_defaulted=no
1569 if test ! -r "$srcdir/$ac_unique_file"; then
1570 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1571 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1573 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1574 ac_abs_confdir=`(
1575 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1576 pwd)`
1577 # When building in place, set srcdir=.
1578 if test "$ac_abs_confdir" = "$ac_pwd"; then
1579 srcdir=.
1581 # Remove unnecessary trailing slashes from srcdir.
1582 # Double slashes in file names in object file debugging info
1583 # mess up M-x gdb in Emacs.
1584 case $srcdir in
1585 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1586 esac
1587 for ac_var in $ac_precious_vars; do
1588 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1589 eval ac_env_${ac_var}_value=\$${ac_var}
1590 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1591 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1592 done
1595 # Report the --help message.
1597 if test "$ac_init_help" = "long"; then
1598 # Omit some internal or obsolete options to make the list less imposing.
1599 # This message is too long to be a string in the A/UX 3.1 sh.
1600 cat <<_ACEOF
1601 \`configure' configures this package to adapt to many kinds of systems.
1603 Usage: $0 [OPTION]... [VAR=VALUE]...
1605 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1606 VAR=VALUE. See below for descriptions of some of the useful variables.
1608 Defaults for the options are specified in brackets.
1610 Configuration:
1611 -h, --help display this help and exit
1612 --help=short display options specific to this package
1613 --help=recursive display the short help of all the included packages
1614 -V, --version display version information and exit
1615 -q, --quiet, --silent do not print \`checking ...' messages
1616 --cache-file=FILE cache test results in FILE [disabled]
1617 -C, --config-cache alias for \`--cache-file=config.cache'
1618 -n, --no-create do not create output files
1619 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1621 Installation directories:
1622 --prefix=PREFIX install architecture-independent files in PREFIX
1623 [$ac_default_prefix]
1624 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1625 [PREFIX]
1627 By default, \`make install' will install all the files in
1628 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1629 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1630 for instance \`--prefix=\$HOME'.
1632 For better control, use the options below.
1634 Fine tuning of the installation directories:
1635 --bindir=DIR user executables [EPREFIX/bin]
1636 --sbindir=DIR system admin executables [EPREFIX/sbin]
1637 --libexecdir=DIR program executables [EPREFIX/libexec]
1638 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1639 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1640 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1641 --libdir=DIR object code libraries [EPREFIX/lib]
1642 --includedir=DIR C header files [PREFIX/include]
1643 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1644 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1645 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1646 --infodir=DIR info documentation [DATAROOTDIR/info]
1647 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1648 --mandir=DIR man documentation [DATAROOTDIR/man]
1649 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1650 --htmldir=DIR html documentation [DOCDIR]
1651 --dvidir=DIR dvi documentation [DOCDIR]
1652 --pdfdir=DIR pdf documentation [DOCDIR]
1653 --psdir=DIR ps documentation [DOCDIR]
1654 _ACEOF
1656 cat <<\_ACEOF
1658 Program names:
1659 --program-prefix=PREFIX prepend PREFIX to installed program names
1660 --program-suffix=SUFFIX append SUFFIX to installed program names
1661 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1663 System types:
1664 --build=BUILD configure for building on BUILD [guessed]
1665 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1666 --target=TARGET configure for building compilers for TARGET [HOST]
1667 _ACEOF
1670 if test -n "$ac_init_help"; then
1672 cat <<\_ACEOF
1674 Optional Features:
1675 --disable-option-checking ignore unrecognized --enable/--with options
1676 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1677 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1678 --enable-generated-files-in-srcdir
1679 put copies of generated files in source dir intended
1680 for creating source tarballs for users without
1681 texinfo bison or flex
1682 --disable-largefile omit support for large files
1683 --disable-build-format-warnings
1684 don't use -Wformat while building GCC
1685 --enable-werror-always enable -Werror despite compiler version
1686 --enable-checking[=LIST]
1687 enable expensive run-time checks. With LIST, enable
1688 only specific categories of checks. Categories are:
1689 yes,no,all,none,release. Flags are:
1690 assert,df,extra,fold,gc,gcac,gimple,misc,
1691 rtlflag,rtl,runtime,tree,valgrind,types
1692 --enable-coverage[=LEVEL]
1693 enable compiler's code coverage collection. Use to
1694 measure compiler performance and locate unused parts
1695 of the compiler. With LEVEL, specify optimization.
1696 Values are opt, noopt, default is noopt
1697 --enable-gather-detailed-mem-stats
1698 enable detailed memory allocation stats gathering
1699 --enable-valgrind-annotations
1700 enable valgrind runtime interaction
1701 --enable-multilib enable library support for multiple ABIs
1702 --enable-multiarch enable support for multiarch paths
1703 --enable-__cxa_atexit enable __cxa_atexit for C++
1704 --enable-decimal-float={no,yes,bid,dpd}
1705 enable decimal float extension to C. Selecting 'bid'
1706 or 'dpd' choses which decimal floating point format
1707 to use
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1710 package
1711 --enable-tls enable or disable generation of tls code overriding
1712 the assembler check for tls support
1713 --enable-vtable-verify enable vtable verification feature
1714 --disable-analyzer disable -fanalyzer static analyzer
1715 --enable-objc-gc enable the use of Boehm's garbage collector with the
1716 GNU Objective-C runtime
1717 --disable-shared don't provide a shared libgcc
1718 --disable-gcov don't provide libgcov and related host tools
1719 --enable-languages=LIST specify which front-ends to build
1720 --disable-rpath do not hardcode runtime library paths
1721 --enable-sjlj-exceptions
1722 arrange to use setjmp/longjmp exception handling
1723 --enable-secureplt enable -msecure-plt by default for PowerPC
1724 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1725 Default to platform configuration
1726 --enable-large-address-aware
1727 Link mingw executables with --large-address-aware
1728 --enable-leading-mingw64-underscores
1729 enable leading underscores on 64 bit mingw targets
1730 --enable-cld enable -mcld by default for 32bit x86
1731 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1732 --disable-win32-registry
1733 disable lookup of installation paths in the Registry
1734 on Windows hosts
1735 --enable-win32-registry enable registry lookup (default)
1736 --enable-win32-registry=KEY
1737 use KEY instead of GCC version as the last portion
1738 of the registry key
1739 --enable-shared[=PKGS] build shared libraries [default=yes]
1740 --enable-static[=PKGS] build static libraries [default=yes]
1741 --enable-fast-install[=PKGS]
1742 optimize for fast installation [default=yes]
1743 --disable-libtool-lock avoid locking (might break parallel builds)
1744 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1745 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1746 --enable-gnu-indirect-function
1747 enable the use of the @gnu_indirect_function to
1748 glibc systems
1749 --enable-initfini-array use .init_array/.fini_array sections
1750 --enable-comdat enable COMDAT group support
1751 --enable-newlib-nano-formatted-io
1752 Use nano version formatted IO
1754 --enable-standard-branch-protection
1755 enable Branch Target Identification Mechanism and
1756 Return Address Signing by default for AArch64
1757 --disable-standard-branch-protection
1758 disable Branch Target Identification Mechanism and
1759 Return Address Signing by default for AArch64
1762 --enable-fix-cortex-a53-835769
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 835769 by default
1765 --disable-fix-cortex-a53-835769
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 835769 by default
1770 --enable-fix-cortex-a53-843419
1771 enable workaround for AArch64 Cortex-A53 erratum
1772 843419 by default
1773 --disable-fix-cortex-a53-843419
1774 disable workaround for AArch64 Cortex-A53 erratum
1775 843419 by default
1777 --enable-gnu-unique-object
1778 enable the use of the @gnu_unique_object ELF
1779 extension on glibc systems
1780 --enable-linker-build-id
1781 compiler will always pass --build-id to linker
1782 --enable-libssp enable linking against libssp
1783 --enable-default-ssp enable Stack Smashing Protection as default
1784 --enable-maintainer-mode
1785 enable make rules and dependencies not useful (and
1786 sometimes confusing) to the casual installer
1787 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1788 thrashing on the build machine
1789 --enable-link-serialization
1790 avoid linking multiple GCC front-ends at once using
1791 make dependencies to avoid thrashing on the build
1792 machine
1793 --enable-version-specific-runtime-libs
1794 specify that runtime libraries should be installed
1795 in a compiler-specific directory
1796 --enable-plugin enable plugin support
1797 --enable-host-shared build host code as shared libraries
1798 --enable-host-pie build host code as PIE
1799 --enable-host-bind-now link host code as BIND_NOW
1800 --disable-libquadmath-support
1801 disable libquadmath support for Fortran
1802 --enable-default-pie enable Position Independent Executable as default
1803 --enable-cet enable Intel CET in host libraries [default=auto]
1804 --enable-s390-excess-float-precision
1805 on s390 targets, evaluate float with double
1806 precision when in standards-conforming mode
1808 Optional Packages:
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --with-build-libsubdir=DIR Directory where to find libraries for build system
1812 --with-local-prefix=DIR specifies directory to put local include
1813 --with-native-system-header-dir=dir
1814 use dir as the directory to look for standard
1815 system header files in. Defaults to /usr/include.
1816 --with-build-sysroot=sysroot
1817 use sysroot as the system root during the build
1818 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1819 --with-gxx-include-dir=DIR
1820 specifies directory to put g++ header files
1821 --with-gxx-libcxx-include-dir=DIR
1822 specifies directory to find libc++ header files
1823 --with-cpp-install-dir=DIR
1824 install the user visible C preprocessor in DIR
1825 (relative to PREFIX) as well as PREFIX/bin
1826 --with-gnu-ld arrange to work with GNU ld
1827 --with-ld arrange to use the specified ld (full pathname)
1828 --with-demangler-in-ld try to use demangler in GNU ld
1829 --with-dsymutil arrange to use the specified dsymutil (full
1830 pathname)
1831 --with-gnu-as arrange to work with GNU as
1832 --with-as arrange to use the specified as (full pathname)
1833 --with-stack-clash-protection-guard-size=size
1834 Set the default stack clash protection guard size
1835 for specific targets as a power of two in bytes.
1836 --with-matchpd-partitions=num
1837 Set the number of partitions to make for gimple and
1838 generic when splitting match.pd. [default=10]
1839 --with-dwarf2 force the default debug format to be DWARF 2 (or
1840 later)
1841 --with-specs=SPECS add SPECS to driver command-line processing
1842 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1843 --with-bugurl=URL Direct users to URL to report a bug
1844 --with-documentation-root-url=URL
1845 Root for documentation URLs
1846 --with-changes-root-url=URL
1847 Root for GCC changes URLs
1848 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1849 SH and x86-64 only)
1850 --with-multilib-generator
1851 Multi-libs configuration string (RISC-V only)
1852 --with-zstd=PATH specify prefix directory for installed zstd library.
1853 Equivalent to --with-zstd-include=PATH/include plus
1854 --with-zstd-lib=PATH/lib
1855 --with-zstd-include=PATH
1856 specify directory for installed zstd include files
1857 --with-zstd-lib=PATH specify directory for the installed zstd library
1858 --with-gnu-ld assume the C compiler uses GNU ld default=no
1859 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1860 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1861 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1862 --with-gcc-major-version-only
1863 use only GCC major number in filesystem paths
1864 --with-pic try to use only PIC/non-PIC objects [default=use
1865 both]
1866 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1867 --with-plugin-ld=[ARG] specify the plugin linker
1868 --with-glibc-version=M.N
1869 assume GCC used with glibc version M.N or later
1870 --with-long-double-128 use 128-bit long double by default
1871 --with-long-double-format={ieee,ibm}
1872 Specify whether PowerPC long double uses IEEE or IBM format
1874 --with-gc={page,zone} this option is not supported anymore. It used to
1875 choose the garbage collection mechanism to use with
1876 the compiler
1877 --with-system-zlib use installed libz
1878 --with-linker-hash-style={sysv,gnu,both}
1879 specify the linker hash style
1880 --with-diagnostics-color={never,auto,auto-if-env,always}
1881 specify the default of -fdiagnostics-color option
1882 auto-if-env stands for -fdiagnostics-color=auto if
1883 GCC_COLOR environment variable is present and
1884 -fdiagnostics-color=never otherwise
1885 --with-diagnostics-urls={never,auto,auto-if-env,always}
1886 specify the default of -fdiagnostics-urls option
1887 auto-if-env stands for -fdiagnostics-urls=auto if
1888 GCC_URLS or TERM_URLS environment variable is
1889 present and -fdiagnostics-urls=never otherwise
1891 Some influential environment variables:
1892 CC C compiler command
1893 CFLAGS C compiler flags
1894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1895 nonstandard directory <lib dir>
1896 LIBS libraries to pass to the linker, e.g. -l<library>
1897 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1898 you have headers in a nonstandard directory <include dir>
1899 CXX C++ compiler command
1900 CXXFLAGS C++ compiler flags
1901 CXXCPP C++ preprocessor
1902 CPP C preprocessor
1903 GMPLIBS How to link GMP
1904 GMPINC How to find GMP include files
1905 ISLLIBS How to link isl
1906 ISLINC How to find isl include files
1908 Use these variables to override the choices made by `configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1911 Report bugs to the package provider.
1912 _ACEOF
1913 ac_status=$?
1916 if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1921 continue
1922 ac_builddir=.
1924 case "$ac_dir" in
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1933 esac ;;
1934 esac
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1940 case $srcdir in
1941 .) # We are building in place.
1942 ac_srcdir=.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1949 *) # Relative name.
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953 esac
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1959 echo &&
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1962 echo &&
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1964 else
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966 fi || ac_status=$?
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1968 done
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1973 cat <<\_ACEOF
1974 configure
1975 generated by GNU Autoconf 2.69
1977 Copyright (C) 2012 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1980 _ACEOF
1981 exit
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=1
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_c_try_compile
2026 # ac_fn_cxx_try_compile LINENO
2027 # ----------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_compile ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 rm -f conftest.$ac_objext
2033 if { { ac_try="$ac_compile"
2034 case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2041 ac_status=$?
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2057 ac_retval=1
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2062 } # ac_fn_cxx_try_compile
2064 # ac_fn_cxx_try_cpp LINENO
2065 # ------------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_cpp ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i && {
2086 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2088 }; then :
2089 ac_retval=0
2090 else
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2094 ac_retval=1
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_cxx_try_cpp
2101 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2102 # ---------------------------------------------------------
2103 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2104 # the include files in INCLUDES and setting the cache variable VAR
2105 # accordingly.
2106 ac_fn_cxx_check_header_mongrel ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if eval \${$3+:} false; then :
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 else
2119 # Is the header compilable?
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2121 $as_echo_n "checking $2 usability... " >&6; }
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2125 #include <$2>
2126 _ACEOF
2127 if ac_fn_cxx_try_compile "$LINENO"; then :
2128 ac_header_compiler=yes
2129 else
2130 ac_header_compiler=no
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2134 $as_echo "$ac_header_compiler" >&6; }
2136 # Is the header present?
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2138 $as_echo_n "checking $2 presence... " >&6; }
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_cxx_try_cpp "$LINENO"; then :
2144 ac_header_preproc=yes
2145 else
2146 ac_header_preproc=no
2148 rm -f conftest.err conftest.i conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2150 $as_echo "$ac_header_preproc" >&6; }
2152 # So? What about this header?
2153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2154 yes:no: )
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2156 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2160 no:yes:* )
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2162 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2164 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2166 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2168 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2172 esac
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 eval "$3=\$ac_header_compiler"
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_cxx_check_header_mongrel
2188 # ac_fn_cxx_try_run LINENO
2189 # ------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2191 # that executables *can* be run.
2192 ac_fn_cxx_try_run ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 if { { ac_try="$ac_link"
2196 case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_link") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2206 { { case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209 esac
2210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_try") 2>&5
2213 ac_status=$?
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; }; }; then :
2216 ac_retval=0
2217 else
2218 $as_echo "$as_me: program exited with status $ac_status" >&5
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 ac_retval=$ac_status
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2228 } # ac_fn_cxx_try_run
2230 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2231 # ---------------------------------------------------------
2232 # Tests whether HEADER exists and can be compiled using the include files in
2233 # INCLUDES, setting the cache variable VAR accordingly.
2234 ac_fn_cxx_check_header_compile ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2245 #include <$2>
2246 _ACEOF
2247 if ac_fn_cxx_try_compile "$LINENO"; then :
2248 eval "$3=yes"
2249 else
2250 eval "$3=no"
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_cxx_check_header_compile
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_c_try_cpp ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { { ac_try="$ac_cpp conftest.$ac_ext"
2268 case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2275 ac_status=$?
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2285 }; then :
2286 ac_retval=0
2287 else
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 ac_retval=1
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2296 } # ac_fn_c_try_cpp
2298 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2299 # ----------------------------------------------
2300 # Tries to find the compile-time value of EXPR in a program that includes
2301 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2302 # computed
2303 ac_fn_cxx_compute_int ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if test "$cross_compiling" = yes; then
2307 # Depending upon the size, compute the lo and hi bounds.
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2312 main ()
2314 static int test_array [1 - 2 * !(($2) >= 0)];
2315 test_array [0] = 0;
2316 return test_array [0];
2319 return 0;
2321 _ACEOF
2322 if ac_fn_cxx_try_compile "$LINENO"; then :
2323 ac_lo=0 ac_mid=0
2324 while :; do
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2329 main ()
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2332 test_array [0] = 0;
2333 return test_array [0];
2336 return 0;
2338 _ACEOF
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340 ac_hi=$ac_mid; break
2341 else
2342 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2343 if test $ac_lo -le $ac_mid; then
2344 ac_lo= ac_hi=
2345 break
2347 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 done
2351 else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2356 main ()
2358 static int test_array [1 - 2 * !(($2) < 0)];
2359 test_array [0] = 0;
2360 return test_array [0];
2363 return 0;
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 ac_hi=-1 ac_mid=-1
2368 while :; do
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2373 main ()
2375 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2376 test_array [0] = 0;
2377 return test_array [0];
2380 return 0;
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 ac_lo=$ac_mid; break
2385 else
2386 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2387 if test $ac_mid -le $ac_hi; then
2388 ac_lo= ac_hi=
2389 break
2391 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 else
2396 ac_lo= ac_hi=
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 # Binary search between lo and hi bounds.
2402 while test "x$ac_lo" != "x$ac_hi"; do
2403 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2408 main ()
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2411 test_array [0] = 0;
2412 return test_array [0];
2415 return 0;
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 ac_hi=$ac_mid
2420 else
2421 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 done
2425 case $ac_lo in #((
2426 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2427 '') ac_retval=1 ;;
2428 esac
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2433 static long int longval () { return $2; }
2434 static unsigned long int ulongval () { return $2; }
2435 #include <stdio.h>
2436 #include <stdlib.h>
2438 main ()
2441 FILE *f = fopen ("conftest.val", "w");
2442 if (! f)
2443 return 1;
2444 if (($2) < 0)
2446 long int i = longval ();
2447 if (i != ($2))
2448 return 1;
2449 fprintf (f, "%ld", i);
2451 else
2453 unsigned long int i = ulongval ();
2454 if (i != ($2))
2455 return 1;
2456 fprintf (f, "%lu", i);
2458 /* Do not output a trailing newline, as this causes \r\n confusion
2459 on some platforms. */
2460 return ferror (f) || fclose (f) != 0;
2463 return 0;
2465 _ACEOF
2466 if ac_fn_cxx_try_run "$LINENO"; then :
2467 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2468 else
2469 ac_retval=1
2471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2472 conftest.$ac_objext conftest.beam conftest.$ac_ext
2473 rm -f conftest.val
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 as_fn_set_status $ac_retval
2479 } # ac_fn_cxx_compute_int
2481 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2482 # ---------------------------------------------
2483 # Tests whether TYPE exists after having included INCLUDES, setting cache
2484 # variable VAR accordingly.
2485 ac_fn_cxx_check_type ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 eval "$3=no"
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2498 main ()
2500 if (sizeof ($2))
2501 return 0;
2503 return 0;
2505 _ACEOF
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2511 main ()
2513 if (sizeof (($2)))
2514 return 0;
2516 return 0;
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2521 else
2522 eval "$3=yes"
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 eval ac_res=\$$3
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 } # ac_fn_cxx_check_type
2535 # ac_fn_c_find_intX_t LINENO BITS VAR
2536 # -----------------------------------
2537 # Finds a signed integer type with width BITS, setting cache variable VAR
2538 # accordingly.
2539 ac_fn_c_find_intX_t ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2543 $as_echo_n "checking for int$2_t... " >&6; }
2544 if eval \${$3+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 eval "$3=no"
2548 # Order is important - never check a type that is potentially smaller
2549 # than half of the expected target width.
2550 for ac_type in int$2_t 'int' 'long int' \
2551 'long long int' 'short int' 'signed char'; do
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 $ac_includes_default
2555 enum { N = $2 / 2 - 1 };
2557 main ()
2559 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2560 test_array [0] = 0;
2561 return test_array [0];
2564 return 0;
2566 _ACEOF
2567 if ac_fn_cxx_try_compile "$LINENO"; then :
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $ac_includes_default
2571 enum { N = $2 / 2 - 1 };
2573 main ()
2575 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2576 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2577 test_array [0] = 0;
2578 return test_array [0];
2581 return 0;
2583 _ACEOF
2584 if ac_fn_cxx_try_compile "$LINENO"; then :
2586 else
2587 case $ac_type in #(
2588 int$2_t) :
2589 eval "$3=yes" ;; #(
2590 *) :
2591 eval "$3=\$ac_type" ;;
2592 esac
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 if eval test \"x\$"$3"\" = x"no"; then :
2599 else
2600 break
2602 done
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2609 } # ac_fn_c_find_intX_t
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2619 case "(($ac_try" in
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2626 ac_status=$?
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 test -x conftest$ac_exeext
2639 }; then :
2640 ac_retval=0
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 ac_retval=1
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 as_fn_set_status $ac_retval
2655 } # ac_fn_cxx_try_link
2657 # ac_fn_c_find_uintX_t LINENO BITS VAR
2658 # ------------------------------------
2659 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2660 # accordingly.
2661 ac_fn_c_find_uintX_t ()
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2665 $as_echo_n "checking for uint$2_t... " >&6; }
2666 if eval \${$3+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 eval "$3=no"
2670 # Order is important - never check a type that is potentially smaller
2671 # than half of the expected target width.
2672 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2673 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 $ac_includes_default
2678 main ()
2680 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2681 test_array [0] = 0;
2682 return test_array [0];
2685 return 0;
2687 _ACEOF
2688 if ac_fn_cxx_try_compile "$LINENO"; then :
2689 case $ac_type in #(
2690 uint$2_t) :
2691 eval "$3=yes" ;; #(
2692 *) :
2693 eval "$3=\$ac_type" ;;
2694 esac
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 if eval test \"x\$"$3"\" = x"no"; then :
2699 else
2700 break
2702 done
2704 eval ac_res=\$$3
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709 } # ac_fn_c_find_uintX_t
2711 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2712 # ------------------------------------------------
2713 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2714 ac_fn_cxx_check_header_preproc ()
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval \${$3+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2724 #include <$2>
2725 _ACEOF
2726 if ac_fn_cxx_try_cpp "$LINENO"; then :
2727 eval "$3=yes"
2728 else
2729 eval "$3=no"
2731 rm -f conftest.err conftest.i conftest.$ac_ext
2733 eval ac_res=\$$3
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2735 $as_echo "$ac_res" >&6; }
2736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738 } # ac_fn_cxx_check_header_preproc
2740 # ac_fn_cxx_check_func LINENO FUNC VAR
2741 # ------------------------------------
2742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2743 ac_fn_cxx_check_func ()
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \${$3+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2755 #define $2 innocuous_$2
2757 /* System header to define __stub macros and hopefully few prototypes,
2758 which can conflict with char $2 (); below.
2759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2760 <limits.h> exists even on freestanding compilers. */
2762 #ifdef __STDC__
2763 # include <limits.h>
2764 #else
2765 # include <assert.h>
2766 #endif
2768 #undef $2
2770 /* Override any GCC internal prototype to avoid an error.
2771 Use char because int might match the return type of a GCC
2772 builtin and then its argument prototype would still apply. */
2773 #ifdef __cplusplus
2774 extern "C"
2775 #endif
2776 char $2 ();
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined __stub_$2 || defined __stub___$2
2781 choke me
2782 #endif
2785 main ()
2787 return $2 ();
2789 return 0;
2791 _ACEOF
2792 if ac_fn_cxx_try_link "$LINENO"; then :
2793 eval "$3=yes"
2794 else
2795 eval "$3=no"
2797 rm -f core conftest.err conftest.$ac_objext \
2798 conftest$ac_exeext conftest.$ac_ext
2800 eval ac_res=\$$3
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2802 $as_echo "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 } # ac_fn_cxx_check_func
2807 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2808 # -----------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2810 # accordingly.
2811 ac_fn_cxx_check_decl ()
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 as_decl_name=`echo $2|sed 's/ *(.*//'`
2815 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \${$3+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2825 main ()
2827 #ifndef $as_decl_name
2828 #ifdef __cplusplus
2829 (void) $as_decl_use;
2830 #else
2831 (void) $as_decl_name;
2832 #endif
2833 #endif
2836 return 0;
2838 _ACEOF
2839 if ac_fn_cxx_try_compile "$LINENO"; then :
2840 eval "$3=yes"
2841 else
2842 eval "$3=no"
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 eval ac_res=\$$3
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851 } # ac_fn_cxx_check_decl
2853 # ac_fn_c_try_link LINENO
2854 # -----------------------
2855 # Try to link conftest.$ac_ext, and return whether this succeeded.
2856 ac_fn_c_try_link ()
2858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2859 rm -f conftest.$ac_objext conftest$ac_exeext
2860 if { { ac_try="$ac_link"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link") 2>conftest.err
2868 ac_status=$?
2869 if test -s conftest.err; then
2870 grep -v '^ *+' conftest.err >conftest.er1
2871 cat conftest.er1 >&5
2872 mv -f conftest.er1 conftest.err
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest$ac_exeext && {
2879 test "$cross_compiling" = yes ||
2880 test -x conftest$ac_exeext
2881 }; then :
2882 ac_retval=0
2883 else
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 ac_retval=1
2889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2891 # interfere with the next link command; also delete a directory that is
2892 # left behind by Apple's compiler. We do this before executing the actions.
2893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 as_fn_set_status $ac_retval
2897 } # ac_fn_c_try_link
2899 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2900 # ----------------------------------------------
2901 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2902 ac_fn_c_check_header_preproc ()
2904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2906 $as_echo_n "checking for $2... " >&6; }
2907 if eval \${$3+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912 #include <$2>
2913 _ACEOF
2914 if ac_fn_c_try_cpp "$LINENO"; then :
2915 eval "$3=yes"
2916 else
2917 eval "$3=no"
2919 rm -f conftest.err conftest.i conftest.$ac_ext
2921 eval ac_res=\$$3
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923 $as_echo "$ac_res" >&6; }
2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926 } # ac_fn_c_check_header_preproc
2928 # ac_fn_c_check_func LINENO FUNC VAR
2929 # ----------------------------------
2930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2931 ac_fn_c_check_func ()
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2935 $as_echo_n "checking for $2... " >&6; }
2936 if eval \${$3+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2943 #define $2 innocuous_$2
2945 /* System header to define __stub macros and hopefully few prototypes,
2946 which can conflict with char $2 (); below.
2947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 <limits.h> exists even on freestanding compilers. */
2950 #ifdef __STDC__
2951 # include <limits.h>
2952 #else
2953 # include <assert.h>
2954 #endif
2956 #undef $2
2958 /* Override any GCC internal prototype to avoid an error.
2959 Use char because int might match the return type of a GCC
2960 builtin and then its argument prototype would still apply. */
2961 #ifdef __cplusplus
2962 extern "C"
2963 #endif
2964 char $2 ();
2965 /* The GNU C library defines this for functions which it implements
2966 to always fail with ENOSYS. Some functions are actually named
2967 something starting with __ and the normal name is an alias. */
2968 #if defined __stub_$2 || defined __stub___$2
2969 choke me
2970 #endif
2973 main ()
2975 return $2 ();
2977 return 0;
2979 _ACEOF
2980 if ac_fn_c_try_link "$LINENO"; then :
2981 eval "$3=yes"
2982 else
2983 eval "$3=no"
2985 rm -f core conftest.err conftest.$ac_objext \
2986 conftest$ac_exeext conftest.$ac_ext
2988 eval ac_res=\$$3
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990 $as_echo "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993 } # ac_fn_c_check_func
2994 cat >config.log <<_ACEOF
2995 This file contains any messages produced by compilers while
2996 running configure, to aid debugging if configure makes a mistake.
2998 It was created by $as_me, which was
2999 generated by GNU Autoconf 2.69. Invocation command line was
3001 $ $0 $@
3003 _ACEOF
3004 exec 5>>config.log
3006 cat <<_ASUNAME
3007 ## --------- ##
3008 ## Platform. ##
3009 ## --------- ##
3011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3028 _ASUNAME
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 $as_echo "PATH: $as_dir"
3036 done
3037 IFS=$as_save_IFS
3039 } >&5
3041 cat >&5 <<_ACEOF
3044 ## ----------- ##
3045 ## Core tests. ##
3046 ## ----------- ##
3048 _ACEOF
3051 # Keep a trace of the command line.
3052 # Strip out --no-create and --no-recursion so they do not pile up.
3053 # Strip out --silent because we don't want to record it for future runs.
3054 # Also quote any args containing shell meta-characters.
3055 # Make two passes to allow for proper duplicate-argument suppression.
3056 ac_configure_args=
3057 ac_configure_args0=
3058 ac_configure_args1=
3059 ac_must_keep_next=false
3060 for ac_pass in 1 2
3062 for ac_arg
3064 case $ac_arg in
3065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3067 | -silent | --silent | --silen | --sile | --sil)
3068 continue ;;
3069 *\'*)
3070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3071 esac
3072 case $ac_pass in
3073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3075 as_fn_append ac_configure_args1 " '$ac_arg'"
3076 if test $ac_must_keep_next = true; then
3077 ac_must_keep_next=false # Got value, back to normal.
3078 else
3079 case $ac_arg in
3080 *=* | --config-cache | -C | -disable-* | --disable-* \
3081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3083 | -with-* | --with-* | -without-* | --without-* | --x)
3084 case "$ac_configure_args0 " in
3085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3086 esac
3088 -* ) ac_must_keep_next=true ;;
3089 esac
3091 as_fn_append ac_configure_args " '$ac_arg'"
3093 esac
3094 done
3095 done
3096 { ac_configure_args0=; unset ac_configure_args0;}
3097 { ac_configure_args1=; unset ac_configure_args1;}
3099 # When interrupted or exit'd, cleanup temporary files, and complete
3100 # config.log. We remove comments because anyway the quotes in there
3101 # would cause problems or look ugly.
3102 # WARNING: Use '\'' to represent an apostrophe within the trap.
3103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3104 trap 'exit_status=$?
3105 # Save into config.log some information that might help in debugging.
3107 echo
3109 $as_echo "## ---------------- ##
3110 ## Cache variables. ##
3111 ## ---------------- ##"
3112 echo
3113 # The following way of writing the cache mishandles newlines in values,
3115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3116 eval ac_val=\$$ac_var
3117 case $ac_val in #(
3118 *${as_nl}*)
3119 case $ac_var in #(
3120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3122 esac
3123 case $ac_var in #(
3124 _ | IFS | as_nl) ;; #(
3125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3126 *) { eval $ac_var=; unset $ac_var;} ;;
3127 esac ;;
3128 esac
3129 done
3130 (set) 2>&1 |
3131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3132 *${as_nl}ac_space=\ *)
3133 sed -n \
3134 "s/'\''/'\''\\\\'\'''\''/g;
3135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3136 ;; #(
3138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3140 esac |
3141 sort
3143 echo
3145 $as_echo "## ----------------- ##
3146 ## Output variables. ##
3147 ## ----------------- ##"
3148 echo
3149 for ac_var in $ac_subst_vars
3151 eval ac_val=\$$ac_var
3152 case $ac_val in
3153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3154 esac
3155 $as_echo "$ac_var='\''$ac_val'\''"
3156 done | sort
3157 echo
3159 if test -n "$ac_subst_files"; then
3160 $as_echo "## ------------------- ##
3161 ## File substitutions. ##
3162 ## ------------------- ##"
3163 echo
3164 for ac_var in $ac_subst_files
3166 eval ac_val=\$$ac_var
3167 case $ac_val in
3168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3169 esac
3170 $as_echo "$ac_var='\''$ac_val'\''"
3171 done | sort
3172 echo
3175 if test -s confdefs.h; then
3176 $as_echo "## ----------- ##
3177 ## confdefs.h. ##
3178 ## ----------- ##"
3179 echo
3180 cat confdefs.h
3181 echo
3183 test "$ac_signal" != 0 &&
3184 $as_echo "$as_me: caught signal $ac_signal"
3185 $as_echo "$as_me: exit $exit_status"
3186 } >&5
3187 rm -f core *.core core.conftest.* &&
3188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3189 exit $exit_status
3191 for ac_signal in 1 2 13 15; do
3192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3193 done
3194 ac_signal=0
3196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3197 rm -f -r conftest* confdefs.h
3199 $as_echo "/* confdefs.h */" > confdefs.h
3201 # Predefined preprocessor variables.
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_NAME "$PACKAGE_NAME"
3205 _ACEOF
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3209 _ACEOF
3211 cat >>confdefs.h <<_ACEOF
3212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3213 _ACEOF
3215 cat >>confdefs.h <<_ACEOF
3216 #define PACKAGE_STRING "$PACKAGE_STRING"
3217 _ACEOF
3219 cat >>confdefs.h <<_ACEOF
3220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3221 _ACEOF
3223 cat >>confdefs.h <<_ACEOF
3224 #define PACKAGE_URL "$PACKAGE_URL"
3225 _ACEOF
3228 # Let the site file select an alternate cache file if it wants to.
3229 # Prefer an explicitly selected file to automatically selected ones.
3230 ac_site_file1=NONE
3231 ac_site_file2=NONE
3232 if test -n "$CONFIG_SITE"; then
3233 # We do not want a PATH search for config.site.
3234 case $CONFIG_SITE in #((
3235 -*) ac_site_file1=./$CONFIG_SITE;;
3236 */*) ac_site_file1=$CONFIG_SITE;;
3237 *) ac_site_file1=./$CONFIG_SITE;;
3238 esac
3239 elif test "x$prefix" != xNONE; then
3240 ac_site_file1=$prefix/share/config.site
3241 ac_site_file2=$prefix/etc/config.site
3242 else
3243 ac_site_file1=$ac_default_prefix/share/config.site
3244 ac_site_file2=$ac_default_prefix/etc/config.site
3246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3248 test "x$ac_site_file" = xNONE && continue
3249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3252 sed 's/^/| /' "$ac_site_file" >&5
3253 . "$ac_site_file" \
3254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "failed to load site script $ac_site_file
3257 See \`config.log' for more details" "$LINENO" 5; }
3259 done
3261 if test -r "$cache_file"; then
3262 # Some versions of bash will fail to source /dev/null (special files
3263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3266 $as_echo "$as_me: loading cache $cache_file" >&6;}
3267 case $cache_file in
3268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3269 *) . "./$cache_file";;
3270 esac
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3274 $as_echo "$as_me: creating cache $cache_file" >&6;}
3275 >$cache_file
3278 # Check that the precious variables saved in the cache have kept the same
3279 # value.
3280 ac_cache_corrupted=false
3281 for ac_var in $ac_precious_vars; do
3282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3283 eval ac_new_set=\$ac_env_${ac_var}_set
3284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3285 eval ac_new_val=\$ac_env_${ac_var}_value
3286 case $ac_old_set,$ac_new_set in
3287 set,)
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3290 ac_cache_corrupted=: ;;
3291 ,set)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3294 ac_cache_corrupted=: ;;
3295 ,);;
3297 if test "x$ac_old_val" != "x$ac_new_val"; then
3298 # differences in whitespace do not lead to failure.
3299 ac_old_val_w=`echo x $ac_old_val`
3300 ac_new_val_w=`echo x $ac_new_val`
3301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3304 ac_cache_corrupted=:
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3308 eval $ac_var=\$ac_old_val
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3314 fi;;
3315 esac
3316 # Pass precious variables to config.status.
3317 if test "$ac_new_set" = set; then
3318 case $ac_new_val in
3319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3320 *) ac_arg=$ac_var=$ac_new_val ;;
3321 esac
3322 case " $ac_configure_args " in
3323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3325 esac
3327 done
3328 if $ac_cache_corrupted; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3335 ## -------------------- ##
3336 ## Main body of script. ##
3337 ## -------------------- ##
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3354 gcc_version=`cat $srcdir/BASE-VER`
3356 # Determine the host, build, and target systems
3357 ac_aux_dir=
3358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3359 if test -f "$ac_dir/install-sh"; then
3360 ac_aux_dir=$ac_dir
3361 ac_install_sh="$ac_aux_dir/install-sh -c"
3362 break
3363 elif test -f "$ac_dir/install.sh"; then
3364 ac_aux_dir=$ac_dir
3365 ac_install_sh="$ac_aux_dir/install.sh -c"
3366 break
3367 elif test -f "$ac_dir/shtool"; then
3368 ac_aux_dir=$ac_dir
3369 ac_install_sh="$ac_aux_dir/shtool install -c"
3370 break
3372 done
3373 if test -z "$ac_aux_dir"; then
3374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3377 # These three variables are undocumented and unsupported,
3378 # and are intended to be withdrawn in a future Autoconf release.
3379 # They can cause serious problems if a builder's source tree is in a directory
3380 # whose full name contains unusual characters.
3381 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3382 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3383 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3386 # Make sure we can run config.sub.
3387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3391 $as_echo_n "checking build system type... " >&6; }
3392 if ${ac_cv_build+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_build_alias=$build_alias
3396 test "x$ac_build_alias" = x &&
3397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3398 test "x$ac_build_alias" = x &&
3399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3405 $as_echo "$ac_cv_build" >&6; }
3406 case $ac_cv_build in
3407 *-*-*) ;;
3408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3409 esac
3410 build=$ac_cv_build
3411 ac_save_IFS=$IFS; IFS='-'
3412 set x $ac_cv_build
3413 shift
3414 build_cpu=$1
3415 build_vendor=$2
3416 shift; shift
3417 # Remember, the first character of IFS is used to create $*,
3418 # except with old shells:
3419 build_os=$*
3420 IFS=$ac_save_IFS
3421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3425 $as_echo_n "checking host system type... " >&6; }
3426 if ${ac_cv_host+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test "x$host_alias" = x; then
3430 ac_cv_host=$ac_cv_build
3431 else
3432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3438 $as_echo "$ac_cv_host" >&6; }
3439 case $ac_cv_host in
3440 *-*-*) ;;
3441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3442 esac
3443 host=$ac_cv_host
3444 ac_save_IFS=$IFS; IFS='-'
3445 set x $ac_cv_host
3446 shift
3447 host_cpu=$1
3448 host_vendor=$2
3449 shift; shift
3450 # Remember, the first character of IFS is used to create $*,
3451 # except with old shells:
3452 host_os=$*
3453 IFS=$ac_save_IFS
3454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3458 $as_echo_n "checking target system type... " >&6; }
3459 if ${ac_cv_target+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test "x$target_alias" = x; then
3463 ac_cv_target=$ac_cv_host
3464 else
3465 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3471 $as_echo "$ac_cv_target" >&6; }
3472 case $ac_cv_target in
3473 *-*-*) ;;
3474 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3475 esac
3476 target=$ac_cv_target
3477 ac_save_IFS=$IFS; IFS='-'
3478 set x $ac_cv_target
3479 shift
3480 target_cpu=$1
3481 target_vendor=$2
3482 shift; shift
3483 # Remember, the first character of IFS is used to create $*,
3484 # except with old shells:
3485 target_os=$*
3486 IFS=$ac_save_IFS
3487 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3490 # The aliases save the names the user supplied, while $host etc.
3491 # will get canonicalized.
3492 test -n "$target_alias" &&
3493 test "$program_prefix$program_suffix$program_transform_name" = \
3494 NONENONEs,x,x, &&
3495 program_prefix=${target_alias}-
3497 # Determine the noncanonical host name, for Ada.
3498 case ${build_alias} in
3499 "") build_noncanonical=${build} ;;
3500 *) build_noncanonical=${build_alias} ;;
3501 esac
3503 case ${host_alias} in
3504 "") host_noncanonical=${build_noncanonical} ;;
3505 *) host_noncanonical=${host_alias} ;;
3506 esac
3511 # Determine the noncanonical target name, for directory use.
3512 case ${target_alias} in
3513 "") target_noncanonical=${host_noncanonical} ;;
3514 *) target_noncanonical=${target_alias} ;;
3515 esac
3520 # Used for constructing correct paths for offload compilers.
3521 real_target_noncanonical=${target_noncanonical}
3522 accel_dir_suffix=
3524 # Determine the target- and build-specific subdirectories
3526 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3527 # have matching libraries, they should use host libraries: Makefile.tpl
3528 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3529 # However, they still use the build modules, because the corresponding
3530 # host modules (e.g. bison) are only built for the host when bootstrap
3531 # finishes. So:
3532 # - build_subdir is where we find build modules, and never changes.
3533 # - build_libsubdir is where we find build libraries, and can be overridden.
3535 # Prefix 'build-' so this never conflicts with target_subdir.
3536 build_subdir="build-${build_noncanonical}"
3538 # Check whether --with-build-libsubdir was given.
3539 if test "${with_build_libsubdir+set}" = set; then :
3540 withval=$with_build_libsubdir; build_libsubdir="$withval"
3541 else
3542 build_libsubdir="$build_subdir"
3545 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3546 if ( test $srcdir = . && test -d gcc ) \
3547 || test -d $srcdir/../host-${host_noncanonical}; then
3548 host_subdir="host-${host_noncanonical}"
3549 else
3550 host_subdir=.
3552 # No prefix.
3553 target_subdir=${target_noncanonical}
3556 # Set program_transform_name
3557 test "$program_prefix" != NONE &&
3558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3559 # Use a double $ so make ignores it.
3560 test "$program_suffix" != NONE &&
3561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3562 # Double any \ or $.
3563 # By default was `s,x,x', remove it if useless.
3564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3568 # Check for bogus environment variables.
3569 # Test if LIBRARY_PATH contains the notation for the current directory
3570 # since this would lead to problems installing/building glibc.
3571 # LIBRARY_PATH contains the current directory if one of the following
3572 # is true:
3573 # - one of the terminals (":" and ";") is the first or last sign
3574 # - two terminals occur directly after each other
3575 # - the path contains an element with a dot in it
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3577 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3578 case ${LIBRARY_PATH} in
3579 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3580 library_path_setting="contains current directory"
3583 library_path_setting="ok"
3585 esac
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3587 $as_echo "$library_path_setting" >&6; }
3588 if test "$library_path_setting" != "ok"; then
3589 as_fn_error $? "
3590 *** LIBRARY_PATH shouldn't contain the current directory when
3591 *** building gcc. Please change the environment variable
3592 *** and run configure again." "$LINENO" 5
3595 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3596 # since this would lead to problems installing/building glibc.
3597 # GCC_EXEC_PREFIX contains the current directory if one of the following
3598 # is true:
3599 # - one of the terminals (":" and ";") is the first or last sign
3600 # - two terminals occur directly after each other
3601 # - the path contains an element with a dot in it
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3603 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3604 case ${GCC_EXEC_PREFIX} in
3605 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3606 gcc_exec_prefix_setting="contains current directory"
3609 gcc_exec_prefix_setting="ok"
3611 esac
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3613 $as_echo "$gcc_exec_prefix_setting" >&6; }
3614 if test "$gcc_exec_prefix_setting" != "ok"; then
3615 as_fn_error $? "
3616 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3617 *** building gcc. Please change the environment variable
3618 *** and run configure again." "$LINENO" 5
3621 # -----------
3622 # Directories
3623 # -----------
3625 # Specify the local prefix
3626 local_prefix=
3628 # Check whether --with-local-prefix was given.
3629 if test "${with_local_prefix+set}" = set; then :
3630 withval=$with_local_prefix; case "${withval}" in
3631 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3632 no) ;;
3633 *) local_prefix=$with_local_prefix ;;
3634 esac
3638 # Default local prefix if it is empty
3639 if test x$local_prefix = x; then
3640 local_prefix=/usr/local
3644 # Check whether --with-native-system-header-dir was given.
3645 if test "${with_native_system_header_dir+set}" = set; then :
3646 withval=$with_native_system_header_dir;
3647 case ${with_native_system_header_dir} in
3648 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3649 /* | [A-Za-z]:[\\/]*) ;;
3650 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3651 esac
3652 configured_native_system_header_dir="${withval}"
3654 else
3655 configured_native_system_header_dir=
3660 # Check whether --with-build-sysroot was given.
3661 if test "${with_build_sysroot+set}" = set; then :
3662 withval=$with_build_sysroot; if test x"$withval" != x ; then
3663 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3665 else
3666 SYSROOT_CFLAGS_FOR_TARGET=
3671 if test "x$prefix" = xNONE; then
3672 test_prefix=/usr/local
3673 else
3674 test_prefix=$prefix
3676 if test "x$exec_prefix" = xNONE; then
3677 test_exec_prefix=$test_prefix
3678 else
3679 test_exec_prefix=$exec_prefix
3683 # Check whether --with-sysroot was given.
3684 if test "${with_sysroot+set}" = set; then :
3685 withval=$with_sysroot;
3686 case ${with_sysroot} in
3687 /) ;;
3688 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3689 esac
3690 case ${with_sysroot} in
3691 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3692 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3693 esac
3695 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3696 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3698 case ${TARGET_SYSTEM_ROOT} in
3699 "${test_prefix}"|"${test_prefix}/"*|\
3700 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3701 '${prefix}'|'${prefix}/'*|\
3702 '${exec_prefix}'|'${exec_prefix}/'*)
3703 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3704 TARGET_SYSTEM_ROOT_DEFINE="$t"
3706 esac
3708 else
3710 TARGET_SYSTEM_ROOT=
3711 TARGET_SYSTEM_ROOT_DEFINE=
3712 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3720 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3721 # passed in by the toplevel make and thus we'd get different behavior
3722 # depending on where we built the sources.
3723 gcc_gxx_include_dir=
3724 # Specify the g++ header file directory
3726 # Check whether --with-gxx-include-dir was given.
3727 if test "${with_gxx_include_dir+set}" = set; then :
3728 withval=$with_gxx_include_dir; case "${withval}" in
3729 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3730 no) ;;
3731 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3732 esac
3736 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3737 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3738 # relative to the sysroot.
3739 gcc_gxx_include_dir_add_sysroot=0
3741 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3742 if test x${gcc_gxx_include_dir} = x; then
3743 if test x${enable_version_specific_runtime_libs} = xyes; then
3744 gcc_gxx_include_dir='${libsubdir}/include/c++'
3745 else
3746 libstdcxx_incdir='include/c++/$(version)'
3747 if test x$host != x$target; then
3748 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3750 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3752 elif test "${with_sysroot+set}" = set; then
3753 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3754 if test "${gcc_gxx_without_sysroot}"; then
3755 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3756 gcc_gxx_include_dir_add_sysroot=1
3760 # Configuration for an alternate set of C++ headers.
3761 gcc_gxx_libcxx_include_dir=
3762 # Specify the alternate g++ header file directory
3764 # Check whether --with-gxx-libcxx-include-dir was given.
3765 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3766 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3767 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3768 no) ;;
3769 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3770 esac
3774 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3775 # check to see if the latter starts with the former and, upon success, compute
3776 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3777 gcc_gxx_libcxx_include_dir_add_sysroot=0
3779 if test x${gcc_gxx_libcxx_include_dir} != x; then
3781 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3783 else
3784 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3787 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3788 if test x${gcc_gxx_libcxx_include_dir} = x; then
3789 if test x${enable_version_specific_runtime_libs} = xyes; then
3790 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3791 else
3792 libcxx_incdir='libc++_include/c++/$(version)/v1'
3793 if test x$host != x$target; then
3794 libcxx_incdir="$target_alias/$libcxx_incdir"
3796 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3798 elif test "${with_sysroot+set}" = set; then
3799 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3800 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3801 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3802 gcc_gxx_libcxx_include_dir_add_sysroot=1
3807 # Check whether --with-cpp_install_dir was given.
3808 if test "${with_cpp_install_dir+set}" = set; then :
3809 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3810 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3811 elif test x$withval != xno; then
3812 cpp_install_dir=$withval
3817 # We would like to our source tree to be readonly. However when releases or
3818 # pre-releases are generated, the flex/bison generated files as well as the
3819 # various formats of manuals need to be included along with the rest of the
3820 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3821 # just that.
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3824 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3825 # Check whether --enable-generated-files-in-srcdir was given.
3826 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3827 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3828 else
3829 generated_files_in_srcdir=no
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3834 $as_echo "$generated_files_in_srcdir" >&6; }
3836 if test "$generated_files_in_srcdir" = "yes"; then
3837 GENINSRC=''
3838 else
3839 GENINSRC='#'
3843 # -------------------
3844 # Find default linker
3845 # -------------------
3847 # With GNU ld
3849 # Check whether --with-gnu-ld was given.
3850 if test "${with_gnu_ld+set}" = set; then :
3851 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3852 else
3853 gnu_ld_flag=no
3857 case $target in
3858 *darwin*)
3859 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3860 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3863 ld64_flag=no
3864 dsymutil_flag=no
3866 esac
3868 # With pre-defined ld
3870 # Check whether --with-ld was given.
3871 if test "${with_ld+set}" = set; then :
3872 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3875 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3876 if test ! -x "$DEFAULT_LINKER"; then
3877 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3878 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3879 gnu_ld_flag=yes
3880 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3881 ld64_flag=yes
3884 cat >>confdefs.h <<_ACEOF
3885 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3886 _ACEOF
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3891 $as_echo_n "checking whether a default linker was specified... " >&6; }
3892 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3893 if test x"$gnu_ld_flag" = x"no"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3895 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3898 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3900 else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3905 # With demangler in GNU ld
3907 # Check whether --with-demangler-in-ld was given.
3908 if test "${with_demangler_in_ld+set}" = set; then :
3909 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3910 else
3911 demangler_in_ld=yes
3915 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3917 # Check whether --with-dsymutil was given.
3918 if test "${with_dsymutil+set}" = set; then :
3919 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3923 dsymutil_vers=
3924 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3925 if test ! -x "$DEFAULT_DSYMUTIL"; then
3926 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3927 else
3928 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3929 dsymutil_flag=yes
3933 cat >>confdefs.h <<_ACEOF
3934 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3935 _ACEOF
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3940 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3941 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3943 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3944 else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3949 # ----------------------
3950 # Find default assembler
3951 # ----------------------
3953 # With GNU as
3955 # Check whether --with-gnu-as was given.
3956 if test "${with_gnu_as+set}" = set; then :
3957 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3958 else
3959 gas_flag=no
3964 # Check whether --with-as was given.
3965 if test "${with_as+set}" = set; then :
3966 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test ! -x "$DEFAULT_ASSEMBLER"; then
3971 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3972 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3973 gas_flag=yes
3976 cat >>confdefs.h <<_ACEOF
3977 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3978 _ACEOF
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3983 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3984 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3985 if test x"$gas_flag" = x"no"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3987 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3990 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3997 # ---------------
3998 # Find C compiler
3999 # ---------------
4001 # If a non-executable a.out is present (e.g. created by GNU as above even if
4002 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4003 # file, even when creating an executable, so an execution test fails.
4004 # Remove possible default executable files to avoid this.
4006 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4007 # Autoconf includes it.
4008 rm -f a.out a.exe b.out
4010 # Find the native compiler
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_CC+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4038 done
4039 done
4040 IFS=$as_save_IFS
4044 CC=$ac_cv_prog_CC
4045 if test -n "$CC"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4047 $as_echo "$CC" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4055 if test -z "$ac_cv_prog_CC"; then
4056 ac_ct_CC=$CC
4057 # Extract the first word of "gcc", so it can be a program name with args.
4058 set dummy gcc; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 if test -n "$ac_ct_CC"; then
4065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_CC="gcc"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 break 2
4078 done
4079 done
4080 IFS=$as_save_IFS
4084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4085 if test -n "$ac_ct_CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4087 $as_echo "$ac_ct_CC" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4093 if test "x$ac_ct_CC" = x; then
4094 CC=""
4095 else
4096 case $cross_compiling:$ac_tool_warned in
4097 yes:)
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned=yes ;;
4101 esac
4102 CC=$ac_ct_CC
4104 else
4105 CC="$ac_cv_prog_CC"
4108 if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}cc; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_CC+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CC="${ac_tool_prefix}cc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4133 IFS=$as_save_IFS
4137 CC=$ac_cv_prog_CC
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4149 if test -z "$CC"; then
4150 # Extract the first word of "cc", so it can be a program name with args.
4151 set dummy cc; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_CC+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -n "$CC"; then
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
4159 else
4160 ac_prog_rejected=no
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4169 ac_prog_rejected=yes
4170 continue
4172 ac_cv_prog_CC="cc"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4178 IFS=$as_save_IFS
4180 if test $ac_prog_rejected = yes; then
4181 # We found a bogon in the path, so make sure we never use it.
4182 set dummy $ac_cv_prog_CC
4183 shift
4184 if test $# != 0; then
4185 # We chose a different compiler from the bogus one.
4186 # However, it has the same basename, so the bogon will be chosen
4187 # first if we set CC to just the basename; use the full file name.
4188 shift
4189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$CC"; then
4206 if test -n "$ac_tool_prefix"; then
4207 for ac_prog in cl.exe
4209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_CC+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4236 CC=$ac_cv_prog_CC
4237 if test -n "$CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239 $as_echo "$CC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4246 test -n "$CC" && break
4247 done
4249 if test -z "$CC"; then
4250 ac_ct_CC=$CC
4251 for ac_prog in cl.exe
4253 # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$ac_ct_CC"; then
4261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_ac_ct_CC="$ac_prog"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4274 done
4275 done
4276 IFS=$as_save_IFS
4280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4283 $as_echo "$ac_ct_CC" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4290 test -n "$ac_ct_CC" && break
4291 done
4293 if test "x$ac_ct_CC" = x; then
4294 CC=""
4295 else
4296 case $cross_compiling:$ac_tool_warned in
4297 yes:)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300 ac_tool_warned=yes ;;
4301 esac
4302 CC=$ac_ct_CC
4309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $? "no acceptable C compiler found in \$PATH
4312 See \`config.log' for more details" "$LINENO" 5; }
4314 # Provide some information about the compiler.
4315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4316 set X $ac_compile
4317 ac_compiler=$2
4318 for ac_option in --version -v -V -qversion; do
4319 { { ac_try="$ac_compiler $ac_option >&5"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4327 ac_status=$?
4328 if test -s conftest.err; then
4329 sed '10a\
4330 ... rest of stderr output deleted ...
4331 10q' conftest.err >conftest.er1
4332 cat conftest.er1 >&5
4334 rm -f conftest.er1 conftest.err
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }
4337 done
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4343 main ()
4347 return 0;
4349 _ACEOF
4350 ac_clean_files_save=$ac_clean_files
4351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4352 # Try to create an executable without -o first, disregard a.out.
4353 # It will help us diagnose broken compilers, and finding out an intuition
4354 # of exeext.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356 $as_echo_n "checking whether the C compiler works... " >&6; }
4357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4359 # The possible output files:
4360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4362 ac_rmfiles=
4363 for ac_file in $ac_files
4365 case $ac_file in
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4368 esac
4369 done
4370 rm -f $ac_rmfiles
4372 if { { ac_try="$ac_link_default"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link_default") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
4383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4386 # so that the user can short-circuit this test for compilers unknown to
4387 # Autoconf.
4388 for ac_file in $ac_files ''
4390 test -f "$ac_file" || continue
4391 case $ac_file in
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4394 [ab].out )
4395 # We found the default executable, but exeext='' is most
4396 # certainly right.
4397 break;;
4398 *.* )
4399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4400 then :; else
4401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4403 # We set ac_cv_exeext here because the later test for it is not
4404 # safe: cross compilers may not add the suffix if given an `-o'
4405 # argument, so we may need to know it at that point already.
4406 # Even if this section looks crufty: it has the advantage of
4407 # actually working.
4408 break;;
4410 break;;
4411 esac
4412 done
4413 test "$ac_cv_exeext" = no && ac_cv_exeext=
4415 else
4416 ac_file=''
4418 if test -z "$ac_file"; then :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error 77 "C compiler cannot create executables
4427 See \`config.log' for more details" "$LINENO" 5; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 $as_echo "yes" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4433 $as_echo_n "checking for C compiler default output file name... " >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4435 $as_echo "$ac_file" >&6; }
4436 ac_exeext=$ac_cv_exeext
4438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4439 ac_clean_files=$ac_clean_files_save
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4441 $as_echo_n "checking for suffix of executables... " >&6; }
4442 if { { ac_try="$ac_link"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_link") 2>&5
4450 ac_status=$?
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4455 # work properly (i.e., refer to `conftest.exe'), while it won't with
4456 # `rm'.
4457 for ac_file in conftest.exe conftest conftest.*; do
4458 test -f "$ac_file" || continue
4459 case $ac_file in
4460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4462 break;;
4463 * ) break;;
4464 esac
4465 done
4466 else
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4470 See \`config.log' for more details" "$LINENO" 5; }
4472 rm -f conftest conftest$ac_cv_exeext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4474 $as_echo "$ac_cv_exeext" >&6; }
4476 rm -f conftest.$ac_ext
4477 EXEEXT=$ac_cv_exeext
4478 ac_exeext=$EXEEXT
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 #include <stdio.h>
4483 main ()
4485 FILE *f = fopen ("conftest.out", "w");
4486 return ferror (f) || fclose (f) != 0;
4489 return 0;
4491 _ACEOF
4492 ac_clean_files="$ac_clean_files conftest.out"
4493 # Check that the compiler produces executables we can run. If not, either
4494 # the compiler is broken, or we cross compile.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4496 $as_echo_n "checking whether we are cross compiling... " >&6; }
4497 if test "$cross_compiling" != yes; then
4498 { { ac_try="$ac_link"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_link") 2>&5
4506 ac_status=$?
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509 if { ac_try='./conftest$ac_cv_exeext'
4510 { { case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_try") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; }; then
4520 cross_compiling=no
4521 else
4522 if test "$cross_compiling" = maybe; then
4523 cross_compiling=yes
4524 else
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot run C compiled programs.
4528 If you meant to cross compile, use \`--host'.
4529 See \`config.log' for more details" "$LINENO" 5; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4534 $as_echo "$cross_compiling" >&6; }
4536 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4537 ac_clean_files=$ac_clean_files_save
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4539 $as_echo_n "checking for suffix of object files... " >&6; }
4540 if ${ac_cv_objext+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4551 return 0;
4553 _ACEOF
4554 rm -f conftest.o conftest.obj
4555 if { { ac_try="$ac_compile"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_compile") 2>&5
4563 ac_status=$?
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
4566 for ac_file in conftest.o conftest.obj conftest.*; do
4567 test -f "$ac_file" || continue;
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4571 break;;
4572 esac
4573 done
4574 else
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of object files: cannot compile
4581 See \`config.log' for more details" "$LINENO" 5; }
4583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4586 $as_echo "$ac_cv_objext" >&6; }
4587 OBJEXT=$ac_cv_objext
4588 ac_objext=$OBJEXT
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4591 if ${ac_cv_c_compiler_gnu+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4598 main ()
4600 #ifndef __GNUC__
4601 choke me
4602 #endif
4605 return 0;
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_compiler_gnu=yes
4610 else
4611 ac_compiler_gnu=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4619 if test $ac_compiler_gnu = yes; then
4620 GCC=yes
4621 else
4622 GCC=
4624 ac_test_CFLAGS=${CFLAGS+set}
4625 ac_save_CFLAGS=$CFLAGS
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4628 if ${ac_cv_prog_cc_g+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_save_c_werror_flag=$ac_c_werror_flag
4632 ac_c_werror_flag=yes
4633 ac_cv_prog_cc_g=no
4634 CFLAGS="-g"
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4639 main ()
4643 return 0;
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_prog_cc_g=yes
4648 else
4649 CFLAGS=""
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4654 main ()
4658 return 0;
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4663 else
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4665 CFLAGS="-g"
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4670 main ()
4674 return 0;
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 ac_cv_prog_cc_g=yes
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4688 $as_echo "$ac_cv_prog_cc_g" >&6; }
4689 if test "$ac_test_CFLAGS" = set; then
4690 CFLAGS=$ac_save_CFLAGS
4691 elif test $ac_cv_prog_cc_g = yes; then
4692 if test "$GCC" = yes; then
4693 CFLAGS="-g -O2"
4694 else
4695 CFLAGS="-g"
4697 else
4698 if test "$GCC" = yes; then
4699 CFLAGS="-O2"
4700 else
4701 CFLAGS=
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4706 if ${ac_cv_prog_cc_c89+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 ac_cv_prog_cc_c89=no
4710 ac_save_CC=$CC
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <stdarg.h>
4714 #include <stdio.h>
4715 struct stat;
4716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4717 struct buf { int x; };
4718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4719 static char *e (p, i)
4720 char **p;
4721 int i;
4723 return p[i];
4725 static char *f (char * (*g) (char **, int), char **p, ...)
4727 char *s;
4728 va_list v;
4729 va_start (v,p);
4730 s = g (p, va_arg (v,int));
4731 va_end (v);
4732 return s;
4735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4736 function prototypes and stuff, but not '\xHH' hex character constants.
4737 These don't provoke an error unfortunately, instead are silently treated
4738 as 'x'. The following induces an error, until -std is added to get
4739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4740 array size at least. It's necessary to write '\x00'==0 to get something
4741 that's true only with -std. */
4742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4745 inside strings and character constants. */
4746 #define FOO(x) 'x'
4747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4749 int test (int i, double x);
4750 struct s1 {int (*f) (int a);};
4751 struct s2 {int (*f) (double a);};
4752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4753 int argc;
4754 char **argv;
4756 main ()
4758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4760 return 0;
4762 _ACEOF
4763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_c89=$ac_arg
4770 rm -f core conftest.err conftest.$ac_objext
4771 test "x$ac_cv_prog_cc_c89" != "xno" && break
4772 done
4773 rm -f conftest.$ac_ext
4774 CC=$ac_save_CC
4777 # AC_CACHE_VAL
4778 case "x$ac_cv_prog_cc_c89" in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 $as_echo "none needed" >&6; } ;;
4782 xno)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 $as_echo "unsupported" >&6; } ;;
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4789 esac
4790 if test "x$ac_cv_prog_cc_c89" != xno; then :
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 ac_ext=cpp
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 if test -z "$CXX"; then
4806 if test -n "$CCC"; then
4807 CXX=$CCC
4808 else
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_CXX+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CXX"; then
4820 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 CXX=$ac_cv_prog_CXX
4840 if test -n "$CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4842 $as_echo "$CXX" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CXX" && break
4850 done
4852 if test -z "$CXX"; then
4853 ac_ct_CXX=$CXX
4854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_CXX"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4884 if test -n "$ac_ct_CXX"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4886 $as_echo "$ac_ct_CXX" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CXX" && break
4894 done
4896 if test "x$ac_ct_CXX" = x; then
4897 CXX="g++"
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CXX=$ac_ct_CXX
4911 # Provide some information about the compiler.
4912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4913 set X $ac_compile
4914 ac_compiler=$2
4915 for ac_option in --version -v -V -qversion; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 $as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4924 ac_status=$?
4925 if test -s conftest.err; then
4926 sed '10a\
4927 ... rest of stderr output deleted ...
4928 10q' conftest.err >conftest.er1
4929 cat conftest.er1 >&5
4931 rm -f conftest.er1 conftest.err
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4934 done
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4937 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4938 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4945 main ()
4947 #ifndef __GNUC__
4948 choke me
4949 #endif
4952 return 0;
4954 _ACEOF
4955 if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_compiler_gnu=yes
4957 else
4958 ac_compiler_gnu=no
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4965 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4966 if test $ac_compiler_gnu = yes; then
4967 GXX=yes
4968 else
4969 GXX=
4971 ac_test_CXXFLAGS=${CXXFLAGS+set}
4972 ac_save_CXXFLAGS=$CXXFLAGS
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4975 if ${ac_cv_prog_cxx_g+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4979 ac_cxx_werror_flag=yes
4980 ac_cv_prog_cxx_g=no
4981 CXXFLAGS="-g"
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4994 ac_cv_prog_cxx_g=yes
4995 else
4996 CXXFLAGS=""
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 main ()
5005 return 0;
5007 _ACEOF
5008 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 else
5011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5012 CXXFLAGS="-g"
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5017 main ()
5021 return 0;
5023 _ACEOF
5024 if ac_fn_cxx_try_compile "$LINENO"; then :
5025 ac_cv_prog_cxx_g=yes
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5035 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5036 if test "$ac_test_CXXFLAGS" = set; then
5037 CXXFLAGS=$ac_save_CXXFLAGS
5038 elif test $ac_cv_prog_cxx_g = yes; then
5039 if test "$GXX" = yes; then
5040 CXXFLAGS="-g -O2"
5041 else
5042 CXXFLAGS="-g"
5044 else
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-O2"
5047 else
5048 CXXFLAGS=
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_GNATBIND+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$GNATBIND"; then
5069 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 GNATBIND=$ac_cv_prog_GNATBIND
5089 if test -n "$GNATBIND"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5091 $as_echo "$GNATBIND" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5099 if test -z "$ac_cv_prog_GNATBIND"; then
5100 ac_ct_GNATBIND=$GNATBIND
5101 # Extract the first word of "gnatbind", so it can be a program name with args.
5102 set dummy gnatbind; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$ac_ct_GNATBIND"; then
5109 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5124 IFS=$as_save_IFS
5128 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5129 if test -n "$ac_ct_GNATBIND"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5131 $as_echo "$ac_ct_GNATBIND" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5137 if test "x$ac_ct_GNATBIND" = x; then
5138 GNATBIND="no"
5139 else
5140 case $cross_compiling:$ac_tool_warned in
5141 yes:)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146 GNATBIND=$ac_ct_GNATBIND
5148 else
5149 GNATBIND="$ac_cv_prog_GNATBIND"
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_GNATMAKE+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$GNATMAKE"; then
5161 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5174 done
5175 done
5176 IFS=$as_save_IFS
5180 GNATMAKE=$ac_cv_prog_GNATMAKE
5181 if test -n "$GNATMAKE"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5183 $as_echo "$GNATMAKE" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_GNATMAKE"; then
5192 ac_ct_GNATMAKE=$GNATMAKE
5193 # Extract the first word of "gnatmake", so it can be a program name with args.
5194 set dummy gnatmake; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$ac_ct_GNATMAKE"; then
5201 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5216 IFS=$as_save_IFS
5220 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5221 if test -n "$ac_ct_GNATMAKE"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5223 $as_echo "$ac_ct_GNATMAKE" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_GNATMAKE" = x; then
5230 GNATMAKE="no"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238 GNATMAKE=$ac_ct_GNATMAKE
5240 else
5241 GNATMAKE="$ac_cv_prog_GNATMAKE"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5245 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5246 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat >conftest.adb <<EOF
5250 pragma Warnings (Off);
5251 with System.CRTL;
5252 pragma Warnings (On);
5253 use type System.CRTL.int64;
5254 procedure conftest is begin null; end conftest;
5256 acx_cv_cc_gcc_supports_ada=no
5257 # There is a bug in old released versions of GCC which causes the
5258 # driver to exit successfully when the appropriate language module
5259 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5260 # Therefore we must check for the error message as well as an
5261 # unsuccessful exit.
5262 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5263 # given a .adb file, but produce no object file. So we must check
5264 # if an object file was really produced to guard against this.
5265 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5266 if test x"$errors" = x && test -f conftest.$ac_objext; then
5267 acx_cv_cc_gcc_supports_ada=yes
5269 rm -f conftest.*
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5272 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5274 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5275 have_gnat=yes
5276 else
5277 have_gnat=no
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_GDC+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$GDC"; then
5291 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 GDC=$ac_cv_prog_GDC
5311 if test -n "$GDC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5313 $as_echo "$GDC" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_GDC"; then
5322 ac_ct_GDC=$GDC
5323 # Extract the first word of "gdc", so it can be a program name with args.
5324 set dummy gdc; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$ac_ct_GDC"; then
5331 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_ac_ct_GDC="gdc"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5351 if test -n "$ac_ct_GDC"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5353 $as_echo "$ac_ct_GDC" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_GDC" = x; then
5360 GDC="no"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 GDC=$ac_ct_GDC
5370 else
5371 GDC="$ac_cv_prog_GDC"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5375 $as_echo_n "checking whether the D compiler works... " >&6; }
5376 if ${acx_cv_d_compiler_works+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat >conftest.d <<EOF
5380 module conftest; int main() { return 0; }
5382 acx_cv_d_compiler_works=no
5383 if test "x$GDC" != xno; then
5384 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5385 if test x"$errors" = x && test -f conftest.$ac_objext; then
5386 acx_cv_d_compiler_works=yes
5388 rm -f conftest.*
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5392 $as_echo "$acx_cv_d_compiler_works" >&6; }
5393 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5394 have_gdc=yes
5395 else
5396 have_gdc=no
5400 # Do configure tests with the C++ compiler, since that's what we build with.
5401 ac_ext=cpp
5402 ac_cpp='$CXXCPP $CPPFLAGS'
5403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5408 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5409 # optimizations to be activated explicitly by the toplevel.
5410 case "$CC" in
5411 */prev-gcc/xgcc*) ;;
5412 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5413 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5414 esac
5419 # Determine PICFLAG for target gnatlib.
5424 case "${target}" in
5425 # PIC is the default on some targets or must not be used.
5426 *-*-darwin*)
5427 # For darwin, common symbols are not allowed in MH_DYLIB files
5428 case "${CFLAGS}" in
5429 # If we are using a compiler supporting mdynamic-no-pic
5430 # and the option has been tested as safe to add, then cancel
5431 # it here, since the code generated is incompatible with shared
5432 # libs.
5433 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5434 *) PICFLAG_FOR_TARGET=-fno-common ;;
5435 esac
5437 alpha*-dec-osf5*)
5438 # PIC is the default.
5440 hppa*64*-*-hpux*)
5441 # PIC is the default for 64-bit PA HP-UX.
5443 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5445 i[34567]86-*-mingw* | x86_64-*-mingw*)
5447 i[34567]86-*-interix[3-9]*)
5448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5449 # Instead, we relocate shared libraries at runtime.
5451 i[34567]86-*-nto-qnx*)
5452 # QNX uses GNU C++, but need to define -shared option too, otherwise
5453 # it will coredump.
5454 PICFLAG_FOR_TARGET='-fPIC -shared'
5456 i[34567]86-pc-msdosdjgpp*)
5457 # DJGPP does not support shared libraries at all.
5459 ia64*-*-hpux*)
5460 # On IA64 HP-UX, PIC is the default but the pic flag
5461 # sets the default TLS model and affects inlining.
5462 PICFLAG_FOR_TARGET=-fPIC
5464 loongarch*-*-*)
5465 PICFLAG_FOR_TARGET=-fpic
5467 mips-sgi-irix6*)
5468 # PIC is the default.
5470 rs6000-ibm-aix* | powerpc-ibm-aix*)
5471 # All AIX code is PIC.
5474 # Some targets support both -fPIC and -fpic, but prefer the latter.
5475 # FIXME: Why?
5476 i[34567]86-*-* | x86_64-*-*)
5477 PICFLAG_FOR_TARGET=-fpic
5479 # FIXME: Override -fPIC default in libgcc only?
5480 sh-*-linux* | sh[2346lbe]*-*-linux*)
5481 PICFLAG_FOR_TARGET=-fpic
5483 sh*-*-netbsd*)
5484 PICFLAG_FOR_TARGET=-fpic
5486 # Default to -fPIC unless specified otherwise.
5488 PICFLAG_FOR_TARGET=-fPIC
5490 esac
5492 # If the user explicitly uses -fpic/-fPIC, keep that.
5493 case "${CFLAGS_FOR_TARGET}" in
5494 *-fpic*)
5495 PICFLAG_FOR_TARGET=-fpic
5497 *-fPIC*)
5498 PICFLAG_FOR_TARGET=-fPIC
5500 esac
5504 # -------------------------
5505 # Check C compiler features
5506 # -------------------------
5509 ac_ext=cpp
5510 ac_cpp='$CXXCPP $CPPFLAGS'
5511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5515 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5516 if test -z "$CXXCPP"; then
5517 if ${ac_cv_prog_CXXCPP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 # Double quotes because CXXCPP needs to be expanded
5521 for CXXCPP in "$CXX -E" "/lib/cpp"
5523 ac_preproc_ok=false
5524 for ac_cxx_preproc_warn_flag in '' yes
5526 # Use a header file that comes with gcc, so configuring glibc
5527 # with a fresh cross-compiler works.
5528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529 # <limits.h> exists even on freestanding compilers.
5530 # On the NeXT, cc -E runs the code through the compiler's parser,
5531 # not just through cpp. "Syntax error" is here to catch this case.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #ifdef __STDC__
5535 # include <limits.h>
5536 #else
5537 # include <assert.h>
5538 #endif
5539 Syntax error
5540 _ACEOF
5541 if ac_fn_cxx_try_cpp "$LINENO"; then :
5543 else
5544 # Broken: fails on valid input.
5545 continue
5547 rm -f conftest.err conftest.i conftest.$ac_ext
5549 # OK, works on sane cases. Now check whether nonexistent headers
5550 # can be detected and how.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <ac_nonexistent.h>
5554 _ACEOF
5555 if ac_fn_cxx_try_cpp "$LINENO"; then :
5556 # Broken: success on invalid input.
5557 continue
5558 else
5559 # Passes both tests.
5560 ac_preproc_ok=:
5561 break
5563 rm -f conftest.err conftest.i conftest.$ac_ext
5565 done
5566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5567 rm -f conftest.i conftest.err conftest.$ac_ext
5568 if $ac_preproc_ok; then :
5569 break
5572 done
5573 ac_cv_prog_CXXCPP=$CXXCPP
5576 CXXCPP=$ac_cv_prog_CXXCPP
5577 else
5578 ac_cv_prog_CXXCPP=$CXXCPP
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5581 $as_echo "$CXXCPP" >&6; }
5582 ac_preproc_ok=false
5583 for ac_cxx_preproc_warn_flag in '' yes
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598 Syntax error
5599 _ACEOF
5600 if ac_fn_cxx_try_cpp "$LINENO"; then :
5602 else
5603 # Broken: fails on valid input.
5604 continue
5606 rm -f conftest.err conftest.i conftest.$ac_ext
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5613 _ACEOF
5614 if ac_fn_cxx_try_cpp "$LINENO"; then :
5615 # Broken: success on invalid input.
5616 continue
5617 else
5618 # Passes both tests.
5619 ac_preproc_ok=:
5620 break
5622 rm -f conftest.err conftest.i conftest.$ac_ext
5624 done
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.i conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then :
5629 else
5630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5632 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5633 See \`config.log' for more details" "$LINENO" 5; }
5636 ac_ext=cpp
5637 ac_cpp='$CXXCPP $CPPFLAGS'
5638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5644 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5645 if ${ac_cv_path_GREP+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -z "$GREP"; then
5649 ac_path_GREP_found=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_prog in grep ggrep; do
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5659 as_fn_executable_p "$ac_path_GREP" || continue
5660 # Check for GNU ac_path_GREP and select it if it is found.
5661 # Check for GNU $ac_path_GREP
5662 case `"$ac_path_GREP" --version 2>&1` in
5663 *GNU*)
5664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5666 ac_count=0
5667 $as_echo_n 0123456789 >"conftest.in"
5668 while :
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 $as_echo 'GREP' >> "conftest.nl"
5674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5676 as_fn_arith $ac_count + 1 && ac_count=$as_val
5677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_GREP="$ac_path_GREP"
5680 ac_path_GREP_max=$ac_count
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5684 done
5685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5686 esac
5688 $ac_path_GREP_found && break 3
5689 done
5690 done
5691 done
5692 IFS=$as_save_IFS
5693 if test -z "$ac_cv_path_GREP"; then
5694 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5696 else
5697 ac_cv_path_GREP=$GREP
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5702 $as_echo "$ac_cv_path_GREP" >&6; }
5703 GREP="$ac_cv_path_GREP"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5707 $as_echo_n "checking for egrep... " >&6; }
5708 if ${ac_cv_path_EGREP+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5712 then ac_cv_path_EGREP="$GREP -E"
5713 else
5714 if test -z "$EGREP"; then
5715 ac_path_EGREP_found=false
5716 # Loop through the user's path and test for each of PROGNAME-LIST
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_prog in egrep; do
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5725 as_fn_executable_p "$ac_path_EGREP" || continue
5726 # Check for GNU ac_path_EGREP and select it if it is found.
5727 # Check for GNU $ac_path_EGREP
5728 case `"$ac_path_EGREP" --version 2>&1` in
5729 *GNU*)
5730 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5732 ac_count=0
5733 $as_echo_n 0123456789 >"conftest.in"
5734 while :
5736 cat "conftest.in" "conftest.in" >"conftest.tmp"
5737 mv "conftest.tmp" "conftest.in"
5738 cp "conftest.in" "conftest.nl"
5739 $as_echo 'EGREP' >> "conftest.nl"
5740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5742 as_fn_arith $ac_count + 1 && ac_count=$as_val
5743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5744 # Best one so far, save it but keep looking for a better one
5745 ac_cv_path_EGREP="$ac_path_EGREP"
5746 ac_path_EGREP_max=$ac_count
5748 # 10*(2^10) chars as input seems more than enough
5749 test $ac_count -gt 10 && break
5750 done
5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 esac
5754 $ac_path_EGREP_found && break 3
5755 done
5756 done
5757 done
5758 IFS=$as_save_IFS
5759 if test -z "$ac_cv_path_EGREP"; then
5760 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5762 else
5763 ac_cv_path_EGREP=$EGREP
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5769 $as_echo "$ac_cv_path_EGREP" >&6; }
5770 EGREP="$ac_cv_path_EGREP"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5774 $as_echo_n "checking for ANSI C header files... " >&6; }
5775 if ${ac_cv_header_stdc+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <stdlib.h>
5781 #include <stdarg.h>
5782 #include <string.h>
5783 #include <float.h>
5786 main ()
5790 return 0;
5792 _ACEOF
5793 if ac_fn_cxx_try_compile "$LINENO"; then :
5794 ac_cv_header_stdc=yes
5795 else
5796 ac_cv_header_stdc=no
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 if test $ac_cv_header_stdc = yes; then
5801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 #include <string.h>
5806 _ACEOF
5807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808 $EGREP "memchr" >/dev/null 2>&1; then :
5810 else
5811 ac_cv_header_stdc=no
5813 rm -f conftest*
5817 if test $ac_cv_header_stdc = yes; then
5818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <stdlib.h>
5823 _ACEOF
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5825 $EGREP "free" >/dev/null 2>&1; then :
5827 else
5828 ac_cv_header_stdc=no
5830 rm -f conftest*
5834 if test $ac_cv_header_stdc = yes; then
5835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5836 if test "$cross_compiling" = yes; then :
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ctype.h>
5842 #include <stdlib.h>
5843 #if ((' ' & 0x0FF) == 0x020)
5844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5846 #else
5847 # define ISLOWER(c) \
5848 (('a' <= (c) && (c) <= 'i') \
5849 || ('j' <= (c) && (c) <= 'r') \
5850 || ('s' <= (c) && (c) <= 'z'))
5851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5852 #endif
5854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5856 main ()
5858 int i;
5859 for (i = 0; i < 256; i++)
5860 if (XOR (islower (i), ISLOWER (i))
5861 || toupper (i) != TOUPPER (i))
5862 return 2;
5863 return 0;
5865 _ACEOF
5866 if ac_fn_cxx_try_run "$LINENO"; then :
5868 else
5869 ac_cv_header_stdc=no
5871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5872 conftest.$ac_objext conftest.beam conftest.$ac_ext
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5878 $as_echo "$ac_cv_header_stdc" >&6; }
5879 if test $ac_cv_header_stdc = yes; then
5881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5887 inttypes.h stdint.h unistd.h
5888 do :
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 _ACEOF
5899 done
5903 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5904 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5905 MINIX=yes
5906 else
5907 MINIX=
5911 if test "$MINIX" = yes; then
5913 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5916 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5919 $as_echo "#define _MINIX 1" >>confdefs.h
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5925 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5926 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5932 # define __EXTENSIONS__ 1
5933 $ac_includes_default
5935 main ()
5939 return 0;
5941 _ACEOF
5942 if ac_fn_cxx_try_compile "$LINENO"; then :
5943 ac_cv_safe_to_define___extensions__=yes
5944 else
5945 ac_cv_safe_to_define___extensions__=no
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5950 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5951 test $ac_cv_safe_to_define___extensions__ = yes &&
5952 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5954 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5956 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5958 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5960 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5964 ac_ext=c
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5971 # On Suns, sometimes $CPP names a directory.
5972 if test -n "$CPP" && test -d "$CPP"; then
5973 CPP=
5975 if test -z "$CPP"; then
5976 if ${ac_cv_prog_CPP+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 # Double quotes because CPP needs to be expanded
5980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5982 ac_preproc_ok=false
5983 for ac_c_preproc_warn_flag in '' yes
5985 # Use a header file that comes with gcc, so configuring glibc
5986 # with a fresh cross-compiler works.
5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 # <limits.h> exists even on freestanding compilers.
5989 # On the NeXT, cc -E runs the code through the compiler's parser,
5990 # not just through cpp. "Syntax error" is here to catch this case.
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #ifdef __STDC__
5994 # include <limits.h>
5995 #else
5996 # include <assert.h>
5997 #endif
5998 Syntax error
5999 _ACEOF
6000 if ac_fn_c_try_cpp "$LINENO"; then :
6002 else
6003 # Broken: fails on valid input.
6004 continue
6006 rm -f conftest.err conftest.i conftest.$ac_ext
6008 # OK, works on sane cases. Now check whether nonexistent headers
6009 # can be detected and how.
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #include <ac_nonexistent.h>
6013 _ACEOF
6014 if ac_fn_c_try_cpp "$LINENO"; then :
6015 # Broken: success on invalid input.
6016 continue
6017 else
6018 # Passes both tests.
6019 ac_preproc_ok=:
6020 break
6022 rm -f conftest.err conftest.i conftest.$ac_ext
6024 done
6025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026 rm -f conftest.i conftest.err conftest.$ac_ext
6027 if $ac_preproc_ok; then :
6028 break
6031 done
6032 ac_cv_prog_CPP=$CPP
6035 CPP=$ac_cv_prog_CPP
6036 else
6037 ac_cv_prog_CPP=$CPP
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6040 $as_echo "$CPP" >&6; }
6041 ac_preproc_ok=false
6042 for ac_c_preproc_warn_flag in '' yes
6044 # Use a header file that comes with gcc, so configuring glibc
6045 # with a fresh cross-compiler works.
6046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6047 # <limits.h> exists even on freestanding compilers.
6048 # On the NeXT, cc -E runs the code through the compiler's parser,
6049 # not just through cpp. "Syntax error" is here to catch this case.
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #ifdef __STDC__
6053 # include <limits.h>
6054 #else
6055 # include <assert.h>
6056 #endif
6057 Syntax error
6058 _ACEOF
6059 if ac_fn_c_try_cpp "$LINENO"; then :
6061 else
6062 # Broken: fails on valid input.
6063 continue
6065 rm -f conftest.err conftest.i conftest.$ac_ext
6067 # OK, works on sane cases. Now check whether nonexistent headers
6068 # can be detected and how.
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <ac_nonexistent.h>
6072 _ACEOF
6073 if ac_fn_c_try_cpp "$LINENO"; then :
6074 # Broken: success on invalid input.
6075 continue
6076 else
6077 # Passes both tests.
6078 ac_preproc_ok=:
6079 break
6081 rm -f conftest.err conftest.i conftest.$ac_ext
6083 done
6084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6085 rm -f conftest.i conftest.err conftest.$ac_ext
6086 if $ac_preproc_ok; then :
6088 else
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6092 See \`config.log' for more details" "$LINENO" 5; }
6095 ac_ext=cpp
6096 ac_cpp='$CXXCPP $CPPFLAGS'
6097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6102 $as_echo_n "checking for inline... " >&6; }
6103 if ${ac_cv_c_inline+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 ac_cv_c_inline=no
6107 for ac_kw in inline __inline__ __inline; do
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #ifndef __cplusplus
6111 typedef int foo_t;
6112 static $ac_kw foo_t static_foo () {return 0; }
6113 $ac_kw foo_t foo () {return 0; }
6114 #endif
6116 _ACEOF
6117 if ac_fn_cxx_try_compile "$LINENO"; then :
6118 ac_cv_c_inline=$ac_kw
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 test "$ac_cv_c_inline" != no && break
6122 done
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6126 $as_echo "$ac_cv_c_inline" >&6; }
6128 case $ac_cv_c_inline in
6129 inline | yes) ;;
6131 case $ac_cv_c_inline in
6132 no) ac_val=;;
6133 *) ac_val=$ac_cv_c_inline;;
6134 esac
6135 cat >>confdefs.h <<_ACEOF
6136 #ifndef __cplusplus
6137 #define inline $ac_val
6138 #endif
6139 _ACEOF
6141 esac
6144 # Check whether --enable-largefile was given.
6145 if test "${enable_largefile+set}" = set; then :
6146 enableval=$enable_largefile;
6149 if test "$enable_largefile" != no; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6152 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6153 if ${ac_cv_sys_largefile_CC+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 ac_cv_sys_largefile_CC=no
6157 if test "$GCC" != yes; then
6158 ac_save_CC=$CC
6159 while :; do
6160 # IRIX 6.2 and later do not support large files by default,
6161 # so use the C compiler's -n32 option if that helps.
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <sys/types.h>
6165 /* Check that off_t can represent 2**63 - 1 correctly.
6166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6167 since some C++ compilers masquerading as C compilers
6168 incorrectly reject 9223372036854775807. */
6169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6171 && LARGE_OFF_T % 2147483647 == 1)
6172 ? 1 : -1];
6174 main ()
6178 return 0;
6180 _ACEOF
6181 if ac_fn_cxx_try_compile "$LINENO"; then :
6182 break
6184 rm -f core conftest.err conftest.$ac_objext
6185 CC="$CC -n32"
6186 if ac_fn_cxx_try_compile "$LINENO"; then :
6187 ac_cv_sys_largefile_CC=' -n32'; break
6189 rm -f core conftest.err conftest.$ac_objext
6190 break
6191 done
6192 CC=$ac_save_CC
6193 rm -f conftest.$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6197 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6198 if test "$ac_cv_sys_largefile_CC" != no; then
6199 CC=$CC$ac_cv_sys_largefile_CC
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6203 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6204 if ${ac_cv_sys_file_offset_bits+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 while :; do
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <sys/types.h>
6211 /* Check that off_t can represent 2**63 - 1 correctly.
6212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6213 since some C++ compilers masquerading as C compilers
6214 incorrectly reject 9223372036854775807. */
6215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6217 && LARGE_OFF_T % 2147483647 == 1)
6218 ? 1 : -1];
6220 main ()
6224 return 0;
6226 _ACEOF
6227 if ac_fn_cxx_try_compile "$LINENO"; then :
6228 ac_cv_sys_file_offset_bits=no; break
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #define _FILE_OFFSET_BITS 64
6234 #include <sys/types.h>
6235 /* Check that off_t can represent 2**63 - 1 correctly.
6236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6237 since some C++ compilers masquerading as C compilers
6238 incorrectly reject 9223372036854775807. */
6239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6241 && LARGE_OFF_T % 2147483647 == 1)
6242 ? 1 : -1];
6244 main ()
6248 return 0;
6250 _ACEOF
6251 if ac_fn_cxx_try_compile "$LINENO"; then :
6252 ac_cv_sys_file_offset_bits=64; break
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 ac_cv_sys_file_offset_bits=unknown
6256 break
6257 done
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6260 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6261 case $ac_cv_sys_file_offset_bits in #(
6262 no | unknown) ;;
6264 cat >>confdefs.h <<_ACEOF
6265 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6266 _ACEOF
6268 esac
6269 rm -rf conftest*
6270 if test $ac_cv_sys_file_offset_bits = unknown; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6272 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6273 if ${ac_cv_sys_large_files+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 while :; do
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <sys/types.h>
6280 /* Check that off_t can represent 2**63 - 1 correctly.
6281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6282 since some C++ compilers masquerading as C compilers
6283 incorrectly reject 9223372036854775807. */
6284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6286 && LARGE_OFF_T % 2147483647 == 1)
6287 ? 1 : -1];
6289 main ()
6293 return 0;
6295 _ACEOF
6296 if ac_fn_cxx_try_compile "$LINENO"; then :
6297 ac_cv_sys_large_files=no; break
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #define _LARGE_FILES 1
6303 #include <sys/types.h>
6304 /* Check that off_t can represent 2**63 - 1 correctly.
6305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6306 since some C++ compilers masquerading as C compilers
6307 incorrectly reject 9223372036854775807. */
6308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6310 && LARGE_OFF_T % 2147483647 == 1)
6311 ? 1 : -1];
6313 main ()
6317 return 0;
6319 _ACEOF
6320 if ac_fn_cxx_try_compile "$LINENO"; then :
6321 ac_cv_sys_large_files=1; break
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 ac_cv_sys_large_files=unknown
6325 break
6326 done
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6329 $as_echo "$ac_cv_sys_large_files" >&6; }
6330 case $ac_cv_sys_large_files in #(
6331 no | unknown) ;;
6333 cat >>confdefs.h <<_ACEOF
6334 #define _LARGE_FILES $ac_cv_sys_large_files
6335 _ACEOF
6337 esac
6338 rm -rf conftest*
6344 # The cast to long int works around a bug in the HP C Compiler
6345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6347 # This bug is HP SR number 8606223364.
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6349 $as_echo_n "checking size of ino_t... " >&6; }
6350 if ${ac_cv_sizeof_ino_t+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6355 else
6356 if test "$ac_cv_type_ino_t" = yes; then
6357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6359 as_fn_error 77 "cannot compute sizeof (ino_t)
6360 See \`config.log' for more details" "$LINENO" 5; }
6361 else
6362 ac_cv_sizeof_ino_t=0
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6368 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6372 cat >>confdefs.h <<_ACEOF
6373 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6374 _ACEOF
6377 # The cast to long int works around a bug in the HP C Compiler
6378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6380 # This bug is HP SR number 8606223364.
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6382 $as_echo_n "checking size of dev_t... " >&6; }
6383 if ${ac_cv_sizeof_dev_t+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6388 else
6389 if test "$ac_cv_type_dev_t" = yes; then
6390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6392 as_fn_error 77 "cannot compute sizeof (dev_t)
6393 See \`config.log' for more details" "$LINENO" 5; }
6394 else
6395 ac_cv_sizeof_dev_t=0
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6401 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6405 cat >>confdefs.h <<_ACEOF
6406 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6407 _ACEOF
6411 # Select the right stat being able to handle 64bit inodes, if needed.
6412 if test "$enable_largefile" != no; then
6413 case "$host, $build" in
6414 *-*-aix*,*|*,*-*-aix*)
6415 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6417 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6419 fi;;
6420 esac
6424 # sizeof(char) is 1 by definition.
6425 # The cast to long int works around a bug in the HP C Compiler
6426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6428 # This bug is HP SR number 8606223364.
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6430 $as_echo_n "checking size of void *... " >&6; }
6431 if ${ac_cv_sizeof_void_p+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6436 else
6437 if test "$ac_cv_type_void_p" = yes; then
6438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6440 as_fn_error 77 "cannot compute sizeof (void *)
6441 See \`config.log' for more details" "$LINENO" 5; }
6442 else
6443 ac_cv_sizeof_void_p=0
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6449 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6453 cat >>confdefs.h <<_ACEOF
6454 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6455 _ACEOF
6458 # The cast to long int works around a bug in the HP C Compiler
6459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6461 # This bug is HP SR number 8606223364.
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6463 $as_echo_n "checking size of short... " >&6; }
6464 if ${ac_cv_sizeof_short+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6469 else
6470 if test "$ac_cv_type_short" = yes; then
6471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6473 as_fn_error 77 "cannot compute sizeof (short)
6474 See \`config.log' for more details" "$LINENO" 5; }
6475 else
6476 ac_cv_sizeof_short=0
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6482 $as_echo "$ac_cv_sizeof_short" >&6; }
6486 cat >>confdefs.h <<_ACEOF
6487 #define SIZEOF_SHORT $ac_cv_sizeof_short
6488 _ACEOF
6491 # The cast to long int works around a bug in the HP C Compiler
6492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6494 # This bug is HP SR number 8606223364.
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6496 $as_echo_n "checking size of int... " >&6; }
6497 if ${ac_cv_sizeof_int+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6502 else
6503 if test "$ac_cv_type_int" = yes; then
6504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6506 as_fn_error 77 "cannot compute sizeof (int)
6507 See \`config.log' for more details" "$LINENO" 5; }
6508 else
6509 ac_cv_sizeof_int=0
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6515 $as_echo "$ac_cv_sizeof_int" >&6; }
6519 cat >>confdefs.h <<_ACEOF
6520 #define SIZEOF_INT $ac_cv_sizeof_int
6521 _ACEOF
6524 # The cast to long int works around a bug in the HP C Compiler
6525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6527 # This bug is HP SR number 8606223364.
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6529 $as_echo_n "checking size of long... " >&6; }
6530 if ${ac_cv_sizeof_long+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6535 else
6536 if test "$ac_cv_type_long" = yes; then
6537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6539 as_fn_error 77 "cannot compute sizeof (long)
6540 See \`config.log' for more details" "$LINENO" 5; }
6541 else
6542 ac_cv_sizeof_long=0
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6548 $as_echo "$ac_cv_sizeof_long" >&6; }
6552 cat >>confdefs.h <<_ACEOF
6553 #define SIZEOF_LONG $ac_cv_sizeof_long
6554 _ACEOF
6557 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6558 if test "x$ac_cv_type_long_long" = xyes; then :
6560 cat >>confdefs.h <<_ACEOF
6561 #define HAVE_LONG_LONG 1
6562 _ACEOF
6564 # The cast to long int works around a bug in the HP C Compiler
6565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6567 # This bug is HP SR number 8606223364.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6569 $as_echo_n "checking size of long long... " >&6; }
6570 if ${ac_cv_sizeof_long_long+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6575 else
6576 if test "$ac_cv_type_long_long" = yes; then
6577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6579 as_fn_error 77 "cannot compute sizeof (long long)
6580 See \`config.log' for more details" "$LINENO" 5; }
6581 else
6582 ac_cv_sizeof_long_long=0
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6588 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6592 cat >>confdefs.h <<_ACEOF
6593 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6594 _ACEOF
6599 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6600 case $ac_cv_c_int8_t in #(
6601 no|yes) ;; #(
6604 cat >>confdefs.h <<_ACEOF
6605 #define int8_t $ac_cv_c_int8_t
6606 _ACEOF
6608 esac
6610 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6611 case $ac_cv_c_int16_t in #(
6612 no|yes) ;; #(
6615 cat >>confdefs.h <<_ACEOF
6616 #define int16_t $ac_cv_c_int16_t
6617 _ACEOF
6619 esac
6621 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6622 case $ac_cv_c_int32_t in #(
6623 no|yes) ;; #(
6626 cat >>confdefs.h <<_ACEOF
6627 #define int32_t $ac_cv_c_int32_t
6628 _ACEOF
6630 esac
6632 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6633 case $ac_cv_c_int64_t in #(
6634 no|yes) ;; #(
6637 cat >>confdefs.h <<_ACEOF
6638 #define int64_t $ac_cv_c_int64_t
6639 _ACEOF
6641 esac
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6645 $as_echo_n "checking for unsigned long long int... " >&6; }
6646 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_cv_type_unsigned_long_long_int=yes
6650 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6654 /* For now, do not test the preprocessor; as of 2007 there are too many
6655 implementations with broken preprocessors. Perhaps this can
6656 be revisited in 2012. In the meantime, code should not expect
6657 #if to work with literals wider than 32 bits. */
6658 /* Test literals. */
6659 long long int ll = 9223372036854775807ll;
6660 long long int nll = -9223372036854775807LL;
6661 unsigned long long int ull = 18446744073709551615ULL;
6662 /* Test constant expressions. */
6663 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6664 ? 1 : -1)];
6665 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6666 ? 1 : -1)];
6667 int i = 63;
6669 main ()
6671 /* Test availability of runtime routines for shift and division. */
6672 long long int llmax = 9223372036854775807ll;
6673 unsigned long long int ullmax = 18446744073709551615ull;
6674 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6675 | (llmax / ll) | (llmax % ll)
6676 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6677 | (ullmax / ull) | (ullmax % ull));
6679 return 0;
6682 _ACEOF
6683 if ac_fn_cxx_try_link "$LINENO"; then :
6685 else
6686 ac_cv_type_unsigned_long_long_int=no
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6693 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6694 if test $ac_cv_type_unsigned_long_long_int = yes; then
6696 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6703 $as_echo_n "checking for long long int... " >&6; }
6704 if ${ac_cv_type_long_long_int+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 ac_cv_type_long_long_int=yes
6708 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6709 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6710 if test $ac_cv_type_long_long_int = yes; then
6711 if test "$cross_compiling" = yes; then :
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <limits.h>
6717 #ifndef LLONG_MAX
6718 # define HALF \
6719 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6720 # define LLONG_MAX (HALF - 1 + HALF)
6721 #endif
6723 main ()
6725 long long int n = 1;
6726 int i;
6727 for (i = 0; ; i++)
6729 long long int m = n << i;
6730 if (m >> i != n)
6731 return 1;
6732 if (LLONG_MAX / 2 < m)
6733 break;
6735 return 0;
6737 return 0;
6739 _ACEOF
6740 if ac_fn_cxx_try_run "$LINENO"; then :
6742 else
6743 ac_cv_type_long_long_int=no
6745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6746 conftest.$ac_objext conftest.beam conftest.$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6753 $as_echo "$ac_cv_type_long_long_int" >&6; }
6754 if test $ac_cv_type_long_long_int = yes; then
6756 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6762 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6763 if test "x$ac_cv_type_intmax_t" = xyes; then :
6765 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6767 else
6768 test $ac_cv_type_long_long_int = yes \
6769 && ac_type='long long int' \
6770 || ac_type='long int'
6772 cat >>confdefs.h <<_ACEOF
6773 #define intmax_t $ac_type
6774 _ACEOF
6780 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6781 if test "x$ac_cv_type_intptr_t" = xyes; then :
6783 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6785 else
6786 for ac_type in 'int' 'long int' 'long long int'; do
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 $ac_includes_default
6791 main ()
6793 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6794 test_array [0] = 0;
6795 return test_array [0];
6798 return 0;
6800 _ACEOF
6801 if ac_fn_cxx_try_compile "$LINENO"; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define intptr_t $ac_type
6805 _ACEOF
6807 ac_type=
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 test -z "$ac_type" && break
6811 done
6815 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6816 case $ac_cv_c_uint8_t in #(
6817 no|yes) ;; #(
6820 $as_echo "#define _UINT8_T 1" >>confdefs.h
6823 cat >>confdefs.h <<_ACEOF
6824 #define uint8_t $ac_cv_c_uint8_t
6825 _ACEOF
6827 esac
6829 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6830 case $ac_cv_c_uint16_t in #(
6831 no|yes) ;; #(
6835 cat >>confdefs.h <<_ACEOF
6836 #define uint16_t $ac_cv_c_uint16_t
6837 _ACEOF
6839 esac
6841 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6842 case $ac_cv_c_uint32_t in #(
6843 no|yes) ;; #(
6846 $as_echo "#define _UINT32_T 1" >>confdefs.h
6849 cat >>confdefs.h <<_ACEOF
6850 #define uint32_t $ac_cv_c_uint32_t
6851 _ACEOF
6853 esac
6855 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6856 case $ac_cv_c_uint64_t in #(
6857 no|yes) ;; #(
6860 $as_echo "#define _UINT64_T 1" >>confdefs.h
6863 cat >>confdefs.h <<_ACEOF
6864 #define uint64_t $ac_cv_c_uint64_t
6865 _ACEOF
6867 esac
6871 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6874 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6876 else
6877 test $ac_cv_type_unsigned_long_long_int = yes \
6878 && ac_type='unsigned long long int' \
6879 || ac_type='unsigned long int'
6881 cat >>confdefs.h <<_ACEOF
6882 #define uintmax_t $ac_type
6883 _ACEOF
6889 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6890 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6892 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6894 else
6895 for ac_type in 'unsigned int' 'unsigned long int' \
6896 'unsigned long long int'; do
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 $ac_includes_default
6901 main ()
6903 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6904 test_array [0] = 0;
6905 return test_array [0];
6908 return 0;
6910 _ACEOF
6911 if ac_fn_cxx_try_compile "$LINENO"; then :
6913 cat >>confdefs.h <<_ACEOF
6914 #define uintptr_t $ac_type
6915 _ACEOF
6917 ac_type=
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 test -z "$ac_type" && break
6921 done
6937 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6938 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6941 # check what underlying integer type int64_t uses
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6943 $as_echo_n "checking for int64_t underlying type... " >&6; }
6944 if ${ac_cv_int64_t_type+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6951 #ifdef HAVE_STDINT_H
6952 #include <stdint.h>
6953 #endif
6954 template <typename T> struct X { };
6955 template <>
6956 struct X<long> { typedef long t; };
6959 main ()
6961 X<int64_t>::t x;
6963 return 0;
6965 _ACEOF
6966 if ac_fn_cxx_try_compile "$LINENO"; then :
6967 ac_cv_int64_t_type=long
6968 else
6969 ac_cv_int64_t_type="long long"
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6974 $as_echo "$ac_cv_int64_t_type" >&6; }
6975 if test "$ac_cv_int64_t_type" = "long"; then
6977 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6983 #ifdef HAVE_STDINT_H
6984 #include <stdint.h>
6985 #endif
6986 template <typename T> struct X { };
6987 template <>
6988 struct X<long long> { typedef long long t; };
6991 main ()
6993 X<int64_t>::t x;
6995 return 0;
6997 _ACEOF
6998 if ac_fn_cxx_try_compile "$LINENO"; then :
7000 else
7001 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7007 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7008 if ${ac_cv_std_swap_in_utility+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 #include <utility>
7018 main ()
7020 int a, b; std::swap(a,b);
7022 return 0;
7024 _ACEOF
7025 if ac_fn_cxx_try_compile "$LINENO"; then :
7026 ac_cv_std_swap_in_utility=yes
7027 else
7028 ac_cv_std_swap_in_utility=no
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7033 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7034 if test $ac_cv_std_swap_in_utility = yes; then
7036 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7040 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7041 # If the host compiler is affected by the bug, and we build with optimization
7042 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7043 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7044 # Since there is no reliable feature check for the presence of this bug,
7045 # we simply use a GCC version number check. (This should never trigger for
7046 # stages 2 or 3 of a native bootstrap.)
7047 aliasing_flags=
7048 if test "$GCC" = yes; then
7049 saved_CXXFLAGS="$CXXFLAGS"
7051 # The following test compilation will succeed if and only if $CXX accepts
7052 # -fno-strict-aliasing *and* is older than GCC 4.3.
7053 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7055 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7059 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7060 #error compiler not affected by placement new aliasing bug
7061 #endif
7063 _ACEOF
7064 if ac_fn_cxx_try_compile "$LINENO"; then :
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 CXXFLAGS="$saved_CXXFLAGS"
7079 # ---------------------
7080 # Warnings and checking
7081 # ---------------------
7083 # Check $CC warning features (if it's GCC).
7084 # We want to use -pedantic, but we don't want warnings about
7085 # * 'long long'
7086 # * variadic macros
7087 # * overlong strings
7088 # * C++11 narrowing conversions in { }
7089 # So, we only use -pedantic if we can disable those warnings.
7091 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7092 # Check whether --enable-build-format-warnings was given.
7093 if test "${enable_build_format_warnings+set}" = set; then :
7094 enableval=$enable_build_format_warnings;
7095 else
7096 enable_build_format_warnings=yes
7099 if test $enable_build_format_warnings = no; then :
7100 wf_opt=-Wno-format
7101 else
7102 wf_opt=
7104 ac_ext=cpp
7105 ac_cpp='$CXXCPP $CPPFLAGS'
7106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7110 loose_warn=
7111 save_CXXFLAGS="$CXXFLAGS"
7112 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7113 # Do the check with the no- prefix removed since gcc silently
7114 # accepts any -Wno-* option on purpose
7115 case $real_option in
7116 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7117 *) option=$real_option ;;
7118 esac
7119 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7122 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7123 if eval \${$as_acx_Woption+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 CXXFLAGS="$option"
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7131 main ()
7135 return 0;
7137 _ACEOF
7138 if ac_fn_cxx_try_compile "$LINENO"; then :
7139 eval "$as_acx_Woption=yes"
7140 else
7141 eval "$as_acx_Woption=no"
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 eval ac_res=\$$as_acx_Woption
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7148 $as_echo "$ac_res" >&6; }
7149 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7150 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7152 done
7153 CXXFLAGS="$save_CXXFLAGS"
7154 ac_ext=cpp
7155 ac_cpp='$CXXCPP $CPPFLAGS'
7156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7162 ac_ext=c
7163 ac_cpp='$CPP $CPPFLAGS'
7164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168 c_loose_warn=
7169 save_CFLAGS="$CFLAGS"
7170 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7171 # Do the check with the no- prefix removed since gcc silently
7172 # accepts any -Wno-* option on purpose
7173 case $real_option in
7174 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7175 *) option=$real_option ;;
7176 esac
7177 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7180 $as_echo_n "checking whether $CC supports $option... " >&6; }
7181 if eval \${$as_acx_Woption+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 CFLAGS="$option"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7189 main ()
7193 return 0;
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 eval "$as_acx_Woption=yes"
7198 else
7199 eval "$as_acx_Woption=no"
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 eval ac_res=\$$as_acx_Woption
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7208 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7210 done
7211 CFLAGS="$save_CFLAGS"
7212 ac_ext=cpp
7213 ac_cpp='$CXXCPP $CPPFLAGS'
7214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7219 ac_ext=cpp
7220 ac_cpp='$CXXCPP $CPPFLAGS'
7221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7225 strict_warn=
7226 save_CXXFLAGS="$CXXFLAGS"
7227 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7228 # Do the check with the no- prefix removed since gcc silently
7229 # accepts any -Wno-* option on purpose
7230 case $real_option in
7231 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7232 *) option=$real_option ;;
7233 esac
7234 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7237 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7238 if eval \${$as_acx_Woption+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 CXXFLAGS="$option"
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7246 main ()
7250 return 0;
7252 _ACEOF
7253 if ac_fn_cxx_try_compile "$LINENO"; then :
7254 eval "$as_acx_Woption=yes"
7255 else
7256 eval "$as_acx_Woption=no"
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 eval ac_res=\$$as_acx_Woption
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7263 $as_echo "$ac_res" >&6; }
7264 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7265 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7267 done
7268 CXXFLAGS="$save_CXXFLAGS"
7269 ac_ext=cpp
7270 ac_cpp='$CXXCPP $CPPFLAGS'
7271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 c_strict_warn=
7283 save_CFLAGS="$CFLAGS"
7284 for real_option in -Wold-style-definition -Wc++-compat; do
7285 # Do the check with the no- prefix removed since gcc silently
7286 # accepts any -Wno-* option on purpose
7287 case $real_option in
7288 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7289 *) option=$real_option ;;
7290 esac
7291 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7294 $as_echo_n "checking whether $CC supports $option... " >&6; }
7295 if eval \${$as_acx_Woption+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 CFLAGS="$option"
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7303 main ()
7307 return 0;
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"; then :
7311 eval "$as_acx_Woption=yes"
7312 else
7313 eval "$as_acx_Woption=no"
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 eval ac_res=\$$as_acx_Woption
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7320 $as_echo "$ac_res" >&6; }
7321 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7322 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7324 done
7325 CFLAGS="$save_CFLAGS"
7326 ac_ext=cpp
7327 ac_cpp='$CXXCPP $CPPFLAGS'
7328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7333 ac_ext=cpp
7334 ac_cpp='$CXXCPP $CPPFLAGS'
7335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7339 # Do the check with the no- prefix removed from the warning options
7340 # since gcc silently accepts any -Wno-* option on purpose
7341 if test "$GXX" = yes; then :
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7343 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7344 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 save_CXXFLAGS="$CXXFLAGS"
7348 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7353 main ()
7357 return 0;
7359 _ACEOF
7360 if ac_fn_cxx_try_compile "$LINENO"; then :
7361 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7362 else
7363 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 CXXFLAGS="$save_CXXFLAGS"
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7369 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7370 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7371 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7375 ac_ext=cpp
7376 ac_cpp='$CXXCPP $CPPFLAGS'
7377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7382 ac_ext=cpp
7383 ac_cpp='$CXXCPP $CPPFLAGS'
7384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7388 # Check whether --enable-werror-always was given.
7389 if test "${enable_werror_always+set}" = set; then :
7390 enableval=$enable_werror_always;
7391 else
7392 enable_werror_always=no
7395 if test $enable_werror_always = yes; then :
7396 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7399 ac_ext=cpp
7400 ac_cpp='$CXXCPP $CPPFLAGS'
7401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7407 # The above macros do nothing if the compiler is not GCC. However, the
7408 # Makefile has more goo to add other flags, so these variables are used
7409 # to enable warnings only for GCC.
7410 warn_cflags=
7411 warn_cxxflags=
7412 if test "x$GCC" = "xyes"; then
7413 warn_cflags='$(GCC_WARN_CFLAGS)'
7414 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7419 # Disable exceptions and RTTI if building with g++
7420 ac_ext=c
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7426 noexception_flags=
7427 save_CFLAGS="$CFLAGS"
7428 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7429 # Do the check with the no- prefix removed since gcc silently
7430 # accepts any -Wno-* option on purpose
7431 case $real_option in
7432 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7433 *) option=$real_option ;;
7434 esac
7435 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7438 $as_echo_n "checking whether $CC supports $option... " >&6; }
7439 if eval \${$as_acx_Woption+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 CFLAGS="$option"
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7447 main ()
7451 return 0;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 eval "$as_acx_Woption=yes"
7456 else
7457 eval "$as_acx_Woption=no"
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 eval ac_res=\$$as_acx_Woption
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7464 $as_echo "$ac_res" >&6; }
7465 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7466 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7468 done
7469 CFLAGS="$save_CFLAGS"
7470 ac_ext=cpp
7471 ac_cpp='$CXXCPP $CPPFLAGS'
7472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7478 # Enable expensive internal checks
7479 is_release=
7480 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7481 is_release=yes
7484 # Check whether --enable-checking was given.
7485 if test "${enable_checking+set}" = set; then :
7486 enableval=$enable_checking; ac_checking_flags="${enableval}"
7487 else
7489 # Determine the default checks.
7490 if test x$is_release = x ; then
7491 ac_checking_flags=yes,extra
7492 else
7493 ac_checking_flags=release
7497 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7498 for check in release $ac_checking_flags
7500 case $check in
7501 # these set all the flags to specific states
7502 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7503 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7504 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7505 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7506 ac_tree_checking=1 ; ac_valgrind_checking= ;
7507 ac_types_checking=1 ;;
7508 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7509 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7510 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7511 ac_rtlflag_checking= ; ac_runtime_checking= ;
7512 ac_tree_checking= ; ac_valgrind_checking= ;
7513 ac_types_checking= ;;
7514 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7515 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7516 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7517 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7518 ac_tree_checking=1 ; ac_valgrind_checking= ;
7519 ac_types_checking=1 ;;
7520 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7521 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7522 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7523 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7524 ac_tree_checking= ; ac_valgrind_checking= ;
7525 ac_types_checking= ;;
7526 # these enable particular checks
7527 assert) ac_assert_checking=1 ;;
7528 df) ac_df_checking=1 ;;
7529 extra) ac_extra_checking=1 ;;
7530 fold) ac_fold_checking=1 ;;
7531 gc) ac_gc_checking=1 ;;
7532 gcac) ac_gc_always_collect=1 ;;
7533 gimple) ac_gimple_checking=1 ;;
7534 misc) ac_checking=1 ;;
7535 rtl) ac_rtl_checking=1 ;;
7536 rtlflag) ac_rtlflag_checking=1 ;;
7537 runtime) ac_runtime_checking=1 ;;
7538 tree) ac_tree_checking=1 ;;
7539 types) ac_types_checking=1 ;;
7540 valgrind) ac_valgrind_checking=1 ;;
7541 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7542 esac
7543 done
7544 IFS="$ac_save_IFS"
7546 nocommon_flag=""
7547 if test x$ac_checking != x ; then
7549 $as_echo "#define CHECKING_P 1" >>confdefs.h
7551 nocommon_flag=-fno-common
7552 else
7553 $as_echo "#define CHECKING_P 0" >>confdefs.h
7557 if test x$ac_extra_checking != x ; then
7559 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7561 else
7562 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7565 if test x$ac_df_checking != x ; then
7567 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7570 if test x$ac_assert_checking != x ; then
7572 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7575 if test x$ac_gimple_checking != x ; then
7577 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7581 if test x$ac_runtime_checking != x ; then
7583 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7586 if test x$ac_tree_checking != x ; then
7588 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7590 TREECHECKING=yes
7592 if test x$ac_types_checking != x ; then
7594 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7598 if test x$ac_rtl_checking != x ; then
7600 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7603 if test x$ac_rtlflag_checking != x ; then
7605 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7608 if test x$ac_gc_checking != x ; then
7610 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7613 if test x$ac_gc_always_collect != x ; then
7615 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7618 if test x$ac_fold_checking != x ; then
7620 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7623 valgrind_path_defines=
7624 valgrind_command=
7626 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7627 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7628 have_valgrind_h=yes
7629 else
7630 have_valgrind_h=no
7635 # It is certainly possible that there's valgrind but no valgrind.h.
7636 # GCC relies on making annotations so we must have both.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7638 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <valgrind/memcheck.h>
7642 #ifndef VALGRIND_DISCARD
7643 #error VALGRIND_DISCARD not defined
7644 #endif
7645 _ACEOF
7646 if ac_fn_cxx_try_cpp "$LINENO"; then :
7647 gcc_cv_header_valgrind_memcheck_h=yes
7648 else
7649 gcc_cv_header_valgrind_memcheck_h=no
7651 rm -f conftest.err conftest.i conftest.$ac_ext
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7653 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7655 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <memcheck.h>
7659 #ifndef VALGRIND_DISCARD
7660 #error VALGRIND_DISCARD not defined
7661 #endif
7662 _ACEOF
7663 if ac_fn_cxx_try_cpp "$LINENO"; then :
7664 gcc_cv_header_memcheck_h=yes
7665 else
7666 gcc_cv_header_memcheck_h=no
7668 rm -f conftest.err conftest.i conftest.$ac_ext
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7670 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7671 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7673 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7676 if test $gcc_cv_header_memcheck_h = yes; then
7678 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7682 if test x$ac_valgrind_checking != x ; then
7684 # Prepare PATH_SEPARATOR.
7685 # The user is always right.
7686 if test "${PATH_SEPARATOR+set}" != set; then
7687 echo "#! /bin/sh" >conf$$.sh
7688 echo "exit 0" >>conf$$.sh
7689 chmod +x conf$$.sh
7690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7691 PATH_SEPARATOR=';'
7692 else
7693 PATH_SEPARATOR=:
7695 rm -f conf$$.sh
7698 # Find out how to test for executable files. Don't use a zero-byte file,
7699 # as systems may use methods other than mode bits to determine executability.
7700 cat >conf$$.file <<_ASEOF
7701 #! /bin/sh
7702 exit 0
7703 _ASEOF
7704 chmod +x conf$$.file
7705 if test -x conf$$.file >/dev/null 2>&1; then
7706 ac_executable_p="test -x"
7707 else
7708 ac_executable_p="test -f"
7710 rm -f conf$$.file
7712 # Extract the first word of "valgrind", so it can be a program name with args.
7713 set dummy valgrind; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_path_valgrind_path+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 case "$valgrind_path" in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7724 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7725 for ac_dir in $PATH; do
7726 IFS="$ac_save_IFS"
7727 test -z "$ac_dir" && ac_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7730 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7731 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7732 break 2
7735 done
7736 done
7737 IFS="$ac_save_IFS"
7739 esac
7741 valgrind_path="$ac_cv_path_valgrind_path"
7742 if test -n "$valgrind_path"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7744 $as_echo "$valgrind_path" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7750 if test "x$valgrind_path" = "x" \
7751 || (test $have_valgrind_h = no \
7752 && test $gcc_cv_header_memcheck_h = no \
7753 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7754 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7756 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7757 valgrind_command="$valgrind_path -q"
7759 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7765 # Enable code coverage collection
7766 # Check whether --enable-coverage was given.
7767 if test "${enable_coverage+set}" = set; then :
7768 enableval=$enable_coverage; case "${enableval}" in
7769 yes|noopt)
7770 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7772 opt)
7773 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7776 # a.k.a. --disable-coverage
7777 coverage_flags=""
7780 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7782 esac
7783 else
7784 coverage_flags=""
7789 # Check whether --enable-gather-detailed-mem-stats was given.
7790 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7791 enableval=$enable_gather_detailed_mem_stats;
7792 else
7793 enable_gather_detailed_mem_stats=no
7796 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7798 cat >>confdefs.h <<_ACEOF
7799 #define GATHER_STATISTICS $gather_stats
7800 _ACEOF
7803 # Check whether --enable-valgrind-annotations was given.
7804 if test "${enable_valgrind_annotations+set}" = set; then :
7805 enableval=$enable_valgrind_annotations;
7806 else
7807 enable_valgrind_annotations=no
7810 if test x$enable_valgrind_annotations != xno \
7811 || test x$ac_valgrind_checking != x; then
7812 if (test $have_valgrind_h = no \
7813 && test $gcc_cv_header_memcheck_h = no \
7814 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7815 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7818 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7822 # -------------------------------
7823 # Miscenalleous configure options
7824 # -------------------------------
7826 # Determine whether or not multilibs are enabled.
7827 # Check whether --enable-multilib was given.
7828 if test "${enable_multilib+set}" = set; then :
7829 enableval=$enable_multilib;
7830 else
7831 enable_multilib=yes
7836 # Determine whether or not multiarch is enabled.
7837 # Check whether --enable-multiarch was given.
7838 if test "${enable_multiarch+set}" = set; then :
7839 enableval=$enable_multiarch; case "${enableval}" in
7840 yes|no|auto) enable_multiarch=$enableval;;
7841 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7842 esac
7843 else
7844 enable_multiarch=auto
7847 if test x${enable_multiarch} = xauto; then
7848 if test x${with_native_system_header_dir} != x; then
7849 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7850 enable_multiarch=no
7852 if test x$host != x$target && test "x$with_sysroot" = x; then
7853 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7854 enable_multiarch=no
7857 if test x${enable_multiarch} = xyes; then
7859 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7863 $as_echo_n "checking for multiarch configuration... " >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7866 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7868 # needed for setting the multiarch name for soft-float/hard-float ABIs
7872 # default stack clash protection guard size as power of twos in bytes.
7873 # Please keep these in sync with params.def.
7874 stk_clash_min=12
7875 stk_clash_max=30
7877 # Keep the default value when the option is not used to 0, this allows us to
7878 # distinguish between the cases where the user specifially set a value via
7879 # configure and when the normal default value is used.
7881 # Check whether --with-stack-clash-protection-guard-size was given.
7882 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7883 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7884 else
7885 DEFAULT_STK_CLASH_GUARD_SIZE=0
7888 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7889 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7890 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7891 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
7895 cat >>confdefs.h <<_ACEOF
7896 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7897 _ACEOF
7900 # Specify the number of splits of match.pd to generate.
7902 # Check whether --with-matchpd-partitions was given.
7903 if test "${with_matchpd_partitions+set}" = set; then :
7904 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7905 else
7906 DEFAULT_MATCHPD_PARTITIONS=10
7909 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7910 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7915 # Enable __cxa_atexit for C++.
7916 # Check whether --enable-__cxa_atexit was given.
7917 if test "${enable___cxa_atexit+set}" = set; then :
7918 enableval=$enable___cxa_atexit;
7922 # Enable C extension for decimal float if target supports it.
7924 # Check whether --enable-decimal-float was given.
7925 if test "${enable_decimal_float+set}" = set; then :
7926 enableval=$enable_decimal_float;
7927 case $enable_decimal_float in
7928 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7929 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7930 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7931 esac
7933 else
7935 case $target in
7936 aarch64* | \
7937 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7938 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7939 i?86*-*-mingw* | x86_64*-*-mingw* | \
7940 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7941 enable_decimal_float=yes
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7945 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7946 enable_decimal_float=no
7948 esac
7953 # x86's use BID format instead of DPD
7954 case x$enable_decimal_float in
7955 xyes)
7956 case $target in
7957 aarch64* | i?86*-*-* | x86_64*-*-*)
7958 enable_decimal_float=bid
7961 enable_decimal_float=dpd
7963 esac
7964 default_decimal_float=$enable_decimal_float
7966 xno)
7967 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7968 # dependency on libdecnumber.
7969 default_decimal_float=dpd
7971 esac
7976 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7978 cat >>confdefs.h <<_ACEOF
7979 #define ENABLE_DECIMAL_FLOAT $dfp
7980 _ACEOF
7983 # Use default_decimal_float for dependency.
7984 enable_decimal_float=$default_decimal_float
7986 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7988 cat >>confdefs.h <<_ACEOF
7989 #define ENABLE_DECIMAL_BID_FORMAT $bid
7990 _ACEOF
7993 # Enable C extension for fixed-point arithmetic.
7994 # Check whether --enable-fixed-point was given.
7995 if test "${enable_fixed_point+set}" = set; then :
7996 enableval=$enable_fixed_point;
7997 else
7999 case $target in
8000 arm*)
8001 enable_fixed_point=yes
8004 mips*-*-*)
8005 enable_fixed_point=yes
8007 loongarch*-*-*)
8008 enable_fixed_point=yes
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8012 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8013 enable_fixed_point=no
8015 esac
8021 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8023 cat >>confdefs.h <<_ACEOF
8024 #define ENABLE_FIXED_POINT $fixedpoint
8025 _ACEOF
8028 # Enable threads
8029 # Pass with no value to take the default
8030 # Pass with a value to specify a thread package
8031 # Check whether --enable-threads was given.
8032 if test "${enable_threads+set}" = set; then :
8033 enableval=$enable_threads;
8034 else
8035 enable_threads=''
8039 # Check whether --enable-tls was given.
8040 if test "${enable_tls+set}" = set; then :
8041 enableval=$enable_tls;
8042 case $enable_tls in
8043 yes | no) ;;
8044 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8045 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8046 esac
8048 else
8049 enable_tls=''
8053 # Check whether --enable-vtable-verify was given.
8054 if test "${enable_vtable_verify+set}" = set; then :
8055 enableval=$enable_vtable_verify;
8056 else
8057 enable_vtable_verify=no
8060 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8062 cat >>confdefs.h <<_ACEOF
8063 #define ENABLE_VTABLE_VERIFY $vtable_verify
8064 _ACEOF
8067 # Check whether --enable-analyzer was given.
8068 if test "${enable_analyzer+set}" = set; then :
8069 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8070 analyzer=0
8071 else
8072 analyzer=1
8074 else
8075 analyzer=1
8079 cat >>confdefs.h <<_ACEOF
8080 #define ENABLE_ANALYZER $analyzer
8081 _ACEOF
8084 # Check whether --enable-objc-gc was given.
8085 if test "${enable_objc_gc+set}" = set; then :
8086 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8087 objc_boehm_gc=''
8088 else
8089 objc_boehm_gc=1
8091 else
8092 objc_boehm_gc=''
8097 # Check whether --with-dwarf2 was given.
8098 if test "${with_dwarf2+set}" = set; then :
8099 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8100 else
8101 dwarf2=no
8105 # Check whether --enable-shared was given.
8106 if test "${enable_shared+set}" = set; then :
8107 enableval=$enable_shared;
8108 case $enable_shared in
8109 yes | no) ;;
8111 enable_shared=no
8112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8113 for pkg in $enableval; do
8114 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8115 enable_shared=yes
8117 done
8118 IFS="$ac_save_ifs"
8120 esac
8122 else
8123 enable_shared=yes
8128 # Check whether --enable-gcov was given.
8129 if test "${enable_gcov+set}" = set; then :
8130 enableval=$enable_gcov;
8131 else
8132 case $target in
8133 bpf-*-*)
8134 enable_gcov=no
8137 enable_gcov=yes
8139 esac
8146 # Check whether --with-specs was given.
8147 if test "${with_specs+set}" = set; then :
8148 withval=$with_specs; CONFIGURE_SPECS=$withval
8149 else
8150 CONFIGURE_SPECS=
8158 # Check whether --with-pkgversion was given.
8159 if test "${with_pkgversion+set}" = set; then :
8160 withval=$with_pkgversion; case "$withval" in
8161 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8162 no) PKGVERSION= ;;
8163 *) PKGVERSION="($withval) " ;;
8164 esac
8165 else
8166 PKGVERSION="(GCC) "
8174 # Check whether --with-bugurl was given.
8175 if test "${with_bugurl+set}" = set; then :
8176 withval=$with_bugurl; case "$withval" in
8177 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8178 no) BUGURL=
8180 *) BUGURL="$withval"
8182 esac
8183 else
8184 BUGURL="https://gcc.gnu.org/bugs/"
8188 case ${BUGURL} in
8190 REPORT_BUGS_TO=
8191 REPORT_BUGS_TEXI=
8194 REPORT_BUGS_TO="<$BUGURL>"
8195 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8197 esac;
8202 # Allow overriding the default URL for documentation
8204 # Check whether --with-documentation-root-url was given.
8205 if test "${with_documentation_root_url+set}" = set; then :
8206 withval=$with_documentation_root_url; case "$withval" in
8207 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8208 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8209 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8210 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8211 esac
8212 else
8213 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8218 cat >>confdefs.h <<_ACEOF
8219 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8220 _ACEOF
8223 # Allow overriding the default URL for GCC changes
8225 # Check whether --with-changes-root-url was given.
8226 if test "${with_changes_root_url+set}" = set; then :
8227 withval=$with_changes_root_url; case "$withval" in
8228 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8229 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8230 */) CHANGES_ROOT_URL="$withval" ;;
8231 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8232 esac
8233 else
8234 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8239 cat >>confdefs.h <<_ACEOF
8240 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8241 _ACEOF
8244 # Sanity check enable_languages in case someone does not run the toplevel
8245 # configure # script.
8246 # Check whether --enable-languages was given.
8247 if test "${enable_languages+set}" = set; then :
8248 enableval=$enable_languages; case ,${enable_languages}, in
8249 ,,|,yes,)
8250 # go safe -- we cannot be much sure without the toplevel
8251 # configure's
8252 # analysis of which target libs are present and usable
8253 enable_languages=c
8255 *,all,*)
8256 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8258 *,c,*)
8261 enable_languages=c,${enable_languages}
8263 esac
8264 else
8265 enable_languages=c
8269 # If top-level libada has been disabled, then wire in install-gnatlib
8270 # invocation with `make install', so that one can build and install
8271 # the library manually with `make -C gcc all gnatlib gnattools install'.
8272 if test x"$enable_libada" = xno; then
8273 gnat_install_lib=gnat-install-lib
8274 else
8275 gnat_install_lib=
8279 if test x"$enable_as_accelerator_for" != x; then
8281 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8283 enable_as_accelerator=yes
8284 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8285 program_transform_name=`echo $program_transform_name | sed $sedscript`
8286 accel_dir_suffix=/accel/${target_noncanonical}
8287 real_target_noncanonical=${enable_as_accelerator_for}
8293 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8294 tgt=`echo $tgt | sed 's/=.*//'`
8296 enable_offloading=1
8297 case "$tgt" in
8298 amdgcn*)
8299 omp_device_property=omp-device-properties-gcn
8300 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8302 nvptx*)
8303 omp_device_property=omp-device-properties-nvptx
8304 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8307 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8309 esac
8310 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8311 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8313 if test x"$offload_targets" = x; then
8314 offload_targets=$tgt
8315 else
8316 offload_targets="$offload_targets,$tgt"
8318 done
8323 cat >>confdefs.h <<_ACEOF
8324 #define OFFLOAD_TARGETS "$offload_targets"
8325 _ACEOF
8327 if test x"$enable_offloading" != x; then
8329 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8331 else
8333 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8337 if test "x$enable_offload_defaulted" = xyes; then
8339 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8344 # Check whether --with-multilib-list was given.
8345 if test "${with_multilib_list+set}" = set; then :
8346 withval=$with_multilib_list; :
8347 else
8348 with_multilib_list=default
8353 # Check whether --with-multilib-generator was given.
8354 if test "${with_multilib_generator+set}" = set; then :
8355 withval=$with_multilib_generator; :
8356 else
8357 with_multilib_generator=default
8361 # -------------------------
8362 # Checks for other programs
8363 # -------------------------
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8366 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8367 set x ${MAKE-make}
8368 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8369 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 cat >conftest.make <<\_ACEOF
8373 SHELL = /bin/sh
8374 all:
8375 @echo '@@@%%%=$(MAKE)=@@@%%%'
8376 _ACEOF
8377 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8379 *@@@%%%=?*=@@@%%%*)
8380 eval ac_cv_prog_make_${ac_make}_set=yes;;
8382 eval ac_cv_prog_make_${ac_make}_set=no;;
8383 esac
8384 rm -f conftest.make
8386 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8388 $as_echo "yes" >&6; }
8389 SET_MAKE=
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 SET_MAKE="MAKE=${MAKE-make}"
8397 # Find some useful tools
8398 for ac_prog in gawk mawk nawk awk
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_AWK+:} false; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$AWK"; then
8408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_AWK="$ac_prog"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8427 AWK=$ac_cv_prog_AWK
8428 if test -n "$AWK"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8430 $as_echo "$AWK" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8437 test -n "$AWK" && break
8438 done
8440 # We need awk to create options.cc and options.h.
8441 # Bail out if it's missing.
8442 case ${AWK} in
8443 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8444 esac
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8447 $as_echo_n "checking whether ln -s works... " >&6; }
8448 if ${gcc_cv_prog_LN_S+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 rm -f conftestdata_t
8452 echo >conftestdata_f
8453 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8454 then
8455 gcc_cv_prog_LN_S="ln -s"
8456 else
8457 if ln conftestdata_f conftestdata_t 2>/dev/null
8458 then
8459 gcc_cv_prog_LN_S=ln
8460 else
8461 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8462 then
8463 gcc_cv_prog_LN_S="cp -p"
8464 else
8465 gcc_cv_prog_LN_S=cp
8469 rm -f conftestdata_f conftestdata_t
8472 LN_S="$gcc_cv_prog_LN_S"
8473 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475 $as_echo "yes" >&6; }
8476 else
8477 if test "$gcc_cv_prog_LN_S" = "ln"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8479 $as_echo "no, using ln" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8482 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8487 $as_echo_n "checking whether ln works... " >&6; }
8488 if ${acx_cv_prog_LN+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 rm -f conftestdata_t
8492 echo >conftestdata_f
8493 if ln conftestdata_f conftestdata_t 2>/dev/null
8494 then
8495 acx_cv_prog_LN=ln
8496 else
8497 acx_cv_prog_LN=no
8499 rm -f conftestdata_f conftestdata_t
8502 if test $acx_cv_prog_LN = no; then
8503 LN="$LN_S"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8505 $as_echo "no, using $LN" >&6; }
8506 else
8507 LN="$acx_cv_prog_LN"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8509 $as_echo "yes" >&6; }
8512 if test -n "$ac_tool_prefix"; then
8513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_RANLIB+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 if test -n "$RANLIB"; then
8521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8534 done
8535 done
8536 IFS=$as_save_IFS
8540 RANLIB=$ac_cv_prog_RANLIB
8541 if test -n "$RANLIB"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8543 $as_echo "$RANLIB" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 if test -z "$ac_cv_prog_RANLIB"; then
8552 ac_ct_RANLIB=$RANLIB
8553 # Extract the first word of "ranlib", so it can be a program name with args.
8554 set dummy ranlib; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 if test -n "$ac_ct_RANLIB"; then
8561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_prog_ac_ct_RANLIB="ranlib"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8574 done
8575 done
8576 IFS=$as_save_IFS
8580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8581 if test -n "$ac_ct_RANLIB"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8583 $as_echo "$ac_ct_RANLIB" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8589 if test "x$ac_ct_RANLIB" = x; then
8590 RANLIB=":"
8591 else
8592 case $cross_compiling:$ac_tool_warned in
8593 yes:)
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned=yes ;;
8597 esac
8598 RANLIB=$ac_ct_RANLIB
8600 else
8601 RANLIB="$ac_cv_prog_RANLIB"
8604 ranlib_flags=""
8607 # Find a good install program. We prefer a C program (faster),
8608 # so one script is as good as another. But avoid the broken or
8609 # incompatible versions:
8610 # SysV /etc/install, /usr/sbin/install
8611 # SunOS /usr/etc/install
8612 # IRIX /sbin/install
8613 # AIX /bin/install
8614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8616 # ./install, which can be erroneously created by make from ./install.sh.
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8618 $as_echo_n "checking for a BSD compatible install... " >&6; }
8619 if test -z "$INSTALL"; then
8620 if ${ac_cv_path_install+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8624 for ac_dir in $PATH; do
8625 # Account for people who put trailing slashes in PATH elements.
8626 case "$ac_dir/" in
8627 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8629 # OSF1 and SCO ODT 3.0 have their own names for install.
8630 for ac_prog in ginstall scoinst install; do
8631 if test -f $ac_dir/$ac_prog; then
8632 if test $ac_prog = install &&
8633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8634 # AIX install. It has an incompatible calling convention.
8635 # OSF/1 installbsd also uses dspmsg, but is usable.
8637 else
8638 ac_cv_path_install="$ac_dir/$ac_prog -c"
8639 break 2
8642 done
8644 esac
8645 done
8646 IFS="$ac_save_IFS"
8649 if test "${ac_cv_path_install+set}" = set; then
8650 INSTALL="$ac_cv_path_install"
8651 else
8652 # As a last resort, use the slow shell script. We don't cache a
8653 # path for INSTALL within a source directory, because that will
8654 # break other packages using the cache if that directory is
8655 # removed, or if the path is relative.
8656 INSTALL="$ac_install_sh"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8660 $as_echo "$INSTALL" >&6; }
8662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8663 # It thinks the first close brace ends the variable substitution.
8664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8669 # See if cmp has --ignore-initial.
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8671 $as_echo_n "checking for cmp's capabilities... " >&6; }
8672 if ${gcc_cv_prog_cmp_skip+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 echo abfoo >t1
8676 echo cdfoo >t2
8677 gcc_cv_prog_cmp_skip=slowcompare
8678 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8679 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8681 else
8682 gcc_cv_prog_cmp_skip=gnucompare
8685 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8686 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8687 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8689 else
8690 gcc_cv_prog_cmp_skip=fastcompare
8694 rm t1 t2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8698 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8699 make_compare_target=$gcc_cv_prog_cmp_skip
8703 # See if we have the mktemp command.
8704 # Extract the first word of "mktemp", so it can be a program name with args.
8705 set dummy mktemp; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$have_mktemp_command"; then
8712 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_have_mktemp_command="yes"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8725 done
8726 done
8727 IFS=$as_save_IFS
8729 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8732 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8733 if test -n "$have_mktemp_command"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8735 $as_echo "$have_mktemp_command" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8743 # See if makeinfo has been installed and is modern enough
8744 # that we can use it.
8746 # Extract the first word of "makeinfo", so it can be a program name with args.
8747 set dummy makeinfo; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_MAKEINFO+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test -n "$MAKEINFO"; then
8754 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_MAKEINFO="makeinfo"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8767 done
8768 done
8769 IFS=$as_save_IFS
8773 MAKEINFO=$ac_cv_prog_MAKEINFO
8774 if test -n "$MAKEINFO"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8776 $as_echo "$MAKEINFO" >&6; }
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 if test -n "$MAKEINFO"; then
8784 # Found it, now check the version.
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8786 $as_echo_n "checking for modern makeinfo... " >&6; }
8787 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8791 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8793 case $ac_prog_version in
8794 '') gcc_cv_prog_makeinfo_modern=no;;
8795 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8796 *) gcc_cv_prog_makeinfo_modern=no;;
8797 esac
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8801 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8802 else
8803 gcc_cv_prog_makeinfo_modern=no
8805 if test $gcc_cv_prog_makeinfo_modern = no; then
8806 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8809 if test $gcc_cv_prog_makeinfo_modern = no; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8811 *** Makeinfo is missing or too old.
8812 *** Info documentation will not be built." >&5
8813 $as_echo "$as_me: WARNING:
8814 *** Makeinfo is missing or too old.
8815 *** Info documentation will not be built." >&2;}
8816 BUILD_INFO=
8817 else
8818 BUILD_INFO=info
8822 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8823 # If it does, we want to pass it to makeinfo in order to restore the old
8824 # behavior of @{summary,}contents placement.
8825 MAKEINFO_TOC_INLINE_FLAG=
8826 if test x"$MAKEINFO" != x; then :
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8829 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8830 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8834 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8835 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8836 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8837 gcc_cv_texi_add_toc_inline_flags=no
8838 else
8839 gcc_cv_texi_add_toc_inline_flags=yes
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8844 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8845 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8846 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8852 # Is pod2man recent enough to regenerate manpages?
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8854 $as_echo_n "checking for recent Pod::Man... " >&6; }
8855 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8857 $as_echo "yes" >&6; }
8858 GENERATED_MANPAGES=generated-manpages
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 GENERATED_MANPAGES=
8866 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8868 # How about lex?
8869 for ac_prog in flex
8871 # Extract the first word of "$ac_prog", so it can be a program name with args.
8872 set dummy $ac_prog; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_prog_FLEX+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$FLEX"; then
8879 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_FLEX="$ac_prog"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8898 FLEX=$ac_cv_prog_FLEX
8899 if test -n "$FLEX"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8901 $as_echo "$FLEX" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8908 test -n "$FLEX" && break
8909 done
8910 test -n "$FLEX" || FLEX="$MISSING flex"
8913 # Bison?
8914 for ac_prog in bison
8916 # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy $ac_prog; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_BISON+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$BISON"; then
8924 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_BISON="$ac_prog"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8943 BISON=$ac_cv_prog_BISON
8944 if test -n "$BISON"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8946 $as_echo "$BISON" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8953 test -n "$BISON" && break
8954 done
8955 test -n "$BISON" || BISON="$MISSING bison"
8958 # Python3?
8960 # Extract the first word of "python3", so it can be a program name with args.
8961 set dummy python3; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_PYTHON+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 if test -n "$PYTHON"; then
8968 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_PYTHON="python3"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8981 done
8982 done
8983 IFS=$as_save_IFS
8987 PYTHON=$ac_cv_prog_PYTHON
8988 if test -n "$PYTHON"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8990 $as_echo "$PYTHON" >&6; }
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8997 if test -n "$PYTHON"; then
8998 # Found it, now check the version.
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9000 $as_echo_n "checking for modern python3... " >&6; }
9001 if ${gcc_cv_prog_python3_modern+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 ac_prog_version=`eval $PYTHON --version 2>&1 |
9005 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9007 case $ac_prog_version in
9008 '') gcc_cv_prog_python3_modern=no;;
9009 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9010 *) gcc_cv_prog_python3_modern=no;;
9011 esac
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9015 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9016 else
9017 gcc_cv_prog_python3_modern=no
9019 if test $gcc_cv_prog_python3_modern = no; then
9020 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9023 if test $gcc_cv_prog_python3_modern = no; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9025 *** Python3 is missing.
9026 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9027 $as_echo "$as_me: WARNING:
9028 *** Python3 is missing.
9029 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9030 HAVE_PYTHON=no
9031 else
9032 HAVE_PYTHON=yes
9036 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9037 # check for build == host before using them.
9039 # NM
9040 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9041 && test -d ../binutils ; then
9042 NM='${objdir}/../binutils/nm-new'
9043 else
9044 # Extract the first word of "nm", so it can be a program name with args.
9045 set dummy nm; ac_word=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_prog_NM+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 if test -n "$NM"; then
9052 ac_cv_prog_NM="$NM" # Let the user override the test.
9053 else
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9057 IFS=$as_save_IFS
9058 test -z "$as_dir" && as_dir=.
9059 for ac_exec_ext in '' $ac_executable_extensions; do
9060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061 ac_cv_prog_NM="nm"
9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063 break 2
9065 done
9066 done
9067 IFS=$as_save_IFS
9069 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9072 NM=$ac_cv_prog_NM
9073 if test -n "$NM"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9075 $as_echo "$NM" >&6; }
9076 else
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9084 # AR
9085 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9086 && test -d ../binutils ; then
9087 AR='${objdir}/../binutils/ar'
9088 else
9089 # Extract the first word of "ar", so it can be a program name with args.
9090 set dummy ar; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_AR+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 if test -n "$AR"; then
9097 ac_cv_prog_AR="$AR" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_AR="ar"
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9110 done
9111 done
9112 IFS=$as_save_IFS
9114 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9117 AR=$ac_cv_prog_AR
9118 if test -n "$AR"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9120 $as_echo "$AR" >&6; }
9121 else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9129 # The jit documentation looks better if built with sphinx, but can be
9130 # built with texinfo if sphinx is not available.
9131 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9132 # Extract the first word of "sphinx-build", so it can be a program name with args.
9133 set dummy sphinx-build; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_prog_doc_build_sys+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 if test -n "$doc_build_sys"; then
9140 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9141 else
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149 ac_cv_prog_doc_build_sys="sphinx"
9150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9153 done
9154 done
9155 IFS=$as_save_IFS
9157 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9160 doc_build_sys=$ac_cv_prog_doc_build_sys
9161 if test -n "$doc_build_sys"; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9163 $as_echo "$doc_build_sys" >&6; }
9164 else
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9171 # --------------------
9172 # Checks for C headers
9173 # --------------------
9175 # Need to reject headers which give warnings, so that the -Werror bootstrap
9176 # works later. *sigh* This needs to come before all header checks.
9178 ac_c_preproc_warn_flag=yes
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9181 $as_echo_n "checking for ANSI C header files... " >&6; }
9182 if ${ac_cv_header_stdc+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #include <stdlib.h>
9188 #include <stdarg.h>
9189 #include <string.h>
9190 #include <float.h>
9193 main ()
9197 return 0;
9199 _ACEOF
9200 if ac_fn_cxx_try_compile "$LINENO"; then :
9201 ac_cv_header_stdc=yes
9202 else
9203 ac_cv_header_stdc=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 if test $ac_cv_header_stdc = yes; then
9208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #include <string.h>
9213 _ACEOF
9214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9215 $EGREP "memchr" >/dev/null 2>&1; then :
9217 else
9218 ac_cv_header_stdc=no
9220 rm -f conftest*
9224 if test $ac_cv_header_stdc = yes; then
9225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 #include <stdlib.h>
9230 _ACEOF
9231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9232 $EGREP "free" >/dev/null 2>&1; then :
9234 else
9235 ac_cv_header_stdc=no
9237 rm -f conftest*
9241 if test $ac_cv_header_stdc = yes; then
9242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9243 if test "$cross_compiling" = yes; then :
9245 else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 #include <ctype.h>
9249 #include <stdlib.h>
9250 #if ((' ' & 0x0FF) == 0x020)
9251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9253 #else
9254 # define ISLOWER(c) \
9255 (('a' <= (c) && (c) <= 'i') \
9256 || ('j' <= (c) && (c) <= 'r') \
9257 || ('s' <= (c) && (c) <= 'z'))
9258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9259 #endif
9261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9263 main ()
9265 int i;
9266 for (i = 0; i < 256; i++)
9267 if (XOR (islower (i), ISLOWER (i))
9268 || toupper (i) != TOUPPER (i))
9269 return 2;
9270 return 0;
9272 _ACEOF
9273 if ac_fn_cxx_try_run "$LINENO"; then :
9275 else
9276 ac_cv_header_stdc=no
9278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9279 conftest.$ac_objext conftest.beam conftest.$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9285 $as_echo "$ac_cv_header_stdc" >&6; }
9286 if test $ac_cv_header_stdc = yes; then
9288 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9294 if ${ac_cv_header_time+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/time.h>
9301 #include <time.h>
9304 main ()
9306 if ((struct tm *) 0)
9307 return 0;
9309 return 0;
9311 _ACEOF
9312 if ac_fn_cxx_try_compile "$LINENO"; then :
9313 ac_cv_header_time=yes
9314 else
9315 ac_cv_header_time=no
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9320 $as_echo "$ac_cv_header_time" >&6; }
9321 if test $ac_cv_header_time = yes; then
9323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9328 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9329 if ${gcc_cv_header_string+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 #include <string.h>
9335 #include <strings.h>
9337 main ()
9341 return 0;
9343 _ACEOF
9344 if ac_fn_cxx_try_compile "$LINENO"; then :
9345 gcc_cv_header_string=yes
9346 else
9347 gcc_cv_header_string=no
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9352 $as_echo "$gcc_cv_header_string" >&6; }
9353 if test $gcc_cv_header_string = yes; then
9355 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9360 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9361 if ${ac_cv_header_sys_wait_h+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 #include <sys/types.h>
9367 #include <sys/wait.h>
9368 #ifndef WEXITSTATUS
9369 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9370 #endif
9371 #ifndef WIFEXITED
9372 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9373 #endif
9376 main ()
9378 int s;
9379 wait (&s);
9380 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9382 return 0;
9384 _ACEOF
9385 if ac_fn_cxx_try_compile "$LINENO"; then :
9386 ac_cv_header_sys_wait_h=yes
9387 else
9388 ac_cv_header_sys_wait_h=no
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9393 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9394 if test $ac_cv_header_sys_wait_h = yes; then
9396 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9401 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9402 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 #include <sys/types.h>
9408 #include <termios.h>
9409 #ifdef TIOCGWINSZ
9411 #endif
9413 _ACEOF
9414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9415 $EGREP "yes" >/dev/null 2>&1; then :
9416 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9417 else
9418 ac_cv_sys_tiocgwinsz_in_termios_h=no
9420 rm -f conftest*
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9424 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9426 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9428 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9429 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <sys/ioctl.h>
9436 #ifdef TIOCGWINSZ
9438 #endif
9440 _ACEOF
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "yes" >/dev/null 2>&1; then :
9443 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9444 else
9445 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9447 rm -f conftest*
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9451 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9453 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9455 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9460 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9461 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9462 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9463 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9464 do :
9465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9466 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9468 cat >>confdefs.h <<_ACEOF
9469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9470 _ACEOF
9473 done
9476 # Check for thread headers.
9477 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9478 if test "x$ac_cv_header_thread_h" = xyes; then :
9479 have_thread_h=yes
9480 else
9481 have_thread_h=
9484 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9485 if test "x$ac_cv_header_pthread_h" = xyes; then :
9486 have_pthread_h=yes
9487 else
9488 have_pthread_h=
9492 # These tests can't be done till we know if we have limits.h.
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9494 $as_echo_n "checking for CHAR_BIT... " >&6; }
9495 if ${gcc_cv_decl_char_bit+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #ifdef HAVE_LIMITS_H
9501 #include <limits.h>
9502 #endif
9503 #ifdef CHAR_BIT
9504 found
9505 #endif
9506 _ACEOF
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508 $EGREP "found" >/dev/null 2>&1; then :
9509 gcc_cv_decl_char_bit=yes
9510 else
9511 gcc_cv_decl_char_bit=no
9513 rm -f conftest*
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9518 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9519 if test $gcc_cv_decl_char_bit = no; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9521 $as_echo_n "checking number of bits in a byte... " >&6; }
9522 if ${gcc_cv_c_nbby+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9526 gcc_cv_c_nbby=
9527 while test $i -lt 65; do
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9532 main ()
9534 switch(0) {
9535 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9536 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9539 return 0;
9541 _ACEOF
9542 if ac_fn_cxx_try_compile "$LINENO"; then :
9543 gcc_cv_c_nbby=$i; break
9545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9546 i=`expr $i + 1`
9547 done
9548 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9552 $as_echo "$gcc_cv_c_nbby" >&6; }
9553 if test $gcc_cv_c_nbby = failed; then
9554 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9555 else
9557 cat >>confdefs.h <<_ACEOF
9558 #define CHAR_BIT $gcc_cv_c_nbby
9559 _ACEOF
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9565 if ${ac_cv_c_bigendian+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 ac_cv_c_bigendian=unknown
9569 # See if we're dealing with a universal compiler.
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 #ifndef __APPLE_CC__
9573 not a universal capable compiler
9574 #endif
9575 typedef int dummy;
9577 _ACEOF
9578 if ac_fn_cxx_try_compile "$LINENO"; then :
9580 # Check for potential -arch flags. It is not universal unless
9581 # there are at least two -arch flags with different values.
9582 ac_arch=
9583 ac_prev=
9584 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9585 if test -n "$ac_prev"; then
9586 case $ac_word in
9587 i?86 | x86_64 | ppc | ppc64)
9588 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9589 ac_arch=$ac_word
9590 else
9591 ac_cv_c_bigendian=universal
9592 break
9595 esac
9596 ac_prev=
9597 elif test "x$ac_word" = "x-arch"; then
9598 ac_prev=arch
9600 done
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 if test $ac_cv_c_bigendian = unknown; then
9604 # See if sys/param.h defines the BYTE_ORDER macro.
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 #include <sys/types.h>
9608 #include <sys/param.h>
9611 main ()
9613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9614 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9615 && LITTLE_ENDIAN)
9616 bogus endian macros
9617 #endif
9620 return 0;
9622 _ACEOF
9623 if ac_fn_cxx_try_compile "$LINENO"; then :
9624 # It does; now see whether it defined to BIG_ENDIAN or not.
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 #include <sys/types.h>
9628 #include <sys/param.h>
9631 main ()
9633 #if BYTE_ORDER != BIG_ENDIAN
9634 not big endian
9635 #endif
9638 return 0;
9640 _ACEOF
9641 if ac_fn_cxx_try_compile "$LINENO"; then :
9642 ac_cv_c_bigendian=yes
9643 else
9644 ac_cv_c_bigendian=no
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 if test $ac_cv_c_bigendian = unknown; then
9651 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <limits.h>
9657 main ()
9659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9660 bogus endian macros
9661 #endif
9664 return 0;
9666 _ACEOF
9667 if ac_fn_cxx_try_compile "$LINENO"; then :
9668 # It does; now see whether it defined to _BIG_ENDIAN or not.
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #include <limits.h>
9674 main ()
9676 #ifndef _BIG_ENDIAN
9677 not big endian
9678 #endif
9681 return 0;
9683 _ACEOF
9684 if ac_fn_cxx_try_compile "$LINENO"; then :
9685 ac_cv_c_bigendian=yes
9686 else
9687 ac_cv_c_bigendian=no
9689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 if test $ac_cv_c_bigendian = unknown; then
9694 # Compile a test program.
9695 if test "$cross_compiling" = yes; then :
9696 # Try to guess by grepping values from an object file.
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 short int ascii_mm[] =
9700 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9701 short int ascii_ii[] =
9702 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9703 int use_ascii (int i) {
9704 return ascii_mm[i] + ascii_ii[i];
9706 short int ebcdic_ii[] =
9707 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9708 short int ebcdic_mm[] =
9709 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9710 int use_ebcdic (int i) {
9711 return ebcdic_mm[i] + ebcdic_ii[i];
9713 extern int foo;
9716 main ()
9718 return use_ascii (foo) == use_ebcdic (foo);
9720 return 0;
9722 _ACEOF
9723 if ac_fn_cxx_try_compile "$LINENO"; then :
9724 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9725 ac_cv_c_bigendian=yes
9727 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9728 if test "$ac_cv_c_bigendian" = unknown; then
9729 ac_cv_c_bigendian=no
9730 else
9731 # finding both strings is unlikely to happen, but who knows?
9732 ac_cv_c_bigendian=unknown
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 $ac_includes_default
9742 main ()
9745 /* Are we little or big endian? From Harbison&Steele. */
9746 union
9748 long int l;
9749 char c[sizeof (long int)];
9750 } u;
9751 u.l = 1;
9752 return u.c[sizeof (long int) - 1] == 1;
9755 return 0;
9757 _ACEOF
9758 if ac_fn_cxx_try_run "$LINENO"; then :
9759 ac_cv_c_bigendian=no
9760 else
9761 ac_cv_c_bigendian=yes
9763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9764 conftest.$ac_objext conftest.beam conftest.$ac_ext
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9770 $as_echo "$ac_cv_c_bigendian" >&6; }
9771 case $ac_cv_c_bigendian in #(
9772 yes)
9773 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9774 ;; #(
9776 ;; #(
9777 universal)
9779 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9781 ;; #(
9783 as_fn_error $? "unknown endianness
9784 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9785 esac
9788 # ----------------------
9789 # Checks for C++ headers
9790 # ----------------------
9792 ac_ext=cpp
9793 ac_cpp='$CXXCPP $CPPFLAGS'
9794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9798 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9799 if test -z "$CXXCPP"; then
9800 if ${ac_cv_prog_CXXCPP+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 # Double quotes because CXXCPP needs to be expanded
9804 for CXXCPP in "$CXX -E" "/lib/cpp"
9806 ac_preproc_ok=false
9807 for ac_cxx_preproc_warn_flag in '' yes
9809 # Use a header file that comes with gcc, so configuring glibc
9810 # with a fresh cross-compiler works.
9811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 # <limits.h> exists even on freestanding compilers.
9813 # On the NeXT, cc -E runs the code through the compiler's parser,
9814 # not just through cpp. "Syntax error" is here to catch this case.
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 #ifdef __STDC__
9818 # include <limits.h>
9819 #else
9820 # include <assert.h>
9821 #endif
9822 Syntax error
9823 _ACEOF
9824 if ac_fn_cxx_try_cpp "$LINENO"; then :
9826 else
9827 # Broken: fails on valid input.
9828 continue
9830 rm -f conftest.err conftest.i conftest.$ac_ext
9832 # OK, works on sane cases. Now check whether nonexistent headers
9833 # can be detected and how.
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <ac_nonexistent.h>
9837 _ACEOF
9838 if ac_fn_cxx_try_cpp "$LINENO"; then :
9839 # Broken: success on invalid input.
9840 continue
9841 else
9842 # Passes both tests.
9843 ac_preproc_ok=:
9844 break
9846 rm -f conftest.err conftest.i conftest.$ac_ext
9848 done
9849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9850 rm -f conftest.i conftest.err conftest.$ac_ext
9851 if $ac_preproc_ok; then :
9852 break
9855 done
9856 ac_cv_prog_CXXCPP=$CXXCPP
9859 CXXCPP=$ac_cv_prog_CXXCPP
9860 else
9861 ac_cv_prog_CXXCPP=$CXXCPP
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9864 $as_echo "$CXXCPP" >&6; }
9865 ac_preproc_ok=false
9866 for ac_cxx_preproc_warn_flag in '' yes
9868 # Use a header file that comes with gcc, so configuring glibc
9869 # with a fresh cross-compiler works.
9870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9871 # <limits.h> exists even on freestanding compilers.
9872 # On the NeXT, cc -E runs the code through the compiler's parser,
9873 # not just through cpp. "Syntax error" is here to catch this case.
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 #ifdef __STDC__
9877 # include <limits.h>
9878 #else
9879 # include <assert.h>
9880 #endif
9881 Syntax error
9882 _ACEOF
9883 if ac_fn_cxx_try_cpp "$LINENO"; then :
9885 else
9886 # Broken: fails on valid input.
9887 continue
9889 rm -f conftest.err conftest.i conftest.$ac_ext
9891 # OK, works on sane cases. Now check whether nonexistent headers
9892 # can be detected and how.
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 #include <ac_nonexistent.h>
9896 _ACEOF
9897 if ac_fn_cxx_try_cpp "$LINENO"; then :
9898 # Broken: success on invalid input.
9899 continue
9900 else
9901 # Passes both tests.
9902 ac_preproc_ok=:
9903 break
9905 rm -f conftest.err conftest.i conftest.$ac_ext
9907 done
9908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9909 rm -f conftest.i conftest.err conftest.$ac_ext
9910 if $ac_preproc_ok; then :
9912 else
9913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9916 See \`config.log' for more details" >&5
9917 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9918 See \`config.log' for more details" >&2;}; }
9921 ac_ext=cpp
9922 ac_cpp='$CXXCPP $CPPFLAGS'
9923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9928 for ac_header in unordered_map
9929 do :
9930 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9931 if test "x$ac_cv_header_unordered_map" = xyes; then :
9932 cat >>confdefs.h <<_ACEOF
9933 #define HAVE_UNORDERED_MAP 1
9934 _ACEOF
9937 done
9939 for ac_header in tr1/unordered_map
9940 do :
9941 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9942 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_TR1_UNORDERED_MAP 1
9945 _ACEOF
9948 done
9950 for ac_header in ext/hash_map
9951 do :
9952 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9953 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_EXT_HASH_MAP 1
9956 _ACEOF
9959 done
9962 # --------
9963 # Dependency checking.
9964 # --------
9966 rm -rf .tst 2>/dev/null
9967 mkdir .tst 2>/dev/null
9968 if test -d .tst; then
9969 am__leading_dot=.
9970 else
9971 am__leading_dot=_
9973 rmdir .tst 2>/dev/null
9975 DEPDIR="${am__leading_dot}deps"
9977 ac_config_commands="$ac_config_commands depdir"
9980 ac_config_commands="$ac_config_commands gccdepdir"
9983 depcc="$CXX" am_compiler_list=
9985 am_depcomp=$ac_aux_dir/depcomp
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9987 $as_echo_n "checking dependency style of $depcc... " >&6; }
9988 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -f "$am_depcomp"; then
9992 # We make a subdir and do the tests there. Otherwise we can end up
9993 # making bogus files that we don't know about and never remove. For
9994 # instance it was reported that on HP-UX the gcc test will end up
9995 # making a dummy file named `D' -- because `-MD' means `put the output
9996 # in D'.
9997 mkdir conftest.dir
9998 # Copy depcomp to subdir because otherwise we won't find it if we're
9999 # using a relative directory.
10000 cp "$am_depcomp" conftest.dir
10001 cd conftest.dir
10002 # We will build objects and dependencies in a subdirectory because
10003 # it helps to detect inapplicable dependency modes. For instance
10004 # both Tru64's cc and ICC support -MD to output dependencies as a
10005 # side effect of compilation, but ICC will put the dependencies in
10006 # the current directory while Tru64 will put them in the object
10007 # directory.
10008 mkdir sub
10010 am_cv_CXX_dependencies_compiler_type=none
10011 if test "$am_compiler_list" = ""; then
10012 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10014 for depmode in $am_compiler_list; do
10015 if test $depmode = none; then break; fi
10017 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10018 # Setup a source with many dependencies, because some compilers
10019 # like to wrap large dependency lists on column 80 (with \), and
10020 # we should not choose a depcomp mode which is confused by this.
10022 # We need to recreate these files for each test, as the compiler may
10023 # overwrite some of them when testing with obscure command lines.
10024 # This happens at least with the AIX C compiler.
10025 : > sub/conftest.c
10026 for i in 1 2 3 4 5 6; do
10027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10029 # Solaris 8's {/usr,}/bin/sh.
10030 touch sub/conftst$i.h
10031 done
10032 echo "include sub/conftest.Po" > confmf
10034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10035 # mode. It turns out that the SunPro C++ compiler does not properly
10036 # handle `-M -o', and we need to detect this.
10037 depcmd="depmode=$depmode \
10038 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10040 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10041 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10042 if env $depcmd > conftest.err 2>&1 &&
10043 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10045 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10046 # icc doesn't choke on unknown options, it will just issue warnings
10047 # or remarks (even with -Werror). So we grep stderr for any message
10048 # that says an option was ignored or not supported.
10049 # When given -MP, icc 7.0 and 7.1 complain thusly:
10050 # icc: Command line warning: ignoring option '-M'; no argument required
10051 # The diagnosis changed in icc 8.0:
10052 # icc: Command line remark: option '-MP' not supported
10053 if (grep 'ignoring option' conftest.err ||
10054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10055 am_cv_CXX_dependencies_compiler_type=$depmode
10056 $as_echo "$as_me:$LINENO: success" >&5
10057 break
10060 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10061 sed -e 's/^/| /' < conftest.err >&5
10062 done
10064 cd ..
10065 rm -rf conftest.dir
10066 else
10067 am_cv_CXX_dependencies_compiler_type=none
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10072 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10073 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10074 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10075 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10080 # --------
10081 # UNSORTED
10082 # --------
10085 # These libraries may be used by collect2.
10086 # We may need a special search path to get them linked.
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10088 $as_echo_n "checking for collect2 libraries... " >&6; }
10089 if ${gcc_cv_collect2_libs+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 save_LIBS="$LIBS"
10093 for libs in '' -lld -lmld \
10094 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10095 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10097 LIBS="$libs"
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10101 /* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 char ldopen ();
10109 main ()
10111 return ldopen ();
10113 return 0;
10115 _ACEOF
10116 if ac_fn_cxx_try_link "$LINENO"; then :
10117 gcc_cv_collect2_libs="$libs"; break
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 done
10122 LIBS="$save_LIBS"
10123 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10126 $as_echo "$gcc_cv_collect2_libs" >&6; }
10127 case $gcc_cv_collect2_libs in
10128 "none required") ;;
10129 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10130 esac
10133 # When building Ada code on Alpha, we need exc_resume which is usually in
10134 # -lexc. So test for it.
10135 save_LIBS="$LIBS"
10136 LIBS=
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10138 $as_echo_n "checking for library containing exc_resume... " >&6; }
10139 if ${ac_cv_search_exc_resume+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 ac_func_search_save_LIBS=$LIBS
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char exc_resume ();
10154 main ()
10156 return exc_resume ();
10158 return 0;
10160 _ACEOF
10161 for ac_lib in '' exc; do
10162 if test -z "$ac_lib"; then
10163 ac_res="none required"
10164 else
10165 ac_res=-l$ac_lib
10166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10168 if ac_fn_cxx_try_link "$LINENO"; then :
10169 ac_cv_search_exc_resume=$ac_res
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext
10173 if ${ac_cv_search_exc_resume+:} false; then :
10174 break
10176 done
10177 if ${ac_cv_search_exc_resume+:} false; then :
10179 else
10180 ac_cv_search_exc_resume=no
10182 rm conftest.$ac_ext
10183 LIBS=$ac_func_search_save_LIBS
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10186 $as_echo "$ac_cv_search_exc_resume" >&6; }
10187 ac_res=$ac_cv_search_exc_resume
10188 if test "$ac_res" != no; then :
10189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10193 GNAT_LIBEXC="$LIBS"
10194 LIBS="$save_LIBS"
10197 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10198 save_LIBS="$LIBS"
10199 LIBS=
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10201 $as_echo_n "checking for library containing kstat_open... " >&6; }
10202 if ${ac_cv_search_kstat_open+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 ac_func_search_save_LIBS=$LIBS
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10212 #ifdef __cplusplus
10213 extern "C"
10214 #endif
10215 char kstat_open ();
10217 main ()
10219 return kstat_open ();
10221 return 0;
10223 _ACEOF
10224 for ac_lib in '' kstat; do
10225 if test -z "$ac_lib"; then
10226 ac_res="none required"
10227 else
10228 ac_res=-l$ac_lib
10229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10231 if ac_fn_cxx_try_link "$LINENO"; then :
10232 ac_cv_search_kstat_open=$ac_res
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext
10236 if ${ac_cv_search_kstat_open+:} false; then :
10237 break
10239 done
10240 if ${ac_cv_search_kstat_open+:} false; then :
10242 else
10243 ac_cv_search_kstat_open=no
10245 rm conftest.$ac_ext
10246 LIBS=$ac_func_search_save_LIBS
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10249 $as_echo "$ac_cv_search_kstat_open" >&6; }
10250 ac_res=$ac_cv_search_kstat_open
10251 if test "$ac_res" != no; then :
10252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10256 EXTRA_GCC_LIBS="$LIBS"
10257 LIBS="$save_LIBS"
10260 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10261 # C++ needs those for libcody.
10262 save_LIBS="$LIBS"
10263 LIBS=
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10266 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10267 if ${ac_cv_search_gethostbyname+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 ac_func_search_save_LIBS=$LIBS
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 char gethostbyname ();
10282 main ()
10284 return gethostbyname ();
10286 return 0;
10288 _ACEOF
10289 for ac_lib in '' nsl; do
10290 if test -z "$ac_lib"; then
10291 ac_res="none required"
10292 else
10293 ac_res=-l$ac_lib
10294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10296 if ac_fn_cxx_try_link "$LINENO"; then :
10297 ac_cv_search_gethostbyname=$ac_res
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext
10301 if ${ac_cv_search_gethostbyname+:} false; then :
10302 break
10304 done
10305 if ${ac_cv_search_gethostbyname+:} false; then :
10307 else
10308 ac_cv_search_gethostbyname=no
10310 rm conftest.$ac_ext
10311 LIBS=$ac_func_search_save_LIBS
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10314 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10315 ac_res=$ac_cv_search_gethostbyname
10316 if test "$ac_res" != no; then :
10317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10322 $as_echo_n "checking for library containing socket... " >&6; }
10323 if ${ac_cv_search_socket+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 ac_func_search_save_LIBS=$LIBS
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char socket ();
10338 main ()
10340 return socket ();
10342 return 0;
10344 _ACEOF
10345 for ac_lib in '' socket; do
10346 if test -z "$ac_lib"; then
10347 ac_res="none required"
10348 else
10349 ac_res=-l$ac_lib
10350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10352 if ac_fn_cxx_try_link "$LINENO"; then :
10353 ac_cv_search_socket=$ac_res
10355 rm -f core conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext
10357 if ${ac_cv_search_socket+:} false; then :
10358 break
10360 done
10361 if ${ac_cv_search_socket+:} false; then :
10363 else
10364 ac_cv_search_socket=no
10366 rm conftest.$ac_ext
10367 LIBS=$ac_func_search_save_LIBS
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10370 $as_echo "$ac_cv_search_socket" >&6; }
10371 ac_res=$ac_cv_search_socket
10372 if test "$ac_res" != no; then :
10373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10375 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10378 $as_echo_n "checking for socket in -lsocket... " >&6; }
10379 if ${ac_cv_lib_socket_socket+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 ac_check_lib_save_LIBS=$LIBS
10383 LIBS="-lsocket -lnsl $LIBS"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char socket ();
10395 main ()
10397 return socket ();
10399 return 0;
10401 _ACEOF
10402 if ac_fn_cxx_try_link "$LINENO"; then :
10403 ac_cv_lib_socket_socket=yes
10404 else
10405 ac_cv_lib_socket_socket=no
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10412 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10413 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10414 LIBS="-lsocket -lnsl $LIBS"
10420 NETLIBS="$LIBS"
10421 LIBS="$save_LIBS"
10424 # Some systems put ldexp and frexp in libm instead of libc; assume
10425 # they're both in the same place. jcf-dump needs them.
10426 save_LIBS="$LIBS"
10427 LIBS=
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10429 $as_echo_n "checking for library containing ldexp... " >&6; }
10430 if ${ac_cv_search_ldexp+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 ac_func_search_save_LIBS=$LIBS
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char ldexp ();
10445 main ()
10447 return ldexp ();
10449 return 0;
10451 _ACEOF
10452 for ac_lib in '' m; do
10453 if test -z "$ac_lib"; then
10454 ac_res="none required"
10455 else
10456 ac_res=-l$ac_lib
10457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10459 if ac_fn_cxx_try_link "$LINENO"; then :
10460 ac_cv_search_ldexp=$ac_res
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext
10464 if ${ac_cv_search_ldexp+:} false; then :
10465 break
10467 done
10468 if ${ac_cv_search_ldexp+:} false; then :
10470 else
10471 ac_cv_search_ldexp=no
10473 rm conftest.$ac_ext
10474 LIBS=$ac_func_search_save_LIBS
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10477 $as_echo "$ac_cv_search_ldexp" >&6; }
10478 ac_res=$ac_cv_search_ldexp
10479 if test "$ac_res" != no; then :
10480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10484 LDEXP_LIB="$LIBS"
10485 LIBS="$save_LIBS"
10488 # Some systems need dlopen
10489 save_LIBS="$LIBS"
10490 LIBS=
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10492 $as_echo_n "checking for library containing dlopen... " >&6; }
10493 if ${ac_cv_search_dlopen+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 ac_func_search_save_LIBS=$LIBS
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char dlopen ();
10508 main ()
10510 return dlopen ();
10512 return 0;
10514 _ACEOF
10515 for ac_lib in '' dl; do
10516 if test -z "$ac_lib"; then
10517 ac_res="none required"
10518 else
10519 ac_res=-l$ac_lib
10520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10522 if ac_fn_cxx_try_link "$LINENO"; then :
10523 ac_cv_search_dlopen=$ac_res
10525 rm -f core conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext
10527 if ${ac_cv_search_dlopen+:} false; then :
10528 break
10530 done
10531 if ${ac_cv_search_dlopen+:} false; then :
10533 else
10534 ac_cv_search_dlopen=no
10536 rm conftest.$ac_ext
10537 LIBS=$ac_func_search_save_LIBS
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10540 $as_echo "$ac_cv_search_dlopen" >&6; }
10541 ac_res=$ac_cv_search_dlopen
10542 if test "$ac_res" != no; then :
10543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10547 DL_LIB="$LIBS"
10548 LIBS="$save_LIBS"
10551 # Use <inttypes.h> only if it exists,
10552 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10553 # PRId64
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10555 $as_echo_n "checking for inttypes.h... " >&6; }
10556 if ${gcc_cv_header_inttypes_h+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #define __STDC_FORMAT_MACROS
10562 #include <sys/types.h>
10563 #include <inttypes.h>
10565 main ()
10567 intmax_t i = -1;
10568 #ifndef PRId64
10569 choke me
10570 #endif
10572 return 0;
10574 _ACEOF
10575 if ac_fn_cxx_try_compile "$LINENO"; then :
10576 gcc_cv_header_inttypes_h=yes
10577 else
10578 gcc_cv_header_inttypes_h=no
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10584 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10585 if test $gcc_cv_header_inttypes_h = yes; then
10587 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10591 # Look for the ZSTD package.
10592 ZSTD_INCLUDE=
10593 ZSTD_LIB=
10596 ZSTD_CPPFLAGS=
10597 ZSTD_LDFLAGS=
10601 # Check whether --with-zstd was given.
10602 if test "${with_zstd+set}" = set; then :
10603 withval=$with_zstd;
10607 # Check whether --with-zstd-include was given.
10608 if test "${with_zstd_include+set}" = set; then :
10609 withval=$with_zstd_include;
10613 # Check whether --with-zstd-lib was given.
10614 if test "${with_zstd_lib+set}" = set; then :
10615 withval=$with_zstd_lib;
10618 case "x$with_zstd" in
10619 x) ;;
10620 xno)
10621 ZSTD_INCLUDE=
10622 ZSTD_LIB=
10624 *) ZSTD_INCLUDE=$with_zstd/include
10625 ZSTD_LIB=$with_zstd/lib
10627 esac
10629 if test "x$with_zstd" != xno; then
10630 if test "x$with_zstd_include" != x; then
10631 ZSTD_INCLUDE=$with_zstd_include
10633 if test "x$with_zstd_lib" != x; then
10634 ZSTD_LIB=$with_zstd_lib
10636 if test "x$ZSTD_INCLUDE" != x \
10637 && test "x$ZSTD_INCLUDE" != xno; then
10638 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10640 if test "x$ZSTD_LIB" != x \
10641 && test "x$ZSTD_LIB" != xno; then
10642 ZSTD_LDFLAGS=-L$ZSTD_LIB
10645 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10646 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10648 # LTO can use zstd compression algorithm
10649 save_LIBS="$LIBS"
10650 LIBS=
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10652 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10653 if ${ac_cv_search_ZSTD_compress+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 ac_func_search_save_LIBS=$LIBS
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char ZSTD_compress ();
10668 main ()
10670 return ZSTD_compress ();
10672 return 0;
10674 _ACEOF
10675 for ac_lib in '' zstd; do
10676 if test -z "$ac_lib"; then
10677 ac_res="none required"
10678 else
10679 ac_res=-l$ac_lib
10680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10682 if ac_fn_cxx_try_link "$LINENO"; then :
10683 ac_cv_search_ZSTD_compress=$ac_res
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext
10687 if ${ac_cv_search_ZSTD_compress+:} false; then :
10688 break
10690 done
10691 if ${ac_cv_search_ZSTD_compress+:} false; then :
10693 else
10694 ac_cv_search_ZSTD_compress=no
10696 rm conftest.$ac_ext
10697 LIBS=$ac_func_search_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10700 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10701 ac_res=$ac_cv_search_ZSTD_compress
10702 if test "$ac_res" != no; then :
10703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10705 else
10706 gcc_cv_header_zstd_h=no
10709 ZSTD_LIB="$LIBS"
10710 LIBS="$save_LIBS"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10714 $as_echo_n "checking for zstd.h... " >&6; }
10715 if ${gcc_cv_header_zstd_h+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 # We require version 1.3.0 or later. This is the first version that has
10719 # ZSTD_getFrameContentSize.
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include <zstd.h>
10723 #if ZSTD_VERSION_NUMBER < 10300
10724 #error "need zstd 1.3.0 or better"
10725 #endif
10727 main ()
10731 return 0;
10733 _ACEOF
10734 if ac_fn_cxx_try_compile "$LINENO"; then :
10735 gcc_cv_header_zstd_h=yes
10736 else
10737 gcc_cv_header_zstd_h=no
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10743 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10744 if test $gcc_cv_header_zstd_h = yes; then
10746 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10748 elif test "x$with_zstd" != x; then
10749 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10755 for ac_func in times clock kill getrlimit setrlimit atoq \
10756 popen sysconf strsignal getrusage nl_langinfo \
10757 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10758 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
10759 do :
10760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10761 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10763 cat >>confdefs.h <<_ACEOF
10764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10765 _ACEOF
10768 done
10771 if test x$ac_cv_func_mbstowcs = xyes; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10773 $as_echo_n "checking whether mbstowcs works... " >&6; }
10774 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 if test "$cross_compiling" = yes; then :
10778 gcc_cv_func_mbstowcs_works=yes
10779 else
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782 #include <stdlib.h>
10783 int main()
10785 mbstowcs(0, "", 0);
10786 return 0;
10788 _ACEOF
10789 if ac_fn_cxx_try_run "$LINENO"; then :
10790 gcc_cv_func_mbstowcs_works=yes
10791 else
10792 gcc_cv_func_mbstowcs_works=no
10794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10795 conftest.$ac_objext conftest.beam conftest.$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10800 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10801 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10803 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10808 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10809 if test "x$ac_cv_type_ssize_t" = xyes; then :
10811 else
10813 cat >>confdefs.h <<_ACEOF
10814 #define ssize_t int
10815 _ACEOF
10819 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10820 if test "x$ac_cv_type_caddr_t" = xyes; then :
10822 else
10824 cat >>confdefs.h <<_ACEOF
10825 #define caddr_t char *
10826 _ACEOF
10830 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10832 if test "x$ac_cv_type_sighander_t" = xyes; then :
10834 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10840 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10841 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10842 gcc_header_sys_mman_h=yes
10843 else
10844 gcc_header_sys_mman_h=no
10847 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10848 if test "x$ac_cv_func_mmap" = xyes; then :
10849 gcc_func_mmap=yes
10850 else
10851 gcc_func_mmap=no
10854 if test "$gcc_header_sys_mman_h" != yes \
10855 || test "$gcc_func_mmap" != yes; then
10856 gcc_cv_func_mmap_file=no
10857 gcc_cv_func_mmap_dev_zero=no
10858 gcc_cv_func_mmap_anon=no
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10861 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10862 if ${gcc_cv_func_mmap_file+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 # Add a system to this blacklist if
10866 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10867 # memory area containing the same data that you'd get if you applied
10868 # read() to the same fd. The only system known to have a problem here
10869 # is VMS, where text files have record structure.
10870 case "$host_os" in
10871 *vms* | ultrix*)
10872 gcc_cv_func_mmap_file=no ;;
10874 gcc_cv_func_mmap_file=yes;;
10875 esac
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10878 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10880 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10881 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 # Add a system to this blacklist if it has mmap() but /dev/zero
10885 # does not exist, or if mmapping /dev/zero does not give anonymous
10886 # zeroed pages with both the following properties:
10887 # 1. If you map N consecutive pages in with one call, and then
10888 # unmap any subset of those pages, the pages that were not
10889 # explicitly unmapped remain accessible.
10890 # 2. If you map two adjacent blocks of memory and then unmap them
10891 # both at once, they must both go away.
10892 # Systems known to be in this category are Windows (all variants),
10893 # VMS, and Darwin.
10894 case "$host_os" in
10895 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10896 gcc_cv_func_mmap_dev_zero=no ;;
10898 gcc_cv_func_mmap_dev_zero=yes;;
10899 esac
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10902 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10904 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10906 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10907 if ${gcc_cv_decl_map_anon+:} false; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #include <sys/types.h>
10913 #include <sys/mman.h>
10914 #include <unistd.h>
10916 #ifndef MAP_ANONYMOUS
10917 #define MAP_ANONYMOUS MAP_ANON
10918 #endif
10921 main ()
10923 int n = MAP_ANONYMOUS;
10925 return 0;
10927 _ACEOF
10928 if ac_fn_cxx_try_compile "$LINENO"; then :
10929 gcc_cv_decl_map_anon=yes
10930 else
10931 gcc_cv_decl_map_anon=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10936 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10938 if test $gcc_cv_decl_map_anon = no; then
10939 gcc_cv_func_mmap_anon=no
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10942 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10943 if ${gcc_cv_func_mmap_anon+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10947 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10948 # doesn't give anonymous zeroed pages with the same properties listed
10949 # above for use of /dev/zero.
10950 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10951 case "$host_os" in
10952 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10953 gcc_cv_func_mmap_anon=no ;;
10955 gcc_cv_func_mmap_anon=yes;;
10956 esac
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10959 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10963 if test $gcc_cv_func_mmap_file = yes; then
10965 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10968 if test $gcc_cv_func_mmap_dev_zero = yes; then
10970 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10973 if test $gcc_cv_func_mmap_anon = yes; then
10975 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10980 case "${host}" in
10981 *-*-*vms*)
10982 # Under VMS, vfork works very differently than on Unix. The standard test
10983 # won't work, and it isn't easily adaptable. It makes more sense to
10984 # just force it.
10985 ac_cv_func_vfork_works=yes
10987 esac
10988 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10989 if test "x$ac_cv_type_pid_t" = xyes; then :
10991 else
10993 cat >>confdefs.h <<_ACEOF
10994 #define pid_t int
10995 _ACEOF
10999 for ac_header in vfork.h
11000 do :
11001 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11002 if test "x$ac_cv_header_vfork_h" = xyes; then :
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_VFORK_H 1
11005 _ACEOF
11008 done
11010 for ac_func in fork vfork
11011 do :
11012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11015 cat >>confdefs.h <<_ACEOF
11016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11017 _ACEOF
11020 done
11022 if test "x$ac_cv_func_fork" = xyes; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11024 $as_echo_n "checking for working fork... " >&6; }
11025 if ${ac_cv_func_fork_works+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test "$cross_compiling" = yes; then :
11029 ac_cv_func_fork_works=cross
11030 else
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 $ac_includes_default
11035 main ()
11038 /* By Ruediger Kuhlmann. */
11039 return fork () < 0;
11042 return 0;
11044 _ACEOF
11045 if ac_fn_cxx_try_run "$LINENO"; then :
11046 ac_cv_func_fork_works=yes
11047 else
11048 ac_cv_func_fork_works=no
11050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11051 conftest.$ac_objext conftest.beam conftest.$ac_ext
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11056 $as_echo "$ac_cv_func_fork_works" >&6; }
11058 else
11059 ac_cv_func_fork_works=$ac_cv_func_fork
11061 if test "x$ac_cv_func_fork_works" = xcross; then
11062 case $host in
11063 *-*-amigaos* | *-*-msdosdjgpp*)
11064 # Override, as these systems have only a dummy fork() stub
11065 ac_cv_func_fork_works=no
11068 ac_cv_func_fork_works=yes
11070 esac
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11072 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11074 ac_cv_func_vfork_works=$ac_cv_func_vfork
11075 if test "x$ac_cv_func_vfork" = xyes; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11077 $as_echo_n "checking for working vfork... " >&6; }
11078 if ${ac_cv_func_vfork_works+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 if test "$cross_compiling" = yes; then :
11082 ac_cv_func_vfork_works=cross
11083 else
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086 /* Thanks to Paul Eggert for this test. */
11087 $ac_includes_default
11088 #include <sys/wait.h>
11089 #ifdef HAVE_VFORK_H
11090 # include <vfork.h>
11091 #endif
11092 /* On some sparc systems, changes by the child to local and incoming
11093 argument registers are propagated back to the parent. The compiler
11094 is told about this with #include <vfork.h>, but some compilers
11095 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11096 static variable whose address is put into a register that is
11097 clobbered by the vfork. */
11098 static void
11099 #ifdef __cplusplus
11100 sparc_address_test (int arg)
11101 # else
11102 sparc_address_test (arg) int arg;
11103 #endif
11105 static pid_t child;
11106 if (!child) {
11107 child = vfork ();
11108 if (child < 0) {
11109 perror ("vfork");
11110 _exit(2);
11112 if (!child) {
11113 arg = getpid();
11114 write(-1, "", 0);
11115 _exit (arg);
11121 main ()
11123 pid_t parent = getpid ();
11124 pid_t child;
11126 sparc_address_test (0);
11128 child = vfork ();
11130 if (child == 0) {
11131 /* Here is another test for sparc vfork register problems. This
11132 test uses lots of local variables, at least as many local
11133 variables as main has allocated so far including compiler
11134 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11135 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11136 reuse the register of parent for one of the local variables,
11137 since it will think that parent can't possibly be used any more
11138 in this routine. Assigning to the local variable will thus
11139 munge parent in the parent process. */
11140 pid_t
11141 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11142 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11143 /* Convince the compiler that p..p7 are live; otherwise, it might
11144 use the same hardware register for all 8 local variables. */
11145 if (p != p1 || p != p2 || p != p3 || p != p4
11146 || p != p5 || p != p6 || p != p7)
11147 _exit(1);
11149 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11150 from child file descriptors. If the child closes a descriptor
11151 before it execs or exits, this munges the parent's descriptor
11152 as well. Test for this by closing stdout in the child. */
11153 _exit(close(fileno(stdout)) != 0);
11154 } else {
11155 int status;
11156 struct stat st;
11158 while (wait(&status) != child)
11160 return (
11161 /* Was there some problem with vforking? */
11162 child < 0
11164 /* Did the child fail? (This shouldn't happen.) */
11165 || status
11167 /* Did the vfork/compiler bug occur? */
11168 || parent != getpid()
11170 /* Did the file descriptor bug occur? */
11171 || fstat(fileno(stdout), &st) != 0
11175 _ACEOF
11176 if ac_fn_cxx_try_run "$LINENO"; then :
11177 ac_cv_func_vfork_works=yes
11178 else
11179 ac_cv_func_vfork_works=no
11181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11182 conftest.$ac_objext conftest.beam conftest.$ac_ext
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11187 $as_echo "$ac_cv_func_vfork_works" >&6; }
11190 if test "x$ac_cv_func_fork_works" = xcross; then
11191 ac_cv_func_vfork_works=$ac_cv_func_vfork
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11193 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11196 if test "x$ac_cv_func_vfork_works" = xyes; then
11198 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11200 else
11202 $as_echo "#define vfork fork" >>confdefs.h
11205 if test "x$ac_cv_func_fork_works" = xyes; then
11207 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11213 if test "X$prefix" = "XNONE"; then
11214 acl_final_prefix="$ac_default_prefix"
11215 else
11216 acl_final_prefix="$prefix"
11218 if test "X$exec_prefix" = "XNONE"; then
11219 acl_final_exec_prefix='${prefix}'
11220 else
11221 acl_final_exec_prefix="$exec_prefix"
11223 acl_save_prefix="$prefix"
11224 prefix="$acl_final_prefix"
11225 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11226 prefix="$acl_save_prefix"
11229 # Check whether --with-gnu-ld was given.
11230 if test "${with_gnu_ld+set}" = set; then :
11231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11232 else
11233 with_gnu_ld=no
11236 # Prepare PATH_SEPARATOR.
11237 # The user is always right.
11238 if test "${PATH_SEPARATOR+set}" != set; then
11239 echo "#! /bin/sh" >conf$$.sh
11240 echo "exit 0" >>conf$$.sh
11241 chmod +x conf$$.sh
11242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11243 PATH_SEPARATOR=';'
11244 else
11245 PATH_SEPARATOR=:
11247 rm -f conf$$.sh
11249 ac_prog=ld
11250 if test "$GCC" = yes; then
11251 # Check if gcc -print-prog-name=ld gives a path.
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11253 $as_echo_n "checking for ld used by GCC... " >&6; }
11254 case $host in
11255 *-*-mingw*)
11256 # gcc leaves a trailing carriage return which upsets mingw
11257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11260 esac
11261 case $ac_prog in
11262 # Accept absolute paths.
11263 [\\/]* | [A-Za-z]:[\\/]*)
11264 re_direlt='/[^/][^/]*/\.\./'
11265 # Canonicalize the path of ld
11266 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11267 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11268 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11269 done
11270 test -z "$LD" && LD="$ac_prog"
11273 # If it fails, then pretend we aren't using GCC.
11274 ac_prog=ld
11277 # If it is relative, then search for the first ld in PATH.
11278 with_gnu_ld=unknown
11280 esac
11281 elif test "$with_gnu_ld" = yes; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11283 $as_echo_n "checking for GNU ld... " >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11286 $as_echo_n "checking for non-GNU ld... " >&6; }
11288 if ${acl_cv_path_LD+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 if test -z "$LD"; then
11292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11293 for ac_dir in $PATH; do
11294 test -z "$ac_dir" && ac_dir=.
11295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11296 acl_cv_path_LD="$ac_dir/$ac_prog"
11297 # Check to see if the program is GNU ld. I'd rather use --version,
11298 # but apparently some GNU ld's only accept -v.
11299 # Break only if it was the GNU/non-GNU ld that we prefer.
11300 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11301 test "$with_gnu_ld" != no && break
11302 else
11303 test "$with_gnu_ld" != yes && break
11306 done
11307 IFS="$ac_save_ifs"
11308 else
11309 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11313 LD="$acl_cv_path_LD"
11314 if test -n "$LD"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11316 $as_echo "$LD" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11321 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11324 if ${acl_cv_prog_gnu_ld+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11328 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11329 acl_cv_prog_gnu_ld=yes
11330 else
11331 acl_cv_prog_gnu_ld=no
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11335 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11336 with_gnu_ld=$acl_cv_prog_gnu_ld
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11341 $as_echo_n "checking for shared library run path origin... " >&6; }
11342 if ${acl_cv_rpath+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11346 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11348 . ./conftest.sh
11349 rm -f ./conftest.sh
11350 acl_cv_rpath=done
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11354 $as_echo "$acl_cv_rpath" >&6; }
11355 wl="$acl_cv_wl"
11356 libext="$acl_cv_libext"
11357 shlibext="$acl_cv_shlibext"
11358 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11359 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11360 hardcode_direct="$acl_cv_hardcode_direct"
11361 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11362 # Check whether --enable-rpath was given.
11363 if test "${enable_rpath+set}" = set; then :
11364 enableval=$enable_rpath; :
11365 else
11366 enable_rpath=yes
11376 use_additional=yes
11378 acl_save_prefix="$prefix"
11379 prefix="$acl_final_prefix"
11380 acl_save_exec_prefix="$exec_prefix"
11381 exec_prefix="$acl_final_exec_prefix"
11383 eval additional_includedir=\"$includedir\"
11384 eval additional_libdir=\"$libdir\"
11386 exec_prefix="$acl_save_exec_prefix"
11387 prefix="$acl_save_prefix"
11390 # Check whether --with-libiconv-prefix was given.
11391 if test "${with_libiconv_prefix+set}" = set; then :
11392 withval=$with_libiconv_prefix;
11393 if test "X$withval" = "Xno"; then
11394 use_additional=no
11395 else
11396 if test "X$withval" = "X"; then
11398 acl_save_prefix="$prefix"
11399 prefix="$acl_final_prefix"
11400 acl_save_exec_prefix="$exec_prefix"
11401 exec_prefix="$acl_final_exec_prefix"
11403 eval additional_includedir=\"$includedir\"
11404 eval additional_libdir=\"$libdir\"
11406 exec_prefix="$acl_save_exec_prefix"
11407 prefix="$acl_save_prefix"
11409 else
11410 additional_includedir="$withval/include"
11411 additional_libdir="$withval/lib"
11418 # Check whether --with-libiconv-type was given.
11419 if test "${with_libiconv_type+set}" = set; then :
11420 withval=$with_libiconv_type; with_libiconv_type=$withval
11421 else
11422 with_libiconv_type=auto
11425 lib_type=`eval echo \$with_libiconv_type`
11427 LIBICONV=
11428 LTLIBICONV=
11429 INCICONV=
11430 rpathdirs=
11431 ltrpathdirs=
11432 names_already_handled=
11433 names_next_round='iconv '
11434 while test -n "$names_next_round"; do
11435 names_this_round="$names_next_round"
11436 names_next_round=
11437 for name in $names_this_round; do
11438 already_handled=
11439 for n in $names_already_handled; do
11440 if test "$n" = "$name"; then
11441 already_handled=yes
11442 break
11444 done
11445 if test -z "$already_handled"; then
11446 names_already_handled="$names_already_handled $name"
11447 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11448 eval value=\"\$HAVE_LIB$uppername\"
11449 if test -n "$value"; then
11450 if test "$value" = yes; then
11451 eval value=\"\$LIB$uppername\"
11452 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11453 eval value=\"\$LTLIB$uppername\"
11454 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11455 else
11458 else
11459 found_dir=
11460 found_la=
11461 found_so=
11462 found_a=
11463 if test $use_additional = yes; then
11464 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11465 found_dir="$additional_libdir"
11466 found_so="$additional_libdir/lib$name.$shlibext"
11467 if test -f "$additional_libdir/lib$name.la"; then
11468 found_la="$additional_libdir/lib$name.la"
11470 elif test x$lib_type != xshared; then
11471 if test -f "$additional_libdir/lib$name.$libext"; then
11472 found_dir="$additional_libdir"
11473 found_a="$additional_libdir/lib$name.$libext"
11474 if test -f "$additional_libdir/lib$name.la"; then
11475 found_la="$additional_libdir/lib$name.la"
11480 if test "X$found_dir" = "X"; then
11481 for x in $LDFLAGS $LTLIBICONV; do
11483 acl_save_prefix="$prefix"
11484 prefix="$acl_final_prefix"
11485 acl_save_exec_prefix="$exec_prefix"
11486 exec_prefix="$acl_final_exec_prefix"
11487 eval x=\"$x\"
11488 exec_prefix="$acl_save_exec_prefix"
11489 prefix="$acl_save_prefix"
11491 case "$x" in
11492 -L*)
11493 dir=`echo "X$x" | sed -e 's/^X-L//'`
11494 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11495 found_dir="$dir"
11496 found_so="$dir/lib$name.$shlibext"
11497 if test -f "$dir/lib$name.la"; then
11498 found_la="$dir/lib$name.la"
11500 elif test x$lib_type != xshared; then
11501 if test -f "$dir/lib$name.$libext"; then
11502 found_dir="$dir"
11503 found_a="$dir/lib$name.$libext"
11504 if test -f "$dir/lib$name.la"; then
11505 found_la="$dir/lib$name.la"
11510 esac
11511 if test "X$found_dir" != "X"; then
11512 break
11514 done
11516 if test "X$found_dir" != "X"; then
11517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11518 if test "X$found_so" != "X"; then
11519 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11521 else
11522 haveit=
11523 for x in $ltrpathdirs; do
11524 if test "X$x" = "X$found_dir"; then
11525 haveit=yes
11526 break
11528 done
11529 if test -z "$haveit"; then
11530 ltrpathdirs="$ltrpathdirs $found_dir"
11532 if test "$hardcode_direct" = yes; then
11533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11534 else
11535 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11536 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11537 haveit=
11538 for x in $rpathdirs; do
11539 if test "X$x" = "X$found_dir"; then
11540 haveit=yes
11541 break
11543 done
11544 if test -z "$haveit"; then
11545 rpathdirs="$rpathdirs $found_dir"
11547 else
11548 haveit=
11549 for x in $LDFLAGS $LIBICONV; do
11551 acl_save_prefix="$prefix"
11552 prefix="$acl_final_prefix"
11553 acl_save_exec_prefix="$exec_prefix"
11554 exec_prefix="$acl_final_exec_prefix"
11555 eval x=\"$x\"
11556 exec_prefix="$acl_save_exec_prefix"
11557 prefix="$acl_save_prefix"
11559 if test "X$x" = "X-L$found_dir"; then
11560 haveit=yes
11561 break
11563 done
11564 if test -z "$haveit"; then
11565 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11567 if test "$hardcode_minus_L" != no; then
11568 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11569 else
11570 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11575 else
11576 if test "X$found_a" != "X"; then
11577 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11578 else
11579 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11582 additional_includedir=
11583 case "$found_dir" in
11584 */lib | */lib/)
11585 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11586 additional_includedir="$basedir/include"
11588 esac
11589 if test "X$additional_includedir" != "X"; then
11590 if test "X$additional_includedir" != "X/usr/include"; then
11591 haveit=
11592 if test "X$additional_includedir" = "X/usr/local/include"; then
11593 if test -n "$GCC"; then
11594 case $host_os in
11595 linux*) haveit=yes;;
11596 esac
11599 if test -z "$haveit"; then
11600 for x in $CPPFLAGS $INCICONV; do
11602 acl_save_prefix="$prefix"
11603 prefix="$acl_final_prefix"
11604 acl_save_exec_prefix="$exec_prefix"
11605 exec_prefix="$acl_final_exec_prefix"
11606 eval x=\"$x\"
11607 exec_prefix="$acl_save_exec_prefix"
11608 prefix="$acl_save_prefix"
11610 if test "X$x" = "X-I$additional_includedir"; then
11611 haveit=yes
11612 break
11614 done
11615 if test -z "$haveit"; then
11616 if test -d "$additional_includedir"; then
11617 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11623 if test -n "$found_la"; then
11624 save_libdir="$libdir"
11625 case "$found_la" in
11626 */* | *\\*) . "$found_la" ;;
11627 *) . "./$found_la" ;;
11628 esac
11629 libdir="$save_libdir"
11630 for dep in $dependency_libs; do
11631 case "$dep" in
11632 -L*)
11633 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11634 if test "X$additional_libdir" != "X/usr/lib"; then
11635 haveit=
11636 if test "X$additional_libdir" = "X/usr/local/lib"; then
11637 if test -n "$GCC"; then
11638 case $host_os in
11639 linux*) haveit=yes;;
11640 esac
11643 if test -z "$haveit"; then
11644 haveit=
11645 for x in $LDFLAGS $LIBICONV; do
11647 acl_save_prefix="$prefix"
11648 prefix="$acl_final_prefix"
11649 acl_save_exec_prefix="$exec_prefix"
11650 exec_prefix="$acl_final_exec_prefix"
11651 eval x=\"$x\"
11652 exec_prefix="$acl_save_exec_prefix"
11653 prefix="$acl_save_prefix"
11655 if test "X$x" = "X-L$additional_libdir"; then
11656 haveit=yes
11657 break
11659 done
11660 if test -z "$haveit"; then
11661 if test -d "$additional_libdir"; then
11662 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11665 haveit=
11666 for x in $LDFLAGS $LTLIBICONV; do
11668 acl_save_prefix="$prefix"
11669 prefix="$acl_final_prefix"
11670 acl_save_exec_prefix="$exec_prefix"
11671 exec_prefix="$acl_final_exec_prefix"
11672 eval x=\"$x\"
11673 exec_prefix="$acl_save_exec_prefix"
11674 prefix="$acl_save_prefix"
11676 if test "X$x" = "X-L$additional_libdir"; then
11677 haveit=yes
11678 break
11680 done
11681 if test -z "$haveit"; then
11682 if test -d "$additional_libdir"; then
11683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11689 -R*)
11690 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11691 if test "$enable_rpath" != no; then
11692 haveit=
11693 for x in $rpathdirs; do
11694 if test "X$x" = "X$dir"; then
11695 haveit=yes
11696 break
11698 done
11699 if test -z "$haveit"; then
11700 rpathdirs="$rpathdirs $dir"
11702 haveit=
11703 for x in $ltrpathdirs; do
11704 if test "X$x" = "X$dir"; then
11705 haveit=yes
11706 break
11708 done
11709 if test -z "$haveit"; then
11710 ltrpathdirs="$ltrpathdirs $dir"
11714 -l*)
11715 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11717 *.la)
11718 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11721 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11724 esac
11725 done
11727 else
11728 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11729 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11730 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11731 else
11732 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11733 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11738 done
11739 done
11740 if test "X$rpathdirs" != "X"; then
11741 if test -n "$hardcode_libdir_separator"; then
11742 alldirs=
11743 for found_dir in $rpathdirs; do
11744 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11745 done
11746 acl_save_libdir="$libdir"
11747 libdir="$alldirs"
11748 eval flag=\"$hardcode_libdir_flag_spec\"
11749 libdir="$acl_save_libdir"
11750 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11751 else
11752 for found_dir in $rpathdirs; do
11753 acl_save_libdir="$libdir"
11754 libdir="$found_dir"
11755 eval flag=\"$hardcode_libdir_flag_spec\"
11756 libdir="$acl_save_libdir"
11757 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11758 done
11761 if test "X$ltrpathdirs" != "X"; then
11762 for found_dir in $ltrpathdirs; do
11763 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11764 done
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11774 $as_echo_n "checking for iconv... " >&6; }
11775 if ${am_cv_func_iconv+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11779 am_cv_func_iconv="no, consider installing GNU libiconv"
11780 am_cv_lib_iconv=no
11781 am_save_CPPFLAGS="$CPPFLAGS"
11782 CPPFLAGS="$CPPFLAGS $INCICONV"
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <stdlib.h>
11786 #include <iconv.h>
11788 main ()
11790 iconv_t cd = iconv_open("","");
11791 iconv(cd,NULL,NULL,NULL,NULL);
11792 iconv_close(cd);
11794 return 0;
11796 _ACEOF
11797 if ac_fn_cxx_try_link "$LINENO"; then :
11798 am_cv_func_iconv=yes
11800 rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11802 CPPFLAGS="$am_save_CPPFLAGS"
11804 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11805 for _libs in .libs _libs; do
11806 am_save_CPPFLAGS="$CPPFLAGS"
11807 am_save_LIBS="$LIBS"
11808 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11809 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812 #include <stdlib.h>
11813 #include <iconv.h>
11815 main ()
11817 iconv_t cd = iconv_open("","");
11818 iconv(cd,NULL,NULL,NULL,NULL);
11819 iconv_close(cd);
11821 return 0;
11823 _ACEOF
11824 if ac_fn_cxx_try_link "$LINENO"; then :
11825 INCICONV="-I../libiconv/include"
11826 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11827 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11828 am_cv_lib_iconv=yes
11829 am_cv_func_iconv=yes
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833 CPPFLAGS="$am_save_CPPFLAGS"
11834 LIBS="$am_save_LIBS"
11835 if test "$am_cv_func_iconv" = "yes"; then
11836 break
11838 done
11841 if test "$am_cv_func_iconv" != yes; then
11842 am_save_CPPFLAGS="$CPPFLAGS"
11843 am_save_LIBS="$LIBS"
11844 CPPFLAGS="$CPPFLAGS $INCICONV"
11845 LIBS="$LIBS $LIBICONV"
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <stdlib.h>
11849 #include <iconv.h>
11851 main ()
11853 iconv_t cd = iconv_open("","");
11854 iconv(cd,NULL,NULL,NULL,NULL);
11855 iconv_close(cd);
11857 return 0;
11859 _ACEOF
11860 if ac_fn_cxx_try_link "$LINENO"; then :
11861 am_cv_lib_iconv=yes
11862 am_cv_func_iconv=yes
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 CPPFLAGS="$am_save_CPPFLAGS"
11867 LIBS="$am_save_LIBS"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11872 $as_echo "$am_cv_func_iconv" >&6; }
11873 if test "$am_cv_func_iconv" = yes; then
11875 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11878 if test "$am_cv_lib_iconv" = yes; then
11880 for element in $INCICONV; do
11881 haveit=
11882 for x in $CPPFLAGS; do
11884 acl_save_prefix="$prefix"
11885 prefix="$acl_final_prefix"
11886 acl_save_exec_prefix="$exec_prefix"
11887 exec_prefix="$acl_final_exec_prefix"
11888 eval x=\"$x\"
11889 exec_prefix="$acl_save_exec_prefix"
11890 prefix="$acl_save_prefix"
11892 if test "X$x" = "X$element"; then
11893 haveit=yes
11894 break
11896 done
11897 if test -z "$haveit"; then
11898 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11900 done
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11903 $as_echo_n "checking how to link with libiconv... " >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11905 $as_echo "$LIBICONV" >&6; }
11906 else
11907 LIBICONV=
11908 LTLIBICONV=
11913 if test "$am_cv_func_iconv" = yes; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11915 $as_echo_n "checking for iconv declaration... " >&6; }
11916 if ${am_cv_proto_iconv+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11923 #include <stdlib.h>
11924 #include <iconv.h>
11925 extern
11926 #ifdef __cplusplus
11928 #endif
11929 #if defined(__STDC__) || defined(__cplusplus)
11930 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11931 #else
11932 size_t iconv();
11933 #endif
11936 main ()
11940 return 0;
11942 _ACEOF
11943 if ac_fn_cxx_try_compile "$LINENO"; then :
11944 am_cv_proto_iconv_arg1=""
11945 else
11946 am_cv_proto_iconv_arg1="const"
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 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);"
11952 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11954 }$am_cv_proto_iconv" >&5
11955 $as_echo "${ac_t:-
11956 }$am_cv_proto_iconv" >&6; }
11958 cat >>confdefs.h <<_ACEOF
11959 #define ICONV_CONST $am_cv_proto_iconv_arg1
11960 _ACEOF
11965 # Until we have in-tree GNU iconv:
11966 LIBICONV_DEP=
11967 if test -f "$LTLIBICONV"; then
11968 LIBICONV_DEP=$LTLIBICONV
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11974 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11975 if ${am_cv_val_LC_MESSAGES+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #include <locale.h>
11982 main ()
11984 return LC_MESSAGES
11986 return 0;
11988 _ACEOF
11989 if ac_fn_cxx_try_link "$LINENO"; then :
11990 am_cv_val_LC_MESSAGES=yes
11991 else
11992 am_cv_val_LC_MESSAGES=no
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11998 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11999 if test $am_cv_val_LC_MESSAGES = yes; then
12001 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12008 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12009 if ${am_cv_langinfo_codeset+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #include <langinfo.h>
12016 main ()
12018 char* cs = nl_langinfo(CODESET);
12020 return 0;
12022 _ACEOF
12023 if ac_fn_cxx_try_link "$LINENO"; then :
12024 am_cv_langinfo_codeset=yes
12025 else
12026 am_cv_langinfo_codeset=no
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12033 $as_echo "$am_cv_langinfo_codeset" >&6; }
12034 if test $am_cv_langinfo_codeset = yes; then
12036 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12041 # We will need to find libiberty.h and ansidecl.h
12042 saved_CFLAGS="$CFLAGS"
12043 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12044 saved_CXXFLAGS="$CXXFLAGS"
12045 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12047 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12048 # normal autoconf function for these. But force definition of
12049 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12050 # basename handling in libiberty.h.
12051 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12052 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12053 #undef HAVE_DECL_BASENAME
12054 #define HAVE_DECL_BASENAME 1
12055 #include \"ansidecl.h\"
12056 #include \"system.h\"
12058 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12059 ac_have_decl=1
12060 else
12061 ac_have_decl=0
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_DECL_BASENAME $ac_have_decl
12066 _ACEOF
12067 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12068 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12069 #undef HAVE_DECL_BASENAME
12070 #define HAVE_DECL_BASENAME 1
12071 #include \"ansidecl.h\"
12072 #include \"system.h\"
12074 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12075 ac_have_decl=1
12076 else
12077 ac_have_decl=0
12080 cat >>confdefs.h <<_ACEOF
12081 #define HAVE_DECL_STRSTR $ac_have_decl
12082 _ACEOF
12085 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12086 madvise stpcpy strnlen strsignal strverscmp \
12087 strtol strtoul strtoll strtoull setenv unsetenv \
12088 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12089 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
12091 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12093 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12094 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #undef $ac_tr_decl
12100 #define $ac_tr_decl 1
12102 #include "ansidecl.h"
12103 #include "system.h"
12106 main ()
12108 #ifndef $ac_func
12109 char *(*pfn) = (char *(*)) $ac_func ;
12110 #endif
12112 return 0;
12114 _ACEOF
12115 if ac_fn_cxx_try_compile "$LINENO"; then :
12116 eval "gcc_cv_have_decl_$ac_func=yes"
12117 else
12118 eval "gcc_cv_have_decl_$ac_func=no"
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12125 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12126 #define $ac_tr_decl 1
12127 _ACEOF
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12132 #define $ac_tr_decl 0
12133 _ACEOF
12137 done
12140 for ac_func in getrlimit setrlimit getrusage
12142 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12144 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12145 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #undef $ac_tr_decl
12151 #define $ac_tr_decl 1
12153 #include "ansidecl.h"
12154 #include "system.h"
12155 #ifdef HAVE_SYS_RESOURCE_H
12156 #include <sys/resource.h>
12157 #endif
12161 main ()
12163 #ifndef $ac_func
12164 char *(*pfn) = (char *(*)) $ac_func ;
12165 #endif
12167 return 0;
12169 _ACEOF
12170 if ac_fn_cxx_try_compile "$LINENO"; then :
12171 eval "gcc_cv_have_decl_$ac_func=yes"
12172 else
12173 eval "gcc_cv_have_decl_$ac_func=no"
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12181 #define $ac_tr_decl 1
12182 _ACEOF
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12187 #define $ac_tr_decl 0
12188 _ACEOF
12192 done
12195 for ac_func in mallinfo mallinfo2
12197 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12199 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12200 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #undef $ac_tr_decl
12206 #define $ac_tr_decl 1
12208 #include "ansidecl.h"
12209 #include "system.h"
12210 #ifdef HAVE_MALLOC_H
12211 #include <malloc.h>
12212 #endif
12216 main ()
12218 #ifndef $ac_func
12219 char *(*pfn) = (char *(*)) $ac_func ;
12220 #endif
12222 return 0;
12224 _ACEOF
12225 if ac_fn_cxx_try_compile "$LINENO"; then :
12226 eval "gcc_cv_have_decl_$ac_func=yes"
12227 else
12228 eval "gcc_cv_have_decl_$ac_func=no"
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12236 #define $ac_tr_decl 1
12237 _ACEOF
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12242 #define $ac_tr_decl 0
12243 _ACEOF
12247 done
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 #include "ansidecl.h"
12254 #include "system.h"
12255 #ifdef HAVE_SYS_RESOURCE_H
12256 #include <sys/resource.h>
12257 #endif
12260 main ()
12262 rlim_t l = 0;
12264 return 0;
12266 _ACEOF
12267 if ac_fn_cxx_try_compile "$LINENO"; then :
12269 else
12271 $as_echo "#define rlim_t long" >>confdefs.h
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12277 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12278 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12279 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12280 for ac_func in ldgetname
12282 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12284 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12285 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #undef $ac_tr_decl
12291 #define $ac_tr_decl 1
12293 #include "ansidecl.h"
12294 #include "system.h"
12295 #ifdef HAVE_LDFCN_H
12296 #undef FREAD
12297 #undef FWRITE
12298 #include <ldfcn.h>
12299 #endif
12303 main ()
12305 #ifndef $ac_func
12306 char *(*pfn) = (char *(*)) $ac_func ;
12307 #endif
12309 return 0;
12311 _ACEOF
12312 if ac_fn_cxx_try_compile "$LINENO"; then :
12313 eval "gcc_cv_have_decl_$ac_func=yes"
12314 else
12315 eval "gcc_cv_have_decl_$ac_func=no"
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12323 #define $ac_tr_decl 1
12324 _ACEOF
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12329 #define $ac_tr_decl 0
12330 _ACEOF
12334 done
12337 for ac_func in times
12339 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12341 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12342 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 #undef $ac_tr_decl
12348 #define $ac_tr_decl 1
12350 #include "ansidecl.h"
12351 #include "system.h"
12352 #ifdef HAVE_SYS_TIMES_H
12353 #include <sys/times.h>
12354 #endif
12358 main ()
12360 #ifndef $ac_func
12361 char *(*pfn) = (char *(*)) $ac_func ;
12362 #endif
12364 return 0;
12366 _ACEOF
12367 if ac_fn_cxx_try_compile "$LINENO"; then :
12368 eval "gcc_cv_have_decl_$ac_func=yes"
12369 else
12370 eval "gcc_cv_have_decl_$ac_func=no"
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12378 #define $ac_tr_decl 1
12379 _ACEOF
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12384 #define $ac_tr_decl 0
12385 _ACEOF
12389 done
12392 for ac_func in sigaltstack
12394 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12396 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12397 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402 #undef $ac_tr_decl
12403 #define $ac_tr_decl 1
12405 #include "ansidecl.h"
12406 #include "system.h"
12407 #include <signal.h>
12411 main ()
12413 #ifndef $ac_func
12414 char *(*pfn) = (char *(*)) $ac_func ;
12415 #endif
12417 return 0;
12419 _ACEOF
12420 if ac_fn_cxx_try_compile "$LINENO"; then :
12421 eval "gcc_cv_have_decl_$ac_func=yes"
12422 else
12423 eval "gcc_cv_have_decl_$ac_func=no"
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12430 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12431 #define $ac_tr_decl 1
12432 _ACEOF
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12437 #define $ac_tr_decl 0
12438 _ACEOF
12442 done
12445 # More time-related stuff.
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12447 $as_echo_n "checking for struct tms... " >&6; }
12448 if ${ac_cv_struct_tms+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12455 #include "ansidecl.h"
12456 #include "system.h"
12457 #ifdef HAVE_SYS_TIMES_H
12458 #include <sys/times.h>
12459 #endif
12462 main ()
12464 struct tms tms;
12466 return 0;
12468 _ACEOF
12469 if ac_fn_cxx_try_compile "$LINENO"; then :
12470 ac_cv_struct_tms=yes
12471 else
12472 ac_cv_struct_tms=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12477 $as_echo "$ac_cv_struct_tms" >&6; }
12478 if test $ac_cv_struct_tms = yes; then
12480 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12484 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12485 # revisit after autoconf 2.50.
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12487 $as_echo_n "checking for clock_t... " >&6; }
12488 if ${gcc_cv_type_clock_t+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12495 #include "ansidecl.h"
12496 #include "system.h"
12499 main ()
12501 clock_t x;
12503 return 0;
12505 _ACEOF
12506 if ac_fn_cxx_try_compile "$LINENO"; then :
12507 gcc_cv_type_clock_t=yes
12508 else
12509 gcc_cv_type_clock_t=no
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12514 $as_echo "$gcc_cv_type_clock_t" >&6; }
12515 if test $gcc_cv_type_clock_t = yes; then
12517 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12521 # Check if F_SETLKW is supported by fcntl.
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12523 $as_echo_n "checking for F_SETLKW... " >&6; }
12524 if ${ac_cv_f_setlkw+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 #include <fcntl.h>
12533 main ()
12536 struct flock fl;
12537 fl.l_whence = 0;
12538 fl.l_start = 0;
12539 fl.l_len = 0;
12540 fl.l_pid = 0;
12541 return fcntl (1, F_SETLKW, &fl);
12543 return 0;
12545 _ACEOF
12546 if ac_fn_cxx_try_compile "$LINENO"; then :
12547 ac_cv_f_setlkw=yes
12548 else
12549 ac_cv_f_setlkw=no
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12554 $as_echo "$ac_cv_f_setlkw" >&6; }
12555 if test $ac_cv_f_setlkw = yes; then
12557 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12561 # Check if O_CLOEXEC is defined by fcntl
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12563 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12564 if ${ac_cv_o_cloexec+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12571 #include <fcntl.h>
12573 main ()
12576 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12578 return 0;
12580 _ACEOF
12581 if ac_fn_cxx_try_compile "$LINENO"; then :
12582 ac_cv_o_cloexec=yes
12583 else
12584 ac_cv_o_cloexec=no
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12589 $as_echo "$ac_cv_o_cloexec" >&6; }
12590 if test $ac_cv_o_cloexec = yes; then
12592 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12596 # Check if O_NONBLOCK is defined by fcntl
12597 for ac_header in fcntl.h
12598 do :
12599 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12600 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12601 cat >>confdefs.h <<_ACEOF
12602 #define HAVE_FCNTL_H 1
12603 _ACEOF
12606 done
12608 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12610 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12614 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12616 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12621 # C++ Modules would like some networking features to provide the mapping
12622 # server. You can still use modules without them though.
12623 # The following network-related checks could probably do with some
12624 # Windows and other non-linux defenses and checking.
12626 # Local socket connectivity wants AF_UNIX networking
12627 # Check for AF_UNIX networking
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12629 $as_echo_n "checking for AF_UNIX... " >&6; }
12630 if ${ac_cv_af_unix+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12637 #include <sys/types.h>
12638 #include <sys/socket.h>
12639 #include <sys/un.h>
12640 #include <netinet/in.h>
12642 main ()
12645 sockaddr_un un;
12646 un.sun_family = AF_UNSPEC;
12647 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12648 connect (fd, (sockaddr *)&un, sizeof (un));
12650 return 0;
12652 _ACEOF
12653 if ac_fn_cxx_try_compile "$LINENO"; then :
12654 ac_cv_af_unix=yes
12655 else
12656 ac_cv_af_unix=no
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12661 $as_echo "$ac_cv_af_unix" >&6; }
12662 if test $ac_cv_af_unix = yes; then
12664 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12668 # Remote socket connectivity wants AF_INET6 networking
12669 # Check for AF_INET6 networking
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12671 $as_echo_n "checking for AF_INET6... " >&6; }
12672 if ${ac_cv_af_inet6+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 #include <sys/types.h>
12680 #include <sys/socket.h>
12681 #include <netinet/in.h>
12682 #include <netdb.h>
12684 main ()
12687 sockaddr_in6 in6;
12688 in6.sin6_family = AF_UNSPEC;
12689 struct addrinfo *addrs = 0;
12690 struct addrinfo hints;
12691 hints.ai_flags = 0;
12692 hints.ai_family = AF_INET6;
12693 hints.ai_socktype = SOCK_STREAM;
12694 hints.ai_protocol = 0;
12695 hints.ai_canonname = 0;
12696 hints.ai_addr = 0;
12697 hints.ai_next = 0;
12698 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12699 const char *str = gai_strerror (e);
12700 freeaddrinfo (addrs);
12701 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12702 connect (fd, (sockaddr *)&in6, sizeof (in6));
12704 return 0;
12706 _ACEOF
12707 if ac_fn_cxx_try_compile "$LINENO"; then :
12708 ac_cv_af_inet6=yes
12709 else
12710 ac_cv_af_inet6=no
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12715 $as_echo "$ac_cv_af_inet6" >&6; }
12716 if test $ac_cv_af_inet6 = yes; then
12718 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12722 # Check if _LK_LOCK is supported by _locking
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12724 $as_echo_n "checking for _LK_LOCK... " >&6; }
12725 if ${ac_cv_lk_lock+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12732 #include <io.h>
12733 #include <sys/locking.h>
12735 main ()
12738 int fd;
12739 return _locking (fd, _LK_LOCK, 0);
12741 return 0;
12743 _ACEOF
12744 if ac_fn_cxx_try_compile "$LINENO"; then :
12745 ac_cv_lk_lock=yes
12746 else
12747 ac_cv_lk_lock=no
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12752 $as_echo "$ac_cv_lk_lock" >&6; }
12753 if test $ac_cv_lk_lock = yes; then
12755 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12759 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12760 CFLAGS="$saved_CFLAGS"
12761 CXXFLAGS="$saved_CXXFLAGS"
12763 # mkdir takes a single argument on some systems.
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12765 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12766 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12772 #include <sys/types.h>
12773 #ifdef HAVE_SYS_STAT_H
12774 # include <sys/stat.h>
12775 #endif
12776 #ifdef HAVE_UNISTD_H
12777 # include <unistd.h>
12778 #endif
12779 #ifdef HAVE_DIRECT_H
12780 # include <direct.h>
12781 #endif
12783 main ()
12785 mkdir ("foo", 0);
12787 return 0;
12789 _ACEOF
12790 if ac_fn_cxx_try_compile "$LINENO"; then :
12791 gcc_cv_mkdir_takes_one_arg=no
12792 else
12793 gcc_cv_mkdir_takes_one_arg=yes
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12798 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12799 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12801 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12806 # File extensions
12807 manext='.1'
12808 objext='.o'
12812 # With Setjmp/Longjmp based exception handling.
12813 # Check whether --enable-sjlj-exceptions was given.
12814 if test "${enable_sjlj_exceptions+set}" = set; then :
12815 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12816 else
12817 case $target in
12818 lm32*-*-*)
12819 force_sjlj_exceptions=yes
12820 enableval=yes
12823 force_sjlj_exceptions=no
12825 esac
12828 if test $force_sjlj_exceptions = yes; then
12829 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12831 cat >>confdefs.h <<_ACEOF
12832 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12833 _ACEOF
12837 # --------------------------------------------------------
12838 # Build, host, and target specific configuration fragments
12839 # --------------------------------------------------------
12841 # Collect build-machine-specific information.
12842 . ${srcdir}/config.build || exit 1
12844 # Collect host-machine-specific information.
12845 . ${srcdir}/config.host || exit 1
12847 target_gtfiles=
12849 # Collect target-machine-specific information.
12850 . ${srcdir}/config.gcc || exit 1
12852 extra_objs="${host_extra_objs} ${extra_objs}"
12853 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12855 # Default the target-machine variables that were not explicitly set.
12856 if test x"$tm_file" = x
12857 then tm_file=$cpu_type/$cpu_type.h; fi
12859 if test x"$extra_headers" = x
12860 then extra_headers=; fi
12862 if test x$md_file = x
12863 then md_file=$cpu_type/$cpu_type.md; fi
12865 if test x$out_file = x
12866 then out_file=$cpu_type/$cpu_type.cc; fi
12868 if test x"$tmake_file" = x
12869 then tmake_file=$cpu_type/t-$cpu_type
12872 # Support --enable-initfini-array.
12873 if test x$enable_initfini_array != xno; then
12874 tm_file="${tm_file} initfini-array.h"
12877 if test x"$dwarf2" = xyes
12878 then tm_file="$tm_file tm-dwarf2.h"
12881 # Say what files are being used for the output code and MD file.
12882 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12883 echo "Using \`$srcdir/config/$md_file' as machine description file."
12885 # If any of the xm_file variables contain nonexistent files, warn
12886 # about them and drop them.
12889 for x in $build_xm_file; do
12890 if test -f $srcdir/config/$x
12891 then bx="$bx $x"
12892 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12893 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12895 done
12896 build_xm_file="$bx"
12899 for x in $host_xm_file; do
12900 if test -f $srcdir/config/$x
12901 then hx="$hx $x"
12902 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12903 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12905 done
12906 host_xm_file="$hx"
12909 for x in $xm_file; do
12910 if test -f $srcdir/config/$x
12911 then tx="$tx $x"
12912 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12913 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12915 done
12916 xm_file="$tx"
12918 count=a
12919 for f in $tm_file; do
12920 count=${count}x
12921 done
12922 if test $count = ax; then
12923 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12924 else
12925 echo "Using the following target machine macro files:"
12926 for f in $tm_file; do
12927 echo " $srcdir/config/$f"
12928 done
12931 if test x$use_long_long_for_widest_fast_int = xyes; then
12933 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12937 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_GNU_LD $gnu_ld_bool
12941 _ACEOF
12944 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_GNU_AS $gnu_as_bool
12948 _ACEOF
12951 count=a
12952 for f in $host_xm_file; do
12953 count=${count}x
12954 done
12955 if test $count = a; then
12957 elif test $count = ax; then
12958 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12959 else
12960 echo "Using the following host machine macro files:"
12961 for f in $host_xm_file; do
12962 echo " $srcdir/config/$f"
12963 done
12965 echo "Using ${out_host_hook_obj} for host machine hooks."
12967 if test "$host_xm_file" != "$build_xm_file"; then
12968 count=a
12969 for f in $build_xm_file; do
12970 count=${count}x
12971 done
12972 if test $count = a; then
12974 elif test $count = ax; then
12975 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12976 else
12977 echo "Using the following build machine macro files:"
12978 for f in $build_xm_file; do
12979 echo " $srcdir/config/$f"
12980 done
12984 if test -n "$configured_native_system_header_dir"; then
12985 native_system_header_dir=$configured_native_system_header_dir
12987 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12990 case ${host} in
12991 powerpc*-*-darwin*)
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12993 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12994 if ${gcc_cv_mcontext_underscores+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 #include <sys/cdefs.h>
13001 #include <sys/signal.h>
13002 #include <ucontext.h>
13003 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13005 _ACEOF
13006 if ac_fn_cxx_try_compile "$LINENO"; then :
13007 gcc_cv_mcontext_underscores=no
13008 else
13009 gcc_cv_mcontext_underscores=yes
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13014 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13015 if test $gcc_cv_mcontext_underscores = yes; then
13017 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13021 esac
13023 # ---------
13024 # Threading
13025 # ---------
13027 # Check if a valid thread package
13028 case ${enable_threads} in
13029 "" | no)
13030 # No threads
13031 target_thread_file='single'
13033 yes)
13034 # default
13035 target_thread_file='single'
13037 aix | dce | lynx | mipssde | posix | rtems | \
13038 single | tpf | vxworks | win32 | mcf)
13039 target_thread_file=${enable_threads}
13042 echo "${enable_threads} is an unknown thread package" 1>&2
13043 exit 1
13045 esac
13047 if test x${thread_file} = x; then
13048 # No thread file set by target-specific clauses in config.gcc,
13049 # so use file chosen by default logic above
13050 thread_file=${target_thread_file}
13053 # --------
13054 # UNSORTED
13055 # --------
13057 use_cxa_atexit=no
13058 if test x$enable___cxa_atexit = xyes || \
13059 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13060 if test x$host = x$target; then
13061 case $host in
13062 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13063 # keyed to flag_use_cxa_atexit
13064 *-*-mingw32*)
13065 use_cxa_atexit=yes
13067 powerpc-ibm-aix*)
13068 use_cxa_atexit=yes
13071 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13072 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13073 use_cxa_atexit=yes
13074 else
13075 echo "__cxa_atexit can't be enabled on this target"
13079 esac
13080 else
13081 # We can't check for __cxa_atexit when building a cross, so assume
13082 # it is available
13083 use_cxa_atexit=yes
13085 if test x$use_cxa_atexit = xyes; then
13087 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13092 # Look for a file containing extra machine modes.
13093 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13094 extra_modes_file='$(srcdir)'/config/${extra_modes}
13097 cat >>confdefs.h <<_ACEOF
13098 #define EXTRA_MODES_FILE "config/$extra_modes"
13099 _ACEOF
13103 # Convert extra_options into a form suitable for Makefile use.
13104 extra_opt_files=
13105 all_opt_files=
13106 for f in $extra_options; do
13107 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13108 all_opt_files="$all_opt_files $srcdir/config/$f"
13109 done
13112 # auto-host.h is the file containing items generated by autoconf and is
13113 # the first file included by config.h.
13114 # If host=build, it is correct to have bconfig include auto-host.h
13115 # as well. If host!=build, we are in error and need to do more
13116 # work to find out the build config parameters.
13117 if test x$host = x$build
13118 then
13119 build_auto=auto-host.h
13120 HAVE_AUTO_BUILD='# '
13121 else
13122 # We create a subdir, then run autoconf in the subdir.
13123 # To prevent recursion we set host and build for the new
13124 # invocation of configure to the build for this invocation
13125 # of configure.
13126 tempdir=build.$$
13127 rm -rf $tempdir
13128 mkdir $tempdir
13129 cd $tempdir
13130 case ${srcdir} in
13131 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13132 *) realsrcdir=../${srcdir};;
13133 esac
13134 # Clearing GMPINC is necessary to prevent host headers being
13135 # used by the build compiler. Defining GENERATOR_FILE stops
13136 # system.h from including gmp.h.
13137 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13138 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13139 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13140 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13141 ${realsrcdir}/configure \
13142 --enable-languages=${enable_languages-all} \
13143 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13144 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13145 --target=$target_alias --host=$build_alias \
13146 --build=$build_alias || exit # retaining $tempdir
13148 # We just finished tests for the build machine, so rename
13149 # the file auto-build.h in the gcc directory.
13150 mv auto-host.h ../auto-build.h
13151 cd ..
13152 rm -rf $tempdir
13153 build_auto=auto-build.h
13154 HAVE_AUTO_BUILD=
13159 tm_file="${tm_file} defaults.h"
13160 tm_p_file="${tm_p_file} tm-preds.h"
13161 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13162 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13163 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13164 # put this back in temporarily.
13165 xm_file="auto-host.h ansidecl.h ${xm_file}"
13167 # --------
13168 # UNSORTED
13169 # --------
13171 # Compile in configure arguments.
13172 if test -f configargs.h ; then
13173 # Being re-configured.
13174 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13175 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13176 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13177 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13179 else
13180 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13183 # Double all backslashes and backslash all quotes to turn
13184 # gcc_config_arguments into a C string.
13185 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13186 $gcc_config_arguments
13188 gcc_config_arguments_str=`cat conftest.out`
13189 rm -f conftest.out
13191 cat > configargs.h <<EOF
13192 /* Generated automatically. */
13193 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13194 static const char thread_model[] = "$thread_file";
13196 static const struct {
13197 const char *name, *value;
13198 } configure_default_options[] = $configure_default_options;
13201 gcc_BASEVER=`cat $srcdir/BASE-VER`
13202 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13203 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13204 if test -f $srcdir/REVISION ; then
13205 gcc_REVISION=`cat $srcdir/REVISION`
13206 else
13207 gcc_REVISION=""
13209 cat > plugin-version.h <<EOF
13210 #include "configargs.h"
13212 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13213 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13214 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13215 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13217 static char basever[] = "$gcc_BASEVER";
13218 static char datestamp[] = "$gcc_DATESTAMP";
13219 static char devphase[] = "$gcc_DEVPHASE";
13220 static char revision[] = "$gcc_REVISION";
13222 /* FIXME plugins: We should make the version information more precise.
13223 One way to do is to add a checksum. */
13225 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13226 devphase, revision,
13227 configuration_arguments};
13230 # Determine what GCC version number to use in filesystem paths.
13232 get_gcc_base_ver="cat"
13234 # Check whether --with-gcc-major-version-only was given.
13235 if test "${with_gcc_major_version_only+set}" = set; then :
13236 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13237 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13245 # Internationalization
13246 # If we haven't got the data from the intl directory,
13247 # assume NLS is disabled.
13248 USE_NLS=no
13249 LIBINTL=
13250 LIBINTL_DEP=
13251 INCINTL=
13252 XGETTEXT=
13253 GMSGFMT=
13254 POSUB=
13256 if test -f ../intl/config.intl; then
13257 . ../intl/config.intl
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13260 $as_echo_n "checking whether NLS is requested... " >&6; }
13261 if test x"$USE_NLS" != xyes; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13268 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13272 $as_echo_n "checking for catalogs to be installed... " >&6; }
13273 # Look for .po and .gmo files in the source directory.
13274 CATALOGS=
13275 XLINGUAS=
13276 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13277 # If there aren't any .gmo files the shell will give us the
13278 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13279 # weeded out.
13280 case "$cat" in *\**)
13281 continue;;
13282 esac
13283 # The quadruple backslash is collapsed to a double backslash
13284 # by the backticks, then collapsed again by the double quotes,
13285 # leaving us with one backslash in the sed expression (right
13286 # before the dot that mustn't act as a wildcard).
13287 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13288 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13289 # The user is allowed to set LINGUAS to a list of languages to
13290 # install catalogs for. If it's empty that means "all of them."
13291 if test "x$LINGUAS" = x; then
13292 CATALOGS="$CATALOGS $cat"
13293 XLINGUAS="$XLINGUAS $lang"
13294 else
13295 case "$LINGUAS" in *$lang*)
13296 CATALOGS="$CATALOGS $cat"
13297 XLINGUAS="$XLINGUAS $lang"
13299 esac
13301 done
13302 LINGUAS="$XLINGUAS"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13304 $as_echo "$LINGUAS" >&6; }
13307 DATADIRNAME=share
13309 INSTOBJEXT=.mo
13311 GENCAT=gencat
13313 CATOBJEXT=.gmo
13317 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13318 # -liconv on the link line twice.
13319 case "$LIBINTL" in *$LIBICONV*)
13320 LIBICONV= ;;
13321 esac
13323 # Check whether --enable-secureplt was given.
13324 if test "${enable_secureplt+set}" = set; then :
13325 enableval=$enable_secureplt;
13329 # Check whether --enable-mingw-wildcard was given.
13330 if test "${enable_mingw_wildcard+set}" = set; then :
13331 enableval=$enable_mingw_wildcard;
13332 else
13333 enable_mingw_wildcard=platform
13336 if test x"$enable_mingw_wildcard" != xplatform ; then :
13338 cat >>confdefs.h <<_ACEOF
13339 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13340 _ACEOF
13344 # Check whether --enable-large-address-aware was given.
13345 if test "${enable_large_address_aware+set}" = set; then :
13346 enableval=$enable_large_address_aware;
13349 if test x"$enable_large_address_aware" = xyes; then :
13351 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13355 # Check whether --enable-leading-mingw64-underscores was given.
13356 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13357 enableval=$enable_leading_mingw64_underscores;
13360 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13362 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13366 # Check whether --enable-cld was given.
13367 if test "${enable_cld+set}" = set; then :
13368 enableval=$enable_cld;
13369 else
13370 enable_cld=no
13374 # Check whether --enable-frame-pointer was given.
13375 if test "${enable_frame_pointer+set}" = set; then :
13376 enableval=$enable_frame_pointer;
13377 else
13379 case $target_os in
13380 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13381 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13382 enable_frame_pointer=no
13385 enable_frame_pointer=yes
13387 esac
13392 case $target in
13393 i[34567]86-*-* | x86_64-*-*)
13394 if test "x$enable_cld" = xyes; then
13395 tm_defines="${tm_defines} USE_IX86_CLD=1"
13397 if test "x$enable_frame_pointer" = xyes; then
13398 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13401 esac
13403 # Windows32 Registry support for specifying GCC installation paths.
13404 # Check whether --enable-win32-registry was given.
13405 if test "${enable_win32_registry+set}" = set; then :
13406 enableval=$enable_win32_registry;
13410 case $host_os in
13411 win32 | pe | cygwin* | mingw32*)
13412 if test "x$enable_win32_registry" != xno; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13414 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13415 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 ac_func_search_save_LIBS=$LIBS
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13422 /* Override any GCC internal prototype to avoid an error.
13423 Use char because int might match the return type of a GCC
13424 builtin and then its argument prototype would still apply. */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 char RegOpenKeyExA ();
13430 main ()
13432 return RegOpenKeyExA ();
13434 return 0;
13436 _ACEOF
13437 for ac_lib in '' advapi32; do
13438 if test -z "$ac_lib"; then
13439 ac_res="none required"
13440 else
13441 ac_res=-l$ac_lib
13442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13444 if ac_fn_cxx_try_link "$LINENO"; then :
13445 ac_cv_search_RegOpenKeyExA=$ac_res
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext
13449 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13450 break
13452 done
13453 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13455 else
13456 ac_cv_search_RegOpenKeyExA=no
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13462 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13463 ac_res=$ac_cv_search_RegOpenKeyExA
13464 if test "$ac_res" != no; then :
13465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13467 else
13468 enable_win32_registry=no
13473 if test "x$enable_win32_registry" != xno; then
13475 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13478 if test "x$enable_win32_registry" != xyes \
13479 && test "x$enable_win32_registry" != x; then
13481 cat >>confdefs.h <<_ACEOF
13482 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13483 _ACEOF
13488 esac
13490 # Get an absolute path to the GCC top-level source directory
13491 holddir=`${PWDCMD-pwd}`
13492 cd $srcdir
13493 topdir=`${PWDCMD-pwd}`
13494 cd $holddir
13496 # Conditionalize the makefile for this host machine.
13497 xmake_file=
13498 for f in ${host_xmake_file}
13500 if test -f ${srcdir}/config/$f
13501 then
13502 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13504 done
13506 # Conditionalize the makefile for this target machine.
13507 tmake_file_=
13508 for f in ${tmake_file}
13510 if test -f ${srcdir}/config/$f
13511 then
13512 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13514 done
13515 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13517 out_object_file=`basename $out_file .cc`.o
13518 common_out_object_file=`basename $common_out_file .cc`.o
13520 tm_file_list="options.h"
13521 tm_include_list="options.h insn-constants.h"
13522 for f in $tm_file; do
13523 case $f in
13524 ./* )
13525 f=`echo $f | sed 's/^..//'`
13526 tm_file_list="${tm_file_list} $f"
13527 tm_include_list="${tm_include_list} $f"
13529 defaults.h )
13530 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13531 tm_include_list="${tm_include_list} $f"
13534 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13535 tm_include_list="${tm_include_list} config/$f"
13537 esac
13538 done
13540 tm_p_file_list=
13541 tm_p_include_list=
13542 for f in $tm_p_file; do
13543 case $f in
13544 tm-preds.h )
13545 tm_p_file_list="${tm_p_file_list} $f"
13546 tm_p_include_list="${tm_p_include_list} $f"
13549 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13550 tm_p_include_list="${tm_p_include_list} config/$f"
13551 esac
13552 done
13554 tm_d_file_list=
13555 tm_d_include_list=
13556 for f in $tm_d_file; do
13557 case $f in
13559 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13560 tm_d_include_list="${tm_d_include_list} config/$f"
13562 esac
13563 done
13565 xm_file_list=
13566 xm_include_list=
13567 for f in $xm_file; do
13568 case $f in
13569 ansidecl.h )
13570 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13571 xm_include_list="${xm_include_list} $f"
13573 auto-host.h )
13574 xm_file_list="${xm_file_list} $f"
13575 xm_include_list="${xm_include_list} $f"
13578 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13579 xm_include_list="${xm_include_list} config/$f"
13581 esac
13582 done
13584 host_xm_file_list=
13585 host_xm_include_list=
13586 for f in $host_xm_file; do
13587 case $f in
13588 ansidecl.h )
13589 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13590 host_xm_include_list="${host_xm_include_list} $f"
13592 auto-host.h )
13593 host_xm_file_list="${host_xm_file_list} $f"
13594 host_xm_include_list="${host_xm_include_list} $f"
13597 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13598 host_xm_include_list="${host_xm_include_list} config/$f"
13600 esac
13601 done
13603 build_xm_file_list=
13604 for f in $build_xm_file; do
13605 case $f in
13606 ansidecl.h )
13607 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13608 build_xm_include_list="${build_xm_include_list} $f"
13610 auto-build.h | auto-host.h )
13611 build_xm_file_list="${build_xm_file_list} $f"
13612 build_xm_include_list="${build_xm_include_list} $f"
13615 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13616 build_xm_include_list="${build_xm_include_list} config/$f"
13618 esac
13619 done
13621 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13622 # cross-compiler which does not use the native headers and libraries.
13623 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13624 CROSS=
13625 ALL=all.internal
13626 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13627 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13629 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13630 test x$build != x$host || test "x$with_build_sysroot" != x; then
13631 if test "x$with_build_sysroot" != x; then
13632 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13633 else
13634 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13637 if test x$host != x$target
13638 then
13639 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13640 ALL=all.cross
13641 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13642 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13643 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13646 if test "x$with_build_sysroot" != "x"; then
13647 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13648 elif test "x$with_sysroot" = x; then
13649 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13650 elif test "x$with_sysroot" = xyes; then
13651 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13652 else
13653 target_header_dir="${with_sysroot}${native_system_header_dir}"
13655 else
13656 target_header_dir=${native_system_header_dir}
13659 # If this is a cross-compiler that does not
13660 # have its own set of headers then define
13661 # inhibit_libc
13663 # If this is using newlib, without having the headers available now,
13664 # then define inhibit_libc in LIBGCC2_CFLAGS.
13665 # This prevents libgcc2 from containing any code which requires libc
13666 # support.
13667 : ${inhibit_libc=false}
13668 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13669 test x$with_newlib = xyes ; } &&
13670 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13671 inhibit_libc=true
13675 # When building gcc with a cross-compiler, we need to adjust things so
13676 # that the generator programs are still built with the native compiler.
13677 # Also, we cannot run fixincludes.
13679 # These are the normal (build=host) settings:
13680 CC_FOR_BUILD='$(CC)'
13681 CXX_FOR_BUILD='$(CXX)'
13682 BUILD_CFLAGS='$(ALL_CFLAGS)'
13683 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13684 BUILD_LDFLAGS='$(LDFLAGS)'
13685 STMP_FIXINC=stmp-fixinc
13687 # And these apply if build != host, or we are generating coverage data
13688 if test x$build != x$host || test "x$coverage_flags" != x
13689 then
13690 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13691 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13692 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13696 if test x$enable_fixincludes = xno;
13697 then
13698 STMP_FIXINC=''
13701 # Expand extra_headers to include complete path.
13702 # This substitutes for lots of t-* files.
13703 extra_headers_list=
13704 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13705 for file in ${extra_headers} ; do
13706 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13707 done
13709 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13710 if test x"$use_gcc_tgmath" = xyes
13711 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13714 # Define collect2 in Makefile.
13715 case $host_can_use_collect2 in
13716 no) collect2= ;;
13717 *) collect2='collect2$(exeext)' ;;
13718 esac
13721 # Add a definition of USE_COLLECT2 if system wants one.
13722 case $use_collect2 in
13723 no) use_collect2= ;;
13724 "") ;;
13726 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13727 xm_defines="${xm_defines} USE_COLLECT2"
13728 case $host_can_use_collect2 in
13730 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13732 esac
13734 esac
13737 cat >>confdefs.h <<_ACEOF
13738 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13739 _ACEOF
13742 # ---------------------------
13743 # Assembler & linker features
13744 # ---------------------------
13746 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13747 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13748 # However when ld-new is first executed from the build tree, libtool will
13749 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13750 # to the build tree. While doing this we need to use the previous-stage
13751 # linker, or we have an infinite loop. The presence of a shell script as
13752 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13753 # the gcc/collect-ld script. So we need to know how libtool works, or
13754 # exec-tool will fail.
13757 case `pwd` in
13758 *\ * | *\ *)
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13760 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13761 esac
13765 macro_version='2.2.7a'
13766 macro_revision='1.3134'
13780 ltmain="$ac_aux_dir/ltmain.sh"
13782 # Backslashify metacharacters that are still active within
13783 # double-quoted strings.
13784 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13786 # Same as above, but do not quote variable references.
13787 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13789 # Sed substitution to delay expansion of an escaped shell variable in a
13790 # double_quote_subst'ed string.
13791 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13793 # Sed substitution to delay expansion of an escaped single quote.
13794 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13796 # Sed substitution to avoid accidental globbing in evaled expressions
13797 no_glob_subst='s/\*/\\\*/g'
13799 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13801 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13804 $as_echo_n "checking how to print strings... " >&6; }
13805 # Test print first, because it will be a builtin if present.
13806 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13807 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13808 ECHO='print -r --'
13809 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13810 ECHO='printf %s\n'
13811 else
13812 # Use this function as a fallback that always works.
13813 func_fallback_echo ()
13815 eval 'cat <<_LTECHO_EOF
13817 _LTECHO_EOF'
13819 ECHO='func_fallback_echo'
13822 # func_echo_all arg...
13823 # Invoke $ECHO with all args, space-separated.
13824 func_echo_all ()
13826 $ECHO ""
13829 case "$ECHO" in
13830 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13831 $as_echo "printf" >&6; } ;;
13832 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13833 $as_echo "print -r" >&6; } ;;
13834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13835 $as_echo "cat" >&6; } ;;
13836 esac
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13852 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13853 if ${ac_cv_path_SED+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13857 for ac_i in 1 2 3 4 5 6 7; do
13858 ac_script="$ac_script$as_nl$ac_script"
13859 done
13860 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13861 { ac_script=; unset ac_script;}
13862 if test -z "$SED"; then
13863 ac_path_SED_found=false
13864 # Loop through the user's path and test for each of PROGNAME-LIST
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
13870 for ac_prog in sed gsed; do
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13873 as_fn_executable_p "$ac_path_SED" || continue
13874 # Check for GNU ac_path_SED and select it if it is found.
13875 # Check for GNU $ac_path_SED
13876 case `"$ac_path_SED" --version 2>&1` in
13877 *GNU*)
13878 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13880 ac_count=0
13881 $as_echo_n 0123456789 >"conftest.in"
13882 while :
13884 cat "conftest.in" "conftest.in" >"conftest.tmp"
13885 mv "conftest.tmp" "conftest.in"
13886 cp "conftest.in" "conftest.nl"
13887 $as_echo '' >> "conftest.nl"
13888 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13890 as_fn_arith $ac_count + 1 && ac_count=$as_val
13891 if test $ac_count -gt ${ac_path_SED_max-0}; then
13892 # Best one so far, save it but keep looking for a better one
13893 ac_cv_path_SED="$ac_path_SED"
13894 ac_path_SED_max=$ac_count
13896 # 10*(2^10) chars as input seems more than enough
13897 test $ac_count -gt 10 && break
13898 done
13899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13900 esac
13902 $ac_path_SED_found && break 3
13903 done
13904 done
13905 done
13906 IFS=$as_save_IFS
13907 if test -z "$ac_cv_path_SED"; then
13908 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13910 else
13911 ac_cv_path_SED=$SED
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13916 $as_echo "$ac_cv_path_SED" >&6; }
13917 SED="$ac_cv_path_SED"
13918 rm -f conftest.sed
13920 test -z "$SED" && SED=sed
13921 Xsed="$SED -e 1s/^X//"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13934 $as_echo_n "checking for fgrep... " >&6; }
13935 if ${ac_cv_path_FGREP+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13939 then ac_cv_path_FGREP="$GREP -F"
13940 else
13941 if test -z "$FGREP"; then
13942 ac_path_FGREP_found=false
13943 # Loop through the user's path and test for each of PROGNAME-LIST
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_prog in fgrep; do
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13952 as_fn_executable_p "$ac_path_FGREP" || continue
13953 # Check for GNU ac_path_FGREP and select it if it is found.
13954 # Check for GNU $ac_path_FGREP
13955 case `"$ac_path_FGREP" --version 2>&1` in
13956 *GNU*)
13957 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13959 ac_count=0
13960 $as_echo_n 0123456789 >"conftest.in"
13961 while :
13963 cat "conftest.in" "conftest.in" >"conftest.tmp"
13964 mv "conftest.tmp" "conftest.in"
13965 cp "conftest.in" "conftest.nl"
13966 $as_echo 'FGREP' >> "conftest.nl"
13967 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13969 as_fn_arith $ac_count + 1 && ac_count=$as_val
13970 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13971 # Best one so far, save it but keep looking for a better one
13972 ac_cv_path_FGREP="$ac_path_FGREP"
13973 ac_path_FGREP_max=$ac_count
13975 # 10*(2^10) chars as input seems more than enough
13976 test $ac_count -gt 10 && break
13977 done
13978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13979 esac
13981 $ac_path_FGREP_found && break 3
13982 done
13983 done
13984 done
13985 IFS=$as_save_IFS
13986 if test -z "$ac_cv_path_FGREP"; then
13987 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13989 else
13990 ac_cv_path_FGREP=$FGREP
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13996 $as_echo "$ac_cv_path_FGREP" >&6; }
13997 FGREP="$ac_cv_path_FGREP"
14000 test -z "$GREP" && GREP=grep
14020 # Check whether --with-gnu-ld was given.
14021 if test "${with_gnu_ld+set}" = set; then :
14022 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14023 else
14024 with_gnu_ld=no
14027 ac_prog=ld
14028 if test "$GCC" = yes; then
14029 # Check if gcc -print-prog-name=ld gives a path.
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14031 $as_echo_n "checking for ld used by $CC... " >&6; }
14032 case $host in
14033 *-*-mingw*)
14034 # gcc leaves a trailing carriage return which upsets mingw
14035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14038 esac
14039 case $ac_prog in
14040 # Accept absolute paths.
14041 [\\/]* | ?:[\\/]*)
14042 re_direlt='/[^/][^/]*/\.\./'
14043 # Canonicalize the pathname of ld
14044 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14045 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14046 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14047 done
14048 test -z "$LD" && LD="$ac_prog"
14051 # If it fails, then pretend we aren't using GCC.
14052 ac_prog=ld
14055 # If it is relative, then search for the first ld in PATH.
14056 with_gnu_ld=unknown
14058 esac
14059 elif test "$with_gnu_ld" = yes; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14061 $as_echo_n "checking for GNU ld... " >&6; }
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14064 $as_echo_n "checking for non-GNU ld... " >&6; }
14066 if ${lt_cv_path_LD+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 if test -z "$LD"; then
14070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14071 for ac_dir in $PATH; do
14072 IFS="$lt_save_ifs"
14073 test -z "$ac_dir" && ac_dir=.
14074 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14075 lt_cv_path_LD="$ac_dir/$ac_prog"
14076 # Check to see if the program is GNU ld. I'd rather use --version,
14077 # but apparently some variants of GNU ld only accept -v.
14078 # Break only if it was the GNU/non-GNU ld that we prefer.
14079 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14080 *GNU* | *'with BFD'*)
14081 test "$with_gnu_ld" != no && break
14084 test "$with_gnu_ld" != yes && break
14086 esac
14088 done
14089 IFS="$lt_save_ifs"
14090 else
14091 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14095 LD="$lt_cv_path_LD"
14096 if test -n "$LD"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14098 $as_echo "$LD" >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14103 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14105 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14106 if ${lt_cv_prog_gnu_ld+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14110 case `$LD -v 2>&1 </dev/null` in
14111 *GNU* | *'with BFD'*)
14112 lt_cv_prog_gnu_ld=yes
14115 lt_cv_prog_gnu_ld=no
14117 esac
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14120 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14121 with_gnu_ld=$lt_cv_prog_gnu_ld
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14132 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14133 if ${lt_cv_path_NM+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 if test -n "$NM"; then
14137 # Let the user override the nm to test.
14138 lt_nm_to_check="$NM"
14139 else
14140 lt_nm_to_check="${ac_tool_prefix}nm"
14141 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14142 lt_nm_to_check="$lt_nm_to_check nm"
14145 for lt_tmp_nm in "$lt_nm_to_check"; do
14146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14147 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14148 IFS="$lt_save_ifs"
14149 test -z "$ac_dir" && ac_dir=.
14150 # Strip out any user-provided options from the nm to test twice,
14151 # the first time to test to see if nm (rather than its options) has
14152 # an explicit path, the second time to yield a file which can be
14153 # nm'ed itself.
14154 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14155 case "$tmp_nm_path" in
14156 */*|*\\*) tmp_nm="$lt_tmp_nm";;
14157 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
14158 esac
14159 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14160 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
14161 # Check to see if the nm accepts a BSD-compat flag.
14162 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14163 # nm: unknown option "B" ignored
14164 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14165 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
14166 break
14169 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14170 *$tmp_nm*)
14171 lt_cv_path_NM="$tmp_nm -p"
14172 break
14175 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14176 continue # so that we can try to find one that supports BSD flags
14178 esac
14180 esac
14182 done
14183 IFS="$lt_save_ifs"
14184 done
14185 : ${lt_cv_path_NM=no}
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14188 $as_echo "$lt_cv_path_NM" >&6; }
14189 if test "$lt_cv_path_NM" != "no"; then
14190 NM="$lt_cv_path_NM"
14191 else
14192 # Didn't find any BSD compatible name lister, look for dumpbin.
14193 if test -n "$DUMPBIN"; then :
14194 # Let the user override the test.
14195 else
14196 if test -n "$ac_tool_prefix"; then
14197 for ac_prog in dumpbin "link -dump"
14199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_prog_DUMPBIN+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test -n "$DUMPBIN"; then
14207 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14208 else
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14220 done
14221 done
14222 IFS=$as_save_IFS
14226 DUMPBIN=$ac_cv_prog_DUMPBIN
14227 if test -n "$DUMPBIN"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14229 $as_echo "$DUMPBIN" >&6; }
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14236 test -n "$DUMPBIN" && break
14237 done
14239 if test -z "$DUMPBIN"; then
14240 ac_ct_DUMPBIN=$DUMPBIN
14241 for ac_prog in dumpbin "link -dump"
14243 # Extract the first word of "$ac_prog", so it can be a program name with args.
14244 set dummy $ac_prog; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 if test -n "$ac_ct_DUMPBIN"; then
14251 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14264 done
14265 done
14266 IFS=$as_save_IFS
14270 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14271 if test -n "$ac_ct_DUMPBIN"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14273 $as_echo "$ac_ct_DUMPBIN" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14280 test -n "$ac_ct_DUMPBIN" && break
14281 done
14283 if test "x$ac_ct_DUMPBIN" = x; then
14284 DUMPBIN=":"
14285 else
14286 case $cross_compiling:$ac_tool_warned in
14287 yes:)
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290 ac_tool_warned=yes ;;
14291 esac
14292 DUMPBIN=$ac_ct_DUMPBIN
14296 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14297 *COFF*)
14298 DUMPBIN="$DUMPBIN -symbols"
14301 DUMPBIN=:
14303 esac
14306 if test "$DUMPBIN" != ":"; then
14307 NM="$DUMPBIN"
14310 test -z "$NM" && NM=nm
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14318 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14319 if ${lt_cv_nm_interface+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 lt_cv_nm_interface="BSD nm"
14323 echo "int some_variable = 0;" > conftest.$ac_ext
14324 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14325 (eval "$ac_compile" 2>conftest.err)
14326 cat conftest.err >&5
14327 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14328 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14329 cat conftest.err >&5
14330 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14331 cat conftest.out >&5
14332 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14333 lt_cv_nm_interface="MS dumpbin"
14335 rm -f conftest*
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14338 $as_echo "$lt_cv_nm_interface" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14341 $as_echo_n "checking whether ln -s works... " >&6; }
14342 LN_S=$as_ln_s
14343 if test "$LN_S" = "ln -s"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14348 $as_echo "no, using $LN_S" >&6; }
14351 # find the maximum length of command line arguments
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14353 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14354 if ${lt_cv_sys_max_cmd_len+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14358 teststring="ABCD"
14360 case $build_os in
14361 msdosdjgpp*)
14362 # On DJGPP, this test can blow up pretty badly due to problems in libc
14363 # (any single argument exceeding 2000 bytes causes a buffer overrun
14364 # during glob expansion). Even if it were fixed, the result of this
14365 # check would be larger than it should be.
14366 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14369 gnu*)
14370 # Under GNU Hurd, this test is not required because there is
14371 # no limit to the length of command line arguments.
14372 # Libtool will interpret -1 as no limit whatsoever
14373 lt_cv_sys_max_cmd_len=-1;
14376 cygwin* | mingw* | cegcc*)
14377 # On Win9x/ME, this test blows up -- it succeeds, but takes
14378 # about 5 minutes as the teststring grows exponentially.
14379 # Worse, since 9x/ME are not pre-emptively multitasking,
14380 # you end up with a "frozen" computer, even though with patience
14381 # the test eventually succeeds (with a max line length of 256k).
14382 # Instead, let's just punt: use the minimum linelength reported by
14383 # all of the supported platforms: 8192 (on NT/2K/XP).
14384 lt_cv_sys_max_cmd_len=8192;
14387 mint*)
14388 # On MiNT this can take a long time and run out of memory.
14389 lt_cv_sys_max_cmd_len=8192;
14392 amigaos*)
14393 # On AmigaOS with pdksh, this test takes hours, literally.
14394 # So we just punt and use a minimum line length of 8192.
14395 lt_cv_sys_max_cmd_len=8192;
14398 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14399 # This has been around since 386BSD, at least. Likely further.
14400 if test -x /sbin/sysctl; then
14401 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14402 elif test -x /usr/sbin/sysctl; then
14403 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14404 else
14405 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14407 # And add a safety zone
14408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14412 interix*)
14413 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14414 lt_cv_sys_max_cmd_len=196608
14417 osf*)
14418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14420 # nice to cause kernel panics so lets avoid the loop below.
14421 # First set a reasonable default.
14422 lt_cv_sys_max_cmd_len=16384
14424 if test -x /sbin/sysconfig; then
14425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14426 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14427 esac
14430 sco3.2v5*)
14431 lt_cv_sys_max_cmd_len=102400
14433 sysv5* | sco5v6* | sysv4.2uw2*)
14434 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14435 if test -n "$kargmax"; then
14436 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14437 else
14438 lt_cv_sys_max_cmd_len=32768
14442 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14443 if test -n "$lt_cv_sys_max_cmd_len"; then
14444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14446 else
14447 # Make teststring a little bigger before we do anything with it.
14448 # a 1K string should be a reasonable start.
14449 for i in 1 2 3 4 5 6 7 8 ; do
14450 teststring=$teststring$teststring
14451 done
14452 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14453 # If test is not a shell built-in, we'll probably end up computing a
14454 # maximum length that is only half of the actual maximum length, but
14455 # we can't tell.
14456 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14457 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14458 test $i != 17 # 1/2 MB should be enough
14460 i=`expr $i + 1`
14461 teststring=$teststring$teststring
14462 done
14463 # Only check the string length outside the loop.
14464 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14465 teststring=
14466 # Add a significant safety factor because C++ compilers can tack on
14467 # massive amounts of additional arguments before passing them to the
14468 # linker. It appears as though 1/2 is a usable value.
14469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14472 esac
14476 if test -n $lt_cv_sys_max_cmd_len ; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14478 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14479 else
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14481 $as_echo "none" >&6; }
14483 max_cmd_len=$lt_cv_sys_max_cmd_len
14490 : ${CP="cp -f"}
14491 : ${MV="mv -f"}
14492 : ${RM="rm -f"}
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14495 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14496 # Try some XSI features
14497 xsi_shell=no
14498 ( _lt_dummy="a/b/c"
14499 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14500 = c,a/b,, \
14501 && eval 'test $(( 1 + 1 )) -eq 2 \
14502 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14503 && xsi_shell=yes
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14505 $as_echo "$xsi_shell" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14509 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14510 lt_shell_append=no
14511 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14512 >/dev/null 2>&1 \
14513 && lt_shell_append=yes
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14515 $as_echo "$lt_shell_append" >&6; }
14518 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14519 lt_unset=unset
14520 else
14521 lt_unset=false
14528 # test EBCDIC or ASCII
14529 case `echo X|tr X '\101'` in
14530 A) # ASCII based system
14531 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14532 lt_SP2NL='tr \040 \012'
14533 lt_NL2SP='tr \015\012 \040\040'
14535 *) # EBCDIC based system
14536 lt_SP2NL='tr \100 \n'
14537 lt_NL2SP='tr \r\n \100\100'
14539 esac
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14550 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14551 if ${lt_cv_ld_reload_flag+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_ld_reload_flag='-r'
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14557 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14558 reload_flag=$lt_cv_ld_reload_flag
14559 case $reload_flag in
14560 "" | " "*) ;;
14561 *) reload_flag=" $reload_flag" ;;
14562 esac
14563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14564 case $host_os in
14565 darwin*)
14566 if test "$GCC" = yes; then
14567 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14568 else
14569 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14572 esac
14582 if test -n "$ac_tool_prefix"; then
14583 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586 $as_echo_n "checking for $ac_word... " >&6; }
14587 if ${ac_cv_prog_OBJDUMP+:} false; then :
14588 $as_echo_n "(cached) " >&6
14589 else
14590 if test -n "$OBJDUMP"; then
14591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14592 else
14593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594 for as_dir in $PATH
14596 IFS=$as_save_IFS
14597 test -z "$as_dir" && as_dir=.
14598 for ac_exec_ext in '' $ac_executable_extensions; do
14599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14602 break 2
14604 done
14605 done
14606 IFS=$as_save_IFS
14610 OBJDUMP=$ac_cv_prog_OBJDUMP
14611 if test -n "$OBJDUMP"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14613 $as_echo "$OBJDUMP" >&6; }
14614 else
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14621 if test -z "$ac_cv_prog_OBJDUMP"; then
14622 ac_ct_OBJDUMP=$OBJDUMP
14623 # Extract the first word of "objdump", so it can be a program name with args.
14624 set dummy objdump; ac_word=$2
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626 $as_echo_n "checking for $ac_word... " >&6; }
14627 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 if test -n "$ac_ct_OBJDUMP"; then
14631 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14632 else
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14636 IFS=$as_save_IFS
14637 test -z "$as_dir" && as_dir=.
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14642 break 2
14644 done
14645 done
14646 IFS=$as_save_IFS
14650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14651 if test -n "$ac_ct_OBJDUMP"; then
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14653 $as_echo "$ac_ct_OBJDUMP" >&6; }
14654 else
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14659 if test "x$ac_ct_OBJDUMP" = x; then
14660 OBJDUMP="false"
14661 else
14662 case $cross_compiling:$ac_tool_warned in
14663 yes:)
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14666 ac_tool_warned=yes ;;
14667 esac
14668 OBJDUMP=$ac_ct_OBJDUMP
14670 else
14671 OBJDUMP="$ac_cv_prog_OBJDUMP"
14674 test -z "$OBJDUMP" && OBJDUMP=objdump
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14685 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14686 if ${lt_cv_deplibs_check_method+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 lt_cv_file_magic_cmd='$MAGIC_CMD'
14690 lt_cv_file_magic_test_file=
14691 lt_cv_deplibs_check_method='unknown'
14692 # Need to set the preceding variable on all platforms that support
14693 # interlibrary dependencies.
14694 # 'none' -- dependencies not supported.
14695 # `unknown' -- same as none, but documents that we really don't know.
14696 # 'pass_all' -- all dependencies passed with no checks.
14697 # 'test_compile' -- check by making test program.
14698 # 'file_magic [[regex]]' -- check by looking for files in library path
14699 # which responds to the $file_magic_cmd with a given extended regex.
14700 # If you have `file' or equivalent on your system and you're not sure
14701 # whether `pass_all' will *always* work, you probably want this one.
14703 case $host_os in
14704 aix[4-9]*)
14705 lt_cv_deplibs_check_method=pass_all
14708 beos*)
14709 lt_cv_deplibs_check_method=pass_all
14712 bsdi[45]*)
14713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14714 lt_cv_file_magic_cmd='/usr/bin/file -L'
14715 lt_cv_file_magic_test_file=/shlib/libc.so
14718 cygwin*)
14719 # func_win32_libid is a shell function defined in ltmain.sh
14720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14721 lt_cv_file_magic_cmd='func_win32_libid'
14724 mingw* | pw32*)
14725 # Base MSYS/MinGW do not provide the 'file' command needed by
14726 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14727 # unless we find 'file', for example because we are cross-compiling.
14728 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14729 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14731 lt_cv_file_magic_cmd='func_win32_libid'
14732 else
14733 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14734 lt_cv_file_magic_cmd='$OBJDUMP -f'
14738 cegcc*)
14739 # use the weaker test based on 'objdump'. See mingw*.
14740 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14741 lt_cv_file_magic_cmd='$OBJDUMP -f'
14744 darwin* | rhapsody*)
14745 lt_cv_deplibs_check_method=pass_all
14748 freebsd* | dragonfly*)
14749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14750 case $host_cpu in
14751 i*86 )
14752 # Not sure whether the presence of OpenBSD here was a mistake.
14753 # Let's accept both of them until this is cleared up.
14754 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14755 lt_cv_file_magic_cmd=/usr/bin/file
14756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14758 esac
14759 else
14760 lt_cv_deplibs_check_method=pass_all
14764 gnu*)
14765 lt_cv_deplibs_check_method=pass_all
14768 haiku*)
14769 lt_cv_deplibs_check_method=pass_all
14772 hpux10.20* | hpux11*)
14773 lt_cv_file_magic_cmd=/usr/bin/file
14774 case $host_cpu in
14775 ia64*)
14776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14777 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14779 hppa*64*)
14780 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]'
14781 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14785 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14787 esac
14790 interix[3-9]*)
14791 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14795 irix5* | irix6* | nonstopux*)
14796 case $LD in
14797 *-32|*"-32 ") libmagic=32-bit;;
14798 *-n32|*"-n32 ") libmagic=N32;;
14799 *-64|*"-64 ") libmagic=64-bit;;
14800 *) libmagic=never-match;;
14801 esac
14802 lt_cv_deplibs_check_method=pass_all
14805 # This must be Linux ELF.
14806 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14807 lt_cv_deplibs_check_method=pass_all
14810 netbsd*)
14811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14813 else
14814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14818 newos6*)
14819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14820 lt_cv_file_magic_cmd=/usr/bin/file
14821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14824 *nto* | *qnx*)
14825 lt_cv_deplibs_check_method=pass_all
14828 openbsd*)
14829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14831 else
14832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14836 osf3* | osf4* | osf5*)
14837 lt_cv_deplibs_check_method=pass_all
14840 rdos*)
14841 lt_cv_deplibs_check_method=pass_all
14844 solaris*)
14845 lt_cv_deplibs_check_method=pass_all
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14849 lt_cv_deplibs_check_method=pass_all
14852 sysv4 | sysv4.3*)
14853 case $host_vendor in
14854 motorola)
14855 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]'
14856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14858 ncr)
14859 lt_cv_deplibs_check_method=pass_all
14861 sequent)
14862 lt_cv_file_magic_cmd='/bin/file'
14863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14865 sni)
14866 lt_cv_file_magic_cmd='/bin/file'
14867 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14868 lt_cv_file_magic_test_file=/lib/libc.so
14870 siemens)
14871 lt_cv_deplibs_check_method=pass_all
14874 lt_cv_deplibs_check_method=pass_all
14876 esac
14879 tpf*)
14880 lt_cv_deplibs_check_method=pass_all
14882 vxworks*)
14883 # Assume VxWorks cross toolchains are built on Linux, possibly
14884 # as canadian for Windows hosts.
14885 lt_cv_deplibs_check_method=pass_all
14887 esac
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14891 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14892 file_magic_cmd=$lt_cv_file_magic_cmd
14893 deplibs_check_method=$lt_cv_deplibs_check_method
14894 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14907 plugin_option=
14908 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14909 for plugin in $plugin_names; do
14910 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14911 if test x$plugin_so = x$plugin; then
14912 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14914 if test x$plugin_so != x$plugin; then
14915 plugin_option="--plugin $plugin_so"
14916 break
14918 done
14920 if test -n "$ac_tool_prefix"; then
14921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14922 set dummy ${ac_tool_prefix}ar; ac_word=$2
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14924 $as_echo_n "checking for $ac_word... " >&6; }
14925 if ${ac_cv_prog_AR+:} false; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 if test -n "$AR"; then
14929 ac_cv_prog_AR="$AR" # Let the user override the test.
14930 else
14931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14934 IFS=$as_save_IFS
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938 ac_cv_prog_AR="${ac_tool_prefix}ar"
14939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 break 2
14942 done
14943 done
14944 IFS=$as_save_IFS
14948 AR=$ac_cv_prog_AR
14949 if test -n "$AR"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14951 $as_echo "$AR" >&6; }
14952 else
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954 $as_echo "no" >&6; }
14959 if test -z "$ac_cv_prog_AR"; then
14960 ac_ct_AR=$AR
14961 # Extract the first word of "ar", so it can be a program name with args.
14962 set dummy ar; ac_word=$2
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14964 $as_echo_n "checking for $ac_word... " >&6; }
14965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 if test -n "$ac_ct_AR"; then
14969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14970 else
14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972 for as_dir in $PATH
14974 IFS=$as_save_IFS
14975 test -z "$as_dir" && as_dir=.
14976 for ac_exec_ext in '' $ac_executable_extensions; do
14977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14978 ac_cv_prog_ac_ct_AR="ar"
14979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14980 break 2
14982 done
14983 done
14984 IFS=$as_save_IFS
14988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14989 if test -n "$ac_ct_AR"; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14991 $as_echo "$ac_ct_AR" >&6; }
14992 else
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994 $as_echo "no" >&6; }
14997 if test "x$ac_ct_AR" = x; then
14998 AR="false"
14999 else
15000 case $cross_compiling:$ac_tool_warned in
15001 yes:)
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15004 ac_tool_warned=yes ;;
15005 esac
15006 AR=$ac_ct_AR
15008 else
15009 AR="$ac_cv_prog_AR"
15012 test -z "$AR" && AR=ar
15013 if test -n "$plugin_option"; then
15014 if $AR --help 2>&1 | grep -q "\--plugin"; then
15015 touch conftest.c
15016 $AR $plugin_option rc conftest.a conftest.c
15017 if test "$?" != 0; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
15019 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
15020 else
15021 AR="$AR $plugin_option"
15023 rm -f conftest.*
15026 test -z "$AR_FLAGS" && AR_FLAGS=cru
15038 if test -n "$ac_tool_prefix"; then
15039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15040 set dummy ${ac_tool_prefix}strip; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15042 $as_echo_n "checking for $ac_word... " >&6; }
15043 if ${ac_cv_prog_STRIP+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 if test -n "$STRIP"; then
15047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15048 else
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15052 IFS=$as_save_IFS
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15058 break 2
15060 done
15061 done
15062 IFS=$as_save_IFS
15066 STRIP=$ac_cv_prog_STRIP
15067 if test -n "$STRIP"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15069 $as_echo "$STRIP" >&6; }
15070 else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15077 if test -z "$ac_cv_prog_STRIP"; then
15078 ac_ct_STRIP=$STRIP
15079 # Extract the first word of "strip", so it can be a program name with args.
15080 set dummy strip; ac_word=$2
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15082 $as_echo_n "checking for $ac_word... " >&6; }
15083 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 if test -n "$ac_ct_STRIP"; then
15087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15088 else
15089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 for as_dir in $PATH
15092 IFS=$as_save_IFS
15093 test -z "$as_dir" && as_dir=.
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_ac_ct_STRIP="strip"
15097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15098 break 2
15100 done
15101 done
15102 IFS=$as_save_IFS
15106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15107 if test -n "$ac_ct_STRIP"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15109 $as_echo "$ac_ct_STRIP" >&6; }
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15115 if test "x$ac_ct_STRIP" = x; then
15116 STRIP=":"
15117 else
15118 case $cross_compiling:$ac_tool_warned in
15119 yes:)
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15122 ac_tool_warned=yes ;;
15123 esac
15124 STRIP=$ac_ct_STRIP
15126 else
15127 STRIP="$ac_cv_prog_STRIP"
15130 test -z "$STRIP" && STRIP=:
15137 if test -n "$ac_tool_prefix"; then
15138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141 $as_echo_n "checking for $ac_word... " >&6; }
15142 if ${ac_cv_prog_RANLIB+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 if test -n "$RANLIB"; then
15146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15147 else
15148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149 for as_dir in $PATH
15151 IFS=$as_save_IFS
15152 test -z "$as_dir" && as_dir=.
15153 for ac_exec_ext in '' $ac_executable_extensions; do
15154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15157 break 2
15159 done
15160 done
15161 IFS=$as_save_IFS
15165 RANLIB=$ac_cv_prog_RANLIB
15166 if test -n "$RANLIB"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15168 $as_echo "$RANLIB" >&6; }
15169 else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15176 if test -z "$ac_cv_prog_RANLIB"; then
15177 ac_ct_RANLIB=$RANLIB
15178 # Extract the first word of "ranlib", so it can be a program name with args.
15179 set dummy ranlib; ac_word=$2
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15181 $as_echo_n "checking for $ac_word... " >&6; }
15182 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 if test -n "$ac_ct_RANLIB"; then
15186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15187 else
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_prog_ac_ct_RANLIB="ranlib"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15199 done
15200 done
15201 IFS=$as_save_IFS
15205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15206 if test -n "$ac_ct_RANLIB"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15208 $as_echo "$ac_ct_RANLIB" >&6; }
15209 else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211 $as_echo "no" >&6; }
15214 if test "x$ac_ct_RANLIB" = x; then
15215 RANLIB=":"
15216 else
15217 case $cross_compiling:$ac_tool_warned in
15218 yes:)
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15221 ac_tool_warned=yes ;;
15222 esac
15223 RANLIB=$ac_ct_RANLIB
15225 else
15226 RANLIB="$ac_cv_prog_RANLIB"
15229 test -z "$RANLIB" && RANLIB=:
15230 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15231 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
15232 RANLIB="$RANLIB $plugin_option"
15241 # Determine commands to create old-style static archives.
15242 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15243 old_postinstall_cmds='chmod 644 $oldlib'
15244 old_postuninstall_cmds=
15246 if test -n "$RANLIB"; then
15247 case $host_os in
15248 openbsd*)
15249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15254 esac
15255 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15258 case $host_os in
15259 darwin*)
15260 lock_old_archive_extraction=yes ;;
15262 lock_old_archive_extraction=no ;;
15263 esac
15303 # If no C compiler was specified, use CC.
15304 LTCC=${LTCC-"$CC"}
15306 # If no C compiler flags were specified, use CFLAGS.
15307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15309 # Allow CC to be a program name with arguments.
15310 compiler=$CC
15313 # Check for command to grab the raw symbol name followed by C symbol from nm.
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15315 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15316 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15320 # These are sane defaults that work on at least a few old systems.
15321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15323 # Character class describing NM global symbol codes.
15324 symcode='[BCDEGRST]'
15326 # Regexp to match symbols that can be accessed directly from C.
15327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15329 # Define system-specific variables.
15330 case $host_os in
15331 aix*)
15332 symcode='[BCDT]'
15334 cygwin* | mingw* | pw32* | cegcc*)
15335 symcode='[ABCDGISTW]'
15337 hpux*)
15338 if test "$host_cpu" = ia64; then
15339 symcode='[ABCDEGRST]'
15342 irix* | nonstopux*)
15343 symcode='[BCDEGRST]'
15345 osf*)
15346 symcode='[BCDEGQRST]'
15348 solaris*)
15349 symcode='[BCDRT]'
15351 sco3.2v5*)
15352 symcode='[DT]'
15354 sysv4.2uw2*)
15355 symcode='[DT]'
15357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15358 symcode='[ABDT]'
15360 sysv4)
15361 symcode='[DFNSTU]'
15363 esac
15365 # If we're using GNU nm, then use its standard symbol codes.
15366 case `$NM -V 2>&1` in
15367 *GNU* | *'with BFD'*)
15368 symcode='[ABCDGIRSTW]' ;;
15369 esac
15371 # Transform an extracted symbol line into a proper C declaration.
15372 # Some systems (esp. on ia64) link data and code symbols differently,
15373 # so use this general approach.
15374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15376 # Transform an extracted symbol line into symbol name and symbol address
15377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15378 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'"
15380 # Handle CRLF in mingw tool chain
15381 opt_cr=
15382 case $build_os in
15383 mingw*)
15384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15386 esac
15388 # Try without a prefix underscore, then with it.
15389 for ac_symprfx in "" "_"; do
15391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15392 symxfrm="\\1 $ac_symprfx\\2 \\2"
15394 # Write the raw and C identifiers.
15395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15396 # Fake it for dumpbin and say T for any non-static function
15397 # and D for any global variable.
15398 # Also find C++ and __fastcall symbols from MSVC++,
15399 # which start with @ or ?.
15400 lt_cv_sys_global_symbol_pipe="$AWK '"\
15401 " {last_section=section; section=\$ 3};"\
15402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15403 " \$ 0!~/External *\|/{next};"\
15404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15405 " {if(hide[section]) next};"\
15406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15410 " ' prfx=^$ac_symprfx"
15411 else
15412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15415 # Check to see that the pipe works correctly.
15416 pipe_works=no
15418 rm -f conftest*
15419 cat > conftest.$ac_ext <<_LT_EOF
15420 #ifdef __cplusplus
15421 extern "C" {
15422 #endif
15423 char nm_test_var;
15424 void nm_test_func(void);
15425 void nm_test_func(void){}
15426 #ifdef __cplusplus
15428 #endif
15429 int main(){nm_test_var='a';nm_test_func();return(0);}
15430 _LT_EOF
15432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15433 (eval $ac_compile) 2>&5
15434 ac_status=$?
15435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15436 test $ac_status = 0; }; then
15437 # Now try to grab the symbols.
15438 nlist=conftest.nm
15439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15440 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15441 ac_status=$?
15442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15443 test $ac_status = 0; } && test -s "$nlist"; then
15444 # Try sorting and uniquifying the output.
15445 if sort "$nlist" | uniq > "$nlist"T; then
15446 mv -f "$nlist"T "$nlist"
15447 else
15448 rm -f "$nlist"T
15451 # Make sure that we snagged all the symbols we need.
15452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15454 cat <<_LT_EOF > conftest.$ac_ext
15455 #ifdef __cplusplus
15456 extern "C" {
15457 #endif
15459 _LT_EOF
15460 # Now generate the symbol file.
15461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15463 cat <<_LT_EOF >> conftest.$ac_ext
15465 /* The mapping between symbol names and symbols. */
15466 const struct {
15467 const char *name;
15468 void *address;
15470 lt__PROGRAM__LTX_preloaded_symbols[] =
15472 { "@PROGRAM@", (void *) 0 },
15473 _LT_EOF
15474 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15475 cat <<\_LT_EOF >> conftest.$ac_ext
15476 {0, (void *) 0}
15479 /* This works around a problem in FreeBSD linker */
15480 #ifdef FREEBSD_WORKAROUND
15481 static const void *lt_preloaded_setup() {
15482 return lt__PROGRAM__LTX_preloaded_symbols;
15484 #endif
15486 #ifdef __cplusplus
15488 #endif
15489 _LT_EOF
15490 # Now try linking the two files.
15491 mv conftest.$ac_objext conftstm.$ac_objext
15492 lt_save_LIBS="$LIBS"
15493 lt_save_CFLAGS="$CFLAGS"
15494 LIBS="conftstm.$ac_objext"
15495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15497 (eval $ac_link) 2>&5
15498 ac_status=$?
15499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15500 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15501 pipe_works=yes
15503 LIBS="$lt_save_LIBS"
15504 CFLAGS="$lt_save_CFLAGS"
15505 else
15506 echo "cannot find nm_test_func in $nlist" >&5
15508 else
15509 echo "cannot find nm_test_var in $nlist" >&5
15511 else
15512 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15514 else
15515 echo "$progname: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15518 rm -rf conftest* conftst*
15520 # Do not use the global_symbol_pipe unless it works.
15521 if test "$pipe_works" = yes; then
15522 break
15523 else
15524 lt_cv_sys_global_symbol_pipe=
15526 done
15530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15531 lt_cv_sys_global_symbol_to_cdecl=
15533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15535 $as_echo "failed" >&6; }
15536 else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15538 $as_echo "ok" >&6; }
15562 # Check whether --enable-libtool-lock was given.
15563 if test "${enable_libtool_lock+set}" = set; then :
15564 enableval=$enable_libtool_lock;
15567 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15569 # Some flags need to be propagated to the compiler or linker for good
15570 # libtool support.
15571 case $host in
15572 ia64-*-hpux*)
15573 # Find out which ABI we are using.
15574 echo 'int i;' > conftest.$ac_ext
15575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15576 (eval $ac_compile) 2>&5
15577 ac_status=$?
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; then
15580 case `/usr/bin/file conftest.$ac_objext` in
15581 *ELF-32*)
15582 HPUX_IA64_MODE="32"
15584 *ELF-64*)
15585 HPUX_IA64_MODE="64"
15587 esac
15589 rm -rf conftest*
15591 *-*-irix6*)
15592 # Find out which ABI we are using.
15593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15595 (eval $ac_compile) 2>&5
15596 ac_status=$?
15597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15598 test $ac_status = 0; }; then
15599 if test "$lt_cv_prog_gnu_ld" = yes; then
15600 case `/usr/bin/file conftest.$ac_objext` in
15601 *32-bit*)
15602 LD="${LD-ld} -melf32bsmip"
15604 *N32*)
15605 LD="${LD-ld} -melf32bmipn32"
15607 *64-bit*)
15608 LD="${LD-ld} -melf64bmip"
15610 esac
15611 else
15612 case `/usr/bin/file conftest.$ac_objext` in
15613 *32-bit*)
15614 LD="${LD-ld} -32"
15616 *N32*)
15617 LD="${LD-ld} -n32"
15619 *64-bit*)
15620 LD="${LD-ld} -64"
15622 esac
15625 rm -rf conftest*
15628 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15629 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15630 # Find out which ABI we are using.
15631 echo 'int i;' > conftest.$ac_ext
15632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15633 (eval $ac_compile) 2>&5
15634 ac_status=$?
15635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15636 test $ac_status = 0; }; then
15637 case `/usr/bin/file conftest.o` in
15638 *32-bit*)
15639 case $host in
15640 x86_64-*kfreebsd*-gnu)
15641 LD="${LD-ld} -m elf_i386_fbsd"
15643 x86_64-*linux*)
15644 case `/usr/bin/file conftest.o` in
15645 *x86-64*)
15646 LD="${LD-ld} -m elf32_x86_64"
15649 LD="${LD-ld} -m elf_i386"
15651 esac
15653 powerpc64le-*linux*)
15654 LD="${LD-ld} -m elf32lppclinux"
15656 powerpc64-*linux*)
15657 LD="${LD-ld} -m elf32ppclinux"
15659 s390x-*linux*)
15660 LD="${LD-ld} -m elf_s390"
15662 sparc64-*linux*)
15663 LD="${LD-ld} -m elf32_sparc"
15665 esac
15667 *64-bit*)
15668 case $host in
15669 x86_64-*kfreebsd*-gnu)
15670 LD="${LD-ld} -m elf_x86_64_fbsd"
15672 x86_64-*linux*)
15673 LD="${LD-ld} -m elf_x86_64"
15675 powerpcle-*linux*)
15676 LD="${LD-ld} -m elf64lppc"
15678 powerpc-*linux*)
15679 LD="${LD-ld} -m elf64ppc"
15681 s390*-*linux*|s390*-*tpf*)
15682 LD="${LD-ld} -m elf64_s390"
15684 sparc*-*linux*)
15685 LD="${LD-ld} -m elf64_sparc"
15687 esac
15689 esac
15691 rm -rf conftest*
15694 *-*-sco3.2v5*)
15695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15696 SAVE_CFLAGS="$CFLAGS"
15697 CFLAGS="$CFLAGS -belf"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15699 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15700 if ${lt_cv_cc_needs_belf+:} false; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 ac_ext=c
15704 ac_cpp='$CPP $CPPFLAGS'
15705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15713 main ()
15717 return 0;
15719 _ACEOF
15720 if ac_fn_c_try_link "$LINENO"; then :
15721 lt_cv_cc_needs_belf=yes
15722 else
15723 lt_cv_cc_needs_belf=no
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15727 ac_ext=c
15728 ac_cpp='$CPP $CPPFLAGS'
15729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15735 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15738 CFLAGS="$SAVE_CFLAGS"
15741 sparc*-*solaris*)
15742 # Find out which ABI we are using.
15743 echo 'int i;' > conftest.$ac_ext
15744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15745 (eval $ac_compile) 2>&5
15746 ac_status=$?
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 test $ac_status = 0; }; then
15749 case `/usr/bin/file conftest.o` in
15750 *64-bit*)
15751 case $lt_cv_prog_gnu_ld in
15752 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15755 LD="${LD-ld} -64"
15758 esac
15760 esac
15762 rm -rf conftest*
15764 esac
15766 need_locks="$enable_libtool_lock"
15769 case $host_os in
15770 rhapsody* | darwin*)
15771 if test -n "$ac_tool_prefix"; then
15772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15775 $as_echo_n "checking for $ac_word... " >&6; }
15776 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 if test -n "$DSYMUTIL"; then
15780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15781 else
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15785 IFS=$as_save_IFS
15786 test -z "$as_dir" && as_dir=.
15787 for ac_exec_ext in '' $ac_executable_extensions; do
15788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15791 break 2
15793 done
15794 done
15795 IFS=$as_save_IFS
15799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15800 if test -n "$DSYMUTIL"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15802 $as_echo "$DSYMUTIL" >&6; }
15803 else
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15805 $as_echo "no" >&6; }
15810 if test -z "$ac_cv_prog_DSYMUTIL"; then
15811 ac_ct_DSYMUTIL=$DSYMUTIL
15812 # Extract the first word of "dsymutil", so it can be a program name with args.
15813 set dummy dsymutil; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815 $as_echo_n "checking for $ac_word... " >&6; }
15816 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 if test -n "$ac_ct_DSYMUTIL"; then
15820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15821 else
15822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15823 for as_dir in $PATH
15825 IFS=$as_save_IFS
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15831 break 2
15833 done
15834 done
15835 IFS=$as_save_IFS
15839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15840 if test -n "$ac_ct_DSYMUTIL"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845 $as_echo "no" >&6; }
15848 if test "x$ac_ct_DSYMUTIL" = x; then
15849 DSYMUTIL=":"
15850 else
15851 case $cross_compiling:$ac_tool_warned in
15852 yes:)
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15855 ac_tool_warned=yes ;;
15856 esac
15857 DSYMUTIL=$ac_ct_DSYMUTIL
15859 else
15860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15863 if test -n "$ac_tool_prefix"; then
15864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if ${ac_cv_prog_NMEDIT+:} false; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 if test -n "$NMEDIT"; then
15872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15873 else
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15877 IFS=$as_save_IFS
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15883 break 2
15885 done
15886 done
15887 IFS=$as_save_IFS
15891 NMEDIT=$ac_cv_prog_NMEDIT
15892 if test -n "$NMEDIT"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15894 $as_echo "$NMEDIT" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15902 if test -z "$ac_cv_prog_NMEDIT"; then
15903 ac_ct_NMEDIT=$NMEDIT
15904 # Extract the first word of "nmedit", so it can be a program name with args.
15905 set dummy nmedit; ac_word=$2
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15907 $as_echo_n "checking for $ac_word... " >&6; }
15908 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 if test -n "$ac_ct_NMEDIT"; then
15912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15913 else
15914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15915 for as_dir in $PATH
15917 IFS=$as_save_IFS
15918 test -z "$as_dir" && as_dir=.
15919 for ac_exec_ext in '' $ac_executable_extensions; do
15920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15923 break 2
15925 done
15926 done
15927 IFS=$as_save_IFS
15931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15932 if test -n "$ac_ct_NMEDIT"; then
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15934 $as_echo "$ac_ct_NMEDIT" >&6; }
15935 else
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15940 if test "x$ac_ct_NMEDIT" = x; then
15941 NMEDIT=":"
15942 else
15943 case $cross_compiling:$ac_tool_warned in
15944 yes:)
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15947 ac_tool_warned=yes ;;
15948 esac
15949 NMEDIT=$ac_ct_NMEDIT
15951 else
15952 NMEDIT="$ac_cv_prog_NMEDIT"
15955 if test -n "$ac_tool_prefix"; then
15956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15959 $as_echo_n "checking for $ac_word... " >&6; }
15960 if ${ac_cv_prog_LIPO+:} false; then :
15961 $as_echo_n "(cached) " >&6
15962 else
15963 if test -n "$LIPO"; then
15964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15965 else
15966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15967 for as_dir in $PATH
15969 IFS=$as_save_IFS
15970 test -z "$as_dir" && as_dir=.
15971 for ac_exec_ext in '' $ac_executable_extensions; do
15972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15975 break 2
15977 done
15978 done
15979 IFS=$as_save_IFS
15983 LIPO=$ac_cv_prog_LIPO
15984 if test -n "$LIPO"; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15986 $as_echo "$LIPO" >&6; }
15987 else
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15989 $as_echo "no" >&6; }
15994 if test -z "$ac_cv_prog_LIPO"; then
15995 ac_ct_LIPO=$LIPO
15996 # Extract the first word of "lipo", so it can be a program name with args.
15997 set dummy lipo; ac_word=$2
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15999 $as_echo_n "checking for $ac_word... " >&6; }
16000 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 if test -n "$ac_ct_LIPO"; then
16004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16005 else
16006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007 for as_dir in $PATH
16009 IFS=$as_save_IFS
16010 test -z "$as_dir" && as_dir=.
16011 for ac_exec_ext in '' $ac_executable_extensions; do
16012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16013 ac_cv_prog_ac_ct_LIPO="lipo"
16014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16015 break 2
16017 done
16018 done
16019 IFS=$as_save_IFS
16023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16024 if test -n "$ac_ct_LIPO"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16026 $as_echo "$ac_ct_LIPO" >&6; }
16027 else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16032 if test "x$ac_ct_LIPO" = x; then
16033 LIPO=":"
16034 else
16035 case $cross_compiling:$ac_tool_warned in
16036 yes:)
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16039 ac_tool_warned=yes ;;
16040 esac
16041 LIPO=$ac_ct_LIPO
16043 else
16044 LIPO="$ac_cv_prog_LIPO"
16047 if test -n "$ac_tool_prefix"; then
16048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16049 set dummy ${ac_tool_prefix}otool; ac_word=$2
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16051 $as_echo_n "checking for $ac_word... " >&6; }
16052 if ${ac_cv_prog_OTOOL+:} false; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 if test -n "$OTOOL"; then
16056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16057 else
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059 for as_dir in $PATH
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 break 2
16069 done
16070 done
16071 IFS=$as_save_IFS
16075 OTOOL=$ac_cv_prog_OTOOL
16076 if test -n "$OTOOL"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16078 $as_echo "$OTOOL" >&6; }
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16086 if test -z "$ac_cv_prog_OTOOL"; then
16087 ac_ct_OTOOL=$OTOOL
16088 # Extract the first word of "otool", so it can be a program name with args.
16089 set dummy otool; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091 $as_echo_n "checking for $ac_word... " >&6; }
16092 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16093 $as_echo_n "(cached) " >&6
16094 else
16095 if test -n "$ac_ct_OTOOL"; then
16096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16097 else
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_prog_ac_ct_OTOOL="otool"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16109 done
16110 done
16111 IFS=$as_save_IFS
16115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16116 if test -n "$ac_ct_OTOOL"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16118 $as_echo "$ac_ct_OTOOL" >&6; }
16119 else
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121 $as_echo "no" >&6; }
16124 if test "x$ac_ct_OTOOL" = x; then
16125 OTOOL=":"
16126 else
16127 case $cross_compiling:$ac_tool_warned in
16128 yes:)
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16131 ac_tool_warned=yes ;;
16132 esac
16133 OTOOL=$ac_ct_OTOOL
16135 else
16136 OTOOL="$ac_cv_prog_OTOOL"
16139 if test -n "$ac_tool_prefix"; then
16140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16143 $as_echo_n "checking for $ac_word... " >&6; }
16144 if ${ac_cv_prog_OTOOL64+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 if test -n "$OTOOL64"; then
16148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16149 else
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16153 IFS=$as_save_IFS
16154 test -z "$as_dir" && as_dir=.
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16159 break 2
16161 done
16162 done
16163 IFS=$as_save_IFS
16167 OTOOL64=$ac_cv_prog_OTOOL64
16168 if test -n "$OTOOL64"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16170 $as_echo "$OTOOL64" >&6; }
16171 else
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16178 if test -z "$ac_cv_prog_OTOOL64"; then
16179 ac_ct_OTOOL64=$OTOOL64
16180 # Extract the first word of "otool64", so it can be a program name with args.
16181 set dummy otool64; ac_word=$2
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16183 $as_echo_n "checking for $ac_word... " >&6; }
16184 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 if test -n "$ac_ct_OTOOL64"; then
16188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16189 else
16190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16191 for as_dir in $PATH
16193 IFS=$as_save_IFS
16194 test -z "$as_dir" && as_dir=.
16195 for ac_exec_ext in '' $ac_executable_extensions; do
16196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16197 ac_cv_prog_ac_ct_OTOOL64="otool64"
16198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16199 break 2
16201 done
16202 done
16203 IFS=$as_save_IFS
16207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16208 if test -n "$ac_ct_OTOOL64"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16210 $as_echo "$ac_ct_OTOOL64" >&6; }
16211 else
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16216 if test "x$ac_ct_OTOOL64" = x; then
16217 OTOOL64=":"
16218 else
16219 case $cross_compiling:$ac_tool_warned in
16220 yes:)
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16223 ac_tool_warned=yes ;;
16224 esac
16225 OTOOL64=$ac_ct_OTOOL64
16227 else
16228 OTOOL64="$ac_cv_prog_OTOOL64"
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16258 $as_echo_n "checking for -single_module linker flag... " >&6; }
16259 if ${lt_cv_apple_cc_single_mod+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16262 lt_cv_apple_cc_single_mod=no
16263 if test -z "${LT_MULTI_MODULE}"; then
16264 # By default we will add the -single_module flag. You can override
16265 # by either setting the environment variable LT_MULTI_MODULE
16266 # non-empty at configure time, or by adding -multi_module to the
16267 # link flags.
16268 rm -rf libconftest.dylib*
16269 echo "int foo(void){return 1;}" > conftest.c
16270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16271 -dynamiclib -Wl,-single_module conftest.c" >&5
16272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16274 _lt_result=$?
16275 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16276 lt_cv_apple_cc_single_mod=yes
16277 else
16278 cat conftest.err >&5
16280 rm -rf libconftest.dylib*
16281 rm -f conftest.*
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16285 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16287 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16288 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16289 $as_echo_n "(cached) " >&6
16290 else
16291 lt_cv_ld_exported_symbols_list=no
16292 save_LDFLAGS=$LDFLAGS
16293 echo "_main" > conftest.sym
16294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16299 main ()
16303 return 0;
16305 _ACEOF
16306 if ac_fn_c_try_link "$LINENO"; then :
16307 lt_cv_ld_exported_symbols_list=yes
16308 else
16309 lt_cv_ld_exported_symbols_list=no
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LDFLAGS="$save_LDFLAGS"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16317 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16319 $as_echo_n "checking for -force_load linker flag... " >&6; }
16320 if ${lt_cv_ld_force_load+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 lt_cv_ld_force_load=no
16324 cat > conftest.c << _LT_EOF
16325 int forced_loaded() { return 2;}
16326 _LT_EOF
16327 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16328 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16329 echo "$AR cru libconftest.a conftest.o" >&5
16330 $AR cru libconftest.a conftest.o 2>&5
16331 cat > conftest.c << _LT_EOF
16332 int main() { return 0;}
16333 _LT_EOF
16334 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16335 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16336 _lt_result=$?
16337 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16338 lt_cv_ld_force_load=yes
16339 else
16340 cat conftest.err >&5
16342 rm -f conftest.err libconftest.a conftest conftest.c
16343 rm -rf conftest.dSYM
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16347 $as_echo "$lt_cv_ld_force_load" >&6; }
16348 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16349 # build without first building modern cctools / linker.
16350 case $host_cpu-$host_os in
16351 *-rhapsody* | *-darwin1.[012])
16352 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16353 *-darwin1.*)
16354 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16355 *-darwin*)
16356 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16357 # deployment target is forced to an earlier version.
16358 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16359 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16361 10.[012][,.]*)
16362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16366 esac
16368 esac
16369 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16370 _lt_dar_single_mod='$single_module'
16372 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16373 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16374 else
16375 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16377 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16378 _lt_dsymutil='~$DSYMUTIL $lib || :'
16379 else
16380 _lt_dsymutil=
16383 esac
16386 for ac_header in dlfcn.h
16387 do :
16388 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16389 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16390 cat >>confdefs.h <<_ACEOF
16391 #define HAVE_DLFCN_H 1
16392 _ACEOF
16395 done
16401 # Set options
16405 enable_dlopen=no
16408 enable_win32_dll=no
16411 # Check whether --enable-shared was given.
16412 if test "${enable_shared+set}" = set; then :
16413 enableval=$enable_shared; p=${PACKAGE-default}
16414 case $enableval in
16415 yes) enable_shared=yes ;;
16416 no) enable_shared=no ;;
16418 enable_shared=no
16419 # Look at the argument we got. We use all the common list separators.
16420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16421 for pkg in $enableval; do
16422 IFS="$lt_save_ifs"
16423 if test "X$pkg" = "X$p"; then
16424 enable_shared=yes
16426 done
16427 IFS="$lt_save_ifs"
16429 esac
16430 else
16431 enable_shared=yes
16442 # Check whether --enable-static was given.
16443 if test "${enable_static+set}" = set; then :
16444 enableval=$enable_static; p=${PACKAGE-default}
16445 case $enableval in
16446 yes) enable_static=yes ;;
16447 no) enable_static=no ;;
16449 enable_static=no
16450 # Look at the argument we got. We use all the common list separators.
16451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16452 for pkg in $enableval; do
16453 IFS="$lt_save_ifs"
16454 if test "X$pkg" = "X$p"; then
16455 enable_static=yes
16457 done
16458 IFS="$lt_save_ifs"
16460 esac
16461 else
16462 enable_static=yes
16474 # Check whether --with-pic was given.
16475 if test "${with_pic+set}" = set; then :
16476 withval=$with_pic; pic_mode="$withval"
16477 else
16478 pic_mode=default
16482 test -z "$pic_mode" && pic_mode=default
16490 # Check whether --enable-fast-install was given.
16491 if test "${enable_fast_install+set}" = set; then :
16492 enableval=$enable_fast_install; p=${PACKAGE-default}
16493 case $enableval in
16494 yes) enable_fast_install=yes ;;
16495 no) enable_fast_install=no ;;
16497 enable_fast_install=no
16498 # Look at the argument we got. We use all the common list separators.
16499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16500 for pkg in $enableval; do
16501 IFS="$lt_save_ifs"
16502 if test "X$pkg" = "X$p"; then
16503 enable_fast_install=yes
16505 done
16506 IFS="$lt_save_ifs"
16508 esac
16509 else
16510 enable_fast_install=yes
16523 # This can be used to rebuild libtool when needed
16524 LIBTOOL_DEPS="$ltmain"
16526 # Always use our own libtool.
16527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16554 test -z "$LN_S" && LN_S="ln -s"
16569 if test -n "${ZSH_VERSION+set}" ; then
16570 setopt NO_GLOB_SUBST
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16574 $as_echo_n "checking for objdir... " >&6; }
16575 if ${lt_cv_objdir+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577 else
16578 rm -f .libs 2>/dev/null
16579 mkdir .libs 2>/dev/null
16580 if test -d .libs; then
16581 lt_cv_objdir=.libs
16582 else
16583 # MS-DOS does not allow filenames that begin with a dot.
16584 lt_cv_objdir=_libs
16586 rmdir .libs 2>/dev/null
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16589 $as_echo "$lt_cv_objdir" >&6; }
16590 objdir=$lt_cv_objdir
16596 cat >>confdefs.h <<_ACEOF
16597 #define LT_OBJDIR "$lt_cv_objdir/"
16598 _ACEOF
16603 case $host_os in
16604 aix3*)
16605 # AIX sometimes has problems with the GCC collect2 program. For some
16606 # reason, if we set the COLLECT_NAMES environment variable, the problems
16607 # vanish in a puff of smoke.
16608 if test "X${COLLECT_NAMES+set}" != Xset; then
16609 COLLECT_NAMES=
16610 export COLLECT_NAMES
16613 esac
16615 # Global variables:
16616 ofile=libtool
16617 can_build_shared=yes
16619 # All known linkers require a `.a' archive for static linking (except MSVC,
16620 # which needs '.lib').
16621 libext=a
16623 with_gnu_ld="$lt_cv_prog_gnu_ld"
16625 old_CC="$CC"
16626 old_CFLAGS="$CFLAGS"
16628 # Set sane defaults for various variables
16629 test -z "$CC" && CC=cc
16630 test -z "$LTCC" && LTCC=$CC
16631 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16632 test -z "$LD" && LD=ld
16633 test -z "$ac_objext" && ac_objext=o
16635 for cc_temp in $compiler""; do
16636 case $cc_temp in
16637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16639 \-*) ;;
16640 *) break;;
16641 esac
16642 done
16643 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16646 # Only perform the check for file, if the check method requires it
16647 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16648 case $deplibs_check_method in
16649 file_magic*)
16650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16652 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 case $MAGIC_CMD in
16657 [\\/*] | ?:[\\/]*)
16658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16661 lt_save_MAGIC_CMD="$MAGIC_CMD"
16662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16664 for ac_dir in $ac_dummy; do
16665 IFS="$lt_save_ifs"
16666 test -z "$ac_dir" && ac_dir=.
16667 if test -f $ac_dir/${ac_tool_prefix}file; then
16668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16669 if test -n "$file_magic_test_file"; then
16670 case $deplibs_check_method in
16671 "file_magic "*)
16672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16675 $EGREP "$file_magic_regex" > /dev/null; then
16677 else
16678 cat <<_LT_EOF 1>&2
16680 *** Warning: the command libtool uses to detect shared libraries,
16681 *** $file_magic_cmd, produces output that libtool cannot recognize.
16682 *** The result is that libtool may fail to recognize shared libraries
16683 *** as such. This will affect the creation of libtool libraries that
16684 *** depend on shared libraries, but programs linked with such libtool
16685 *** libraries will work regardless of this problem. Nevertheless, you
16686 *** may want to report the problem to your system manager and/or to
16687 *** bug-libtool@gnu.org
16689 _LT_EOF
16690 fi ;;
16691 esac
16693 break
16695 done
16696 IFS="$lt_save_ifs"
16697 MAGIC_CMD="$lt_save_MAGIC_CMD"
16699 esac
16702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16703 if test -n "$MAGIC_CMD"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16705 $as_echo "$MAGIC_CMD" >&6; }
16706 else
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16715 if test -z "$lt_cv_path_MAGIC_CMD"; then
16716 if test -n "$ac_tool_prefix"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16718 $as_echo_n "checking for file... " >&6; }
16719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 case $MAGIC_CMD in
16723 [\\/*] | ?:[\\/]*)
16724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16727 lt_save_MAGIC_CMD="$MAGIC_CMD"
16728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16730 for ac_dir in $ac_dummy; do
16731 IFS="$lt_save_ifs"
16732 test -z "$ac_dir" && ac_dir=.
16733 if test -f $ac_dir/file; then
16734 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16735 if test -n "$file_magic_test_file"; then
16736 case $deplibs_check_method in
16737 "file_magic "*)
16738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16741 $EGREP "$file_magic_regex" > /dev/null; then
16743 else
16744 cat <<_LT_EOF 1>&2
16746 *** Warning: the command libtool uses to detect shared libraries,
16747 *** $file_magic_cmd, produces output that libtool cannot recognize.
16748 *** The result is that libtool may fail to recognize shared libraries
16749 *** as such. This will affect the creation of libtool libraries that
16750 *** depend on shared libraries, but programs linked with such libtool
16751 *** libraries will work regardless of this problem. Nevertheless, you
16752 *** may want to report the problem to your system manager and/or to
16753 *** bug-libtool@gnu.org
16755 _LT_EOF
16756 fi ;;
16757 esac
16759 break
16761 done
16762 IFS="$lt_save_ifs"
16763 MAGIC_CMD="$lt_save_MAGIC_CMD"
16765 esac
16768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16769 if test -n "$MAGIC_CMD"; then
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16771 $as_echo "$MAGIC_CMD" >&6; }
16772 else
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16774 $as_echo "no" >&6; }
16778 else
16779 MAGIC_CMD=:
16785 esac
16787 # Use C for the default configuration in the libtool script
16789 lt_save_CC="$CC"
16790 ac_ext=c
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16797 # Source file extension for C test sources.
16798 ac_ext=c
16800 # Object file extension for compiled C test sources.
16801 objext=o
16802 objext=$objext
16804 # Code to be used in simple compile tests
16805 lt_simple_compile_test_code="int some_variable = 0;"
16807 # Code to be used in simple link tests
16808 lt_simple_link_test_code='int main(){return(0);}'
16816 # If no C compiler was specified, use CC.
16817 LTCC=${LTCC-"$CC"}
16819 # If no C compiler flags were specified, use CFLAGS.
16820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16822 # Allow CC to be a program name with arguments.
16823 compiler=$CC
16825 # Save the default compiler, since it gets overwritten when the other
16826 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16827 compiler_DEFAULT=$CC
16829 # save warnings/boilerplate of simple test code
16830 ac_outfile=conftest.$ac_objext
16831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16833 _lt_compiler_boilerplate=`cat conftest.err`
16834 $RM conftest*
16836 ac_outfile=conftest.$ac_objext
16837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839 _lt_linker_boilerplate=`cat conftest.err`
16840 $RM -r conftest*
16843 ## CAVEAT EMPTOR:
16844 ## There is no encapsulation within the following macros, do not change
16845 ## the running order or otherwise move them around unless you know exactly
16846 ## what you are doing...
16847 if test -n "$compiler"; then
16849 lt_prog_compiler_no_builtin_flag=
16851 if test "$GCC" = yes; then
16852 case $cc_basename in
16853 nvcc*)
16854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16857 esac
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16860 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16861 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 lt_cv_prog_compiler_rtti_exceptions=no
16865 ac_outfile=conftest.$ac_objext
16866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16867 lt_compiler_flag="-fno-rtti -fno-exceptions"
16868 # Insert the option either (1) after the last *FLAGS variable, or
16869 # (2) before a word containing "conftest.", or (3) at the end.
16870 # Note that $ac_compile itself does not contain backslashes and begins
16871 # with a dollar sign (not a hyphen), so the echo should work correctly.
16872 # The option is referenced via a variable to avoid confusing sed.
16873 lt_compile=`echo "$ac_compile" | $SED \
16874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16876 -e 's:$: $lt_compiler_flag:'`
16877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16878 (eval "$lt_compile" 2>conftest.err)
16879 ac_status=$?
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 if (exit $ac_status) && test -s "$ac_outfile"; then
16883 # The compiler can only warn and ignore the option if not recognized
16884 # So say no if there are warnings other than the usual output.
16885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16888 lt_cv_prog_compiler_rtti_exceptions=yes
16891 $RM conftest*
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16899 else
16910 lt_prog_compiler_wl=
16911 lt_prog_compiler_pic=
16912 lt_prog_compiler_static=
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16917 if test "$GCC" = yes; then
16918 lt_prog_compiler_wl='-Wl,'
16919 lt_prog_compiler_static='-static'
16921 case $host_os in
16922 aix*)
16923 # All AIX code is PIC.
16924 if test "$host_cpu" = ia64; then
16925 # AIX 5 now supports IA64 processor
16926 lt_prog_compiler_static='-Bstatic'
16928 lt_prog_compiler_pic='-fPIC'
16931 amigaos*)
16932 case $host_cpu in
16933 powerpc)
16934 # see comment about AmigaOS4 .so support
16935 lt_prog_compiler_pic='-fPIC'
16937 m68k)
16938 # FIXME: we need at least 68020 code to build shared libraries, but
16939 # adding the `-m68020' flag to GCC prevents building anything better,
16940 # like `-m68040'.
16941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16943 esac
16946 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16947 # PIC is the default for these OSes.
16950 mingw* | cygwin* | pw32* | os2* | cegcc*)
16951 # This hack is so that the source file can tell whether it is being
16952 # built for inclusion in a dll (and should export symbols for example).
16953 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16954 # (--disable-auto-import) libraries
16955 lt_prog_compiler_pic='-DDLL_EXPORT'
16958 darwin* | rhapsody*)
16959 # PIC is the default on this platform
16960 # Common symbols not allowed in MH_DYLIB files
16961 lt_prog_compiler_pic='-fno-common'
16964 haiku*)
16965 # PIC is the default for Haiku.
16966 # The "-static" flag exists, but is broken.
16967 lt_prog_compiler_static=
16970 hpux*)
16971 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16972 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16973 # sets the default TLS model and affects inlining.
16974 case $host_cpu in
16975 hppa*64*)
16976 # +Z the default
16979 lt_prog_compiler_pic='-fPIC'
16981 esac
16984 interix[3-9]*)
16985 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16986 # Instead, we relocate shared libraries at runtime.
16989 msdosdjgpp*)
16990 # Just because we use GCC doesn't mean we suddenly get shared libraries
16991 # on systems that don't support them.
16992 lt_prog_compiler_can_build_shared=no
16993 enable_shared=no
16996 *nto* | *qnx*)
16997 # QNX uses GNU C++, but need to define -shared option too, otherwise
16998 # it will coredump.
16999 lt_prog_compiler_pic='-fPIC -shared'
17002 sysv4*MP*)
17003 if test -d /usr/nec; then
17004 lt_prog_compiler_pic=-Kconform_pic
17009 lt_prog_compiler_pic='-fPIC'
17011 esac
17013 case $cc_basename in
17014 nvcc*) # Cuda Compiler Driver 2.2
17015 lt_prog_compiler_wl='-Xlinker '
17016 lt_prog_compiler_pic='-Xcompiler -fPIC'
17018 esac
17019 else
17020 # PORTME Check for flag to pass linker flags through the system compiler.
17021 case $host_os in
17022 aix*)
17023 lt_prog_compiler_wl='-Wl,'
17024 if test "$host_cpu" = ia64; then
17025 # AIX 5 now supports IA64 processor
17026 lt_prog_compiler_static='-Bstatic'
17027 else
17028 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17032 mingw* | cygwin* | pw32* | os2* | cegcc*)
17033 # This hack is so that the source file can tell whether it is being
17034 # built for inclusion in a dll (and should export symbols for example).
17035 lt_prog_compiler_pic='-DDLL_EXPORT'
17038 hpux9* | hpux10* | hpux11*)
17039 lt_prog_compiler_wl='-Wl,'
17040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17041 # not for PA HP-UX.
17042 case $host_cpu in
17043 hppa*64*|ia64*)
17044 # +Z the default
17047 lt_prog_compiler_pic='+Z'
17049 esac
17050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17051 lt_prog_compiler_static='${wl}-a ${wl}archive'
17054 irix5* | irix6* | nonstopux*)
17055 lt_prog_compiler_wl='-Wl,'
17056 # PIC (with -KPIC) is the default.
17057 lt_prog_compiler_static='-non_shared'
17060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17061 case $cc_basename in
17062 # old Intel for x86_64 which still supported -KPIC.
17063 ecc*)
17064 lt_prog_compiler_wl='-Wl,'
17065 lt_prog_compiler_pic='-KPIC'
17066 lt_prog_compiler_static='-static'
17068 # icc used to be incompatible with GCC.
17069 # ICC 10 doesn't accept -KPIC any more.
17070 icc* | ifort*)
17071 lt_prog_compiler_wl='-Wl,'
17072 lt_prog_compiler_pic='-fPIC'
17073 lt_prog_compiler_static='-static'
17075 # Lahey Fortran 8.1.
17076 lf95*)
17077 lt_prog_compiler_wl='-Wl,'
17078 lt_prog_compiler_pic='--shared'
17079 lt_prog_compiler_static='--static'
17081 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17082 # Portland Group compilers (*not* the Pentium gcc compiler,
17083 # which looks to be a dead project)
17084 lt_prog_compiler_wl='-Wl,'
17085 lt_prog_compiler_pic='-fpic'
17086 lt_prog_compiler_static='-Bstatic'
17088 ccc*)
17089 lt_prog_compiler_wl='-Wl,'
17090 # All Alpha code is PIC.
17091 lt_prog_compiler_static='-non_shared'
17093 xl* | bgxl* | bgf* | mpixl*)
17094 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17095 lt_prog_compiler_wl='-Wl,'
17096 lt_prog_compiler_pic='-qpic'
17097 lt_prog_compiler_static='-qstaticlink'
17100 case `$CC -V 2>&1 | sed 5q` in
17101 *Sun\ F* | *Sun*Fortran*)
17102 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17103 lt_prog_compiler_pic='-KPIC'
17104 lt_prog_compiler_static='-Bstatic'
17105 lt_prog_compiler_wl=''
17107 *Sun\ C*)
17108 # Sun C 5.9
17109 lt_prog_compiler_pic='-KPIC'
17110 lt_prog_compiler_static='-Bstatic'
17111 lt_prog_compiler_wl='-Wl,'
17113 esac
17115 esac
17118 newsos6)
17119 lt_prog_compiler_pic='-KPIC'
17120 lt_prog_compiler_static='-Bstatic'
17123 *nto* | *qnx*)
17124 # QNX uses GNU C++, but need to define -shared option too, otherwise
17125 # it will coredump.
17126 lt_prog_compiler_pic='-fPIC -shared'
17129 osf3* | osf4* | osf5*)
17130 lt_prog_compiler_wl='-Wl,'
17131 # All OSF/1 code is PIC.
17132 lt_prog_compiler_static='-non_shared'
17135 rdos*)
17136 lt_prog_compiler_static='-non_shared'
17139 solaris*)
17140 lt_prog_compiler_pic='-KPIC'
17141 lt_prog_compiler_static='-Bstatic'
17142 case $cc_basename in
17143 f77* | f90* | f95*)
17144 lt_prog_compiler_wl='-Qoption ld ';;
17146 lt_prog_compiler_wl='-Wl,';;
17147 esac
17150 sunos4*)
17151 lt_prog_compiler_wl='-Qoption ld '
17152 lt_prog_compiler_pic='-PIC'
17153 lt_prog_compiler_static='-Bstatic'
17156 sysv4 | sysv4.2uw2* | sysv4.3*)
17157 lt_prog_compiler_wl='-Wl,'
17158 lt_prog_compiler_pic='-KPIC'
17159 lt_prog_compiler_static='-Bstatic'
17162 sysv4*MP*)
17163 if test -d /usr/nec ;then
17164 lt_prog_compiler_pic='-Kconform_pic'
17165 lt_prog_compiler_static='-Bstatic'
17169 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17170 lt_prog_compiler_wl='-Wl,'
17171 lt_prog_compiler_pic='-KPIC'
17172 lt_prog_compiler_static='-Bstatic'
17175 unicos*)
17176 lt_prog_compiler_wl='-Wl,'
17177 lt_prog_compiler_can_build_shared=no
17180 uts4*)
17181 lt_prog_compiler_pic='-pic'
17182 lt_prog_compiler_static='-Bstatic'
17186 lt_prog_compiler_can_build_shared=no
17188 esac
17191 case $host_os in
17192 # For platforms which do not support PIC, -DPIC is meaningless:
17193 *djgpp*)
17194 lt_prog_compiler_pic=
17197 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17199 esac
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17201 $as_echo "$lt_prog_compiler_pic" >&6; }
17209 # Check to make sure the PIC flag actually works.
17211 if test -n "$lt_prog_compiler_pic"; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17213 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17214 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 lt_cv_prog_compiler_pic_works=no
17218 ac_outfile=conftest.$ac_objext
17219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17220 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17221 # Insert the option either (1) after the last *FLAGS variable, or
17222 # (2) before a word containing "conftest.", or (3) at the end.
17223 # Note that $ac_compile itself does not contain backslashes and begins
17224 # with a dollar sign (not a hyphen), so the echo should work correctly.
17225 # The option is referenced via a variable to avoid confusing sed.
17226 lt_compile=`echo "$ac_compile" | $SED \
17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229 -e 's:$: $lt_compiler_flag:'`
17230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17231 (eval "$lt_compile" 2>conftest.err)
17232 ac_status=$?
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 if (exit $ac_status) && test -s "$ac_outfile"; then
17236 # The compiler can only warn and ignore the option if not recognized
17237 # So say no if there are warnings other than the usual output.
17238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17241 lt_cv_prog_compiler_pic_works=yes
17244 $RM conftest*
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17248 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17250 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17251 case $lt_prog_compiler_pic in
17252 "" | " "*) ;;
17253 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17254 esac
17255 else
17256 lt_prog_compiler_pic=
17257 lt_prog_compiler_can_build_shared=no
17268 # Check to make sure the static flag actually works.
17270 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17272 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17273 if ${lt_cv_prog_compiler_static_works+:} false; then :
17274 $as_echo_n "(cached) " >&6
17275 else
17276 lt_cv_prog_compiler_static_works=no
17277 save_LDFLAGS="$LDFLAGS"
17278 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17281 # The linker can only warn and ignore the option if not recognized
17282 # So say no if there are warnings
17283 if test -s conftest.err; then
17284 # Append any errors to the config.log.
17285 cat conftest.err 1>&5
17286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17288 if diff conftest.exp conftest.er2 >/dev/null; then
17289 lt_cv_prog_compiler_static_works=yes
17291 else
17292 lt_cv_prog_compiler_static_works=yes
17295 $RM -r conftest*
17296 LDFLAGS="$save_LDFLAGS"
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17300 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17302 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17304 else
17305 lt_prog_compiler_static=
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17315 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17316 if ${lt_cv_prog_compiler_c_o+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17319 lt_cv_prog_compiler_c_o=no
17320 $RM -r conftest 2>/dev/null
17321 mkdir conftest
17322 cd conftest
17323 mkdir out
17324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17326 lt_compiler_flag="-o out/conftest2.$ac_objext"
17327 # Insert the option either (1) after the last *FLAGS variable, or
17328 # (2) before a word containing "conftest.", or (3) at the end.
17329 # Note that $ac_compile itself does not contain backslashes and begins
17330 # with a dollar sign (not a hyphen), so the echo should work correctly.
17331 lt_compile=`echo "$ac_compile" | $SED \
17332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17334 -e 's:$: $lt_compiler_flag:'`
17335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17336 (eval "$lt_compile" 2>out/conftest.err)
17337 ac_status=$?
17338 cat out/conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17341 then
17342 # The compiler can only warn and ignore the option if not recognized
17343 # So say no if there are warnings
17344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17345 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17346 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17347 lt_cv_prog_compiler_c_o=yes
17350 chmod u+w . 2>&5
17351 $RM conftest*
17352 # SGI C++ compiler will create directory out/ii_files/ for
17353 # template instantiation
17354 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17355 $RM out/* && rmdir out
17356 cd ..
17357 $RM -r conftest
17358 $RM conftest*
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17362 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17370 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17371 if ${lt_cv_prog_compiler_c_o+:} false; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 lt_cv_prog_compiler_c_o=no
17375 $RM -r conftest 2>/dev/null
17376 mkdir conftest
17377 cd conftest
17378 mkdir out
17379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17381 lt_compiler_flag="-o out/conftest2.$ac_objext"
17382 # Insert the option either (1) after the last *FLAGS variable, or
17383 # (2) before a word containing "conftest.", or (3) at the end.
17384 # Note that $ac_compile itself does not contain backslashes and begins
17385 # with a dollar sign (not a hyphen), so the echo should work correctly.
17386 lt_compile=`echo "$ac_compile" | $SED \
17387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17389 -e 's:$: $lt_compiler_flag:'`
17390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17391 (eval "$lt_compile" 2>out/conftest.err)
17392 ac_status=$?
17393 cat out/conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17396 then
17397 # The compiler can only warn and ignore the option if not recognized
17398 # So say no if there are warnings
17399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17402 lt_cv_prog_compiler_c_o=yes
17405 chmod u+w . 2>&5
17406 $RM conftest*
17407 # SGI C++ compiler will create directory out/ii_files/ for
17408 # template instantiation
17409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17410 $RM out/* && rmdir out
17411 cd ..
17412 $RM -r conftest
17413 $RM conftest*
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17417 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17422 hard_links="nottested"
17423 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17424 # do not overwrite the value of need_locks provided by the user
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17426 $as_echo_n "checking if we can lock with hard links... " >&6; }
17427 hard_links=yes
17428 $RM conftest*
17429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17430 touch conftest.a
17431 ln conftest.a conftest.b 2>&5 || hard_links=no
17432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17434 $as_echo "$hard_links" >&6; }
17435 if test "$hard_links" = no; then
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17437 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17438 need_locks=warn
17440 else
17441 need_locks=no
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17450 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17452 runpath_var=
17453 allow_undefined_flag=
17454 always_export_symbols=no
17455 archive_cmds=
17456 archive_expsym_cmds=
17457 compiler_needs_object=no
17458 enable_shared_with_static_runtimes=no
17459 export_dynamic_flag_spec=
17460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17461 hardcode_automatic=no
17462 hardcode_direct=no
17463 hardcode_direct_absolute=no
17464 hardcode_libdir_flag_spec=
17465 hardcode_libdir_flag_spec_ld=
17466 hardcode_libdir_separator=
17467 hardcode_minus_L=no
17468 hardcode_shlibpath_var=unsupported
17469 inherit_rpath=no
17470 link_all_deplibs=unknown
17471 module_cmds=
17472 module_expsym_cmds=
17473 old_archive_from_new_cmds=
17474 old_archive_from_expsyms_cmds=
17475 thread_safe_flag_spec=
17476 whole_archive_flag_spec=
17477 # include_expsyms should be a list of space-separated symbols to be *always*
17478 # included in the symbol list
17479 include_expsyms=
17480 # exclude_expsyms can be an extended regexp of symbols to exclude
17481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483 # as well as any symbol that contains `d'.
17484 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486 # platforms (ab)use it in PIC code, but their linkers get confused if
17487 # the symbol is explicitly referenced. Since portable code cannot
17488 # rely on this symbol name, it's probably fine to never include it in
17489 # preloaded symbol tables.
17490 # Exclude shared library initialization/finalization symbols.
17491 extract_expsyms_cmds=
17493 case $host_os in
17494 cygwin* | mingw* | pw32* | cegcc*)
17495 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17496 # When not using gcc, we currently assume that we are using
17497 # Microsoft Visual C++.
17498 if test "$GCC" != yes; then
17499 with_gnu_ld=no
17502 interix*)
17503 # we just hope/assume this is gcc and not c89 (= MSVC++)
17504 with_gnu_ld=yes
17506 openbsd*)
17507 with_gnu_ld=no
17509 esac
17511 ld_shlibs=yes
17513 # On some targets, GNU ld is compatible enough with the native linker
17514 # that we're better off using the native interface for both.
17515 lt_use_gnu_ld_interface=no
17516 if test "$with_gnu_ld" = yes; then
17517 case $host_os in
17518 aix*)
17519 # The AIX port of GNU ld has always aspired to compatibility
17520 # with the native linker. However, as the warning in the GNU ld
17521 # block says, versions before 2.19.5* couldn't really create working
17522 # shared libraries, regardless of the interface used.
17523 case `$LD -v 2>&1` in
17524 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17525 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17526 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17528 lt_use_gnu_ld_interface=yes
17530 esac
17533 lt_use_gnu_ld_interface=yes
17535 esac
17538 if test "$lt_use_gnu_ld_interface" = yes; then
17539 # If archive_cmds runs LD, not CC, wlarc should be empty
17540 wlarc='${wl}'
17542 # Set some defaults for GNU ld with shared library support. These
17543 # are reset later if shared libraries are not supported. Putting them
17544 # here allows them to be overridden if necessary.
17545 runpath_var=LD_RUN_PATH
17546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17547 export_dynamic_flag_spec='${wl}--export-dynamic'
17548 # ancient GNU ld didn't support --whole-archive et. al.
17549 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17550 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17551 else
17552 whole_archive_flag_spec=
17554 supports_anon_versioning=no
17555 case `$LD -v 2>&1` in
17556 *GNU\ gold*) supports_anon_versioning=yes ;;
17557 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17558 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17559 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17560 *\ 2.11.*) ;; # other 2.11 versions
17561 *) supports_anon_versioning=yes ;;
17562 esac
17564 # See if GNU ld supports shared libraries.
17565 case $host_os in
17566 aix[3-9]*)
17567 # On AIX/PPC, the GNU linker is very broken
17568 if test "$host_cpu" != ia64; then
17569 ld_shlibs=no
17570 cat <<_LT_EOF 1>&2
17572 *** Warning: the GNU linker, at least up to release 2.19, is reported
17573 *** to be unable to reliably create shared libraries on AIX.
17574 *** Therefore, libtool is disabling shared libraries support. If you
17575 *** really care for shared libraries, you may want to install binutils
17576 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17577 *** You will then need to restart the configuration process.
17579 _LT_EOF
17583 amigaos*)
17584 case $host_cpu in
17585 powerpc)
17586 # see comment about AmigaOS4 .so support
17587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17588 archive_expsym_cmds=''
17590 m68k)
17591 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)'
17592 hardcode_libdir_flag_spec='-L$libdir'
17593 hardcode_minus_L=yes
17595 esac
17598 beos*)
17599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17600 allow_undefined_flag=unsupported
17601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17602 # support --undefined. This deserves some investigation. FIXME
17603 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604 else
17605 ld_shlibs=no
17609 cygwin* | mingw* | pw32* | cegcc*)
17610 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17611 # as there is no search path for DLLs.
17612 hardcode_libdir_flag_spec='-L$libdir'
17613 export_dynamic_flag_spec='${wl}--export-all-symbols'
17614 allow_undefined_flag=unsupported
17615 always_export_symbols=no
17616 enable_shared_with_static_runtimes=yes
17617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17619 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17621 # If the export-symbols file already is a .def file (1st line
17622 # is EXPORTS), use it as is; otherwise, prepend...
17623 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17624 cp $export_symbols $output_objdir/$soname.def;
17625 else
17626 echo EXPORTS > $output_objdir/$soname.def;
17627 cat $export_symbols >> $output_objdir/$soname.def;
17629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17630 else
17631 ld_shlibs=no
17635 haiku*)
17636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17637 link_all_deplibs=yes
17640 interix[3-9]*)
17641 hardcode_direct=no
17642 hardcode_shlibpath_var=no
17643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17644 export_dynamic_flag_spec='${wl}-E'
17645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17646 # Instead, shared libraries are loaded at an image base (0x10000000 by
17647 # default) and relocated if they conflict, which is a slow very memory
17648 # consuming and fragmenting process. To avoid this, we pick a random,
17649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17652 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'
17655 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17656 tmp_diet=no
17657 if test "$host_os" = linux-dietlibc; then
17658 case $cc_basename in
17659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17660 esac
17662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17663 && test "$tmp_diet" = no
17664 then
17665 tmp_addflag=' $pic_flag'
17666 tmp_sharedflag='-shared'
17667 case $cc_basename,$host_cpu in
17668 pgcc*) # Portland Group C compiler
17669 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'
17670 tmp_addflag=' $pic_flag'
17672 pgf77* | pgf90* | pgf95* | pgfortran*)
17673 # Portland Group f77 and f90 compilers
17674 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'
17675 tmp_addflag=' $pic_flag -Mnomain' ;;
17676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17677 tmp_addflag=' -i_dynamic' ;;
17678 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17679 tmp_addflag=' -i_dynamic -nofor_main' ;;
17680 ifc* | ifort*) # Intel Fortran compiler
17681 tmp_addflag=' -nofor_main' ;;
17682 lf95*) # Lahey Fortran 8.1
17683 whole_archive_flag_spec=
17684 tmp_sharedflag='--shared' ;;
17685 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17686 tmp_sharedflag='-qmkshrobj'
17687 tmp_addflag= ;;
17688 nvcc*) # Cuda Compiler Driver 2.2
17689 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'
17690 compiler_needs_object=yes
17692 esac
17693 case `$CC -V 2>&1 | sed 5q` in
17694 *Sun\ C*) # Sun C 5.9
17695 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'
17696 compiler_needs_object=yes
17697 tmp_sharedflag='-G' ;;
17698 *Sun\ F*) # Sun Fortran 8.3
17699 tmp_sharedflag='-G' ;;
17700 esac
17701 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17703 if test "x$supports_anon_versioning" = xyes; then
17704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17706 echo "local: *; };" >> $output_objdir/$libname.ver~
17707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17710 case $cc_basename in
17711 xlf* | bgf* | bgxlf* | mpixlf*)
17712 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17713 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17714 hardcode_libdir_flag_spec=
17715 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17716 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17717 if test "x$supports_anon_versioning" = xyes; then
17718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17720 echo "local: *; };" >> $output_objdir/$libname.ver~
17721 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17724 esac
17725 else
17726 ld_shlibs=no
17730 netbsd*)
17731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17733 wlarc=
17734 else
17735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17740 solaris*)
17741 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17742 ld_shlibs=no
17743 cat <<_LT_EOF 1>&2
17745 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17746 *** create shared libraries on Solaris systems. Therefore, libtool
17747 *** is disabling shared libraries support. We urge you to upgrade GNU
17748 *** binutils to release 2.9.1 or newer. Another option is to modify
17749 *** your PATH or compiler configuration so that the native linker is
17750 *** used, and then restart.
17752 _LT_EOF
17753 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17756 else
17757 ld_shlibs=no
17761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17762 case `$LD -v 2>&1` in
17763 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17764 ld_shlibs=no
17765 cat <<_LT_EOF 1>&2
17767 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17768 *** reliably create shared libraries on SCO systems. Therefore, libtool
17769 *** is disabling shared libraries support. We urge you to upgrade GNU
17770 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17771 *** your PATH or compiler configuration so that the native linker is
17772 *** used, and then restart.
17774 _LT_EOF
17777 # For security reasons, it is highly recommended that you always
17778 # use absolute paths for naming shared libraries, and exclude the
17779 # DT_RUNPATH tag from executables and libraries. But doing so
17780 # requires that you compile everything twice, which is a pain.
17781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17785 else
17786 ld_shlibs=no
17789 esac
17792 sunos4*)
17793 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794 wlarc=
17795 hardcode_direct=yes
17796 hardcode_shlibpath_var=no
17800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17803 else
17804 ld_shlibs=no
17807 esac
17809 if test "$ld_shlibs" = no; then
17810 runpath_var=
17811 hardcode_libdir_flag_spec=
17812 export_dynamic_flag_spec=
17813 whole_archive_flag_spec=
17815 else
17816 # PORTME fill in a description of your system's linker (not GNU ld)
17817 case $host_os in
17818 aix3*)
17819 allow_undefined_flag=unsupported
17820 always_export_symbols=yes
17821 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'
17822 # Note: this linker hardcodes the directories in LIBPATH if there
17823 # are no directories specified by -L.
17824 hardcode_minus_L=yes
17825 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17826 # Neither direct hardcoding nor static linking is supported with a
17827 # broken collect2.
17828 hardcode_direct=unsupported
17832 aix[4-9]*)
17833 if test "$host_cpu" = ia64; then
17834 # On IA64, the linker does run time linking by default, so we don't
17835 # have to do anything special.
17836 aix_use_runtimelinking=no
17837 exp_sym_flag='-Bexport'
17838 no_entry_flag=""
17839 else
17840 # If we're using GNU nm, then we don't want the "-C" option.
17841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17842 # Also, AIX nm treats weak defined symbols like other global
17843 # defined symbols, whereas GNU nm marks them as "W".
17844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17845 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'
17846 else
17847 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'
17849 aix_use_runtimelinking=no
17851 # Test if we are trying to use run time linking or normal
17852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17853 # need to do runtime linking.
17854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17855 for ld_flag in $LDFLAGS; do
17856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17857 aix_use_runtimelinking=yes
17858 break
17860 done
17862 esac
17864 exp_sym_flag='-bexport'
17865 no_entry_flag='-bnoentry'
17868 # When large executables or shared objects are built, AIX ld can
17869 # have problems creating the table of contents. If linking a library
17870 # or program results in "error TOC overflow" add -mminimal-toc to
17871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17874 archive_cmds=''
17875 hardcode_direct=yes
17876 hardcode_direct_absolute=yes
17877 hardcode_libdir_separator=':'
17878 link_all_deplibs=yes
17879 file_list_spec='${wl}-f,'
17881 if test "$GCC" = yes; then
17882 case $host_os in aix4.[012]|aix4.[012].*)
17883 # We only want to do this on AIX 4.2 and lower, the check
17884 # below for broken collect2 doesn't work under 4.3+
17885 collect2name=`${CC} -print-prog-name=collect2`
17886 if test -f "$collect2name" &&
17887 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17888 then
17889 # We have reworked collect2
17891 else
17892 # We have old collect2
17893 hardcode_direct=unsupported
17894 # It fails to find uninstalled libraries when the uninstalled
17895 # path is not listed in the libpath. Setting hardcode_minus_L
17896 # to unsupported forces relinking
17897 hardcode_minus_L=yes
17898 hardcode_libdir_flag_spec='-L$libdir'
17899 hardcode_libdir_separator=
17902 esac
17903 shared_flag='-shared'
17904 if test "$aix_use_runtimelinking" = yes; then
17905 shared_flag="$shared_flag "'${wl}-G'
17907 else
17908 # not using gcc
17909 if test "$host_cpu" = ia64; then
17910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17911 # chokes on -Wl,-G. The following line is correct:
17912 shared_flag='-G'
17913 else
17914 if test "$aix_use_runtimelinking" = yes; then
17915 shared_flag='${wl}-G'
17916 else
17917 shared_flag='${wl}-bM:SRE'
17922 export_dynamic_flag_spec='${wl}-bexpall'
17923 # It seems that -bexpall does not export symbols beginning with
17924 # underscore (_), so it is better to generate a list of symbols to export.
17925 always_export_symbols=yes
17926 if test "$aix_use_runtimelinking" = yes; then
17927 # Warning - without using the other runtime loading flags (-brtl),
17928 # -berok will link without error, but may produce a broken library.
17929 allow_undefined_flag='-berok'
17930 # Determine the default libpath from the value encoded in an
17931 # empty executable.
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17936 main ()
17940 return 0;
17942 _ACEOF
17943 if ac_fn_c_try_link "$LINENO"; then :
17945 lt_aix_libpath_sed='
17946 /Import File Strings/,/^$/ {
17947 /^0/ {
17948 s/^0 *\(.*\)$/\1/
17952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 # Check for a 64-bit object if we didn't find anything.
17954 if test -z "$aix_libpath"; then
17955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17958 rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17963 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"
17964 else
17965 if test "$host_cpu" = ia64; then
17966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17967 allow_undefined_flag="-z nodefs"
17968 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"
17969 else
17970 # Determine the default libpath from the value encoded in an
17971 # empty executable.
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17976 main ()
17980 return 0;
17982 _ACEOF
17983 if ac_fn_c_try_link "$LINENO"; then :
17985 lt_aix_libpath_sed='
17986 /Import File Strings/,/^$/ {
17987 /^0/ {
17988 s/^0 *\(.*\)$/\1/
17992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17993 # Check for a 64-bit object if we didn't find anything.
17994 if test -z "$aix_libpath"; then
17995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 rm -f core conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18003 # Warning - without using the other run time loading flags,
18004 # -berok will link without error, but may produce a broken library.
18005 no_undefined_flag=' ${wl}-bernotok'
18006 allow_undefined_flag=' ${wl}-berok'
18007 if test "$with_gnu_ld" = yes; then
18008 # We only use this code for GNU lds that support --whole-archive.
18009 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18010 else
18011 # Exported symbols can be pulled into shared objects from archives
18012 whole_archive_flag_spec='$convenience'
18014 archive_cmds_need_lc=yes
18015 # This is similar to how AIX traditionally builds its shared libraries.
18016 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'
18021 amigaos*)
18022 case $host_cpu in
18023 powerpc)
18024 # see comment about AmigaOS4 .so support
18025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18026 archive_expsym_cmds=''
18028 m68k)
18029 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)'
18030 hardcode_libdir_flag_spec='-L$libdir'
18031 hardcode_minus_L=yes
18033 esac
18036 bsdi[45]*)
18037 export_dynamic_flag_spec=-rdynamic
18040 cygwin* | mingw* | pw32* | cegcc*)
18041 # When not using gcc, we currently assume that we are using
18042 # Microsoft Visual C++.
18043 # hardcode_libdir_flag_spec is actually meaningless, as there is
18044 # no search path for DLLs.
18045 hardcode_libdir_flag_spec=' '
18046 allow_undefined_flag=unsupported
18047 # Tell ltmain to make .lib files, not .a files.
18048 libext=lib
18049 # Tell ltmain to make .dll files, not .so files.
18050 shrext_cmds=".dll"
18051 # FIXME: Setting linknames here is a bad hack.
18052 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18053 # The linker will automatically build a .lib file if we build a DLL.
18054 old_archive_from_new_cmds='true'
18055 # FIXME: Should let the user specify the lib program.
18056 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18057 fix_srcfile_path='`cygpath -w "$srcfile"`'
18058 enable_shared_with_static_runtimes=yes
18061 darwin* | rhapsody*)
18064 archive_cmds_need_lc=no
18065 hardcode_direct=no
18066 hardcode_automatic=yes
18067 hardcode_shlibpath_var=unsupported
18068 if test "$lt_cv_ld_force_load" = "yes"; then
18069 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\"`'
18070 else
18071 whole_archive_flag_spec=''
18073 link_all_deplibs=yes
18074 allow_undefined_flag="$_lt_dar_allow_undefined"
18075 case $cc_basename in
18076 ifort*) _lt_dar_can_shared=yes ;;
18077 *) _lt_dar_can_shared=$GCC ;;
18078 esac
18079 if test "$_lt_dar_can_shared" = "yes"; then
18080 output_verbose_link_cmd=func_echo_all
18081 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18082 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18083 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}"
18084 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}"
18086 else
18087 ld_shlibs=no
18092 dgux*)
18093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094 hardcode_libdir_flag_spec='-L$libdir'
18095 hardcode_shlibpath_var=no
18098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18099 # support. Future versions do this automatically, but an explicit c++rt0.o
18100 # does not break anything, and helps significantly (at the cost of a little
18101 # extra space).
18102 freebsd2.2*)
18103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18104 hardcode_libdir_flag_spec='-R$libdir'
18105 hardcode_direct=yes
18106 hardcode_shlibpath_var=no
18109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18110 freebsd2.*)
18111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_direct=yes
18113 hardcode_minus_L=yes
18114 hardcode_shlibpath_var=no
18117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18118 freebsd* | dragonfly*)
18119 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18120 hardcode_libdir_flag_spec='-R$libdir'
18121 hardcode_direct=yes
18122 hardcode_shlibpath_var=no
18125 hpux9*)
18126 if test "$GCC" = yes; then
18127 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'
18128 else
18129 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'
18131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18132 hardcode_libdir_separator=:
18133 hardcode_direct=yes
18135 # hardcode_minus_L: Not really in the search PATH,
18136 # but as the default location of the library.
18137 hardcode_minus_L=yes
18138 export_dynamic_flag_spec='${wl}-E'
18141 hpux10*)
18142 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18143 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18144 else
18145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18147 if test "$with_gnu_ld" = no; then
18148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18149 hardcode_libdir_flag_spec_ld='+b $libdir'
18150 hardcode_libdir_separator=:
18151 hardcode_direct=yes
18152 hardcode_direct_absolute=yes
18153 export_dynamic_flag_spec='${wl}-E'
18154 # hardcode_minus_L: Not really in the search PATH,
18155 # but as the default location of the library.
18156 hardcode_minus_L=yes
18160 hpux11*)
18161 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18162 case $host_cpu in
18163 hppa*64*)
18164 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18166 ia64*)
18167 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18170 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18172 esac
18173 else
18174 case $host_cpu in
18175 hppa*64*)
18176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18178 ia64*)
18179 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18183 # Older versions of the 11.00 compiler do not understand -b yet
18184 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18186 $as_echo_n "checking if $CC understands -b... " >&6; }
18187 if ${lt_cv_prog_compiler__b+:} false; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 lt_cv_prog_compiler__b=no
18191 save_LDFLAGS="$LDFLAGS"
18192 LDFLAGS="$LDFLAGS -b"
18193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18195 # The linker can only warn and ignore the option if not recognized
18196 # So say no if there are warnings
18197 if test -s conftest.err; then
18198 # Append any errors to the config.log.
18199 cat conftest.err 1>&5
18200 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18202 if diff conftest.exp conftest.er2 >/dev/null; then
18203 lt_cv_prog_compiler__b=yes
18205 else
18206 lt_cv_prog_compiler__b=yes
18209 $RM -r conftest*
18210 LDFLAGS="$save_LDFLAGS"
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18214 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18216 if test x"$lt_cv_prog_compiler__b" = xyes; then
18217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18218 else
18219 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18223 esac
18225 if test "$with_gnu_ld" = no; then
18226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18227 hardcode_libdir_separator=:
18229 case $host_cpu in
18230 hppa*64*|ia64*)
18231 hardcode_direct=no
18232 hardcode_shlibpath_var=no
18235 hardcode_direct=yes
18236 hardcode_direct_absolute=yes
18237 export_dynamic_flag_spec='${wl}-E'
18239 # hardcode_minus_L: Not really in the search PATH,
18240 # but as the default location of the library.
18241 hardcode_minus_L=yes
18243 esac
18247 irix5* | irix6* | nonstopux*)
18248 if test "$GCC" = yes; then
18249 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'
18250 # Try to use the -exported_symbol ld option, if it does not
18251 # work, assume that -exports_file does not work either and
18252 # implicitly export all symbols.
18253 save_LDFLAGS="$LDFLAGS"
18254 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 int foo(void) {}
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260 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'
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LDFLAGS="$save_LDFLAGS"
18266 else
18267 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'
18268 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'
18270 archive_cmds_need_lc='no'
18271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18272 hardcode_libdir_separator=:
18273 inherit_rpath=yes
18274 link_all_deplibs=yes
18277 netbsd*)
18278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18280 else
18281 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18283 hardcode_libdir_flag_spec='-R$libdir'
18284 hardcode_direct=yes
18285 hardcode_shlibpath_var=no
18288 newsos6)
18289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_direct=yes
18291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18292 hardcode_libdir_separator=:
18293 hardcode_shlibpath_var=no
18296 *nto* | *qnx*)
18299 openbsd*)
18300 if test -f /usr/libexec/ld.so; then
18301 hardcode_direct=yes
18302 hardcode_shlibpath_var=no
18303 hardcode_direct_absolute=yes
18304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18308 export_dynamic_flag_spec='${wl}-E'
18309 else
18310 case $host_os in
18311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18313 hardcode_libdir_flag_spec='-R$libdir'
18316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18319 esac
18321 else
18322 ld_shlibs=no
18326 os2*)
18327 hardcode_libdir_flag_spec='-L$libdir'
18328 hardcode_minus_L=yes
18329 allow_undefined_flag=unsupported
18330 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'
18331 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18334 osf3*)
18335 if test "$GCC" = yes; then
18336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18337 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'
18338 else
18339 allow_undefined_flag=' -expect_unresolved \*'
18340 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'
18342 archive_cmds_need_lc='no'
18343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18344 hardcode_libdir_separator=:
18347 osf4* | osf5*) # as osf3* with the addition of -msym flag
18348 if test "$GCC" = yes; then
18349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18350 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'
18351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18352 else
18353 allow_undefined_flag=' -expect_unresolved \*'
18354 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'
18355 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~
18356 $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'
18358 # Both c and cxx compiler support -rpath directly
18359 hardcode_libdir_flag_spec='-rpath $libdir'
18361 archive_cmds_need_lc='no'
18362 hardcode_libdir_separator=:
18365 solaris*)
18366 no_undefined_flag=' -z defs'
18367 if test "$GCC" = yes; then
18368 wlarc='${wl}'
18369 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18371 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18372 else
18373 case `$CC -V 2>&1` in
18374 *"Compilers 5.0"*)
18375 wlarc=''
18376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18381 wlarc='${wl}'
18382 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18384 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18386 esac
18388 hardcode_libdir_flag_spec='-R$libdir'
18389 hardcode_shlibpath_var=no
18390 case $host_os in
18391 solaris2.[0-5] | solaris2.[0-5].*) ;;
18393 # The compiler driver will combine and reorder linker options,
18394 # but understands `-z linker_flag'. GCC discards it without `$wl',
18395 # but is careful enough not to reorder.
18396 # Supported since Solaris 2.6 (maybe 2.5.1?)
18397 if test "$GCC" = yes; then
18398 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18399 else
18400 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18403 esac
18404 link_all_deplibs=yes
18407 sunos4*)
18408 if test "x$host_vendor" = xsequent; then
18409 # Use $CC to link under sequent, because it throws in some extra .o
18410 # files that make .init and .fini sections work.
18411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18412 else
18413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18415 hardcode_libdir_flag_spec='-L$libdir'
18416 hardcode_direct=yes
18417 hardcode_minus_L=yes
18418 hardcode_shlibpath_var=no
18421 sysv4)
18422 case $host_vendor in
18423 sni)
18424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18425 hardcode_direct=yes # is this really true???
18427 siemens)
18428 ## LD is ld it makes a PLAMLIB
18429 ## CC just makes a GrossModule.
18430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18431 reload_cmds='$CC -r -o $output$reload_objs'
18432 hardcode_direct=no
18434 motorola)
18435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18438 esac
18439 runpath_var='LD_RUN_PATH'
18440 hardcode_shlibpath_var=no
18443 sysv4.3*)
18444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18445 hardcode_shlibpath_var=no
18446 export_dynamic_flag_spec='-Bexport'
18449 sysv4*MP*)
18450 if test -d /usr/nec; then
18451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18452 hardcode_shlibpath_var=no
18453 runpath_var=LD_RUN_PATH
18454 hardcode_runpath_var=yes
18455 ld_shlibs=yes
18459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18460 no_undefined_flag='${wl}-z,text'
18461 archive_cmds_need_lc=no
18462 hardcode_shlibpath_var=no
18463 runpath_var='LD_RUN_PATH'
18465 if test "$GCC" = yes; then
18466 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18467 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18468 else
18469 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18470 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18474 sysv5* | sco3.2v5* | sco5v6*)
18475 # Note: We can NOT use -z defs as we might desire, because we do not
18476 # link with -lc, and that would cause any symbols used from libc to
18477 # always be unresolved, which means just about no library would
18478 # ever link correctly. If we're not using GNU ld we use -z text
18479 # though, which does catch some bad symbols but isn't as heavy-handed
18480 # as -z defs.
18481 no_undefined_flag='${wl}-z,text'
18482 allow_undefined_flag='${wl}-z,nodefs'
18483 archive_cmds_need_lc=no
18484 hardcode_shlibpath_var=no
18485 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18486 hardcode_libdir_separator=':'
18487 link_all_deplibs=yes
18488 export_dynamic_flag_spec='${wl}-Bexport'
18489 runpath_var='LD_RUN_PATH'
18491 if test "$GCC" = yes; then
18492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18494 else
18495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18500 uts4*)
18501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18502 hardcode_libdir_flag_spec='-L$libdir'
18503 hardcode_shlibpath_var=no
18507 ld_shlibs=no
18509 esac
18511 if test x$host_vendor = xsni; then
18512 case $host in
18513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18514 export_dynamic_flag_spec='${wl}-Blargedynsym'
18516 esac
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18521 $as_echo "$ld_shlibs" >&6; }
18522 test "$ld_shlibs" = no && can_build_shared=no
18524 with_gnu_ld=$with_gnu_ld
18541 # Do we need to explicitly link libc?
18543 case "x$archive_cmds_need_lc" in
18544 x|xyes)
18545 # Assume -lc should be added
18546 archive_cmds_need_lc=yes
18548 if test "$enable_shared" = yes && test "$GCC" = yes; then
18549 case $archive_cmds in
18550 *'~'*)
18551 # FIXME: we may have to deal with multi-command sequences.
18553 '$CC '*)
18554 # Test whether the compiler implicitly links with -lc since on some
18555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18556 # to ld, don't add -lc before -lgcc.
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18559 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18562 $RM conftest*
18563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18566 (eval $ac_compile) 2>&5
18567 ac_status=$?
18568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569 test $ac_status = 0; } 2>conftest.err; then
18570 soname=conftest
18571 lib=conftest
18572 libobjs=conftest.$ac_objext
18573 deplibs=
18574 wl=$lt_prog_compiler_wl
18575 pic_flag=$lt_prog_compiler_pic
18576 compiler_flags=-v
18577 linker_flags=-v
18578 verstring=
18579 output_objdir=.
18580 libname=conftest
18581 lt_save_allow_undefined_flag=$allow_undefined_flag
18582 allow_undefined_flag=
18583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18584 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18585 ac_status=$?
18586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; }
18588 then
18589 lt_cv_archive_cmds_need_lc=no
18590 else
18591 lt_cv_archive_cmds_need_lc=yes
18593 allow_undefined_flag=$lt_save_allow_undefined_flag
18594 else
18595 cat conftest.err 1>&5
18597 $RM conftest*
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18601 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18602 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18604 esac
18607 esac
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18766 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18768 if test "$GCC" = yes; then
18769 case $host_os in
18770 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18771 *) lt_awk_arg="/^libraries:/" ;;
18772 esac
18773 case $host_os in
18774 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18775 *) lt_sed_strip_eq="s,=/,/,g" ;;
18776 esac
18777 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18778 case $lt_search_path_spec in
18779 *\;*)
18780 # if the path contains ";" then we assume it to be the separator
18781 # otherwise default to the standard path separator (i.e. ":") - it is
18782 # assumed that no part of a normal pathname contains ";" but that should
18783 # okay in the real world where ";" in dirpaths is itself problematic.
18784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18789 esac
18790 # Ok, now we have the path, separated by spaces, we can step through it
18791 # and add multilib dir if necessary.
18792 lt_tmp_lt_search_path_spec=
18793 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18794 for lt_sys_path in $lt_search_path_spec; do
18795 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18797 else
18798 test -d "$lt_sys_path" && \
18799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18801 done
18802 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18803 BEGIN {RS=" "; FS="/|\n";} {
18804 lt_foo="";
18805 lt_count=0;
18806 for (lt_i = NF; lt_i > 0; lt_i--) {
18807 if ($lt_i != "" && $lt_i != ".") {
18808 if ($lt_i == "..") {
18809 lt_count++;
18810 } else {
18811 if (lt_count == 0) {
18812 lt_foo="/" $lt_i lt_foo;
18813 } else {
18814 lt_count--;
18819 if (lt_foo != "") { lt_freq[lt_foo]++; }
18820 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18822 # AWK program above erroneously prepends '/' to C:/dos/paths
18823 # for these hosts.
18824 case $host_os in
18825 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18826 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18827 esac
18828 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18829 else
18830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18832 library_names_spec=
18833 libname_spec='lib$name'
18834 soname_spec=
18835 shrext_cmds=".so"
18836 postinstall_cmds=
18837 postuninstall_cmds=
18838 finish_cmds=
18839 finish_eval=
18840 shlibpath_var=
18841 shlibpath_overrides_runpath=unknown
18842 version_type=none
18843 dynamic_linker="$host_os ld.so"
18844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18845 need_lib_prefix=unknown
18846 hardcode_into_libs=no
18848 # when you set need_version to no, make sure it does not cause -set_version
18849 # flags to be left without arguments
18850 need_version=unknown
18852 case $host_os in
18853 aix3*)
18854 version_type=linux
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18856 shlibpath_var=LIBPATH
18858 # AIX 3 has no versioning support, so we append a major version to the name.
18859 soname_spec='${libname}${release}${shared_ext}$major'
18862 aix[4-9]*)
18863 version_type=linux
18864 need_lib_prefix=no
18865 need_version=no
18866 hardcode_into_libs=yes
18867 if test "$host_cpu" = ia64; then
18868 # AIX 5 supports IA64
18869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 else
18872 # With GCC up to 2.95.x, collect2 would create an import file
18873 # for dependence libraries. The import file would start with
18874 # the line `#! .'. This would cause the generated library to
18875 # depend on `.', always an invalid library. This was fixed in
18876 # development snapshots of GCC prior to 3.0.
18877 case $host_os in
18878 aix4 | aix4.[01] | aix4.[01].*)
18879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18880 echo ' yes '
18881 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18883 else
18884 can_build_shared=no
18887 esac
18888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18889 # soname into executable. Probably we can add versioning support to
18890 # collect2, so additional links can be useful in future.
18891 if test "$aix_use_runtimelinking" = yes; then
18892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18893 # instead of lib<name>.a to let people know that these are not
18894 # typical AIX shared libraries.
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896 else
18897 # We preserve .a as extension for shared libraries through AIX4.2
18898 # and later when we are not doing run time linking.
18899 library_names_spec='${libname}${release}.a $libname.a'
18900 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LIBPATH
18906 amigaos*)
18907 case $host_cpu in
18908 powerpc)
18909 # Since July 2007 AmigaOS4 officially supports .so libraries.
18910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913 m68k)
18914 library_names_spec='$libname.ixlibrary $libname.a'
18915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18916 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'
18918 esac
18921 beos*)
18922 library_names_spec='${libname}${shared_ext}'
18923 dynamic_linker="$host_os ld.so"
18924 shlibpath_var=LIBRARY_PATH
18927 bsdi[45]*)
18928 version_type=linux
18929 need_version=no
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931 soname_spec='${libname}${release}${shared_ext}$major'
18932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18936 # the default ld.so.conf also contains /usr/contrib/lib and
18937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18938 # libtool to hard-code these into programs
18941 cygwin* | mingw* | pw32* | cegcc*)
18942 version_type=windows
18943 shrext_cmds=".dll"
18944 need_version=no
18945 need_lib_prefix=no
18947 case $GCC,$host_os in
18948 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18949 library_names_spec='$libname.dll.a'
18950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18951 postinstall_cmds='base_file=`basename \${file}`~
18952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18953 dldir=$destdir/`dirname \$dlpath`~
18954 test -d \$dldir || mkdir -p \$dldir~
18955 $install_prog $dir/$dlname \$dldir/$dlname~
18956 chmod a+x \$dldir/$dlname~
18957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18961 dlpath=$dir/\$dldll~
18962 $RM \$dlpath'
18963 shlibpath_overrides_runpath=yes
18965 case $host_os in
18966 cygwin*)
18967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18970 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18972 mingw* | cegcc*)
18973 # MinGW DLLs use traditional 'lib' prefix
18974 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18976 pw32*)
18977 # pw32 DLLs use 'pw' prefix rather than 'lib'
18978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18980 esac
18984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18986 esac
18987 dynamic_linker='Win32 ld.exe'
18988 # FIXME: first we should search . and the directory the executable is in
18989 shlibpath_var=PATH
18992 darwin* | rhapsody*)
18993 dynamic_linker="$host_os dyld"
18994 version_type=darwin
18995 need_lib_prefix=no
18996 need_version=no
18997 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18998 soname_spec='${libname}${release}${major}$shared_ext'
18999 shlibpath_overrides_runpath=yes
19000 shlibpath_var=DYLD_LIBRARY_PATH
19001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19003 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19007 dgux*)
19008 version_type=linux
19009 need_lib_prefix=no
19010 need_version=no
19011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19012 soname_spec='${libname}${release}${shared_ext}$major'
19013 shlibpath_var=LD_LIBRARY_PATH
19016 freebsd* | dragonfly*)
19017 # DragonFly does not have aout. When/if they implement a new
19018 # versioning mechanism, adjust this.
19019 if test -x /usr/bin/objformat; then
19020 objformat=`/usr/bin/objformat`
19021 else
19022 case $host_os in
19023 freebsd[23].*) objformat=aout ;;
19024 *) objformat=elf ;;
19025 esac
19027 version_type=freebsd-$objformat
19028 case $version_type in
19029 freebsd-elf*)
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19031 need_version=no
19032 need_lib_prefix=no
19034 freebsd-*)
19035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19036 need_version=yes
19038 esac
19039 shlibpath_var=LD_LIBRARY_PATH
19040 case $host_os in
19041 freebsd2.*)
19042 shlibpath_overrides_runpath=yes
19044 freebsd3.[01]* | freebsdelf3.[01]*)
19045 shlibpath_overrides_runpath=yes
19046 hardcode_into_libs=yes
19048 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19049 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19050 shlibpath_overrides_runpath=no
19051 hardcode_into_libs=yes
19053 *) # from 4.6 on, and DragonFly
19054 shlibpath_overrides_runpath=yes
19055 hardcode_into_libs=yes
19057 esac
19060 haiku*)
19061 version_type=linux
19062 need_lib_prefix=no
19063 need_version=no
19064 dynamic_linker="$host_os runtime_loader"
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19066 soname_spec='${libname}${release}${shared_ext}$major'
19067 shlibpath_var=LIBRARY_PATH
19068 shlibpath_overrides_runpath=yes
19069 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19070 hardcode_into_libs=yes
19073 hpux9* | hpux10* | hpux11*)
19074 # Give a soname corresponding to the major version so that dld.sl refuses to
19075 # link against other versions.
19076 version_type=sunos
19077 need_lib_prefix=no
19078 need_version=no
19079 case $host_cpu in
19080 ia64*)
19081 shrext_cmds='.so'
19082 hardcode_into_libs=yes
19083 dynamic_linker="$host_os dld.so"
19084 shlibpath_var=LD_LIBRARY_PATH
19085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087 soname_spec='${libname}${release}${shared_ext}$major'
19088 if test "X$HPUX_IA64_MODE" = X32; then
19089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19090 else
19091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19095 hppa*64*)
19096 shrext_cmds='.sl'
19097 hardcode_into_libs=yes
19098 dynamic_linker="$host_os dld.sl"
19099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19107 shrext_cmds='.sl'
19108 dynamic_linker="$host_os dld.sl"
19109 shlibpath_var=SHLIB_PATH
19110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112 soname_spec='${libname}${release}${shared_ext}$major'
19114 esac
19115 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19116 postinstall_cmds='chmod 555 $lib'
19117 # or fails outright, so override atomically:
19118 install_override_mode=555
19121 interix[3-9]*)
19122 version_type=linux
19123 need_lib_prefix=no
19124 need_version=no
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19128 shlibpath_var=LD_LIBRARY_PATH
19129 shlibpath_overrides_runpath=no
19130 hardcode_into_libs=yes
19133 irix5* | irix6* | nonstopux*)
19134 case $host_os in
19135 nonstopux*) version_type=nonstopux ;;
19137 if test "$lt_cv_prog_gnu_ld" = yes; then
19138 version_type=linux
19139 else
19140 version_type=irix
19141 fi ;;
19142 esac
19143 need_lib_prefix=no
19144 need_version=no
19145 soname_spec='${libname}${release}${shared_ext}$major'
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19147 case $host_os in
19148 irix5* | nonstopux*)
19149 libsuff= shlibsuff=
19152 case $LD in # libtool.m4 will add one of these switches to LD
19153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19154 libsuff= shlibsuff= libmagic=32-bit;;
19155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19156 libsuff=32 shlibsuff=N32 libmagic=N32;;
19157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19159 *) libsuff= shlibsuff= libmagic=never-match;;
19160 esac
19162 esac
19163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19164 shlibpath_overrides_runpath=no
19165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19167 hardcode_into_libs=yes
19170 # No shared lib support for Linux oldld, aout, or coff.
19171 linux*oldld* | linux*aout* | linux*coff*)
19172 dynamic_linker=no
19175 # This must be Linux ELF.
19177 # uclinux* changes (here and below) have been submitted to the libtool
19178 # project, but have not yet been accepted: they are GCC-local changes
19179 # for the time being. (See
19180 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19181 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19182 version_type=linux
19183 need_lib_prefix=no
19184 need_version=no
19185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19186 soname_spec='${libname}${release}${shared_ext}$major'
19187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 shlibpath_overrides_runpath=no
19191 # Some binutils ld are patched to set DT_RUNPATH
19192 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19193 $as_echo_n "(cached) " >&6
19194 else
19195 lt_cv_shlibpath_overrides_runpath=no
19196 save_LDFLAGS=$LDFLAGS
19197 save_libdir=$libdir
19198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19204 main ()
19208 return 0;
19210 _ACEOF
19211 if ac_fn_c_try_link "$LINENO"; then :
19212 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19213 lt_cv_shlibpath_overrides_runpath=yes
19216 rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218 LDFLAGS=$save_LDFLAGS
19219 libdir=$save_libdir
19223 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19225 # This implies no fast_install, which is unacceptable.
19226 # Some rework will be needed to allow for fast_install
19227 # before this can be enabled.
19228 hardcode_into_libs=yes
19230 # Append ld.so.conf contents to the search path
19231 if test -f /etc/ld.so.conf; then
19232 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' ' '`
19233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19236 # We used to test for /lib/ld.so.1 and disable shared libraries on
19237 # powerpc, because MkLinux only supported shared libraries with the
19238 # GNU dynamic linker. Since this was broken with cross compilers,
19239 # most powerpc-linux boxes support dynamic linking these days and
19240 # people can always --disable-shared, the test was removed, and we
19241 # assume the GNU/Linux dynamic linker is in use.
19242 dynamic_linker='GNU/Linux ld.so'
19245 netbsd*)
19246 version_type=sunos
19247 need_lib_prefix=no
19248 need_version=no
19249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19252 dynamic_linker='NetBSD (a.out) ld.so'
19253 else
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255 soname_spec='${libname}${release}${shared_ext}$major'
19256 dynamic_linker='NetBSD ld.elf_so'
19258 shlibpath_var=LD_LIBRARY_PATH
19259 shlibpath_overrides_runpath=yes
19260 hardcode_into_libs=yes
19263 newsos6)
19264 version_type=linux
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 shlibpath_var=LD_LIBRARY_PATH
19267 shlibpath_overrides_runpath=yes
19270 *nto* | *qnx*)
19271 version_type=qnx
19272 need_lib_prefix=no
19273 need_version=no
19274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275 soname_spec='${libname}${release}${shared_ext}$major'
19276 shlibpath_var=LD_LIBRARY_PATH
19277 shlibpath_overrides_runpath=no
19278 hardcode_into_libs=yes
19279 dynamic_linker='ldqnx.so'
19282 openbsd*)
19283 version_type=sunos
19284 sys_lib_dlsearch_path_spec="/usr/lib"
19285 need_lib_prefix=no
19286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19287 case $host_os in
19288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19289 *) need_version=no ;;
19290 esac
19291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19293 shlibpath_var=LD_LIBRARY_PATH
19294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19295 case $host_os in
19296 openbsd2.[89] | openbsd2.[89].*)
19297 shlibpath_overrides_runpath=no
19300 shlibpath_overrides_runpath=yes
19302 esac
19303 else
19304 shlibpath_overrides_runpath=yes
19308 os2*)
19309 libname_spec='$name'
19310 shrext_cmds=".dll"
19311 need_lib_prefix=no
19312 library_names_spec='$libname${shared_ext} $libname.a'
19313 dynamic_linker='OS/2 ld.exe'
19314 shlibpath_var=LIBPATH
19317 osf3* | osf4* | osf5*)
19318 version_type=osf
19319 need_lib_prefix=no
19320 need_version=no
19321 soname_spec='${libname}${release}${shared_ext}$major'
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 shlibpath_var=LD_LIBRARY_PATH
19324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19328 rdos*)
19329 dynamic_linker=no
19332 solaris*)
19333 version_type=linux
19334 need_lib_prefix=no
19335 need_version=no
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 shlibpath_overrides_runpath=yes
19340 hardcode_into_libs=yes
19341 # ldd complains unless libraries are executable
19342 postinstall_cmds='chmod +x $lib'
19345 sunos4*)
19346 version_type=sunos
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19349 shlibpath_var=LD_LIBRARY_PATH
19350 shlibpath_overrides_runpath=yes
19351 if test "$with_gnu_ld" = yes; then
19352 need_lib_prefix=no
19354 need_version=yes
19357 sysv4 | sysv4.3*)
19358 version_type=linux
19359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 soname_spec='${libname}${release}${shared_ext}$major'
19361 shlibpath_var=LD_LIBRARY_PATH
19362 case $host_vendor in
19363 sni)
19364 shlibpath_overrides_runpath=no
19365 need_lib_prefix=no
19366 runpath_var=LD_RUN_PATH
19368 siemens)
19369 need_lib_prefix=no
19371 motorola)
19372 need_lib_prefix=no
19373 need_version=no
19374 shlibpath_overrides_runpath=no
19375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19377 esac
19380 sysv4*MP*)
19381 if test -d /usr/nec ;then
19382 version_type=linux
19383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19384 soname_spec='$libname${shared_ext}.$major'
19385 shlibpath_var=LD_LIBRARY_PATH
19389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19390 version_type=freebsd-elf
19391 need_lib_prefix=no
19392 need_version=no
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath=yes
19397 hardcode_into_libs=yes
19398 if test "$with_gnu_ld" = yes; then
19399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19400 else
19401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19402 case $host_os in
19403 sco3.2v5*)
19404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19406 esac
19408 sys_lib_dlsearch_path_spec='/usr/lib'
19411 tpf*)
19412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19413 version_type=linux
19414 need_lib_prefix=no
19415 need_version=no
19416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 shlibpath_var=LD_LIBRARY_PATH
19418 shlibpath_overrides_runpath=no
19419 hardcode_into_libs=yes
19422 uts4*)
19423 version_type=linux
19424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19425 soname_spec='${libname}${release}${shared_ext}$major'
19426 shlibpath_var=LD_LIBRARY_PATH
19429 # Shared libraries for VwWorks, >= 7 only at this stage
19430 # and (fpic) still incompatible with "large" code models
19431 # in a few configurations. Only for RTP mode in any case,
19432 # and upon explicit request at configure time.
19433 vxworks7*)
19434 dynamic_linker=no
19435 case ${with_multisubdir}-${enable_shared} in
19436 *large*)
19438 *mrtp*-yes)
19439 version_type=linux
19440 need_lib_prefix=no
19441 need_version=no
19442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19443 soname_spec='${libname}${release}${shared_ext}$major'
19444 dynamic_linker="$host_os module_loader"
19446 esac
19449 dynamic_linker=no
19451 esac
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19453 $as_echo "$dynamic_linker" >&6; }
19454 test "$dynamic_linker" = no && can_build_shared=no
19456 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19457 if test "$GCC" = yes; then
19458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19462 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19464 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19465 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19560 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19561 hardcode_action=
19562 if test -n "$hardcode_libdir_flag_spec" ||
19563 test -n "$runpath_var" ||
19564 test "X$hardcode_automatic" = "Xyes" ; then
19566 # We can hardcode non-existent directories.
19567 if test "$hardcode_direct" != no &&
19568 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19569 # have to relink, otherwise we might link with an installed library
19570 # when we should be linking with a yet-to-be-installed one
19571 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19572 test "$hardcode_minus_L" != no; then
19573 # Linking always hardcodes the temporary library directory.
19574 hardcode_action=relink
19575 else
19576 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19577 hardcode_action=immediate
19579 else
19580 # We cannot hardcode anything, or else we can only hardcode existing
19581 # directories.
19582 hardcode_action=unsupported
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19585 $as_echo "$hardcode_action" >&6; }
19587 if test "$hardcode_action" = relink ||
19588 test "$inherit_rpath" = yes; then
19589 # Fast installation is not supported
19590 enable_fast_install=no
19591 elif test "$shlibpath_overrides_runpath" = yes ||
19592 test "$enable_shared" = no; then
19593 # Fast installation is not necessary
19594 enable_fast_install=needless
19602 if test "x$enable_dlopen" != xyes; then
19603 enable_dlopen=unknown
19604 enable_dlopen_self=unknown
19605 enable_dlopen_self_static=unknown
19606 else
19607 lt_cv_dlopen=no
19608 lt_cv_dlopen_libs=
19610 case $host_os in
19611 beos*)
19612 lt_cv_dlopen="load_add_on"
19613 lt_cv_dlopen_libs=
19614 lt_cv_dlopen_self=yes
19617 mingw* | pw32* | cegcc*)
19618 lt_cv_dlopen="LoadLibrary"
19619 lt_cv_dlopen_libs=
19622 cygwin*)
19623 lt_cv_dlopen="dlopen"
19624 lt_cv_dlopen_libs=
19627 darwin*)
19628 # if libdl is installed we need to link against it
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19630 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19631 if ${ac_cv_lib_dl_dlopen+:} false; then :
19632 $as_echo_n "(cached) " >&6
19633 else
19634 ac_check_lib_save_LIBS=$LIBS
19635 LIBS="-ldl $LIBS"
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19642 #ifdef __cplusplus
19643 extern "C"
19644 #endif
19645 char dlopen ();
19647 main ()
19649 return dlopen ();
19651 return 0;
19653 _ACEOF
19654 if ac_fn_c_try_link "$LINENO"; then :
19655 ac_cv_lib_dl_dlopen=yes
19656 else
19657 ac_cv_lib_dl_dlopen=no
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19664 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19665 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19667 else
19669 lt_cv_dlopen="dyld"
19670 lt_cv_dlopen_libs=
19671 lt_cv_dlopen_self=yes
19678 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19679 if test "x$ac_cv_func_shl_load" = xyes; then :
19680 lt_cv_dlopen="shl_load"
19681 else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19683 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19684 if ${ac_cv_lib_dld_shl_load+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19687 ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-ldld $LIBS"
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19695 #ifdef __cplusplus
19696 extern "C"
19697 #endif
19698 char shl_load ();
19700 main ()
19702 return shl_load ();
19704 return 0;
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 ac_cv_lib_dld_shl_load=yes
19709 else
19710 ac_cv_lib_dld_shl_load=no
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19717 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19718 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19719 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19720 else
19721 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19722 if test "x$ac_cv_func_dlopen" = xyes; then :
19723 lt_cv_dlopen="dlopen"
19724 else
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19727 if ${ac_cv_lib_dl_dlopen+:} false; then :
19728 $as_echo_n "(cached) " >&6
19729 else
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-ldl $LIBS"
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char dlopen ();
19743 main ()
19745 return dlopen ();
19747 return 0;
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_lib_dl_dlopen=yes
19752 else
19753 ac_cv_lib_dl_dlopen=no
19755 rm -f core conftest.err conftest.$ac_objext \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19763 else
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19765 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19766 if ${ac_cv_lib_svld_dlopen+:} false; then :
19767 $as_echo_n "(cached) " >&6
19768 else
19769 ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lsvld $LIBS"
19771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h. */
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 char dlopen ();
19782 main ()
19784 return dlopen ();
19786 return 0;
19788 _ACEOF
19789 if ac_fn_c_try_link "$LINENO"; then :
19790 ac_cv_lib_svld_dlopen=yes
19791 else
19792 ac_cv_lib_svld_dlopen=no
19794 rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19799 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19800 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19801 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19802 else
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19804 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19805 if ${ac_cv_lib_dld_dld_link+:} false; then :
19806 $as_echo_n "(cached) " >&6
19807 else
19808 ac_check_lib_save_LIBS=$LIBS
19809 LIBS="-ldld $LIBS"
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816 #ifdef __cplusplus
19817 extern "C"
19818 #endif
19819 char dld_link ();
19821 main ()
19823 return dld_link ();
19825 return 0;
19827 _ACEOF
19828 if ac_fn_c_try_link "$LINENO"; then :
19829 ac_cv_lib_dld_dld_link=yes
19830 else
19831 ac_cv_lib_dld_dld_link=no
19833 rm -f core conftest.err conftest.$ac_objext \
19834 conftest$ac_exeext conftest.$ac_ext
19835 LIBS=$ac_check_lib_save_LIBS
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19838 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19839 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19859 esac
19861 if test "x$lt_cv_dlopen" != xno; then
19862 enable_dlopen=yes
19863 else
19864 enable_dlopen=no
19867 case $lt_cv_dlopen in
19868 dlopen)
19869 save_CPPFLAGS="$CPPFLAGS"
19870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19872 save_LDFLAGS="$LDFLAGS"
19873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19875 save_LIBS="$LIBS"
19876 LIBS="$lt_cv_dlopen_libs $LIBS"
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19879 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19880 if ${lt_cv_dlopen_self+:} false; then :
19881 $as_echo_n "(cached) " >&6
19882 else
19883 if test "$cross_compiling" = yes; then :
19884 lt_cv_dlopen_self=cross
19885 else
19886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19887 lt_status=$lt_dlunknown
19888 cat > conftest.$ac_ext <<_LT_EOF
19889 #line 19889 "configure"
19890 #include "confdefs.h"
19892 #if HAVE_DLFCN_H
19893 #include <dlfcn.h>
19894 #endif
19896 #include <stdio.h>
19898 #ifdef RTLD_GLOBAL
19899 # define LT_DLGLOBAL RTLD_GLOBAL
19900 #else
19901 # ifdef DL_GLOBAL
19902 # define LT_DLGLOBAL DL_GLOBAL
19903 # else
19904 # define LT_DLGLOBAL 0
19905 # endif
19906 #endif
19908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19909 find out it does not work in some platform. */
19910 #ifndef LT_DLLAZY_OR_NOW
19911 # ifdef RTLD_LAZY
19912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19913 # else
19914 # ifdef DL_LAZY
19915 # define LT_DLLAZY_OR_NOW DL_LAZY
19916 # else
19917 # ifdef RTLD_NOW
19918 # define LT_DLLAZY_OR_NOW RTLD_NOW
19919 # else
19920 # ifdef DL_NOW
19921 # define LT_DLLAZY_OR_NOW DL_NOW
19922 # else
19923 # define LT_DLLAZY_OR_NOW 0
19924 # endif
19925 # endif
19926 # endif
19927 # endif
19928 #endif
19930 /* When -fvisbility=hidden is used, assume the code has been annotated
19931 correspondingly for the symbols needed. */
19932 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19933 void fnord () __attribute__((visibility("default")));
19934 #endif
19936 void fnord () { int i=42; }
19937 int main ()
19939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19940 int status = $lt_dlunknown;
19942 if (self)
19944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19945 else
19947 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19948 else puts (dlerror ());
19950 /* dlclose (self); */
19952 else
19953 puts (dlerror ());
19955 return status;
19957 _LT_EOF
19958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19959 (eval $ac_link) 2>&5
19960 ac_status=$?
19961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19962 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19963 (./conftest; exit; ) >&5 2>/dev/null
19964 lt_status=$?
19965 case x$lt_status in
19966 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19967 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19968 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19969 esac
19970 else :
19971 # compilation failed
19972 lt_cv_dlopen_self=no
19975 rm -fr conftest*
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19980 $as_echo "$lt_cv_dlopen_self" >&6; }
19982 if test "x$lt_cv_dlopen_self" = xyes; then
19983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19985 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19986 if ${lt_cv_dlopen_self_static+:} false; then :
19987 $as_echo_n "(cached) " >&6
19988 else
19989 if test "$cross_compiling" = yes; then :
19990 lt_cv_dlopen_self_static=cross
19991 else
19992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19993 lt_status=$lt_dlunknown
19994 cat > conftest.$ac_ext <<_LT_EOF
19995 #line 19995 "configure"
19996 #include "confdefs.h"
19998 #if HAVE_DLFCN_H
19999 #include <dlfcn.h>
20000 #endif
20002 #include <stdio.h>
20004 #ifdef RTLD_GLOBAL
20005 # define LT_DLGLOBAL RTLD_GLOBAL
20006 #else
20007 # ifdef DL_GLOBAL
20008 # define LT_DLGLOBAL DL_GLOBAL
20009 # else
20010 # define LT_DLGLOBAL 0
20011 # endif
20012 #endif
20014 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20015 find out it does not work in some platform. */
20016 #ifndef LT_DLLAZY_OR_NOW
20017 # ifdef RTLD_LAZY
20018 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20019 # else
20020 # ifdef DL_LAZY
20021 # define LT_DLLAZY_OR_NOW DL_LAZY
20022 # else
20023 # ifdef RTLD_NOW
20024 # define LT_DLLAZY_OR_NOW RTLD_NOW
20025 # else
20026 # ifdef DL_NOW
20027 # define LT_DLLAZY_OR_NOW DL_NOW
20028 # else
20029 # define LT_DLLAZY_OR_NOW 0
20030 # endif
20031 # endif
20032 # endif
20033 # endif
20034 #endif
20036 /* When -fvisbility=hidden is used, assume the code has been annotated
20037 correspondingly for the symbols needed. */
20038 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20039 void fnord () __attribute__((visibility("default")));
20040 #endif
20042 void fnord () { int i=42; }
20043 int main ()
20045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20046 int status = $lt_dlunknown;
20048 if (self)
20050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20051 else
20053 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20054 else puts (dlerror ());
20056 /* dlclose (self); */
20058 else
20059 puts (dlerror ());
20061 return status;
20063 _LT_EOF
20064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20065 (eval $ac_link) 2>&5
20066 ac_status=$?
20067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20068 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20069 (./conftest; exit; ) >&5 2>/dev/null
20070 lt_status=$?
20071 case x$lt_status in
20072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20074 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20075 esac
20076 else :
20077 # compilation failed
20078 lt_cv_dlopen_self_static=no
20081 rm -fr conftest*
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20086 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20089 CPPFLAGS="$save_CPPFLAGS"
20090 LDFLAGS="$save_LDFLAGS"
20091 LIBS="$save_LIBS"
20093 esac
20095 case $lt_cv_dlopen_self in
20096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20097 *) enable_dlopen_self=unknown ;;
20098 esac
20100 case $lt_cv_dlopen_self_static in
20101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20102 *) enable_dlopen_self_static=unknown ;;
20103 esac
20122 striplib=
20123 old_striplib=
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20125 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20126 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20127 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20128 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20130 $as_echo "yes" >&6; }
20131 else
20132 # FIXME - insert some real tests, host_os isn't really good enough
20133 case $host_os in
20134 darwin*)
20135 if test -n "$STRIP" ; then
20136 striplib="$STRIP -x"
20137 old_striplib="$STRIP -S"
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20139 $as_echo "yes" >&6; }
20140 else
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 $as_echo "no" >&6; }
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147 $as_echo "no" >&6; }
20149 esac
20163 # Report which library types will actually be built
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20167 $as_echo "$can_build_shared" >&6; }
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20170 $as_echo_n "checking whether to build shared libraries... " >&6; }
20171 test "$can_build_shared" = "no" && enable_shared=no
20173 # On AIX, shared libraries and static libraries use the same namespace, and
20174 # are all built from PIC.
20175 case $host_os in
20176 aix3*)
20177 test "$enable_shared" = yes && enable_static=no
20178 if test -n "$RANLIB"; then
20179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20180 postinstall_cmds='$RANLIB $lib'
20184 aix[4-9]*)
20185 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20186 test "$enable_shared" = yes && enable_static=no
20189 esac
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20191 $as_echo "$enable_shared" >&6; }
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20194 $as_echo_n "checking whether to build static libraries... " >&6; }
20195 # Make sure either enable_shared or enable_static is yes.
20196 test "$enable_shared" = yes || enable_static=yes
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20198 $as_echo "$enable_static" >&6; }
20204 ac_ext=cpp
20205 ac_cpp='$CXXCPP $CPPFLAGS'
20206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20210 CC="$lt_save_CC"
20212 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20213 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20214 (test "X$CXX" != "Xg++"))) ; then
20215 ac_ext=cpp
20216 ac_cpp='$CXXCPP $CPPFLAGS'
20217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20221 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20222 if test -z "$CXXCPP"; then
20223 if ${ac_cv_prog_CXXCPP+:} false; then :
20224 $as_echo_n "(cached) " >&6
20225 else
20226 # Double quotes because CXXCPP needs to be expanded
20227 for CXXCPP in "$CXX -E" "/lib/cpp"
20229 ac_preproc_ok=false
20230 for ac_cxx_preproc_warn_flag in '' yes
20232 # Use a header file that comes with gcc, so configuring glibc
20233 # with a fresh cross-compiler works.
20234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20235 # <limits.h> exists even on freestanding compilers.
20236 # On the NeXT, cc -E runs the code through the compiler's parser,
20237 # not just through cpp. "Syntax error" is here to catch this case.
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20240 #ifdef __STDC__
20241 # include <limits.h>
20242 #else
20243 # include <assert.h>
20244 #endif
20245 Syntax error
20246 _ACEOF
20247 if ac_fn_cxx_try_cpp "$LINENO"; then :
20249 else
20250 # Broken: fails on valid input.
20251 continue
20253 rm -f conftest.err conftest.i conftest.$ac_ext
20255 # OK, works on sane cases. Now check whether nonexistent headers
20256 # can be detected and how.
20257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h. */
20259 #include <ac_nonexistent.h>
20260 _ACEOF
20261 if ac_fn_cxx_try_cpp "$LINENO"; then :
20262 # Broken: success on invalid input.
20263 continue
20264 else
20265 # Passes both tests.
20266 ac_preproc_ok=:
20267 break
20269 rm -f conftest.err conftest.i conftest.$ac_ext
20271 done
20272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20273 rm -f conftest.i conftest.err conftest.$ac_ext
20274 if $ac_preproc_ok; then :
20275 break
20278 done
20279 ac_cv_prog_CXXCPP=$CXXCPP
20282 CXXCPP=$ac_cv_prog_CXXCPP
20283 else
20284 ac_cv_prog_CXXCPP=$CXXCPP
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20287 $as_echo "$CXXCPP" >&6; }
20288 ac_preproc_ok=false
20289 for ac_cxx_preproc_warn_flag in '' yes
20291 # Use a header file that comes with gcc, so configuring glibc
20292 # with a fresh cross-compiler works.
20293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20294 # <limits.h> exists even on freestanding compilers.
20295 # On the NeXT, cc -E runs the code through the compiler's parser,
20296 # not just through cpp. "Syntax error" is here to catch this case.
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #ifdef __STDC__
20300 # include <limits.h>
20301 #else
20302 # include <assert.h>
20303 #endif
20304 Syntax error
20305 _ACEOF
20306 if ac_fn_cxx_try_cpp "$LINENO"; then :
20308 else
20309 # Broken: fails on valid input.
20310 continue
20312 rm -f conftest.err conftest.i conftest.$ac_ext
20314 # OK, works on sane cases. Now check whether nonexistent headers
20315 # can be detected and how.
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20318 #include <ac_nonexistent.h>
20319 _ACEOF
20320 if ac_fn_cxx_try_cpp "$LINENO"; then :
20321 # Broken: success on invalid input.
20322 continue
20323 else
20324 # Passes both tests.
20325 ac_preproc_ok=:
20326 break
20328 rm -f conftest.err conftest.i conftest.$ac_ext
20330 done
20331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20332 rm -f conftest.i conftest.err conftest.$ac_ext
20333 if $ac_preproc_ok; then :
20335 else
20336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20338 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20339 See \`config.log' for more details" "$LINENO" 5; }
20342 ac_ext=cpp
20343 ac_cpp='$CXXCPP $CPPFLAGS'
20344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20348 else
20349 _lt_caught_CXX_error=yes
20352 ac_ext=cpp
20353 ac_cpp='$CXXCPP $CPPFLAGS'
20354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358 archive_cmds_need_lc_CXX=no
20359 allow_undefined_flag_CXX=
20360 always_export_symbols_CXX=no
20361 archive_expsym_cmds_CXX=
20362 compiler_needs_object_CXX=no
20363 export_dynamic_flag_spec_CXX=
20364 hardcode_direct_CXX=no
20365 hardcode_direct_absolute_CXX=no
20366 hardcode_libdir_flag_spec_CXX=
20367 hardcode_libdir_flag_spec_ld_CXX=
20368 hardcode_libdir_separator_CXX=
20369 hardcode_minus_L_CXX=no
20370 hardcode_shlibpath_var_CXX=unsupported
20371 hardcode_automatic_CXX=no
20372 inherit_rpath_CXX=no
20373 module_cmds_CXX=
20374 module_expsym_cmds_CXX=
20375 link_all_deplibs_CXX=unknown
20376 old_archive_cmds_CXX=$old_archive_cmds
20377 reload_flag_CXX=$reload_flag
20378 reload_cmds_CXX=$reload_cmds
20379 no_undefined_flag_CXX=
20380 whole_archive_flag_spec_CXX=
20381 enable_shared_with_static_runtimes_CXX=no
20383 # Source file extension for C++ test sources.
20384 ac_ext=cpp
20386 # Object file extension for compiled C++ test sources.
20387 objext=o
20388 objext_CXX=$objext
20390 # No sense in running all these tests if we already determined that
20391 # the CXX compiler isn't working. Some variables (like enable_shared)
20392 # are currently assumed to apply to all compilers on this platform,
20393 # and will be corrupted by setting them based on a non-working compiler.
20394 if test "$_lt_caught_CXX_error" != yes; then
20395 # Code to be used in simple compile tests
20396 lt_simple_compile_test_code="int some_variable = 0;"
20398 # Code to be used in simple link tests
20399 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20408 # If no C compiler was specified, use CC.
20409 LTCC=${LTCC-"$CC"}
20411 # If no C compiler flags were specified, use CFLAGS.
20412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20414 # Allow CC to be a program name with arguments.
20415 compiler=$CC
20418 # save warnings/boilerplate of simple test code
20419 ac_outfile=conftest.$ac_objext
20420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20422 _lt_compiler_boilerplate=`cat conftest.err`
20423 $RM conftest*
20425 ac_outfile=conftest.$ac_objext
20426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20428 _lt_linker_boilerplate=`cat conftest.err`
20429 $RM -r conftest*
20432 # Allow CC to be a program name with arguments.
20433 lt_save_CC=$CC
20434 lt_save_LD=$LD
20435 lt_save_GCC=$GCC
20436 GCC=$GXX
20437 lt_save_with_gnu_ld=$with_gnu_ld
20438 lt_save_path_LD=$lt_cv_path_LD
20439 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20440 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20441 else
20442 $as_unset lt_cv_prog_gnu_ld
20444 if test -n "${lt_cv_path_LDCXX+set}"; then
20445 lt_cv_path_LD=$lt_cv_path_LDCXX
20446 else
20447 $as_unset lt_cv_path_LD
20449 test -z "${LDCXX+set}" || LD=$LDCXX
20450 CC=${CXX-"c++"}
20451 compiler=$CC
20452 compiler_CXX=$CC
20453 for cc_temp in $compiler""; do
20454 case $cc_temp in
20455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20457 \-*) ;;
20458 *) break;;
20459 esac
20460 done
20461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20464 if test -n "$compiler"; then
20465 # We don't want -fno-exception when compiling C++ code, so set the
20466 # no_builtin_flag separately
20467 if test "$GXX" = yes; then
20468 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20469 else
20470 lt_prog_compiler_no_builtin_flag_CXX=
20473 if test "$GXX" = yes; then
20474 # Set up default GNU C++ configuration
20478 # Check whether --with-gnu-ld was given.
20479 if test "${with_gnu_ld+set}" = set; then :
20480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20481 else
20482 with_gnu_ld=no
20485 ac_prog=ld
20486 if test "$GCC" = yes; then
20487 # Check if gcc -print-prog-name=ld gives a path.
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20489 $as_echo_n "checking for ld used by $CC... " >&6; }
20490 case $host in
20491 *-*-mingw*)
20492 # gcc leaves a trailing carriage return which upsets mingw
20493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20496 esac
20497 case $ac_prog in
20498 # Accept absolute paths.
20499 [\\/]* | ?:[\\/]*)
20500 re_direlt='/[^/][^/]*/\.\./'
20501 # Canonicalize the pathname of ld
20502 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20503 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20504 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20505 done
20506 test -z "$LD" && LD="$ac_prog"
20509 # If it fails, then pretend we aren't using GCC.
20510 ac_prog=ld
20513 # If it is relative, then search for the first ld in PATH.
20514 with_gnu_ld=unknown
20516 esac
20517 elif test "$with_gnu_ld" = yes; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20519 $as_echo_n "checking for GNU ld... " >&6; }
20520 else
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20522 $as_echo_n "checking for non-GNU ld... " >&6; }
20524 if ${lt_cv_path_LD+:} false; then :
20525 $as_echo_n "(cached) " >&6
20526 else
20527 if test -z "$LD"; then
20528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20529 for ac_dir in $PATH; do
20530 IFS="$lt_save_ifs"
20531 test -z "$ac_dir" && ac_dir=.
20532 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20533 lt_cv_path_LD="$ac_dir/$ac_prog"
20534 # Check to see if the program is GNU ld. I'd rather use --version,
20535 # but apparently some variants of GNU ld only accept -v.
20536 # Break only if it was the GNU/non-GNU ld that we prefer.
20537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20538 *GNU* | *'with BFD'*)
20539 test "$with_gnu_ld" != no && break
20542 test "$with_gnu_ld" != yes && break
20544 esac
20546 done
20547 IFS="$lt_save_ifs"
20548 else
20549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20553 LD="$lt_cv_path_LD"
20554 if test -n "$LD"; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20556 $as_echo "$LD" >&6; }
20557 else
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20559 $as_echo "no" >&6; }
20561 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20564 if ${lt_cv_prog_gnu_ld+:} false; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20568 case `$LD -v 2>&1 </dev/null` in
20569 *GNU* | *'with BFD'*)
20570 lt_cv_prog_gnu_ld=yes
20573 lt_cv_prog_gnu_ld=no
20575 esac
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20579 with_gnu_ld=$lt_cv_prog_gnu_ld
20587 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20588 # archiving commands below assume that GNU ld is being used.
20589 if test "$with_gnu_ld" = yes; then
20590 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20591 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'
20593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20594 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20596 # If archive_cmds runs LD, not CC, wlarc should be empty
20597 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20598 # investigate it a little bit more. (MM)
20599 wlarc='${wl}'
20601 # ancient GNU ld didn't support --whole-archive et. al.
20602 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20603 $GREP 'no-whole-archive' > /dev/null; then
20604 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20605 else
20606 whole_archive_flag_spec_CXX=
20608 else
20609 with_gnu_ld=no
20610 wlarc=
20612 # A generic and very simple default shared library creation
20613 # command for GNU C++ for the case where it uses the native
20614 # linker, instead of GNU ld. If possible, this setting should
20615 # overridden to take advantage of the native linker features on
20616 # the platform it is being used on.
20617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20620 # Commands to make compiler produce verbose output that lists
20621 # what "hidden" libraries, object files and flags are used when
20622 # linking a shared library.
20623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20625 else
20626 GXX=no
20627 with_gnu_ld=no
20628 wlarc=
20631 # PORTME: fill in a description of your system's C++ link characteristics
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20633 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20634 ld_shlibs_CXX=yes
20635 case $host_os in
20636 aix3*)
20637 # FIXME: insert proper C++ library support
20638 ld_shlibs_CXX=no
20640 aix[4-9]*)
20641 if test "$host_cpu" = ia64; then
20642 # On IA64, the linker does run time linking by default, so we don't
20643 # have to do anything special.
20644 aix_use_runtimelinking=no
20645 exp_sym_flag='-Bexport'
20646 no_entry_flag=""
20647 else
20648 aix_use_runtimelinking=no
20650 # Test if we are trying to use run time linking or normal
20651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20652 # need to do runtime linking.
20653 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20654 for ld_flag in $LDFLAGS; do
20655 case $ld_flag in
20656 *-brtl*)
20657 aix_use_runtimelinking=yes
20658 break
20660 esac
20661 done
20663 esac
20665 exp_sym_flag='-bexport'
20666 no_entry_flag='-bnoentry'
20669 # When large executables or shared objects are built, AIX ld can
20670 # have problems creating the table of contents. If linking a library
20671 # or program results in "error TOC overflow" add -mminimal-toc to
20672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20675 archive_cmds_CXX=''
20676 hardcode_direct_CXX=yes
20677 hardcode_direct_absolute_CXX=yes
20678 hardcode_libdir_separator_CXX=':'
20679 link_all_deplibs_CXX=yes
20680 file_list_spec_CXX='${wl}-f,'
20682 if test "$GXX" = yes; then
20683 case $host_os in aix4.[012]|aix4.[012].*)
20684 # We only want to do this on AIX 4.2 and lower, the check
20685 # below for broken collect2 doesn't work under 4.3+
20686 collect2name=`${CC} -print-prog-name=collect2`
20687 if test -f "$collect2name" &&
20688 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20689 then
20690 # We have reworked collect2
20692 else
20693 # We have old collect2
20694 hardcode_direct_CXX=unsupported
20695 # It fails to find uninstalled libraries when the uninstalled
20696 # path is not listed in the libpath. Setting hardcode_minus_L
20697 # to unsupported forces relinking
20698 hardcode_minus_L_CXX=yes
20699 hardcode_libdir_flag_spec_CXX='-L$libdir'
20700 hardcode_libdir_separator_CXX=
20702 esac
20703 shared_flag='-shared'
20704 if test "$aix_use_runtimelinking" = yes; then
20705 shared_flag="$shared_flag "'${wl}-G'
20707 else
20708 # not using gcc
20709 if test "$host_cpu" = ia64; then
20710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20711 # chokes on -Wl,-G. The following line is correct:
20712 shared_flag='-G'
20713 else
20714 if test "$aix_use_runtimelinking" = yes; then
20715 shared_flag='${wl}-G'
20716 else
20717 shared_flag='${wl}-bM:SRE'
20722 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20723 # It seems that -bexpall does not export symbols beginning with
20724 # underscore (_), so it is better to generate a list of symbols to
20725 # export.
20726 always_export_symbols_CXX=yes
20727 if test "$aix_use_runtimelinking" = yes; then
20728 # Warning - without using the other runtime loading flags (-brtl),
20729 # -berok will link without error, but may produce a broken library.
20730 allow_undefined_flag_CXX='-berok'
20731 # Determine the default libpath from the value encoded in an empty
20732 # executable.
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20737 main ()
20741 return 0;
20743 _ACEOF
20744 if ac_fn_cxx_try_link "$LINENO"; then :
20746 lt_aix_libpath_sed='
20747 /Import File Strings/,/^$/ {
20748 /^0/ {
20749 s/^0 *\(.*\)$/\1/
20753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20754 # Check for a 64-bit object if we didn't find anything.
20755 if test -z "$aix_libpath"; then
20756 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20759 rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20763 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20765 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"
20766 else
20767 if test "$host_cpu" = ia64; then
20768 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20769 allow_undefined_flag_CXX="-z nodefs"
20770 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"
20771 else
20772 # Determine the default libpath from the value encoded in an
20773 # empty executable.
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20778 main ()
20782 return 0;
20784 _ACEOF
20785 if ac_fn_cxx_try_link "$LINENO"; then :
20787 lt_aix_libpath_sed='
20788 /Import File Strings/,/^$/ {
20789 /^0/ {
20790 s/^0 *\(.*\)$/\1/
20794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20795 # Check for a 64-bit object if we didn't find anything.
20796 if test -z "$aix_libpath"; then
20797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20805 # Warning - without using the other run time loading flags,
20806 # -berok will link without error, but may produce a broken library.
20807 no_undefined_flag_CXX=' ${wl}-bernotok'
20808 allow_undefined_flag_CXX=' ${wl}-berok'
20809 if test "$with_gnu_ld" = yes; then
20810 # We only use this code for GNU lds that support --whole-archive.
20811 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20812 else
20813 # Exported symbols can be pulled into shared objects from archives
20814 whole_archive_flag_spec_CXX='$convenience'
20816 archive_cmds_need_lc_CXX=yes
20817 # This is similar to how AIX traditionally builds its shared
20818 # libraries.
20819 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'
20824 beos*)
20825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20826 allow_undefined_flag_CXX=unsupported
20827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20828 # support --undefined. This deserves some investigation. FIXME
20829 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20830 else
20831 ld_shlibs_CXX=no
20835 chorus*)
20836 case $cc_basename in
20838 # FIXME: insert proper C++ library support
20839 ld_shlibs_CXX=no
20841 esac
20844 cygwin* | mingw* | pw32* | cegcc*)
20845 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20846 # as there is no search path for DLLs.
20847 hardcode_libdir_flag_spec_CXX='-L$libdir'
20848 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20849 allow_undefined_flag_CXX=unsupported
20850 always_export_symbols_CXX=no
20851 enable_shared_with_static_runtimes_CXX=yes
20853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20854 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'
20855 # If the export-symbols file already is a .def file (1st line
20856 # is EXPORTS), use it as is; otherwise, prepend...
20857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20858 cp $export_symbols $output_objdir/$soname.def;
20859 else
20860 echo EXPORTS > $output_objdir/$soname.def;
20861 cat $export_symbols >> $output_objdir/$soname.def;
20863 $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'
20864 else
20865 ld_shlibs_CXX=no
20868 darwin* | rhapsody*)
20871 archive_cmds_need_lc_CXX=no
20872 hardcode_direct_CXX=no
20873 hardcode_automatic_CXX=yes
20874 hardcode_shlibpath_var_CXX=unsupported
20875 if test "$lt_cv_ld_force_load" = "yes"; then
20876 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\"`'
20877 else
20878 whole_archive_flag_spec_CXX=''
20880 link_all_deplibs_CXX=yes
20881 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20882 case $cc_basename in
20883 ifort*) _lt_dar_can_shared=yes ;;
20884 *) _lt_dar_can_shared=$GCC ;;
20885 esac
20886 if test "$_lt_dar_can_shared" = "yes"; then
20887 output_verbose_link_cmd=func_echo_all
20888 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}"
20889 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20890 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}"
20891 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}"
20892 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20893 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}"
20894 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}"
20897 else
20898 ld_shlibs_CXX=no
20903 dgux*)
20904 case $cc_basename in
20905 ec++*)
20906 # FIXME: insert proper C++ library support
20907 ld_shlibs_CXX=no
20909 ghcx*)
20910 # Green Hills C++ Compiler
20911 # FIXME: insert proper C++ library support
20912 ld_shlibs_CXX=no
20915 # FIXME: insert proper C++ library support
20916 ld_shlibs_CXX=no
20918 esac
20921 freebsd2.*)
20922 # C++ shared libraries reported to be fairly broken before
20923 # switch to ELF
20924 ld_shlibs_CXX=no
20927 freebsd-elf*)
20928 archive_cmds_need_lc_CXX=no
20931 freebsd* | dragonfly*)
20932 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20933 # conventions
20934 ld_shlibs_CXX=yes
20937 gnu*)
20940 haiku*)
20941 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20942 link_all_deplibs_CXX=yes
20945 hpux9*)
20946 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20947 hardcode_libdir_separator_CXX=:
20948 export_dynamic_flag_spec_CXX='${wl}-E'
20949 hardcode_direct_CXX=yes
20950 hardcode_minus_L_CXX=yes # Not in the search PATH,
20951 # but as the default
20952 # location of the library.
20954 case $cc_basename in
20955 CC*)
20956 # FIXME: insert proper C++ library support
20957 ld_shlibs_CXX=no
20959 aCC*)
20960 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'
20961 # Commands to make compiler produce verbose output that lists
20962 # what "hidden" libraries, object files and flags are used when
20963 # linking a shared library.
20965 # There doesn't appear to be a way to prevent this compiler from
20966 # explicitly linking system object files so we need to strip them
20967 # from the output so that they don't get included in the library
20968 # dependencies.
20969 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"'
20972 if test "$GXX" = yes; then
20973 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'
20974 else
20975 # FIXME: insert proper C++ library support
20976 ld_shlibs_CXX=no
20979 esac
20982 hpux10*|hpux11*)
20983 if test $with_gnu_ld = no; then
20984 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20985 hardcode_libdir_separator_CXX=:
20987 case $host_cpu in
20988 hppa*64*|ia64*)
20991 export_dynamic_flag_spec_CXX='${wl}-E'
20993 esac
20995 case $host_cpu in
20996 hppa*64*|ia64*)
20997 hardcode_direct_CXX=no
20998 hardcode_shlibpath_var_CXX=no
21001 hardcode_direct_CXX=yes
21002 hardcode_direct_absolute_CXX=yes
21003 hardcode_minus_L_CXX=yes # Not in the search PATH,
21004 # but as the default
21005 # location of the library.
21007 esac
21009 case $cc_basename in
21010 CC*)
21011 # FIXME: insert proper C++ library support
21012 ld_shlibs_CXX=no
21014 aCC*)
21015 case $host_cpu in
21016 hppa*64*)
21017 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21019 ia64*)
21020 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21023 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21025 esac
21026 # Commands to make compiler produce verbose output that lists
21027 # what "hidden" libraries, object files and flags are used when
21028 # linking a shared library.
21030 # There doesn't appear to be a way to prevent this compiler from
21031 # explicitly linking system object files so we need to strip them
21032 # from the output so that they don't get included in the library
21033 # dependencies.
21034 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"'
21037 if test "$GXX" = yes; then
21038 if test $with_gnu_ld = no; then
21039 case $host_cpu in
21040 hppa*64*)
21041 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21043 ia64*)
21044 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21047 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'
21049 esac
21051 else
21052 # FIXME: insert proper C++ library support
21053 ld_shlibs_CXX=no
21056 esac
21059 interix[3-9]*)
21060 hardcode_direct_CXX=no
21061 hardcode_shlibpath_var_CXX=no
21062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21063 export_dynamic_flag_spec_CXX='${wl}-E'
21064 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21065 # Instead, shared libraries are loaded at an image base (0x10000000 by
21066 # default) and relocated if they conflict, which is a slow very memory
21067 # consuming and fragmenting process. To avoid this, we pick a random,
21068 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21069 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21070 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'
21071 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'
21073 irix5* | irix6*)
21074 case $cc_basename in
21075 CC*)
21076 # SGI C++
21077 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'
21079 # Archives containing C++ object files must be created using
21080 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21081 # necessary to make sure instantiated templates are included
21082 # in the archive.
21083 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21086 if test "$GXX" = yes; then
21087 if test "$with_gnu_ld" = no; then
21088 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'
21089 else
21090 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'
21093 link_all_deplibs_CXX=yes
21095 esac
21096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21097 hardcode_libdir_separator_CXX=:
21098 inherit_rpath_CXX=yes
21101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21102 case $cc_basename in
21103 KCC*)
21104 # Kuck and Associates, Inc. (KAI) C++ Compiler
21106 # KCC will only create a shared library if the output file
21107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21108 # to its proper name (with version) after linking.
21109 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'
21110 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'
21111 # Commands to make compiler produce verbose output that lists
21112 # what "hidden" libraries, object files and flags are used when
21113 # linking a shared library.
21115 # There doesn't appear to be a way to prevent this compiler from
21116 # explicitly linking system object files so we need to strip them
21117 # from the output so that they don't get included in the library
21118 # dependencies.
21119 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"'
21121 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21122 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21124 # Archives containing C++ object files must be created using
21125 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21126 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21128 icpc* | ecpc* )
21129 # Intel C++
21130 with_gnu_ld=yes
21131 # version 8.0 and above of icpc choke on multiply defined symbols
21132 # if we add $predep_objects and $postdep_objects, however 7.1 and
21133 # earlier do not add the objects themselves.
21134 case `$CC -V 2>&1` in
21135 *"Version 7."*)
21136 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21137 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'
21139 *) # Version 8.0 or newer
21140 tmp_idyn=
21141 case $host_cpu in
21142 ia64*) tmp_idyn=' -i_dynamic';;
21143 esac
21144 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21145 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'
21147 esac
21148 archive_cmds_need_lc_CXX=no
21149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21151 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21153 pgCC* | pgcpp*)
21154 # Portland Group C++ compiler
21155 case `$CC -V` in
21156 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21157 prelink_cmds_CXX='tpldir=Template.dir~
21158 rm -rf $tpldir~
21159 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21160 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21161 old_archive_cmds_CXX='tpldir=Template.dir~
21162 rm -rf $tpldir~
21163 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21164 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21165 $RANLIB $oldlib'
21166 archive_cmds_CXX='tpldir=Template.dir~
21167 rm -rf $tpldir~
21168 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21169 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21170 archive_expsym_cmds_CXX='tpldir=Template.dir~
21171 rm -rf $tpldir~
21172 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21173 $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'
21175 *) # Version 6 and above use weak symbols
21176 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21177 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'
21179 esac
21181 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21183 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'
21185 cxx*)
21186 # Compaq C++
21187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21188 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'
21190 runpath_var=LD_RUN_PATH
21191 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21192 hardcode_libdir_separator_CXX=:
21194 # Commands to make compiler produce verbose output that lists
21195 # what "hidden" libraries, object files and flags are used when
21196 # linking a shared library.
21198 # There doesn't appear to be a way to prevent this compiler from
21199 # explicitly linking system object files so we need to strip them
21200 # from the output so that they don't get included in the library
21201 # dependencies.
21202 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'
21204 xl* | mpixl* | bgxl*)
21205 # IBM XL 8.0 on PPC, with GNU ld
21206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21208 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21209 if test "x$supports_anon_versioning" = xyes; then
21210 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21212 echo "local: *; };" >> $output_objdir/$libname.ver~
21213 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21217 case `$CC -V 2>&1 | sed 5q` in
21218 *Sun\ C*)
21219 # Sun C++ 5.9
21220 no_undefined_flag_CXX=' -zdefs'
21221 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21222 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'
21223 hardcode_libdir_flag_spec_CXX='-R$libdir'
21224 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'
21225 compiler_needs_object_CXX=yes
21227 # Not sure whether something based on
21228 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21229 # would be better.
21230 output_verbose_link_cmd='func_echo_all'
21232 # Archives containing C++ object files must be created using
21233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21234 # necessary to make sure instantiated templates are included
21235 # in the archive.
21236 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21238 esac
21240 esac
21243 lynxos*)
21244 # FIXME: insert proper C++ library support
21245 ld_shlibs_CXX=no
21248 m88k*)
21249 # FIXME: insert proper C++ library support
21250 ld_shlibs_CXX=no
21253 mvs*)
21254 case $cc_basename in
21255 cxx*)
21256 # FIXME: insert proper C++ library support
21257 ld_shlibs_CXX=no
21260 # FIXME: insert proper C++ library support
21261 ld_shlibs_CXX=no
21263 esac
21266 netbsd*)
21267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21268 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21269 wlarc=
21270 hardcode_libdir_flag_spec_CXX='-R$libdir'
21271 hardcode_direct_CXX=yes
21272 hardcode_shlibpath_var_CXX=no
21274 # Workaround some broken pre-1.5 toolchains
21275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21278 *nto* | *qnx*)
21279 ld_shlibs_CXX=yes
21282 openbsd2*)
21283 # C++ shared libraries are fairly broken
21284 ld_shlibs_CXX=no
21287 openbsd*)
21288 if test -f /usr/libexec/ld.so; then
21289 hardcode_direct_CXX=yes
21290 hardcode_shlibpath_var_CXX=no
21291 hardcode_direct_absolute_CXX=yes
21292 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21295 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21296 export_dynamic_flag_spec_CXX='${wl}-E'
21297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21299 output_verbose_link_cmd=func_echo_all
21300 else
21301 ld_shlibs_CXX=no
21305 osf3* | osf4* | osf5*)
21306 case $cc_basename in
21307 KCC*)
21308 # Kuck and Associates, Inc. (KAI) C++ Compiler
21310 # KCC will only create a shared library if the output file
21311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21312 # to its proper name (with version) after linking.
21313 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'
21315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21316 hardcode_libdir_separator_CXX=:
21318 # Archives containing C++ object files must be created using
21319 # the KAI C++ compiler.
21320 case $host in
21321 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21322 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21323 esac
21325 RCC*)
21326 # Rational C++ 2.4.1
21327 # FIXME: insert proper C++ library support
21328 ld_shlibs_CXX=no
21330 cxx*)
21331 case $host in
21332 osf3*)
21333 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21334 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'
21335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21338 allow_undefined_flag_CXX=' -expect_unresolved \*'
21339 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'
21340 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21341 echo "-hidden">> $lib.exp~
21342 $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~
21343 $RM $lib.exp'
21344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21346 esac
21348 hardcode_libdir_separator_CXX=:
21350 # Commands to make compiler produce verbose output that lists
21351 # what "hidden" libraries, object files and flags are used when
21352 # linking a shared library.
21354 # There doesn't appear to be a way to prevent this compiler from
21355 # explicitly linking system object files so we need to strip them
21356 # from the output so that they don't get included in the library
21357 # dependencies.
21358 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"'
21361 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21362 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21363 case $host in
21364 osf3*)
21365 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'
21368 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'
21370 esac
21372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21373 hardcode_libdir_separator_CXX=:
21375 # Commands to make compiler produce verbose output that lists
21376 # what "hidden" libraries, object files and flags are used when
21377 # linking a shared library.
21378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21380 else
21381 # FIXME: insert proper C++ library support
21382 ld_shlibs_CXX=no
21385 esac
21388 psos*)
21389 # FIXME: insert proper C++ library support
21390 ld_shlibs_CXX=no
21393 sunos4*)
21394 case $cc_basename in
21395 CC*)
21396 # Sun C++ 4.x
21397 # FIXME: insert proper C++ library support
21398 ld_shlibs_CXX=no
21400 lcc*)
21401 # Lucid
21402 # FIXME: insert proper C++ library support
21403 ld_shlibs_CXX=no
21406 # FIXME: insert proper C++ library support
21407 ld_shlibs_CXX=no
21409 esac
21412 solaris*)
21413 case $cc_basename in
21414 CC*)
21415 # Sun C++ 4.2, 5.x and Centerline C++
21416 archive_cmds_need_lc_CXX=yes
21417 no_undefined_flag_CXX=' -zdefs'
21418 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21419 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21420 $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'
21422 hardcode_libdir_flag_spec_CXX='-R$libdir'
21423 hardcode_shlibpath_var_CXX=no
21424 case $host_os in
21425 solaris2.[0-5] | solaris2.[0-5].*) ;;
21427 # The compiler driver will combine and reorder linker options,
21428 # but understands `-z linker_flag'.
21429 # Supported since Solaris 2.6 (maybe 2.5.1?)
21430 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21432 esac
21433 link_all_deplibs_CXX=yes
21435 output_verbose_link_cmd='func_echo_all'
21437 # Archives containing C++ object files must be created using
21438 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21439 # necessary to make sure instantiated templates are included
21440 # in the archive.
21441 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21443 gcx*)
21444 # Green Hills C++ Compiler
21445 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21447 # The C++ compiler must be used to create the archive.
21448 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21451 # GNU C++ compiler with Solaris linker
21452 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21453 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21454 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21455 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21456 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21457 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21459 # Commands to make compiler produce verbose output that lists
21460 # what "hidden" libraries, object files and flags are used when
21461 # linking a shared library.
21462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21463 else
21464 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21465 # platform.
21466 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21467 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21468 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21470 # Commands to make compiler produce verbose output that lists
21471 # what "hidden" libraries, object files and flags are used when
21472 # linking a shared library.
21473 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21476 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21477 case $host_os in
21478 solaris2.[0-5] | solaris2.[0-5].*) ;;
21480 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21482 esac
21485 esac
21488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21489 no_undefined_flag_CXX='${wl}-z,text'
21490 archive_cmds_need_lc_CXX=no
21491 hardcode_shlibpath_var_CXX=no
21492 runpath_var='LD_RUN_PATH'
21494 case $cc_basename in
21495 CC*)
21496 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21497 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21500 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21501 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21503 esac
21506 sysv5* | sco3.2v5* | sco5v6*)
21507 # Note: We can NOT use -z defs as we might desire, because we do not
21508 # link with -lc, and that would cause any symbols used from libc to
21509 # always be unresolved, which means just about no library would
21510 # ever link correctly. If we're not using GNU ld we use -z text
21511 # though, which does catch some bad symbols but isn't as heavy-handed
21512 # as -z defs.
21513 no_undefined_flag_CXX='${wl}-z,text'
21514 allow_undefined_flag_CXX='${wl}-z,nodefs'
21515 archive_cmds_need_lc_CXX=no
21516 hardcode_shlibpath_var_CXX=no
21517 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21518 hardcode_libdir_separator_CXX=':'
21519 link_all_deplibs_CXX=yes
21520 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21521 runpath_var='LD_RUN_PATH'
21523 case $cc_basename in
21524 CC*)
21525 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21526 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21527 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21528 '"$old_archive_cmds_CXX"
21529 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21530 '"$reload_cmds_CXX"
21533 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21534 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21536 esac
21539 tandem*)
21540 case $cc_basename in
21541 NCC*)
21542 # NonStop-UX NCC 3.20
21543 # FIXME: insert proper C++ library support
21544 ld_shlibs_CXX=no
21547 # FIXME: insert proper C++ library support
21548 ld_shlibs_CXX=no
21550 esac
21553 vxworks*)
21554 # For VxWorks ports, we assume the use of a GNU linker with
21555 # standard elf conventions.
21556 ld_shlibs_CXX=yes
21560 # FIXME: insert proper C++ library support
21561 ld_shlibs_CXX=no
21563 esac
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21566 $as_echo "$ld_shlibs_CXX" >&6; }
21567 test "$ld_shlibs_CXX" = no && can_build_shared=no
21569 GCC_CXX="$GXX"
21570 LD_CXX="$LD"
21572 ## CAVEAT EMPTOR:
21573 ## There is no encapsulation within the following macros, do not change
21574 ## the running order or otherwise move them around unless you know exactly
21575 ## what you are doing...
21576 # Dependencies to place before and after the object being linked:
21577 predep_objects_CXX=
21578 postdep_objects_CXX=
21579 predeps_CXX=
21580 postdeps_CXX=
21581 compiler_lib_search_path_CXX=
21583 cat > conftest.$ac_ext <<_LT_EOF
21584 class Foo
21586 public:
21587 Foo (void) { a = 0; }
21588 private:
21589 int a;
21591 _LT_EOF
21593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21594 (eval $ac_compile) 2>&5
21595 ac_status=$?
21596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21597 test $ac_status = 0; }; then
21598 # Parse the compiler output and extract the necessary
21599 # objects, libraries and library flags.
21601 # Sentinel used to keep track of whether or not we are before
21602 # the conftest object file.
21603 pre_test_object_deps_done=no
21605 for p in `eval "$output_verbose_link_cmd"`; do
21606 case $p in
21608 -L* | -R* | -l*)
21609 # Some compilers place space between "-{L,R}" and the path.
21610 # Remove the space.
21611 if test $p = "-L" ||
21612 test $p = "-R"; then
21613 prev=$p
21614 continue
21615 else
21616 prev=
21619 if test "$pre_test_object_deps_done" = no; then
21620 case $p in
21621 -L* | -R*)
21622 # Internal compiler library paths should come after those
21623 # provided the user. The postdeps already come after the
21624 # user supplied libs so there is no need to process them.
21625 if test -z "$compiler_lib_search_path_CXX"; then
21626 compiler_lib_search_path_CXX="${prev}${p}"
21627 else
21628 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21631 # The "-l" case would never come before the object being
21632 # linked, so don't bother handling this case.
21633 esac
21634 else
21635 if test -z "$postdeps_CXX"; then
21636 postdeps_CXX="${prev}${p}"
21637 else
21638 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21643 *.$objext)
21644 # This assumes that the test object file only shows up
21645 # once in the compiler output.
21646 if test "$p" = "conftest.$objext"; then
21647 pre_test_object_deps_done=yes
21648 continue
21651 if test "$pre_test_object_deps_done" = no; then
21652 if test -z "$predep_objects_CXX"; then
21653 predep_objects_CXX="$p"
21654 else
21655 predep_objects_CXX="$predep_objects_CXX $p"
21657 else
21658 if test -z "$postdep_objects_CXX"; then
21659 postdep_objects_CXX="$p"
21660 else
21661 postdep_objects_CXX="$postdep_objects_CXX $p"
21666 *) ;; # Ignore the rest.
21668 esac
21669 done
21671 # Clean up.
21672 rm -f a.out a.exe
21673 else
21674 echo "libtool.m4: error: problem compiling CXX test program"
21677 $RM -f confest.$objext
21679 # PORTME: override above test on systems where it is broken
21680 case $host_os in
21681 interix[3-9]*)
21682 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21683 # hack all around it, let's just trust "g++" to DTRT.
21684 predep_objects_CXX=
21685 postdep_objects_CXX=
21686 postdeps_CXX=
21689 linux*)
21690 case `$CC -V 2>&1 | sed 5q` in
21691 *Sun\ C*)
21692 # Sun C++ 5.9
21694 # The more standards-conforming stlport4 library is
21695 # incompatible with the Cstd library. Avoid specifying
21696 # it if it's in CXXFLAGS. Ignore libCrun as
21697 # -library=stlport4 depends on it.
21698 case " $CXX $CXXFLAGS " in
21699 *" -library=stlport4 "*)
21700 solaris_use_stlport4=yes
21702 esac
21704 if test "$solaris_use_stlport4" != yes; then
21705 postdeps_CXX='-library=Cstd -library=Crun'
21708 esac
21711 solaris*)
21712 case $cc_basename in
21713 CC*)
21714 # The more standards-conforming stlport4 library is
21715 # incompatible with the Cstd library. Avoid specifying
21716 # it if it's in CXXFLAGS. Ignore libCrun as
21717 # -library=stlport4 depends on it.
21718 case " $CXX $CXXFLAGS " in
21719 *" -library=stlport4 "*)
21720 solaris_use_stlport4=yes
21722 esac
21724 # Adding this requires a known-good setup of shared libraries for
21725 # Sun compiler versions before 5.6, else PIC objects from an old
21726 # archive will be linked into the output, leading to subtle bugs.
21727 if test "$solaris_use_stlport4" != yes; then
21728 postdeps_CXX='-library=Cstd -library=Crun'
21731 esac
21733 esac
21736 case " $postdeps_CXX " in
21737 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21738 esac
21739 compiler_lib_search_dirs_CXX=
21740 if test -n "${compiler_lib_search_path_CXX}"; then
21741 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21774 lt_prog_compiler_wl_CXX=
21775 lt_prog_compiler_pic_CXX=
21776 lt_prog_compiler_static_CXX=
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21779 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21781 # C++ specific cases for pic, static, wl, etc.
21782 if test "$GXX" = yes; then
21783 lt_prog_compiler_wl_CXX='-Wl,'
21784 lt_prog_compiler_static_CXX='-static'
21786 case $host_os in
21787 aix*)
21788 # All AIX code is PIC.
21789 if test "$host_cpu" = ia64; then
21790 # AIX 5 now supports IA64 processor
21791 lt_prog_compiler_static_CXX='-Bstatic'
21793 lt_prog_compiler_pic_CXX='-fPIC'
21796 amigaos*)
21797 case $host_cpu in
21798 powerpc)
21799 # see comment about AmigaOS4 .so support
21800 lt_prog_compiler_pic_CXX='-fPIC'
21802 m68k)
21803 # FIXME: we need at least 68020 code to build shared libraries, but
21804 # adding the `-m68020' flag to GCC prevents building anything better,
21805 # like `-m68040'.
21806 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21808 esac
21811 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21812 # PIC is the default for these OSes.
21814 mingw* | cygwin* | os2* | pw32* | cegcc*)
21815 # This hack is so that the source file can tell whether it is being
21816 # built for inclusion in a dll (and should export symbols for example).
21817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21818 # (--disable-auto-import) libraries
21819 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21821 darwin* | rhapsody*)
21822 # PIC is the default on this platform
21823 # Common symbols not allowed in MH_DYLIB files
21824 lt_prog_compiler_pic_CXX='-fno-common'
21826 *djgpp*)
21827 # DJGPP does not support shared libraries at all
21828 lt_prog_compiler_pic_CXX=
21830 haiku*)
21831 # PIC is the default for Haiku.
21832 # The "-static" flag exists, but is broken.
21833 lt_prog_compiler_static_CXX=
21835 interix[3-9]*)
21836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21837 # Instead, we relocate shared libraries at runtime.
21839 sysv4*MP*)
21840 if test -d /usr/nec; then
21841 lt_prog_compiler_pic_CXX=-Kconform_pic
21844 hpux*)
21845 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21846 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21847 # sets the default TLS model and affects inlining.
21848 case $host_cpu in
21849 hppa*64*)
21852 lt_prog_compiler_pic_CXX='-fPIC'
21854 esac
21856 *qnx* | *nto*)
21857 # QNX uses GNU C++, but need to define -shared option too, otherwise
21858 # it will coredump.
21859 lt_prog_compiler_pic_CXX='-fPIC -shared'
21862 lt_prog_compiler_pic_CXX='-fPIC'
21864 esac
21865 else
21866 case $host_os in
21867 aix[4-9]*)
21868 # All AIX code is PIC.
21869 if test "$host_cpu" = ia64; then
21870 # AIX 5 now supports IA64 processor
21871 lt_prog_compiler_static_CXX='-Bstatic'
21872 else
21873 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21876 chorus*)
21877 case $cc_basename in
21878 cxch68*)
21879 # Green Hills C++ Compiler
21880 # _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"
21882 esac
21884 dgux*)
21885 case $cc_basename in
21886 ec++*)
21887 lt_prog_compiler_pic_CXX='-KPIC'
21889 ghcx*)
21890 # Green Hills C++ Compiler
21891 lt_prog_compiler_pic_CXX='-pic'
21895 esac
21897 freebsd* | dragonfly*)
21898 # FreeBSD uses GNU C++
21900 hpux9* | hpux10* | hpux11*)
21901 case $cc_basename in
21902 CC*)
21903 lt_prog_compiler_wl_CXX='-Wl,'
21904 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21905 if test "$host_cpu" != ia64; then
21906 lt_prog_compiler_pic_CXX='+Z'
21909 aCC*)
21910 lt_prog_compiler_wl_CXX='-Wl,'
21911 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21912 case $host_cpu in
21913 hppa*64*|ia64*)
21914 # +Z the default
21917 lt_prog_compiler_pic_CXX='+Z'
21919 esac
21923 esac
21925 interix*)
21926 # This is c89, which is MS Visual C++ (no shared libs)
21927 # Anyone wants to do a port?
21929 irix5* | irix6* | nonstopux*)
21930 case $cc_basename in
21931 CC*)
21932 lt_prog_compiler_wl_CXX='-Wl,'
21933 lt_prog_compiler_static_CXX='-non_shared'
21934 # CC pic flag -KPIC is the default.
21938 esac
21940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21941 case $cc_basename in
21942 KCC*)
21943 # KAI C++ Compiler
21944 lt_prog_compiler_wl_CXX='--backend -Wl,'
21945 lt_prog_compiler_pic_CXX='-fPIC'
21947 ecpc* )
21948 # old Intel C++ for x86_64 which still supported -KPIC.
21949 lt_prog_compiler_wl_CXX='-Wl,'
21950 lt_prog_compiler_pic_CXX='-KPIC'
21951 lt_prog_compiler_static_CXX='-static'
21953 icpc* )
21954 # Intel C++, used to be incompatible with GCC.
21955 # ICC 10 doesn't accept -KPIC any more.
21956 lt_prog_compiler_wl_CXX='-Wl,'
21957 lt_prog_compiler_pic_CXX='-fPIC'
21958 lt_prog_compiler_static_CXX='-static'
21960 pgCC* | pgcpp*)
21961 # Portland Group C++ compiler
21962 lt_prog_compiler_wl_CXX='-Wl,'
21963 lt_prog_compiler_pic_CXX='-fpic'
21964 lt_prog_compiler_static_CXX='-Bstatic'
21966 cxx*)
21967 # Compaq C++
21968 # Make sure the PIC flag is empty. It appears that all Alpha
21969 # Linux and Compaq Tru64 Unix objects are PIC.
21970 lt_prog_compiler_pic_CXX=
21971 lt_prog_compiler_static_CXX='-non_shared'
21973 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21974 # IBM XL 8.0, 9.0 on PPC and BlueGene
21975 lt_prog_compiler_wl_CXX='-Wl,'
21976 lt_prog_compiler_pic_CXX='-qpic'
21977 lt_prog_compiler_static_CXX='-qstaticlink'
21980 case `$CC -V 2>&1 | sed 5q` in
21981 *Sun\ C*)
21982 # Sun C++ 5.9
21983 lt_prog_compiler_pic_CXX='-KPIC'
21984 lt_prog_compiler_static_CXX='-Bstatic'
21985 lt_prog_compiler_wl_CXX='-Qoption ld '
21987 esac
21989 esac
21991 lynxos*)
21993 m88k*)
21995 mvs*)
21996 case $cc_basename in
21997 cxx*)
21998 lt_prog_compiler_pic_CXX='-W c,exportall'
22002 esac
22004 netbsd*)
22006 *qnx* | *nto*)
22007 # QNX uses GNU C++, but need to define -shared option too, otherwise
22008 # it will coredump.
22009 lt_prog_compiler_pic_CXX='-fPIC -shared'
22011 osf3* | osf4* | osf5*)
22012 case $cc_basename in
22013 KCC*)
22014 lt_prog_compiler_wl_CXX='--backend -Wl,'
22016 RCC*)
22017 # Rational C++ 2.4.1
22018 lt_prog_compiler_pic_CXX='-pic'
22020 cxx*)
22021 # Digital/Compaq C++
22022 lt_prog_compiler_wl_CXX='-Wl,'
22023 # Make sure the PIC flag is empty. It appears that all Alpha
22024 # Linux and Compaq Tru64 Unix objects are PIC.
22025 lt_prog_compiler_pic_CXX=
22026 lt_prog_compiler_static_CXX='-non_shared'
22030 esac
22032 psos*)
22034 solaris*)
22035 case $cc_basename in
22036 CC*)
22037 # Sun C++ 4.2, 5.x and Centerline C++
22038 lt_prog_compiler_pic_CXX='-KPIC'
22039 lt_prog_compiler_static_CXX='-Bstatic'
22040 lt_prog_compiler_wl_CXX='-Qoption ld '
22042 gcx*)
22043 # Green Hills C++ Compiler
22044 lt_prog_compiler_pic_CXX='-PIC'
22048 esac
22050 sunos4*)
22051 case $cc_basename in
22052 CC*)
22053 # Sun C++ 4.x
22054 lt_prog_compiler_pic_CXX='-pic'
22055 lt_prog_compiler_static_CXX='-Bstatic'
22057 lcc*)
22058 # Lucid
22059 lt_prog_compiler_pic_CXX='-pic'
22063 esac
22065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22066 case $cc_basename in
22067 CC*)
22068 lt_prog_compiler_wl_CXX='-Wl,'
22069 lt_prog_compiler_pic_CXX='-KPIC'
22070 lt_prog_compiler_static_CXX='-Bstatic'
22072 esac
22074 tandem*)
22075 case $cc_basename in
22076 NCC*)
22077 # NonStop-UX NCC 3.20
22078 lt_prog_compiler_pic_CXX='-KPIC'
22082 esac
22084 vxworks*)
22087 lt_prog_compiler_can_build_shared_CXX=no
22089 esac
22092 case $host_os in
22093 # For platforms which do not support PIC, -DPIC is meaningless:
22094 *djgpp*)
22095 lt_prog_compiler_pic_CXX=
22098 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22100 esac
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22102 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22107 # Check to make sure the PIC flag actually works.
22109 if test -n "$lt_prog_compiler_pic_CXX"; then
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22111 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22112 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22113 $as_echo_n "(cached) " >&6
22114 else
22115 lt_cv_prog_compiler_pic_works_CXX=no
22116 ac_outfile=conftest.$ac_objext
22117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22118 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22119 # Insert the option either (1) after the last *FLAGS variable, or
22120 # (2) before a word containing "conftest.", or (3) at the end.
22121 # Note that $ac_compile itself does not contain backslashes and begins
22122 # with a dollar sign (not a hyphen), so the echo should work correctly.
22123 # The option is referenced via a variable to avoid confusing sed.
22124 lt_compile=`echo "$ac_compile" | $SED \
22125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22127 -e 's:$: $lt_compiler_flag:'`
22128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22129 (eval "$lt_compile" 2>conftest.err)
22130 ac_status=$?
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 if (exit $ac_status) && test -s "$ac_outfile"; then
22134 # The compiler can only warn and ignore the option if not recognized
22135 # So say no if there are warnings other than the usual output.
22136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22139 lt_cv_prog_compiler_pic_works_CXX=yes
22142 $RM conftest*
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22146 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22148 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22149 case $lt_prog_compiler_pic_CXX in
22150 "" | " "*) ;;
22151 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22152 esac
22153 else
22154 lt_prog_compiler_pic_CXX=
22155 lt_prog_compiler_can_build_shared_CXX=no
22163 # Check to make sure the static flag actually works.
22165 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22167 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22168 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22169 $as_echo_n "(cached) " >&6
22170 else
22171 lt_cv_prog_compiler_static_works_CXX=no
22172 save_LDFLAGS="$LDFLAGS"
22173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22176 # The linker can only warn and ignore the option if not recognized
22177 # So say no if there are warnings
22178 if test -s conftest.err; then
22179 # Append any errors to the config.log.
22180 cat conftest.err 1>&5
22181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22183 if diff conftest.exp conftest.er2 >/dev/null; then
22184 lt_cv_prog_compiler_static_works_CXX=yes
22186 else
22187 lt_cv_prog_compiler_static_works_CXX=yes
22190 $RM -r conftest*
22191 LDFLAGS="$save_LDFLAGS"
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22195 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22197 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22199 else
22200 lt_prog_compiler_static_CXX=
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22208 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 lt_cv_prog_compiler_c_o_CXX=no
22212 $RM -r conftest 2>/dev/null
22213 mkdir conftest
22214 cd conftest
22215 mkdir out
22216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22218 lt_compiler_flag="-o out/conftest2.$ac_objext"
22219 # Insert the option either (1) after the last *FLAGS variable, or
22220 # (2) before a word containing "conftest.", or (3) at the end.
22221 # Note that $ac_compile itself does not contain backslashes and begins
22222 # with a dollar sign (not a hyphen), so the echo should work correctly.
22223 lt_compile=`echo "$ac_compile" | $SED \
22224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22226 -e 's:$: $lt_compiler_flag:'`
22227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22228 (eval "$lt_compile" 2>out/conftest.err)
22229 ac_status=$?
22230 cat out/conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22233 then
22234 # The compiler can only warn and ignore the option if not recognized
22235 # So say no if there are warnings
22236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22239 lt_cv_prog_compiler_c_o_CXX=yes
22242 chmod u+w . 2>&5
22243 $RM conftest*
22244 # SGI C++ compiler will create directory out/ii_files/ for
22245 # template instantiation
22246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22247 $RM out/* && rmdir out
22248 cd ..
22249 $RM -r conftest
22250 $RM conftest*
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22254 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22260 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22261 $as_echo_n "(cached) " >&6
22262 else
22263 lt_cv_prog_compiler_c_o_CXX=no
22264 $RM -r conftest 2>/dev/null
22265 mkdir conftest
22266 cd conftest
22267 mkdir out
22268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22270 lt_compiler_flag="-o out/conftest2.$ac_objext"
22271 # Insert the option either (1) after the last *FLAGS variable, or
22272 # (2) before a word containing "conftest.", or (3) at the end.
22273 # Note that $ac_compile itself does not contain backslashes and begins
22274 # with a dollar sign (not a hyphen), so the echo should work correctly.
22275 lt_compile=`echo "$ac_compile" | $SED \
22276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22278 -e 's:$: $lt_compiler_flag:'`
22279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22280 (eval "$lt_compile" 2>out/conftest.err)
22281 ac_status=$?
22282 cat out/conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22285 then
22286 # The compiler can only warn and ignore the option if not recognized
22287 # So say no if there are warnings
22288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22291 lt_cv_prog_compiler_c_o_CXX=yes
22294 chmod u+w . 2>&5
22295 $RM conftest*
22296 # SGI C++ compiler will create directory out/ii_files/ for
22297 # template instantiation
22298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22299 $RM out/* && rmdir out
22300 cd ..
22301 $RM -r conftest
22302 $RM conftest*
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22306 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22311 hard_links="nottested"
22312 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22313 # do not overwrite the value of need_locks provided by the user
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22315 $as_echo_n "checking if we can lock with hard links... " >&6; }
22316 hard_links=yes
22317 $RM conftest*
22318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22319 touch conftest.a
22320 ln conftest.a conftest.b 2>&5 || hard_links=no
22321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22323 $as_echo "$hard_links" >&6; }
22324 if test "$hard_links" = no; then
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22327 need_locks=warn
22329 else
22330 need_locks=no
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22339 case $host_os in
22340 aix[4-9]*)
22341 # If we're using GNU nm, then we don't want the "-C" option.
22342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22343 # Also, AIX nm treats weak defined symbols like other global defined
22344 # symbols, whereas GNU nm marks them as "W".
22345 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22346 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'
22347 else
22348 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'
22351 pw32*)
22352 export_symbols_cmds_CXX="$ltdll_cmds"
22354 cygwin* | mingw* | cegcc*)
22355 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'
22358 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22360 esac
22361 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22364 $as_echo "$ld_shlibs_CXX" >&6; }
22365 test "$ld_shlibs_CXX" = no && can_build_shared=no
22367 with_gnu_ld_CXX=$with_gnu_ld
22375 # Do we need to explicitly link libc?
22377 case "x$archive_cmds_need_lc_CXX" in
22378 x|xyes)
22379 # Assume -lc should be added
22380 archive_cmds_need_lc_CXX=yes
22382 if test "$enable_shared" = yes && test "$GCC" = yes; then
22383 case $archive_cmds_CXX in
22384 *'~'*)
22385 # FIXME: we may have to deal with multi-command sequences.
22387 '$CC '*)
22388 # Test whether the compiler implicitly links with -lc since on some
22389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22390 # to ld, don't add -lc before -lgcc.
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22393 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22394 $as_echo_n "(cached) " >&6
22395 else
22396 $RM conftest*
22397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22400 (eval $ac_compile) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; } 2>conftest.err; then
22404 soname=conftest
22405 lib=conftest
22406 libobjs=conftest.$ac_objext
22407 deplibs=
22408 wl=$lt_prog_compiler_wl_CXX
22409 pic_flag=$lt_prog_compiler_pic_CXX
22410 compiler_flags=-v
22411 linker_flags=-v
22412 verstring=
22413 output_objdir=.
22414 libname=conftest
22415 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22416 allow_undefined_flag_CXX=
22417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22418 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22419 ac_status=$?
22420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22421 test $ac_status = 0; }
22422 then
22423 lt_cv_archive_cmds_need_lc_CXX=no
22424 else
22425 lt_cv_archive_cmds_need_lc_CXX=yes
22427 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22428 else
22429 cat conftest.err 1>&5
22431 $RM conftest*
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22435 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22436 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22438 esac
22441 esac
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22507 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22509 library_names_spec=
22510 libname_spec='lib$name'
22511 soname_spec=
22512 shrext_cmds=".so"
22513 postinstall_cmds=
22514 postuninstall_cmds=
22515 finish_cmds=
22516 finish_eval=
22517 shlibpath_var=
22518 shlibpath_overrides_runpath=unknown
22519 version_type=none
22520 dynamic_linker="$host_os ld.so"
22521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22522 need_lib_prefix=unknown
22523 hardcode_into_libs=no
22525 # when you set need_version to no, make sure it does not cause -set_version
22526 # flags to be left without arguments
22527 need_version=unknown
22529 case $host_os in
22530 aix3*)
22531 version_type=linux
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22533 shlibpath_var=LIBPATH
22535 # AIX 3 has no versioning support, so we append a major version to the name.
22536 soname_spec='${libname}${release}${shared_ext}$major'
22539 aix[4-9]*)
22540 version_type=linux
22541 need_lib_prefix=no
22542 need_version=no
22543 hardcode_into_libs=yes
22544 if test "$host_cpu" = ia64; then
22545 # AIX 5 supports IA64
22546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22547 shlibpath_var=LD_LIBRARY_PATH
22548 else
22549 # With GCC up to 2.95.x, collect2 would create an import file
22550 # for dependence libraries. The import file would start with
22551 # the line `#! .'. This would cause the generated library to
22552 # depend on `.', always an invalid library. This was fixed in
22553 # development snapshots of GCC prior to 3.0.
22554 case $host_os in
22555 aix4 | aix4.[01] | aix4.[01].*)
22556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22557 echo ' yes '
22558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22560 else
22561 can_build_shared=no
22564 esac
22565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22566 # soname into executable. Probably we can add versioning support to
22567 # collect2, so additional links can be useful in future.
22568 if test "$aix_use_runtimelinking" = yes; then
22569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22570 # instead of lib<name>.a to let people know that these are not
22571 # typical AIX shared libraries.
22572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22573 else
22574 # We preserve .a as extension for shared libraries through AIX4.2
22575 # and later when we are not doing run time linking.
22576 library_names_spec='${libname}${release}.a $libname.a'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22579 shlibpath_var=LIBPATH
22583 amigaos*)
22584 case $host_cpu in
22585 powerpc)
22586 # Since July 2007 AmigaOS4 officially supports .so libraries.
22587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22590 m68k)
22591 library_names_spec='$libname.ixlibrary $libname.a'
22592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22593 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'
22595 esac
22598 beos*)
22599 library_names_spec='${libname}${shared_ext}'
22600 dynamic_linker="$host_os ld.so"
22601 shlibpath_var=LIBRARY_PATH
22604 bsdi[45]*)
22605 version_type=linux
22606 need_version=no
22607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22608 soname_spec='${libname}${release}${shared_ext}$major'
22609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22610 shlibpath_var=LD_LIBRARY_PATH
22611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22613 # the default ld.so.conf also contains /usr/contrib/lib and
22614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22615 # libtool to hard-code these into programs
22618 cygwin* | mingw* | pw32* | cegcc*)
22619 version_type=windows
22620 shrext_cmds=".dll"
22621 need_version=no
22622 need_lib_prefix=no
22624 case $GCC,$host_os in
22625 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22626 library_names_spec='$libname.dll.a'
22627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22628 postinstall_cmds='base_file=`basename \${file}`~
22629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22630 dldir=$destdir/`dirname \$dlpath`~
22631 test -d \$dldir || mkdir -p \$dldir~
22632 $install_prog $dir/$dlname \$dldir/$dlname~
22633 chmod a+x \$dldir/$dlname~
22634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22638 dlpath=$dir/\$dldll~
22639 $RM \$dlpath'
22640 shlibpath_overrides_runpath=yes
22642 case $host_os in
22643 cygwin*)
22644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22648 mingw* | cegcc*)
22649 # MinGW DLLs use traditional 'lib' prefix
22650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22652 pw32*)
22653 # pw32 DLLs use 'pw' prefix rather than 'lib'
22654 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22656 esac
22660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22662 esac
22663 dynamic_linker='Win32 ld.exe'
22664 # FIXME: first we should search . and the directory the executable is in
22665 shlibpath_var=PATH
22668 darwin* | rhapsody*)
22669 dynamic_linker="$host_os dyld"
22670 version_type=darwin
22671 need_lib_prefix=no
22672 need_version=no
22673 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22674 soname_spec='${libname}${release}${major}$shared_ext'
22675 shlibpath_overrides_runpath=yes
22676 shlibpath_var=DYLD_LIBRARY_PATH
22677 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22682 dgux*)
22683 version_type=linux
22684 need_lib_prefix=no
22685 need_version=no
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 shlibpath_var=LD_LIBRARY_PATH
22691 freebsd* | dragonfly*)
22692 # DragonFly does not have aout. When/if they implement a new
22693 # versioning mechanism, adjust this.
22694 if test -x /usr/bin/objformat; then
22695 objformat=`/usr/bin/objformat`
22696 else
22697 case $host_os in
22698 freebsd[23].*) objformat=aout ;;
22699 *) objformat=elf ;;
22700 esac
22702 version_type=freebsd-$objformat
22703 case $version_type in
22704 freebsd-elf*)
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22706 need_version=no
22707 need_lib_prefix=no
22709 freebsd-*)
22710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22711 need_version=yes
22713 esac
22714 shlibpath_var=LD_LIBRARY_PATH
22715 case $host_os in
22716 freebsd2.*)
22717 shlibpath_overrides_runpath=yes
22719 freebsd3.[01]* | freebsdelf3.[01]*)
22720 shlibpath_overrides_runpath=yes
22721 hardcode_into_libs=yes
22723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22725 shlibpath_overrides_runpath=no
22726 hardcode_into_libs=yes
22728 *) # from 4.6 on, and DragonFly
22729 shlibpath_overrides_runpath=yes
22730 hardcode_into_libs=yes
22732 esac
22735 haiku*)
22736 version_type=linux
22737 need_lib_prefix=no
22738 need_version=no
22739 dynamic_linker="$host_os runtime_loader"
22740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22741 soname_spec='${libname}${release}${shared_ext}$major'
22742 shlibpath_var=LIBRARY_PATH
22743 shlibpath_overrides_runpath=yes
22744 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22745 hardcode_into_libs=yes
22748 hpux9* | hpux10* | hpux11*)
22749 # Give a soname corresponding to the major version so that dld.sl refuses to
22750 # link against other versions.
22751 version_type=sunos
22752 need_lib_prefix=no
22753 need_version=no
22754 case $host_cpu in
22755 ia64*)
22756 shrext_cmds='.so'
22757 hardcode_into_libs=yes
22758 dynamic_linker="$host_os dld.so"
22759 shlibpath_var=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 if test "X$HPUX_IA64_MODE" = X32; then
22764 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22765 else
22766 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22770 hppa*64*)
22771 shrext_cmds='.sl'
22772 hardcode_into_libs=yes
22773 dynamic_linker="$host_os dld.sl"
22774 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22782 shrext_cmds='.sl'
22783 dynamic_linker="$host_os dld.sl"
22784 shlibpath_var=SHLIB_PATH
22785 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787 soname_spec='${libname}${release}${shared_ext}$major'
22789 esac
22790 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22791 postinstall_cmds='chmod 555 $lib'
22792 # or fails outright, so override atomically:
22793 install_override_mode=555
22796 interix[3-9]*)
22797 version_type=linux
22798 need_lib_prefix=no
22799 need_version=no
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22808 irix5* | irix6* | nonstopux*)
22809 case $host_os in
22810 nonstopux*) version_type=nonstopux ;;
22812 if test "$lt_cv_prog_gnu_ld" = yes; then
22813 version_type=linux
22814 else
22815 version_type=irix
22816 fi ;;
22817 esac
22818 need_lib_prefix=no
22819 need_version=no
22820 soname_spec='${libname}${release}${shared_ext}$major'
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22822 case $host_os in
22823 irix5* | nonstopux*)
22824 libsuff= shlibsuff=
22827 case $LD in # libtool.m4 will add one of these switches to LD
22828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22829 libsuff= shlibsuff= libmagic=32-bit;;
22830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22831 libsuff=32 shlibsuff=N32 libmagic=N32;;
22832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22834 *) libsuff= shlibsuff= libmagic=never-match;;
22835 esac
22837 esac
22838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22839 shlibpath_overrides_runpath=no
22840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22842 hardcode_into_libs=yes
22845 # No shared lib support for Linux oldld, aout, or coff.
22846 linux*oldld* | linux*aout* | linux*coff*)
22847 dynamic_linker=no
22850 # This must be Linux ELF.
22852 # uclinux* changes (here and below) have been submitted to the libtool
22853 # project, but have not yet been accepted: they are GCC-local changes
22854 # for the time being. (See
22855 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22856 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22857 version_type=linux
22858 need_lib_prefix=no
22859 need_version=no
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 shlibpath_overrides_runpath=no
22866 # Some binutils ld are patched to set DT_RUNPATH
22867 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22868 $as_echo_n "(cached) " >&6
22869 else
22870 lt_cv_shlibpath_overrides_runpath=no
22871 save_LDFLAGS=$LDFLAGS
22872 save_libdir=$libdir
22873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22879 main ()
22883 return 0;
22885 _ACEOF
22886 if ac_fn_cxx_try_link "$LINENO"; then :
22887 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22888 lt_cv_shlibpath_overrides_runpath=yes
22891 rm -f core conftest.err conftest.$ac_objext \
22892 conftest$ac_exeext conftest.$ac_ext
22893 LDFLAGS=$save_LDFLAGS
22894 libdir=$save_libdir
22898 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22900 # This implies no fast_install, which is unacceptable.
22901 # Some rework will be needed to allow for fast_install
22902 # before this can be enabled.
22903 hardcode_into_libs=yes
22905 # Append ld.so.conf contents to the search path
22906 if test -f /etc/ld.so.conf; then
22907 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' ' '`
22908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22911 # We used to test for /lib/ld.so.1 and disable shared libraries on
22912 # powerpc, because MkLinux only supported shared libraries with the
22913 # GNU dynamic linker. Since this was broken with cross compilers,
22914 # most powerpc-linux boxes support dynamic linking these days and
22915 # people can always --disable-shared, the test was removed, and we
22916 # assume the GNU/Linux dynamic linker is in use.
22917 dynamic_linker='GNU/Linux ld.so'
22920 netbsd*)
22921 version_type=sunos
22922 need_lib_prefix=no
22923 need_version=no
22924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22927 dynamic_linker='NetBSD (a.out) ld.so'
22928 else
22929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22930 soname_spec='${libname}${release}${shared_ext}$major'
22931 dynamic_linker='NetBSD ld.elf_so'
22933 shlibpath_var=LD_LIBRARY_PATH
22934 shlibpath_overrides_runpath=yes
22935 hardcode_into_libs=yes
22938 newsos6)
22939 version_type=linux
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 shlibpath_var=LD_LIBRARY_PATH
22942 shlibpath_overrides_runpath=yes
22945 *nto* | *qnx*)
22946 version_type=qnx
22947 need_lib_prefix=no
22948 need_version=no
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22951 shlibpath_var=LD_LIBRARY_PATH
22952 shlibpath_overrides_runpath=no
22953 hardcode_into_libs=yes
22954 dynamic_linker='ldqnx.so'
22957 openbsd*)
22958 version_type=sunos
22959 sys_lib_dlsearch_path_spec="/usr/lib"
22960 need_lib_prefix=no
22961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22962 case $host_os in
22963 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22964 *) need_version=no ;;
22965 esac
22966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22968 shlibpath_var=LD_LIBRARY_PATH
22969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22970 case $host_os in
22971 openbsd2.[89] | openbsd2.[89].*)
22972 shlibpath_overrides_runpath=no
22975 shlibpath_overrides_runpath=yes
22977 esac
22978 else
22979 shlibpath_overrides_runpath=yes
22983 os2*)
22984 libname_spec='$name'
22985 shrext_cmds=".dll"
22986 need_lib_prefix=no
22987 library_names_spec='$libname${shared_ext} $libname.a'
22988 dynamic_linker='OS/2 ld.exe'
22989 shlibpath_var=LIBPATH
22992 osf3* | osf4* | osf5*)
22993 version_type=osf
22994 need_lib_prefix=no
22995 need_version=no
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23003 rdos*)
23004 dynamic_linker=no
23007 solaris*)
23008 version_type=linux
23009 need_lib_prefix=no
23010 need_version=no
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23013 shlibpath_var=LD_LIBRARY_PATH
23014 shlibpath_overrides_runpath=yes
23015 hardcode_into_libs=yes
23016 # ldd complains unless libraries are executable
23017 postinstall_cmds='chmod +x $lib'
23020 sunos4*)
23021 version_type=sunos
23022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23024 shlibpath_var=LD_LIBRARY_PATH
23025 shlibpath_overrides_runpath=yes
23026 if test "$with_gnu_ld" = yes; then
23027 need_lib_prefix=no
23029 need_version=yes
23032 sysv4 | sysv4.3*)
23033 version_type=linux
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 case $host_vendor in
23038 sni)
23039 shlibpath_overrides_runpath=no
23040 need_lib_prefix=no
23041 runpath_var=LD_RUN_PATH
23043 siemens)
23044 need_lib_prefix=no
23046 motorola)
23047 need_lib_prefix=no
23048 need_version=no
23049 shlibpath_overrides_runpath=no
23050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23052 esac
23055 sysv4*MP*)
23056 if test -d /usr/nec ;then
23057 version_type=linux
23058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23059 soname_spec='$libname${shared_ext}.$major'
23060 shlibpath_var=LD_LIBRARY_PATH
23064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23065 version_type=freebsd-elf
23066 need_lib_prefix=no
23067 need_version=no
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath=yes
23072 hardcode_into_libs=yes
23073 if test "$with_gnu_ld" = yes; then
23074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23075 else
23076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23077 case $host_os in
23078 sco3.2v5*)
23079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23081 esac
23083 sys_lib_dlsearch_path_spec='/usr/lib'
23086 tpf*)
23087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23088 version_type=linux
23089 need_lib_prefix=no
23090 need_version=no
23091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=no
23094 hardcode_into_libs=yes
23097 uts4*)
23098 version_type=linux
23099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23100 soname_spec='${libname}${release}${shared_ext}$major'
23101 shlibpath_var=LD_LIBRARY_PATH
23104 # Shared libraries for VwWorks, >= 7 only at this stage
23105 # and (fpic) still incompatible with "large" code models
23106 # in a few configurations. Only for RTP mode in any case,
23107 # and upon explicit request at configure time.
23108 vxworks7*)
23109 dynamic_linker=no
23110 case ${with_multisubdir}-${enable_shared} in
23111 *large*)
23113 *mrtp*-yes)
23114 version_type=linux
23115 need_lib_prefix=no
23116 need_version=no
23117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 dynamic_linker="$host_os module_loader"
23121 esac
23124 dynamic_linker=no
23126 esac
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23128 $as_echo "$dynamic_linker" >&6; }
23129 test "$dynamic_linker" = no && can_build_shared=no
23131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23132 if test "$GCC" = yes; then
23133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23181 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23182 hardcode_action_CXX=
23183 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23184 test -n "$runpath_var_CXX" ||
23185 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23187 # We can hardcode non-existent directories.
23188 if test "$hardcode_direct_CXX" != no &&
23189 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23190 # have to relink, otherwise we might link with an installed library
23191 # when we should be linking with a yet-to-be-installed one
23192 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23193 test "$hardcode_minus_L_CXX" != no; then
23194 # Linking always hardcodes the temporary library directory.
23195 hardcode_action_CXX=relink
23196 else
23197 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23198 hardcode_action_CXX=immediate
23200 else
23201 # We cannot hardcode anything, or else we can only hardcode existing
23202 # directories.
23203 hardcode_action_CXX=unsupported
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23206 $as_echo "$hardcode_action_CXX" >&6; }
23208 if test "$hardcode_action_CXX" = relink ||
23209 test "$inherit_rpath_CXX" = yes; then
23210 # Fast installation is not supported
23211 enable_fast_install=no
23212 elif test "$shlibpath_overrides_runpath" = yes ||
23213 test "$enable_shared" = no; then
23214 # Fast installation is not necessary
23215 enable_fast_install=needless
23224 fi # test -n "$compiler"
23226 CC=$lt_save_CC
23227 LDCXX=$LD
23228 LD=$lt_save_LD
23229 GCC=$lt_save_GCC
23230 with_gnu_ld=$lt_save_with_gnu_ld
23231 lt_cv_path_LDCXX=$lt_cv_path_LD
23232 lt_cv_path_LD=$lt_save_path_LD
23233 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23234 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23235 fi # test "$_lt_caught_CXX_error" != yes
23237 ac_ext=cpp
23238 ac_cpp='$CXXCPP $CPPFLAGS'
23239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23258 # Only expand once:
23264 # Identify the assembler which will work hand-in-glove with the newly
23265 # built GCC, so that we can examine its features. This is the assembler
23266 # which will be driven by the driver program.
23268 # If build != host, and we aren't building gas in-tree, we identify a
23269 # build->target assembler and hope that it will have the same features
23270 # as the host->target assembler we'll be using.
23271 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23273 if ${gcc_cv_as+:} false; then :
23275 else
23277 if test -x "$DEFAULT_ASSEMBLER"; then
23278 gcc_cv_as="$DEFAULT_ASSEMBLER"
23279 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23280 && test -f ../gas/Makefile \
23281 && test x$build = x$host; then
23282 gcc_cv_as=../gas/as-new$build_exeext
23283 elif test -x as$build_exeext; then
23284 # Build using assembler in the current directory.
23285 gcc_cv_as=./as$build_exeext
23286 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23287 gcc_cv_as="$AS_FOR_TARGET"
23288 else
23289 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23290 set dummy $AS_FOR_TARGET; ac_word=$2
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23292 $as_echo_n "checking for $ac_word... " >&6; }
23293 if ${ac_cv_path_gcc_cv_as+:} false; then :
23294 $as_echo_n "(cached) " >&6
23295 else
23296 case $gcc_cv_as in
23297 [\\/]* | ?:[\\/]*)
23298 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302 for as_dir in $PATH
23304 IFS=$as_save_IFS
23305 test -z "$as_dir" && as_dir=.
23306 for ac_exec_ext in '' $ac_executable_extensions; do
23307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23308 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23310 break 2
23312 done
23313 done
23314 IFS=$as_save_IFS
23317 esac
23319 gcc_cv_as=$ac_cv_path_gcc_cv_as
23320 if test -n "$gcc_cv_as"; then
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23322 $as_echo "$gcc_cv_as" >&6; }
23323 else
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23325 $as_echo "no" >&6; }
23332 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23334 case "$ORIGINAL_AS_FOR_TARGET" in
23335 ./as | ./as$build_exeext) ;;
23336 *) ac_config_files="$ac_config_files as:exec-tool.in"
23338 esac
23340 default_ld=
23341 # Check whether --enable-ld was given.
23342 if test "${enable_ld+set}" = set; then :
23343 enableval=$enable_ld; case "${enableval}" in
23345 default_ld=ld.gold
23347 esac
23351 install_gold_as_default=no
23352 # Check whether --enable-gold was given.
23353 if test "${enable_gold+set}" = set; then :
23354 enableval=$enable_gold; case "${enableval}" in
23355 default)
23356 install_gold_as_default=yes
23358 yes)
23359 if test x${default_ld} != x; then
23360 install_gold_as_default=yes
23366 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23368 esac
23372 # Identify the linker which will work hand-in-glove with the newly
23373 # built GCC, so that we can examine its features. This is the linker
23374 # which will be driven by the driver program.
23376 # If build != host, and we aren't building gas in-tree, we identify a
23377 # build->target linker and hope that it will have the same features
23378 # as the host->target linker we'll be using.
23379 gcc_cv_gld_major_version=
23380 gcc_cv_gld_minor_version=
23381 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23382 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23383 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23385 if ${gcc_cv_ld+:} false; then :
23387 else
23389 if test -x "$DEFAULT_LINKER"; then
23390 gcc_cv_ld="$DEFAULT_LINKER"
23391 elif test $install_gold_as_default = yes \
23392 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23393 && test -f ../gold/Makefile \
23394 && test x$build = x$host; then
23395 gcc_cv_ld=../gold/ld-new$build_exeext
23396 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23397 && test -f ../ld/Makefile \
23398 && test x$build = x$host; then
23399 gcc_cv_ld=../ld/ld-new$build_exeext
23400 elif test -x collect-ld$build_exeext; then
23401 # Build using linker in the current directory.
23402 gcc_cv_ld=./collect-ld$build_exeext
23403 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23404 gcc_cv_ld="$LD_FOR_TARGET"
23405 else
23406 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23407 set dummy $LD_FOR_TARGET; ac_word=$2
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23409 $as_echo_n "checking for $ac_word... " >&6; }
23410 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23411 $as_echo_n "(cached) " >&6
23412 else
23413 case $gcc_cv_ld in
23414 [\\/]* | ?:[\\/]*)
23415 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23419 for as_dir in $PATH
23421 IFS=$as_save_IFS
23422 test -z "$as_dir" && as_dir=.
23423 for ac_exec_ext in '' $ac_executable_extensions; do
23424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23425 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23427 break 2
23429 done
23430 done
23431 IFS=$as_save_IFS
23434 esac
23436 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23437 if test -n "$gcc_cv_ld"; then
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23439 $as_echo "$gcc_cv_ld" >&6; }
23440 else
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23442 $as_echo "no" >&6; }
23449 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23450 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23451 # if the PLUGIN_LD is set ld-new, just have it as ld
23452 # as that is the installed named.
23453 if test x$PLUGIN_LD_SUFFIX = xld-new \
23454 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23455 PLUGIN_LD_SUFFIX=ld
23458 # Check whether --with-plugin-ld was given.
23459 if test "${with_plugin_ld+set}" = set; then :
23460 withval=$with_plugin_ld; if test x"$withval" != x; then
23461 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23462 PLUGIN_LD_SUFFIX="$withval"
23468 cat >>confdefs.h <<_ACEOF
23469 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23470 _ACEOF
23473 # Check to see if we are using gold instead of ld
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23475 $as_echo_n "checking whether we are using gold... " >&6; }
23476 ld_is_gold=no
23477 if test x$gcc_cv_ld != x; then
23478 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23479 | grep "GNU gold" > /dev/null; then
23480 ld_is_gold=yes
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23484 $as_echo "$ld_is_gold" >&6; }
23486 # Check to see if we are using mold instead of ld
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23488 $as_echo_n "checking whether we are using mold... " >&6; }
23489 ld_is_mold=no
23490 if test x$gcc_cv_ld != x; then
23491 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23492 | grep "mold" > /dev/null; then
23493 ld_is_mold=yes
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23497 $as_echo "$ld_is_mold" >&6; }
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23501 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23502 # Check to see if default ld is not gold, but gold is
23503 # available and has support for split stack. If gcc was configured
23504 # with gold then no checking is done.
23506 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23508 # For platforms other than powerpc64*, enable as appropriate.
23510 gold_non_default=no
23511 ld_gold=`which ${gcc_cv_ld}.gold`
23512 # Make sure this gold has minimal split stack support
23513 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23514 ld_vers=`$ld_gold --version | sed 1q`
23515 gold_vers=`echo $ld_vers | sed -n \
23516 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23517 case $target in
23518 # check that the gold version contains the complete split stack support
23519 # on powerpc64 big and little endian
23520 powerpc64*-*-*)
23521 case "$gold_vers" in
23522 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23524 *) gold_non_default=no
23526 esac
23528 esac
23530 if test $gold_non_default = yes; then
23532 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23537 $as_echo "$gold_non_default" >&6; }
23539 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23541 case "$ORIGINAL_LD_FOR_TARGET" in
23542 ./collect-ld | ./collect-ld$build_exeext) ;;
23543 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23545 esac
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23548 $as_echo_n "checking what linker to use... " >&6; }
23549 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23550 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23551 # Single tree build which includes ld. We want to prefer it
23552 # over whatever linker top-level may have detected, since
23553 # we'll use what we're building after installation anyway.
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23555 $as_echo "newly built ld" >&6; }
23556 in_tree_ld=yes
23557 in_tree_ld_is_elf=no
23558 if (grep 'EMUL = .*elf' ../ld/Makefile \
23559 || grep 'EMUL = .*linux' ../ld/Makefile \
23560 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23561 in_tree_ld_is_elf=yes
23562 elif test "$ld_is_gold" = yes; then
23563 in_tree_ld_is_elf=yes
23565 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
23567 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23568 if test x$gcc_cv_gld_version != x; then
23569 break
23571 done
23572 case $gcc_cv_gld_version in
23573 VERSION=[0-9]*) ;;
23574 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23575 esac
23576 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23577 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23578 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23579 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23580 else
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23582 $as_echo "$gcc_cv_ld" >&6; }
23583 in_tree_ld=no
23584 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23585 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23586 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23592 # Figure out what nm we will be using.
23593 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23594 if ${gcc_cv_nm+:} false; then :
23596 else
23598 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23599 && test -f ../binutils/Makefile \
23600 && test x$build = x$host; then
23601 gcc_cv_nm=../binutils/nm-new$build_exeext
23602 elif test -x nm$build_exeext; then
23603 gcc_cv_nm=./nm$build_exeext
23604 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23605 gcc_cv_nm="$NM_FOR_TARGET"
23606 else
23607 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23608 set dummy $NM_FOR_TARGET; ac_word=$2
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23610 $as_echo_n "checking for $ac_word... " >&6; }
23611 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23612 $as_echo_n "(cached) " >&6
23613 else
23614 case $gcc_cv_nm in
23615 [\\/]* | ?:[\\/]*)
23616 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23620 for as_dir in $PATH
23622 IFS=$as_save_IFS
23623 test -z "$as_dir" && as_dir=.
23624 for ac_exec_ext in '' $ac_executable_extensions; do
23625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23626 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23628 break 2
23630 done
23631 done
23632 IFS=$as_save_IFS
23635 esac
23637 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23638 if test -n "$gcc_cv_nm"; then
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23640 $as_echo "$gcc_cv_nm" >&6; }
23641 else
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23643 $as_echo "no" >&6; }
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23651 $as_echo_n "checking what nm to use... " >&6; }
23652 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23653 # Single tree build which includes binutils.
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23655 $as_echo "newly built nm" >&6; }
23656 in_tree_nm=yes
23657 else
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23659 $as_echo "$gcc_cv_nm" >&6; }
23660 in_tree_nm=no
23663 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23665 case "$ORIGINAL_NM_FOR_TARGET" in
23666 ./nm | ./nm$build_exeext) ;;
23667 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23669 esac
23672 # Figure out what objdump we will be using.
23673 if ${gcc_cv_objdump+:} false; then :
23675 else
23677 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23678 && test -f ../binutils/Makefile \
23679 && test x$build = x$host; then
23680 # Single tree build which includes binutils.
23681 gcc_cv_objdump=../binutils/objdump$build_exeext
23682 elif test -x objdump$build_exeext; then
23683 gcc_cv_objdump=./objdump$build_exeext
23684 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23685 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23686 else
23687 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23688 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23690 $as_echo_n "checking for $ac_word... " >&6; }
23691 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23692 $as_echo_n "(cached) " >&6
23693 else
23694 case $gcc_cv_objdump in
23695 [\\/]* | ?:[\\/]*)
23696 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23700 for as_dir in $PATH
23702 IFS=$as_save_IFS
23703 test -z "$as_dir" && as_dir=.
23704 for ac_exec_ext in '' $ac_executable_extensions; do
23705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23706 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23708 break 2
23710 done
23711 done
23712 IFS=$as_save_IFS
23715 esac
23717 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23718 if test -n "$gcc_cv_objdump"; then
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23720 $as_echo "$gcc_cv_objdump" >&6; }
23721 else
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23731 $as_echo_n "checking what objdump to use... " >&6; }
23732 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23733 # Single tree build which includes binutils.
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23735 $as_echo "newly built objdump" >&6; }
23736 elif test x$gcc_cv_objdump = x; then
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23738 $as_echo "not found" >&6; }
23739 else
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23741 $as_echo "$gcc_cv_objdump" >&6; }
23744 # Figure out what readelf we will be using.
23745 if ${gcc_cv_readelf+:} false; then :
23747 else
23749 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23750 && test -f ../binutils/Makefile \
23751 && test x$build = x$host; then
23752 # Single tree build which includes binutils.
23753 gcc_cv_readelf=../binutils/readelf$build_exeext
23754 elif test -x readelf$build_exeext; then
23755 gcc_cv_readelf=./readelf$build_exeext
23756 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23757 gcc_cv_readelf="$READELF_FOR_TARGET"
23758 else
23759 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23760 set dummy $READELF_FOR_TARGET; ac_word=$2
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23762 $as_echo_n "checking for $ac_word... " >&6; }
23763 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23764 $as_echo_n "(cached) " >&6
23765 else
23766 case $gcc_cv_readelf in
23767 [\\/]* | ?:[\\/]*)
23768 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23772 for as_dir in $PATH
23774 IFS=$as_save_IFS
23775 test -z "$as_dir" && as_dir=.
23776 for ac_exec_ext in '' $ac_executable_extensions; do
23777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23778 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23780 break 2
23782 done
23783 done
23784 IFS=$as_save_IFS
23787 esac
23789 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23790 if test -n "$gcc_cv_readelf"; then
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23792 $as_echo "$gcc_cv_readelf" >&6; }
23793 else
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23803 $as_echo_n "checking what readelf to use... " >&6; }
23804 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23805 # Single tree build which includes binutils.
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23807 $as_echo "newly built readelf" >&6; }
23808 elif test x$gcc_cv_readelf = x; then
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23810 $as_echo "not found" >&6; }
23811 else
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23813 $as_echo "$gcc_cv_readelf" >&6; }
23816 # Figure out what otool we will be using.
23817 if ${gcc_cv_otool+:} false; then :
23819 else
23821 if test -x otool$build_exeext; then
23822 gcc_cv_otool=./otool$build_exeext
23823 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23824 gcc_cv_otool="$OTOOL_FOR_TARGET"
23825 else
23826 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23827 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23829 $as_echo_n "checking for $ac_word... " >&6; }
23830 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833 case $gcc_cv_otool in
23834 [\\/]* | ?:[\\/]*)
23835 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23839 for as_dir in $PATH
23841 IFS=$as_save_IFS
23842 test -z "$as_dir" && as_dir=.
23843 for ac_exec_ext in '' $ac_executable_extensions; do
23844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23845 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23847 break 2
23849 done
23850 done
23851 IFS=$as_save_IFS
23854 esac
23856 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23857 if test -n "$gcc_cv_otool"; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23859 $as_echo "$gcc_cv_otool" >&6; }
23860 else
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23862 $as_echo "no" >&6; }
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23870 $as_echo_n "checking what otool to use... " >&6; }
23871 if test x$gcc_cv_otool = x; then
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23873 $as_echo "not found" >&6; }
23874 else
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23876 $as_echo "$gcc_cv_otool" >&6; }
23879 # Figure out the dsymutil we will use.
23880 if ${gcc_cv_dsymutil+:} false; then :
23882 else
23884 if test -x "$DEFAULT_DSYMUTIL"; then
23885 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23886 elif test -x dsymutil$build_exeext; then
23887 gcc_cv_dsymutil=./dsymutil$build_exeext
23888 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23889 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23890 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23891 gcc_cv_dsymutil=$DSYMUTIL
23892 else
23893 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23894 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23896 $as_echo_n "checking for $ac_word... " >&6; }
23897 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23898 $as_echo_n "(cached) " >&6
23899 else
23900 case $gcc_cv_dsymutil in
23901 [\\/]* | ?:[\\/]*)
23902 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23906 for as_dir in $PATH
23908 IFS=$as_save_IFS
23909 test -z "$as_dir" && as_dir=.
23910 for ac_exec_ext in '' $ac_executable_extensions; do
23911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23912 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23914 break 2
23916 done
23917 done
23918 IFS=$as_save_IFS
23921 esac
23923 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23924 if test -n "$gcc_cv_dsymutil"; then
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23926 $as_echo "$gcc_cv_dsymutil" >&6; }
23927 else
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23936 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23938 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23939 ./dsymutil | ./dsymutil$build_exeext) ;;
23940 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23942 esac
23944 # Figure out what assembler alignment features are present.
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23946 $as_echo_n "checking assembler flags... " >&6; }
23947 if ${gcc_cv_as_flags+:} false; then :
23948 $as_echo_n "(cached) " >&6
23949 else
23950 case "$target" in
23951 i[34567]86-*-linux*)
23952 gcc_cv_as_flags=--32
23954 x86_64-*-linux-gnux32)
23955 gcc_cv_as_flags=--x32
23957 x86_64-*-linux*)
23958 gcc_cv_as_flags=--64
23960 powerpc*-*-darwin*)
23961 gcc_cv_as_flags="-arch ppc"
23964 gcc_cv_as_flags=" "
23966 esac
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23969 $as_echo "$gcc_cv_as_flags" >&6; }
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23972 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23973 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23974 $as_echo_n "(cached) " >&6
23975 else
23976 gcc_cv_as_balign_and_p2align=no
23977 if test x$gcc_cv_as != x; then
23978 $as_echo '.balign 4
23979 .p2align 2' > conftest.s
23980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23982 (eval $ac_try) 2>&5
23983 ac_status=$?
23984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23985 test $ac_status = 0; }; }
23986 then
23987 gcc_cv_as_balign_and_p2align=yes
23988 else
23989 echo "configure: failed program was" >&5
23990 cat conftest.s >&5
23992 rm -f conftest.o conftest.s
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23996 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23997 if test $gcc_cv_as_balign_and_p2align = yes; then
23999 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24005 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24006 if ${gcc_cv_as_max_skip_p2align+:} false; then :
24007 $as_echo_n "(cached) " >&6
24008 else
24009 gcc_cv_as_max_skip_p2align=no
24010 if test x$gcc_cv_as != x; then
24011 $as_echo '.p2align 4,,7' > conftest.s
24012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24018 then
24019 gcc_cv_as_max_skip_p2align=yes
24020 else
24021 echo "configure: failed program was" >&5
24022 cat conftest.s >&5
24024 rm -f conftest.o conftest.s
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24028 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24029 if test $gcc_cv_as_max_skip_p2align = yes; then
24031 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24037 $as_echo_n "checking assembler for .literal16... " >&6; }
24038 if ${gcc_cv_as_literal16+:} false; then :
24039 $as_echo_n "(cached) " >&6
24040 else
24041 gcc_cv_as_literal16=no
24042 if test x$gcc_cv_as != x; then
24043 $as_echo '.literal16' > conftest.s
24044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24050 then
24051 gcc_cv_as_literal16=yes
24052 else
24053 echo "configure: failed program was" >&5
24054 cat conftest.s >&5
24056 rm -f conftest.o conftest.s
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24060 $as_echo "$gcc_cv_as_literal16" >&6; }
24061 if test $gcc_cv_as_literal16 = yes; then
24063 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24069 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24070 if ${gcc_cv_as_subsection_m1+:} false; then :
24071 $as_echo_n "(cached) " >&6
24072 else
24073 gcc_cv_as_subsection_m1=no
24074 if test x$gcc_cv_as != x; then
24075 $as_echo 'conftest_label1: .word 0
24076 .subsection -1
24077 conftest_label2: .word 0
24078 .previous' > conftest.s
24079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24085 then
24086 if test x$gcc_cv_nm != x; then
24087 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24088 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24089 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24090 then :
24091 else gcc_cv_as_subsection_m1=yes
24093 rm -f conftest.nm1 conftest.nm2
24095 else
24096 echo "configure: failed program was" >&5
24097 cat conftest.s >&5
24099 rm -f conftest.o conftest.s
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24103 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24104 if test $gcc_cv_as_subsection_m1 = yes; then
24106 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24112 $as_echo_n "checking assembler for .weak... " >&6; }
24113 if ${gcc_cv_as_weak+:} false; then :
24114 $as_echo_n "(cached) " >&6
24115 else
24116 gcc_cv_as_weak=no
24117 if test x$gcc_cv_as != x; then
24118 $as_echo ' .weak foobar' > conftest.s
24119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24125 then
24126 gcc_cv_as_weak=yes
24127 else
24128 echo "configure: failed program was" >&5
24129 cat conftest.s >&5
24131 rm -f conftest.o conftest.s
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24135 $as_echo "$gcc_cv_as_weak" >&6; }
24136 if test $gcc_cv_as_weak = yes; then
24138 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24144 $as_echo_n "checking assembler for .weakref... " >&6; }
24145 if ${gcc_cv_as_weakref+:} false; then :
24146 $as_echo_n "(cached) " >&6
24147 else
24148 gcc_cv_as_weakref=no
24149 if test x$gcc_cv_as != x; then
24150 $as_echo ' .weakref foobar, barfnot' > conftest.s
24151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24156 test $ac_status = 0; }; }
24157 then
24158 gcc_cv_as_weakref=yes
24159 else
24160 echo "configure: failed program was" >&5
24161 cat conftest.s >&5
24163 rm -f conftest.o conftest.s
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24167 $as_echo "$gcc_cv_as_weakref" >&6; }
24168 if test $gcc_cv_as_weakref = yes; then
24170 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24176 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24177 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24178 $as_echo_n "(cached) " >&6
24179 else
24180 gcc_cv_as_nsubspa_comdat=no
24181 if test x$gcc_cv_as != x; then
24182 $as_echo ' .SPACE $TEXT$
24183 .NSUBSPA $CODE$,COMDAT' > conftest.s
24184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24190 then
24191 gcc_cv_as_nsubspa_comdat=yes
24192 else
24193 echo "configure: failed program was" >&5
24194 cat conftest.s >&5
24196 rm -f conftest.o conftest.s
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24200 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24201 if test $gcc_cv_as_nsubspa_comdat = yes; then
24203 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24208 # .hidden needs to be supported in both the assembler and the linker,
24209 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24210 # This is irritatingly difficult to feature test for; we have to check the
24211 # date string after the version number. If we've got an in-tree
24212 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24213 # to be safe.
24214 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24215 case "${target}" in
24216 *-*-aix*)
24217 conftest_s=' .globl foobar,hidden'
24220 conftest_s=' .hidden foobar
24221 foobar:'
24223 esac
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24225 $as_echo_n "checking assembler for .hidden... " >&6; }
24226 if ${gcc_cv_as_hidden+:} false; then :
24227 $as_echo_n "(cached) " >&6
24228 else
24229 gcc_cv_as_hidden=no
24230 if test x$gcc_cv_as != x; then
24231 $as_echo "$conftest_s" > conftest.s
24232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24235 ac_status=$?
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24238 then
24239 gcc_cv_as_hidden=yes
24240 else
24241 echo "configure: failed program was" >&5
24242 cat conftest.s >&5
24244 rm -f conftest.o conftest.s
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24248 $as_echo "$gcc_cv_as_hidden" >&6; }
24251 case "${target}" in
24252 *-*-darwin*)
24253 # Darwin as has some visibility support, though with a different syntax.
24254 gcc_cv_as_hidden=yes
24256 esac
24258 # gnu_indirect_function type is an extension proposed at
24259 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24260 # selection of function implementation
24261 # Check whether --enable-gnu-indirect-function was given.
24262 if test "${enable_gnu_indirect_function+set}" = set; then :
24263 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24264 yes | no) ;;
24265 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24266 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24267 esac
24268 else
24269 enable_gnu_indirect_function="$default_gnu_indirect_function"
24273 case "${target}" in
24274 riscv*-*-linux*)
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24276 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24277 cat > conftest.s <<EOF
24278 .text
24279 .type foo_resolver, @function
24280 foo_resolver:
24282 .size foo_resolver, .-foo_resolver
24284 .globl foo
24285 .type foo, %gnu_indirect_function
24286 .set foo, foo_resolver
24288 .globl bar
24289 .type bar, @function
24290 bar:
24291 call foo
24293 .size bar, .-bar
24295 if test x$gcc_cv_as != x \
24296 && test x$gcc_cv_ld != x \
24297 && test x$gcc_cv_readelf != x \
24298 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24299 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24300 && $gcc_cv_readelf --relocs --wide conftest \
24301 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24302 enable_gnu_indirect_function=yes
24304 rm -f conftest conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24306 $as_echo "$enable_gnu_indirect_function" >&6; }
24308 esac
24310 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24312 cat >>confdefs.h <<_ACEOF
24313 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24314 _ACEOF
24318 if test $in_tree_ld != yes ; then
24319 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24320 if echo "$ld_ver" | grep GNU > /dev/null; then
24321 if test x"$ld_is_gold" = xyes; then
24322 # GNU gold --version looks like this:
24324 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24326 # We extract the binutils version which is more familiar and specific
24327 # than the gold version.
24328 ld_vers=`echo $ld_ver | sed -n \
24329 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24330 else
24331 # GNU ld --version looks like this:
24333 # GNU ld (GNU Binutils) 2.21.51.20110225
24334 ld_vers=`echo $ld_ver | sed -n \
24335 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24337 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'`
24338 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24339 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24340 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24341 else
24342 case "${target}" in
24343 *-*-solaris2*)
24344 # Solaris 2 ld -V output looks like this for a regular version:
24346 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24348 # but test versions add stuff at the end:
24350 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24352 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24353 # numbers can be used in ld.so.1 feature checks even if a different
24354 # linker is configured.
24355 ld_ver=`$gcc_cv_ld -V 2>&1`
24356 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24357 ld_vers=`echo $ld_ver | sed -n \
24358 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24359 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24360 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24363 esac
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24368 $as_echo_n "checking linker for .hidden support... " >&6; }
24369 if ${gcc_cv_ld_hidden+:} false; then :
24370 $as_echo_n "(cached) " >&6
24371 else
24372 if test $in_tree_ld = yes ; then
24373 gcc_cv_ld_hidden=no
24374 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 \
24375 && test $in_tree_ld_is_elf = yes; then
24376 gcc_cv_ld_hidden=yes
24378 else
24379 gcc_cv_ld_hidden=yes
24380 if test x"$ld_is_gold" = xyes; then
24382 elif test x"$ld_is_mold" = xyes; then
24384 elif echo "$ld_ver" | grep GNU > /dev/null; then
24385 if test 0"$ld_date" -lt 20020404; then
24386 if test -n "$ld_date"; then
24387 # If there was date string, but was earlier than 2002-04-04, fail
24388 gcc_cv_ld_hidden=no
24389 elif test -z "$ld_vers"; then
24390 # If there was no date string nor ld version number, something is wrong
24391 gcc_cv_ld_hidden=no
24392 else
24393 test -z "$ld_vers_patch" && ld_vers_patch=0
24394 if test "$ld_vers_major" -lt 2; then
24395 gcc_cv_ld_hidden=no
24396 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24397 gcc_cv_ld_hidden="no"
24398 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24399 gcc_cv_ld_hidden=no
24403 else
24404 case "${target}" in
24405 *-*-aix[789]*)
24406 gcc_cv_ld_hidden=yes
24408 *-*-darwin*)
24409 # Darwin ld has some visibility support.
24410 gcc_cv_ld_hidden=yes
24412 hppa64*-*-hpux* | ia64*-*-hpux*)
24413 gcc_cv_ld_hidden=yes
24415 *-*-solaris2*)
24416 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24417 # .symbolic was only added in Solaris 9 12/02.
24418 gcc_cv_ld_hidden=yes
24421 gcc_cv_ld_hidden=no
24423 esac
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24428 $as_echo "$gcc_cv_ld_hidden" >&6; }
24429 libgcc_visibility=no
24432 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24433 libgcc_visibility=yes
24435 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24440 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24441 gcc_cv_ld_ro_rw_mix=unknown
24442 if test $in_tree_ld = yes ; then
24443 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 \
24444 && test $in_tree_ld_is_elf = yes; then
24445 gcc_cv_ld_ro_rw_mix=read-write
24447 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24448 echo '.section myfoosect, "a"' > conftest1.s
24449 echo '.section myfoosect, "aw"' > conftest2.s
24450 echo '.byte 1' >> conftest2.s
24451 echo '.section myfoosect, "a"' > conftest3.s
24452 echo '.byte 0' >> conftest3.s
24453 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24454 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24455 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
24456 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24457 conftest2.o conftest3.o > /dev/null 2>&1 \
24458 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
24459 conftest2.o conftest3.o > /dev/null 2>&1; then
24460 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24461 | sed -e '/myfoosect/!d' -e N`
24462 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24463 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24464 gcc_cv_ld_ro_rw_mix=read-only
24465 else
24466 gcc_cv_ld_ro_rw_mix=read-write
24471 rm -f conftest.* conftest[123].*
24473 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24475 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24479 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24481 # Check whether --enable-initfini-array was given.
24482 if test "${enable_initfini_array+set}" = set; then :
24483 enableval=$enable_initfini_array;
24484 else
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24487 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24488 if ${gcc_cv_initfini_array+:} false; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24492 case "${target}" in
24493 ia64-*)
24494 if test "$cross_compiling" = yes; then :
24495 gcc_cv_initfini_array=no
24496 else
24497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24498 /* end confdefs.h. */
24500 #ifndef __ELF__
24501 #error Not an ELF OS
24502 #endif
24503 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24504 if it can be used. */
24505 static int x = -1;
24506 int main (void) { return x; }
24507 int foo (void) { x = 0; }
24508 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24510 _ACEOF
24511 if ac_fn_cxx_try_run "$LINENO"; then :
24512 gcc_cv_initfini_array=yes
24513 else
24514 gcc_cv_initfini_array=no
24516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24517 conftest.$ac_objext conftest.beam conftest.$ac_ext
24521 gcc_cv_initfini_array=no
24522 if test $in_tree_ld = yes ; then
24523 if test "$gcc_cv_gld_major_version" -eq 2 \
24524 -a "$gcc_cv_gld_minor_version" -ge 22 \
24525 -o "$gcc_cv_gld_major_version" -gt 2 \
24526 && test $in_tree_ld_is_elf = yes; then
24527 gcc_cv_initfini_array=yes
24529 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24530 case $target:$gas in
24531 *:yes)
24532 sh_flags='"a"'
24533 sh_type='%progbits'
24535 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24536 sh_flags='"a"'
24537 sh_type='@progbits'
24539 sparc*-*-solaris2*:no)
24540 sh_flags='#alloc'
24541 sh_type='#progbits'
24542 sh_quote='"'
24544 esac
24545 case "$target:$gnu_ld" in
24546 *:yes)
24547 cat > conftest.s <<EOF
24548 .section .dtors,$sh_flags,$sh_type
24549 .balign 4
24550 .byte 'A', 'A', 'A', 'A'
24551 .section .ctors,$sh_flags,$sh_type
24552 .balign 4
24553 .byte 'B', 'B', 'B', 'B'
24554 .section .fini_array.65530,$sh_flags,$sh_type
24555 .balign 4
24556 .byte 'C', 'C', 'C', 'C'
24557 .section .init_array.65530,$sh_flags,$sh_type
24558 .balign 4
24559 .byte 'D', 'D', 'D', 'D'
24560 .section .dtors.64528,$sh_flags,$sh_type
24561 .balign 4
24562 .byte 'E', 'E', 'E', 'E'
24563 .section .ctors.64528,$sh_flags,$sh_type
24564 .balign 4
24565 .byte 'F', 'F', 'F', 'F'
24566 .section .fini_array.01005,$sh_flags,$sh_type
24567 .balign 4
24568 .byte 'G', 'G', 'G', 'G'
24569 .section .init_array.01005,$sh_flags,$sh_type
24570 .balign 4
24571 .byte 'H', 'H', 'H', 'H'
24572 .text
24573 .globl _start
24574 _start:
24576 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24577 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24578 && $gcc_cv_objdump -s -j .init_array conftest \
24579 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24580 && $gcc_cv_objdump -s -j .fini_array conftest \
24581 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24582 gcc_cv_initfini_array=yes
24585 *-*-solaris2*:no)
24586 # When Solaris ld added constructor priority support, it was
24587 # decided to only handle .init_array.N/.fini_array.N since
24588 # there was no need for backwards compatibility with
24589 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24590 # sections with correct execution order resp. to
24591 # .init_array/.fini_array, while gld merges them into
24592 # .init_array/.fini_array.
24593 cat > conftest.s <<EOF
24594 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24595 .align 4
24596 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24597 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24598 .align 4
24599 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24600 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24601 .align 4
24602 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24603 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24604 .align 4
24605 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24606 .text
24607 .globl _start
24608 _start:
24610 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24611 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24612 && $gcc_cv_objdump -s -j .init_array conftest \
24613 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24614 && $gcc_cv_objdump -s -j .fini_array conftest \
24615 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24616 gcc_cv_initfini_array=yes
24619 esac
24620 rm -f conftest conftest.*
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24625 #ifndef __ELF__
24626 # error Not an ELF OS
24627 #endif
24628 #include <stdlib.h>
24629 #if defined __GLIBC_PREREQ
24630 # if __GLIBC_PREREQ (2, 4)
24631 # else
24632 # error GLIBC 2.4 required
24633 # endif
24634 #else
24635 # if defined __sun__ && defined __svr4__
24636 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24637 # else
24638 # error The C library not known to support .init_array/.fini_array
24639 # endif
24640 #endif
24642 _ACEOF
24643 if ac_fn_cxx_try_cpp "$LINENO"; then :
24645 else
24646 gcc_cv_initfini_array=no
24648 rm -f conftest.err conftest.i conftest.$ac_ext;;
24649 esac
24650 else
24651 case "${target}" in
24652 aarch64*-linux-gnu*)
24653 # AArch64 postdates glibc support for .init_array/.fini_array,
24654 # so we don't need the preprocessor test above.
24655 gcc_cv_initfini_array=yes
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24660 $as_echo_n "checking cross compile... guessing... " >&6; }
24661 gcc_cv_initfini_array=no
24663 esac
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24667 $as_echo "$gcc_cv_initfini_array" >&6; }
24668 enable_initfini_array=$gcc_cv_initfini_array
24673 cat >>confdefs.h <<_ACEOF
24674 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24675 _ACEOF
24679 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24680 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24681 # these directives, even when they appear to accept them.
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24683 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24684 if ${gcc_cv_as_leb128+:} false; then :
24685 $as_echo_n "(cached) " >&6
24686 else
24687 gcc_cv_as_leb128=no
24688 if test x$gcc_cv_as != x; then
24689 $as_echo ' .data
24690 .uleb128 L2 - L1
24692 .uleb128 1280
24693 .sleb128 -1010
24695 .uleb128 0x8000000000000000
24696 ' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24705 if test "x$gcc_cv_objdump" != x; then
24706 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24707 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24708 gcc_cv_as_leb128=yes
24710 elif test "x$gcc_cv_otool" != x; then
24711 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24712 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24713 gcc_cv_as_leb128=yes
24715 else
24716 # play safe, assume the assembler is broken.
24720 else
24721 echo "configure: failed program was" >&5
24722 cat conftest.s >&5
24724 rm -f conftest.o conftest.s
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24728 $as_echo "$gcc_cv_as_leb128" >&6; }
24729 if test $gcc_cv_as_leb128 = yes; then
24731 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24734 if test $gcc_cv_as_leb128 != yes; then
24736 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24740 # Determine if an .eh_frame section is read-only.
24741 gcc_fn_eh_frame_ro () {
24742 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24743 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24744 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24747 # Check if we have assembler support for unwind directives.
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24749 $as_echo_n "checking assembler for cfi directives... " >&6; }
24750 if ${gcc_cv_as_cfi_directive+:} false; then :
24751 $as_echo_n "(cached) " >&6
24752 else
24753 gcc_cv_as_cfi_directive=no
24754 if test x$gcc_cv_as != x; then
24755 $as_echo ' .text
24756 .cfi_startproc
24757 .cfi_offset 0, 0
24758 .cfi_same_value 1
24759 .cfi_def_cfa 1, 2
24760 .cfi_escape 1, 2, 3, 4, 5
24761 .cfi_endproc' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 case "$target" in
24770 *-*-solaris*)
24771 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24772 # read-only and read-write sections, we need to make sure that the
24773 # assembler used emits read-write .eh_frame sections.
24774 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24775 gcc_cv_as_cfi_directive=yes
24776 elif test "x$gcc_cv_objdump" = x; then
24777 # No objdump, err on the side of caution.
24778 gcc_cv_as_cfi_directive=no
24779 else
24780 if test x$gas = xyes; then
24781 as_32_opt="--32"
24782 as_64_opt="--64"
24783 else
24784 as_32_opt="-m32"
24785 as_64_opt="-m64"
24787 case "$target" in
24788 sparc*-*-solaris2.*)
24789 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24790 if gcc_fn_eh_frame_ro $as_32_opt \
24791 || gcc_fn_eh_frame_ro $as_64_opt; then
24792 gcc_cv_as_cfi_directive=no
24793 else
24794 gcc_cv_as_cfi_directive=yes
24797 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24798 # On Solaris/x86, make sure that GCC and assembler agree on using
24799 # read-only .eh_frame sections for 64-bit.
24800 if gcc_fn_eh_frame_ro $as_32_opt; then
24801 gcc_cv_as_cfi_directive=no
24802 elif gcc_fn_eh_frame_ro $as_64_opt; then
24803 gcc_cv_as_cfi_directive=yes
24804 else
24805 gcc_cv_as_cfi_directive=no
24808 esac
24811 *-*-*)
24812 gcc_cv_as_cfi_directive=yes
24814 esac
24815 else
24816 echo "configure: failed program was" >&5
24817 cat conftest.s >&5
24819 rm -f conftest.o conftest.s
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24823 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24826 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24828 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24829 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24830 $as_echo_n "(cached) " >&6
24831 else
24832 gcc_cv_as_cfi_advance_working=no
24833 if test x$gcc_cv_as != x; then
24834 $as_echo ' .text
24835 .cfi_startproc
24836 .cfi_adjust_cfa_offset 64
24837 .skip 75040, 0
24838 .cfi_adjust_cfa_offset 128
24839 .cfi_endproc' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24848 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24849 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24850 gcc_cv_as_cfi_advance_working=yes
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24861 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24864 else
24865 # no objdump, err on the side of caution
24866 gcc_cv_as_cfi_advance_working=no
24870 cat >>confdefs.h <<_ACEOF
24871 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24872 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24873 _ACEOF
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24878 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24879 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24880 $as_echo_n "(cached) " >&6
24881 else
24882 gcc_cv_as_cfi_personality_directive=no
24883 if test x$gcc_cv_as != x; then
24884 $as_echo ' .text
24885 .cfi_startproc
24886 .cfi_personality 0, symbol
24887 .cfi_endproc' > conftest.s
24888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24894 then
24895 gcc_cv_as_cfi_personality_directive=yes
24896 else
24897 echo "configure: failed program was" >&5
24898 cat conftest.s >&5
24900 rm -f conftest.o conftest.s
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24904 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24908 cat >>confdefs.h <<_ACEOF
24909 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24910 _ACEOF
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24914 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24915 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24916 $as_echo_n "(cached) " >&6
24917 else
24918 gcc_cv_as_cfi_sections_directive=no
24919 if test x$gcc_cv_as != x; then
24920 $as_echo ' .text
24921 .cfi_sections .debug_frame, .eh_frame
24922 .cfi_startproc
24923 .cfi_endproc' > conftest.s
24924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24927 ac_status=$?
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24930 then
24931 case $target_os in
24932 win32 | pe | cygwin* | mingw32*)
24933 # Need to check that we generated the correct relocation for the
24934 # .debug_frame section. This was fixed for binutils 2.21.
24935 gcc_cv_as_cfi_sections_directive=no
24936 if test "x$gcc_cv_objdump" != x; then
24937 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24938 grep -i secrel > /dev/null; then
24939 gcc_cv_as_cfi_sections_directive=yes
24944 gcc_cv_as_cfi_sections_directive=yes
24946 esac
24947 else
24948 echo "configure: failed program was" >&5
24949 cat conftest.s >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24955 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24962 _ACEOF
24965 # GAS versions up to and including 2.11.0 may mis-optimize
24966 # .eh_frame data.
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24968 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24969 if ${gcc_cv_as_eh_frame+:} false; then :
24970 $as_echo_n "(cached) " >&6
24971 else
24972 gcc_cv_as_eh_frame=no
24973 if test x$gcc_cv_as != x; then
24974 $as_echo ' .text
24975 .LFB1:
24976 .4byte 0
24977 .L1:
24978 .4byte 0
24979 .LFE1:
24980 .section .eh_frame,"aw",@progbits
24981 __FRAME_BEGIN__:
24982 .4byte .LECIE1-.LSCIE1
24983 .LSCIE1:
24984 .4byte 0x0
24985 .byte 0x1
24986 .ascii "z\0"
24987 .byte 0x1
24988 .byte 0x78
24989 .byte 0x1a
24990 .byte 0x0
24991 .byte 0x4
24992 .4byte 1
24993 .p2align 1
24994 .LECIE1:
24995 .LSFDE1:
24996 .4byte .LEFDE1-.LASFDE1
24997 .LASFDE1:
24998 .4byte .LASFDE1-__FRAME_BEGIN__
24999 .4byte .LFB1
25000 .4byte .LFE1-.LFB1
25001 .byte 0x4
25002 .4byte .LFE1-.LFB1
25003 .byte 0x4
25004 .4byte .L1-.LFB1
25005 .LEFDE1:' > conftest.s
25006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25012 then
25013 cat > conftest.lit <<EOF
25014 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25015 0010 01000000 12000000 18000000 00000000 ................
25016 0020 08000000 04080000 0044 .........D
25018 cat > conftest.big <<EOF
25019 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25020 0010 00000001 00000012 00000018 00000000 ................
25021 0020 00000008 04000000 0844 .........D
25023 # If the assembler didn't choke, and we can objdump,
25024 # and we got the correct data, then succeed.
25025 # The text in the here-document typically retains its unix-style line
25026 # endings, while the output of objdump will use host line endings.
25027 # Therefore, use diff -b for the comparisons.
25028 if test x$gcc_cv_objdump != x \
25029 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
25030 | tail -3 > conftest.got \
25031 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
25032 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
25033 then
25034 gcc_cv_as_eh_frame=yes
25035 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }; then
25041 gcc_cv_as_eh_frame=buggy
25042 else
25043 # Uh oh, what do we do now?
25044 gcc_cv_as_eh_frame=no
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25054 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25058 if test $gcc_cv_as_eh_frame = buggy; then
25060 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25064 # Test if the assembler supports the section flag 'e' or #exclude for
25065 # specifying an excluded section.
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25067 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25068 if ${gcc_cv_as_section_exclude_e+:} false; then :
25069 $as_echo_n "(cached) " >&6
25070 else
25071 gcc_cv_as_section_exclude_e=no
25072 if test x$gcc_cv_as != x; then
25073 $as_echo '.section foo1,"e"
25074 .byte 0,0,0,0' > conftest.s
25075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25081 then
25082 gcc_cv_as_section_exclude_e=yes
25083 else
25084 echo "configure: failed program was" >&5
25085 cat conftest.s >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25091 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25094 if test $gcc_cv_as_section_exclude_e = no; then
25095 case "${target}" in
25096 # Solaris as uses #exclude instead.
25097 *-*-solaris2*)
25098 case "${target}" in
25099 sparc*-*-solaris2*)
25100 conftest_s='.section "foo1", #exclude'
25102 i?86-*-solaris2* | x86_64-*-solaris2*)
25103 conftest_s='.section foo1, #exclude'
25105 esac
25107 esac
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25109 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25110 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25111 $as_echo_n "(cached) " >&6
25112 else
25113 gcc_cv_as_section_exclude_hash=no
25114 if test x$gcc_cv_as != x; then
25115 $as_echo "$conftest_s
25116 .byte 0,0,0,0" > conftest.s
25117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; }
25123 then
25124 gcc_cv_as_section_exclude_hash=yes
25125 else
25126 echo "configure: failed program was" >&5
25127 cat conftest.s >&5
25129 rm -f conftest.o conftest.s
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25133 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25138 cat >>confdefs.h <<_ACEOF
25139 #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`
25140 _ACEOF
25143 # Test if the assembler supports the section flag 'R' for specifying
25144 # section with SHF_GNU_RETAIN.
25145 case "${target}" in
25146 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25147 # assembler supports the section flag 'R', it doesn't mean that
25148 # Solairs ld supports it.
25149 *-*-solaris2*)
25150 gcc_cv_as_shf_gnu_retain=no
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25154 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25155 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25156 $as_echo_n "(cached) " >&6
25157 else
25158 gcc_cv_as_shf_gnu_retain=no
25159 if test x$gcc_cv_as != x; then
25160 $as_echo '.section .foo,"awR",%progbits
25161 .byte 0' > conftest.s
25162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25168 then
25169 gcc_cv_as_shf_gnu_retain=yes
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25178 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25182 esac
25184 cat >>confdefs.h <<_ACEOF
25185 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25186 _ACEOF
25189 # Test if the assembler supports the section flag 'o' for specifying
25190 # section with link-order.
25191 case "${target}" in
25192 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25193 # assembler supports the section flag 'o', it doesn't mean that
25194 # Solairs ld supports it.
25195 *-*-solaris2*)
25196 gcc_cv_as_section_link_order=no
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25200 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25201 if ${gcc_cv_as_section_link_order+:} false; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 gcc_cv_as_section_link_order=no
25205 if test x$gcc_cv_as != x; then
25206 $as_echo '.section .foo,"a"
25207 .byte 0
25208 .section __patchable_function_entries,"awo",%progbits,.foo
25209 .byte 0' > conftest.s
25210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25216 then
25217 gcc_cv_as_section_link_order=yes
25218 else
25219 echo "configure: failed program was" >&5
25220 cat conftest.s >&5
25222 rm -f conftest.o conftest.s
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25226 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25230 esac
25232 cat >>confdefs.h <<_ACEOF
25233 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25234 _ACEOF
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25238 $as_echo_n "checking assembler for section merging support... " >&6; }
25239 if ${gcc_cv_as_shf_merge+:} false; then :
25240 $as_echo_n "(cached) " >&6
25241 else
25242 gcc_cv_as_shf_merge=no
25243 if test x$gcc_cv_as != x; then
25244 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25251 then
25252 gcc_cv_as_shf_merge=yes
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25261 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25264 if test $gcc_cv_as_shf_merge = no; then
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25266 $as_echo_n "checking assembler for section merging support... " >&6; }
25267 if ${gcc_cv_as_shf_merge+:} false; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270 gcc_cv_as_shf_merge=no
25271 if test x$gcc_cv_as != x; then
25272 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25279 then
25280 gcc_cv_as_shf_merge=yes
25281 else
25282 echo "configure: failed program was" >&5
25283 cat conftest.s >&5
25285 rm -f conftest.o conftest.s
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25289 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25294 cat >>confdefs.h <<_ACEOF
25295 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25296 _ACEOF
25299 gcc_cv_ld_aligned_shf_merge=yes
25300 case "$target" in
25301 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25302 # alignment > 1.
25303 sparc*-*-solaris2.11*)
25304 if test x"$gnu_ld" = xno \
25305 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25306 gcc_cv_ld_aligned_shf_merge=no
25309 esac
25311 cat >>confdefs.h <<_ACEOF
25312 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25313 _ACEOF
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25317 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25318 if ${gcc_cv_as_comdat_group+:} false; then :
25319 $as_echo_n "(cached) " >&6
25320 else
25321 gcc_cv_as_comdat_group=no
25322 if test x$gcc_cv_as != x; then
25323 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25329 test $ac_status = 0; }; }
25330 then
25331 gcc_cv_as_comdat_group=yes
25332 else
25333 echo "configure: failed program was" >&5
25334 cat conftest.s >&5
25336 rm -f conftest.o conftest.s
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25340 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25343 if test $gcc_cv_as_comdat_group = yes; then
25344 gcc_cv_as_comdat_group_percent=no
25345 gcc_cv_as_comdat_group_group=no
25346 else
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25348 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25349 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 gcc_cv_as_comdat_group_percent=no
25353 if test x$gcc_cv_as != x; then
25354 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25360 test $ac_status = 0; }; }
25361 then
25362 gcc_cv_as_comdat_group_percent=yes
25363 else
25364 echo "configure: failed program was" >&5
25365 cat conftest.s >&5
25367 rm -f conftest.o conftest.s
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25371 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25374 if test $gcc_cv_as_comdat_group_percent = yes; then
25375 gcc_cv_as_comdat_group_group=no
25376 else
25377 case "${target}" in
25378 # Sun as uses a completely different syntax.
25379 *-*-solaris2*)
25380 case "${target}" in
25381 sparc*-*-solaris2*)
25382 conftest_s='
25383 .group foo,".text%foo",#comdat
25384 .section ".text%foo", #alloc,#execinstr,#progbits
25385 .globl foo
25386 foo:
25389 i?86-*-solaris2* | x86_64-*-solaris2*)
25390 conftest_s='
25391 .group foo,.text%foo,#comdat
25392 .section .text%foo, "ax", @progbits
25393 .globl foo
25394 foo:
25397 esac
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25399 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25400 if ${gcc_cv_as_comdat_group_group+:} false; then :
25401 $as_echo_n "(cached) " >&6
25402 else
25403 gcc_cv_as_comdat_group_group=no
25404 if test x$gcc_cv_as != x; then
25405 $as_echo "$conftest_s" > conftest.s
25406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; }
25412 then
25413 gcc_cv_as_comdat_group_group=yes
25414 else
25415 echo "configure: failed program was" >&5
25416 cat conftest.s >&5
25418 rm -f conftest.o conftest.s
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25422 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25426 esac
25427 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25428 gcc_cv_as_comdat_group_group=no
25432 if test x"$ld_is_gold" = xyes; then
25433 comdat_group=yes
25434 elif test x"$ld_is_mold" = xyes; then
25435 comdat_group=yes
25436 elif test $in_tree_ld = yes ; then
25437 comdat_group=no
25438 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 \
25439 && test $in_tree_ld_is_elf = yes; then
25440 comdat_group=yes
25442 elif echo "$ld_ver" | grep GNU > /dev/null; then
25443 comdat_group=yes
25444 if test 0"$ld_date" -lt 20050308; then
25445 if test -n "$ld_date"; then
25446 # If there was date string, but was earlier than 2005-03-08, fail
25447 comdat_group=no
25448 elif test "$ld_vers_major" -lt 2; then
25449 comdat_group=no
25450 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25451 comdat_group=no
25454 else
25455 case "${target}" in
25456 *-*-solaris2.1[1-9]*)
25457 comdat_group=no
25458 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25459 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25460 # version 1.688.
25462 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25463 # least ld version 1.2267.
25464 if test "$ld_vers_major" -gt 1; then
25465 comdat_group=yes
25466 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25467 comdat_group=yes
25468 elif test "$ld_vers_minor" -ge 2267; then
25469 comdat_group=yes
25473 # Assume linkers other than GNU ld don't support COMDAT group.
25474 comdat_group=no
25476 esac
25478 # Allow overriding the automatic COMDAT group tests above.
25479 # Check whether --enable-comdat was given.
25480 if test "${enable_comdat+set}" = set; then :
25481 enableval=$enable_comdat; comdat_group="$enable_comdat"
25484 if test $comdat_group = no; then
25485 gcc_cv_as_comdat_group=no
25486 gcc_cv_as_comdat_group_percent=no
25487 gcc_cv_as_comdat_group_group=no
25490 cat >>confdefs.h <<_ACEOF
25491 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25492 || test $gcc_cv_as_comdat_group_percent = yes \
25493 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25494 _ACEOF
25497 # Restrict this test to Solaris/x86: other targets define this statically.
25498 case "${target}" in
25499 i?86-*-solaris2* | x86_64-*-solaris2*)
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25501 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25502 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25503 hidden_linkonce=yes
25504 else
25505 case "${target}" in
25506 # Full support for hidden thunks in linkonce sections only appeared in
25507 # Solaris 11/OpenSolaris.
25508 *-*-solaris2.1[1-9]*)
25509 hidden_linkonce=yes
25512 hidden_linkonce=no
25514 esac
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25517 $as_echo "$hidden_linkonce" >&6; }
25519 cat >>confdefs.h <<_ACEOF
25520 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25521 _ACEOF
25524 esac
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25527 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25528 if ${gcc_cv_as_is_stmt+:} false; then :
25529 $as_echo_n "(cached) " >&6
25530 else
25531 gcc_cv_as_is_stmt=no
25532 if test x$gcc_cv_as != x; then
25533 $as_echo ' .text
25534 .file 1 "conf.c"
25535 .loc 1 1 0 is_stmt 1' > conftest.s
25536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25542 then
25543 gcc_cv_as_is_stmt=yes
25544 else
25545 echo "configure: failed program was" >&5
25546 cat conftest.s >&5
25548 rm -f conftest.o conftest.s
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25552 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25553 if test $gcc_cv_as_is_stmt = yes; then
25555 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25561 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25562 if ${gcc_cv_as_discriminator+:} false; then :
25563 $as_echo_n "(cached) " >&6
25564 else
25565 gcc_cv_as_discriminator=no
25566 if test x$gcc_cv_as != x; then
25567 $as_echo ' .text
25568 .file 1 "conf.c"
25569 .loc 1 1 0 discriminator 1' > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_discriminator=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25586 $as_echo "$gcc_cv_as_discriminator" >&6; }
25587 if test $gcc_cv_as_discriminator = yes; then
25589 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25594 # Catch the newlib flag of the same name so we can gate GCC features on it.
25595 # Check whether --enable-newlib-nano-formatted-io was given.
25596 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25597 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25598 yes|no)
25601 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25603 esac
25607 # Thread-local storage - the check is heavily parameterized.
25608 conftest_s=
25609 tls_as_opt=
25610 case "$target" in
25611 alpha*-*-*)
25612 conftest_s='
25613 .section ".tdata","awT",@progbits
25614 foo: .long 25
25615 .text
25616 ldq $27,__tls_get_addr($29) !literal!1
25617 lda $16,foo($29) !tlsgd!1
25618 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25619 ldq $27,__tls_get_addr($29) !literal!2
25620 lda $16,foo($29) !tlsldm!2
25621 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25622 ldq $1,foo($29) !gotdtprel
25623 ldah $2,foo($29) !dtprelhi
25624 lda $3,foo($2) !dtprello
25625 lda $4,foo($29) !dtprel
25626 ldq $1,foo($29) !gottprel
25627 ldah $2,foo($29) !tprelhi
25628 lda $3,foo($2) !tprello
25629 lda $4,foo($29) !tprel'
25630 tls_as_opt=--fatal-warnings
25632 arc*-*-*)
25633 conftest_s='
25634 add_s r0,r0, @foo@tpoff'
25636 cris-*-*|crisv32-*-*)
25637 conftest_s='
25638 .section ".tdata","awT",@progbits
25639 x: .long 25
25640 .text
25641 move.d x:IE,$r10
25642 nop'
25643 tls_as_opt=--fatal-warnings
25645 frv*-*-*)
25646 conftest_s='
25647 .section ".tdata","awT",@progbits
25648 x: .long 25
25649 .text
25650 call #gettlsoff(x)'
25652 hppa*-*-linux*)
25653 conftest_s='
25654 t1: .reg %r20
25655 t2: .reg %r21
25656 gp: .reg %r19
25657 .section ".tdata","awT",@progbits
25658 foo: .long 25
25659 .text
25660 .align 4
25661 addil LT%foo-$tls_gdidx$,gp
25662 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25663 b __tls_get_addr
25665 addil LT%foo-$tls_ldidx$,gp
25666 b __tls_get_addr
25667 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25668 addil LR%foo-$tls_dtpoff$,%ret0
25669 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25670 mfctl %cr27,%t1
25671 addil LT%foo-$tls_ieoff$,gp
25672 ldw RT%foo-$tls_ieoff$(%r1),%t2
25673 add %t1,%t2,%t3
25674 mfctl %cr27,%t1
25675 addil LR%foo-$tls_leoff$,%t1
25676 ldo RR%foo-$tls_leoff$(%r1),%t2'
25677 tls_as_opt=--fatal-warnings
25679 arm*-*-*)
25680 conftest_s='
25681 .section ".tdata","awT",%progbits
25682 foo: .long 25
25683 .text
25684 .word foo(gottpoff)
25685 .word foo(tpoff)
25686 .word foo(tlsgd)
25687 .word foo(tlsldm)
25688 .word foo(tlsldo)'
25690 i[34567]86-*-* | x86_64-*-*)
25691 case "$target" in
25692 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25693 on_solaris=yes
25696 on_solaris=no
25698 esac
25699 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25700 conftest_s='
25701 .section .tdata,"awt",@progbits'
25702 tls_section_flag=t
25704 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25706 else
25707 conftest_s='
25708 .section ".tdata","awT",@progbits'
25709 tls_section_flag=T
25710 tls_as_opt="--fatal-warnings"
25712 case "$target" in
25713 i[34567]86-*-*)
25714 if test x$on_solaris = xyes; then
25715 case $gas_flag in
25716 yes) tls_as_opt="$tls_as_opt --32" ;;
25717 esac
25719 conftest_s="$conftest_s
25720 foo: .long 25
25721 .text
25722 movl %gs:0, %eax
25723 leal foo@tlsgd(,%ebx,1), %eax
25724 leal foo@tlsldm(%ebx), %eax
25725 leal foo@dtpoff(%eax), %edx
25726 movl foo@gottpoff(%ebx), %eax
25727 subl foo@gottpoff(%ebx), %eax
25728 addl foo@gotntpoff(%ebx), %eax
25729 movl foo@indntpoff, %eax
25730 movl \$foo@tpoff, %eax
25731 subl \$foo@tpoff, %eax
25732 leal foo@ntpoff(%ecx), %eax"
25734 x86_64-*-*)
25735 if test x$on_solaris = xyes; then
25736 case $gas_flag in
25737 yes) tls_as_opt="$tls_as_opt --64" ;;
25738 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25739 esac
25741 conftest_s="$conftest_s
25742 foo: .long 25
25743 .text
25744 movq %fs:0, %rax
25745 leaq foo@tlsgd(%rip), %rdi
25746 leaq foo@tlsld(%rip), %rdi
25747 leaq foo@dtpoff(%rax), %rdx
25748 movq foo@gottpoff(%rip), %rax
25749 movq \$foo@tpoff, %rax"
25751 esac
25753 ia64-*-*)
25754 conftest_s='
25755 .section ".tdata","awT",@progbits
25756 foo: data8 25
25757 .text
25758 addl r16 = @ltoff(@dtpmod(foo#)), gp
25759 addl r17 = @ltoff(@dtprel(foo#)), gp
25760 addl r18 = @ltoff(@tprel(foo#)), gp
25761 addl r19 = @dtprel(foo#), gp
25762 adds r21 = @dtprel(foo#), r13
25763 movl r23 = @dtprel(foo#)
25764 addl r20 = @tprel(foo#), gp
25765 adds r22 = @tprel(foo#), r13
25766 movl r24 = @tprel(foo#)'
25767 tls_as_opt=--fatal-warnings
25769 loongarch*-*-*)
25770 conftest_s='
25771 .section .tdata,"awT",@progbits
25772 x: .word 2
25773 .text
25774 la.tls.gd $a0,x
25775 bl __tls_get_addr'
25776 tls_first_major=0
25777 tls_first_minor=0
25778 tls_as_opt='--fatal-warnings'
25780 microblaze*-*-*)
25781 conftest_s='
25782 .section .tdata,"awT",@progbits
25784 .word 2
25785 .text
25786 addik r5,r20,x@TLSGD
25787 addik r5,r20,x@TLSLDM'
25788 tls_as_opt='--fatal-warnings'
25790 mips*-*-*)
25791 conftest_s='
25792 .section .tdata,"awT",@progbits
25794 .word 2
25795 .text
25796 addiu $4, $28, %tlsgd(x)
25797 addiu $4, $28, %tlsldm(x)
25798 lui $4, %dtprel_hi(x)
25799 addiu $4, $4, %dtprel_lo(x)
25800 lw $4, %gottprel(x)($28)
25801 lui $4, %tprel_hi(x)
25802 addiu $4, $4, %tprel_lo(x)'
25803 tls_as_opt='-32 --fatal-warnings'
25805 m68k-*-*)
25806 conftest_s='
25807 .section .tdata,"awT",@progbits
25809 .word 2
25810 .text
25811 foo:
25812 move.l x@TLSGD(%a5),%a0
25813 move.l x@TLSLDM(%a5),%a0
25814 move.l x@TLSLDO(%a5),%a0
25815 move.l x@TLSIE(%a5),%a0
25816 move.l x@TLSLE(%a5),%a0'
25817 tls_as_opt='--fatal-warnings'
25819 nios2-*-*)
25820 conftest_s='
25821 .section ".tdata","awT",@progbits'
25822 tls_as_opt="--fatal-warnings"
25824 aarch64*-*-*)
25825 conftest_s='
25826 .section ".tdata","awT",%progbits
25827 foo: .long 25
25828 .text
25829 adrp x0, :tlsgd:x
25830 add x0, x0, #:tlsgd_lo12:x
25831 bl __tls_get_addr
25832 nop'
25833 tls_as_opt='--fatal-warnings'
25835 or1k*-*-*)
25836 conftest_s='
25837 .section ".tdata","awT",@progbits
25838 foo: .long 25
25839 .text
25840 l.movhi r3, tpoffha(foo)
25841 l.add r3, r3, r10
25842 l.lwz r4, tpofflo(foo)(r3)'
25843 tls_as_opt=--fatal-warnings
25845 powerpc-ibm-aix*)
25846 conftest_s='
25847 .extern __get_tpointer
25848 .toc
25849 LC..1:
25850 .tc a[TC],a[TL]@le
25851 .csect .text[PR]
25852 .tlstest:
25853 lwz 9,LC..1(2)
25854 bla __get_tpointer
25855 lwzx 3,9,3
25856 .globl a
25857 .csect a[TL],4
25859 .space 4'
25861 powerpc64*-*-*)
25862 conftest_s='
25863 .section ".tdata","awT",@progbits
25864 .align 3
25865 ld0: .space 8
25866 ld1: .space 8
25867 x1: .space 8
25868 x2: .space 8
25869 x3: .space 8
25870 .text
25871 addi 3,2,ld0@got@tlsgd
25872 bl .__tls_get_addr
25874 addi 3,2,ld1@toc
25875 bl .__tls_get_addr
25877 addi 3,2,x1@got@tlsld
25878 bl .__tls_get_addr
25880 addi 9,3,x1@dtprel
25881 bl .__tls_get_addr
25883 addis 9,3,x2@dtprel@ha
25884 addi 9,9,x2@dtprel@l
25885 bl .__tls_get_addr
25887 ld 9,x3@got@dtprel(2)
25888 add 9,9,3
25889 bl .__tls_get_addr
25890 nop'
25891 tls_as_opt="-a64 --fatal-warnings"
25893 powerpc*-*-*)
25894 conftest_s='
25895 .section ".tdata","awT",@progbits
25896 .align 2
25897 ld0: .space 4
25898 ld1: .space 4
25899 x1: .space 4
25900 x2: .space 4
25901 x3: .space 4
25902 .text
25903 addi 3,31,ld0@got@tlsgd
25904 bl __tls_get_addr
25905 addi 3,31,x1@got@tlsld
25906 bl __tls_get_addr
25907 addi 9,3,x1@dtprel
25908 addis 9,3,x2@dtprel@ha
25909 addi 9,9,x2@dtprel@l
25910 lwz 9,x3@got@tprel(31)
25911 add 9,9,x@tls
25912 addi 9,2,x1@tprel
25913 addis 9,2,x2@tprel@ha
25914 addi 9,9,x2@tprel@l'
25915 tls_as_opt="-a32 --fatal-warnings"
25917 riscv*-*-*)
25918 conftest_s='
25919 .section .tdata,"awT",@progbits
25920 x: .word 2
25921 .text
25922 la.tls.gd a0,x
25923 call __tls_get_addr'
25924 tls_as_opt='--fatal-warnings'
25926 s390-*-*)
25927 conftest_s='
25928 .section ".tdata","awT",@progbits
25929 foo: .long 25
25930 .text
25931 .long foo@TLSGD
25932 .long foo@TLSLDM
25933 .long foo@DTPOFF
25934 .long foo@NTPOFF
25935 .long foo@GOTNTPOFF
25936 .long foo@INDNTPOFF
25937 l %r1,foo@GOTNTPOFF(%r12)
25938 l %r1,0(%r1):tls_load:foo
25939 bas %r14,0(%r1,%r13):tls_gdcall:foo
25940 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25941 tls_as_opt="-m31 --fatal-warnings"
25943 s390x-*-*)
25944 conftest_s='
25945 .section ".tdata","awT",@progbits
25946 foo: .long 25
25947 .text
25948 .quad foo@TLSGD
25949 .quad foo@TLSLDM
25950 .quad foo@DTPOFF
25951 .quad foo@NTPOFF
25952 .quad foo@GOTNTPOFF
25953 lg %r1,foo@GOTNTPOFF(%r12)
25954 larl %r1,foo@INDNTPOFF
25955 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25956 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25957 tls_as_opt="-m64 -Aesame --fatal-warnings"
25959 sh-*-* | sh[123456789lbe]*-*-*)
25960 conftest_s='
25961 .section ".tdata","awT",@progbits
25962 foo: .long 25
25963 .text
25964 .long foo@TLSGD
25965 .long foo@TLSLDM
25966 .long foo@DTPOFF
25967 .long foo@GOTTPOFF
25968 .long foo@TPOFF'
25969 tls_as_opt=--fatal-warnings
25971 sparc*-*-*)
25972 case "$target" in
25973 sparc*-sun-solaris2.*)
25974 on_solaris=yes
25977 on_solaris=no
25979 esac
25980 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25981 conftest_s='
25982 .section ".tdata",#alloc,#write,#tls'
25983 else
25984 conftest_s='
25985 .section ".tdata","awT",@progbits'
25986 tls_as_opt="-32 --fatal-warnings"
25988 conftest_s="$conftest_s
25989 foo: .long 25
25990 .text
25991 sethi %tgd_hi22(foo), %o0
25992 add %o0, %tgd_lo10(foo), %o1
25993 add %l7, %o1, %o0, %tgd_add(foo)
25994 call __tls_get_addr, %tgd_call(foo)
25995 sethi %tldm_hi22(foo), %l1
25996 add %l1, %tldm_lo10(foo), %l2
25997 add %l7, %l2, %o0, %tldm_add(foo)
25998 call __tls_get_addr, %tldm_call(foo)
25999 sethi %tldo_hix22(foo), %l3
26000 xor %l3, %tldo_lox10(foo), %l4
26001 add %o0, %l4, %l5, %tldo_add(foo)
26002 sethi %tie_hi22(foo), %o3
26003 add %o3, %tie_lo10(foo), %o3
26004 ld [%l7 + %o3], %o2, %tie_ld(foo)
26005 add %g7, %o2, %o4, %tie_add(foo)
26006 sethi %tle_hix22(foo), %l1
26007 xor %l1, %tle_lox10(foo), %o5
26008 ld [%g7 + %o5], %o1"
26010 xtensa*-*-*)
26011 conftest_s='
26012 .section ".tdata","awT",@progbits
26013 foo: .long 25
26014 .text
26015 movi a8, foo@TLSFUNC
26016 movi a10, foo@TLSARG
26017 callx8.tls a8, foo@TLSCALL'
26019 esac
26020 set_have_as_tls=no
26021 if test "x$enable_tls" = xno ; then
26022 : # TLS explicitly disabled.
26023 elif test "x$enable_tls" = xyes ; then
26024 set_have_as_tls=yes # TLS explicitly enabled.
26025 elif test -z "$conftest_s"; then
26026 : # If we don't have a check, assume no support.
26027 else
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26029 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26030 if ${gcc_cv_as_tls+:} false; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_tls=no
26034 if test x$gcc_cv_as != x; then
26035 $as_echo "$conftest_s" > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26042 then
26043 gcc_cv_as_tls=yes
26044 else
26045 echo "configure: failed program was" >&5
26046 cat conftest.s >&5
26048 rm -f conftest.o conftest.s
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26052 $as_echo "$gcc_cv_as_tls" >&6; }
26053 if test $gcc_cv_as_tls = yes; then
26054 set_have_as_tls=yes
26058 if test $set_have_as_tls = yes ; then
26060 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26064 # Target-specific assembler checks.
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26067 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26068 gcc_cv_ld_static_dynamic=no
26069 gcc_cv_ld_static_option='-Bstatic'
26070 gcc_cv_ld_dynamic_option='-Bdynamic'
26071 if test $in_tree_ld = yes ; then
26072 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
26073 gcc_cv_ld_static_dynamic=yes
26075 elif test x$gcc_cv_ld != x; then
26076 # Check if linker supports -Bstatic/-Bdynamic option
26077 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26078 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26079 gcc_cv_ld_static_dynamic=yes
26080 else
26081 case "$target" in
26082 # AIX ld uses -b flags
26083 *-*-aix4.[23]* | *-*-aix[5-9]*)
26084 gcc_cv_ld_static_dynamic=yes
26085 gcc_cv_ld_static_option="-bstatic"
26086 gcc_cv_ld_dynamic_option="-bdynamic"
26088 # HP-UX ld uses -a flags to select between shared and archive.
26089 *-*-hpux*)
26090 if test x"$gnu_ld" = xno; then
26091 gcc_cv_ld_static_dynamic=yes
26092 gcc_cv_ld_static_option="-aarchive_shared"
26093 gcc_cv_ld_dynamic_option="-adefault"
26096 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26097 *-*-solaris2*)
26098 gcc_cv_ld_static_dynamic=yes
26100 esac
26103 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26105 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26108 cat >>confdefs.h <<_ACEOF
26109 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26110 _ACEOF
26113 cat >>confdefs.h <<_ACEOF
26114 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26115 _ACEOF
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26119 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26122 $as_echo_n "checking linker --version-script option... " >&6; }
26123 gcc_cv_ld_version_script=no
26124 ld_version_script_option=''
26125 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26126 gcc_cv_ld_version_script=yes
26127 ld_version_script_option='--version-script'
26128 elif test x$gcc_cv_ld != x; then
26129 case "$target" in
26130 # Solaris 2 ld always supports -M. It also supports a subset of
26131 # --version-script since Solaris 11.4, but requires
26132 # -z gnu-version-script-compat to activate.
26133 *-*-solaris2*)
26134 gcc_cv_ld_version_script=yes
26135 ld_version_script_option='-M'
26137 esac
26139 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26141 $as_echo "$gcc_cv_ld_version_script" >&6; }
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26145 $as_echo_n "checking linker soname option... " >&6; }
26146 gcc_cv_ld_soname=no
26147 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26148 gcc_cv_ld_soname=yes
26149 ld_soname_option='-soname'
26150 elif test x$gcc_cv_ld != x; then
26151 case "$target" in
26152 *-*-darwin*)
26153 gcc_cv_ld_soname=yes
26154 ld_soname_option='-install_name'
26156 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26157 # ld compatiblity since some Solaris 10 update.
26158 *-*-solaris2*)
26159 gcc_cv_ld_soname=yes
26160 ld_soname_option='-h'
26162 esac
26164 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26166 $as_echo "$gcc_cv_ld_soname" >&6; }
26169 if test x"$demangler_in_ld" = xyes; then
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26171 $as_echo_n "checking linker --demangle support... " >&6; }
26172 gcc_cv_ld_demangle=no
26173 if test $in_tree_ld = yes; then
26174 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 \
26175 gcc_cv_ld_demangle=yes
26177 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26178 # Check if the GNU linker supports --demangle option
26179 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26180 gcc_cv_ld_demangle=yes
26183 if test x"$gcc_cv_ld_demangle" = xyes; then
26185 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26189 $as_echo "$gcc_cv_ld_demangle" >&6; }
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26193 $as_echo_n "checking linker plugin support... " >&6; }
26194 gcc_cv_lto_plugin=0
26195 if test -f liblto_plugin.la; then
26196 save_ld_ver="$ld_ver"
26197 save_ld_vers_major="$ld_vers_major"
26198 save_ld_vers_minor="$ld_vers_minor"
26199 save_ld_is_gold="$ld_is_gold"
26201 ld_is_gold=no
26203 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26204 ld_ver="GNU ld"
26205 # FIXME: ld_is_gold?
26206 ld_vers_major="$gcc_cv_gld_major_version"
26207 ld_vers_minor="$gcc_cv_gld_minor_version"
26208 else
26209 # Determine plugin linker version.
26210 # FIXME: Partial duplicate from above, generalize.
26211 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26212 if echo "$ld_ver" | grep GNU > /dev/null; then
26213 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26214 ld_is_gold=yes
26215 ld_vers=`echo $ld_ver | sed -n \
26216 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26217 else
26218 ld_vers=`echo $ld_ver | sed -n \
26219 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26221 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26222 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26226 # Determine plugin support.
26227 if echo "$ld_ver" | grep GNU > /dev/null; then
26228 # Require GNU ld or gold 2.21+ for plugin support by default.
26229 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26230 gcc_cv_lto_plugin=2
26231 elif test "$ld_is_mold" = yes; then
26232 gcc_cv_lto_plugin=2
26233 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26234 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26235 gcc_cv_lto_plugin=1
26239 ld_ver="$save_ld_ver"
26240 ld_vers_major="$save_ld_vers_major"
26241 ld_vers_minor="$save_ld_vers_minor"
26242 ld_is_gold="$save_ld_is_gold"
26245 cat >>confdefs.h <<_ACEOF
26246 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26247 _ACEOF
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26250 $as_echo "$gcc_cv_lto_plugin" >&6; }
26252 # Target OS-specific assembler checks.
26254 case "$target_os" in
26255 darwin*)
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26257 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26258 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_as_mmacosx_version_min=no
26262 if test x$gcc_cv_as != x; then
26263 $as_echo '.text' > conftest.s
26264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }
26270 then
26271 gcc_cv_as_mmacosx_version_min=yes
26272 else
26273 echo "configure: failed program was" >&5
26274 cat conftest.s >&5
26276 rm -f conftest.o conftest.s
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26280 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26281 if test $gcc_cv_as_mmacosx_version_min = yes; then
26283 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26288 esac
26290 # Target CPU-specific assembler checks.
26292 case "$target" in
26293 aarch64*-*-*)
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26295 $as_echo_n "checking assembler for -mabi option... " >&6; }
26296 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26297 $as_echo_n "(cached) " >&6
26298 else
26299 gcc_cv_as_aarch64_mabi=no
26300 if test x$gcc_cv_as != x; then
26301 $as_echo '.text' > conftest.s
26302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26305 ac_status=$?
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; }
26308 then
26309 gcc_cv_as_aarch64_mabi=yes
26310 else
26311 echo "configure: failed program was" >&5
26312 cat conftest.s >&5
26314 rm -f conftest.o conftest.s
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26318 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26321 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26323 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26325 else
26326 if test x$with_abi = xilp32; then
26327 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26328 Upgrade the Assembler." "$LINENO" 5
26330 if test x"$with_multilib_list" = xdefault; then
26331 TM_MULTILIB_CONFIG=lp64
26332 else
26333 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26334 for aarch64_multilib in ${aarch64_multilibs}; do
26335 case ${aarch64_multilib} in
26336 ilp32)
26337 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26338 Upgrade the Assembler." "$LINENO" 5
26342 esac
26343 done
26346 # Check if we have binutils support for relocations types needed by -fpic
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26348 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26349 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26350 $as_echo_n "(cached) " >&6
26351 else
26352 gcc_cv_as_aarch64_picreloc=no
26353 if test x$gcc_cv_as != x; then
26354 $as_echo '
26355 .text
26356 ldr x0, [x2, #:gotpage_lo15:globalsym]
26357 ' > conftest.s
26358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26363 test $ac_status = 0; }; }
26364 then
26365 gcc_cv_as_aarch64_picreloc=yes
26366 else
26367 echo "configure: failed program was" >&5
26368 cat conftest.s >&5
26370 rm -f conftest.o conftest.s
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26374 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26375 if test $gcc_cv_as_aarch64_picreloc = yes; then
26377 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26381 # Enable Branch Target Identification Mechanism and Return Address
26382 # Signing by default.
26383 # Check whether --enable-standard-branch-protection was given.
26384 if test "${enable_standard_branch_protection+set}" = set; then :
26385 enableval=$enable_standard_branch_protection;
26386 case $enableval in
26387 yes)
26388 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26393 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26394 Valid choices are 'yes' and 'no'." "$LINENO" 5
26396 esac
26400 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26401 # Check whether --enable-fix-cortex-a53-835769 was given.
26402 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26403 enableval=$enable_fix_cortex_a53_835769;
26404 case $enableval in
26405 yes)
26406 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26411 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26412 Valid choices are 'yes' and 'no'." "$LINENO" 5
26415 esac
26419 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26420 # Check whether --enable-fix-cortex-a53-843419 was given.
26421 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26422 enableval=$enable_fix_cortex_a53_843419;
26423 case $enableval in
26424 yes)
26425 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26430 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26431 Valid choices are 'yes' and 'no'." "$LINENO" 5
26434 esac
26440 # All TARGET_ABI_OSF targets.
26441 alpha*-*-linux* | alpha*-*-*bsd*)
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26443 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26444 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_alpha_explicit_relocs=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo ' .set nomacro
26450 .text
26451 extbl $3, $2, $3 !lituse_bytoff!1
26452 ldq $2, a($29) !literal!1
26453 ldq $4, b($29) !literal!2
26454 ldq_u $3, 0($2) !lituse_base!1
26455 ldq $27, f($29) !literal!5
26456 jsr $26, ($27), f !lituse_jsr!5
26457 ldah $29, 0($26) !gpdisp!3
26458 lda $0, c($29) !gprel
26459 ldah $1, d($29) !gprelhigh
26460 lda $1, d($1) !gprellow
26461 lda $29, 0($29) !gpdisp!3' > conftest.s
26462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26468 then
26469 gcc_cv_as_alpha_explicit_relocs=yes
26470 else
26471 echo "configure: failed program was" >&5
26472 cat conftest.s >&5
26474 rm -f conftest.o conftest.s
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26478 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26479 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26481 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26486 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26487 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26488 $as_echo_n "(cached) " >&6
26489 else
26490 gcc_cv_as_alpha_jsrdirect_relocs=no
26491 if test x$gcc_cv_as != x; then
26492 $as_echo ' .set nomacro
26493 .text
26494 ldq $27, a($29) !literal!1
26495 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26502 then
26503 gcc_cv_as_alpha_jsrdirect_relocs=yes
26504 else
26505 echo "configure: failed program was" >&5
26506 cat conftest.s >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26512 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26513 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26515 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26521 avr-*-*)
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26523 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26524 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26525 $as_echo_n "(cached) " >&6
26526 else
26527 gcc_cv_as_avr_mlink_relax=no
26528 if test x$gcc_cv_as != x; then
26529 $as_echo '.text' > conftest.s
26530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26532 (eval $ac_try) 2>&5
26533 ac_status=$?
26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26535 test $ac_status = 0; }; }
26536 then
26537 gcc_cv_as_avr_mlink_relax=yes
26538 else
26539 echo "configure: failed program was" >&5
26540 cat conftest.s >&5
26542 rm -f conftest.o conftest.s
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26546 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26547 if test $gcc_cv_as_avr_mlink_relax = yes; then
26549 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26555 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26556 if ${gcc_cv_as_avr_mrmw+:} false; then :
26557 $as_echo_n "(cached) " >&6
26558 else
26559 gcc_cv_as_avr_mrmw=no
26560 if test x$gcc_cv_as != x; then
26561 $as_echo '.text' > conftest.s
26562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26568 then
26569 gcc_cv_as_avr_mrmw=yes
26570 else
26571 echo "configure: failed program was" >&5
26572 cat conftest.s >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26578 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26579 if test $gcc_cv_as_avr_mrmw = yes; then
26581 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26587 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26588 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26589 $as_echo_n "(cached) " >&6
26590 else
26591 gcc_cv_as_avr_mgccisr=no
26592 if test x$gcc_cv_as != x; then
26593 $as_echo '.text
26594 __gcc_isr 1
26595 __gcc_isr 2
26596 __gcc_isr 0,r24
26597 ' > conftest.s
26598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26604 then
26605 gcc_cv_as_avr_mgccisr=yes
26606 else
26607 echo "configure: failed program was" >&5
26608 cat conftest.s >&5
26610 rm -f conftest.o conftest.s
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26614 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26615 if test $gcc_cv_as_avr_mgccisr = yes; then
26617 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26622 # Check how default linker description file implements .rodata for
26623 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26624 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26626 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26627 cat > conftest.s <<EOF
26628 .section .rodata,"a",@progbits
26629 .global xxvaryy
26630 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26631 xxvaryy:
26632 .word 1
26634 rm -f conftest.nm
26635 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26641 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26643 (eval $ac_try) 2>&5
26644 ac_status=$?
26645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26646 test $ac_status = 0; }; }
26647 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26650 ac_status=$?
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26653 if test -s conftest.nm
26654 then
26655 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26657 $as_echo "yes" >&6; }
26659 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26661 else
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26663 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26664 echo "$as_me: nm output was" >&5
26665 cat conftest.nm >&5
26666 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26667 { $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
26668 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26670 else
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26672 $as_echo "test failed" >&6; }
26673 echo "$as_me: failed program was" >&5
26674 cat conftest.s >&5
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26676 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26678 rm -f conftest.s conftest.o conftest.elf conftest.nm
26681 cris-*-*)
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26683 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26684 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_as_cris_no_mul_bug=no
26688 if test x$gcc_cv_as != x; then
26689 $as_echo '.text' > conftest.s
26690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26696 then
26697 gcc_cv_as_cris_no_mul_bug=yes
26698 else
26699 echo "configure: failed program was" >&5
26700 cat conftest.s >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26706 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26707 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26709 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26715 sparc*-*-*)
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26717 $as_echo_n "checking assembler for -relax option... " >&6; }
26718 if ${gcc_cv_as_sparc_relax+:} false; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_sparc_relax=no
26722 if test x$gcc_cv_as != x; then
26723 $as_echo '.text' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
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 then
26731 gcc_cv_as_sparc_relax=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26740 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26741 if test $gcc_cv_as_sparc_relax = yes; then
26743 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26749 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26750 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26751 $as_echo_n "(cached) " >&6
26752 else
26753 gcc_cv_as_sparc_gotdata_op=no
26754 if test x$gcc_cv_as != x; then
26755 $as_echo '.text
26756 .align 4
26757 foo:
26759 bar:
26760 sethi %gdop_hix22(foo), %g1
26761 xor %g1, %gdop_lox10(foo), %g1
26762 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26769 then
26770 if test x$gcc_cv_ld != x \
26771 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26772 if test x$gcc_cv_objdump != x; then
26773 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26774 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26775 gcc_cv_as_sparc_gotdata_op=no
26776 else
26777 gcc_cv_as_sparc_gotdata_op=yes
26781 rm -f conftest
26782 else
26783 echo "configure: failed program was" >&5
26784 cat conftest.s >&5
26786 rm -f conftest.o conftest.s
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26790 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26791 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26793 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26799 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26800 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26801 $as_echo_n "(cached) " >&6
26802 else
26803 gcc_cv_as_sparc_ua_pcrel=no
26804 if test x$gcc_cv_as != x; then
26805 $as_echo '.text
26806 foo:
26808 .data
26809 .align 4
26810 .byte 0
26811 .uaword %r_disp32(foo)' > conftest.s
26812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }
26818 then
26819 if test x$gcc_cv_ld != x \
26820 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26821 gcc_cv_as_sparc_ua_pcrel=yes
26823 rm -f conftest
26824 else
26825 echo "configure: failed program was" >&5
26826 cat conftest.s >&5
26828 rm -f conftest.o conftest.s
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26832 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26833 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26835 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26839 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26840 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26841 $as_echo_n "(cached) " >&6
26842 else
26843 gcc_cv_as_sparc_ua_pcrel_hidden=no
26844 if test x$gcc_cv_as != x; then
26845 $as_echo '.data
26846 .align 4
26847 .byte 0x31
26848 .uaword %r_disp32(foo)
26849 .byte 0x32, 0x33, 0x34
26850 .global foo
26851 .hidden foo
26852 foo:
26853 .skip 4' > conftest.s
26854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26860 then
26861 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26862 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26863 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26864 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26865 if $gcc_cv_objdump -R conftest 2> /dev/null \
26866 | grep 'DISP32' > /dev/null 2>&1; then
26868 else
26869 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26872 rm -f conftest
26873 else
26874 echo "configure: failed program was" >&5
26875 cat conftest.s >&5
26877 rm -f conftest.o conftest.s
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26881 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26882 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26884 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26890 # unaligned pcrel relocs
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26893 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26894 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26895 $as_echo_n "(cached) " >&6
26896 else
26897 gcc_cv_as_sparc_offsetable_lo10=no
26898 if test x$gcc_cv_as != x; then
26899 $as_echo '.text
26900 or %g1, %lo(ab) + 12, %g1
26901 or %g1, %lo(ab + 12), %g1' > conftest.s
26902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26904 (eval $ac_try) 2>&5
26905 ac_status=$?
26906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26907 test $ac_status = 0; }; }
26908 then
26909 if test x$gcc_cv_objdump != x \
26910 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26911 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26912 gcc_cv_as_sparc_offsetable_lo10=yes
26914 else
26915 echo "configure: failed program was" >&5
26916 cat conftest.s >&5
26918 rm -f conftest.o conftest.s
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26922 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26923 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26925 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26931 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26932 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26933 $as_echo_n "(cached) " >&6
26934 else
26935 gcc_cv_as_sparc_fmaf=no
26936 if test x$gcc_cv_as != x; then
26937 $as_echo '.text
26938 .register %g2, #scratch
26939 .register %g3, #scratch
26940 .align 4
26941 fmaddd %f0, %f2, %f4, %f6
26942 addxccc %g1, %g2, %g3
26943 fsrl32 %f2, %f4, %f8
26944 fnaddd %f10, %f12, %f14' > conftest.s
26945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26951 then
26952 gcc_cv_as_sparc_fmaf=yes
26953 else
26954 echo "configure: failed program was" >&5
26955 cat conftest.s >&5
26957 rm -f conftest.o conftest.s
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26961 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26962 if test $gcc_cv_as_sparc_fmaf = yes; then
26964 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26970 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26971 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26972 $as_echo_n "(cached) " >&6
26973 else
26974 gcc_cv_as_sparc_sparc4=no
26975 if test x$gcc_cv_as != x; then
26976 $as_echo '.text
26977 .register %g2, #scratch
26978 .register %g3, #scratch
26979 .align 4
26980 cxbe %g2, %g3, 1f
26981 1: cwbneg %g2, %g3, 1f
26982 1: sha1
26984 aes_kexpand0 %f4, %f6, %f8
26985 des_round %f38, %f40, %f42, %f44
26986 camellia_f %f54, %f56, %f58, %f60
26987 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26994 then
26995 gcc_cv_as_sparc_sparc4=yes
26996 else
26997 echo "configure: failed program was" >&5
26998 cat conftest.s >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27004 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27005 if test $gcc_cv_as_sparc_sparc4 = yes; then
27007 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27013 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27014 if ${gcc_cv_as_sparc_sparc5+:} false; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_sparc_sparc5=no
27018 if test x$gcc_cv_as != x; then
27019 $as_echo '.text
27020 .register %g2, #scratch
27021 .register %g3, #scratch
27022 .align 4
27023 subxc %g1, %g2, %g3
27024 fpadd8 %f0, %f2, %f4' > conftest.s
27025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27031 then
27032 gcc_cv_as_sparc_sparc5=yes
27033 else
27034 echo "configure: failed program was" >&5
27035 cat conftest.s >&5
27037 rm -f conftest.o conftest.s
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27041 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27042 if test $gcc_cv_as_sparc_sparc5 = yes; then
27044 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27050 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27051 if ${gcc_cv_as_sparc_sparc6+:} false; then :
27052 $as_echo_n "(cached) " >&6
27053 else
27054 gcc_cv_as_sparc_sparc6=no
27055 if test x$gcc_cv_as != x; then
27056 $as_echo '.text
27057 .register %g2, #scratch
27058 .register %g3, #scratch
27059 .align 4
27060 rd %entropy, %g1
27061 fpsll64x %f0, %f2, %f4' > conftest.s
27062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; }
27068 then
27069 gcc_cv_as_sparc_sparc6=yes
27070 else
27071 echo "configure: failed program was" >&5
27072 cat conftest.s >&5
27074 rm -f conftest.o conftest.s
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27078 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27079 if test $gcc_cv_as_sparc_sparc6 = yes; then
27081 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27087 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27088 if ${gcc_cv_as_sparc_leon+:} false; then :
27089 $as_echo_n "(cached) " >&6
27090 else
27091 gcc_cv_as_sparc_leon=no
27092 if test x$gcc_cv_as != x; then
27093 $as_echo '.text
27094 .register %g2, #scratch
27095 .register %g3, #scratch
27096 .align 4
27097 smac %g2, %g3, %g1
27098 umac %g2, %g3, %g1
27099 casa [%g2] 0xb, %g3, %g1' > conftest.s
27100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27105 test $ac_status = 0; }; }
27106 then
27107 gcc_cv_as_sparc_leon=yes
27108 else
27109 echo "configure: failed program was" >&5
27110 cat conftest.s >&5
27112 rm -f conftest.o conftest.s
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27116 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27117 if test $gcc_cv_as_sparc_leon = yes; then
27119 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27125 i[34567]86-*-* | x86_64-*-*)
27126 case $target_os in
27127 cygwin*)
27128 # Full C++ conformance when using a shared libstdc++-v3 requires some
27129 # support from the Cygwin DLL, which in more recent versions exports
27130 # wrappers to aid in interposing and redirecting operators new, delete,
27131 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27132 # are configuring for a version of Cygwin that exports the wrappers.
27133 if test x$host = x$target && test x$host_cpu = xi686; then
27134 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27135 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27136 gcc_ac_cygwin_dll_wrappers=yes
27137 else
27138 gcc_ac_cygwin_dll_wrappers=no
27141 else
27142 # Can't check presence of libc functions during cross-compile, so
27143 # we just have to assume we're building for an up-to-date target.
27144 gcc_ac_cygwin_dll_wrappers=yes
27147 cat >>confdefs.h <<_ACEOF
27148 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27149 _ACEOF
27151 esac
27152 case $target_os in
27153 cygwin* | pe | mingw32*)
27154 # Recent binutils allows the three-operand form of ".comm" on PE. This
27155 # definition is used unconditionally to initialise the default state of
27156 # the target option variable that governs usage of the feature.
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27158 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27159 if ${gcc_cv_as_comm_has_align+:} false; then :
27160 $as_echo_n "(cached) " >&6
27161 else
27162 gcc_cv_as_comm_has_align=no
27163 if test x$gcc_cv_as != x; then
27164 $as_echo '.comm foo,1,32' > conftest.s
27165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27171 then
27172 gcc_cv_as_comm_has_align=yes
27173 else
27174 echo "configure: failed program was" >&5
27175 cat conftest.s >&5
27177 rm -f conftest.o conftest.s
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27181 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27185 cat >>confdefs.h <<_ACEOF
27186 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27187 _ACEOF
27189 # Used for DWARF 2 in PE
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27191 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27192 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_ix86_pe_secrel32=no
27196 if test x$gcc_cv_as != x; then
27197 $as_echo '.text
27198 foo: nop
27199 .data
27200 .secrel32 foo' > conftest.s
27201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27207 then
27208 if test x$gcc_cv_ld != x \
27209 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27210 gcc_cv_as_ix86_pe_secrel32=yes
27212 rm -f conftest
27213 else
27214 echo "configure: failed program was" >&5
27215 cat conftest.s >&5
27217 rm -f conftest.o conftest.s
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27221 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27222 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27224 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27228 # Test if the assembler supports the extended form of the .section
27229 # directive that specifies section alignment. LTO support uses this,
27230 # but normally only after installation, so we warn but don't fail the
27231 # configure if LTO is enabled but the assembler does not support it.
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27233 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27234 if ${gcc_cv_as_section_has_align+:} false; then :
27235 $as_echo_n "(cached) " >&6
27236 else
27237 gcc_cv_as_section_has_align=no
27238 if test x$gcc_cv_as != x; then
27239 $as_echo '.section lto_test,"dr0"' > conftest.s
27240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27245 test $ac_status = 0; }; }
27246 then
27247 gcc_cv_as_section_has_align=yes
27248 else
27249 echo "configure: failed program was" >&5
27250 cat conftest.s >&5
27252 rm -f conftest.o conftest.s
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27256 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27259 if test x$gcc_cv_as_section_has_align != xyes; then
27260 case ",$enable_languages," in
27261 *,lto,*)
27262 { $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
27263 $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;}
27265 esac
27268 esac
27269 case $target_os in
27270 darwin2* | darwin19*)
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27272 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27273 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27274 $as_echo_n "(cached) " >&6
27275 else
27276 gcc_cv_as_mllvm_x86_pad_for_align=no
27277 if test x$gcc_cv_as != x; then
27278 $as_echo '.text' > conftest.s
27279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27285 then
27286 gcc_cv_as_mllvm_x86_pad_for_align=yes
27287 else
27288 echo "configure: failed program was" >&5
27289 cat conftest.s >&5
27291 rm -f conftest.o conftest.s
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27295 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27296 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27298 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27303 esac
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27306 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27307 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27308 $as_echo_n "(cached) " >&6
27309 else
27310 gcc_cv_as_ix86_xbrace_comment=no
27311 if test x$gcc_cv_as != x; then
27312 $as_echo '.text' > conftest.s
27313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318 test $ac_status = 0; }; }
27319 then
27320 gcc_cv_as_ix86_xbrace_comment=yes
27321 else
27322 echo "configure: failed program was" >&5
27323 cat conftest.s >&5
27325 rm -f conftest.o conftest.s
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27329 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27330 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27332 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27338 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27339 if ${gcc_cv_as_ix86_filds+:} false; then :
27340 $as_echo_n "(cached) " >&6
27341 else
27342 gcc_cv_as_ix86_filds=no
27343 if test x$gcc_cv_as != x; then
27344 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 gcc_cv_as_ix86_filds=yes
27353 else
27354 echo "configure: failed program was" >&5
27355 cat conftest.s >&5
27357 rm -f conftest.o conftest.s
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27361 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27362 if test $gcc_cv_as_ix86_filds = yes; then
27364 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27370 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27371 if ${gcc_cv_as_ix86_fildq+:} false; then :
27372 $as_echo_n "(cached) " >&6
27373 else
27374 gcc_cv_as_ix86_fildq=no
27375 if test x$gcc_cv_as != x; then
27376 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; }
27383 then
27384 gcc_cv_as_ix86_fildq=yes
27385 else
27386 echo "configure: failed program was" >&5
27387 cat conftest.s >&5
27389 rm -f conftest.o conftest.s
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27393 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27394 if test $gcc_cv_as_ix86_fildq = yes; then
27396 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27402 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27403 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27404 $as_echo_n "(cached) " >&6
27405 else
27406 gcc_cv_as_ix86_cmov_sun_syntax=no
27407 if test x$gcc_cv_as != x; then
27408 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; }
27415 then
27416 gcc_cv_as_ix86_cmov_sun_syntax=yes
27417 else
27418 echo "configure: failed program was" >&5
27419 cat conftest.s >&5
27421 rm -f conftest.o conftest.s
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27425 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27426 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27428 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27434 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27435 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27436 $as_echo_n "(cached) " >&6
27437 else
27438 gcc_cv_as_ix86_ffreep=no
27439 if test x$gcc_cv_as != x; then
27440 $as_echo 'ffreep %st(1)' > conftest.s
27441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27443 (eval $ac_try) 2>&5
27444 ac_status=$?
27445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27446 test $ac_status = 0; }; }
27447 then
27448 gcc_cv_as_ix86_ffreep=yes
27449 else
27450 echo "configure: failed program was" >&5
27451 cat conftest.s >&5
27453 rm -f conftest.o conftest.s
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27457 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27458 if test $gcc_cv_as_ix86_ffreep = yes; then
27460 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27466 $as_echo_n "checking assembler for .quad directive... " >&6; }
27467 if ${gcc_cv_as_ix86_quad+:} false; then :
27468 $as_echo_n "(cached) " >&6
27469 else
27470 gcc_cv_as_ix86_quad=no
27471 if test x$gcc_cv_as != x; then
27472 $as_echo '.quad 0' > conftest.s
27473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27478 test $ac_status = 0; }; }
27479 then
27480 gcc_cv_as_ix86_quad=yes
27481 else
27482 echo "configure: failed program was" >&5
27483 cat conftest.s >&5
27485 rm -f conftest.o conftest.s
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27489 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27490 if test $gcc_cv_as_ix86_quad = yes; then
27492 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27498 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27499 if ${gcc_cv_as_ix86_sahf+:} false; then :
27500 $as_echo_n "(cached) " >&6
27501 else
27502 gcc_cv_as_ix86_sahf=no
27503 if test x$gcc_cv_as != x; then
27504 $as_echo '.code64
27505 sahf' > conftest.s
27506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27508 (eval $ac_try) 2>&5
27509 ac_status=$?
27510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27511 test $ac_status = 0; }; }
27512 then
27513 gcc_cv_as_ix86_sahf=yes
27514 else
27515 echo "configure: failed program was" >&5
27516 cat conftest.s >&5
27518 rm -f conftest.o conftest.s
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27522 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27523 if test $gcc_cv_as_ix86_sahf = yes; then
27525 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27531 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27532 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27533 $as_echo_n "(cached) " >&6
27534 else
27535 gcc_cv_as_ix86_interunit_movq=no
27536 if test x$gcc_cv_as != x; then
27537 $as_echo '.code64
27538 movq %mm0, %rax
27539 movq %rax, %xmm0' > conftest.s
27540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27545 test $ac_status = 0; }; }
27546 then
27547 gcc_cv_as_ix86_interunit_movq=yes
27548 else
27549 echo "configure: failed program was" >&5
27550 cat conftest.s >&5
27552 rm -f conftest.o conftest.s
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27556 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27560 cat >>confdefs.h <<_ACEOF
27561 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27562 _ACEOF
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27566 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27567 if ${gcc_cv_as_ix86_hle+:} false; then :
27568 $as_echo_n "(cached) " >&6
27569 else
27570 gcc_cv_as_ix86_hle=no
27571 if test x$gcc_cv_as != x; then
27572 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27575 (eval $ac_try) 2>&5
27576 ac_status=$?
27577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27578 test $ac_status = 0; }; }
27579 then
27580 gcc_cv_as_ix86_hle=yes
27581 else
27582 echo "configure: failed program was" >&5
27583 cat conftest.s >&5
27585 rm -f conftest.o conftest.s
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27589 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27590 if test $gcc_cv_as_ix86_hle = yes; then
27592 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27598 $as_echo_n "checking assembler for swap suffix... " >&6; }
27599 if ${gcc_cv_as_ix86_swap+:} false; then :
27600 $as_echo_n "(cached) " >&6
27601 else
27602 gcc_cv_as_ix86_swap=no
27603 if test x$gcc_cv_as != x; then
27604 $as_echo 'movl.s %esp, %ebp' > conftest.s
27605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27610 test $ac_status = 0; }; }
27611 then
27612 gcc_cv_as_ix86_swap=yes
27613 else
27614 echo "configure: failed program was" >&5
27615 cat conftest.s >&5
27617 rm -f conftest.o conftest.s
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27621 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27622 if test $gcc_cv_as_ix86_swap = yes; then
27624 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27630 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27631 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27632 $as_echo_n "(cached) " >&6
27633 else
27634 gcc_cv_as_ix86_diff_sect_delta=no
27635 if test x$gcc_cv_as != x; then
27636 $as_echo '.section .rodata
27637 .L1:
27638 .long .L2-.L1
27639 .long .L3-.L1
27640 .text
27641 .L3: nop
27642 .L2: nop' > conftest.s
27643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27649 then
27650 gcc_cv_as_ix86_diff_sect_delta=yes
27651 else
27652 echo "configure: failed program was" >&5
27653 cat conftest.s >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27659 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27660 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27662 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27668 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27669 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27670 $as_echo_n "(cached) " >&6
27671 else
27672 gcc_cv_as_ix86_rep_lock_prefix=no
27673 if test x$gcc_cv_as != x; then
27674 $as_echo 'rep movsl
27675 rep ret
27676 rep nop
27677 rep bsf %ecx, %eax
27678 rep bsr %ecx, %eax
27679 lock addl %edi, (%eax,%esi)
27680 lock orl $0, (%esp)' > conftest.s
27681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686 test $ac_status = 0; }; }
27687 then
27688 gcc_cv_as_ix86_rep_lock_prefix=yes
27689 else
27690 echo "configure: failed program was" >&5
27691 cat conftest.s >&5
27693 rm -f conftest.o conftest.s
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27697 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27698 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27700 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27706 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27707 if ${gcc_cv_as_ix86_ud2+:} false; then :
27708 $as_echo_n "(cached) " >&6
27709 else
27710 gcc_cv_as_ix86_ud2=no
27711 if test x$gcc_cv_as != x; then
27712 $as_echo 'ud2' > conftest.s
27713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27718 test $ac_status = 0; }; }
27719 then
27720 gcc_cv_as_ix86_ud2=yes
27721 else
27722 echo "configure: failed program was" >&5
27723 cat conftest.s >&5
27725 rm -f conftest.o conftest.s
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27729 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27730 if test $gcc_cv_as_ix86_ud2 = yes; then
27732 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27737 # Enforce 32-bit output with gas and gld.
27738 if test x$gas = xyes; then
27739 as_ix86_gas_32_opt="--32"
27741 if echo "$ld_ver" | grep GNU > /dev/null; then
27742 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27743 ld_ix86_gld_32_opt="-melf_i386_sol2"
27744 else
27745 ld_ix86_gld_32_opt="-melf_i386"
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27750 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27751 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27752 $as_echo_n "(cached) " >&6
27753 else
27754 gcc_cv_as_ix86_tlsgdplt=no
27755 if test x$gcc_cv_as != x; then
27756 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759 (eval $ac_try) 2>&5
27760 ac_status=$?
27761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762 test $ac_status = 0; }; }
27763 then
27764 if test x$gcc_cv_ld != x \
27765 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27766 gcc_cv_as_ix86_tlsgdplt=yes
27768 rm -f conftest
27769 else
27770 echo "configure: failed program was" >&5
27771 cat conftest.s >&5
27773 rm -f conftest.o conftest.s
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27777 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27778 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27780 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27785 conftest_s='
27786 .section .tdata,"aw'$tls_section_flag'",@progbits
27787 tls_ld:
27788 .section .text,"ax",@progbits
27789 call tls_ld@tlsldmplt'
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27792 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27793 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27794 $as_echo_n "(cached) " >&6
27795 else
27796 gcc_cv_as_ix86_tlsldmplt=no
27797 if test x$gcc_cv_as != x; then
27798 $as_echo "$conftest_s" > conftest.s
27799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804 test $ac_status = 0; }; }
27805 then
27806 if test x$gcc_cv_ld != x \
27807 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27808 gcc_cv_as_ix86_tlsldmplt=yes
27810 rm -f conftest
27811 else
27812 echo "configure: failed program was" >&5
27813 cat conftest.s >&5
27815 rm -f conftest.o conftest.s
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27819 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27823 cat >>confdefs.h <<_ACEOF
27824 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27825 _ACEOF
27828 conftest_s='
27829 .section .text,"ax",@progbits
27830 .globl _start
27831 .type _start, @function
27832 _start:
27833 leal value@tlsldm(%ebx), %eax
27834 call ___tls_get_addr@plt
27836 .section .tdata,"aw'$tls_section_flag'",@progbits
27837 .type value, @object
27838 value:'
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27840 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27841 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27842 $as_echo_n "(cached) " >&6
27843 else
27844 gcc_cv_as_ix86_tlsldm=no
27845 if test x$gcc_cv_as != x; then
27846 $as_echo "$conftest_s" > conftest.s
27847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849 (eval $ac_try) 2>&5
27850 ac_status=$?
27851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852 test $ac_status = 0; }; }
27853 then
27854 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27855 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27856 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27857 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27858 gcc_cv_as_ix86_tlsldm=yes
27861 rm -f conftest
27862 else
27863 echo "configure: failed program was" >&5
27864 cat conftest.s >&5
27866 rm -f conftest.o conftest.s
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27870 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27874 cat >>confdefs.h <<_ACEOF
27875 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27876 _ACEOF
27879 conftest_s='
27880 .data
27881 bar:
27882 .byte 1
27883 .text
27884 .global _start
27885 _start:
27886 cmpl $0, bar@GOT
27887 jmp *_start@GOT'
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27889 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27890 if ${gcc_cv_as_ix86_got32x+:} false; then :
27891 $as_echo_n "(cached) " >&6
27892 else
27893 gcc_cv_as_ix86_got32x=no
27894 if test x$gcc_cv_as != x; then
27895 $as_echo "$conftest_s" > conftest.s
27896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27901 test $ac_status = 0; }; }
27902 then
27903 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27904 && test x$gcc_cv_readelf != x \
27905 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27906 | grep R_386_GOT32X > /dev/null 2>&1 \
27907 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27908 if $gcc_cv_objdump -dw conftest 2>&1 \
27909 | grep 0xffffff > /dev/null 2>&1; then
27910 gcc_cv_as_ix86_got32x=no
27911 else
27912 gcc_cv_as_ix86_got32x=yes
27915 rm -f conftest
27916 else
27917 echo "configure: failed program was" >&5
27918 cat conftest.s >&5
27920 rm -f conftest.o conftest.s
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27924 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27928 cat >>confdefs.h <<_ACEOF
27929 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27930 _ACEOF
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27934 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27935 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27936 $as_echo_n "(cached) " >&6
27937 else
27938 gcc_cv_as_ix86_gotoff_in_data=no
27939 if test x$gcc_cv_as != x; then
27940 $as_echo ' .text
27941 .L0:
27943 .data
27944 .long .L0@GOTOFF' > conftest.s
27945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27950 test $ac_status = 0; }; }
27951 then
27952 gcc_cv_as_ix86_gotoff_in_data=yes
27953 else
27954 echo "configure: failed program was" >&5
27955 cat conftest.s >&5
27957 rm -f conftest.o conftest.s
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27961 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27965 cat >>confdefs.h <<_ACEOF
27966 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27967 _ACEOF
27970 conftest_s='
27971 .section .text,"ax",@progbits
27972 .globl _start
27973 .type _start, @function
27974 _start:
27975 leal ld@tlsldm(%ecx), %eax
27976 call *___tls_get_addr@GOT(%ecx)
27977 leal gd@tlsgd(%ecx), %eax
27978 call *___tls_get_addr@GOT(%ecx)
27980 .section .tdata,"aw'$tls_section_flag'",@progbits
27981 .type ld, @object
27983 .byte 0
27984 .globl gd
27985 .type gd, @object
27987 .byte 0'
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27989 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27990 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27991 $as_echo_n "(cached) " >&6
27992 else
27993 gcc_cv_as_ix86_tls_get_addr_via_got=no
27994 if test x$gcc_cv_as != x; then
27995 $as_echo "$conftest_s" > conftest.s
27996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28001 test $ac_status = 0; }; }
28002 then
28003 if test x$gcc_cv_ld != x \
28004 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28005 gcc_cv_as_ix86_tls_get_addr_via_got=yes
28007 rm -f conftest
28008 else
28009 echo "configure: failed program was" >&5
28010 cat conftest.s >&5
28012 rm -f conftest.o conftest.s
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28016 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28020 cat >>confdefs.h <<_ACEOF
28021 #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`
28022 _ACEOF
28026 ia64*-*-*)
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28028 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28029 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
28030 $as_echo_n "(cached) " >&6
28031 else
28032 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
28033 if test x$gcc_cv_as != x; then
28034 $as_echo ' .text
28035 addl r15 = @ltoffx(x#), gp
28037 ld8.mov r16 = [r15], x#
28038 ' > conftest.s
28039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28044 test $ac_status = 0; }; }
28045 then
28046 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28047 else
28048 echo "configure: failed program was" >&5
28049 cat conftest.s >&5
28051 rm -f conftest.o conftest.s
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28055 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28056 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28058 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28065 powerpc*-*-*)
28067 case $target in
28068 *-*-darwin*)
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28070 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28071 if ${gcc_cv_as_machine_directive+:} false; then :
28072 $as_echo_n "(cached) " >&6
28073 else
28074 gcc_cv_as_machine_directive=no
28075 if test x$gcc_cv_as != x; then
28076 $as_echo ' .machine ppc7400' > conftest.s
28077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28079 (eval $ac_try) 2>&5
28080 ac_status=$?
28081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082 test $ac_status = 0; }; }
28083 then
28084 gcc_cv_as_machine_directive=yes
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_machine_directive" >&5
28093 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28096 if test x$gcc_cv_as_machine_directive != xyes; then
28097 echo "*** This target requires an assembler supporting \".machine\"" >&2
28098 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28099 test x$build = x$target && exit 1
28102 esac
28104 case $target in
28105 *-*-aix*) conftest_s=' .machine "pwr5"
28106 .csect .text[PR]
28107 mfcr 3,128';;
28108 *-*-darwin*) conftest_s=' .text
28109 mfcr r3,128';;
28110 *) conftest_s=' .machine power4
28111 .text
28112 mfcr 3,128';;
28113 esac
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28116 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28117 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28118 $as_echo_n "(cached) " >&6
28119 else
28120 gcc_cv_as_powerpc_mfcrf=no
28121 if test x$gcc_cv_as != x; then
28122 $as_echo "$conftest_s" > conftest.s
28123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28129 then
28130 gcc_cv_as_powerpc_mfcrf=yes
28131 else
28132 echo "configure: failed program was" >&5
28133 cat conftest.s >&5
28135 rm -f conftest.o conftest.s
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28139 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28140 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28142 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28147 case $target in
28148 *-*-aix*) conftest_s=' .csect .text[PR]
28149 LCF..0:
28150 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28151 *-*-darwin*)
28152 conftest_s=' .text
28153 LCF0:
28154 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28155 *) conftest_s=' .text
28156 .LCF0:
28157 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28158 esac
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28161 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28162 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28163 $as_echo_n "(cached) " >&6
28164 else
28165 gcc_cv_as_powerpc_rel16=no
28166 if test x$gcc_cv_as != x; then
28167 $as_echo "$conftest_s" > conftest.s
28168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }
28174 then
28175 gcc_cv_as_powerpc_rel16=yes
28176 else
28177 echo "configure: failed program was" >&5
28178 cat conftest.s >&5
28180 rm -f conftest.o conftest.s
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28184 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28185 if test $gcc_cv_as_powerpc_rel16 = yes; then
28187 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28192 case $target in
28193 *-*-aix*) conftest_s=' .machine "pwr7"
28194 .csect .text[PR]
28195 lxvd2x 1,2,3';;
28196 *) conftest_s=' .machine power7
28197 .text
28198 lxvd2x 1,2,3';;
28199 esac
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28202 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28203 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205 else
28206 gcc_cv_as_powerpc_vsx=no
28207 if test x$gcc_cv_as != x; then
28208 $as_echo "$conftest_s" > conftest.s
28209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28211 (eval $ac_try) 2>&5
28212 ac_status=$?
28213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28214 test $ac_status = 0; }; }
28215 then
28216 gcc_cv_as_powerpc_vsx=yes
28217 else
28218 echo "configure: failed program was" >&5
28219 cat conftest.s >&5
28221 rm -f conftest.o conftest.s
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28225 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28226 if test $gcc_cv_as_powerpc_vsx = yes; then
28228 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28234 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28235 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28236 $as_echo_n "(cached) " >&6
28237 else
28238 gcc_cv_as_powerpc_gnu_attribute=no
28239 if test x$gcc_cv_as != x; then
28240 $as_echo '.gnu_attribute 4,1' > conftest.s
28241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28243 (eval $ac_try) 2>&5
28244 ac_status=$?
28245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28246 test $ac_status = 0; }; }
28247 then
28248 gcc_cv_as_powerpc_gnu_attribute=yes
28249 else
28250 echo "configure: failed program was" >&5
28251 cat conftest.s >&5
28253 rm -f conftest.o conftest.s
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28257 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28258 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28260 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28266 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28267 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28268 $as_echo_n "(cached) " >&6
28269 else
28270 gcc_cv_as_powerpc_entry_markers=no
28271 if test x$gcc_cv_as != x; then
28272 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; }
28279 then
28280 gcc_cv_as_powerpc_entry_markers=yes
28281 else
28282 echo "configure: failed program was" >&5
28283 cat conftest.s >&5
28285 rm -f conftest.o conftest.s
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28289 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28290 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28292 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28298 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28299 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28300 $as_echo_n "(cached) " >&6
28301 else
28302 gcc_cv_as_powerpc_pltseq_markers=no
28303 if test x$gcc_cv_as != x; then
28304 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; }
28311 then
28312 gcc_cv_as_powerpc_pltseq_markers=yes
28313 else
28314 echo "configure: failed program was" >&5
28315 cat conftest.s >&5
28317 rm -f conftest.o conftest.s
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28321 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28322 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28324 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28329 case $target in
28330 *-*-aix*)
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28332 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28333 if ${gcc_cv_as_aix_ref+:} false; then :
28334 $as_echo_n "(cached) " >&6
28335 else
28336 gcc_cv_as_aix_ref=no
28337 if test x$gcc_cv_as != x; then
28338 $as_echo ' .csect stuff[rw]
28339 stuff:
28340 .long 1
28341 .extern sym
28342 .ref sym
28343 ' > conftest.s
28344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28346 (eval $ac_try) 2>&5
28347 ac_status=$?
28348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349 test $ac_status = 0; }; }
28350 then
28351 gcc_cv_as_aix_ref=yes
28352 else
28353 echo "configure: failed program was" >&5
28354 cat conftest.s >&5
28356 rm -f conftest.o conftest.s
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28360 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28361 if test $gcc_cv_as_aix_ref = yes; then
28363 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28369 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28370 if ${gcc_cv_as_aix_dwloc+:} false; then :
28371 $as_echo_n "(cached) " >&6
28372 else
28373 gcc_cv_as_aix_dwloc=no
28374 if test x$gcc_cv_as != x; then
28375 $as_echo ' .dwsect 0xA0000
28376 Lframe..0:
28377 .vbyte 4,Lframe..0
28378 ' > conftest.s
28379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28385 then
28386 gcc_cv_as_aix_dwloc=yes
28387 else
28388 echo "configure: failed program was" >&5
28389 cat conftest.s >&5
28391 rm -f conftest.o conftest.s
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28395 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28396 if test $gcc_cv_as_aix_dwloc = yes; then
28398 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28403 esac
28406 mips*-*-*)
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28408 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28409 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 gcc_cv_as_mips_explicit_relocs=no
28413 if test x$gcc_cv_as != x; then
28414 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28421 then
28422 gcc_cv_as_mips_explicit_relocs=yes
28423 else
28424 echo "configure: failed program was" >&5
28425 cat conftest.s >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28431 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28432 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28433 if test x$target_cpu_default = x
28434 then target_cpu_default=MASK_EXPLICIT_RELOCS
28435 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28441 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28442 if ${gcc_cv_as_mips_no_shared+:} false; then :
28443 $as_echo_n "(cached) " >&6
28444 else
28445 gcc_cv_as_mips_no_shared=no
28446 if test x$gcc_cv_as != x; then
28447 $as_echo 'nop' > conftest.s
28448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28454 then
28455 gcc_cv_as_mips_no_shared=yes
28456 else
28457 echo "configure: failed program was" >&5
28458 cat conftest.s >&5
28460 rm -f conftest.o conftest.s
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28464 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28465 if test $gcc_cv_as_mips_no_shared = yes; then
28467 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28473 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28474 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28475 $as_echo_n "(cached) " >&6
28476 else
28477 gcc_cv_as_mips_gnu_attribute=no
28478 if test x$gcc_cv_as != x; then
28479 $as_echo '.gnu_attribute 4,1' > conftest.s
28480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28482 (eval $ac_try) 2>&5
28483 ac_status=$?
28484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28485 test $ac_status = 0; }; }
28486 then
28487 gcc_cv_as_mips_gnu_attribute=yes
28488 else
28489 echo "configure: failed program was" >&5
28490 cat conftest.s >&5
28492 rm -f conftest.o conftest.s
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28496 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28497 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28499 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28505 $as_echo_n "checking assembler for .module support... " >&6; }
28506 if ${gcc_cv_as_mips_dot_module+:} false; then :
28507 $as_echo_n "(cached) " >&6
28508 else
28509 gcc_cv_as_mips_dot_module=no
28510 if test x$gcc_cv_as != x; then
28511 $as_echo '.module mips2
28512 .module fp=xx' > conftest.s
28513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28518 test $ac_status = 0; }; }
28519 then
28520 gcc_cv_as_mips_dot_module=yes
28521 else
28522 echo "configure: failed program was" >&5
28523 cat conftest.s >&5
28525 rm -f conftest.o conftest.s
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28529 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28530 if test $gcc_cv_as_mips_dot_module = yes; then
28532 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28536 if test x$gcc_cv_as_mips_dot_module = xno \
28537 && test x$with_fp_32 != x; then
28538 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28542 $as_echo_n "checking assembler for .micromips support... " >&6; }
28543 if ${gcc_cv_as_micromips_support+:} false; then :
28544 $as_echo_n "(cached) " >&6
28545 else
28546 gcc_cv_as_micromips_support=no
28547 if test x$gcc_cv_as != x; then
28548 $as_echo '.set micromips' > conftest.s
28549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28554 test $ac_status = 0; }; }
28555 then
28556 gcc_cv_as_micromips_support=yes
28557 else
28558 echo "configure: failed program was" >&5
28559 cat conftest.s >&5
28561 rm -f conftest.o conftest.s
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28565 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28566 if test $gcc_cv_as_micromips_support = yes; then
28568 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28574 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28575 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28576 $as_echo_n "(cached) " >&6
28577 else
28578 gcc_cv_as_mips_dtprelword=no
28579 if test x$gcc_cv_as != x; then
28580 $as_echo '.section .tdata,"awT",@progbits
28582 .word 2
28583 .text
28584 .dtprelword x+0x8000' > conftest.s
28585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28590 test $ac_status = 0; }; }
28591 then
28592 gcc_cv_as_mips_dtprelword=yes
28593 else
28594 echo "configure: failed program was" >&5
28595 cat conftest.s >&5
28597 rm -f conftest.o conftest.s
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28601 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28602 if test $gcc_cv_as_mips_dtprelword = yes; then
28604 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28610 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28611 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28612 $as_echo_n "(cached) " >&6
28613 else
28614 gcc_cv_as_mips_dspr1_mult=no
28615 if test x$gcc_cv_as != x; then
28616 $as_echo ' .set mips32r2
28617 .set nodspr2
28618 .set dsp
28619 madd $ac3,$4,$5
28620 maddu $ac3,$4,$5
28621 msub $ac3,$4,$5
28622 msubu $ac3,$4,$5
28623 mult $ac3,$4,$5
28624 multu $ac3,$4,$5' > conftest.s
28625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28630 test $ac_status = 0; }; }
28631 then
28632 gcc_cv_as_mips_dspr1_mult=yes
28633 else
28634 echo "configure: failed program was" >&5
28635 cat conftest.s >&5
28637 rm -f conftest.o conftest.s
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28641 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28642 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28644 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28650 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28651 gcc_cv_as_ld_jalr_reloc=no
28652 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28653 if test $in_tree_ld = yes ; then
28654 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 \
28655 && test $in_tree_ld_is_elf = yes; then
28656 gcc_cv_as_ld_jalr_reloc=yes
28658 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28659 echo ' .ent x' > conftest.s
28660 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28661 echo ' lw $25,%call16(y)($28)' >> conftest.s
28662 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28663 echo '1: jalr $25' >> conftest.s
28664 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28665 echo '1: jalr $25' >> conftest.s
28666 echo ' .end x' >> conftest.s
28667 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28668 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28669 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28670 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28671 gcc_cv_as_ld_jalr_reloc=yes
28674 rm -f conftest.*
28677 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28678 if test x$target_cpu_default = x; then
28679 target_cpu_default=MASK_RELAX_PIC_CALLS
28680 else
28681 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28685 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28688 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28689 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28690 $as_echo_n "(cached) " >&6
28691 else
28692 gcc_cv_ld_mips_personality_relaxation=no
28693 if test $in_tree_ld = yes ; then
28694 if test "$gcc_cv_gld_major_version" -eq 2 \
28695 -a "$gcc_cv_gld_minor_version" -ge 21 \
28696 -o "$gcc_cv_gld_major_version" -gt 2; then
28697 gcc_cv_ld_mips_personality_relaxation=yes
28699 elif test x$gcc_cv_as != x \
28700 -a x$gcc_cv_ld != x \
28701 -a x$gcc_cv_readelf != x ; then
28702 cat > conftest.s <<EOF
28703 .cfi_startproc
28704 .cfi_personality 0x80,indirect_ptr
28705 .ent test
28706 test:
28708 .end test
28709 .cfi_endproc
28711 .section .data,"aw",@progbits
28712 indirect_ptr:
28713 .dc.a personality
28715 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28716 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28717 if $gcc_cv_readelf -d conftest 2>&1 \
28718 | grep TEXTREL > /dev/null 2>&1; then
28720 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28721 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28723 else
28724 gcc_cv_ld_mips_personality_relaxation=yes
28728 rm -f conftest.s conftest.o conftest
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28731 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28732 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28734 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28739 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28740 if ${gcc_cv_as_mips_nan+:} false; then :
28741 $as_echo_n "(cached) " >&6
28742 else
28743 gcc_cv_as_mips_nan=no
28744 if test x$gcc_cv_as != x; then
28745 $as_echo '' > conftest.s
28746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28752 then
28753 gcc_cv_as_mips_nan=yes
28754 else
28755 echo "configure: failed program was" >&5
28756 cat conftest.s >&5
28758 rm -f conftest.o conftest.s
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28762 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28763 if test $gcc_cv_as_mips_nan = yes; then
28765 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28769 if test x$gcc_cv_as_mips_nan = xno \
28770 && test x$with_nan != x; then
28771 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28774 msp430-*-*)
28775 # Earlier GAS versions generically support .gnu_attribute, but the
28776 # msp430 assembler will not do anything with it.
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28778 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28779 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28780 $as_echo_n "(cached) " >&6
28781 else
28782 gcc_cv_as_msp430_gnu_attribute=no
28783 if test x$gcc_cv_as != x; then
28784 $as_echo '.gnu_attribute 4,1' > conftest.s
28785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28787 (eval $ac_try) 2>&5
28788 ac_status=$?
28789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28790 test $ac_status = 0; }; }
28791 then
28792 gcc_cv_as_msp430_gnu_attribute=yes
28793 else
28794 echo "configure: failed program was" >&5
28795 cat conftest.s >&5
28797 rm -f conftest.o conftest.s
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28801 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28802 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28804 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28809 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28810 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28811 $as_echo_n "(cached) " >&6
28812 else
28813 gcc_cv_as_msp430_mspabi_attribute=no
28814 if test x$gcc_cv_as != x; then
28815 $as_echo '.mspabi_attribute 4,2' > conftest.s
28816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28821 test $ac_status = 0; }; }
28822 then
28823 gcc_cv_as_msp430_mspabi_attribute=yes
28824 else
28825 echo "configure: failed program was" >&5
28826 cat conftest.s >&5
28828 rm -f conftest.o conftest.s
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28832 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28833 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28835 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28839 if test x$enable_newlib_nano_formatted_io = xyes; then
28841 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28845 nios2-*-*)
28846 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28847 # syntax that is documented in the ABI specification.
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28849 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28850 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28851 $as_echo_n "(cached) " >&6
28852 else
28853 gcc_cv_as_nios2_gotoff_relocation=no
28854 if test x$gcc_cv_as != x; then
28855 $as_echo ' .extern foo
28856 .data
28857 .long %gotoff(foo)' > conftest.s
28858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28863 test $ac_status = 0; }; }
28864 then
28865 gcc_cv_as_nios2_gotoff_relocation=yes
28866 else
28867 echo "configure: failed program was" >&5
28868 cat conftest.s >&5
28870 rm -f conftest.o conftest.s
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28874 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28875 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28877 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28882 riscv*-*-*)
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28884 $as_echo_n "checking assembler for .attribute support... " >&6; }
28885 if ${gcc_cv_as_riscv_attribute+:} false; then :
28886 $as_echo_n "(cached) " >&6
28887 else
28888 gcc_cv_as_riscv_attribute=no
28889 if test x$gcc_cv_as != x; then
28890 $as_echo '.attribute stack_align,4' > conftest.s
28891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28893 (eval $ac_try) 2>&5
28894 ac_status=$?
28895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28896 test $ac_status = 0; }; }
28897 then
28898 gcc_cv_as_riscv_attribute=yes
28899 else
28900 echo "configure: failed program was" >&5
28901 cat conftest.s >&5
28903 rm -f conftest.o conftest.s
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28907 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28908 if test $gcc_cv_as_riscv_attribute = yes; then
28910 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28915 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28916 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28917 $as_echo_n "(cached) " >&6
28918 else
28919 gcc_cv_as_riscv_isa_spec=no
28920 if test x$gcc_cv_as != x; then
28921 $as_echo '' > conftest.s
28922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28927 test $ac_status = 0; }; }
28928 then
28929 gcc_cv_as_riscv_isa_spec=yes
28930 else
28931 echo "configure: failed program was" >&5
28932 cat conftest.s >&5
28934 rm -f conftest.o conftest.s
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28938 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28939 if test $gcc_cv_as_riscv_isa_spec = yes; then
28941 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28946 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28947 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28948 $as_echo_n "(cached) " >&6
28949 else
28950 gcc_cv_as_riscv_march_zifencei=no
28951 if test x$gcc_cv_as != x; then
28952 $as_echo '' > conftest.s
28953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }
28959 then
28960 gcc_cv_as_riscv_march_zifencei=yes
28961 else
28962 echo "configure: failed program was" >&5
28963 cat conftest.s >&5
28965 rm -f conftest.o conftest.s
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28969 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28970 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28972 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28977 loongarch*-*-*)
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28979 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28980 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28981 $as_echo_n "(cached) " >&6
28982 else
28983 gcc_cv_as_loongarch_dtprelword=no
28984 if test x$gcc_cv_as != x; then
28985 $as_echo '' > conftest.s
28986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28991 test $ac_status = 0; }; }
28992 then
28993 .section .tdata,"awT",@progbits
28995 .word 2
28996 .text
28997 .dtprelword x+0x8000
28998 else
28999 echo "configure: failed program was" >&5
29000 cat conftest.s >&5
29002 rm -f conftest.o conftest.s
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29006 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29008 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29010 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29014 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29015 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
29016 $as_echo_n "(cached) " >&6
29017 else
29018 gcc_cv_as_loongarch_explicit_relocs=no
29019 if test x$gcc_cv_as != x; then
29020 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; }
29027 then
29028 gcc_cv_as_loongarch_explicit_relocs=yes
29029 else
29030 echo "configure: failed program was" >&5
29031 cat conftest.s >&5
29033 rm -f conftest.o conftest.s
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29037 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29038 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29040 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29045 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29046 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
29047 $as_echo_n "(cached) " >&6
29048 else
29049 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
29050 if test x$gcc_cv_as != x; then
29051 $as_echo '.cfi_startproc
29052 .cfi_personality 0x9b,a
29053 .cfi_lsda 0x1b,b
29054 .cfi_endproc' > conftest.s
29055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29057 (eval $ac_try) 2>&5
29058 ac_status=$?
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; }
29061 then
29062 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
29063 else
29064 echo "configure: failed program was" >&5
29065 cat conftest.s >&5
29067 rm -f conftest.o conftest.s
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29071 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29072 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29074 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29079 s390*-*-*)
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29081 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29082 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29083 $as_echo_n "(cached) " >&6
29084 else
29085 gcc_cv_as_s390_gnu_attribute=no
29086 if test x$gcc_cv_as != x; then
29087 $as_echo '.gnu_attribute 8,1' > conftest.s
29088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29093 test $ac_status = 0; }; }
29094 then
29095 gcc_cv_as_s390_gnu_attribute=yes
29096 else
29097 echo "configure: failed program was" >&5
29098 cat conftest.s >&5
29100 rm -f conftest.o conftest.s
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29104 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29105 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29107 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29112 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29113 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29114 $as_echo_n "(cached) " >&6
29115 else
29116 gcc_cv_as_s390_machine_machinemode=no
29117 if test x$gcc_cv_as != x; then
29118 $as_echo ' .machinemode push
29119 .machinemode pop
29120 .machine push
29121 .machine pop' > conftest.s
29122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29127 test $ac_status = 0; }; }
29128 then
29129 gcc_cv_as_s390_machine_machinemode=yes
29130 else
29131 echo "configure: failed program was" >&5
29132 cat conftest.s >&5
29134 rm -f conftest.o conftest.s
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29138 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29139 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29141 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29146 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29147 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29148 $as_echo_n "(cached) " >&6
29149 else
29150 gcc_cv_as_s390_architecture_modifiers=no
29151 if test x$gcc_cv_as != x; then
29152 $as_echo ' .machine z13+vx ' > conftest.s
29153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29158 test $ac_status = 0; }; }
29159 then
29160 gcc_cv_as_s390_architecture_modifiers=yes
29161 else
29162 echo "configure: failed program was" >&5
29163 cat conftest.s >&5
29165 rm -f conftest.o conftest.s
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29169 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29170 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29172 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29177 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29178 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29179 $as_echo_n "(cached) " >&6
29180 else
29181 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29182 if test x$gcc_cv_as != x; then
29183 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189 test $ac_status = 0; }; }
29190 then
29191 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29192 else
29193 echo "configure: failed program was" >&5
29194 cat conftest.s >&5
29196 rm -f conftest.o conftest.s
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29200 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29201 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29203 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29208 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29209 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29210 $as_echo_n "(cached) " >&6
29211 else
29212 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29213 if test x$gcc_cv_as != x; then
29214 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29220 test $ac_status = 0; }; }
29221 then
29222 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29223 else
29224 echo "configure: failed program was" >&5
29225 cat conftest.s >&5
29227 rm -f conftest.o conftest.s
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29231 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29232 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29234 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29240 esac
29242 # Mips, LoongArch and HP-UX need the GNU assembler.
29243 # Linux on IA64 might be able to use the Intel assembler.
29245 case "$target" in
29246 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29247 if test x$gas_flag = xyes \
29248 || test x"$host" != x"$build" \
29249 || test ! -x "$gcc_cv_as" \
29250 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29252 else
29253 echo "*** This configuration requires the GNU assembler" >&2
29254 exit 1
29257 esac
29259 # AMD GCN needs the LLVM assembler and linker.
29260 # Test that LLVM is at least 13.0.1.
29261 case "$target" in
29262 amdgcn-* | gcn-*)
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29264 $as_echo_n "checking llvm assembler version... " >&6; }
29265 gcc_cv_as_version="unknown"
29266 if test x$gcc_cv_as != x; then
29267 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29268 case "$gcc_cv_as_version" in
29269 13.0.[1-9]*) ;; # 13.0.1+
29270 13.[1-9]*) ;; # 13.1+
29271 1[4-9]*) ;; # 14..19
29272 [2-9][0-9]*) ;; # 20..99
29273 [1-9][0-9][0-9]*) ;; # 100+
29274 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29275 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29276 esac
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29279 $as_echo "$gcc_cv_as_version, ok" >&6; }
29281 esac
29283 case "$target" in
29284 arm*)
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29286 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29287 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29288 $as_echo_n "(cached) " >&6
29289 else
29290 gcc_cv_as_arm_option_extensions=no
29291 if test x$gcc_cv_as != x; then
29292 $as_echo '.text
29293 .thumb
29294 .syntax unified
29295 vmov.f32 s0, s1' > conftest.s
29296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29298 (eval $ac_try) 2>&5
29299 ac_status=$?
29300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29301 test $ac_status = 0; }; }
29302 then
29303 gcc_cv_as_arm_option_extensions=yes
29304 else
29305 echo "configure: failed program was" >&5
29306 cat conftest.s >&5
29308 rm -f conftest.o conftest.s
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29312 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29313 if test $gcc_cv_as_arm_option_extensions = yes; then
29315 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29319 esac
29321 # ??? Not all targets support dwarf2 debug_line, even within a version
29322 # of gas. Moreover, we need to emit a valid instruction to trigger any
29323 # info to the output file. So, as supported targets are added to gas 2.11,
29324 # add some instruction here to (also) show we expect this might work.
29325 # ??? Once 2.11 is released, probably need to add first known working
29326 # version to the per-target configury.
29327 case "$cpu_type" in
29328 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29329 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29330 | visium | xstormy16 | xtensa)
29331 insn="nop"
29333 ia64 | s390)
29334 insn="nop 0"
29336 mmix)
29337 insn="swym 0"
29339 esac
29340 if test x"$insn" != x; then
29341 conftest_s="\
29342 .file 1 \"conftest.s\"
29343 .loc 1 3 0
29344 $insn"
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29346 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29347 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29348 $as_echo_n "(cached) " >&6
29349 else
29350 gcc_cv_as_dwarf2_debug_line=no
29351 if test x$gcc_cv_as != x; then
29352 $as_echo "$conftest_s" > conftest.s
29353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29358 test $ac_status = 0; }; }
29359 then
29360 if test x$gcc_cv_objdump != x \
29361 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29362 | grep debug_line > /dev/null 2>&1; then
29363 gcc_cv_as_dwarf2_debug_line=yes
29364 elif test x$gcc_cv_otool != x \
29365 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29366 | grep debug_line > /dev/null 2>&1; then
29367 gcc_cv_as_dwarf2_debug_line=yes
29369 else
29370 echo "configure: failed program was" >&5
29371 cat conftest.s >&5
29373 rm -f conftest.o conftest.s
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29377 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29381 # The .debug_line file table must be in the exact order that
29382 # we specified the files, since these indices are also used
29383 # by DW_AT_decl_file. Approximate this test by testing if
29384 # the assembler bitches if the same index is assigned twice.
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29386 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29387 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29388 $as_echo_n "(cached) " >&6
29389 else
29390 gcc_cv_as_dwarf2_file_buggy=no
29391 if test x$gcc_cv_as != x; then
29392 $as_echo ' .file 1 "foo.s"
29393 .file 1 "bar.s"' > conftest.s
29394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29396 (eval $ac_try) 2>&5
29397 ac_status=$?
29398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29399 test $ac_status = 0; }; }
29400 then
29401 gcc_cv_as_dwarf2_file_buggy=yes
29402 else
29403 echo "configure: failed program was" >&5
29404 cat conftest.s >&5
29406 rm -f conftest.o conftest.s
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29410 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29414 if test $gcc_cv_as_dwarf2_debug_line = yes \
29415 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29417 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29420 if test $gcc_cv_as_leb128 = yes; then
29421 conftest_s="\
29422 .file 1 \"conftest.s\"
29423 .loc 1 3 0 view .LVU1
29424 $insn
29425 .data
29426 .uleb128 .LVU1
29427 .uleb128 .LVU1
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29430 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29431 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29432 $as_echo_n "(cached) " >&6
29433 else
29434 gcc_cv_as_dwarf2_debug_view=no
29435 if test x$gcc_cv_as != x; then
29436 $as_echo "$conftest_s" > conftest.s
29437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29439 (eval $ac_try) 2>&5
29440 ac_status=$?
29441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29442 test $ac_status = 0; }; }
29443 then
29444 gcc_cv_as_dwarf2_debug_view=yes
29445 else
29446 echo "configure: failed program was" >&5
29447 cat conftest.s >&5
29449 rm -f conftest.o conftest.s
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29453 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29454 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29456 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29464 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29465 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29466 $as_echo_n "(cached) " >&6
29467 else
29468 gcc_cv_as_gdwarf2_flag=no
29469 if test x$gcc_cv_as != x; then
29470 $as_echo "$insn" > conftest.s
29471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29473 (eval $ac_try) 2>&5
29474 ac_status=$?
29475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29476 test $ac_status = 0; }; }
29477 then
29478 gcc_cv_as_gdwarf2_flag=yes
29479 else
29480 echo "configure: failed program was" >&5
29481 cat conftest.s >&5
29483 rm -f conftest.o conftest.s
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29487 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29488 if test $gcc_cv_as_gdwarf2_flag = yes; then
29490 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29496 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29497 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29498 $as_echo_n "(cached) " >&6
29499 else
29500 gcc_cv_as_gdwarf_5_flag=no
29501 if test x$gcc_cv_as != x; then
29502 $as_echo "$insn" > conftest.s
29503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29505 (eval $ac_try) 2>&5
29506 ac_status=$?
29507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29508 test $ac_status = 0; }; }
29509 then
29510 if test x$gcc_cv_objdump != x \
29511 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29512 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29513 gcc_cv_as_gdwarf_5_flag=yes;
29515 else
29516 echo "configure: failed program was" >&5
29517 cat conftest.s >&5
29519 rm -f conftest.o conftest.s
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29523 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29524 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29526 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29531 case $target_os in
29532 win32 | pe | cygwin* | mingw32*)
29533 section_flags=\"dr\"
29534 function_type=".def foo; .scl 2; .type 32; .endef"
29535 function_size="";;
29537 section_flags=\"\",%progbits
29538 function_type=".type foo, %function"
29539 function_size=".size foo, .-foo";;
29540 esac
29541 dwarf4_debug_info_size=0x46
29542 dwarf4_high_pc_form=7
29543 dwarf4_debug_aranges_size=0x2c
29544 dwarf4_line_sz=9
29545 for dwarf4_addr_size in 8 4; do
29546 conftest_s="\
29547 .file \"a.c\"
29548 .text
29549 .Ltext0:
29550 .p2align 4
29551 .globl foo
29552 $function_type
29553 foo:
29554 .LFB0:
29555 .LM1:
29556 $insn
29557 .LM2:
29558 .LFE0:
29559 $function_size
29560 .Letext0:
29561 .section .debug_info,$section_flags
29562 .Ldebug_info0:
29563 .4byte $dwarf4_debug_info_size
29564 .2byte 0x4
29565 .4byte .Ldebug_abbrev0
29566 .byte 0x$dwarf4_addr_size
29567 .byte 0x1
29568 .ascii \"GNU C17\\0\"
29569 .byte 0xc
29570 .ascii \"a.c\\0\"
29571 .ascii \"/\\0\"
29572 .${dwarf4_addr_size}byte .Ltext0
29573 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29574 .4byte .Ldebug_line0
29575 .byte 0x2
29576 .ascii \"foo\\0\"
29577 .byte 0x1
29578 .byte 0x2
29579 .byte 0x1
29580 .${dwarf4_addr_size}byte .LFB0
29581 .${dwarf4_addr_size}byte .LFE0-.LFB0
29582 .byte 0x1
29583 .byte 0x9c
29584 .byte 0
29585 .section .debug_abbrev,$section_flags
29586 .Ldebug_abbrev0:
29587 .byte 0x1
29588 .byte 0x11
29589 .byte 0x1
29590 .byte 0x25
29591 .byte 0x8
29592 .byte 0x13
29593 .byte 0xb
29594 .byte 0x3
29595 .byte 0x8
29596 .byte 0x1b
29597 .byte 0x8
29598 .byte 0x11
29599 .byte 0x1
29600 .byte 0x12
29601 .byte 0x$dwarf4_high_pc_form
29602 .byte 0x10
29603 .byte 0x17
29604 .byte 0
29605 .byte 0
29606 .byte 0x2
29607 .byte 0x2e
29608 .byte 0
29609 .byte 0x3f
29610 .byte 0x19
29611 .byte 0x3
29612 .byte 0x8
29613 .byte 0x3a
29614 .byte 0xb
29615 .byte 0x3b
29616 .byte 0xb
29617 .byte 0x39
29618 .byte 0xb
29619 .byte 0x11
29620 .byte 0x1
29621 .byte 0x12
29622 .byte 0x$dwarf4_high_pc_form
29623 .byte 0x40
29624 .byte 0x18
29625 .byte 0
29626 .byte 0
29627 .byte 0
29628 .section .debug_aranges,$section_flags
29629 .4byte $dwarf4_debug_aranges_size
29630 .2byte 0x2
29631 .4byte .Ldebug_info0
29632 .byte 0x8
29633 .byte 0
29634 .2byte 0
29635 .2byte 0
29636 .${dwarf4_addr_size}byte .Ltext0
29637 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29638 .${dwarf4_addr_size}byte 0
29639 .${dwarf4_addr_size}byte 0
29640 .section .debug_line,$section_flags
29641 .Ldebug_line0:
29642 .4byte .LELT0-.LSLT0
29643 .LSLT0:
29644 .2byte 0x4
29645 .4byte .LELTP0-.LASLTP0
29646 .LASLTP0:
29647 .byte 0x1
29648 .byte 0x1
29649 .byte 0x1
29650 .byte 0xf6
29651 .byte 0xf2
29652 .byte 0xd
29653 .byte 0
29654 .byte 0x1
29655 .byte 0x1
29656 .byte 0x1
29657 .byte 0x1
29658 .byte 0
29659 .byte 0
29660 .byte 0
29661 .byte 0x1
29662 .byte 0
29663 .byte 0
29664 .byte 0x1
29665 .byte 0
29666 .ascii \"a.c\\0\"
29667 .byte 0
29668 .byte 0
29669 .byte 0
29670 .byte 0
29671 .LELTP0:
29672 .byte 0
29673 .byte 0x$dwarf4_line_sz
29674 .byte 0x2
29675 .${dwarf4_addr_size}byte .LM1
29676 .byte 0x18
29677 .byte 0x5
29678 .byte 0x1
29679 .byte 0
29680 .byte 0x$dwarf4_line_sz
29681 .byte 0x2
29682 .${dwarf4_addr_size}byte .LM2
29683 .byte 0x1
29684 .byte 0x5
29685 .byte 0x1
29686 .byte 0
29687 .byte 0x$dwarf4_line_sz
29688 .byte 0x2
29689 .${dwarf4_addr_size}byte .Letext0
29690 .byte 0
29691 .byte 0x1
29692 .byte 0x1
29693 .LELT0:
29694 .section .debug_str,$section_flags
29695 .ident \"GCC\"
29697 dwarf4_success=no
29698 if test $dwarf4_addr_size = 4; then
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29700 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29701 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29702 $as_echo_n "(cached) " >&6
29703 else
29704 gcc_cv_as_debug_line_32_flag=no
29705 if test x$gcc_cv_as != x; then
29706 $as_echo "$conftest_s" > conftest.s
29707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29712 test $ac_status = 0; }; }
29713 then
29714 gcc_cv_as_debug_line_32_flag=yes
29715 else
29716 echo "configure: failed program was" >&5
29717 cat conftest.s >&5
29719 rm -f conftest.o conftest.s
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29723 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29724 if test $gcc_cv_as_debug_line_32_flag = yes; then
29725 dwarf4_success=yes
29728 else
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29730 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29731 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29732 $as_echo_n "(cached) " >&6
29733 else
29734 gcc_cv_as_debug_line_64_flag=no
29735 if test x$gcc_cv_as != x; then
29736 $as_echo "$conftest_s" > conftest.s
29737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29739 (eval $ac_try) 2>&5
29740 ac_status=$?
29741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29742 test $ac_status = 0; }; }
29743 then
29744 gcc_cv_as_debug_line_64_flag=yes
29745 else
29746 echo "configure: failed program was" >&5
29747 cat conftest.s >&5
29749 rm -f conftest.o conftest.s
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29753 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29754 if test $gcc_cv_as_debug_line_64_flag = yes; then
29755 dwarf4_success=yes
29759 if test $dwarf4_success = yes; then
29760 dwarf4_success=no
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29762 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29763 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29764 $as_echo_n "(cached) " >&6
29765 else
29766 gcc_cv_as_dwarf_4_debug_line_flag=no
29767 if test x$gcc_cv_as != x; then
29768 $as_echo "$conftest_s" > conftest.s
29769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29774 test $ac_status = 0; }; }
29775 then
29776 gcc_cv_as_dwarf_4_debug_line_flag=yes
29777 else
29778 echo "configure: failed program was" >&5
29779 cat conftest.s >&5
29781 rm -f conftest.o conftest.s
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29785 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29786 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29787 dwarf4_success=yes
29790 break
29792 dwarf4_debug_info_size=0x36
29793 dwarf4_high_pc_form=6
29794 dwarf4_debug_aranges_size=0x1c
29795 dwarf4_line_sz=5
29796 done
29798 if test $dwarf4_success = yes; then
29799 conftest_s="\
29800 .file \"foo.c\"
29801 .text
29802 bar:
29803 #APP
29804 # 82 \"xxx.h\" 1
29805 $insn
29806 # 0 \"\" 2
29807 #NO_APP
29808 $insn
29809 foo:
29810 .file 1 \"foo.c\"
29811 $insn
29812 .file 2 \"foo.h\"
29815 dwarf4_success=no
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29817 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29818 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29819 $as_echo_n "(cached) " >&6
29820 else
29821 gcc_cv_as_dwarf_4_app_flag=no
29822 if test x$gcc_cv_as != x; then
29823 $as_echo "$conftest_s" > conftest.s
29824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29826 (eval $ac_try) 2>&5
29827 ac_status=$?
29828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29829 test $ac_status = 0; }; }
29830 then
29831 gcc_cv_as_dwarf_4_app_flag=yes
29832 else
29833 echo "configure: failed program was" >&5
29834 cat conftest.s >&5
29836 rm -f conftest.o conftest.s
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29840 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29841 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29842 dwarf4_success=yes
29847 if test $dwarf4_success = yes; then
29848 conftest_s="\
29849 .text
29850 .globl foo
29851 $function_type
29852 foo:
29853 $insn
29854 $function_size
29855 .file 1 \"foo.c\"
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29858 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29859 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29860 $as_echo_n "(cached) " >&6
29861 else
29862 gcc_cv_as_working_gdwarf_n_flag=no
29863 if test x$gcc_cv_as != x; then
29864 $as_echo "$conftest_s" > conftest.s
29865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }
29871 then
29872 if test x$gcc_cv_objdump != x \
29873 && $gcc_cv_objdump -W conftest.o 2>&1 \
29874 | grep conftest.s > /dev/null 2>&1; then
29875 gcc_cv_as_working_gdwarf_n_flag=no
29876 else
29877 gcc_cv_as_working_gdwarf_n_flag=yes
29879 else
29880 echo "configure: failed program was" >&5
29881 cat conftest.s >&5
29883 rm -f conftest.o conftest.s
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29887 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29890 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29892 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29898 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29899 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29900 $as_echo_n "(cached) " >&6
29901 else
29902 gcc_cv_as_debug_prefix_map_flag=no
29903 if test x$gcc_cv_as != x; then
29904 $as_echo "$insn" > conftest.s
29905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29907 (eval $ac_try) 2>&5
29908 ac_status=$?
29909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29910 test $ac_status = 0; }; }
29911 then
29912 gcc_cv_as_debug_prefix_map_flag=yes
29913 else
29914 echo "configure: failed program was" >&5
29915 cat conftest.s >&5
29917 rm -f conftest.o conftest.s
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29921 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29922 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29924 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29931 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29932 if ${gcc_cv_as_compress_debug+:} false; then :
29933 $as_echo_n "(cached) " >&6
29934 else
29935 gcc_cv_as_compress_debug=no
29936 if test x$gcc_cv_as != x; then
29937 $as_echo '' > conftest.s
29938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29943 test $ac_status = 0; }; }
29944 then
29945 # gas compiled without zlib cannot compress debug sections and warns
29946 # about it, but still exits successfully. So check for this, too.
29947 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29948 then
29949 gcc_cv_as_compress_debug=0
29950 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29951 then
29952 gcc_cv_as_compress_debug=1
29953 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29954 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29955 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29956 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29957 then
29958 gcc_cv_as_compress_debug=2
29960 else
29961 gcc_cv_as_compress_debug=0
29963 else
29964 echo "configure: failed program was" >&5
29965 cat conftest.s >&5
29967 rm -f conftest.o conftest.s
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29971 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29975 cat >>confdefs.h <<_ACEOF
29976 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29977 _ACEOF
29980 cat >>confdefs.h <<_ACEOF
29981 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29982 _ACEOF
29985 cat >>confdefs.h <<_ACEOF
29986 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29987 _ACEOF
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29991 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29992 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29993 $as_echo_n "(cached) " >&6
29994 else
29995 gcc_cv_as_lcomm_with_alignment=no
29996 if test x$gcc_cv_as != x; then
29997 $as_echo '.lcomm bar,4,16' > conftest.s
29998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30000 (eval $ac_try) 2>&5
30001 ac_status=$?
30002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30003 test $ac_status = 0; }; }
30004 then
30005 gcc_cv_as_lcomm_with_alignment=yes
30006 else
30007 echo "configure: failed program was" >&5
30008 cat conftest.s >&5
30010 rm -f conftest.o conftest.s
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30014 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30015 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30017 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30022 if test x$with_sysroot = x && test x$host = x$target \
30023 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30024 && test "$prefix" != "NONE"; then
30026 cat >>confdefs.h <<_ACEOF
30027 #define PREFIX_INCLUDE_DIR "$prefix/include"
30028 _ACEOF
30032 # Determine the version of glibc, if any, used on the target.
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30034 $as_echo_n "checking for target glibc version... " >&6; }
30036 # Check whether --with-glibc-version was given.
30037 if test "${with_glibc_version+set}" = set; then :
30038 withval=$with_glibc_version;
30039 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30040 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30041 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30042 else
30043 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30045 else
30047 glibc_version_major=0
30048 glibc_version_minor=0
30049 if test -f $target_header_dir/features.h \
30050 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30051 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30052 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30053 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30058 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30060 cat >>confdefs.h <<_ACEOF
30061 #define TARGET_GLIBC_MAJOR $glibc_version_major
30062 _ACEOF
30065 cat >>confdefs.h <<_ACEOF
30066 #define TARGET_GLIBC_MINOR $glibc_version_minor
30067 _ACEOF
30070 # Check whether --enable-gnu-unique-object was given.
30071 if test "${enable_gnu_unique_object+set}" = set; then :
30072 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30073 yes | no) ;;
30074 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30075 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30076 esac
30077 else
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30079 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30080 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30081 $as_echo_n "(cached) " >&6
30082 else
30083 gcc_cv_as_gnu_unique_object=no
30084 if test x$gcc_cv_as != x; then
30085 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30088 (eval $ac_try) 2>&5
30089 ac_status=$?
30090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30091 test $ac_status = 0; }; }
30092 then
30093 gcc_cv_as_gnu_unique_object=yes
30094 else
30095 echo "configure: failed program was" >&5
30096 cat conftest.s >&5
30098 rm -f conftest.o conftest.s
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30102 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30103 if test $gcc_cv_as_gnu_unique_object = yes; then
30104 # We need to unquote above to to use the definition from config.gcc.
30105 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30107 if test $glibc_version_major -gt 2 \
30108 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30109 enable_gnu_unique_object=yes
30116 if test x$enable_gnu_unique_object = xyes; then
30118 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30123 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30124 if ${gcc_cv_as_line_zero+:} false; then :
30125 $as_echo_n "(cached) " >&6
30126 else
30127 gcc_cv_as_line_zero=no
30128 if test "x$gcc_cv_as" != x; then
30129 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30130 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30132 (eval $ac_try) 2>&5
30133 ac_status=$?
30134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30135 test $ac_status = 0; }; } &&
30136 test "x`cat conftest.out`" = x
30137 then
30138 gcc_cv_as_line_zero=yes
30139 else
30140 echo "configure: failed program was" >&5
30141 cat conftest.s >&5
30142 echo "configure: error output was" >&5
30143 cat conftest.out >&5
30145 rm -f conftest.o conftest.s conftest.out
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30149 $as_echo "$gcc_cv_as_line_zero" >&6; }
30150 if test "x$gcc_cv_as_line_zero" = xyes; then
30152 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30157 $as_echo_n "checking support for thin archives... " >&6; }
30158 thin_archive_support=no
30159 echo 'int main (void) { return 0; }' > conftest.c
30160 if ($AR --version | sed 1q | grep "GNU ar" \
30161 && $CC $CFLAGS -c conftest.c \
30162 && $AR rcT conftest.a conftest.o \
30163 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30164 thin_archive_support=yes
30166 rm -f conftest.c conftest.o conftest.a conftest
30167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30168 $as_echo "$thin_archive_support" >&6; }
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30172 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30173 gcc_cv_ld_eh_frame_hdr=no
30174 if test $in_tree_ld = yes ; then
30175 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 \
30176 && test $in_tree_ld_is_elf = yes; then
30177 gcc_cv_ld_eh_frame_hdr=yes
30179 elif test x$gcc_cv_ld != x; then
30180 if echo "$ld_ver" | grep GNU > /dev/null; then
30181 # Check if linker supports --eh-frame-hdr option
30182 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30183 gcc_cv_ld_eh_frame_hdr=yes
30185 else
30186 case "$target" in
30187 *-*-solaris2*)
30188 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30189 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30190 gcc_cv_ld_eh_frame_hdr=yes
30193 esac
30197 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30199 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30203 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30206 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30207 gcc_cv_ld_eh_frame_ciev3=no
30208 if test $in_tree_ld = yes ; then
30209 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 \
30210 && test $in_tree_ld_is_elf = yes; then
30211 gcc_cv_ld_eh_frame_ciev3=yes
30213 elif test x$gcc_cv_ld != x; then
30214 if echo "$ld_ver" | grep GNU > /dev/null; then
30215 gcc_cv_ld_eh_frame_ciev3=yes
30216 if test 0"$ld_date" -lt 20040513; then
30217 if test -n "$ld_date"; then
30218 # If there was date string, but was earlier than 2004-05-13, fail
30219 gcc_cv_ld_eh_frame_ciev3=no
30220 elif test "$ld_vers_major" -lt 2; then
30221 gcc_cv_ld_eh_frame_ciev3=no
30222 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30223 gcc_cv_ld_eh_frame_ciev3=no
30226 else
30227 case "$target" in
30228 *-*-solaris2*)
30229 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30230 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30231 gcc_cv_ld_eh_frame_ciev3=yes
30234 esac
30238 cat >>confdefs.h <<_ACEOF
30239 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30240 _ACEOF
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30243 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30246 $as_echo_n "checking linker position independent executable support... " >&6; }
30247 gcc_cv_ld_pie=no
30248 if test $in_tree_ld = yes ; then
30249 case "$target" in
30250 # Full PIE support on Solaris was only introduced in gld 2.26.
30251 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30252 *) gcc_gld_pie_min_version=15 ;;
30253 esac
30254 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 \
30255 && test $in_tree_ld_is_elf = yes; then
30256 gcc_cv_ld_pie=yes
30258 elif test x$gcc_cv_ld != x; then
30259 # Check if linker supports -pie option
30260 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30261 gcc_cv_ld_pie=yes
30262 case "$target" in
30263 *-*-solaris2*)
30264 if echo "$ld_ver" | grep GNU > /dev/null \
30265 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30266 gcc_cv_ld_pie=no
30269 esac
30270 else
30271 case "$target" in
30272 *-*-solaris2.1[1-9]*)
30273 # Solaris 11.3 added PIE support.
30274 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30275 gcc_cv_ld_pie=yes
30278 esac
30281 if test x"$gcc_cv_ld_pie" = xyes; then
30283 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30287 $as_echo "$gcc_cv_ld_pie" >&6; }
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30290 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30291 gcc_cv_ld_pie_copyreloc=no
30292 if test $gcc_cv_ld_pie = yes ; then
30293 if test $in_tree_ld = yes ; then
30294 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
30295 gcc_cv_ld_pie_copyreloc=yes
30297 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30298 # Check if linker supports -pie option with copy reloc
30299 case "$target" in
30300 i?86-*-linux* | x86_64-*-linux*)
30301 cat > conftest1.s <<EOF
30302 .globl a_glob
30303 .data
30304 .type a_glob, @object
30305 .size a_glob, 4
30306 a_glob:
30307 .long 2
30309 cat > conftest2.s <<EOF
30310 .text
30311 .globl main
30312 .type main, @function
30313 main:
30314 movl %eax, a_glob(%rip)
30315 .size main, .-main
30316 .globl ptr
30317 .section .data.rel,"aw",@progbits
30318 .type ptr, @object
30319 ptr:
30320 .quad a_glob
30322 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30323 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30324 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30325 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30326 gcc_cv_ld_pie_copyreloc=yes
30328 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30330 esac
30334 cat >>confdefs.h <<_ACEOF
30335 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30336 _ACEOF
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30339 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30342 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30343 gcc_cv_ld_eh_gc_sections=no
30344 if test $in_tree_ld = yes ; then
30345 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 \
30346 && test $in_tree_ld_is_elf = yes; then
30347 gcc_cv_ld_eh_gc_sections=yes
30349 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30350 cat > conftest.s <<EOF
30351 .section .text
30352 .globl _start
30353 .type _start, @function
30354 _start:
30355 .long foo
30356 .size _start, .-_start
30357 .section .text.foo,"ax",@progbits
30358 .type foo, @function
30359 foo:
30360 .long 0
30361 .size foo, .-foo
30362 .section .gcc_except_table.foo,"a",@progbits
30363 .L0:
30364 .long 0
30365 .section .eh_frame,"a",@progbits
30366 .long .L0
30368 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30369 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30370 | grep "gc-sections option ignored" > /dev/null; then
30371 gcc_cv_ld_eh_gc_sections=no
30372 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30373 | grep gcc_except_table > /dev/null; then
30374 gcc_cv_ld_eh_gc_sections=yes
30375 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30376 if test x$gcc_cv_as_comdat_group != xyes; then
30377 gcc_cv_ld_eh_gc_sections=no
30378 cat > conftest.s <<EOF
30379 .section .text
30380 .globl _start
30381 .type _start, @function
30382 _start:
30383 .long foo
30384 .size _start, .-_start
30385 .section .gnu.linkonce.t.foo,"ax",@progbits
30386 .type foo, @function
30387 foo:
30388 .long 0
30389 .size foo, .-foo
30390 .section .gcc_except_table.foo,"a",@progbits
30391 .L0:
30392 .long 0
30393 .section .eh_frame,"a",@progbits
30394 .long .L0
30396 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30397 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30398 | grep "gc-sections option ignored" > /dev/null; then
30399 gcc_cv_ld_eh_gc_sections=no
30400 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30401 | grep gcc_except_table > /dev/null; then
30402 gcc_cv_ld_eh_gc_sections=yes
30408 rm -f conftest.s conftest.o conftest
30410 case "$target" in
30411 hppa*-*-linux*)
30412 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30413 gcc_cv_ld_eh_gc_sections=no
30415 esac
30416 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30418 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30422 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30425 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30426 gcc_cv_ld_eh_gc_sections_bug=no
30427 if test $in_tree_ld = yes ; then
30428 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 \
30429 && test $in_tree_ld_is_elf = yes; then
30430 gcc_cv_ld_eh_gc_sections_bug=yes
30432 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
30433 gcc_cv_ld_eh_gc_sections_bug=yes
30434 cat > conftest.s <<EOF
30435 .section .text
30436 .globl _start
30437 .type _start, @function
30438 _start:
30439 .long foo
30440 .size _start, .-_start
30441 .section .text.startup.foo,"ax",@progbits
30442 .type foo, @function
30443 foo:
30444 .long 0
30445 .size foo, .-foo
30446 .section .gcc_except_table.foo,"a",@progbits
30447 .L0:
30448 .long 0
30449 .section .eh_frame,"a",@progbits
30450 .long .L0
30452 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30453 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30454 | grep "gc-sections option ignored" > /dev/null; then
30456 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30457 | grep gcc_except_table > /dev/null; then
30458 gcc_cv_ld_eh_gc_sections_bug=no
30461 rm -f conftest.s conftest.o conftest
30463 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30465 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30469 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30472 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30473 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30474 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30475 gcc_cv_ld_compress_debug=1
30476 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30477 # Detect zstd debug section compression support
30478 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30479 gcc_cv_ld_compress_debug=2
30481 else
30482 case "${target}" in
30483 *-*-solaris2*)
30484 # Introduced in Solaris 11.2.
30485 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30486 gcc_cv_ld_compress_debug=1
30487 gcc_cv_ld_compress_debug_option="-z compress-sections"
30488 else
30489 gcc_cv_ld_compress_debug=0
30493 # Assume linkers other than GNU ld don't support compessed debug
30494 # sections.
30495 gcc_cv_ld_compress_debug=0
30497 esac
30500 cat >>confdefs.h <<_ACEOF
30501 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30502 _ACEOF
30505 cat >>confdefs.h <<_ACEOF
30506 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30507 _ACEOF
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30510 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30512 if test x"$ld64_flag" = x"yes"; then
30514 # Set defaults for possibly untestable items.
30515 gcc_cv_ld64_export_dynamic=0
30516 gcc_cv_ld64_platform_version=0
30517 gcc_cv_ld64_demangle=0
30519 if test "$build" = "$host"; then
30520 darwin_try_test=1
30521 else
30522 darwin_try_test=0
30525 # On Darwin, because of FAT library support, it is often possible to execute
30526 # exes from compatible archs even when the host differs from the build system.
30527 case "$build","$host" in
30528 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30529 darwin_try_test=1;;
30530 *) ;;
30531 esac
30533 # If the configurer specified a minimum ld64 version to be supported, then use
30534 # that to determine feature support.
30535 if test x"${gcc_cv_ld64_version}" != x; then
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30537 $as_echo_n "checking ld64 specified version... " >&6; }
30538 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30540 $as_echo "$gcc_cv_ld64_major" >&6; }
30541 if test "$gcc_cv_ld64_major" -ge 97; then
30542 gcc_cv_ld64_demangle=1
30544 if test "$gcc_cv_ld64_major" -ge 236; then
30545 gcc_cv_ld64_export_dynamic=1
30547 if test "$gcc_cv_ld64_major" -ge 512; then
30548 gcc_cv_ld64_platform_version=1
30550 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30551 # If the version was not specified, try to find it.
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30553 $as_echo_n "checking linker version... " >&6; }
30554 if test x"${gcc_cv_ld64_version}" = x; then
30555 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30556 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30559 $as_echo "$gcc_cv_ld64_version" >&6; }
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30562 $as_echo_n "checking linker for -demangle support... " >&6; }
30563 gcc_cv_ld64_demangle=1
30564 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30565 gcc_cv_ld64_demangle=0
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30568 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30571 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30572 gcc_cv_ld64_export_dynamic=1
30573 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30574 gcc_cv_ld64_export_dynamic=0
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30577 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30580 $as_echo_n "checking linker for -platform_version support... " >&6; }
30581 gcc_cv_ld64_platform_version=1
30582 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30583 gcc_cv_ld64_platform_version=0
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30586 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30589 if test x"${gcc_cv_ld64_version}" != x; then
30591 cat >>confdefs.h <<_ACEOF
30592 #define LD64_VERSION "${gcc_cv_ld64_version}"
30593 _ACEOF
30598 cat >>confdefs.h <<_ACEOF
30599 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30600 _ACEOF
30604 cat >>confdefs.h <<_ACEOF
30605 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30606 _ACEOF
30610 cat >>confdefs.h <<_ACEOF
30611 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30612 _ACEOF
30616 if test x"$dsymutil_flag" = x"yes"; then
30618 # If the user specified a dsymutil path, then we will already have the
30619 # version string, otherwise, pick it up.
30620 if test x"$gcc_cv_dsymutil" = x; then
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30622 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30623 dsymutil_vers="tool unspecified"
30624 elif test x"$dsymutil_vers" = x; then
30625 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30628 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30630 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30631 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30632 dsymutil_kind=DWARFUTILS
30633 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30634 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30635 dsymutil_kind=CLANG
30636 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30637 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30638 dsymutil_kind=LLVM
30639 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30640 else
30641 dsymutil_kind=UNKNOWN
30642 dsymutil_vers="0.0"
30644 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30645 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30646 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30647 if test x"${dsymutil_minor}" = x; then
30648 dsymutil_minor=0
30650 if test x"${dsymutil_tiny}" = x; then
30651 dsymutil_tiny=0
30654 cat >>confdefs.h <<_ACEOF
30655 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30656 _ACEOF
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30659 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30662 case $target_os in
30663 win32 | pe | cygwin* | mingw32*)
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30665 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30666 gcc_cv_ld_broken_pe_dwarf5=yes
30667 if test $in_tree_ld = yes ; then
30668 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30669 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30670 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30671 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30672 gcc_cv_ld_broken_pe_dwarf5=no
30674 else
30675 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30676 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30677 gcc_cv_ld_broken_pe_dwarf5=no
30680 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30682 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30686 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30689 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30690 gcc_cv_ld_disable_dynamicbase=no
30691 if test $in_tree_ld = yes; then
30692 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 \
30693 gcc_cv_ld_disable_dynamicbase=yes
30695 else
30696 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30697 gcc_cv_ld_disable_dynamicbase=yes
30700 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30702 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30706 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30708 esac
30710 # --------
30711 # UNSORTED
30712 # --------
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30715 $as_echo_n "checking linker --as-needed support... " >&6; }
30716 if ${gcc_cv_ld_as_needed+:} false; then :
30717 $as_echo_n "(cached) " >&6
30718 else
30719 gcc_cv_ld_as_needed=no
30720 gcc_cv_ld_as_needed_option='--as-needed'
30721 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30722 if test $in_tree_ld = yes ; then
30723 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 \
30724 && test $in_tree_ld_is_elf = yes; then
30725 gcc_cv_ld_as_needed=yes
30726 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30727 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30728 gcc_cv_ld_no_as_needed_option='--pop-state'
30731 elif test x$gcc_cv_ld != x; then
30732 # Check if linker supports --as-needed and --no-as-needed options
30733 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30734 gcc_cv_ld_as_needed=yes
30735 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30736 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30737 && echo "$ld_ver" | grep GNU > /dev/null \
30738 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30739 # Use these options only when both ld.bfd and ld.gold support
30740 # --push-state/--pop-state, which unfortunately wasn't added
30741 # at the same time.
30742 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30743 gcc_cv_ld_no_as_needed_option='--pop-state'
30746 case "$target:$gnu_ld" in
30747 *-*-solaris2*:no)
30748 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30749 # forms.
30750 gcc_cv_ld_as_needed=yes
30751 gcc_cv_ld_as_needed_option="-z ignore"
30752 gcc_cv_ld_no_as_needed_option="-z record"
30754 esac
30756 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30757 # dl_iterate_phdr, i.e. since Solaris 11.
30758 case "$target" in
30759 *-*-solaris2.1[1-9]*)
30760 case "$target" in
30761 i?86-*-* | x86_64-*-*)
30762 if echo "$ld_ver" | grep GNU > /dev/null; then
30763 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30764 gcc_cv_ld_as_needed=no
30767 esac
30769 *-*-solaris2*)
30770 gcc_cv_ld_as_needed=no
30772 esac
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30776 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30777 if test x"$gcc_cv_ld_as_needed" = xyes; then
30779 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30782 cat >>confdefs.h <<_ACEOF
30783 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30784 _ACEOF
30787 cat >>confdefs.h <<_ACEOF
30788 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30789 _ACEOF
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30794 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30795 saved_LDFLAGS="$LDFLAGS"
30796 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30797 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30799 /* end confdefs.h. */
30800 int main(void) {return 0;}
30801 _ACEOF
30802 if ac_fn_cxx_try_link "$LINENO"; then :
30803 gcc_cv_ld_clearcap=yes; break
30804 else
30805 gcc_cv_ld_clearcap=no
30807 rm -f core conftest.err conftest.$ac_objext \
30808 conftest$ac_exeext conftest.$ac_ext
30809 done
30810 LDFLAGS="$saved_LDFLAGS"
30811 if test "x$gcc_cv_ld_clearcap" = xyes; then
30813 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30815 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30819 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30821 case "$target" in
30822 powerpc*-*-*)
30823 case "$target" in
30824 *le-*-linux*)
30825 emul_name="-melf32lppc"
30828 emul_name="-melf32ppc"
30830 esac
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30832 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30833 if ${gcc_cv_ld_ppc_attr+:} false; then :
30834 $as_echo_n "(cached) " >&6
30835 else
30836 gcc_cv_ld_ppc_attr=no
30837 if test x"$ld_is_gold" = xyes; then
30838 gcc_cv_ld_ppc_attr=yes
30839 elif test $in_tree_ld = yes ; then
30840 if test "$gcc_cv_gld_major_version" -eq 2 \
30841 -a "$gcc_cv_gld_minor_version" -ge 28 \
30842 -o "$gcc_cv_gld_major_version" -gt 2; then
30843 gcc_cv_ld_ppc_attr=yes
30845 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30846 # check that merging the long double .gnu_attribute doesn't warn
30847 cat > conftest1.s <<EOF
30848 .gnu_attribute 4,1
30850 cat > conftest2.s <<EOF
30851 .gnu_attribute 4,9
30853 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30854 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30855 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30856 && test ! -s conftest.err; then
30857 gcc_cv_ld_ppc_attr=yes
30859 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30864 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30865 if test x$gcc_cv_ld_ppc_attr = xyes; then
30867 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30871 esac
30873 case "$target:$tm_file" in
30874 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30875 case "$target" in
30876 *le-*-linux*)
30877 emul_name="-melf64lppc"
30879 *-*-linux*)
30880 emul_name="-melf64ppc"
30882 *le-*-freebsd*)
30883 emul_name="-melf64lppc_fbsd"
30885 *-*-freebsd*)
30886 emul_name="-melf64ppc_fbsd"
30888 esac
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30890 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30891 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30892 $as_echo_n "(cached) " >&6
30893 else
30894 gcc_cv_ld_no_dot_syms=no
30895 if test x"$ld_is_gold" = xyes; then
30896 gcc_cv_ld_no_dot_syms=yes
30897 elif test $in_tree_ld = yes ; then
30898 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
30899 gcc_cv_ld_no_dot_syms=yes
30901 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30902 cat > conftest1.s <<EOF
30903 .text
30904 bl .foo
30906 cat > conftest2.s <<EOF
30907 .section ".opd","aw"
30908 .align 3
30909 .globl foo
30910 .type foo,@function
30911 foo:
30912 .quad .LEfoo,.TOC.@tocbase,0
30913 .text
30914 .LEfoo:
30916 .size foo,.-.LEfoo
30918 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30919 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30920 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30921 gcc_cv_ld_no_dot_syms=yes
30923 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30928 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30929 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30931 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30936 $as_echo_n "checking linker large toc support... " >&6; }
30937 if ${gcc_cv_ld_large_toc+:} false; then :
30938 $as_echo_n "(cached) " >&6
30939 else
30940 gcc_cv_ld_large_toc=no
30941 if test x"$ld_is_gold" = xyes; then
30942 gcc_cv_ld_large_toc=yes
30943 elif test $in_tree_ld = yes ; then
30944 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
30945 gcc_cv_ld_large_toc=yes
30947 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30948 cat > conftest.s <<EOF
30949 .section ".tbss","awT",@nobits
30950 .align 3
30951 ie0: .space 8
30952 .global _start
30953 .text
30954 _start:
30955 addis 9,13,ie0@got@tprel@ha
30956 ld 9,ie0@got@tprel@l(9)
30958 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30959 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30960 gcc_cv_ld_large_toc=yes
30962 rm -f conftest conftest.o conftest.s
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30967 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30968 if test x"$gcc_cv_ld_large_toc" = xyes; then
30970 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30975 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30976 if ${gcc_cv_ld_toc_align+:} false; then :
30977 $as_echo_n "(cached) " >&6
30978 else
30979 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30980 cat > conftest.s <<EOF
30981 .global _start
30982 .text
30983 _start:
30984 addis 9,2,x@got@ha
30985 .section .data.rel.ro,"aw",@progbits
30986 .p2align 16
30987 .space 32768
30988 x: .quad .TOC.
30990 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30991 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30992 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)) }'`
30994 rm -f conftest conftest.o conftest.s
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30999 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31000 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31002 cat >>confdefs.h <<_ACEOF
31003 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31004 _ACEOF
31008 esac
31010 case "$target" in
31011 *-*-aix*)
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31013 $as_echo_n "checking linker large toc support... " >&6; }
31014 if ${gcc_cv_ld_large_toc+:} false; then :
31015 $as_echo_n "(cached) " >&6
31016 else
31017 gcc_cv_ld_large_toc=no
31018 if test x$gcc_cv_as != x ; then
31019 cat > conftest.s <<EOF
31020 .toc
31021 LC..1:
31022 .tc a[TC],a[RW]
31023 .extern a[RW]
31024 .csect .text[PR]
31025 .largetoctest:
31026 addis 9,LC..1@u(2)
31027 ld 3,LC..1@l(9)
31029 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
31030 gcc_cv_ld_large_toc=yes
31032 rm -f conftest conftest.o conftest.s
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31037 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31038 if test x"$gcc_cv_ld_large_toc" = xyes; then
31040 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31044 esac
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31047 $as_echo_n "checking linker --build-id support... " >&6; }
31048 if ${gcc_cv_ld_buildid+:} false; then :
31049 $as_echo_n "(cached) " >&6
31050 else
31051 gcc_cv_ld_buildid=no
31052 if test $in_tree_ld = yes ; then
31053 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31054 "$gcc_cv_gld_minor_version" -ge 18 -o \
31055 "$gcc_cv_gld_major_version" -gt 2 \
31056 && test $in_tree_ld_is_elf = yes; then
31057 gcc_cv_ld_buildid=yes
31059 elif test x$gcc_cv_ld != x; then
31060 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31061 gcc_cv_ld_buildid=yes
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31066 $as_echo "$gcc_cv_ld_buildid" >&6; }
31067 if test x"$gcc_cv_ld_buildid" = xyes; then
31069 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31073 # Check whether --enable-linker-build-id was given.
31074 if test "${enable_linker_build_id+set}" = set; then :
31075 enableval=$enable_linker_build_id;
31076 else
31077 enable_linker_build_id=no
31081 if test x"$enable_linker_build_id" = xyes; then
31082 if test x"$gcc_cv_ld_buildid" = xyes; then
31084 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31086 else
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31088 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31092 # In binutils 2.21, GNU ld gained support for new emulations fully
31093 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31095 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31096 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31097 $as_echo_n "(cached) " >&6
31098 else
31099 gcc_cv_ld_sol2_emulation=no
31100 if test $in_tree_ld = yes ; then
31101 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31102 "$gcc_cv_gld_minor_version" -ge 21 -o \
31103 "$gcc_cv_gld_major_version" -gt 2 \
31104 && test $in_tree_ld_is_elf = yes; then
31105 gcc_cv_ld_sol2_emulation=yes
31107 elif test x$gcc_cv_ld != x; then
31108 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31109 grep _sol2 > /dev/null; then
31110 gcc_cv_ld_sol2_emulation=yes
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31115 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31116 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31118 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31123 $as_echo_n "checking linker --sysroot support... " >&6; }
31124 if ${gcc_cv_ld_sysroot+:} false; then :
31125 $as_echo_n "(cached) " >&6
31126 else
31127 gcc_cv_ld_sysroot=no
31128 if test $in_tree_ld = yes ; then
31129 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
31130 gcc_cv_ld_sysroot=yes
31132 elif test x$gcc_cv_ld != x; then
31133 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31134 gcc_cv_ld_sysroot=yes
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31139 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31140 if test x"$gcc_cv_ld_sysroot" = xyes; then
31142 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31146 case $target in
31147 *-*-solaris2*)
31148 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31150 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31151 if ${gcc_cv_solaris_crts+:} false; then :
31152 $as_echo_n "(cached) " >&6
31153 else
31154 gcc_cv_solaris_crts=no
31155 if test x$host != x$target; then
31156 if test "x$with_sysroot" = xyes; then
31157 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31158 else
31159 target_sysroot="${with_sysroot}"
31162 target_libdir="$target_sysroot/usr/lib"
31163 # At the time they were added, gcrt1.o became a symlink for backwards
31164 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31165 case $target in
31166 i?86-*-solaris2* | x86_64-*-solaris2*)
31167 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31169 sparc*-*-solaris2*)
31170 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31172 esac
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31175 $as_echo "$gcc_cv_solaris_crts" >&6; }
31177 esac
31178 if test x$gcc_cv_solaris_crts = xyes; then
31180 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31184 # Check whether --enable-libssp was given.
31185 if test "${enable_libssp+set}" = set; then :
31186 enableval=$enable_libssp; case "${enableval}" in
31187 yes|no)
31190 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31192 esac
31196 # Test for stack protector support in target C library.
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31198 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31199 if ${gcc_cv_libc_provides_ssp+:} false; then :
31200 $as_echo_n "(cached) " >&6
31201 else
31202 gcc_cv_libc_provides_ssp=no
31203 if test "x$enable_libssp" = "xno"; then
31204 gcc_cv_libc_provides_ssp=yes
31205 elif test "x$enable_libssp" = "xyes"; then
31206 gcc_cv_libc_provides_ssp=no
31207 else
31208 case "$target" in
31209 *-*-musl*)
31210 # All versions of musl provide stack protector
31211 gcc_cv_libc_provides_ssp=yes;;
31212 *-*-linux* | *-*-kfreebsd*-gnu)
31213 # glibc 2.4 and later provides __stack_chk_fail and
31214 # either __stack_chk_guard, or TLS access to stack guard canary.
31216 if test $glibc_version_major -gt 2 \
31217 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31218 gcc_cv_libc_provides_ssp=yes
31219 else
31221 if test -f $target_header_dir/features.h \
31222 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31223 $target_header_dir/features.h > /dev/null; then
31224 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31225 $target_header_dir/features.h > /dev/null && \
31226 test -f $target_header_dir/bits/uClibc_config.h && \
31227 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31228 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31229 gcc_cv_libc_provides_ssp=yes
31231 # all versions of Bionic support stack protector
31232 elif test -f $target_header_dir/sys/cdefs.h \
31233 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31234 $target_header_dir/sys/cdefs.h > /dev/null; then
31235 gcc_cv_libc_provides_ssp=yes
31239 *-*-gnu*)
31240 # Avoid complicated tests (see
31241 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31242 # simply assert that glibc does provide this, which is true for all
31243 # realistically usable GNU/Hurd configurations.
31244 # All supported versions of musl provide it as well
31245 gcc_cv_libc_provides_ssp=yes;;
31246 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31247 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31248 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31249 gcc_cv_libc_provides_ssp=yes
31250 else
31251 echo "no __stack_chk_fail on this target"
31255 *) gcc_cv_libc_provides_ssp=no ;;
31256 esac
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31260 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31262 if test x$gcc_cv_libc_provides_ssp = xyes; then
31264 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31268 # Check whether --enable-default-ssp was given.
31269 # Check whether --enable-default-ssp was given.
31270 if test "${enable_default_ssp+set}" = set; then :
31271 enableval=$enable_default_ssp;
31272 if test x$gcc_cv_libc_provides_ssp = xyes; then
31273 case "$target" in
31274 ia64*-*-*) enable_default_ssp=no ;;
31275 *) enable_default_ssp=$enableval ;;
31276 esac
31277 else
31278 enable_default_ssp=no
31280 else
31281 enable_default_ssp=no
31284 if test x$enable_default_ssp = xyes ; then
31286 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31291 # Test for <sys/sdt.h> on the target.
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31294 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31295 if ${gcc_cv_sys_sdt_h+:} false; then :
31296 $as_echo_n "(cached) " >&6
31297 else
31299 gcc_cv_sys_sdt_h=no
31300 if test -f $target_header_dir/sys/sdt.h; then
31301 gcc_cv_sys_sdt_h=yes
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31306 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31307 if test x$gcc_cv_sys_sdt_h = xyes; then :
31310 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31315 # Check if TFmode long double should be used by default or not.
31316 # Some glibc targets used DFmode long double, but with glibc 2.4
31317 # and later they can use TFmode.
31318 case "$target" in
31319 powerpc*-*-linux* | \
31320 sparc*-*-linux* | \
31321 s390*-*-linux* | \
31322 alpha*-*-linux*)
31324 # Check whether --with-long-double-128 was given.
31325 if test "${with_long_double_128+set}" = set; then :
31326 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31327 else
31329 case "$target" in
31330 s390*-*-linux-musl*)
31331 gcc_cv_target_ldbl128=yes
31333 powerpc*-*-linux-musl*)
31334 gcc_cv_target_ldbl128=no
31338 if test $glibc_version_major -gt 2 \
31339 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31340 gcc_cv_target_ldbl128=yes
31341 else
31343 gcc_cv_target_ldbl128=no
31344 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31345 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31346 && gcc_cv_target_ldbl128=yes
31351 esac
31356 esac
31357 if test x$gcc_cv_target_ldbl128 = xyes; then
31359 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31363 # Check if TFmode long double target should use the IBM extended double or IEEE
31364 # 128-bit floating point formats if long doubles are 128-bits long. The long
31365 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31366 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31367 # libgcc.
31369 # Check whether --with-long-double-format was given.
31370 if test "${with_long_double_format+set}" = set; then :
31371 withval=$with_long_double_format;
31372 case "$target:$with_long_double_format" in
31373 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31376 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31377 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31378 case "$with_cpu" in
31379 power7 | power8 | power9 | power1*)
31383 as_fn_error $? "Configuration option --with-long-double-format is only \
31384 supported if the default cpu is power7 or newer" "$LINENO" 5
31385 with_long_double_format=""
31387 esac
31389 powerpc64*-*-linux*:*)
31390 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31391 with_long_double_format=""
31394 as_fn_error $? "Configure option --with-long-double-format is only supported \
31395 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31396 with_long_double_format=""
31398 esac
31402 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31403 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31404 gcc_cv_libc_provides_hwcap_in_tcb=no
31405 case "$target" in
31406 powerpc*-*-linux*)
31408 if test $glibc_version_major -gt 2 \
31409 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31410 gcc_cv_libc_provides_hwcap_in_tcb=yes
31413 esac
31414 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31416 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31420 # Check if the target LIBC handles PT_GNU_STACK.
31421 gcc_cv_libc_gnustack=unknown
31422 case "$target" in
31423 mips*-*-linux-musl*)
31424 gcc_cv_libc_gnustack=yes
31426 mips*-*-linux*)
31428 if test $glibc_version_major -gt 2 \
31429 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31430 gcc_cv_libc_gnustack=yes
31433 esac
31434 if test x$gcc_cv_libc_gnustack = xyes; then
31436 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31441 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31442 gcc_cv_target_dl_iterate_phdr=unknown
31443 case "$target" in
31444 *-*-solaris2*)
31445 # <link.h> needs both a dl_iterate_phdr declaration and support for
31446 # compilation with largefile support.
31447 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31448 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31449 gcc_cv_target_dl_iterate_phdr=yes
31450 else
31451 gcc_cv_target_dl_iterate_phdr=no
31454 *-*-dragonfly* | *-*-freebsd*)
31455 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31456 gcc_cv_target_dl_iterate_phdr=yes
31457 else
31458 gcc_cv_target_dl_iterate_phdr=no
31461 *-linux-musl*)
31462 gcc_cv_target_dl_iterate_phdr=yes
31464 esac
31466 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31468 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31472 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31474 # We no longer support different GC mechanisms. Emit an error if
31475 # the user configures with --with-gc.
31477 # Check whether --with-gc was given.
31478 if test "${with_gc+set}" = set; then :
31479 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31483 # Libraries to use on the host. This will normally be set by the top
31484 # level Makefile. Here we simply capture the value for our Makefile.
31485 if test -z "${HOST_LIBS+set}"; then
31486 HOST_LIBS=
31490 # Use the system's zlib library.
31492 # Use the system's zlib library.
31493 zlibdir="-L\$(top_builddir)/../zlib"
31494 zlibinc="-I\$(top_srcdir)/../zlib"
31496 # Check whether --with-system-zlib was given.
31497 if test "${with_system_zlib+set}" = set; then :
31498 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31499 zlibdir=
31500 zlibinc=
31510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31511 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31512 # Check whether --enable-maintainer-mode was given.
31513 if test "${enable_maintainer_mode+set}" = set; then :
31514 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31515 else
31516 maintainer_mode=no
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31521 $as_echo "$maintainer_mode" >&6; }
31523 if test "$maintainer_mode" = "yes"; then
31524 MAINT=''
31525 else
31526 MAINT='#'
31529 if test -z "$CTAGS"; then
31530 CTAGS=ctags
31533 if test -z "$ETAGS"; then
31534 ETAGS=etags
31537 if test -z "$CSCOPE"; then
31538 CSCOPE=cscope
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31544 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31545 # Check whether --enable-link-mutex was given.
31546 if test "${enable_link_mutex+set}" = set; then :
31547 enableval=$enable_link_mutex; do_link_mutex=$enableval
31548 else
31549 do_link_mutex=no
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31553 $as_echo "$do_link_mutex" >&6; }
31555 if test "$do_link_mutex" = "yes"; then
31556 DO_LINK_MUTEX=true
31557 { $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
31558 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31559 else
31560 DO_LINK_MUTEX=false
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31566 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31567 # Check whether --enable-link-serialization was given.
31568 if test "${enable_link_serialization+set}" = set; then :
31569 enableval=$enable_link_serialization; do_link_serialization=$enableval
31570 else
31571 do_link_serialization=no
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31575 $as_echo "$do_link_serialization" >&6; }
31577 case "$do_link_serialization" in
31578 yes)
31579 DO_LINK_SERIALIZATION=1;;
31580 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31581 DO_LINK_SERIALIZATION=$do_link_serialization;;
31583 DO_LINK_SERIALIZATION=;;
31585 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31586 esac
31589 # --------------
31590 # Language hooks
31591 # --------------
31593 # Make empty files to contain the specs and options for each language.
31594 # Then add #include lines to for a compiler that has specs and/or options.
31596 subdirs=
31597 lang_opt_files=
31598 lang_specs_files=
31599 lang_tree_files=
31600 # These (without "all_") are set in each config-lang.in.
31601 # `language' must be a single word so is spelled singularly.
31602 all_languages=
31603 all_compilers=
31604 all_outputs='Makefile'
31605 # List of language configure and makefile fragments.
31606 all_lang_configurefrags=
31607 all_lang_makefrags=
31608 # Additional files for gengtype
31609 all_gtfiles="$target_gtfiles"
31611 # These are the languages that are set in --enable-languages,
31612 # and are available in the GCC tree.
31613 all_selected_languages=
31615 # Add the language fragments.
31616 # Languages are added via two mechanisms. Some information must be
31617 # recorded in makefile variables, these are defined in config-lang.in.
31618 # We accumulate them and plug them into the main Makefile.
31619 # The other mechanism is a set of hooks for each of the main targets
31620 # like `clean', `install', etc.
31622 language_hooks="Make-hooks"
31624 for lang in ${srcdir}/*/config-lang.in
31626 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31628 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31629 if test "x$lang_alias" = x
31630 then
31631 echo "$lang doesn't set \$language." 1>&2
31632 exit 1
31634 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31635 subdirs="$subdirs $subdir"
31637 # $gcc_subdir is where the gcc integration files are to be found
31638 # for a language, both for internal compiler purposes (compiler
31639 # sources implementing front-end to GCC tree converters), and for
31640 # build infrastructure purposes (Make-lang.in, etc.)
31642 # This will be <subdir> (relative to $srcdir) if a line like
31643 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31644 # is found in <langdir>/config-lang.in, and will remain <langdir>
31645 # otherwise.
31647 # Except for the language alias (fetched above), the regular
31648 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31649 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31650 # only this and the language alias.
31652 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31653 if [ "$gcc_subdir" = "" ]; then
31654 gcc_subdir="$subdir"
31657 case ",$enable_languages," in
31658 *,$lang_alias,*)
31659 all_selected_languages="$all_selected_languages $lang_alias"
31660 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31661 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31664 esac
31666 language=
31667 boot_language=
31668 compilers=
31669 outputs=
31670 gtfiles=
31671 subdir_requires=
31672 . ${srcdir}/$gcc_subdir/config-lang.in
31673 if test "x$language" = x
31674 then
31675 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31676 exit 1
31679 ok=:
31680 case ",$enable_languages," in
31681 *,$lang_alias,*) ;;
31683 for i in $subdir_requires; do
31684 test -f "${srcdir}/$i/config-lang.in" && continue
31685 ok=false
31686 break
31687 done
31689 esac
31690 $ok || continue
31692 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31693 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31694 # Put c/Make-lang.in fragment first to match serialization languages order.
31695 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31696 else
31697 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31699 if test -f $srcdir/$gcc_subdir/lang.opt; then
31700 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31701 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31703 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31704 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31706 all_languages="$all_languages $language"
31707 all_compilers="$all_compilers $compilers"
31708 all_outputs="$all_outputs $outputs"
31709 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31710 case ",$enable_languages," in
31711 *,lto,*)
31713 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31715 enable_lto=yes
31718 *) ;;
31719 esac
31720 done
31722 check_languages=
31723 for language in $all_selected_languages
31725 check_languages="$check_languages check-$language"
31726 done
31728 selftest_languages=
31729 for language in $all_selected_languages
31731 selftest_languages="$selftest_languages selftest-$language"
31732 done
31734 # We link each language in with a set of hooks, reached indirectly via
31735 # lang.${target}. Only do so for selected languages.
31737 rm -f Make-hooks
31738 touch Make-hooks
31739 target_list="all.cross start.encap rest.encap tags \
31740 install-common install-man install-info install-dvi install-pdf \
31741 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31742 mostlyclean clean distclean maintainer-clean install-plugin"
31744 for t in $target_list
31747 for lang in $all_selected_languages
31749 x="$x $lang.$t"
31750 done
31751 echo "lang.$t: $x" >> Make-hooks
31752 done
31754 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31755 echo "SERIAL_LIST =" >> Make-hooks
31756 echo else >> Make-hooks
31757 lang_cnt=0
31758 lang_list=
31759 prev=c
31760 serialization_languages=c
31761 for lang in $all_selected_languages
31763 test $lang = c && continue
31764 if test $lang = lto; then
31765 serialization_languages="$serialization_languages lto1 lto2"
31766 else
31767 serialization_languages="$serialization_languages $lang"
31769 done
31770 for lang in $serialization_languages
31772 test $lang = c && continue
31773 lang_cnt=`expr $lang_cnt + 1`
31774 lang_list=" $prev$lang_list"
31775 prev=${lang}
31776 done
31777 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31778 echo endif >> Make-hooks
31779 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31780 echo "INDEX.c = 0" >> Make-hooks
31781 lang_idx=1
31782 for lang in $serialization_languages
31784 test $lang = c && continue
31785 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31786 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31787 lang_cnt=`expr $lang_cnt - 1`
31788 lang_idx=`expr $lang_idx + 1`
31789 done
31791 # --------
31792 # Option include files
31793 # --------
31795 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31796 option_includes="option-includes.mk"
31799 # --------
31800 # UNSORTED
31801 # --------
31803 # Create .gdbinit.
31805 echo "dir ." > .gdbinit
31806 echo "dir ${srcdir}" >> .gdbinit
31807 if test x$gdb_needs_out_file_path = xyes
31808 then
31809 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31811 if test "x$subdirs" != x; then
31812 for s in $subdirs
31814 echo "dir ${srcdir}/$s" >> .gdbinit
31815 done
31817 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31818 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31820 # Put a breakpoint on __asan_report_error to help with debugging buffer
31821 # overflow.
31822 case "$CFLAGS" in
31823 *-fsanitize=address*)
31824 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31826 esac
31828 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31832 # Find a directory in which to install a shared libgcc.
31834 # Check whether --enable-version-specific-runtime-libs was given.
31835 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31836 enableval=$enable_version_specific_runtime_libs;
31840 # Substitute configuration variables
31910 # Echo link setup.
31911 if test x${build} = x${host} ; then
31912 if test x${host} = x${target} ; then
31913 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31914 else
31915 echo "Links are now set up to build a cross-compiler" 1>&2
31916 echo " from ${host} to ${target}." 1>&2
31918 else
31919 if test x${host} = x${target} ; then
31920 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31921 echo " for ${target}." 1>&2
31922 else
31923 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31924 echo " from ${host} to ${target}." 1>&2
31933 if test "x${ISLLIBS}" != "x" ; then
31935 $as_echo "#define HAVE_isl 1" >>confdefs.h
31939 # Check for plugin support
31940 # Check whether --enable-plugin was given.
31941 if test "${enable_plugin+set}" = set; then :
31942 enableval=$enable_plugin; enable_plugin=$enableval
31943 else
31944 enable_plugin=yes; default_plugin=yes
31948 pluginlibs=
31949 plugin_check=yes
31951 case "${host}" in
31952 *-*-mingw*)
31953 # Since plugin support under MinGW is not as straightforward as on
31954 # other platforms (e.g., we have to link import library, etc), we
31955 # only enable it if explicitly requested.
31956 if test x"$default_plugin" = x"yes"; then
31957 enable_plugin=no
31958 elif test x"$enable_plugin" = x"yes"; then
31959 # Use make's target variable to derive import library name.
31960 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31961 plugin_check=no
31964 *-*-darwin*)
31965 if test x$build = x$host; then
31966 export_sym_check="nm${exeext} -g"
31967 elif test x$host = x$target; then
31968 export_sym_check="$gcc_cv_nm -g"
31969 else
31970 export_sym_check=
31974 if test x$build = x$host; then
31975 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31976 elif test x$host = x$target; then
31977 export_sym_check="$gcc_cv_objdump -T"
31978 else
31979 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31982 esac
31984 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31987 $as_echo_n "checking for exported symbols... " >&6; }
31988 if test "x$export_sym_check" != x; then
31989 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31990 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31991 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31992 : # No need to use a flag
31993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31994 $as_echo "yes" >&6; }
31995 else
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31997 $as_echo "yes" >&6; }
31998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31999 $as_echo_n "checking for -rdynamic... " >&6; }
32000 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
32001 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
32002 plugin_rdynamic=yes
32003 pluginlibs="-rdynamic"
32004 else
32005 plugin_rdynamic=no
32006 enable_plugin=no
32008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32009 $as_echo "$plugin_rdynamic" >&6; }
32011 else
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32013 $as_echo "unable to check" >&6; }
32016 # Check -ldl
32017 saved_LIBS="$LIBS"
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32019 $as_echo_n "checking for library containing dlopen... " >&6; }
32020 if ${ac_cv_search_dlopen+:} false; then :
32021 $as_echo_n "(cached) " >&6
32022 else
32023 ac_func_search_save_LIBS=$LIBS
32024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32025 /* end confdefs.h. */
32027 /* Override any GCC internal prototype to avoid an error.
32028 Use char because int might match the return type of a GCC
32029 builtin and then its argument prototype would still apply. */
32030 #ifdef __cplusplus
32031 extern "C"
32032 #endif
32033 char dlopen ();
32035 main ()
32037 return dlopen ();
32039 return 0;
32041 _ACEOF
32042 for ac_lib in '' dl; do
32043 if test -z "$ac_lib"; then
32044 ac_res="none required"
32045 else
32046 ac_res=-l$ac_lib
32047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32049 if ac_fn_cxx_try_link "$LINENO"; then :
32050 ac_cv_search_dlopen=$ac_res
32052 rm -f core conftest.err conftest.$ac_objext \
32053 conftest$ac_exeext
32054 if ${ac_cv_search_dlopen+:} false; then :
32055 break
32057 done
32058 if ${ac_cv_search_dlopen+:} false; then :
32060 else
32061 ac_cv_search_dlopen=no
32063 rm conftest.$ac_ext
32064 LIBS=$ac_func_search_save_LIBS
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32067 $as_echo "$ac_cv_search_dlopen" >&6; }
32068 ac_res=$ac_cv_search_dlopen
32069 if test "$ac_res" != no; then :
32070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32074 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32075 pluginlibs="$pluginlibs -ldl"
32077 LIBS="$saved_LIBS"
32079 # Check that we can build shared objects with -fPIC -shared
32080 saved_LDFLAGS="$LDFLAGS"
32081 saved_CFLAGS="$CFLAGS"
32082 saved_CXXFLAGS="$CXXFLAGS"
32083 case "${host}" in
32084 *-*-darwin*)
32085 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32086 CFLAGS="$CFLAGS -fPIC"
32087 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32088 CXXFLAGS="$CXXFLAGS -fPIC"
32089 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32092 CFLAGS="$CFLAGS -fPIC"
32093 CXXFLAGS="$CXXFLAGS -fPIC"
32094 LDFLAGS="$LDFLAGS -fPIC -shared"
32096 esac
32097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32098 $as_echo_n "checking for -fPIC -shared... " >&6; }
32099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32100 /* end confdefs.h. */
32101 extern int X;
32103 main ()
32105 return X == 0;
32107 return 0;
32109 _ACEOF
32110 if ac_fn_cxx_try_link "$LINENO"; then :
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32112 $as_echo "yes" >&6; }; have_pic_shared=yes
32113 else
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32115 $as_echo "no" >&6; }; have_pic_shared=no
32117 rm -f core conftest.err conftest.$ac_objext \
32118 conftest$ac_exeext conftest.$ac_ext
32119 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32120 pluginlibs=
32121 enable_plugin=no
32123 LDFLAGS="$saved_LDFLAGS"
32124 CFLAGS="$saved_CFLAGS"
32125 CXXFLAGS="$saved_CXXFLAGS"
32127 # If plugin support had been requested but not available, fail.
32128 if test x"$enable_plugin" = x"no" ; then
32129 if test x"$default_plugin" != x"yes"; then
32130 as_fn_error $? "
32131 Building GCC with plugin support requires a host that supports
32132 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32139 if test x"$enable_plugin" = x"yes"; then
32141 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32146 # Enable --enable-host-shared
32147 # Check whether --enable-host-shared was given.
32148 if test "${enable_host_shared+set}" = set; then :
32149 enableval=$enable_host_shared;
32154 # Enable --enable-host-pie
32155 # Check whether --enable-host-pie was given.
32156 if test "${enable_host_pie+set}" = set; then :
32157 enableval=$enable_host_pie;
32162 # Enable --enable-host-bind-now
32163 # Check whether --enable-host-bind-now was given.
32164 if test "${enable_host_bind_now+set}" = set; then :
32165 enableval=$enable_host_bind_now;
32170 # Check whether --enable-libquadmath-support was given.
32171 if test "${enable_libquadmath_support+set}" = set; then :
32172 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32173 else
32174 ENABLE_LIBQUADMATH_SUPPORT=yes
32177 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32179 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32184 # Specify what hash style to use by default.
32186 # Check whether --with-linker-hash-style was given.
32187 if test "${with_linker_hash_style+set}" = set; then :
32188 withval=$with_linker_hash_style; case x"$withval" in
32189 xsysv)
32190 LINKER_HASH_STYLE=sysv
32192 xgnu)
32193 LINKER_HASH_STYLE=gnu
32195 xboth)
32196 LINKER_HASH_STYLE=both
32199 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32201 esac
32202 else
32203 LINKER_HASH_STYLE=''
32206 if test x"${LINKER_HASH_STYLE}" != x; then
32208 cat >>confdefs.h <<_ACEOF
32209 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32210 _ACEOF
32214 # Specify what should be the default of -fdiagnostics-color option.
32216 # Check whether --with-diagnostics-color was given.
32217 if test "${with_diagnostics_color+set}" = set; then :
32218 withval=$with_diagnostics_color; case x"$withval" in
32219 xnever)
32220 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32222 xauto)
32223 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32225 xauto-if-env)
32226 DIAGNOSTICS_COLOR_DEFAULT=-1
32228 xalways)
32229 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32232 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32234 esac
32235 else
32236 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32240 cat >>confdefs.h <<_ACEOF
32241 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32242 _ACEOF
32245 # Specify what should be the default of -fdiagnostics-urls option.
32247 # Check whether --with-diagnostics-urls was given.
32248 if test "${with_diagnostics_urls+set}" = set; then :
32249 withval=$with_diagnostics_urls; case x"$withval" in
32250 xnever)
32251 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32253 xauto)
32254 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32256 xauto-if-env)
32257 DIAGNOSTICS_URLS_DEFAULT=-1
32259 xalways)
32260 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32263 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32265 esac
32266 else
32267 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32271 cat >>confdefs.h <<_ACEOF
32272 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32273 _ACEOF
32276 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32277 # of jit/jit-playback.cc.
32278 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32279 echo "gcc_driver_version: ${gcc_driver_version}"
32280 cat > gcc-driver-name.h <<EOF
32281 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32284 # Check whether --enable-default-pie was given.
32285 # Check whether --enable-default-pie was given.
32286 if test "${enable_default_pie+set}" = set; then :
32287 enableval=$enable_default_pie; enable_default_pie=$enableval
32288 else
32289 enable_default_pie=no
32292 if test x$enable_default_pie = xyes ; then
32294 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32299 # Check if -fno-PIE works.
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32301 $as_echo_n "checking for -fno-PIE option... " >&6; }
32302 if ${gcc_cv_c_no_fpie+:} false; then :
32303 $as_echo_n "(cached) " >&6
32304 else
32305 saved_CXXFLAGS="$CXXFLAGS"
32306 CXXFLAGS="$CXXFLAGS -fno-PIE"
32307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32308 /* end confdefs.h. */
32309 int main(void) {return 0;}
32310 _ACEOF
32311 if ac_fn_cxx_try_compile "$LINENO"; then :
32312 gcc_cv_c_no_fpie=yes
32313 else
32314 gcc_cv_c_no_fpie=no
32316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32317 CXXFLAGS="$saved_CXXFLAGS"
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32320 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32322 # Check if -no-pie works.
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32324 $as_echo_n "checking for -no-pie option... " >&6; }
32325 if ${gcc_cv_no_pie+:} false; then :
32326 $as_echo_n "(cached) " >&6
32327 else
32328 saved_LDFLAGS="$LDFLAGS"
32329 LDFLAGS="$LDFLAGS -no-pie"
32330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32331 /* end confdefs.h. */
32332 int main(void) {return 0;}
32333 _ACEOF
32334 if ac_fn_cxx_try_link "$LINENO"; then :
32335 gcc_cv_no_pie=yes
32336 else
32337 gcc_cv_no_pie=no
32339 rm -f core conftest.err conftest.$ac_objext \
32340 conftest$ac_exeext conftest.$ac_ext
32341 LDFLAGS="$saved_LDFLAGS"
32343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32344 $as_echo "$gcc_cv_no_pie" >&6; }
32346 if test x$enable_host_shared = xyes; then
32347 PICFLAG=-fPIC
32348 elif test x$enable_host_pie = xyes; then
32349 PICFLAG=-fPIE
32350 elif test x$gcc_cv_c_no_fpie = xyes; then
32351 PICFLAG=-fno-PIE
32352 else
32353 PICFLAG=
32358 if test x$enable_host_pie = xyes; then
32359 LD_PICFLAG=-pie
32360 elif test x$gcc_cv_no_pie = xyes; then
32361 LD_PICFLAG=-no-pie
32362 else
32363 LD_PICFLAG=
32366 if test x$enable_host_bind_now = xyes; then
32367 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
32372 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32373 # Check whether --enable-cet was given.
32374 if test "${enable_cet+set}" = set; then :
32375 enableval=$enable_cet;
32376 case "$enableval" in
32377 yes|no|auto) ;;
32378 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32379 esac
32381 else
32382 enable_cet=auto
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32387 $as_echo_n "checking for CET support... " >&6; }
32389 case "$host" in
32390 i[34567]86-*-linux* | x86_64-*-linux*)
32391 may_have_cet=yes
32392 cet_save_CFLAGS="$CFLAGS"
32393 CFLAGS="$CFLAGS -fcf-protection"
32394 case "$enable_cet" in
32395 auto)
32396 # Check if target supports multi-byte NOPs
32397 # and if compiler and assembler support CET.
32398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32399 /* end confdefs.h. */
32402 main ()
32405 #if !defined(__SSE2__)
32406 #error target does not support multi-byte NOPs
32407 #else
32408 asm ("setssbsy");
32409 #endif
32412 return 0;
32414 _ACEOF
32415 if ac_fn_cxx_try_compile "$LINENO"; then :
32416 enable_cet=yes
32417 else
32418 enable_cet=no
32420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32422 yes)
32423 # Check if compiler and assembler support CET.
32424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32425 /* end confdefs.h. */
32428 main ()
32430 asm ("setssbsy");
32432 return 0;
32434 _ACEOF
32435 if ac_fn_cxx_try_compile "$LINENO"; then :
32436 support_cet=yes
32437 else
32438 support_cet=no
32440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 if test $support_cet = "no"; then
32442 if test x$enable_bootstrap != xno \
32443 && test -z "${with_build_subdir}" \
32444 && (test ! -f ../stage_current \
32445 || test `cat ../stage_current` != "stage1"); then
32446 # Require CET support only for the final GCC build.
32447 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32448 else
32449 # Don't enable CET without CET support for non-bootstrap
32450 # build, in stage1 nor for build support.
32451 enable_cet=no
32455 esac
32456 CFLAGS="$cet_save_CFLAGS"
32459 may_have_cet=no
32460 enable_cet=no
32462 esac
32464 cet_save_CFLAGS="$CFLAGS"
32465 CFLAGS="$CFLAGS -fcf-protection=none"
32466 cet_save_LDFLAGS="$LDFLAGS"
32467 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32468 if test x$may_have_cet = xyes; then
32469 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32471 /* end confdefs.h. */
32474 main ()
32476 return 0;
32478 return 0;
32480 _ACEOF
32481 if ac_fn_cxx_try_link "$LINENO"; then :
32482 may_have_cet=yes
32483 else
32484 may_have_cet=no
32486 rm -f core conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
32490 if test x$may_have_cet = xyes; then
32491 if test x$cross_compiling = xno; then
32492 if test "$cross_compiling" = yes; then :
32493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32495 as_fn_error $? "cannot run test program while cross compiling
32496 See \`config.log' for more details" "$LINENO" 5; }
32497 else
32498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32499 /* end confdefs.h. */
32502 main ()
32504 asm ("endbr32");
32505 return 0;
32508 _ACEOF
32509 if ac_fn_cxx_try_run "$LINENO"; then :
32510 have_multi_byte_nop=yes
32511 else
32512 have_multi_byte_nop=no
32514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32515 conftest.$ac_objext conftest.beam conftest.$ac_ext
32518 have_cet=no
32519 if test x$have_multi_byte_nop = xyes; then
32520 if test "$cross_compiling" = yes; then :
32521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32523 as_fn_error $? "cannot run test program while cross compiling
32524 See \`config.log' for more details" "$LINENO" 5; }
32525 else
32526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32527 /* end confdefs.h. */
32529 static void
32530 foo (void)
32534 static void
32535 __attribute__ ((noinline, noclone))
32536 xxx (void (*f) (void))
32538 f ();
32541 static void
32542 __attribute__ ((noinline, noclone))
32543 bar (void)
32545 xxx (foo);
32549 main ()
32551 bar ();
32552 return 0;
32555 _ACEOF
32556 if ac_fn_cxx_try_run "$LINENO"; then :
32557 have_cet=no
32558 else
32559 have_cet=yes
32561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32562 conftest.$ac_objext conftest.beam conftest.$ac_ext
32566 if test x$enable_cet = xno -a x$have_cet = xyes; then
32567 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32570 else
32571 # Enable CET in cross compiler if possible so that it will run on both
32572 # CET and non-CET hosts.
32573 have_cet=yes
32575 if test x$enable_cet = xyes; then
32576 CET_HOST_FLAGS="-fcf-protection"
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32578 $as_echo "yes" >&6; }
32579 else
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32581 $as_echo "no" >&6; }
32583 CFLAGS="$cet_save_CFLAGS"
32584 LDFLAGS="$cet_save_LDFLAGS"
32586 case x$enable_languages in
32587 *jit*)
32590 CET_HOST_FLAGS=
32592 esac
32595 # Check linker supports '-z bndplt'
32596 ld_bndplt_support=no
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32598 $as_echo_n "checking linker -z bndplt option... " >&6; }
32599 if test x"$ld_is_gold" = xno; then
32600 if test $in_tree_ld = yes ; then
32601 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
32602 ld_bndplt_support=yes
32604 elif test x$gcc_cv_ld != x; then
32605 # Check if linker supports -a bndplt option
32606 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32607 ld_bndplt_support=yes
32611 if test x"$ld_bndplt_support" = xyes; then
32613 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32617 $as_echo "$ld_bndplt_support" >&6; }
32619 # Check linker supports '--push-state'/'--pop-state'
32620 ld_pushpopstate_support=no
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32622 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32623 if test x"$ld_is_gold" = xno; then
32624 if test $in_tree_ld = yes ; then
32625 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
32626 ld_pushpopstate_support=yes
32628 elif test x$gcc_cv_ld != x; then
32629 # Check if linker supports --push-state/--pop-state options
32630 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32631 ld_pushpopstate_support=yes
32635 if test x"$ld_pushpopstate_support" = xyes; then
32637 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32641 $as_echo "$ld_pushpopstate_support" >&6; }
32643 # On s390, float_t has historically been statically defined as double for no
32644 # good reason. To comply with the C standard in the light of this definition,
32645 # gcc has evaluated float expressions in double precision when in
32646 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32647 # a smooth transition towards the new model used by most architectures, where
32648 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32649 # float_t from that, this behavior can be configured with
32650 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32651 # the old model. When omitted, native builds and cross compiles that have target
32652 # libc headers will detect whether libc clamps float_t to double and in that
32653 # case maintain the old model. Otherwise, they will default to the new model.
32654 # Check whether --enable-s390-excess-float-precision was given.
32655 if test "${enable_s390_excess_float_precision+set}" = set; then :
32656 enableval=$enable_s390_excess_float_precision;
32657 else
32658 enable_s390_excess_float_precision=auto
32662 case $target in
32663 s390*-linux*)
32664 if test x"$enable_s390_excess_float_precision" = xauto; then
32665 # Can we autodetect the behavior of the target libc?
32666 if test "$target" = "$host" -a "$host" = "$build"; then
32667 enable_s390_excess_float_precision=autodetect
32668 elif test "x$with_headers" != xno; then
32669 # cross build. are target headers available?
32670 # carefully coerce the build-system compiler to use target headers
32671 saved_CXXFLAGS="$CXXFLAGS"
32672 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32673 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32674 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32676 /* end confdefs.h. */
32678 #include <math.h>
32680 _ACEOF
32681 if ac_fn_cxx_try_compile "$LINENO"; then :
32682 enable_s390_excess_float_precision=autodetect
32684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32685 CXXFLAGS="$saved_CXXFLAGS"
32688 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32689 saved_CXXFLAGS="$CXXFLAGS"
32690 if ! test "$target" = "$host" -a "$host" = "$build"; then
32691 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32692 unset CROSS_TEST_CXXFLAGS
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32695 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32696 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32697 $as_echo_n "(cached) " >&6
32698 else
32700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32701 /* end confdefs.h. */
32703 #define __FLT_EVAL_METHOD__ 0
32704 #include <math.h>
32705 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32707 _ACEOF
32708 if ac_fn_cxx_try_compile "$LINENO"; then :
32709 gcc_cv_float_t_clamped_to_double=yes
32710 else
32711 gcc_cv_float_t_clamped_to_double=no
32713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32716 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32717 CXXFLAGS="$saved_CXXFLAGS"
32718 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32719 else
32720 # no way to detect behavior of target libc, default to new model
32721 enable_s390_excess_float_precision=no
32726 if test x"$enable_s390_excess_float_precision" = xyes; then
32728 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32732 esac
32734 # Configure the subdirectories
32735 # AC_CONFIG_SUBDIRS($subdirs)
32737 # Create the Makefile
32738 # and configure language subdirectories
32739 ac_config_files="$ac_config_files $all_outputs"
32742 ac_config_commands="$ac_config_commands default"
32744 cat >confcache <<\_ACEOF
32745 # This file is a shell script that caches the results of configure
32746 # tests run on this system so they can be shared between configure
32747 # scripts and configure runs, see configure's option --config-cache.
32748 # It is not useful on other systems. If it contains results you don't
32749 # want to keep, you may remove or edit it.
32751 # config.status only pays attention to the cache file if you give it
32752 # the --recheck option to rerun configure.
32754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32756 # following values.
32758 _ACEOF
32760 # The following way of writing the cache mishandles newlines in values,
32761 # but we know of no workaround that is simple, portable, and efficient.
32762 # So, we kill variables containing newlines.
32763 # Ultrix sh set writes to stderr and can't be redirected directly,
32764 # and sets the high bit in the cache file unless we assign to the vars.
32766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32767 eval ac_val=\$$ac_var
32768 case $ac_val in #(
32769 *${as_nl}*)
32770 case $ac_var in #(
32771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32773 esac
32774 case $ac_var in #(
32775 _ | IFS | as_nl) ;; #(
32776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32777 *) { eval $ac_var=; unset $ac_var;} ;;
32778 esac ;;
32779 esac
32780 done
32782 (set) 2>&1 |
32783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32784 *${as_nl}ac_space=\ *)
32785 # `set' does not quote correctly, so add quotes: double-quote
32786 # substitution turns \\\\ into \\, and sed turns \\ into \.
32787 sed -n \
32788 "s/'/'\\\\''/g;
32789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32790 ;; #(
32792 # `set' quotes correctly as required by POSIX, so do not add quotes.
32793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32795 esac |
32796 sort
32798 sed '
32799 /^ac_cv_env_/b end
32800 t clear
32801 :clear
32802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32803 t end
32804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32805 :end' >>confcache
32806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32807 if test -w "$cache_file"; then
32808 if test "x$cache_file" != "x/dev/null"; then
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32810 $as_echo "$as_me: updating cache $cache_file" >&6;}
32811 if test ! -f "$cache_file" || test -h "$cache_file"; then
32812 cat confcache >"$cache_file"
32813 else
32814 case $cache_file in #(
32815 */* | ?:*)
32816 mv -f confcache "$cache_file"$$ &&
32817 mv -f "$cache_file"$$ "$cache_file" ;; #(
32819 mv -f confcache "$cache_file" ;;
32820 esac
32823 else
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32828 rm -f confcache
32830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32831 # Let make expand exec_prefix.
32832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32834 DEFS=-DHAVE_CONFIG_H
32836 ac_libobjs=
32837 ac_ltlibobjs=
32839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32840 # 1. Remove the extension, and $U if already installed.
32841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32844 # will be set to the directory where LIBOBJS objects are built.
32845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32847 done
32848 LIBOBJS=$ac_libobjs
32850 LTLIBOBJS=$ac_ltlibobjs
32855 : "${CONFIG_STATUS=./config.status}"
32856 ac_write_fail=0
32857 ac_clean_files_save=$ac_clean_files
32858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32860 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32861 as_write_fail=0
32862 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32863 #! $SHELL
32864 # Generated by $as_me.
32865 # Run this file to recreate the current configuration.
32866 # Compiler output produced by configure, useful for debugging
32867 # configure, is in config.log if it exists.
32869 debug=false
32870 ac_cs_recheck=false
32871 ac_cs_silent=false
32873 SHELL=\${CONFIG_SHELL-$SHELL}
32874 export SHELL
32875 _ASEOF
32876 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32877 ## -------------------- ##
32878 ## M4sh Initialization. ##
32879 ## -------------------- ##
32881 # Be more Bourne compatible
32882 DUALCASE=1; export DUALCASE # for MKS sh
32883 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32884 emulate sh
32885 NULLCMD=:
32886 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32887 # is contrary to our usage. Disable this feature.
32888 alias -g '${1+"$@"}'='"$@"'
32889 setopt NO_GLOB_SUBST
32890 else
32891 case `(set -o) 2>/dev/null` in #(
32892 *posix*) :
32893 set -o posix ;; #(
32894 *) :
32896 esac
32900 as_nl='
32902 export as_nl
32903 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32904 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32907 # Prefer a ksh shell builtin over an external printf program on Solaris,
32908 # but without wasting forks for bash or zsh.
32909 if test -z "$BASH_VERSION$ZSH_VERSION" \
32910 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32911 as_echo='print -r --'
32912 as_echo_n='print -rn --'
32913 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32914 as_echo='printf %s\n'
32915 as_echo_n='printf %s'
32916 else
32917 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32918 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32919 as_echo_n='/usr/ucb/echo -n'
32920 else
32921 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32922 as_echo_n_body='eval
32923 arg=$1;
32924 case $arg in #(
32925 *"$as_nl"*)
32926 expr "X$arg" : "X\\(.*\\)$as_nl";
32927 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32928 esac;
32929 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32931 export as_echo_n_body
32932 as_echo_n='sh -c $as_echo_n_body as_echo'
32934 export as_echo_body
32935 as_echo='sh -c $as_echo_body as_echo'
32938 # The user is always right.
32939 if test "${PATH_SEPARATOR+set}" != set; then
32940 PATH_SEPARATOR=:
32941 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32942 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32943 PATH_SEPARATOR=';'
32948 # IFS
32949 # We need space, tab and new line, in precisely that order. Quoting is
32950 # there to prevent editors from complaining about space-tab.
32951 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32952 # splitting by setting IFS to empty value.)
32953 IFS=" "" $as_nl"
32955 # Find who we are. Look in the path if we contain no directory separator.
32956 as_myself=
32957 case $0 in #((
32958 *[\\/]* ) as_myself=$0 ;;
32959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32960 for as_dir in $PATH
32962 IFS=$as_save_IFS
32963 test -z "$as_dir" && as_dir=.
32964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32965 done
32966 IFS=$as_save_IFS
32969 esac
32970 # We did not find ourselves, most probably we were run as `sh COMMAND'
32971 # in which case we are not to be found in the path.
32972 if test "x$as_myself" = x; then
32973 as_myself=$0
32975 if test ! -f "$as_myself"; then
32976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32977 exit 1
32980 # Unset variables that we do not need and which cause bugs (e.g. in
32981 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32982 # suppresses any "Segmentation fault" message there. '((' could
32983 # trigger a bug in pdksh 5.2.14.
32984 for as_var in BASH_ENV ENV MAIL MAILPATH
32985 do eval test x\${$as_var+set} = xset \
32986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32987 done
32988 PS1='$ '
32989 PS2='> '
32990 PS4='+ '
32992 # NLS nuisances.
32993 LC_ALL=C
32994 export LC_ALL
32995 LANGUAGE=C
32996 export LANGUAGE
32998 # CDPATH.
32999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33002 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33003 # ----------------------------------------
33004 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33005 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33006 # script with STATUS, using 1 if that was 0.
33007 as_fn_error ()
33009 as_status=$1; test $as_status -eq 0 && as_status=1
33010 if test "$4"; then
33011 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33012 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33014 $as_echo "$as_me: error: $2" >&2
33015 as_fn_exit $as_status
33016 } # as_fn_error
33019 # as_fn_set_status STATUS
33020 # -----------------------
33021 # Set $? to STATUS, without forking.
33022 as_fn_set_status ()
33024 return $1
33025 } # as_fn_set_status
33027 # as_fn_exit STATUS
33028 # -----------------
33029 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33030 as_fn_exit ()
33032 set +e
33033 as_fn_set_status $1
33034 exit $1
33035 } # as_fn_exit
33037 # as_fn_unset VAR
33038 # ---------------
33039 # Portably unset VAR.
33040 as_fn_unset ()
33042 { eval $1=; unset $1;}
33044 as_unset=as_fn_unset
33045 # as_fn_append VAR VALUE
33046 # ----------------------
33047 # Append the text in VALUE to the end of the definition contained in VAR. Take
33048 # advantage of any shell optimizations that allow amortized linear growth over
33049 # repeated appends, instead of the typical quadratic growth present in naive
33050 # implementations.
33051 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33052 eval 'as_fn_append ()
33054 eval $1+=\$2
33056 else
33057 as_fn_append ()
33059 eval $1=\$$1\$2
33061 fi # as_fn_append
33063 # as_fn_arith ARG...
33064 # ------------------
33065 # Perform arithmetic evaluation on the ARGs, and store the result in the
33066 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33067 # must be portable across $(()) and expr.
33068 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33069 eval 'as_fn_arith ()
33071 as_val=$(( $* ))
33073 else
33074 as_fn_arith ()
33076 as_val=`expr "$@" || test $? -eq 1`
33078 fi # as_fn_arith
33081 if expr a : '\(a\)' >/dev/null 2>&1 &&
33082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33083 as_expr=expr
33084 else
33085 as_expr=false
33088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33089 as_basename=basename
33090 else
33091 as_basename=false
33094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33095 as_dirname=dirname
33096 else
33097 as_dirname=false
33100 as_me=`$as_basename -- "$0" ||
33101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33102 X"$0" : 'X\(//\)$' \| \
33103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33104 $as_echo X/"$0" |
33105 sed '/^.*\/\([^/][^/]*\)\/*$/{
33106 s//\1/
33109 /^X\/\(\/\/\)$/{
33110 s//\1/
33113 /^X\/\(\/\).*/{
33114 s//\1/
33117 s/.*/./; q'`
33119 # Avoid depending upon Character Ranges.
33120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33123 as_cr_digits='0123456789'
33124 as_cr_alnum=$as_cr_Letters$as_cr_digits
33126 ECHO_C= ECHO_N= ECHO_T=
33127 case `echo -n x` in #(((((
33128 -n*)
33129 case `echo 'xy\c'` in
33130 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33131 xy) ECHO_C='\c';;
33132 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33133 ECHO_T=' ';;
33134 esac;;
33136 ECHO_N='-n';;
33137 esac
33139 rm -f conf$$ conf$$.exe conf$$.file
33140 if test -d conf$$.dir; then
33141 rm -f conf$$.dir/conf$$.file
33142 else
33143 rm -f conf$$.dir
33144 mkdir conf$$.dir 2>/dev/null
33146 if (echo >conf$$.file) 2>/dev/null; then
33147 if ln -s conf$$.file conf$$ 2>/dev/null; then
33148 as_ln_s='ln -s'
33149 # ... but there are two gotchas:
33150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33152 # In both cases, we have to default to `cp -pR'.
33153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33154 as_ln_s='cp -pR'
33155 elif ln conf$$.file conf$$ 2>/dev/null; then
33156 as_ln_s=ln
33157 else
33158 as_ln_s='cp -pR'
33160 else
33161 as_ln_s='cp -pR'
33163 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33164 rmdir conf$$.dir 2>/dev/null
33167 # as_fn_mkdir_p
33168 # -------------
33169 # Create "$as_dir" as a directory, including parents if necessary.
33170 as_fn_mkdir_p ()
33173 case $as_dir in #(
33174 -*) as_dir=./$as_dir;;
33175 esac
33176 test -d "$as_dir" || eval $as_mkdir_p || {
33177 as_dirs=
33178 while :; do
33179 case $as_dir in #(
33180 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33181 *) as_qdir=$as_dir;;
33182 esac
33183 as_dirs="'$as_qdir' $as_dirs"
33184 as_dir=`$as_dirname -- "$as_dir" ||
33185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33186 X"$as_dir" : 'X\(//\)[^/]' \| \
33187 X"$as_dir" : 'X\(//\)$' \| \
33188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33189 $as_echo X"$as_dir" |
33190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33191 s//\1/
33194 /^X\(\/\/\)[^/].*/{
33195 s//\1/
33198 /^X\(\/\/\)$/{
33199 s//\1/
33202 /^X\(\/\).*/{
33203 s//\1/
33206 s/.*/./; q'`
33207 test -d "$as_dir" && break
33208 done
33209 test -z "$as_dirs" || eval "mkdir $as_dirs"
33210 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33213 } # as_fn_mkdir_p
33214 if mkdir -p . 2>/dev/null; then
33215 as_mkdir_p='mkdir -p "$as_dir"'
33216 else
33217 test -d ./-p && rmdir ./-p
33218 as_mkdir_p=false
33222 # as_fn_executable_p FILE
33223 # -----------------------
33224 # Test if FILE is an executable regular file.
33225 as_fn_executable_p ()
33227 test -f "$1" && test -x "$1"
33228 } # as_fn_executable_p
33229 as_test_x='test -x'
33230 as_executable_p=as_fn_executable_p
33232 # Sed expression to map a string onto a valid CPP name.
33233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33235 # Sed expression to map a string onto a valid variable name.
33236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33239 exec 6>&1
33240 ## ----------------------------------- ##
33241 ## Main body of $CONFIG_STATUS script. ##
33242 ## ----------------------------------- ##
33243 _ASEOF
33244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33247 # Save the log message, to keep $0 and so on meaningful, and to
33248 # report actual input values of CONFIG_FILES etc. instead of their
33249 # values after options handling.
33250 ac_log="
33251 This file was extended by $as_me, which was
33252 generated by GNU Autoconf 2.69. Invocation command line was
33254 CONFIG_FILES = $CONFIG_FILES
33255 CONFIG_HEADERS = $CONFIG_HEADERS
33256 CONFIG_LINKS = $CONFIG_LINKS
33257 CONFIG_COMMANDS = $CONFIG_COMMANDS
33258 $ $0 $@
33260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33263 _ACEOF
33265 case $ac_config_files in *"
33266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33267 esac
33269 case $ac_config_headers in *"
33270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33271 esac
33274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33275 # Files that config.status was made for.
33276 config_files="$ac_config_files"
33277 config_headers="$ac_config_headers"
33278 config_links="$ac_config_links"
33279 config_commands="$ac_config_commands"
33281 _ACEOF
33283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33284 ac_cs_usage="\
33285 \`$as_me' instantiates files and other configuration actions
33286 from templates according to the current configuration. Unless the files
33287 and actions are specified as TAGs, all are instantiated by default.
33289 Usage: $0 [OPTION]... [TAG]...
33291 -h, --help print this help, then exit
33292 -V, --version print version number and configuration settings, then exit
33293 --config print configuration, then exit
33294 -q, --quiet, --silent
33295 do not print progress messages
33296 -d, --debug don't remove temporary files
33297 --recheck update $as_me by reconfiguring in the same conditions
33298 --file=FILE[:TEMPLATE]
33299 instantiate the configuration file FILE
33300 --header=FILE[:TEMPLATE]
33301 instantiate the configuration header FILE
33303 Configuration files:
33304 $config_files
33306 Configuration headers:
33307 $config_headers
33309 Configuration links:
33310 $config_links
33312 Configuration commands:
33313 $config_commands
33315 Report bugs to the package provider."
33317 _ACEOF
33318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33320 ac_cs_version="\\
33321 config.status
33322 configured by $0, generated by GNU Autoconf 2.69,
33323 with options \\"\$ac_cs_config\\"
33325 Copyright (C) 2012 Free Software Foundation, Inc.
33326 This config.status script is free software; the Free Software Foundation
33327 gives unlimited permission to copy, distribute and modify it."
33329 ac_pwd='$ac_pwd'
33330 srcdir='$srcdir'
33331 AWK='$AWK'
33332 test -n "\$AWK" || AWK=awk
33333 _ACEOF
33335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33336 # The default lists apply if the user does not specify any file.
33337 ac_need_defaults=:
33338 while test $# != 0
33340 case $1 in
33341 --*=?*)
33342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33344 ac_shift=:
33346 --*=)
33347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33348 ac_optarg=
33349 ac_shift=:
33352 ac_option=$1
33353 ac_optarg=$2
33354 ac_shift=shift
33356 esac
33358 case $ac_option in
33359 # Handling of the options.
33360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33361 ac_cs_recheck=: ;;
33362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33363 $as_echo "$ac_cs_version"; exit ;;
33364 --config | --confi | --conf | --con | --co | --c )
33365 $as_echo "$ac_cs_config"; exit ;;
33366 --debug | --debu | --deb | --de | --d | -d )
33367 debug=: ;;
33368 --file | --fil | --fi | --f )
33369 $ac_shift
33370 case $ac_optarg in
33371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33372 '') as_fn_error $? "missing file argument" ;;
33373 esac
33374 as_fn_append CONFIG_FILES " '$ac_optarg'"
33375 ac_need_defaults=false;;
33376 --header | --heade | --head | --hea )
33377 $ac_shift
33378 case $ac_optarg in
33379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33380 esac
33381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33382 ac_need_defaults=false;;
33383 --he | --h)
33384 # Conflict between --help and --header
33385 as_fn_error $? "ambiguous option: \`$1'
33386 Try \`$0 --help' for more information.";;
33387 --help | --hel | -h )
33388 $as_echo "$ac_cs_usage"; exit ;;
33389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33391 ac_cs_silent=: ;;
33393 # This is an error.
33394 -*) as_fn_error $? "unrecognized option: \`$1'
33395 Try \`$0 --help' for more information." ;;
33397 *) as_fn_append ac_config_targets " $1"
33398 ac_need_defaults=false ;;
33400 esac
33401 shift
33402 done
33404 ac_configure_extra_args=
33406 if $ac_cs_silent; then
33407 exec 6>/dev/null
33408 ac_configure_extra_args="$ac_configure_extra_args --silent"
33411 _ACEOF
33412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33413 if \$ac_cs_recheck; then
33414 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33415 shift
33416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33417 CONFIG_SHELL='$SHELL'
33418 export CONFIG_SHELL
33419 exec "\$@"
33422 _ACEOF
33423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424 exec 5>>config.log
33426 echo
33427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33428 ## Running $as_me. ##
33429 _ASBOX
33430 $as_echo "$ac_log"
33431 } >&5
33433 _ACEOF
33434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33436 # INIT-COMMANDS
33438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33439 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33440 subdirs='$subdirs'
33442 _ACEOF
33444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33446 # Handling of arguments.
33447 for ac_config_target in $ac_config_targets
33449 case $ac_config_target in
33450 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33451 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33452 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33453 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33454 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33455 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33456 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33457 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33458 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33459 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33461 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33462 esac
33463 done
33466 # If the user did not use the arguments to specify the items to instantiate,
33467 # then the envvar interface is used. Set only those that are not.
33468 # We use the long form for the default assignment because of an extremely
33469 # bizarre bug on SunOS 4.1.3.
33470 if $ac_need_defaults; then
33471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33473 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33477 # Have a temporary directory for convenience. Make it in the build tree
33478 # simply because there is no reason against having it here, and in addition,
33479 # creating and moving files from /tmp can sometimes cause problems.
33480 # Hook for its removal unless debugging.
33481 # Note that there is a small window in which the directory will not be cleaned:
33482 # after its creation but before its name has been assigned to `$tmp'.
33483 $debug ||
33485 tmp= ac_tmp=
33486 trap 'exit_status=$?
33487 : "${ac_tmp:=$tmp}"
33488 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33490 trap 'as_fn_exit 1' 1 2 13 15
33492 # Create a (secure) tmp directory for tmp files.
33495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33496 test -d "$tmp"
33497 } ||
33499 tmp=./conf$$-$RANDOM
33500 (umask 077 && mkdir "$tmp")
33501 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33502 ac_tmp=$tmp
33504 # Set up the scripts for CONFIG_FILES section.
33505 # No need to generate them if there are no CONFIG_FILES.
33506 # This happens for instance with `./config.status config.h'.
33507 if test -n "$CONFIG_FILES"; then
33509 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33510 ac_cs_awk_getline=:
33511 ac_cs_awk_pipe_init=
33512 ac_cs_awk_read_file='
33513 while ((getline aline < (F[key])) > 0)
33514 print(aline)
33515 close(F[key])'
33516 ac_cs_awk_pipe_fini=
33517 else
33518 ac_cs_awk_getline=false
33519 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33520 ac_cs_awk_read_file='
33521 print "|#_!!_#|"
33522 print "cat " F[key] " &&"
33523 '$ac_cs_awk_pipe_init
33524 # The final `:' finishes the AND list.
33525 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33527 ac_cr=`echo X | tr X '\015'`
33528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33529 # But we know of no other shell where ac_cr would be empty at this
33530 # point, so we can use a bashism as a fallback.
33531 if test "x$ac_cr" = x; then
33532 eval ac_cr=\$\'\\r\'
33534 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33536 ac_cs_awk_cr='\\r'
33537 else
33538 ac_cs_awk_cr=$ac_cr
33541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33542 _ACEOF
33544 # Create commands to substitute file output variables.
33546 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33547 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33548 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33549 echo "_ACAWK" &&
33550 echo "_ACEOF"
33551 } >conf$$files.sh &&
33552 . ./conf$$files.sh ||
33553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33554 rm -f conf$$files.sh
33557 echo "cat >conf$$subs.awk <<_ACEOF" &&
33558 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33559 echo "_ACEOF"
33560 } >conf$$subs.sh ||
33561 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33562 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33563 ac_delim='%!_!# '
33564 for ac_last_try in false false false false false :; do
33565 . ./conf$$subs.sh ||
33566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33568 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33569 if test $ac_delim_n = $ac_delim_num; then
33570 break
33571 elif $ac_last_try; then
33572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33573 else
33574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33576 done
33577 rm -f conf$$subs.sh
33579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33580 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33581 _ACEOF
33582 sed -n '
33584 s/^/S["/; s/!.*/"]=/
33587 s/^[^!]*!//
33588 :repl
33589 t repl
33590 s/'"$ac_delim"'$//
33591 t delim
33594 s/\(.\{148\}\)..*/\1/
33595 t more1
33596 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33599 b repl
33600 :more1
33601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33604 s/.\{148\}//
33605 t nl
33606 :delim
33608 s/\(.\{148\}\)..*/\1/
33609 t more2
33610 s/["\\]/\\&/g; s/^/"/; s/$/"/
33613 :more2
33614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33617 s/.\{148\}//
33618 t delim
33619 ' <conf$$subs.awk | sed '
33620 /^[^""]/{
33622 s/\n//
33624 ' >>$CONFIG_STATUS || ac_write_fail=1
33625 rm -f conf$$subs.awk
33626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33627 _ACAWK
33628 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33629 for (key in S) S_is_set[key] = 1
33630 FS = "\a"
33631 \$ac_cs_awk_pipe_init
33634 line = $ 0
33635 nfields = split(line, field, "@")
33636 substed = 0
33637 len = length(field[1])
33638 for (i = 2; i < nfields; i++) {
33639 key = field[i]
33640 keylen = length(key)
33641 if (S_is_set[key]) {
33642 value = S[key]
33643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33644 len += length(value) + length(field[++i])
33645 substed = 1
33646 } else
33647 len += 1 + keylen
33649 if (nfields == 3 && !substed) {
33650 key = field[2]
33651 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33652 \$ac_cs_awk_read_file
33653 next
33656 print line
33658 \$ac_cs_awk_pipe_fini
33659 _ACAWK
33660 _ACEOF
33661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33662 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33663 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33664 else
33666 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33667 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33668 _ACEOF
33670 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33671 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33672 # trailing colons and then remove the whole line if VPATH becomes empty
33673 # (actually we leave an empty line to preserve line numbers).
33674 if test "x$srcdir" = x.; then
33675 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33677 s///
33678 s/^/:/
33679 s/[ ]*$/:/
33680 s/:\$(srcdir):/:/g
33681 s/:\${srcdir}:/:/g
33682 s/:@srcdir@:/:/g
33683 s/^:*//
33684 s/:*$//
33686 s/\(=[ ]*\).*/\1/
33688 s/\n//
33689 s/^[^=]*=[ ]*$//
33693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33694 fi # test -n "$CONFIG_FILES"
33696 # Set up the scripts for CONFIG_HEADERS section.
33697 # No need to generate them if there are no CONFIG_HEADERS.
33698 # This happens for instance with `./config.status Makefile'.
33699 if test -n "$CONFIG_HEADERS"; then
33700 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33701 BEGIN {
33702 _ACEOF
33704 # Transform confdefs.h into an awk script `defines.awk', embedded as
33705 # here-document in config.status, that substitutes the proper values into
33706 # config.h.in to produce config.h.
33708 # Create a delimiter string that does not exist in confdefs.h, to ease
33709 # handling of long lines.
33710 ac_delim='%!_!# '
33711 for ac_last_try in false false :; do
33712 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33713 if test -z "$ac_tt"; then
33714 break
33715 elif $ac_last_try; then
33716 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33717 else
33718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33720 done
33722 # For the awk script, D is an array of macro values keyed by name,
33723 # likewise P contains macro parameters if any. Preserve backslash
33724 # newline sequences.
33726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33727 sed -n '
33728 s/.\{148\}/&'"$ac_delim"'/g
33729 t rset
33730 :rset
33731 s/^[ ]*#[ ]*define[ ][ ]*/ /
33732 t def
33734 :def
33735 s/\\$//
33736 t bsnl
33737 s/["\\]/\\&/g
33738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33739 D["\1"]=" \3"/p
33740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33742 :bsnl
33743 s/["\\]/\\&/g
33744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33745 D["\1"]=" \3\\\\\\n"\\/p
33746 t cont
33747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33748 t cont
33750 :cont
33752 s/.\{148\}/&'"$ac_delim"'/g
33753 t clear
33754 :clear
33755 s/\\$//
33756 t bsnlc
33757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33759 :bsnlc
33760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33761 b cont
33762 ' <confdefs.h | sed '
33763 s/'"$ac_delim"'/"\\\
33764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33767 for (key in D) D_is_set[key] = 1
33768 FS = "\a"
33770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33771 line = \$ 0
33772 split(line, arg, " ")
33773 if (arg[1] == "#") {
33774 defundef = arg[2]
33775 mac1 = arg[3]
33776 } else {
33777 defundef = substr(arg[1], 2)
33778 mac1 = arg[2]
33780 split(mac1, mac2, "(") #)
33781 macro = mac2[1]
33782 prefix = substr(line, 1, index(line, defundef) - 1)
33783 if (D_is_set[macro]) {
33784 # Preserve the white space surrounding the "#".
33785 print prefix "define", macro P[macro] D[macro]
33786 next
33787 } else {
33788 # Replace #undef with comments. This is necessary, for example,
33789 # in the case of _POSIX_SOURCE, which is predefined and required
33790 # on some systems where configure will not decide to define it.
33791 if (defundef == "undef") {
33792 print "/*", prefix defundef, macro, "*/"
33793 next
33797 { print }
33798 _ACAWK
33799 _ACEOF
33800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33801 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33802 fi # test -n "$CONFIG_HEADERS"
33805 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33806 shift
33807 for ac_tag
33809 case $ac_tag in
33810 :[FHLC]) ac_mode=$ac_tag; continue;;
33811 esac
33812 case $ac_mode$ac_tag in
33813 :[FHL]*:*);;
33814 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33815 :[FH]-) ac_tag=-:-;;
33816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33817 esac
33818 ac_save_IFS=$IFS
33819 IFS=:
33820 set x $ac_tag
33821 IFS=$ac_save_IFS
33822 shift
33823 ac_file=$1
33824 shift
33826 case $ac_mode in
33827 :L) ac_source=$1;;
33828 :[FH])
33829 ac_file_inputs=
33830 for ac_f
33832 case $ac_f in
33833 -) ac_f="$ac_tmp/stdin";;
33834 *) # Look for the file first in the build tree, then in the source tree
33835 # (if the path is not absolute). The absolute path cannot be DOS-style,
33836 # because $ac_f cannot contain `:'.
33837 test -f "$ac_f" ||
33838 case $ac_f in
33839 [\\/$]*) false;;
33840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33841 esac ||
33842 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33843 esac
33844 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33845 as_fn_append ac_file_inputs " '$ac_f'"
33846 done
33848 # Let's still pretend it is `configure' which instantiates (i.e., don't
33849 # use $as_me), people would be surprised to read:
33850 # /* config.h. Generated by config.status. */
33851 configure_input='Generated from '`
33852 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33853 `' by configure.'
33854 if test x"$ac_file" != x-; then
33855 configure_input="$ac_file. $configure_input"
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33857 $as_echo "$as_me: creating $ac_file" >&6;}
33859 # Neutralize special characters interpreted by sed in replacement strings.
33860 case $configure_input in #(
33861 *\&* | *\|* | *\\* )
33862 ac_sed_conf_input=`$as_echo "$configure_input" |
33863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33864 *) ac_sed_conf_input=$configure_input;;
33865 esac
33867 case $ac_tag in
33868 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33870 esac
33872 esac
33874 ac_dir=`$as_dirname -- "$ac_file" ||
33875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33876 X"$ac_file" : 'X\(//\)[^/]' \| \
33877 X"$ac_file" : 'X\(//\)$' \| \
33878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33879 $as_echo X"$ac_file" |
33880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33881 s//\1/
33884 /^X\(\/\/\)[^/].*/{
33885 s//\1/
33888 /^X\(\/\/\)$/{
33889 s//\1/
33892 /^X\(\/\).*/{
33893 s//\1/
33896 s/.*/./; q'`
33897 as_dir="$ac_dir"; as_fn_mkdir_p
33898 ac_builddir=.
33900 case "$ac_dir" in
33901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33904 # A ".." for each directory in $ac_dir_suffix.
33905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33906 case $ac_top_builddir_sub in
33907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33909 esac ;;
33910 esac
33911 ac_abs_top_builddir=$ac_pwd
33912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33913 # for backward compatibility:
33914 ac_top_builddir=$ac_top_build_prefix
33916 case $srcdir in
33917 .) # We are building in place.
33918 ac_srcdir=.
33919 ac_top_srcdir=$ac_top_builddir_sub
33920 ac_abs_top_srcdir=$ac_pwd ;;
33921 [\\/]* | ?:[\\/]* ) # Absolute name.
33922 ac_srcdir=$srcdir$ac_dir_suffix;
33923 ac_top_srcdir=$srcdir
33924 ac_abs_top_srcdir=$srcdir ;;
33925 *) # Relative name.
33926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33927 ac_top_srcdir=$ac_top_build_prefix$srcdir
33928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33929 esac
33930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33933 case $ac_mode in
33936 # CONFIG_FILE
33939 _ACEOF
33941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33942 # If the template does not know about datarootdir, expand it.
33943 # FIXME: This hack should be removed a few years after 2.60.
33944 ac_datarootdir_hack=; ac_datarootdir_seen=
33945 ac_sed_dataroot='
33946 /datarootdir/ {
33950 /@datadir@/p
33951 /@docdir@/p
33952 /@infodir@/p
33953 /@localedir@/p
33954 /@mandir@/p'
33955 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33956 *datarootdir*) ac_datarootdir_seen=yes;;
33957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33959 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33960 _ACEOF
33961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33962 ac_datarootdir_hack='
33963 s&@datadir@&$datadir&g
33964 s&@docdir@&$docdir&g
33965 s&@infodir@&$infodir&g
33966 s&@localedir@&$localedir&g
33967 s&@mandir@&$mandir&g
33968 s&\\\${datarootdir}&$datarootdir&g' ;;
33969 esac
33970 _ACEOF
33972 # Neutralize VPATH when `$srcdir' = `.'.
33973 # Shell code in configure.ac might set extrasub.
33974 # FIXME: do we really want to maintain this feature?
33975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33976 ac_sed_extra="$ac_vpsub
33977 $extrasub
33978 _ACEOF
33979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33982 s|@configure_input@|$ac_sed_conf_input|;t t
33983 s&@top_builddir@&$ac_top_builddir_sub&;t t
33984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33985 s&@srcdir@&$ac_srcdir&;t t
33986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33987 s&@top_srcdir@&$ac_top_srcdir&;t t
33988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33989 s&@builddir@&$ac_builddir&;t t
33990 s&@abs_builddir@&$ac_abs_builddir&;t t
33991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33992 $ac_datarootdir_hack
33994 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33995 if $ac_cs_awk_getline; then
33996 $AWK -f "$ac_tmp/subs.awk"
33997 else
33998 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33999 fi \
34000 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34002 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34003 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34004 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34005 "$ac_tmp/out"`; test -z "$ac_out"; } &&
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34007 which seems to be undefined. Please make sure it is defined" >&5
34008 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34009 which seems to be undefined. Please make sure it is defined" >&2;}
34011 rm -f "$ac_tmp/stdin"
34012 case $ac_file in
34013 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34014 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34015 esac \
34016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34020 # CONFIG_HEADER
34022 if test x"$ac_file" != x-; then
34024 $as_echo "/* $configure_input */" \
34025 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34026 } >"$ac_tmp/config.h" \
34027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34028 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34030 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34031 else
34032 rm -f "$ac_file"
34033 mv "$ac_tmp/config.h" "$ac_file" \
34034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34036 else
34037 $as_echo "/* $configure_input */" \
34038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34039 || as_fn_error $? "could not create -" "$LINENO" 5
34044 # CONFIG_LINK
34047 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
34049 else
34050 # Prefer the file from the source tree if names are identical.
34051 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34052 ac_source=$srcdir/$ac_source
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34056 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34058 if test ! -r "$ac_source"; then
34059 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34061 rm -f "$ac_file"
34063 # Try a relative symlink, then a hard link, then a copy.
34064 case $ac_source in
34065 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34066 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34067 esac
34068 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34069 ln "$ac_source" "$ac_file" 2>/dev/null ||
34070 cp -p "$ac_source" "$ac_file" ||
34071 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34074 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34075 $as_echo "$as_me: executing $ac_file commands" >&6;}
34077 esac
34080 case $ac_file$ac_mode in
34081 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34082 "gccdepdir":C)
34083 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34084 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34086 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34087 done ;;
34088 "as":F) chmod +x as ;;
34089 "collect-ld":F) chmod +x collect-ld ;;
34090 "nm":F) chmod +x nm ;;
34091 "dsymutil":F) chmod +x dsymutil ;;
34092 "default":C)
34093 case ${CONFIG_HEADERS} in
34094 *auto-host.h:config.in*)
34095 echo > cstamp-h ;;
34096 esac
34097 # Make sure all the subdirs exist.
34098 for d in $subdirs doc build common c-family
34100 test -d $d || mkdir $d
34101 done
34104 esac
34105 done # for ac_tag
34108 as_fn_exit 0
34109 _ACEOF
34110 ac_clean_files=$ac_clean_files_save
34112 test $ac_write_fail = 0 ||
34113 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34116 # configure is writing to config.log, and then calls config.status.
34117 # config.status does its own redirection, appending to config.log.
34118 # Unfortunately, on DOS this fails, as config.log is still kept open
34119 # by configure, so config.status won't be able to write to it; its
34120 # output is simply discarded. So we exec the FD to /dev/null,
34121 # effectively closing config.log, so it can be properly (re)opened and
34122 # appended to by config.status. When coming back to configure, we
34123 # need to make the FD available again.
34124 if test "$no_create" != yes; then
34125 ac_cs_success=:
34126 ac_config_status_args=
34127 test "$silent" = yes &&
34128 ac_config_status_args="$ac_config_status_args --quiet"
34129 exec 5>/dev/null
34130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34131 exec 5>>config.log
34132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34133 # would make configure fail if this is the last instruction.
34134 $ac_cs_success || as_fn_exit 1
34136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}