c++: over-eager friend matching [PR109649]
[official-gcc.git] / gcc / configure
blobcdc7358a56b26cccc3e335d785d446da3012a523
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 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 HAVE_PYTHON
809 PYTHON
810 BISON
811 FLEX
812 GENERATED_MANPAGES
813 MAKEINFO_TOC_INLINE_FLAG
814 BUILD_INFO
815 MAKEINFO
816 have_mktemp_command
817 make_compare_target
818 INSTALL_DATA
819 INSTALL_PROGRAM
820 INSTALL
821 ranlib_flags
822 RANLIB
824 LN_S
826 SET_MAKE
827 omp_device_property_deps
828 omp_device_properties
829 accel_dir_suffix
830 real_target_noncanonical
831 enable_as_accelerator
832 gnat_install_lib
833 REPORT_BUGS_TEXI
834 REPORT_BUGS_TO
835 PKGVERSION
836 CONFIGURE_SPECS
837 enable_gcov
838 enable_shared
839 enable_fixed_point
840 enable_decimal_float
841 with_float
842 with_cpu
843 enable_multiarch
844 enable_multilib
845 coverage_flags
846 valgrind_command
847 valgrind_path_defines
848 valgrind_path
849 TREECHECKING
850 nocommon_flag
851 noexception_flags
852 warn_cxxflags
853 warn_cflags
854 c_strict_warn
855 strict_warn
856 c_loose_warn
857 loose_warn
858 aliasing_flags
860 EGREP
861 GREP
862 CXXCPP
863 PICFLAG_FOR_TARGET
864 GDCFLAGS
866 GNATMAKE
867 GNATBIND
868 ac_ct_CXX
869 CXXFLAGS
871 OBJEXT
872 EXEEXT
873 ac_ct_CC
874 CPPFLAGS
875 LDFLAGS
876 CFLAGS
878 GENINSRC
879 CROSS_SYSTEM_HEADER_DIR
880 TARGET_SYSTEM_ROOT_DEFINE
881 TARGET_SYSTEM_ROOT
882 SYSROOT_CFLAGS_FOR_TARGET
883 target_subdir
884 host_subdir
885 build_subdir
886 build_libsubdir
887 target_noncanonical
888 host_noncanonical
889 target_os
890 target_vendor
891 target_cpu
892 target
893 host_os
894 host_vendor
895 host_cpu
896 host
897 build_os
898 build_vendor
899 build_cpu
900 build
901 target_alias
902 host_alias
903 build_alias
904 LIBS
905 ECHO_T
906 ECHO_N
907 ECHO_C
908 DEFS
909 mandir
910 localedir
911 libdir
912 psdir
913 pdfdir
914 dvidir
915 htmldir
916 infodir
917 docdir
918 oldincludedir
919 includedir
920 localstatedir
921 sharedstatedir
922 sysconfdir
923 datadir
924 datarootdir
925 libexecdir
926 sbindir
927 bindir
928 program_transform_name
929 prefix
930 exec_prefix
931 PACKAGE_URL
932 PACKAGE_BUGREPORT
933 PACKAGE_STRING
934 PACKAGE_VERSION
935 PACKAGE_TARNAME
936 PACKAGE_NAME
937 PATH_SEPARATOR
938 SHELL'
939 ac_subst_files='option_includes
940 language_hooks'
941 ac_user_opts='
942 enable_option_checking
943 with_build_libsubdir
944 with_local_prefix
945 with_native_system_header_dir
946 with_build_sysroot
947 with_sysroot
948 with_gxx_include_dir
949 with_gxx_libcxx_include_dir
950 with_cpp_install_dir
951 enable_generated_files_in_srcdir
952 with_gnu_ld
953 with_ld
954 with_demangler_in_ld
955 with_dsymutil
956 with_gnu_as
957 with_as
958 enable_largefile
959 enable_build_format_warnings
960 enable_werror_always
961 enable_checking
962 enable_coverage
963 enable_gather_detailed_mem_stats
964 enable_valgrind_annotations
965 enable_multilib
966 enable_multiarch
967 with_stack_clash_protection_guard_size
968 enable___cxa_atexit
969 enable_decimal_float
970 enable_fixed_point
971 enable_threads
972 enable_tls
973 enable_vtable_verify
974 enable_analyzer
975 enable_objc_gc
976 with_dwarf2
977 enable_shared
978 enable_gcov
979 with_specs
980 with_pkgversion
981 with_bugurl
982 with_documentation_root_url
983 with_changes_root_url
984 enable_languages
985 with_multilib_list
986 with_multilib_generator
987 with_zstd
988 with_zstd_include
989 with_zstd_lib
990 enable_rpath
991 with_libiconv_prefix
992 with_libiconv_type
993 enable_sjlj_exceptions
994 with_gcc_major_version_only
995 enable_secureplt
996 enable_mingw_wildcard
997 enable_large_address_aware
998 enable_leading_mingw64_underscores
999 enable_cld
1000 enable_frame_pointer
1001 enable_win32_registry
1002 enable_static
1003 with_pic
1004 enable_fast_install
1005 enable_libtool_lock
1006 enable_ld
1007 enable_gold
1008 with_plugin_ld
1009 enable_gnu_indirect_function
1010 enable_initfini_array
1011 enable_comdat
1012 enable_newlib_nano_formatted_io
1013 enable_standard_branch_protection
1014 enable_fix_cortex_a53_835769
1015 enable_fix_cortex_a53_843419
1016 with_glibc_version
1017 enable_gnu_unique_object
1018 enable_linker_build_id
1019 enable_libssp
1020 enable_default_ssp
1021 with_long_double_128
1022 with_long_double_format
1023 with_gc
1024 with_system_zlib
1025 enable_maintainer_mode
1026 enable_link_mutex
1027 enable_link_serialization
1028 enable_version_specific_runtime_libs
1029 enable_plugin
1030 enable_host_shared
1031 enable_libquadmath_support
1032 with_linker_hash_style
1033 with_diagnostics_color
1034 with_diagnostics_urls
1035 enable_default_pie
1036 enable_cet
1037 enable_s390_excess_float_precision
1039 ac_precious_vars='build_alias
1040 host_alias
1041 target_alias
1043 CFLAGS
1044 LDFLAGS
1045 LIBS
1046 CPPFLAGS
1048 CXXFLAGS
1050 CXXCPP
1052 GMPLIBS
1053 GMPINC
1054 ISLLIBS
1055 ISLINC'
1058 # Initialize some variables set by options.
1059 ac_init_help=
1060 ac_init_version=false
1061 ac_unrecognized_opts=
1062 ac_unrecognized_sep=
1063 # The variables have the same names as the options, with
1064 # dashes changed to underlines.
1065 cache_file=/dev/null
1066 exec_prefix=NONE
1067 no_create=
1068 no_recursion=
1069 prefix=NONE
1070 program_prefix=NONE
1071 program_suffix=NONE
1072 program_transform_name=s,x,x,
1073 silent=
1074 site=
1075 srcdir=
1076 verbose=
1077 x_includes=NONE
1078 x_libraries=NONE
1080 # Installation directory options.
1081 # These are left unexpanded so users can "make install exec_prefix=/foo"
1082 # and all the variables that are supposed to be based on exec_prefix
1083 # by default will actually change.
1084 # Use braces instead of parens because sh, perl, etc. also accept them.
1085 # (The list follows the same order as the GNU Coding Standards.)
1086 bindir='${exec_prefix}/bin'
1087 sbindir='${exec_prefix}/sbin'
1088 libexecdir='${exec_prefix}/libexec'
1089 datarootdir='${prefix}/share'
1090 datadir='${datarootdir}'
1091 sysconfdir='${prefix}/etc'
1092 sharedstatedir='${prefix}/com'
1093 localstatedir='${prefix}/var'
1094 includedir='${prefix}/include'
1095 oldincludedir='/usr/include'
1096 docdir='${datarootdir}/doc/${PACKAGE}'
1097 infodir='${datarootdir}/info'
1098 htmldir='${docdir}'
1099 dvidir='${docdir}'
1100 pdfdir='${docdir}'
1101 psdir='${docdir}'
1102 libdir='${exec_prefix}/lib'
1103 localedir='${datarootdir}/locale'
1104 mandir='${datarootdir}/man'
1106 ac_prev=
1107 ac_dashdash=
1108 for ac_option
1110 # If the previous option needs an argument, assign it.
1111 if test -n "$ac_prev"; then
1112 eval $ac_prev=\$ac_option
1113 ac_prev=
1114 continue
1117 case $ac_option in
1118 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1119 *=) ac_optarg= ;;
1120 *) ac_optarg=yes ;;
1121 esac
1123 # Accept the important Cygnus configure options, so we can diagnose typos.
1125 case $ac_dashdash$ac_option in
1127 ac_dashdash=yes ;;
1129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1130 ac_prev=bindir ;;
1131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1132 bindir=$ac_optarg ;;
1134 -build | --build | --buil | --bui | --bu)
1135 ac_prev=build_alias ;;
1136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1137 build_alias=$ac_optarg ;;
1139 -cache-file | --cache-file | --cache-fil | --cache-fi \
1140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1141 ac_prev=cache_file ;;
1142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1144 cache_file=$ac_optarg ;;
1146 --config-cache | -C)
1147 cache_file=config.cache ;;
1149 -datadir | --datadir | --datadi | --datad)
1150 ac_prev=datadir ;;
1151 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1152 datadir=$ac_optarg ;;
1154 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1155 | --dataroo | --dataro | --datar)
1156 ac_prev=datarootdir ;;
1157 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1158 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1159 datarootdir=$ac_optarg ;;
1161 -disable-* | --disable-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid feature name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "enable_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval enable_$ac_useropt=no ;;
1177 -docdir | --docdir | --docdi | --doc | --do)
1178 ac_prev=docdir ;;
1179 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180 docdir=$ac_optarg ;;
1182 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 ac_prev=dvidir ;;
1184 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185 dvidir=$ac_optarg ;;
1187 -enable-* | --enable-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid feature name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval enable_$ac_useropt=\$ac_optarg ;;
1203 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1204 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1205 | --exec | --exe | --ex)
1206 ac_prev=exec_prefix ;;
1207 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1208 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1209 | --exec=* | --exe=* | --ex=*)
1210 exec_prefix=$ac_optarg ;;
1212 -gas | --gas | --ga | --g)
1213 # Obsolete; use --with-gas.
1214 with_gas=yes ;;
1216 -help | --help | --hel | --he | -h)
1217 ac_init_help=long ;;
1218 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1219 ac_init_help=recursive ;;
1220 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1221 ac_init_help=short ;;
1223 -host | --host | --hos | --ho)
1224 ac_prev=host_alias ;;
1225 -host=* | --host=* | --hos=* | --ho=*)
1226 host_alias=$ac_optarg ;;
1228 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1229 ac_prev=htmldir ;;
1230 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1231 | --ht=*)
1232 htmldir=$ac_optarg ;;
1234 -includedir | --includedir | --includedi | --included | --include \
1235 | --includ | --inclu | --incl | --inc)
1236 ac_prev=includedir ;;
1237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1238 | --includ=* | --inclu=* | --incl=* | --inc=*)
1239 includedir=$ac_optarg ;;
1241 -infodir | --infodir | --infodi | --infod | --info | --inf)
1242 ac_prev=infodir ;;
1243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1244 infodir=$ac_optarg ;;
1246 -libdir | --libdir | --libdi | --libd)
1247 ac_prev=libdir ;;
1248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1249 libdir=$ac_optarg ;;
1251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1252 | --libexe | --libex | --libe)
1253 ac_prev=libexecdir ;;
1254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1255 | --libexe=* | --libex=* | --libe=*)
1256 libexecdir=$ac_optarg ;;
1258 -localedir | --localedir | --localedi | --localed | --locale)
1259 ac_prev=localedir ;;
1260 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1261 localedir=$ac_optarg ;;
1263 -localstatedir | --localstatedir | --localstatedi | --localstated \
1264 | --localstate | --localstat | --localsta | --localst | --locals)
1265 ac_prev=localstatedir ;;
1266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1267 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1268 localstatedir=$ac_optarg ;;
1270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1271 ac_prev=mandir ;;
1272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1273 mandir=$ac_optarg ;;
1275 -nfp | --nfp | --nf)
1276 # Obsolete; use --without-fp.
1277 with_fp=no ;;
1279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1280 | --no-cr | --no-c | -n)
1281 no_create=yes ;;
1283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1285 no_recursion=yes ;;
1287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1289 | --oldin | --oldi | --old | --ol | --o)
1290 ac_prev=oldincludedir ;;
1291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1294 oldincludedir=$ac_optarg ;;
1296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1297 ac_prev=prefix ;;
1298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1299 prefix=$ac_optarg ;;
1301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1302 | --program-pre | --program-pr | --program-p)
1303 ac_prev=program_prefix ;;
1304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1306 program_prefix=$ac_optarg ;;
1308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1309 | --program-suf | --program-su | --program-s)
1310 ac_prev=program_suffix ;;
1311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1313 program_suffix=$ac_optarg ;;
1315 -program-transform-name | --program-transform-name \
1316 | --program-transform-nam | --program-transform-na \
1317 | --program-transform-n | --program-transform- \
1318 | --program-transform | --program-transfor \
1319 | --program-transfo | --program-transf \
1320 | --program-trans | --program-tran \
1321 | --progr-tra | --program-tr | --program-t)
1322 ac_prev=program_transform_name ;;
1323 -program-transform-name=* | --program-transform-name=* \
1324 | --program-transform-nam=* | --program-transform-na=* \
1325 | --program-transform-n=* | --program-transform-=* \
1326 | --program-transform=* | --program-transfor=* \
1327 | --program-transfo=* | --program-transf=* \
1328 | --program-trans=* | --program-tran=* \
1329 | --progr-tra=* | --program-tr=* | --program-t=*)
1330 program_transform_name=$ac_optarg ;;
1332 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1333 ac_prev=pdfdir ;;
1334 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1335 pdfdir=$ac_optarg ;;
1337 -psdir | --psdir | --psdi | --psd | --ps)
1338 ac_prev=psdir ;;
1339 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1340 psdir=$ac_optarg ;;
1342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1343 | -silent | --silent | --silen | --sile | --sil)
1344 silent=yes ;;
1346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1347 ac_prev=sbindir ;;
1348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1349 | --sbi=* | --sb=*)
1350 sbindir=$ac_optarg ;;
1352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1354 | --sharedst | --shareds | --shared | --share | --shar \
1355 | --sha | --sh)
1356 ac_prev=sharedstatedir ;;
1357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1360 | --sha=* | --sh=*)
1361 sharedstatedir=$ac_optarg ;;
1363 -site | --site | --sit)
1364 ac_prev=site ;;
1365 -site=* | --site=* | --sit=*)
1366 site=$ac_optarg ;;
1368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1369 ac_prev=srcdir ;;
1370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1371 srcdir=$ac_optarg ;;
1373 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1374 | --syscon | --sysco | --sysc | --sys | --sy)
1375 ac_prev=sysconfdir ;;
1376 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1377 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1378 sysconfdir=$ac_optarg ;;
1380 -target | --target | --targe | --targ | --tar | --ta | --t)
1381 ac_prev=target_alias ;;
1382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1383 target_alias=$ac_optarg ;;
1385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1386 verbose=yes ;;
1388 -version | --version | --versio | --versi | --vers | -V)
1389 ac_init_version=: ;;
1391 -with-* | --with-*)
1392 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1393 # Reject names that are not valid shell variable names.
1394 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1395 as_fn_error $? "invalid package name: $ac_useropt"
1396 ac_useropt_orig=$ac_useropt
1397 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398 case $ac_user_opts in
1400 "with_$ac_useropt"
1401 "*) ;;
1402 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1403 ac_unrecognized_sep=', ';;
1404 esac
1405 eval with_$ac_useropt=\$ac_optarg ;;
1407 -without-* | --without-*)
1408 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1411 as_fn_error $? "invalid package name: $ac_useropt"
1412 ac_useropt_orig=$ac_useropt
1413 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414 case $ac_user_opts in
1416 "with_$ac_useropt"
1417 "*) ;;
1418 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1419 ac_unrecognized_sep=', ';;
1420 esac
1421 eval with_$ac_useropt=no ;;
1423 --x)
1424 # Obsolete; use --with-x.
1425 with_x=yes ;;
1427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1428 | --x-incl | --x-inc | --x-in | --x-i)
1429 ac_prev=x_includes ;;
1430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1432 x_includes=$ac_optarg ;;
1434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1436 ac_prev=x_libraries ;;
1437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1439 x_libraries=$ac_optarg ;;
1441 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1442 Try \`$0 --help' for more information"
1445 *=*)
1446 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1447 # Reject names that are not valid shell variable names.
1448 case $ac_envvar in #(
1449 '' | [0-9]* | *[!_$as_cr_alnum]* )
1450 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1451 esac
1452 eval $ac_envvar=\$ac_optarg
1453 export $ac_envvar ;;
1456 # FIXME: should be removed in autoconf 3.0.
1457 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1458 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1459 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1460 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 esac
1464 done
1466 if test -n "$ac_prev"; then
1467 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1468 as_fn_error $? "missing argument to $ac_option"
1471 if test -n "$ac_unrecognized_opts"; then
1472 case $enable_option_checking in
1473 no) ;;
1474 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1475 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 esac
1479 # Check all directory arguments for consistency.
1480 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1481 datadir sysconfdir sharedstatedir localstatedir includedir \
1482 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1483 libdir localedir mandir
1485 eval ac_val=\$$ac_var
1486 # Remove trailing slashes.
1487 case $ac_val in
1488 */ )
1489 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1490 eval $ac_var=\$ac_val;;
1491 esac
1492 # Be sure to have absolute directory names.
1493 case $ac_val in
1494 [\\/$]* | ?:[\\/]* ) continue;;
1495 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1496 esac
1497 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1498 done
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509 if test "x$build_alias" = x; then
1510 cross_compiling=maybe
1511 elif test "x$build_alias" != "x$host_alias"; then
1512 cross_compiling=yes
1516 ac_tool_prefix=
1517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1519 test "$silent" = yes && exec 6>/dev/null
1522 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1523 ac_ls_di=`ls -di .` &&
1524 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1525 as_fn_error $? "working directory cannot be determined"
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527 as_fn_error $? "pwd does not report name of working directory"
1530 # Find the source files, if location was not specified.
1531 if test -z "$srcdir"; then
1532 ac_srcdir_defaulted=yes
1533 # Try the directory containing this script, then the parent directory.
1534 ac_confdir=`$as_dirname -- "$as_myself" ||
1535 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1536 X"$as_myself" : 'X\(//\)[^/]' \| \
1537 X"$as_myself" : 'X\(//\)$' \| \
1538 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1539 $as_echo X"$as_myself" |
1540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1541 s//\1/
1544 /^X\(\/\/\)[^/].*/{
1545 s//\1/
1548 /^X\(\/\/\)$/{
1549 s//\1/
1552 /^X\(\/\).*/{
1553 s//\1/
1556 s/.*/./; q'`
1557 srcdir=$ac_confdir
1558 if test ! -r "$srcdir/$ac_unique_file"; then
1559 srcdir=..
1561 else
1562 ac_srcdir_defaulted=no
1564 if test ! -r "$srcdir/$ac_unique_file"; then
1565 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1566 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1568 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1569 ac_abs_confdir=`(
1570 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1571 pwd)`
1572 # When building in place, set srcdir=.
1573 if test "$ac_abs_confdir" = "$ac_pwd"; then
1574 srcdir=.
1576 # Remove unnecessary trailing slashes from srcdir.
1577 # Double slashes in file names in object file debugging info
1578 # mess up M-x gdb in Emacs.
1579 case $srcdir in
1580 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1581 esac
1582 for ac_var in $ac_precious_vars; do
1583 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1584 eval ac_env_${ac_var}_value=\$${ac_var}
1585 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1586 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1587 done
1590 # Report the --help message.
1592 if test "$ac_init_help" = "long"; then
1593 # Omit some internal or obsolete options to make the list less imposing.
1594 # This message is too long to be a string in the A/UX 3.1 sh.
1595 cat <<_ACEOF
1596 \`configure' configures this package to adapt to many kinds of systems.
1598 Usage: $0 [OPTION]... [VAR=VALUE]...
1600 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1601 VAR=VALUE. See below for descriptions of some of the useful variables.
1603 Defaults for the options are specified in brackets.
1605 Configuration:
1606 -h, --help display this help and exit
1607 --help=short display options specific to this package
1608 --help=recursive display the short help of all the included packages
1609 -V, --version display version information and exit
1610 -q, --quiet, --silent do not print \`checking ...' messages
1611 --cache-file=FILE cache test results in FILE [disabled]
1612 -C, --config-cache alias for \`--cache-file=config.cache'
1613 -n, --no-create do not create output files
1614 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1616 Installation directories:
1617 --prefix=PREFIX install architecture-independent files in PREFIX
1618 [$ac_default_prefix]
1619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1620 [PREFIX]
1622 By default, \`make install' will install all the files in
1623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1624 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1625 for instance \`--prefix=\$HOME'.
1627 For better control, use the options below.
1629 Fine tuning of the installation directories:
1630 --bindir=DIR user executables [EPREFIX/bin]
1631 --sbindir=DIR system admin executables [EPREFIX/sbin]
1632 --libexecdir=DIR program executables [EPREFIX/libexec]
1633 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1634 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1635 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1636 --libdir=DIR object code libraries [EPREFIX/lib]
1637 --includedir=DIR C header files [PREFIX/include]
1638 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1639 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1640 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1641 --infodir=DIR info documentation [DATAROOTDIR/info]
1642 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1643 --mandir=DIR man documentation [DATAROOTDIR/man]
1644 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1645 --htmldir=DIR html documentation [DOCDIR]
1646 --dvidir=DIR dvi documentation [DOCDIR]
1647 --pdfdir=DIR pdf documentation [DOCDIR]
1648 --psdir=DIR ps documentation [DOCDIR]
1649 _ACEOF
1651 cat <<\_ACEOF
1653 Program names:
1654 --program-prefix=PREFIX prepend PREFIX to installed program names
1655 --program-suffix=SUFFIX append SUFFIX to installed program names
1656 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1658 System types:
1659 --build=BUILD configure for building on BUILD [guessed]
1660 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1661 --target=TARGET configure for building compilers for TARGET [HOST]
1662 _ACEOF
1665 if test -n "$ac_init_help"; then
1667 cat <<\_ACEOF
1669 Optional Features:
1670 --disable-option-checking ignore unrecognized --enable/--with options
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1673 --enable-generated-files-in-srcdir
1674 put copies of generated files in source dir intended
1675 for creating source tarballs for users without
1676 texinfo bison or flex
1677 --disable-largefile omit support for large files
1678 --disable-build-format-warnings
1679 don't use -Wformat while building GCC
1680 --enable-werror-always enable -Werror despite compiler version
1681 --enable-checking[=LIST]
1682 enable expensive run-time checks. With LIST, enable
1683 only specific categories of checks. Categories are:
1684 yes,no,all,none,release. Flags are:
1685 assert,df,extra,fold,gc,gcac,gimple,misc,
1686 rtlflag,rtl,runtime,tree,valgrind,types
1687 --enable-coverage[=LEVEL]
1688 enable compiler's code coverage collection. Use to
1689 measure compiler performance and locate unused parts
1690 of the compiler. With LEVEL, specify optimization.
1691 Values are opt, noopt, default is noopt
1692 --enable-gather-detailed-mem-stats
1693 enable detailed memory allocation stats gathering
1694 --enable-valgrind-annotations
1695 enable valgrind runtime interaction
1696 --enable-multilib enable library support for multiple ABIs
1697 --enable-multiarch enable support for multiarch paths
1698 --enable-__cxa_atexit enable __cxa_atexit for C++
1699 --enable-decimal-float={no,yes,bid,dpd}
1700 enable decimal float extension to C. Selecting 'bid'
1701 or 'dpd' choses which decimal floating point format
1702 to use
1703 --enable-fixed-point enable fixed-point arithmetic extension to C
1704 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1705 package
1706 --enable-tls enable or disable generation of tls code overriding
1707 the assembler check for tls support
1708 --enable-vtable-verify enable vtable verification feature
1709 --disable-analyzer disable -fanalyzer static analyzer
1710 --enable-objc-gc enable the use of Boehm's garbage collector with the
1711 GNU Objective-C runtime
1712 --disable-shared don't provide a shared libgcc
1713 --disable-gcov don't provide libgcov and related host tools
1714 --enable-languages=LIST specify which front-ends to build
1715 --disable-rpath do not hardcode runtime library paths
1716 --enable-sjlj-exceptions
1717 arrange to use setjmp/longjmp exception handling
1718 --enable-secureplt enable -msecure-plt by default for PowerPC
1719 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1720 Default to platform configuration
1721 --enable-large-address-aware
1722 Link mingw executables with --large-address-aware
1723 --enable-leading-mingw64-underscores
1724 enable leading underscores on 64 bit mingw targets
1725 --enable-cld enable -mcld by default for 32bit x86
1726 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1727 --disable-win32-registry
1728 disable lookup of installation paths in the Registry
1729 on Windows hosts
1730 --enable-win32-registry enable registry lookup (default)
1731 --enable-win32-registry=KEY
1732 use KEY instead of GCC version as the last portion
1733 of the registry key
1734 --enable-shared[=PKGS] build shared libraries [default=yes]
1735 --enable-static[=PKGS] build static libraries [default=yes]
1736 --enable-fast-install[=PKGS]
1737 optimize for fast installation [default=yes]
1738 --disable-libtool-lock avoid locking (might break parallel builds)
1739 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1740 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1741 --enable-gnu-indirect-function
1742 enable the use of the @gnu_indirect_function to
1743 glibc systems
1744 --enable-initfini-array use .init_array/.fini_array sections
1745 --enable-comdat enable COMDAT group support
1746 --enable-newlib-nano-formatted-io
1747 Use nano version formatted IO
1749 --enable-standard-branch-protection
1750 enable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1752 --disable-standard-branch-protection
1753 disable Branch Target Identification Mechanism and
1754 Return Address Signing by default for AArch64
1757 --enable-fix-cortex-a53-835769
1758 enable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1760 --disable-fix-cortex-a53-835769
1761 disable workaround for AArch64 Cortex-A53 erratum
1762 835769 by default
1765 --enable-fix-cortex-a53-843419
1766 enable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1768 --disable-fix-cortex-a53-843419
1769 disable workaround for AArch64 Cortex-A53 erratum
1770 843419 by default
1772 --enable-gnu-unique-object
1773 enable the use of the @gnu_unique_object ELF
1774 extension on glibc systems
1775 --enable-linker-build-id
1776 compiler will always pass --build-id to linker
1777 --enable-libssp enable linking against libssp
1778 --enable-default-ssp enable Stack Smashing Protection as default
1779 --enable-maintainer-mode
1780 enable make rules and dependencies not useful (and
1781 sometimes confusing) to the casual installer
1782 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1783 thrashing on the build machine
1784 --enable-link-serialization
1785 avoid linking multiple GCC front-ends at once using
1786 make dependencies to avoid thrashing on the build
1787 machine
1788 --enable-version-specific-runtime-libs
1789 specify that runtime libraries should be installed
1790 in a compiler-specific directory
1791 --enable-plugin enable plugin support
1792 --enable-host-shared build host code as shared libraries
1793 --disable-libquadmath-support
1794 disable libquadmath support for Fortran
1795 --enable-default-pie enable Position Independent Executable as default
1796 --enable-cet enable Intel CET in host libraries [default=auto]
1797 --enable-s390-excess-float-precision
1798 on s390 targets, evaluate float with double
1799 precision when in standards-conforming mode
1801 Optional Packages:
1802 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1803 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1804 --with-build-libsubdir=DIR Directory where to find libraries for build system
1805 --with-local-prefix=DIR specifies directory to put local include
1806 --with-native-system-header-dir=dir
1807 use dir as the directory to look for standard
1808 system header files in. Defaults to /usr/include.
1809 --with-build-sysroot=sysroot
1810 use sysroot as the system root during the build
1811 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1812 --with-gxx-include-dir=DIR
1813 specifies directory to put g++ header files
1814 --with-gxx-libcxx-include-dir=DIR
1815 specifies directory to find libc++ header files
1816 --with-cpp-install-dir=DIR
1817 install the user visible C preprocessor in DIR
1818 (relative to PREFIX) as well as PREFIX/bin
1819 --with-gnu-ld arrange to work with GNU ld
1820 --with-ld arrange to use the specified ld (full pathname)
1821 --with-demangler-in-ld try to use demangler in GNU ld
1822 --with-dsymutil arrange to use the specified dsymutil (full
1823 pathname)
1824 --with-gnu-as arrange to work with GNU as
1825 --with-as arrange to use the specified as (full pathname)
1826 --with-stack-clash-protection-guard-size=size
1827 Set the default stack clash protection guard size
1828 for specific targets as a power of two in bytes.
1829 --with-dwarf2 force the default debug format to be DWARF 2 (or
1830 later)
1831 --with-specs=SPECS add SPECS to driver command-line processing
1832 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1833 --with-bugurl=URL Direct users to URL to report a bug
1834 --with-documentation-root-url=URL
1835 Root for documentation URLs
1836 --with-changes-root-url=URL
1837 Root for GCC changes URLs
1838 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1839 SH and x86-64 only)
1840 --with-multilib-generator
1841 Multi-libs configuration string (RISC-V only)
1842 --with-zstd=PATH specify prefix directory for installed zstd library.
1843 Equivalent to --with-zstd-include=PATH/include plus
1844 --with-zstd-lib=PATH/lib
1845 --with-zstd-include=PATH
1846 specify directory for installed zstd include files
1847 --with-zstd-lib=PATH specify directory for the installed zstd library
1848 --with-gnu-ld assume the C compiler uses GNU ld default=no
1849 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1850 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1851 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1852 --with-gcc-major-version-only
1853 use only GCC major number in filesystem paths
1854 --with-pic try to use only PIC/non-PIC objects [default=use
1855 both]
1856 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1857 --with-plugin-ld=[ARG] specify the plugin linker
1858 --with-glibc-version=M.N
1859 assume GCC used with glibc version M.N or later
1860 --with-long-double-128 use 128-bit long double by default
1861 --with-long-double-format={ieee,ibm}
1862 Specify whether PowerPC long double uses IEEE or IBM format
1864 --with-gc={page,zone} this option is not supported anymore. It used to
1865 choose the garbage collection mechanism to use with
1866 the compiler
1867 --with-system-zlib use installed libz
1868 --with-linker-hash-style={sysv,gnu,both}
1869 specify the linker hash style
1870 --with-diagnostics-color={never,auto,auto-if-env,always}
1871 specify the default of -fdiagnostics-color option
1872 auto-if-env stands for -fdiagnostics-color=auto if
1873 GCC_COLOR environment variable is present and
1874 -fdiagnostics-color=never otherwise
1875 --with-diagnostics-urls={never,auto,auto-if-env,always}
1876 specify the default of -fdiagnostics-urls option
1877 auto-if-env stands for -fdiagnostics-urls=auto if
1878 GCC_URLS or TERM_URLS environment variable is
1879 present and -fdiagnostics-urls=never otherwise
1881 Some influential environment variables:
1882 CC C compiler command
1883 CFLAGS C compiler flags
1884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1885 nonstandard directory <lib dir>
1886 LIBS libraries to pass to the linker, e.g. -l<library>
1887 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1888 you have headers in a nonstandard directory <include dir>
1889 CXX C++ compiler command
1890 CXXFLAGS C++ compiler flags
1891 CXXCPP C++ preprocessor
1892 CPP C preprocessor
1893 GMPLIBS How to link GMP
1894 GMPINC How to find GMP include files
1895 ISLLIBS How to link isl
1896 ISLINC How to find isl include files
1898 Use these variables to override the choices made by `configure' or to help
1899 it to find libraries and programs with nonstandard names/locations.
1901 Report bugs to the package provider.
1902 _ACEOF
1903 ac_status=$?
1906 if test "$ac_init_help" = "recursive"; then
1907 # If there are subdirs, report their specific --help.
1908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1909 test -d "$ac_dir" ||
1910 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 continue
1912 ac_builddir=.
1914 case "$ac_dir" in
1915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1918 # A ".." for each directory in $ac_dir_suffix.
1919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1920 case $ac_top_builddir_sub in
1921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1923 esac ;;
1924 esac
1925 ac_abs_top_builddir=$ac_pwd
1926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1927 # for backward compatibility:
1928 ac_top_builddir=$ac_top_build_prefix
1930 case $srcdir in
1931 .) # We are building in place.
1932 ac_srcdir=.
1933 ac_top_srcdir=$ac_top_builddir_sub
1934 ac_abs_top_srcdir=$ac_pwd ;;
1935 [\\/]* | ?:[\\/]* ) # Absolute name.
1936 ac_srcdir=$srcdir$ac_dir_suffix;
1937 ac_top_srcdir=$srcdir
1938 ac_abs_top_srcdir=$srcdir ;;
1939 *) # Relative name.
1940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1941 ac_top_srcdir=$ac_top_build_prefix$srcdir
1942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1943 esac
1944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1946 cd "$ac_dir" || { ac_status=$?; continue; }
1947 # Check for guested configure.
1948 if test -f "$ac_srcdir/configure.gnu"; then
1949 echo &&
1950 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1951 elif test -f "$ac_srcdir/configure"; then
1952 echo &&
1953 $SHELL "$ac_srcdir/configure" --help=recursive
1954 else
1955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1956 fi || ac_status=$?
1957 cd "$ac_pwd" || { ac_status=$?; break; }
1958 done
1961 test -n "$ac_init_help" && exit $ac_status
1962 if $ac_init_version; then
1963 cat <<\_ACEOF
1964 configure
1965 generated by GNU Autoconf 2.69
1967 Copyright (C) 2012 Free Software Foundation, Inc.
1968 This configure script is free software; the Free Software Foundation
1969 gives unlimited permission to copy, distribute and modify it.
1970 _ACEOF
1971 exit
1974 ## ------------------------ ##
1975 ## Autoconf initialization. ##
1976 ## ------------------------ ##
1978 # ac_fn_c_try_compile LINENO
1979 # --------------------------
1980 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_c_try_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext
1985 if { { ac_try="$ac_compile"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_compile") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_c_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest.$ac_objext; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=1
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_compile
2016 # ac_fn_cxx_try_compile LINENO
2017 # ----------------------------
2018 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_compile ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext
2023 if { { ac_try="$ac_compile"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_compile") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest.$ac_objext; then :
2042 ac_retval=0
2043 else
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 ac_retval=1
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_cxx_try_compile
2054 # ac_fn_cxx_try_cpp LINENO
2055 # ------------------------
2056 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_cpp ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_cpp conftest.$ac_ext"
2061 case "(($ac_try" in
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2068 ac_status=$?
2069 if test -s conftest.err; then
2070 grep -v '^ *+' conftest.err >conftest.er1
2071 cat conftest.er1 >&5
2072 mv -f conftest.er1 conftest.err
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } > conftest.i && {
2076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2078 }; then :
2079 ac_retval=0
2080 else
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 ac_retval=1
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2089 } # ac_fn_cxx_try_cpp
2091 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2092 # ---------------------------------------------------------
2093 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2094 # the include files in INCLUDES and setting the cache variable VAR
2095 # accordingly.
2096 ac_fn_cxx_check_header_mongrel ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if eval \${$3+:} false; then :
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 else
2109 # Is the header compilable?
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2111 $as_echo_n "checking $2 usability... " >&6; }
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_cxx_try_compile "$LINENO"; then :
2118 ac_header_compiler=yes
2119 else
2120 ac_header_compiler=no
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2124 $as_echo "$ac_header_compiler" >&6; }
2126 # Is the header present?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2128 $as_echo_n "checking $2 presence... " >&6; }
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_cxx_try_cpp "$LINENO"; then :
2134 ac_header_preproc=yes
2135 else
2136 ac_header_preproc=no
2138 rm -f conftest.err conftest.i conftest.$ac_ext
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2140 $as_echo "$ac_header_preproc" >&6; }
2142 # So? What about this header?
2143 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2144 yes:no: )
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2146 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2148 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 no:yes:* )
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2152 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2154 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2156 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2158 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2160 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 esac
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 eval "$3=\$ac_header_compiler"
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 } # ac_fn_cxx_check_header_mongrel
2178 # ac_fn_cxx_try_run LINENO
2179 # ------------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2182 ac_fn_cxx_try_run ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_link"
2186 case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2193 ac_status=$?
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2206 ac_retval=0
2207 else
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 ac_retval=$ac_status
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_cxx_try_run
2220 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2221 # ---------------------------------------------------------
2222 # Tests whether HEADER exists and can be compiled using the include files in
2223 # INCLUDES, setting the cache variable VAR accordingly.
2224 ac_fn_cxx_check_header_compile ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2235 #include <$2>
2236 _ACEOF
2237 if ac_fn_cxx_try_compile "$LINENO"; then :
2238 eval "$3=yes"
2239 else
2240 eval "$3=no"
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_cxx_check_header_compile
2251 # ac_fn_c_try_cpp LINENO
2252 # ----------------------
2253 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2254 ac_fn_c_try_cpp ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if { { ac_try="$ac_cpp conftest.$ac_ext"
2258 case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261 esac
2262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263 $as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2265 ac_status=$?
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } > conftest.i && {
2273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2274 test ! -s conftest.err
2275 }; then :
2276 ac_retval=0
2277 else
2278 $as_echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2281 ac_retval=1
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2286 } # ac_fn_c_try_cpp
2288 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2289 # ----------------------------------------------
2290 # Tries to find the compile-time value of EXPR in a program that includes
2291 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2292 # computed
2293 ac_fn_cxx_compute_int ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if test "$cross_compiling" = yes; then
2297 # Depending upon the size, compute the lo and hi bounds.
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 main ()
2304 static int test_array [1 - 2 * !(($2) >= 0)];
2305 test_array [0] = 0;
2306 return test_array [0];
2309 return 0;
2311 _ACEOF
2312 if ac_fn_cxx_try_compile "$LINENO"; then :
2313 ac_lo=0 ac_mid=0
2314 while :; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2319 main ()
2321 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 test_array [0] = 0;
2323 return test_array [0];
2326 return 0;
2328 _ACEOF
2329 if ac_fn_cxx_try_compile "$LINENO"; then :
2330 ac_hi=$ac_mid; break
2331 else
2332 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2333 if test $ac_lo -le $ac_mid; then
2334 ac_lo= ac_hi=
2335 break
2337 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2346 main ()
2348 static int test_array [1 - 2 * !(($2) < 0)];
2349 test_array [0] = 0;
2350 return test_array [0];
2353 return 0;
2355 _ACEOF
2356 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 ac_hi=-1 ac_mid=-1
2358 while :; do
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2370 return 0;
2372 _ACEOF
2373 if ac_fn_cxx_try_compile "$LINENO"; then :
2374 ac_lo=$ac_mid; break
2375 else
2376 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2377 if test $ac_mid -le $ac_hi; then
2378 ac_lo= ac_hi=
2379 break
2381 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 done
2385 else
2386 ac_lo= ac_hi=
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 # Binary search between lo and hi bounds.
2392 while test "x$ac_lo" != "x$ac_hi"; do
2393 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2398 main ()
2400 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 test_array [0] = 0;
2402 return test_array [0];
2405 return 0;
2407 _ACEOF
2408 if ac_fn_cxx_try_compile "$LINENO"; then :
2409 ac_hi=$ac_mid
2410 else
2411 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 case $ac_lo in #((
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 '') ac_retval=1 ;;
2418 esac
2419 else
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2425 #include <stdio.h>
2426 #include <stdlib.h>
2428 main ()
2431 FILE *f = fopen ("conftest.val", "w");
2432 if (! f)
2433 return 1;
2434 if (($2) < 0)
2436 long int i = longval ();
2437 if (i != ($2))
2438 return 1;
2439 fprintf (f, "%ld", i);
2441 else
2443 unsigned long int i = ulongval ();
2444 if (i != ($2))
2445 return 1;
2446 fprintf (f, "%lu", i);
2448 /* Do not output a trailing newline, as this causes \r\n confusion
2449 on some platforms. */
2450 return ferror (f) || fclose (f) != 0;
2453 return 0;
2455 _ACEOF
2456 if ac_fn_cxx_try_run "$LINENO"; then :
2457 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 else
2459 ac_retval=1
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462 conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 rm -f conftest.val
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467 as_fn_set_status $ac_retval
2469 } # ac_fn_cxx_compute_int
2471 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2472 # ---------------------------------------------
2473 # Tests whether TYPE exists after having included INCLUDES, setting cache
2474 # variable VAR accordingly.
2475 ac_fn_cxx_check_type ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if eval \${$3+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 eval "$3=no"
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2488 main ()
2490 if (sizeof ($2))
2491 return 0;
2493 return 0;
2495 _ACEOF
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2501 main ()
2503 if (sizeof (($2)))
2504 return 0;
2506 return 0;
2508 _ACEOF
2509 if ac_fn_cxx_try_compile "$LINENO"; then :
2511 else
2512 eval "$3=yes"
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 eval ac_res=\$$3
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520 $as_echo "$ac_res" >&6; }
2521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 } # ac_fn_cxx_check_type
2525 # ac_fn_c_find_intX_t LINENO BITS VAR
2526 # -----------------------------------
2527 # Finds a signed integer type with width BITS, setting cache variable VAR
2528 # accordingly.
2529 ac_fn_c_find_intX_t ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2533 $as_echo_n "checking for int$2_t... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 eval "$3=no"
2538 # Order is important - never check a type that is potentially smaller
2539 # than half of the expected target width.
2540 for ac_type in int$2_t 'int' 'long int' \
2541 'long long int' 'short int' 'signed char'; do
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 $ac_includes_default
2545 enum { N = $2 / 2 - 1 };
2547 main ()
2549 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2550 test_array [0] = 0;
2551 return test_array [0];
2554 return 0;
2556 _ACEOF
2557 if ac_fn_cxx_try_compile "$LINENO"; then :
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 $ac_includes_default
2561 enum { N = $2 / 2 - 1 };
2563 main ()
2565 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2566 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2567 test_array [0] = 0;
2568 return test_array [0];
2571 return 0;
2573 _ACEOF
2574 if ac_fn_cxx_try_compile "$LINENO"; then :
2576 else
2577 case $ac_type in #(
2578 int$2_t) :
2579 eval "$3=yes" ;; #(
2580 *) :
2581 eval "$3=\$ac_type" ;;
2582 esac
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 if eval test \"x\$"$3"\" = x"no"; then :
2589 else
2590 break
2592 done
2594 eval ac_res=\$$3
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599 } # ac_fn_c_find_intX_t
2601 # ac_fn_cxx_try_link LINENO
2602 # -------------------------
2603 # Try to link conftest.$ac_ext, and return whether this succeeded.
2604 ac_fn_cxx_try_link ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { { ac_try="$ac_link"
2609 case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2612 esac
2613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2614 $as_echo "$ac_try_echo"; } >&5
2615 (eval "$ac_link") 2>conftest.err
2616 ac_status=$?
2617 if test -s conftest.err; then
2618 grep -v '^ *+' conftest.err >conftest.er1
2619 cat conftest.er1 >&5
2620 mv -f conftest.er1 conftest.err
2622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2623 test $ac_status = 0; } && {
2624 test -z "$ac_cxx_werror_flag" ||
2625 test ! -s conftest.err
2626 } && test -s conftest$ac_exeext && {
2627 test "$cross_compiling" = yes ||
2628 test -x conftest$ac_exeext
2629 }; then :
2630 ac_retval=0
2631 else
2632 $as_echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 ac_retval=1
2637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2639 # interfere with the next link command; also delete a directory that is
2640 # left behind by Apple's compiler. We do this before executing the actions.
2641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643 as_fn_set_status $ac_retval
2645 } # ac_fn_cxx_try_link
2647 # ac_fn_c_find_uintX_t LINENO BITS VAR
2648 # ------------------------------------
2649 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2650 # accordingly.
2651 ac_fn_c_find_uintX_t ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2655 $as_echo_n "checking for uint$2_t... " >&6; }
2656 if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 eval "$3=no"
2660 # Order is important - never check a type that is potentially smaller
2661 # than half of the expected target width.
2662 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2663 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $ac_includes_default
2668 main ()
2670 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2671 test_array [0] = 0;
2672 return test_array [0];
2675 return 0;
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 case $ac_type in #(
2680 uint$2_t) :
2681 eval "$3=yes" ;; #(
2682 *) :
2683 eval "$3=\$ac_type" ;;
2684 esac
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 if eval test \"x\$"$3"\" = x"no"; then :
2689 else
2690 break
2692 done
2694 eval ac_res=\$$3
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699 } # ac_fn_c_find_uintX_t
2701 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2702 # ------------------------------------------------
2703 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2704 ac_fn_cxx_check_header_preproc ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 #include <$2>
2715 _ACEOF
2716 if ac_fn_cxx_try_cpp "$LINENO"; then :
2717 eval "$3=yes"
2718 else
2719 eval "$3=no"
2721 rm -f conftest.err conftest.i conftest.$ac_ext
2723 eval ac_res=\$$3
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 } # ac_fn_cxx_check_header_preproc
2730 # ac_fn_cxx_check_func LINENO FUNC VAR
2731 # ------------------------------------
2732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2733 ac_fn_cxx_check_func ()
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if eval \${$3+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2745 #define $2 innocuous_$2
2747 /* System header to define __stub macros and hopefully few prototypes,
2748 which can conflict with char $2 (); below.
2749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2750 <limits.h> exists even on freestanding compilers. */
2752 #ifdef __STDC__
2753 # include <limits.h>
2754 #else
2755 # include <assert.h>
2756 #endif
2758 #undef $2
2760 /* Override any GCC internal prototype to avoid an error.
2761 Use char because int might match the return type of a GCC
2762 builtin and then its argument prototype would still apply. */
2763 #ifdef __cplusplus
2764 extern "C"
2765 #endif
2766 char $2 ();
2767 /* The GNU C library defines this for functions which it implements
2768 to always fail with ENOSYS. Some functions are actually named
2769 something starting with __ and the normal name is an alias. */
2770 #if defined __stub_$2 || defined __stub___$2
2771 choke me
2772 #endif
2775 main ()
2777 return $2 ();
2779 return 0;
2781 _ACEOF
2782 if ac_fn_cxx_try_link "$LINENO"; then :
2783 eval "$3=yes"
2784 else
2785 eval "$3=no"
2787 rm -f core conftest.err conftest.$ac_objext \
2788 conftest$ac_exeext conftest.$ac_ext
2790 eval ac_res=\$$3
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795 } # ac_fn_cxx_check_func
2797 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2798 # -----------------------------------------------
2799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2800 # accordingly.
2801 ac_fn_cxx_check_decl ()
2803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804 as_decl_name=`echo $2|sed 's/ *(.*//'`
2805 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2807 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2808 if eval \${$3+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2815 main ()
2817 #ifndef $as_decl_name
2818 #ifdef __cplusplus
2819 (void) $as_decl_use;
2820 #else
2821 (void) $as_decl_name;
2822 #endif
2823 #endif
2826 return 0;
2828 _ACEOF
2829 if ac_fn_cxx_try_compile "$LINENO"; then :
2830 eval "$3=yes"
2831 else
2832 eval "$3=no"
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 eval ac_res=\$$3
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2838 $as_echo "$ac_res" >&6; }
2839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 } # ac_fn_cxx_check_decl
2843 # ac_fn_c_try_link LINENO
2844 # -----------------------
2845 # Try to link conftest.$ac_ext, and return whether this succeeded.
2846 ac_fn_c_try_link ()
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 rm -f conftest.$ac_objext conftest$ac_exeext
2850 if { { ac_try="$ac_link"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_link") 2>conftest.err
2858 ac_status=$?
2859 if test -s conftest.err; then
2860 grep -v '^ *+' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2862 mv -f conftest.er1 conftest.err
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; } && {
2866 test -z "$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 } && test -s conftest$ac_exeext && {
2869 test "$cross_compiling" = yes ||
2870 test -x conftest$ac_exeext
2871 }; then :
2872 ac_retval=0
2873 else
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 ac_retval=1
2879 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2880 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2881 # interfere with the next link command; also delete a directory that is
2882 # left behind by Apple's compiler. We do this before executing the actions.
2883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2885 as_fn_set_status $ac_retval
2887 } # ac_fn_c_try_link
2889 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2890 # ----------------------------------------------
2891 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2892 ac_fn_c_check_header_preproc ()
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896 $as_echo_n "checking for $2... " >&6; }
2897 if eval \${$3+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902 #include <$2>
2903 _ACEOF
2904 if ac_fn_c_try_cpp "$LINENO"; then :
2905 eval "$3=yes"
2906 else
2907 eval "$3=no"
2909 rm -f conftest.err conftest.i conftest.$ac_ext
2911 eval ac_res=\$$3
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_header_preproc
2918 # ac_fn_c_check_func LINENO FUNC VAR
2919 # ----------------------------------
2920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2921 ac_fn_c_check_func ()
2923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2925 $as_echo_n "checking for $2... " >&6; }
2926 if eval \${$3+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2933 #define $2 innocuous_$2
2935 /* System header to define __stub macros and hopefully few prototypes,
2936 which can conflict with char $2 (); below.
2937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 <limits.h> exists even on freestanding compilers. */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2946 #undef $2
2948 /* Override any GCC internal prototype to avoid an error.
2949 Use char because int might match the return type of a GCC
2950 builtin and then its argument prototype would still apply. */
2951 #ifdef __cplusplus
2952 extern "C"
2953 #endif
2954 char $2 ();
2955 /* The GNU C library defines this for functions which it implements
2956 to always fail with ENOSYS. Some functions are actually named
2957 something starting with __ and the normal name is an alias. */
2958 #if defined __stub_$2 || defined __stub___$2
2959 choke me
2960 #endif
2963 main ()
2965 return $2 ();
2967 return 0;
2969 _ACEOF
2970 if ac_fn_c_try_link "$LINENO"; then :
2971 eval "$3=yes"
2972 else
2973 eval "$3=no"
2975 rm -f core conftest.err conftest.$ac_objext \
2976 conftest$ac_exeext conftest.$ac_ext
2978 eval ac_res=\$$3
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2980 $as_echo "$ac_res" >&6; }
2981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983 } # ac_fn_c_check_func
2984 cat >config.log <<_ACEOF
2985 This file contains any messages produced by compilers while
2986 running configure, to aid debugging if configure makes a mistake.
2988 It was created by $as_me, which was
2989 generated by GNU Autoconf 2.69. Invocation command line was
2991 $ $0 $@
2993 _ACEOF
2994 exec 5>>config.log
2996 cat <<_ASUNAME
2997 ## --------- ##
2998 ## Platform. ##
2999 ## --------- ##
3001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3018 _ASUNAME
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 $as_echo "PATH: $as_dir"
3026 done
3027 IFS=$as_save_IFS
3029 } >&5
3031 cat >&5 <<_ACEOF
3034 ## ----------- ##
3035 ## Core tests. ##
3036 ## ----------- ##
3038 _ACEOF
3041 # Keep a trace of the command line.
3042 # Strip out --no-create and --no-recursion so they do not pile up.
3043 # Strip out --silent because we don't want to record it for future runs.
3044 # Also quote any args containing shell meta-characters.
3045 # Make two passes to allow for proper duplicate-argument suppression.
3046 ac_configure_args=
3047 ac_configure_args0=
3048 ac_configure_args1=
3049 ac_must_keep_next=false
3050 for ac_pass in 1 2
3052 for ac_arg
3054 case $ac_arg in
3055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3057 | -silent | --silent | --silen | --sile | --sil)
3058 continue ;;
3059 *\'*)
3060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3061 esac
3062 case $ac_pass in
3063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3065 as_fn_append ac_configure_args1 " '$ac_arg'"
3066 if test $ac_must_keep_next = true; then
3067 ac_must_keep_next=false # Got value, back to normal.
3068 else
3069 case $ac_arg in
3070 *=* | --config-cache | -C | -disable-* | --disable-* \
3071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3073 | -with-* | --with-* | -without-* | --without-* | --x)
3074 case "$ac_configure_args0 " in
3075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3076 esac
3078 -* ) ac_must_keep_next=true ;;
3079 esac
3081 as_fn_append ac_configure_args " '$ac_arg'"
3083 esac
3084 done
3085 done
3086 { ac_configure_args0=; unset ac_configure_args0;}
3087 { ac_configure_args1=; unset ac_configure_args1;}
3089 # When interrupted or exit'd, cleanup temporary files, and complete
3090 # config.log. We remove comments because anyway the quotes in there
3091 # would cause problems or look ugly.
3092 # WARNING: Use '\'' to represent an apostrophe within the trap.
3093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3094 trap 'exit_status=$?
3095 # Save into config.log some information that might help in debugging.
3097 echo
3099 $as_echo "## ---------------- ##
3100 ## Cache variables. ##
3101 ## ---------------- ##"
3102 echo
3103 # The following way of writing the cache mishandles newlines in values,
3105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3106 eval ac_val=\$$ac_var
3107 case $ac_val in #(
3108 *${as_nl}*)
3109 case $ac_var in #(
3110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3112 esac
3113 case $ac_var in #(
3114 _ | IFS | as_nl) ;; #(
3115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3116 *) { eval $ac_var=; unset $ac_var;} ;;
3117 esac ;;
3118 esac
3119 done
3120 (set) 2>&1 |
3121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3122 *${as_nl}ac_space=\ *)
3123 sed -n \
3124 "s/'\''/'\''\\\\'\'''\''/g;
3125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3126 ;; #(
3128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3130 esac |
3131 sort
3133 echo
3135 $as_echo "## ----------------- ##
3136 ## Output variables. ##
3137 ## ----------------- ##"
3138 echo
3139 for ac_var in $ac_subst_vars
3141 eval ac_val=\$$ac_var
3142 case $ac_val in
3143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3144 esac
3145 $as_echo "$ac_var='\''$ac_val'\''"
3146 done | sort
3147 echo
3149 if test -n "$ac_subst_files"; then
3150 $as_echo "## ------------------- ##
3151 ## File substitutions. ##
3152 ## ------------------- ##"
3153 echo
3154 for ac_var in $ac_subst_files
3156 eval ac_val=\$$ac_var
3157 case $ac_val in
3158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3159 esac
3160 $as_echo "$ac_var='\''$ac_val'\''"
3161 done | sort
3162 echo
3165 if test -s confdefs.h; then
3166 $as_echo "## ----------- ##
3167 ## confdefs.h. ##
3168 ## ----------- ##"
3169 echo
3170 cat confdefs.h
3171 echo
3173 test "$ac_signal" != 0 &&
3174 $as_echo "$as_me: caught signal $ac_signal"
3175 $as_echo "$as_me: exit $exit_status"
3176 } >&5
3177 rm -f core *.core core.conftest.* &&
3178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3179 exit $exit_status
3181 for ac_signal in 1 2 13 15; do
3182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3183 done
3184 ac_signal=0
3186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3187 rm -f -r conftest* confdefs.h
3189 $as_echo "/* confdefs.h */" > confdefs.h
3191 # Predefined preprocessor variables.
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_NAME "$PACKAGE_NAME"
3195 _ACEOF
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3199 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3203 _ACEOF
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_STRING "$PACKAGE_STRING"
3207 _ACEOF
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3211 _ACEOF
3213 cat >>confdefs.h <<_ACEOF
3214 #define PACKAGE_URL "$PACKAGE_URL"
3215 _ACEOF
3218 # Let the site file select an alternate cache file if it wants to.
3219 # Prefer an explicitly selected file to automatically selected ones.
3220 ac_site_file1=NONE
3221 ac_site_file2=NONE
3222 if test -n "$CONFIG_SITE"; then
3223 # We do not want a PATH search for config.site.
3224 case $CONFIG_SITE in #((
3225 -*) ac_site_file1=./$CONFIG_SITE;;
3226 */*) ac_site_file1=$CONFIG_SITE;;
3227 *) ac_site_file1=./$CONFIG_SITE;;
3228 esac
3229 elif test "x$prefix" != xNONE; then
3230 ac_site_file1=$prefix/share/config.site
3231 ac_site_file2=$prefix/etc/config.site
3232 else
3233 ac_site_file1=$ac_default_prefix/share/config.site
3234 ac_site_file2=$ac_default_prefix/etc/config.site
3236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3238 test "x$ac_site_file" = xNONE && continue
3239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3242 sed 's/^/| /' "$ac_site_file" >&5
3243 . "$ac_site_file" \
3244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "failed to load site script $ac_site_file
3247 See \`config.log' for more details" "$LINENO" 5; }
3249 done
3251 if test -r "$cache_file"; then
3252 # Some versions of bash will fail to source /dev/null (special files
3253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3256 $as_echo "$as_me: loading cache $cache_file" >&6;}
3257 case $cache_file in
3258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3259 *) . "./$cache_file";;
3260 esac
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3264 $as_echo "$as_me: creating cache $cache_file" >&6;}
3265 >$cache_file
3268 # Check that the precious variables saved in the cache have kept the same
3269 # value.
3270 ac_cache_corrupted=false
3271 for ac_var in $ac_precious_vars; do
3272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3273 eval ac_new_set=\$ac_env_${ac_var}_set
3274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3275 eval ac_new_val=\$ac_env_${ac_var}_value
3276 case $ac_old_set,$ac_new_set in
3277 set,)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,set)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3284 ac_cache_corrupted=: ;;
3285 ,);;
3287 if test "x$ac_old_val" != "x$ac_new_val"; then
3288 # differences in whitespace do not lead to failure.
3289 ac_old_val_w=`echo x $ac_old_val`
3290 ac_new_val_w=`echo x $ac_new_val`
3291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3294 ac_cache_corrupted=:
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3298 eval $ac_var=\$ac_old_val
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3304 fi;;
3305 esac
3306 # Pass precious variables to config.status.
3307 if test "$ac_new_set" = set; then
3308 case $ac_new_val in
3309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3310 *) ac_arg=$ac_var=$ac_new_val ;;
3311 esac
3312 case " $ac_configure_args " in
3313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3315 esac
3317 done
3318 if $ac_cache_corrupted; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3325 ## -------------------- ##
3326 ## Main body of script. ##
3327 ## -------------------- ##
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3344 gcc_version=`cat $srcdir/BASE-VER`
3346 # Determine the host, build, and target systems
3347 ac_aux_dir=
3348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3349 if test -f "$ac_dir/install-sh"; then
3350 ac_aux_dir=$ac_dir
3351 ac_install_sh="$ac_aux_dir/install-sh -c"
3352 break
3353 elif test -f "$ac_dir/install.sh"; then
3354 ac_aux_dir=$ac_dir
3355 ac_install_sh="$ac_aux_dir/install.sh -c"
3356 break
3357 elif test -f "$ac_dir/shtool"; then
3358 ac_aux_dir=$ac_dir
3359 ac_install_sh="$ac_aux_dir/shtool install -c"
3360 break
3362 done
3363 if test -z "$ac_aux_dir"; then
3364 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3367 # These three variables are undocumented and unsupported,
3368 # and are intended to be withdrawn in a future Autoconf release.
3369 # They can cause serious problems if a builder's source tree is in a directory
3370 # whose full name contains unusual characters.
3371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3376 # Make sure we can run config.sub.
3377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3378 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3381 $as_echo_n "checking build system type... " >&6; }
3382 if ${ac_cv_build+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 ac_build_alias=$build_alias
3386 test "x$ac_build_alias" = x &&
3387 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3388 test "x$ac_build_alias" = x &&
3389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3395 $as_echo "$ac_cv_build" >&6; }
3396 case $ac_cv_build in
3397 *-*-*) ;;
3398 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3399 esac
3400 build=$ac_cv_build
3401 ac_save_IFS=$IFS; IFS='-'
3402 set x $ac_cv_build
3403 shift
3404 build_cpu=$1
3405 build_vendor=$2
3406 shift; shift
3407 # Remember, the first character of IFS is used to create $*,
3408 # except with old shells:
3409 build_os=$*
3410 IFS=$ac_save_IFS
3411 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3415 $as_echo_n "checking host system type... " >&6; }
3416 if ${ac_cv_host+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test "x$host_alias" = x; then
3420 ac_cv_host=$ac_cv_build
3421 else
3422 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3428 $as_echo "$ac_cv_host" >&6; }
3429 case $ac_cv_host in
3430 *-*-*) ;;
3431 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3432 esac
3433 host=$ac_cv_host
3434 ac_save_IFS=$IFS; IFS='-'
3435 set x $ac_cv_host
3436 shift
3437 host_cpu=$1
3438 host_vendor=$2
3439 shift; shift
3440 # Remember, the first character of IFS is used to create $*,
3441 # except with old shells:
3442 host_os=$*
3443 IFS=$ac_save_IFS
3444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3448 $as_echo_n "checking target system type... " >&6; }
3449 if ${ac_cv_target+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if test "x$target_alias" = x; then
3453 ac_cv_target=$ac_cv_host
3454 else
3455 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3461 $as_echo "$ac_cv_target" >&6; }
3462 case $ac_cv_target in
3463 *-*-*) ;;
3464 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3465 esac
3466 target=$ac_cv_target
3467 ac_save_IFS=$IFS; IFS='-'
3468 set x $ac_cv_target
3469 shift
3470 target_cpu=$1
3471 target_vendor=$2
3472 shift; shift
3473 # Remember, the first character of IFS is used to create $*,
3474 # except with old shells:
3475 target_os=$*
3476 IFS=$ac_save_IFS
3477 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3480 # The aliases save the names the user supplied, while $host etc.
3481 # will get canonicalized.
3482 test -n "$target_alias" &&
3483 test "$program_prefix$program_suffix$program_transform_name" = \
3484 NONENONEs,x,x, &&
3485 program_prefix=${target_alias}-
3487 # Determine the noncanonical host name, for Ada.
3488 case ${build_alias} in
3489 "") build_noncanonical=${build} ;;
3490 *) build_noncanonical=${build_alias} ;;
3491 esac
3493 case ${host_alias} in
3494 "") host_noncanonical=${build_noncanonical} ;;
3495 *) host_noncanonical=${host_alias} ;;
3496 esac
3501 # Determine the noncanonical target name, for directory use.
3502 case ${target_alias} in
3503 "") target_noncanonical=${host_noncanonical} ;;
3504 *) target_noncanonical=${target_alias} ;;
3505 esac
3510 # Used for constructing correct paths for offload compilers.
3511 real_target_noncanonical=${target_noncanonical}
3512 accel_dir_suffix=
3514 # Determine the target- and build-specific subdirectories
3516 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3517 # have matching libraries, they should use host libraries: Makefile.tpl
3518 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3519 # However, they still use the build modules, because the corresponding
3520 # host modules (e.g. bison) are only built for the host when bootstrap
3521 # finishes. So:
3522 # - build_subdir is where we find build modules, and never changes.
3523 # - build_libsubdir is where we find build libraries, and can be overridden.
3525 # Prefix 'build-' so this never conflicts with target_subdir.
3526 build_subdir="build-${build_noncanonical}"
3528 # Check whether --with-build-libsubdir was given.
3529 if test "${with_build_libsubdir+set}" = set; then :
3530 withval=$with_build_libsubdir; build_libsubdir="$withval"
3531 else
3532 build_libsubdir="$build_subdir"
3535 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3536 if ( test $srcdir = . && test -d gcc ) \
3537 || test -d $srcdir/../host-${host_noncanonical}; then
3538 host_subdir="host-${host_noncanonical}"
3539 else
3540 host_subdir=.
3542 # No prefix.
3543 target_subdir=${target_noncanonical}
3546 # Set program_transform_name
3547 test "$program_prefix" != NONE &&
3548 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3549 # Use a double $ so make ignores it.
3550 test "$program_suffix" != NONE &&
3551 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3552 # Double any \ or $.
3553 # By default was `s,x,x', remove it if useless.
3554 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3555 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3558 # Check for bogus environment variables.
3559 # Test if LIBRARY_PATH contains the notation for the current directory
3560 # since this would lead to problems installing/building glibc.
3561 # LIBRARY_PATH contains the current directory if one of the following
3562 # is true:
3563 # - one of the terminals (":" and ";") is the first or last sign
3564 # - two terminals occur directly after each other
3565 # - the path contains an element with a dot in it
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3567 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3568 case ${LIBRARY_PATH} in
3569 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3570 library_path_setting="contains current directory"
3573 library_path_setting="ok"
3575 esac
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3577 $as_echo "$library_path_setting" >&6; }
3578 if test "$library_path_setting" != "ok"; then
3579 as_fn_error $? "
3580 *** LIBRARY_PATH shouldn't contain the current directory when
3581 *** building gcc. Please change the environment variable
3582 *** and run configure again." "$LINENO" 5
3585 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3586 # since this would lead to problems installing/building glibc.
3587 # GCC_EXEC_PREFIX contains the current directory if one of the following
3588 # is true:
3589 # - one of the terminals (":" and ";") is the first or last sign
3590 # - two terminals occur directly after each other
3591 # - the path contains an element with a dot in it
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3593 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3594 case ${GCC_EXEC_PREFIX} in
3595 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3596 gcc_exec_prefix_setting="contains current directory"
3599 gcc_exec_prefix_setting="ok"
3601 esac
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3603 $as_echo "$gcc_exec_prefix_setting" >&6; }
3604 if test "$gcc_exec_prefix_setting" != "ok"; then
3605 as_fn_error $? "
3606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3607 *** building gcc. Please change the environment variable
3608 *** and run configure again." "$LINENO" 5
3611 # -----------
3612 # Directories
3613 # -----------
3615 # Specify the local prefix
3616 local_prefix=
3618 # Check whether --with-local-prefix was given.
3619 if test "${with_local_prefix+set}" = set; then :
3620 withval=$with_local_prefix; case "${withval}" in
3621 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3622 no) ;;
3623 *) local_prefix=$with_local_prefix ;;
3624 esac
3628 # Default local prefix if it is empty
3629 if test x$local_prefix = x; then
3630 local_prefix=/usr/local
3634 # Check whether --with-native-system-header-dir was given.
3635 if test "${with_native_system_header_dir+set}" = set; then :
3636 withval=$with_native_system_header_dir;
3637 case ${with_native_system_header_dir} in
3638 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3639 /* | [A-Za-z]:[\\/]*) ;;
3640 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3641 esac
3642 configured_native_system_header_dir="${withval}"
3644 else
3645 configured_native_system_header_dir=
3650 # Check whether --with-build-sysroot was given.
3651 if test "${with_build_sysroot+set}" = set; then :
3652 withval=$with_build_sysroot; if test x"$withval" != x ; then
3653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3655 else
3656 SYSROOT_CFLAGS_FOR_TARGET=
3661 if test "x$prefix" = xNONE; then
3662 test_prefix=/usr/local
3663 else
3664 test_prefix=$prefix
3666 if test "x$exec_prefix" = xNONE; then
3667 test_exec_prefix=$test_prefix
3668 else
3669 test_exec_prefix=$exec_prefix
3673 # Check whether --with-sysroot was given.
3674 if test "${with_sysroot+set}" = set; then :
3675 withval=$with_sysroot;
3676 case ${with_sysroot} in
3677 /) ;;
3678 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3679 esac
3680 case ${with_sysroot} in
3681 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3682 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3683 esac
3685 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3686 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3688 case ${TARGET_SYSTEM_ROOT} in
3689 "${test_prefix}"|"${test_prefix}/"*|\
3690 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3691 '${prefix}'|'${prefix}/'*|\
3692 '${exec_prefix}'|'${exec_prefix}/'*)
3693 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3694 TARGET_SYSTEM_ROOT_DEFINE="$t"
3696 esac
3698 else
3700 TARGET_SYSTEM_ROOT=
3701 TARGET_SYSTEM_ROOT_DEFINE=
3702 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3710 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3711 # passed in by the toplevel make and thus we'd get different behavior
3712 # depending on where we built the sources.
3713 gcc_gxx_include_dir=
3714 # Specify the g++ header file directory
3716 # Check whether --with-gxx-include-dir was given.
3717 if test "${with_gxx_include_dir+set}" = set; then :
3718 withval=$with_gxx_include_dir; case "${withval}" in
3719 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3720 no) ;;
3721 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3722 esac
3726 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3727 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3728 # relative to the sysroot.
3729 gcc_gxx_include_dir_add_sysroot=0
3731 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3732 if test x${gcc_gxx_include_dir} = x; then
3733 if test x${enable_version_specific_runtime_libs} = xyes; then
3734 gcc_gxx_include_dir='${libsubdir}/include/c++'
3735 else
3736 libstdcxx_incdir='include/c++/$(version)'
3737 if test x$host != x$target; then
3738 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3740 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3742 elif test "${with_sysroot+set}" = set; then
3743 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3744 if test "${gcc_gxx_without_sysroot}"; then
3745 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3746 gcc_gxx_include_dir_add_sysroot=1
3750 # Configuration for an alternate set of C++ headers.
3751 gcc_gxx_libcxx_include_dir=
3752 # Specify the alternate g++ header file directory
3754 # Check whether --with-gxx-libcxx-include-dir was given.
3755 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3756 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3757 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3758 no) ;;
3759 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3760 esac
3764 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3765 # check to see if the latter starts with the former and, upon success, compute
3766 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3767 gcc_gxx_libcxx_include_dir_add_sysroot=0
3769 if test x${gcc_gxx_libcxx_include_dir} != x; then
3771 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3773 else
3774 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3777 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3778 if test x${gcc_gxx_libcxx_include_dir} = x; then
3779 if test x${enable_version_specific_runtime_libs} = xyes; then
3780 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3781 else
3782 libcxx_incdir='libc++_include/c++/$(version)/v1'
3783 if test x$host != x$target; then
3784 libcxx_incdir="$target_alias/$libcxx_incdir"
3786 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3788 elif test "${with_sysroot+set}" = set; then
3789 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3790 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3791 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3792 gcc_gxx_libcxx_include_dir_add_sysroot=1
3797 # Check whether --with-cpp_install_dir was given.
3798 if test "${with_cpp_install_dir+set}" = set; then :
3799 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3800 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3801 elif test x$withval != xno; then
3802 cpp_install_dir=$withval
3807 # We would like to our source tree to be readonly. However when releases or
3808 # pre-releases are generated, the flex/bison generated files as well as the
3809 # various formats of manuals need to be included along with the rest of the
3810 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3811 # just that.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3814 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3815 # Check whether --enable-generated-files-in-srcdir was given.
3816 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3817 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3818 else
3819 generated_files_in_srcdir=no
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3824 $as_echo "$generated_files_in_srcdir" >&6; }
3826 if test "$generated_files_in_srcdir" = "yes"; then
3827 GENINSRC=''
3828 else
3829 GENINSRC='#'
3833 # -------------------
3834 # Find default linker
3835 # -------------------
3837 # With GNU ld
3839 # Check whether --with-gnu-ld was given.
3840 if test "${with_gnu_ld+set}" = set; then :
3841 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3842 else
3843 gnu_ld_flag=no
3847 case $target in
3848 *darwin*)
3849 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3850 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3853 ld64_flag=no
3854 dsymutil_flag=no
3856 esac
3858 # With pre-defined ld
3860 # Check whether --with-ld was given.
3861 if test "${with_ld+set}" = set; then :
3862 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3865 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3866 if test ! -x "$DEFAULT_LINKER"; then
3867 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3868 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3869 gnu_ld_flag=yes
3870 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3871 ld64_flag=yes
3874 cat >>confdefs.h <<_ACEOF
3875 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3876 _ACEOF
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3881 $as_echo_n "checking whether a default linker was specified... " >&6; }
3882 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3883 if test x"$gnu_ld_flag" = x"no"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3885 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3888 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3890 else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3895 # With demangler in GNU ld
3897 # Check whether --with-demangler-in-ld was given.
3898 if test "${with_demangler_in_ld+set}" = set; then :
3899 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3900 else
3901 demangler_in_ld=yes
3905 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3907 # Check whether --with-dsymutil was given.
3908 if test "${with_dsymutil+set}" = set; then :
3909 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3913 dsymutil_vers=
3914 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3915 if test ! -x "$DEFAULT_DSYMUTIL"; then
3916 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3917 else
3918 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3919 dsymutil_flag=yes
3923 cat >>confdefs.h <<_ACEOF
3924 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3925 _ACEOF
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3930 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3931 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3933 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3939 # ----------------------
3940 # Find default assembler
3941 # ----------------------
3943 # With GNU as
3945 # Check whether --with-gnu-as was given.
3946 if test "${with_gnu_as+set}" = set; then :
3947 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3948 else
3949 gas_flag=no
3954 # Check whether --with-as was given.
3955 if test "${with_as+set}" = set; then :
3956 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3959 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3960 if test ! -x "$DEFAULT_ASSEMBLER"; then
3961 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3962 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3963 gas_flag=yes
3966 cat >>confdefs.h <<_ACEOF
3967 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3968 _ACEOF
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3973 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3974 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3975 if test x"$gas_flag" = x"no"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3977 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3980 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3987 # ---------------
3988 # Find C compiler
3989 # ---------------
3991 # If a non-executable a.out is present (e.g. created by GNU as above even if
3992 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3993 # file, even when creating an executable, so an execution test fails.
3994 # Remove possible default executable files to avoid this.
3996 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3997 # Autoconf includes it.
3998 rm -f a.out a.exe b.out
4000 # Find the native compiler
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4028 done
4029 done
4030 IFS=$as_save_IFS
4034 CC=$ac_cv_prog_CC
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_CC"; then
4046 ac_ct_CC=$CC
4047 # Extract the first word of "gcc", so it can be a program name with args.
4048 set dummy gcc; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_CC="gcc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4068 done
4069 done
4070 IFS=$as_save_IFS
4074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_CC" = x; then
4084 CC=""
4085 else
4086 case $cross_compiling:$ac_tool_warned in
4087 yes:)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4091 esac
4092 CC=$ac_ct_CC
4094 else
4095 CC="$ac_cv_prog_CC"
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}cc; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if ${ac_cv_prog_CC+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -n "$CC"; then
4108 ac_cv_prog_CC="$CC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_CC="${ac_tool_prefix}cc"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4123 IFS=$as_save_IFS
4127 CC=$ac_cv_prog_CC
4128 if test -n "$CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 $as_echo "$CC" >&6; }
4131 else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4139 if test -z "$CC"; then
4140 # Extract the first word of "cc", so it can be a program name with args.
4141 set dummy cc; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_CC+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 else
4150 ac_prog_rejected=no
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159 ac_prog_rejected=yes
4160 continue
4162 ac_cv_prog_CC="cc"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4170 if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy $ac_cv_prog_CC
4173 shift
4174 if test $# != 0; then
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4178 shift
4179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4195 if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 for ac_prog in cl.exe
4199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_CC+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC="$CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 CC=$ac_cv_prog_CC
4227 if test -n "$CC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229 $as_echo "$CC" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$CC" && break
4237 done
4239 if test -z "$CC"; then
4240 ac_ct_CC=$CC
4241 for ac_prog in cl.exe
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy $ac_prog; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_CC="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271 if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273 $as_echo "$ac_ct_CC" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$ac_ct_CC" && break
4281 done
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 CC=$ac_ct_CC
4299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $? "no acceptable C compiler found in \$PATH
4302 See \`config.log' for more details" "$LINENO" 5; }
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4306 set X $ac_compile
4307 ac_compiler=$2
4308 for ac_option in --version -v -V -qversion; do
4309 { { ac_try="$ac_compiler $ac_option >&5"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317 ac_status=$?
4318 if test -s conftest.err; then
4319 sed '10a\
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4324 rm -f conftest.er1 conftest.err
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4327 done
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4333 main ()
4337 return 0;
4339 _ACEOF
4340 ac_clean_files_save=$ac_clean_files
4341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4342 # Try to create an executable without -o first, disregard a.out.
4343 # It will help us diagnose broken compilers, and finding out an intuition
4344 # of exeext.
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4346 $as_echo_n "checking whether the C compiler works... " >&6; }
4347 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4349 # The possible output files:
4350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4352 ac_rmfiles=
4353 for ac_file in $ac_files
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4358 esac
4359 done
4360 rm -f $ac_rmfiles
4362 if { { ac_try="$ac_link_default"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_link_default") 2>&5
4370 ac_status=$?
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4376 # so that the user can short-circuit this test for compilers unknown to
4377 # Autoconf.
4378 for ac_file in $ac_files ''
4380 test -f "$ac_file" || continue
4381 case $ac_file in
4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4384 [ab].out )
4385 # We found the default executable, but exeext='' is most
4386 # certainly right.
4387 break;;
4388 *.* )
4389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4390 then :; else
4391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4393 # We set ac_cv_exeext here because the later test for it is not
4394 # safe: cross compilers may not add the suffix if given an `-o'
4395 # argument, so we may need to know it at that point already.
4396 # Even if this section looks crufty: it has the advantage of
4397 # actually working.
4398 break;;
4400 break;;
4401 esac
4402 done
4403 test "$ac_cv_exeext" = no && ac_cv_exeext=
4405 else
4406 ac_file=''
4408 if test -z "$ac_file"; then :
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error 77 "C compiler cannot create executables
4417 See \`config.log' for more details" "$LINENO" 5; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 $as_echo "yes" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4423 $as_echo_n "checking for C compiler default output file name... " >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4425 $as_echo "$ac_file" >&6; }
4426 ac_exeext=$ac_cv_exeext
4428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4429 ac_clean_files=$ac_clean_files_save
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4431 $as_echo_n "checking for suffix of executables... " >&6; }
4432 if { { ac_try="$ac_link"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_link") 2>&5
4440 ac_status=$?
4441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }; then :
4443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4445 # work properly (i.e., refer to `conftest.exe'), while it won't with
4446 # `rm'.
4447 for ac_file in conftest.exe conftest conftest.*; do
4448 test -f "$ac_file" || continue
4449 case $ac_file in
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 break;;
4453 * ) break;;
4454 esac
4455 done
4456 else
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4460 See \`config.log' for more details" "$LINENO" 5; }
4462 rm -f conftest conftest$ac_cv_exeext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4464 $as_echo "$ac_cv_exeext" >&6; }
4466 rm -f conftest.$ac_ext
4467 EXEEXT=$ac_cv_exeext
4468 ac_exeext=$EXEEXT
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <stdio.h>
4473 main ()
4475 FILE *f = fopen ("conftest.out", "w");
4476 return ferror (f) || fclose (f) != 0;
4479 return 0;
4481 _ACEOF
4482 ac_clean_files="$ac_clean_files conftest.out"
4483 # Check that the compiler produces executables we can run. If not, either
4484 # the compiler is broken, or we cross compile.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4486 $as_echo_n "checking whether we are cross compiling... " >&6; }
4487 if test "$cross_compiling" != yes; then
4488 { { ac_try="$ac_link"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_link") 2>&5
4496 ac_status=$?
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4499 if { ac_try='./conftest$ac_cv_exeext'
4500 { { case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_try") 2>&5
4507 ac_status=$?
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }; }; then
4510 cross_compiling=no
4511 else
4512 if test "$cross_compiling" = maybe; then
4513 cross_compiling=yes
4514 else
4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $? "cannot run C compiled programs.
4518 If you meant to cross compile, use \`--host'.
4519 See \`config.log' for more details" "$LINENO" 5; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4524 $as_echo "$cross_compiling" >&6; }
4526 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4527 ac_clean_files=$ac_clean_files_save
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4529 $as_echo_n "checking for suffix of object files... " >&6; }
4530 if ${ac_cv_objext+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.o conftest.obj
4545 if { { ac_try="$ac_compile"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_compile") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
4556 for ac_file in conftest.o conftest.obj conftest.*; do
4557 test -f "$ac_file" || continue;
4558 case $ac_file in
4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4561 break;;
4562 esac
4563 done
4564 else
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details" "$LINENO" 5; }
4573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4576 $as_echo "$ac_cv_objext" >&6; }
4577 OBJEXT=$ac_cv_objext
4578 ac_objext=$OBJEXT
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4581 if ${ac_cv_c_compiler_gnu+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4590 #ifndef __GNUC__
4591 choke me
4592 #endif
4595 return 0;
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_compiler_gnu=yes
4600 else
4601 ac_compiler_gnu=no
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4609 if test $ac_compiler_gnu = yes; then
4610 GCC=yes
4611 else
4612 GCC=
4614 ac_test_CFLAGS=${CFLAGS+set}
4615 ac_save_CFLAGS=$CFLAGS
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4618 if ${ac_cv_prog_cc_g+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 ac_save_c_werror_flag=$ac_c_werror_flag
4622 ac_c_werror_flag=yes
4623 ac_cv_prog_cc_g=no
4624 CFLAGS="-g"
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4629 main ()
4633 return 0;
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_prog_cc_g=yes
4638 else
4639 CFLAGS=""
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main ()
4648 return 0;
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4653 else
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4655 CFLAGS="-g"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4660 main ()
4664 return 0;
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_cv_prog_cc_g=yes
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4678 $as_echo "$ac_cv_prog_cc_g" >&6; }
4679 if test "$ac_test_CFLAGS" = set; then
4680 CFLAGS=$ac_save_CFLAGS
4681 elif test $ac_cv_prog_cc_g = yes; then
4682 if test "$GCC" = yes; then
4683 CFLAGS="-g -O2"
4684 else
4685 CFLAGS="-g"
4687 else
4688 if test "$GCC" = yes; then
4689 CFLAGS="-O2"
4690 else
4691 CFLAGS=
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4696 if ${ac_cv_prog_cc_c89+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_cv_prog_cc_c89=no
4700 ac_save_CC=$CC
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <stdarg.h>
4704 #include <stdio.h>
4705 struct stat;
4706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4707 struct buf { int x; };
4708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4709 static char *e (p, i)
4710 char **p;
4711 int i;
4713 return p[i];
4715 static char *f (char * (*g) (char **, int), char **p, ...)
4717 char *s;
4718 va_list v;
4719 va_start (v,p);
4720 s = g (p, va_arg (v,int));
4721 va_end (v);
4722 return s;
4725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4726 function prototypes and stuff, but not '\xHH' hex character constants.
4727 These don't provoke an error unfortunately, instead are silently treated
4728 as 'x'. The following induces an error, until -std is added to get
4729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4730 array size at least. It's necessary to write '\x00'==0 to get something
4731 that's true only with -std. */
4732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4735 inside strings and character constants. */
4736 #define FOO(x) 'x'
4737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739 int test (int i, double x);
4740 struct s1 {int (*f) (int a);};
4741 struct s2 {int (*f) (double a);};
4742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 int argc;
4744 char **argv;
4746 main ()
4748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4750 return 0;
4752 _ACEOF
4753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 CC="$ac_save_CC $ac_arg"
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_prog_cc_c89=$ac_arg
4760 rm -f core conftest.err conftest.$ac_objext
4761 test "x$ac_cv_prog_cc_c89" != "xno" && break
4762 done
4763 rm -f conftest.$ac_ext
4764 CC=$ac_save_CC
4767 # AC_CACHE_VAL
4768 case "x$ac_cv_prog_cc_c89" in
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4771 $as_echo "none needed" >&6; } ;;
4772 xno)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 $as_echo "unsupported" >&6; } ;;
4776 CC="$CC $ac_cv_prog_cc_c89"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4778 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4779 esac
4780 if test "x$ac_cv_prog_cc_c89" != xno; then :
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 ac_ext=cpp
4791 ac_cpp='$CXXCPP $CPPFLAGS'
4792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4795 if test -z "$CXX"; then
4796 if test -n "$CCC"; then
4797 CXX=$CCC
4798 else
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_CXX+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 CXX=$ac_cv_prog_CXX
4830 if test -n "$CXX"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4832 $as_echo "$CXX" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 test -n "$CXX" && break
4840 done
4842 if test -z "$CXX"; then
4843 ac_ct_CXX=$CXX
4844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4874 if test -n "$ac_ct_CXX"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4876 $as_echo "$ac_ct_CXX" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 test -n "$ac_ct_CXX" && break
4884 done
4886 if test "x$ac_ct_CXX" = x; then
4887 CXX="g++"
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 CXX=$ac_ct_CXX
4901 # Provide some information about the compiler.
4902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4903 set X $ac_compile
4904 ac_compiler=$2
4905 for ac_option in --version -v -V -qversion; do
4906 { { ac_try="$ac_compiler $ac_option >&5"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4912 $as_echo "$ac_try_echo"; } >&5
4913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4914 ac_status=$?
4915 if test -s conftest.err; then
4916 sed '10a\
4917 ... rest of stderr output deleted ...
4918 10q' conftest.err >conftest.er1
4919 cat conftest.er1 >&5
4921 rm -f conftest.er1 conftest.err
4922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923 test $ac_status = 0; }
4924 done
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4928 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4935 main ()
4937 #ifndef __GNUC__
4938 choke me
4939 #endif
4942 return 0;
4944 _ACEOF
4945 if ac_fn_cxx_try_compile "$LINENO"; then :
4946 ac_compiler_gnu=yes
4947 else
4948 ac_compiler_gnu=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4955 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4957 GXX=yes
4958 else
4959 GXX=
4961 ac_test_CXXFLAGS=${CXXFLAGS+set}
4962 ac_save_CXXFLAGS=$CXXFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4964 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4965 if ${ac_cv_prog_cxx_g+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4969 ac_cxx_werror_flag=yes
4970 ac_cv_prog_cxx_g=no
4971 CXXFLAGS="-g"
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4976 main ()
4980 return 0;
4982 _ACEOF
4983 if ac_fn_cxx_try_compile "$LINENO"; then :
4984 ac_cv_prog_cxx_g=yes
4985 else
4986 CXXFLAGS=""
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main ()
4995 return 0;
4997 _ACEOF
4998 if ac_fn_cxx_try_compile "$LINENO"; then :
5000 else
5001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5002 CXXFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main ()
5011 return 0;
5013 _ACEOF
5014 if ac_fn_cxx_try_compile "$LINENO"; then :
5015 ac_cv_prog_cxx_g=yes
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5025 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5026 if test "$ac_test_CXXFLAGS" = set; then
5027 CXXFLAGS=$ac_save_CXXFLAGS
5028 elif test $ac_cv_prog_cxx_g = yes; then
5029 if test "$GXX" = yes; then
5030 CXXFLAGS="-g -O2"
5031 else
5032 CXXFLAGS="-g"
5034 else
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-O2"
5037 else
5038 CXXFLAGS=
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050 if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5052 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_GNATBIND+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$GNATBIND"; then
5059 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 GNATBIND=$ac_cv_prog_GNATBIND
5079 if test -n "$GNATBIND"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5081 $as_echo "$GNATBIND" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5089 if test -z "$ac_cv_prog_GNATBIND"; then
5090 ac_ct_GNATBIND=$GNATBIND
5091 # Extract the first word of "gnatbind", so it can be a program name with args.
5092 set dummy gnatbind; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$ac_ct_GNATBIND"; then
5099 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5119 if test -n "$ac_ct_GNATBIND"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5121 $as_echo "$ac_ct_GNATBIND" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5127 if test "x$ac_ct_GNATBIND" = x; then
5128 GNATBIND="no"
5129 else
5130 case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned=yes ;;
5135 esac
5136 GNATBIND=$ac_ct_GNATBIND
5138 else
5139 GNATBIND="$ac_cv_prog_GNATBIND"
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_GNATMAKE+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$GNATMAKE"; then
5151 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 GNATMAKE=$ac_cv_prog_GNATMAKE
5171 if test -n "$GNATMAKE"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5173 $as_echo "$GNATMAKE" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_GNATMAKE"; then
5182 ac_ct_GNATMAKE=$GNATMAKE
5183 # Extract the first word of "gnatmake", so it can be a program name with args.
5184 set dummy gnatmake; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ac_ct_GNATMAKE"; then
5191 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5211 if test -n "$ac_ct_GNATMAKE"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5213 $as_echo "$ac_ct_GNATMAKE" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_GNATMAKE" = x; then
5220 GNATMAKE="no"
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228 GNATMAKE=$ac_ct_GNATMAKE
5230 else
5231 GNATMAKE="$ac_cv_prog_GNATMAKE"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5235 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5236 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 cat >conftest.adb <<EOF
5240 pragma Warnings (Off);
5241 with System.CRTL;
5242 pragma Warnings (On);
5243 use type System.CRTL.int64;
5244 procedure conftest is begin null; end conftest;
5246 acx_cv_cc_gcc_supports_ada=no
5247 # There is a bug in old released versions of GCC which causes the
5248 # driver to exit successfully when the appropriate language module
5249 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5250 # Therefore we must check for the error message as well as an
5251 # unsuccessful exit.
5252 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5253 # given a .adb file, but produce no object file. So we must check
5254 # if an object file was really produced to guard against this.
5255 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5256 if test x"$errors" = x && test -f conftest.$ac_objext; then
5257 acx_cv_cc_gcc_supports_ada=yes
5259 rm -f conftest.*
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5262 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5264 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5265 have_gnat=yes
5266 else
5267 have_gnat=no
5272 if test -n "$ac_tool_prefix"; then
5273 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5274 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_GDC+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$GDC"; then
5281 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 GDC=$ac_cv_prog_GDC
5301 if test -n "$GDC"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5303 $as_echo "$GDC" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5311 if test -z "$ac_cv_prog_GDC"; then
5312 ac_ct_GDC=$GDC
5313 # Extract the first word of "gdc", so it can be a program name with args.
5314 set dummy gdc; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$ac_ct_GDC"; then
5321 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_GDC="gdc"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5336 IFS=$as_save_IFS
5340 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5341 if test -n "$ac_ct_GDC"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5343 $as_echo "$ac_ct_GDC" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5349 if test "x$ac_ct_GDC" = x; then
5350 GDC="no"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 GDC=$ac_ct_GDC
5360 else
5361 GDC="$ac_cv_prog_GDC"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5365 $as_echo_n "checking whether the D compiler works... " >&6; }
5366 if ${acx_cv_d_compiler_works+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat >conftest.d <<EOF
5370 module conftest; int main() { return 0; }
5372 acx_cv_d_compiler_works=no
5373 if test "x$GDC" != xno; then
5374 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5375 if test x"$errors" = x && test -f conftest.$ac_objext; then
5376 acx_cv_d_compiler_works=yes
5378 rm -f conftest.*
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5382 $as_echo "$acx_cv_d_compiler_works" >&6; }
5383 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5384 have_gdc=yes
5385 else
5386 have_gdc=no
5390 # Do configure tests with the C++ compiler, since that's what we build with.
5391 ac_ext=cpp
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5398 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5399 # optimizations to be activated explicitly by the toplevel.
5400 case "$CC" in
5401 */prev-gcc/xgcc*) ;;
5402 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5403 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5404 esac
5409 # Determine PICFLAG for target gnatlib.
5414 case "${target}" in
5415 # PIC is the default on some targets or must not be used.
5416 *-*-darwin*)
5417 # For darwin, common symbols are not allowed in MH_DYLIB files
5418 case "${CFLAGS}" in
5419 # If we are using a compiler supporting mdynamic-no-pic
5420 # and the option has been tested as safe to add, then cancel
5421 # it here, since the code generated is incompatible with shared
5422 # libs.
5423 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5424 *) PICFLAG_FOR_TARGET=-fno-common ;;
5425 esac
5427 alpha*-dec-osf5*)
5428 # PIC is the default.
5430 hppa*64*-*-hpux*)
5431 # PIC is the default for 64-bit PA HP-UX.
5433 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5435 i[34567]86-*-mingw* | x86_64-*-mingw*)
5437 i[34567]86-*-interix[3-9]*)
5438 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5439 # Instead, we relocate shared libraries at runtime.
5441 i[34567]86-*-nto-qnx*)
5442 # QNX uses GNU C++, but need to define -shared option too, otherwise
5443 # it will coredump.
5444 PICFLAG_FOR_TARGET='-fPIC -shared'
5446 i[34567]86-pc-msdosdjgpp*)
5447 # DJGPP does not support shared libraries at all.
5449 ia64*-*-hpux*)
5450 # On IA64 HP-UX, PIC is the default but the pic flag
5451 # sets the default TLS model and affects inlining.
5452 PICFLAG_FOR_TARGET=-fPIC
5454 loongarch*-*-*)
5455 PICFLAG_FOR_TARGET=-fpic
5457 mips-sgi-irix6*)
5458 # PIC is the default.
5460 rs6000-ibm-aix* | powerpc-ibm-aix*)
5461 # All AIX code is PIC.
5464 # Some targets support both -fPIC and -fpic, but prefer the latter.
5465 # FIXME: Why?
5466 i[34567]86-*-* | x86_64-*-*)
5467 PICFLAG_FOR_TARGET=-fpic
5469 # FIXME: Override -fPIC default in libgcc only?
5470 sh-*-linux* | sh[2346lbe]*-*-linux*)
5471 PICFLAG_FOR_TARGET=-fpic
5473 # FIXME: Simplify to sh*-*-netbsd*?
5474 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5475 sh64-*-netbsd* | sh64l*-*-netbsd*)
5476 PICFLAG_FOR_TARGET=-fpic
5478 # Default to -fPIC unless specified otherwise.
5480 PICFLAG_FOR_TARGET=-fPIC
5482 esac
5484 # If the user explicitly uses -fpic/-fPIC, keep that.
5485 case "${CFLAGS_FOR_TARGET}" in
5486 *-fpic*)
5487 PICFLAG_FOR_TARGET=-fpic
5489 *-fPIC*)
5490 PICFLAG_FOR_TARGET=-fPIC
5492 esac
5496 # -------------------------
5497 # Check C compiler features
5498 # -------------------------
5501 ac_ext=cpp
5502 ac_cpp='$CXXCPP $CPPFLAGS'
5503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5507 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5508 if test -z "$CXXCPP"; then
5509 if ${ac_cv_prog_CXXCPP+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 # Double quotes because CXXCPP needs to be expanded
5513 for CXXCPP in "$CXX -E" "/lib/cpp"
5515 ac_preproc_ok=false
5516 for ac_cxx_preproc_warn_flag in '' yes
5518 # Use a header file that comes with gcc, so configuring glibc
5519 # with a fresh cross-compiler works.
5520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 # <limits.h> exists even on freestanding compilers.
5522 # On the NeXT, cc -E runs the code through the compiler's parser,
5523 # not just through cpp. "Syntax error" is here to catch this case.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #ifdef __STDC__
5527 # include <limits.h>
5528 #else
5529 # include <assert.h>
5530 #endif
5531 Syntax error
5532 _ACEOF
5533 if ac_fn_cxx_try_cpp "$LINENO"; then :
5535 else
5536 # Broken: fails on valid input.
5537 continue
5539 rm -f conftest.err conftest.i conftest.$ac_ext
5541 # OK, works on sane cases. Now check whether nonexistent headers
5542 # can be detected and how.
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <ac_nonexistent.h>
5546 _ACEOF
5547 if ac_fn_cxx_try_cpp "$LINENO"; then :
5548 # Broken: success on invalid input.
5549 continue
5550 else
5551 # Passes both tests.
5552 ac_preproc_ok=:
5553 break
5555 rm -f conftest.err conftest.i conftest.$ac_ext
5557 done
5558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5559 rm -f conftest.i conftest.err conftest.$ac_ext
5560 if $ac_preproc_ok; then :
5561 break
5564 done
5565 ac_cv_prog_CXXCPP=$CXXCPP
5568 CXXCPP=$ac_cv_prog_CXXCPP
5569 else
5570 ac_cv_prog_CXXCPP=$CXXCPP
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5573 $as_echo "$CXXCPP" >&6; }
5574 ac_preproc_ok=false
5575 for ac_cxx_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #ifdef __STDC__
5586 # include <limits.h>
5587 #else
5588 # include <assert.h>
5589 #endif
5590 Syntax error
5591 _ACEOF
5592 if ac_fn_cxx_try_cpp "$LINENO"; then :
5594 else
5595 # Broken: fails on valid input.
5596 continue
5598 rm -f conftest.err conftest.i conftest.$ac_ext
5600 # OK, works on sane cases. Now check whether nonexistent headers
5601 # can be detected and how.
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <ac_nonexistent.h>
5605 _ACEOF
5606 if ac_fn_cxx_try_cpp "$LINENO"; then :
5607 # Broken: success on invalid input.
5608 continue
5609 else
5610 # Passes both tests.
5611 ac_preproc_ok=:
5612 break
5614 rm -f conftest.err conftest.i conftest.$ac_ext
5616 done
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.i conftest.err conftest.$ac_ext
5619 if $ac_preproc_ok; then :
5621 else
5622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5624 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5625 See \`config.log' for more details" "$LINENO" 5; }
5628 ac_ext=cpp
5629 ac_cpp='$CXXCPP $CPPFLAGS'
5630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5637 if ${ac_cv_path_GREP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -z "$GREP"; then
5641 ac_path_GREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in grep ggrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5651 as_fn_executable_p "$ac_path_GREP" || continue
5652 # Check for GNU ac_path_GREP and select it if it is found.
5653 # Check for GNU $ac_path_GREP
5654 case `"$ac_path_GREP" --version 2>&1` in
5655 *GNU*)
5656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5658 ac_count=0
5659 $as_echo_n 0123456789 >"conftest.in"
5660 while :
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'GREP' >> "conftest.nl"
5666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 as_fn_arith $ac_count + 1 && ac_count=$as_val
5669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_GREP="$ac_path_GREP"
5672 ac_path_GREP_max=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5676 done
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 esac
5680 $ac_path_GREP_found && break 3
5681 done
5682 done
5683 done
5684 IFS=$as_save_IFS
5685 if test -z "$ac_cv_path_GREP"; then
5686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 else
5689 ac_cv_path_GREP=$GREP
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5694 $as_echo "$ac_cv_path_GREP" >&6; }
5695 GREP="$ac_cv_path_GREP"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5699 $as_echo_n "checking for egrep... " >&6; }
5700 if ${ac_cv_path_EGREP+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5704 then ac_cv_path_EGREP="$GREP -E"
5705 else
5706 if test -z "$EGREP"; then
5707 ac_path_EGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_prog in egrep; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5717 as_fn_executable_p "$ac_path_EGREP" || continue
5718 # Check for GNU ac_path_EGREP and select it if it is found.
5719 # Check for GNU $ac_path_EGREP
5720 case `"$ac_path_EGREP" --version 2>&1` in
5721 *GNU*)
5722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5724 ac_count=0
5725 $as_echo_n 0123456789 >"conftest.in"
5726 while :
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'EGREP' >> "conftest.nl"
5732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_EGREP="$ac_path_EGREP"
5738 ac_path_EGREP_max=$ac_count
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5742 done
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 esac
5746 $ac_path_EGREP_found && break 3
5747 done
5748 done
5749 done
5750 IFS=$as_save_IFS
5751 if test -z "$ac_cv_path_EGREP"; then
5752 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5754 else
5755 ac_cv_path_EGREP=$EGREP
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5761 $as_echo "$ac_cv_path_EGREP" >&6; }
5762 EGREP="$ac_cv_path_EGREP"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5766 $as_echo_n "checking for ANSI C header files... " >&6; }
5767 if ${ac_cv_header_stdc+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include <stdlib.h>
5773 #include <stdarg.h>
5774 #include <string.h>
5775 #include <float.h>
5778 main ()
5782 return 0;
5784 _ACEOF
5785 if ac_fn_cxx_try_compile "$LINENO"; then :
5786 ac_cv_header_stdc=yes
5787 else
5788 ac_cv_header_stdc=no
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 if test $ac_cv_header_stdc = yes; then
5793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #include <string.h>
5798 _ACEOF
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800 $EGREP "memchr" >/dev/null 2>&1; then :
5802 else
5803 ac_cv_header_stdc=no
5805 rm -f conftest*
5809 if test $ac_cv_header_stdc = yes; then
5810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <stdlib.h>
5815 _ACEOF
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 $EGREP "free" >/dev/null 2>&1; then :
5819 else
5820 ac_cv_header_stdc=no
5822 rm -f conftest*
5826 if test $ac_cv_header_stdc = yes; then
5827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5828 if test "$cross_compiling" = yes; then :
5830 else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <ctype.h>
5834 #include <stdlib.h>
5835 #if ((' ' & 0x0FF) == 0x020)
5836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5838 #else
5839 # define ISLOWER(c) \
5840 (('a' <= (c) && (c) <= 'i') \
5841 || ('j' <= (c) && (c) <= 'r') \
5842 || ('s' <= (c) && (c) <= 'z'))
5843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5844 #endif
5846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848 main ()
5850 int i;
5851 for (i = 0; i < 256; i++)
5852 if (XOR (islower (i), ISLOWER (i))
5853 || toupper (i) != TOUPPER (i))
5854 return 2;
5855 return 0;
5857 _ACEOF
5858 if ac_fn_cxx_try_run "$LINENO"; then :
5860 else
5861 ac_cv_header_stdc=no
5863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5864 conftest.$ac_objext conftest.beam conftest.$ac_ext
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5870 $as_echo "$ac_cv_header_stdc" >&6; }
5871 if test $ac_cv_header_stdc = yes; then
5873 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5879 inttypes.h stdint.h unistd.h
5880 do :
5881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5882 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5885 cat >>confdefs.h <<_ACEOF
5886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887 _ACEOF
5891 done
5895 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5896 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5897 MINIX=yes
5898 else
5899 MINIX=
5903 if test "$MINIX" = yes; then
5905 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5908 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5911 $as_echo "#define _MINIX 1" >>confdefs.h
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5917 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5918 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5924 # define __EXTENSIONS__ 1
5925 $ac_includes_default
5927 main ()
5931 return 0;
5933 _ACEOF
5934 if ac_fn_cxx_try_compile "$LINENO"; then :
5935 ac_cv_safe_to_define___extensions__=yes
5936 else
5937 ac_cv_safe_to_define___extensions__=no
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5942 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5943 test $ac_cv_safe_to_define___extensions__ = yes &&
5944 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5946 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5948 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5950 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5952 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5956 ac_ext=c
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5963 # On Suns, sometimes $CPP names a directory.
5964 if test -n "$CPP" && test -d "$CPP"; then
5965 CPP=
5967 if test -z "$CPP"; then
5968 if ${ac_cv_prog_CPP+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 # Double quotes because CPP needs to be expanded
5972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5974 ac_preproc_ok=false
5975 for ac_c_preproc_warn_flag in '' yes
5977 # Use a header file that comes with gcc, so configuring glibc
5978 # with a fresh cross-compiler works.
5979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 # <limits.h> exists even on freestanding compilers.
5981 # On the NeXT, cc -E runs the code through the compiler's parser,
5982 # not just through cpp. "Syntax error" is here to catch this case.
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #ifdef __STDC__
5986 # include <limits.h>
5987 #else
5988 # include <assert.h>
5989 #endif
5990 Syntax error
5991 _ACEOF
5992 if ac_fn_c_try_cpp "$LINENO"; then :
5994 else
5995 # Broken: fails on valid input.
5996 continue
5998 rm -f conftest.err conftest.i conftest.$ac_ext
6000 # OK, works on sane cases. Now check whether nonexistent headers
6001 # can be detected and how.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <ac_nonexistent.h>
6005 _ACEOF
6006 if ac_fn_c_try_cpp "$LINENO"; then :
6007 # Broken: success on invalid input.
6008 continue
6009 else
6010 # Passes both tests.
6011 ac_preproc_ok=:
6012 break
6014 rm -f conftest.err conftest.i conftest.$ac_ext
6016 done
6017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018 rm -f conftest.i conftest.err conftest.$ac_ext
6019 if $ac_preproc_ok; then :
6020 break
6023 done
6024 ac_cv_prog_CPP=$CPP
6027 CPP=$ac_cv_prog_CPP
6028 else
6029 ac_cv_prog_CPP=$CPP
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6032 $as_echo "$CPP" >&6; }
6033 ac_preproc_ok=false
6034 for ac_c_preproc_warn_flag in '' yes
6036 # Use a header file that comes with gcc, so configuring glibc
6037 # with a fresh cross-compiler works.
6038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 # <limits.h> exists even on freestanding compilers.
6040 # On the NeXT, cc -E runs the code through the compiler's parser,
6041 # not just through cpp. "Syntax error" is here to catch this case.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #ifdef __STDC__
6045 # include <limits.h>
6046 #else
6047 # include <assert.h>
6048 #endif
6049 Syntax error
6050 _ACEOF
6051 if ac_fn_c_try_cpp "$LINENO"; then :
6053 else
6054 # Broken: fails on valid input.
6055 continue
6057 rm -f conftest.err conftest.i conftest.$ac_ext
6059 # OK, works on sane cases. Now check whether nonexistent headers
6060 # can be detected and how.
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <ac_nonexistent.h>
6064 _ACEOF
6065 if ac_fn_c_try_cpp "$LINENO"; then :
6066 # Broken: success on invalid input.
6067 continue
6068 else
6069 # Passes both tests.
6070 ac_preproc_ok=:
6071 break
6073 rm -f conftest.err conftest.i conftest.$ac_ext
6075 done
6076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 rm -f conftest.i conftest.err conftest.$ac_ext
6078 if $ac_preproc_ok; then :
6080 else
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6084 See \`config.log' for more details" "$LINENO" 5; }
6087 ac_ext=cpp
6088 ac_cpp='$CXXCPP $CPPFLAGS'
6089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6094 $as_echo_n "checking for inline... " >&6; }
6095 if ${ac_cv_c_inline+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 ac_cv_c_inline=no
6099 for ac_kw in inline __inline__ __inline; do
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #ifndef __cplusplus
6103 typedef int foo_t;
6104 static $ac_kw foo_t static_foo () {return 0; }
6105 $ac_kw foo_t foo () {return 0; }
6106 #endif
6108 _ACEOF
6109 if ac_fn_cxx_try_compile "$LINENO"; then :
6110 ac_cv_c_inline=$ac_kw
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 test "$ac_cv_c_inline" != no && break
6114 done
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6118 $as_echo "$ac_cv_c_inline" >&6; }
6120 case $ac_cv_c_inline in
6121 inline | yes) ;;
6123 case $ac_cv_c_inline in
6124 no) ac_val=;;
6125 *) ac_val=$ac_cv_c_inline;;
6126 esac
6127 cat >>confdefs.h <<_ACEOF
6128 #ifndef __cplusplus
6129 #define inline $ac_val
6130 #endif
6131 _ACEOF
6133 esac
6136 # Check whether --enable-largefile was given.
6137 if test "${enable_largefile+set}" = set; then :
6138 enableval=$enable_largefile;
6141 if test "$enable_largefile" != no; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6144 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6145 if ${ac_cv_sys_largefile_CC+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 ac_cv_sys_largefile_CC=no
6149 if test "$GCC" != yes; then
6150 ac_save_CC=$CC
6151 while :; do
6152 # IRIX 6.2 and later do not support large files by default,
6153 # so use the C compiler's -n32 option if that helps.
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #include <sys/types.h>
6157 /* Check that off_t can represent 2**63 - 1 correctly.
6158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6159 since some C++ compilers masquerading as C compilers
6160 incorrectly reject 9223372036854775807. */
6161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6163 && LARGE_OFF_T % 2147483647 == 1)
6164 ? 1 : -1];
6166 main ()
6170 return 0;
6172 _ACEOF
6173 if ac_fn_cxx_try_compile "$LINENO"; then :
6174 break
6176 rm -f core conftest.err conftest.$ac_objext
6177 CC="$CC -n32"
6178 if ac_fn_cxx_try_compile "$LINENO"; then :
6179 ac_cv_sys_largefile_CC=' -n32'; break
6181 rm -f core conftest.err conftest.$ac_objext
6182 break
6183 done
6184 CC=$ac_save_CC
6185 rm -f conftest.$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6190 if test "$ac_cv_sys_largefile_CC" != no; then
6191 CC=$CC$ac_cv_sys_largefile_CC
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6196 if ${ac_cv_sys_file_offset_bits+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 while :; do
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6203 /* Check that off_t can represent 2**63 - 1 correctly.
6204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6205 since some C++ compilers masquerading as C compilers
6206 incorrectly reject 9223372036854775807. */
6207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6209 && LARGE_OFF_T % 2147483647 == 1)
6210 ? 1 : -1];
6212 main ()
6216 return 0;
6218 _ACEOF
6219 if ac_fn_cxx_try_compile "$LINENO"; then :
6220 ac_cv_sys_file_offset_bits=no; break
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #define _FILE_OFFSET_BITS 64
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6234 ? 1 : -1];
6236 main ()
6240 return 0;
6242 _ACEOF
6243 if ac_fn_cxx_try_compile "$LINENO"; then :
6244 ac_cv_sys_file_offset_bits=64; break
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 ac_cv_sys_file_offset_bits=unknown
6248 break
6249 done
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6252 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6253 case $ac_cv_sys_file_offset_bits in #(
6254 no | unknown) ;;
6256 cat >>confdefs.h <<_ACEOF
6257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6258 _ACEOF
6260 esac
6261 rm -rf conftest*
6262 if test $ac_cv_sys_file_offset_bits = unknown; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6264 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6265 if ${ac_cv_sys_large_files+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 while :; do
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <sys/types.h>
6272 /* Check that off_t can represent 2**63 - 1 correctly.
6273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6274 since some C++ compilers masquerading as C compilers
6275 incorrectly reject 9223372036854775807. */
6276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6278 && LARGE_OFF_T % 2147483647 == 1)
6279 ? 1 : -1];
6281 main ()
6285 return 0;
6287 _ACEOF
6288 if ac_fn_cxx_try_compile "$LINENO"; then :
6289 ac_cv_sys_large_files=no; break
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #define _LARGE_FILES 1
6295 #include <sys/types.h>
6296 /* Check that off_t can represent 2**63 - 1 correctly.
6297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6298 since some C++ compilers masquerading as C compilers
6299 incorrectly reject 9223372036854775807. */
6300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6302 && LARGE_OFF_T % 2147483647 == 1)
6303 ? 1 : -1];
6305 main ()
6309 return 0;
6311 _ACEOF
6312 if ac_fn_cxx_try_compile "$LINENO"; then :
6313 ac_cv_sys_large_files=1; break
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_cv_sys_large_files=unknown
6317 break
6318 done
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6321 $as_echo "$ac_cv_sys_large_files" >&6; }
6322 case $ac_cv_sys_large_files in #(
6323 no | unknown) ;;
6325 cat >>confdefs.h <<_ACEOF
6326 #define _LARGE_FILES $ac_cv_sys_large_files
6327 _ACEOF
6329 esac
6330 rm -rf conftest*
6336 # The cast to long int works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6341 $as_echo_n "checking size of ino_t... " >&6; }
6342 if ${ac_cv_sizeof_ino_t+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6347 else
6348 if test "$ac_cv_type_ino_t" = yes; then
6349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6351 as_fn_error 77 "cannot compute sizeof (ino_t)
6352 See \`config.log' for more details" "$LINENO" 5; }
6353 else
6354 ac_cv_sizeof_ino_t=0
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6360 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6364 cat >>confdefs.h <<_ACEOF
6365 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6366 _ACEOF
6369 # The cast to long int works around a bug in the HP C Compiler
6370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6372 # This bug is HP SR number 8606223364.
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6374 $as_echo_n "checking size of dev_t... " >&6; }
6375 if ${ac_cv_sizeof_dev_t+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6380 else
6381 if test "$ac_cv_type_dev_t" = yes; then
6382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6384 as_fn_error 77 "cannot compute sizeof (dev_t)
6385 See \`config.log' for more details" "$LINENO" 5; }
6386 else
6387 ac_cv_sizeof_dev_t=0
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6393 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6397 cat >>confdefs.h <<_ACEOF
6398 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6399 _ACEOF
6403 # Select the right stat being able to handle 64bit inodes, if needed.
6404 if test "$enable_largefile" != no; then
6405 case "$host, $build" in
6406 *-*-aix*,*|*,*-*-aix*)
6407 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6409 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6411 fi;;
6412 esac
6416 # sizeof(char) is 1 by definition.
6417 # The cast to long int works around a bug in the HP C Compiler
6418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6420 # This bug is HP SR number 8606223364.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6422 $as_echo_n "checking size of void *... " >&6; }
6423 if ${ac_cv_sizeof_void_p+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6428 else
6429 if test "$ac_cv_type_void_p" = yes; then
6430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 as_fn_error 77 "cannot compute sizeof (void *)
6433 See \`config.log' for more details" "$LINENO" 5; }
6434 else
6435 ac_cv_sizeof_void_p=0
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6441 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6445 cat >>confdefs.h <<_ACEOF
6446 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6447 _ACEOF
6450 # The cast to long int works around a bug in the HP C Compiler
6451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6453 # This bug is HP SR number 8606223364.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6455 $as_echo_n "checking size of short... " >&6; }
6456 if ${ac_cv_sizeof_short+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6461 else
6462 if test "$ac_cv_type_short" = yes; then
6463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6465 as_fn_error 77 "cannot compute sizeof (short)
6466 See \`config.log' for more details" "$LINENO" 5; }
6467 else
6468 ac_cv_sizeof_short=0
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6474 $as_echo "$ac_cv_sizeof_short" >&6; }
6478 cat >>confdefs.h <<_ACEOF
6479 #define SIZEOF_SHORT $ac_cv_sizeof_short
6480 _ACEOF
6483 # The cast to long int works around a bug in the HP C Compiler
6484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6486 # This bug is HP SR number 8606223364.
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6488 $as_echo_n "checking size of int... " >&6; }
6489 if ${ac_cv_sizeof_int+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6494 else
6495 if test "$ac_cv_type_int" = yes; then
6496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6498 as_fn_error 77 "cannot compute sizeof (int)
6499 See \`config.log' for more details" "$LINENO" 5; }
6500 else
6501 ac_cv_sizeof_int=0
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6507 $as_echo "$ac_cv_sizeof_int" >&6; }
6511 cat >>confdefs.h <<_ACEOF
6512 #define SIZEOF_INT $ac_cv_sizeof_int
6513 _ACEOF
6516 # The cast to long int works around a bug in the HP C Compiler
6517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6519 # This bug is HP SR number 8606223364.
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6521 $as_echo_n "checking size of long... " >&6; }
6522 if ${ac_cv_sizeof_long+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6527 else
6528 if test "$ac_cv_type_long" = yes; then
6529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error 77 "cannot compute sizeof (long)
6532 See \`config.log' for more details" "$LINENO" 5; }
6533 else
6534 ac_cv_sizeof_long=0
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6540 $as_echo "$ac_cv_sizeof_long" >&6; }
6544 cat >>confdefs.h <<_ACEOF
6545 #define SIZEOF_LONG $ac_cv_sizeof_long
6546 _ACEOF
6549 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6550 if test "x$ac_cv_type_long_long" = xyes; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define HAVE_LONG_LONG 1
6554 _ACEOF
6556 # The cast to long int works around a bug in the HP C Compiler
6557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6559 # This bug is HP SR number 8606223364.
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6561 $as_echo_n "checking size of long long... " >&6; }
6562 if ${ac_cv_sizeof_long_long+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6567 else
6568 if test "$ac_cv_type_long_long" = yes; then
6569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6571 as_fn_error 77 "cannot compute sizeof (long long)
6572 See \`config.log' for more details" "$LINENO" 5; }
6573 else
6574 ac_cv_sizeof_long_long=0
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6580 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6584 cat >>confdefs.h <<_ACEOF
6585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6586 _ACEOF
6591 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6592 case $ac_cv_c_int8_t in #(
6593 no|yes) ;; #(
6596 cat >>confdefs.h <<_ACEOF
6597 #define int8_t $ac_cv_c_int8_t
6598 _ACEOF
6600 esac
6602 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6603 case $ac_cv_c_int16_t in #(
6604 no|yes) ;; #(
6607 cat >>confdefs.h <<_ACEOF
6608 #define int16_t $ac_cv_c_int16_t
6609 _ACEOF
6611 esac
6613 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6614 case $ac_cv_c_int32_t in #(
6615 no|yes) ;; #(
6618 cat >>confdefs.h <<_ACEOF
6619 #define int32_t $ac_cv_c_int32_t
6620 _ACEOF
6622 esac
6624 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6625 case $ac_cv_c_int64_t in #(
6626 no|yes) ;; #(
6629 cat >>confdefs.h <<_ACEOF
6630 #define int64_t $ac_cv_c_int64_t
6631 _ACEOF
6633 esac
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6637 $as_echo_n "checking for unsigned long long int... " >&6; }
6638 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 ac_cv_type_unsigned_long_long_int=yes
6642 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6646 /* For now, do not test the preprocessor; as of 2007 there are too many
6647 implementations with broken preprocessors. Perhaps this can
6648 be revisited in 2012. In the meantime, code should not expect
6649 #if to work with literals wider than 32 bits. */
6650 /* Test literals. */
6651 long long int ll = 9223372036854775807ll;
6652 long long int nll = -9223372036854775807LL;
6653 unsigned long long int ull = 18446744073709551615ULL;
6654 /* Test constant expressions. */
6655 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6656 ? 1 : -1)];
6657 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6658 ? 1 : -1)];
6659 int i = 63;
6661 main ()
6663 /* Test availability of runtime routines for shift and division. */
6664 long long int llmax = 9223372036854775807ll;
6665 unsigned long long int ullmax = 18446744073709551615ull;
6666 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6667 | (llmax / ll) | (llmax % ll)
6668 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6669 | (ullmax / ull) | (ullmax % ull));
6671 return 0;
6674 _ACEOF
6675 if ac_fn_cxx_try_link "$LINENO"; then :
6677 else
6678 ac_cv_type_unsigned_long_long_int=no
6680 rm -f core conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6685 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6686 if test $ac_cv_type_unsigned_long_long_int = yes; then
6688 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6695 $as_echo_n "checking for long long int... " >&6; }
6696 if ${ac_cv_type_long_long_int+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 ac_cv_type_long_long_int=yes
6700 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6701 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6702 if test $ac_cv_type_long_long_int = yes; then
6703 if test "$cross_compiling" = yes; then :
6705 else
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #include <limits.h>
6709 #ifndef LLONG_MAX
6710 # define HALF \
6711 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6712 # define LLONG_MAX (HALF - 1 + HALF)
6713 #endif
6715 main ()
6717 long long int n = 1;
6718 int i;
6719 for (i = 0; ; i++)
6721 long long int m = n << i;
6722 if (m >> i != n)
6723 return 1;
6724 if (LLONG_MAX / 2 < m)
6725 break;
6727 return 0;
6729 return 0;
6731 _ACEOF
6732 if ac_fn_cxx_try_run "$LINENO"; then :
6734 else
6735 ac_cv_type_long_long_int=no
6737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6738 conftest.$ac_objext conftest.beam conftest.$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6745 $as_echo "$ac_cv_type_long_long_int" >&6; }
6746 if test $ac_cv_type_long_long_int = yes; then
6748 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6754 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6755 if test "x$ac_cv_type_intmax_t" = xyes; then :
6757 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6759 else
6760 test $ac_cv_type_long_long_int = yes \
6761 && ac_type='long long int' \
6762 || ac_type='long int'
6764 cat >>confdefs.h <<_ACEOF
6765 #define intmax_t $ac_type
6766 _ACEOF
6772 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6773 if test "x$ac_cv_type_intptr_t" = xyes; then :
6775 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6777 else
6778 for ac_type in 'int' 'long int' 'long long int'; do
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 $ac_includes_default
6783 main ()
6785 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6786 test_array [0] = 0;
6787 return test_array [0];
6790 return 0;
6792 _ACEOF
6793 if ac_fn_cxx_try_compile "$LINENO"; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define intptr_t $ac_type
6797 _ACEOF
6799 ac_type=
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 test -z "$ac_type" && break
6803 done
6807 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6808 case $ac_cv_c_uint8_t in #(
6809 no|yes) ;; #(
6812 $as_echo "#define _UINT8_T 1" >>confdefs.h
6815 cat >>confdefs.h <<_ACEOF
6816 #define uint8_t $ac_cv_c_uint8_t
6817 _ACEOF
6819 esac
6821 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6822 case $ac_cv_c_uint16_t in #(
6823 no|yes) ;; #(
6827 cat >>confdefs.h <<_ACEOF
6828 #define uint16_t $ac_cv_c_uint16_t
6829 _ACEOF
6831 esac
6833 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6834 case $ac_cv_c_uint32_t in #(
6835 no|yes) ;; #(
6838 $as_echo "#define _UINT32_T 1" >>confdefs.h
6841 cat >>confdefs.h <<_ACEOF
6842 #define uint32_t $ac_cv_c_uint32_t
6843 _ACEOF
6845 esac
6847 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6848 case $ac_cv_c_uint64_t in #(
6849 no|yes) ;; #(
6852 $as_echo "#define _UINT64_T 1" >>confdefs.h
6855 cat >>confdefs.h <<_ACEOF
6856 #define uint64_t $ac_cv_c_uint64_t
6857 _ACEOF
6859 esac
6863 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6864 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6866 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6868 else
6869 test $ac_cv_type_unsigned_long_long_int = yes \
6870 && ac_type='unsigned long long int' \
6871 || ac_type='unsigned long int'
6873 cat >>confdefs.h <<_ACEOF
6874 #define uintmax_t $ac_type
6875 _ACEOF
6881 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6882 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6884 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6886 else
6887 for ac_type in 'unsigned int' 'unsigned long int' \
6888 'unsigned long long int'; do
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 $ac_includes_default
6893 main ()
6895 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6896 test_array [0] = 0;
6897 return test_array [0];
6900 return 0;
6902 _ACEOF
6903 if ac_fn_cxx_try_compile "$LINENO"; then :
6905 cat >>confdefs.h <<_ACEOF
6906 #define uintptr_t $ac_type
6907 _ACEOF
6909 ac_type=
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 test -z "$ac_type" && break
6913 done
6929 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6930 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6933 # check what underlying integer type int64_t uses
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6935 $as_echo_n "checking for int64_t underlying type... " >&6; }
6936 if ${ac_cv_int64_t_type+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6943 #ifdef HAVE_STDINT_H
6944 #include <stdint.h>
6945 #endif
6946 template <typename T> struct X { };
6947 template <>
6948 struct X<long> { typedef long t; };
6951 main ()
6953 X<int64_t>::t x;
6955 return 0;
6957 _ACEOF
6958 if ac_fn_cxx_try_compile "$LINENO"; then :
6959 ac_cv_int64_t_type=long
6960 else
6961 ac_cv_int64_t_type="long long"
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6966 $as_echo "$ac_cv_int64_t_type" >&6; }
6967 if test "$ac_cv_int64_t_type" = "long"; then
6969 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6971 else
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6975 #ifdef HAVE_STDINT_H
6976 #include <stdint.h>
6977 #endif
6978 template <typename T> struct X { };
6979 template <>
6980 struct X<long long> { typedef long long t; };
6983 main ()
6985 X<int64_t>::t x;
6987 return 0;
6989 _ACEOF
6990 if ac_fn_cxx_try_compile "$LINENO"; then :
6992 else
6993 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6999 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7000 if ${ac_cv_std_swap_in_utility+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7007 #include <utility>
7010 main ()
7012 int a, b; std::swap(a,b);
7014 return 0;
7016 _ACEOF
7017 if ac_fn_cxx_try_compile "$LINENO"; then :
7018 ac_cv_std_swap_in_utility=yes
7019 else
7020 ac_cv_std_swap_in_utility=no
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7025 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7026 if test $ac_cv_std_swap_in_utility = yes; then
7028 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7032 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7033 # If the host compiler is affected by the bug, and we build with optimization
7034 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7035 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7036 # Since there is no reliable feature check for the presence of this bug,
7037 # we simply use a GCC version number check. (This should never trigger for
7038 # stages 2 or 3 of a native bootstrap.)
7039 aliasing_flags=
7040 if test "$GCC" = yes; then
7041 saved_CXXFLAGS="$CXXFLAGS"
7043 # The following test compilation will succeed if and only if $CXX accepts
7044 # -fno-strict-aliasing *and* is older than GCC 4.3.
7045 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7047 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7052 #error compiler not affected by placement new aliasing bug
7053 #endif
7055 _ACEOF
7056 if ac_fn_cxx_try_compile "$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 CXXFLAGS="$saved_CXXFLAGS"
7071 # ---------------------
7072 # Warnings and checking
7073 # ---------------------
7075 # Check $CC warning features (if it's GCC).
7076 # We want to use -pedantic, but we don't want warnings about
7077 # * 'long long'
7078 # * variadic macros
7079 # * overlong strings
7080 # * C++11 narrowing conversions in { }
7081 # So, we only use -pedantic if we can disable those warnings.
7083 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7084 # Check whether --enable-build-format-warnings was given.
7085 if test "${enable_build_format_warnings+set}" = set; then :
7086 enableval=$enable_build_format_warnings;
7087 else
7088 enable_build_format_warnings=yes
7091 if test $enable_build_format_warnings = no; then :
7092 wf_opt=-Wno-format
7093 else
7094 wf_opt=
7096 ac_ext=cpp
7097 ac_cpp='$CXXCPP $CPPFLAGS'
7098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7102 loose_warn=
7103 save_CXXFLAGS="$CXXFLAGS"
7104 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7105 # Do the check with the no- prefix removed since gcc silently
7106 # accepts any -Wno-* option on purpose
7107 case $real_option in
7108 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7109 *) option=$real_option ;;
7110 esac
7111 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7114 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7115 if eval \${$as_acx_Woption+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 CXXFLAGS="$option"
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7123 main ()
7127 return 0;
7129 _ACEOF
7130 if ac_fn_cxx_try_compile "$LINENO"; then :
7131 eval "$as_acx_Woption=yes"
7132 else
7133 eval "$as_acx_Woption=no"
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 eval ac_res=\$$as_acx_Woption
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7140 $as_echo "$ac_res" >&6; }
7141 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7142 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7144 done
7145 CXXFLAGS="$save_CXXFLAGS"
7146 ac_ext=cpp
7147 ac_cpp='$CXXCPP $CPPFLAGS'
7148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7154 ac_ext=c
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160 c_loose_warn=
7161 save_CFLAGS="$CFLAGS"
7162 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7163 # Do the check with the no- prefix removed since gcc silently
7164 # accepts any -Wno-* option on purpose
7165 case $real_option in
7166 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7167 *) option=$real_option ;;
7168 esac
7169 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7172 $as_echo_n "checking whether $CC supports $option... " >&6; }
7173 if eval \${$as_acx_Woption+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 CFLAGS="$option"
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7181 main ()
7185 return 0;
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 eval "$as_acx_Woption=yes"
7190 else
7191 eval "$as_acx_Woption=no"
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 eval ac_res=\$$as_acx_Woption
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7198 $as_echo "$ac_res" >&6; }
7199 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7200 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7202 done
7203 CFLAGS="$save_CFLAGS"
7204 ac_ext=cpp
7205 ac_cpp='$CXXCPP $CPPFLAGS'
7206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7211 ac_ext=cpp
7212 ac_cpp='$CXXCPP $CPPFLAGS'
7213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7217 strict_warn=
7218 save_CXXFLAGS="$CXXFLAGS"
7219 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7220 # Do the check with the no- prefix removed since gcc silently
7221 # accepts any -Wno-* option on purpose
7222 case $real_option in
7223 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7224 *) option=$real_option ;;
7225 esac
7226 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7229 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7230 if eval \${$as_acx_Woption+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 CXXFLAGS="$option"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7238 main ()
7242 return 0;
7244 _ACEOF
7245 if ac_fn_cxx_try_compile "$LINENO"; then :
7246 eval "$as_acx_Woption=yes"
7247 else
7248 eval "$as_acx_Woption=no"
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 eval ac_res=\$$as_acx_Woption
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7255 $as_echo "$ac_res" >&6; }
7256 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7257 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7259 done
7260 CXXFLAGS="$save_CXXFLAGS"
7261 ac_ext=cpp
7262 ac_cpp='$CXXCPP $CPPFLAGS'
7263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7268 ac_ext=c
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274 c_strict_warn=
7275 save_CFLAGS="$CFLAGS"
7276 for real_option in -Wold-style-definition -Wc++-compat; do
7277 # Do the check with the no- prefix removed since gcc silently
7278 # accepts any -Wno-* option on purpose
7279 case $real_option in
7280 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7281 *) option=$real_option ;;
7282 esac
7283 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7286 $as_echo_n "checking whether $CC supports $option... " >&6; }
7287 if eval \${$as_acx_Woption+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 CFLAGS="$option"
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7295 main ()
7299 return 0;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"; then :
7303 eval "$as_acx_Woption=yes"
7304 else
7305 eval "$as_acx_Woption=no"
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 eval ac_res=\$$as_acx_Woption
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7312 $as_echo "$ac_res" >&6; }
7313 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7314 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7316 done
7317 CFLAGS="$save_CFLAGS"
7318 ac_ext=cpp
7319 ac_cpp='$CXXCPP $CPPFLAGS'
7320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7325 ac_ext=cpp
7326 ac_cpp='$CXXCPP $CPPFLAGS'
7327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7331 # Do the check with the no- prefix removed from the warning options
7332 # since gcc silently accepts any -Wno-* option on purpose
7333 if test "$GXX" = yes; then :
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7335 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7336 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 save_CXXFLAGS="$CXXFLAGS"
7340 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7345 main ()
7349 return 0;
7351 _ACEOF
7352 if ac_fn_cxx_try_compile "$LINENO"; then :
7353 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7354 else
7355 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 CXXFLAGS="$save_CXXFLAGS"
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7361 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7362 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7363 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7367 ac_ext=cpp
7368 ac_cpp='$CXXCPP $CPPFLAGS'
7369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7374 ac_ext=cpp
7375 ac_cpp='$CXXCPP $CPPFLAGS'
7376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7380 # Check whether --enable-werror-always was given.
7381 if test "${enable_werror_always+set}" = set; then :
7382 enableval=$enable_werror_always;
7383 else
7384 enable_werror_always=no
7387 if test $enable_werror_always = yes; then :
7388 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7391 ac_ext=cpp
7392 ac_cpp='$CXXCPP $CPPFLAGS'
7393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7399 # The above macros do nothing if the compiler is not GCC. However, the
7400 # Makefile has more goo to add other flags, so these variables are used
7401 # to enable warnings only for GCC.
7402 warn_cflags=
7403 warn_cxxflags=
7404 if test "x$GCC" = "xyes"; then
7405 warn_cflags='$(GCC_WARN_CFLAGS)'
7406 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7411 # Disable exceptions and RTTI if building with g++
7412 ac_ext=c
7413 ac_cpp='$CPP $CPPFLAGS'
7414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418 noexception_flags=
7419 save_CFLAGS="$CFLAGS"
7420 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7421 # Do the check with the no- prefix removed since gcc silently
7422 # accepts any -Wno-* option on purpose
7423 case $real_option in
7424 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7425 *) option=$real_option ;;
7426 esac
7427 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7430 $as_echo_n "checking whether $CC supports $option... " >&6; }
7431 if eval \${$as_acx_Woption+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 CFLAGS="$option"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 main ()
7443 return 0;
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447 eval "$as_acx_Woption=yes"
7448 else
7449 eval "$as_acx_Woption=no"
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 eval ac_res=\$$as_acx_Woption
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7456 $as_echo "$ac_res" >&6; }
7457 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7458 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7460 done
7461 CFLAGS="$save_CFLAGS"
7462 ac_ext=cpp
7463 ac_cpp='$CXXCPP $CPPFLAGS'
7464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7470 # Enable expensive internal checks
7471 is_release=
7472 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7473 is_release=yes
7476 # Check whether --enable-checking was given.
7477 if test "${enable_checking+set}" = set; then :
7478 enableval=$enable_checking; ac_checking_flags="${enableval}"
7479 else
7481 # Determine the default checks.
7482 if test x$is_release = x ; then
7483 ac_checking_flags=yes,extra
7484 else
7485 ac_checking_flags=release
7489 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7490 for check in release $ac_checking_flags
7492 case $check in
7493 # these set all the flags to specific states
7494 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7495 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7496 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7497 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7498 ac_tree_checking=1 ; ac_valgrind_checking= ;
7499 ac_types_checking=1 ;;
7500 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7501 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7502 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7503 ac_rtlflag_checking= ; ac_runtime_checking= ;
7504 ac_tree_checking= ; ac_valgrind_checking= ;
7505 ac_types_checking= ;;
7506 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7507 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7508 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7509 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7510 ac_tree_checking=1 ; ac_valgrind_checking= ;
7511 ac_types_checking=1 ;;
7512 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7513 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7514 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7515 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7516 ac_tree_checking= ; ac_valgrind_checking= ;
7517 ac_types_checking= ;;
7518 # these enable particular checks
7519 assert) ac_assert_checking=1 ;;
7520 df) ac_df_checking=1 ;;
7521 extra) ac_extra_checking=1 ;;
7522 fold) ac_fold_checking=1 ;;
7523 gc) ac_gc_checking=1 ;;
7524 gcac) ac_gc_always_collect=1 ;;
7525 gimple) ac_gimple_checking=1 ;;
7526 misc) ac_checking=1 ;;
7527 rtl) ac_rtl_checking=1 ;;
7528 rtlflag) ac_rtlflag_checking=1 ;;
7529 runtime) ac_runtime_checking=1 ;;
7530 tree) ac_tree_checking=1 ;;
7531 types) ac_types_checking=1 ;;
7532 valgrind) ac_valgrind_checking=1 ;;
7533 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7534 esac
7535 done
7536 IFS="$ac_save_IFS"
7538 nocommon_flag=""
7539 if test x$ac_checking != x ; then
7541 $as_echo "#define CHECKING_P 1" >>confdefs.h
7543 nocommon_flag=-fno-common
7544 else
7545 $as_echo "#define CHECKING_P 0" >>confdefs.h
7549 if test x$ac_extra_checking != x ; then
7551 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7553 else
7554 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7557 if test x$ac_df_checking != x ; then
7559 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7562 if test x$ac_assert_checking != x ; then
7564 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7567 if test x$ac_gimple_checking != x ; then
7569 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7573 if test x$ac_runtime_checking != x ; then
7575 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7578 if test x$ac_tree_checking != x ; then
7580 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7582 TREECHECKING=yes
7584 if test x$ac_types_checking != x ; then
7586 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7590 if test x$ac_rtl_checking != x ; then
7592 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7595 if test x$ac_rtlflag_checking != x ; then
7597 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7600 if test x$ac_gc_checking != x ; then
7602 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7605 if test x$ac_gc_always_collect != x ; then
7607 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7610 if test x$ac_fold_checking != x ; then
7612 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7615 valgrind_path_defines=
7616 valgrind_command=
7618 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7619 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7620 have_valgrind_h=yes
7621 else
7622 have_valgrind_h=no
7627 # It is certainly possible that there's valgrind but no valgrind.h.
7628 # GCC relies on making annotations so we must have both.
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7630 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 #include <valgrind/memcheck.h>
7634 #ifndef VALGRIND_DISCARD
7635 #error VALGRIND_DISCARD not defined
7636 #endif
7637 _ACEOF
7638 if ac_fn_cxx_try_cpp "$LINENO"; then :
7639 gcc_cv_header_valgrind_memcheck_h=yes
7640 else
7641 gcc_cv_header_valgrind_memcheck_h=no
7643 rm -f conftest.err conftest.i conftest.$ac_ext
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7645 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7647 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <memcheck.h>
7651 #ifndef VALGRIND_DISCARD
7652 #error VALGRIND_DISCARD not defined
7653 #endif
7654 _ACEOF
7655 if ac_fn_cxx_try_cpp "$LINENO"; then :
7656 gcc_cv_header_memcheck_h=yes
7657 else
7658 gcc_cv_header_memcheck_h=no
7660 rm -f conftest.err conftest.i conftest.$ac_ext
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7662 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7663 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7665 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7668 if test $gcc_cv_header_memcheck_h = yes; then
7670 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7674 if test x$ac_valgrind_checking != x ; then
7676 # Prepare PATH_SEPARATOR.
7677 # The user is always right.
7678 if test "${PATH_SEPARATOR+set}" != set; then
7679 echo "#! /bin/sh" >conf$$.sh
7680 echo "exit 0" >>conf$$.sh
7681 chmod +x conf$$.sh
7682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7683 PATH_SEPARATOR=';'
7684 else
7685 PATH_SEPARATOR=:
7687 rm -f conf$$.sh
7690 # Find out how to test for executable files. Don't use a zero-byte file,
7691 # as systems may use methods other than mode bits to determine executability.
7692 cat >conf$$.file <<_ASEOF
7693 #! /bin/sh
7694 exit 0
7695 _ASEOF
7696 chmod +x conf$$.file
7697 if test -x conf$$.file >/dev/null 2>&1; then
7698 ac_executable_p="test -x"
7699 else
7700 ac_executable_p="test -f"
7702 rm -f conf$$.file
7704 # Extract the first word of "valgrind", so it can be a program name with args.
7705 set dummy valgrind; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_valgrind_path+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 case "$valgrind_path" in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7717 for ac_dir in $PATH; do
7718 IFS="$ac_save_IFS"
7719 test -z "$ac_dir" && ac_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7722 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7723 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7724 break 2
7727 done
7728 done
7729 IFS="$ac_save_IFS"
7731 esac
7733 valgrind_path="$ac_cv_path_valgrind_path"
7734 if test -n "$valgrind_path"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7736 $as_echo "$valgrind_path" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7742 if test "x$valgrind_path" = "x" \
7743 || (test $have_valgrind_h = no \
7744 && test $gcc_cv_header_memcheck_h = no \
7745 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7746 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7748 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7749 valgrind_command="$valgrind_path -q"
7751 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7757 # Enable code coverage collection
7758 # Check whether --enable-coverage was given.
7759 if test "${enable_coverage+set}" = set; then :
7760 enableval=$enable_coverage; case "${enableval}" in
7761 yes|noopt)
7762 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7764 opt)
7765 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7768 # a.k.a. --disable-coverage
7769 coverage_flags=""
7772 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7774 esac
7775 else
7776 coverage_flags=""
7781 # Check whether --enable-gather-detailed-mem-stats was given.
7782 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7783 enableval=$enable_gather_detailed_mem_stats;
7784 else
7785 enable_gather_detailed_mem_stats=no
7788 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7790 cat >>confdefs.h <<_ACEOF
7791 #define GATHER_STATISTICS $gather_stats
7792 _ACEOF
7795 # Check whether --enable-valgrind-annotations was given.
7796 if test "${enable_valgrind_annotations+set}" = set; then :
7797 enableval=$enable_valgrind_annotations;
7798 else
7799 enable_valgrind_annotations=no
7802 if test x$enable_valgrind_annotations != xno \
7803 || test x$ac_valgrind_checking != x; then
7804 if (test $have_valgrind_h = no \
7805 && test $gcc_cv_header_memcheck_h = no \
7806 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7807 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7810 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7814 # -------------------------------
7815 # Miscenalleous configure options
7816 # -------------------------------
7818 # Determine whether or not multilibs are enabled.
7819 # Check whether --enable-multilib was given.
7820 if test "${enable_multilib+set}" = set; then :
7821 enableval=$enable_multilib;
7822 else
7823 enable_multilib=yes
7828 # Determine whether or not multiarch is enabled.
7829 # Check whether --enable-multiarch was given.
7830 if test "${enable_multiarch+set}" = set; then :
7831 enableval=$enable_multiarch; case "${enableval}" in
7832 yes|no|auto) enable_multiarch=$enableval;;
7833 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7834 esac
7835 else
7836 enable_multiarch=auto
7839 if test x${enable_multiarch} = xauto; then
7840 if test x${with_native_system_header_dir} != x; then
7841 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7842 enable_multiarch=no
7844 if test x$host != x$target && test "x$with_sysroot" = x; then
7845 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7846 enable_multiarch=no
7849 if test x${enable_multiarch} = xyes; then
7851 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7855 $as_echo_n "checking for multiarch configuration... " >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7858 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7860 # needed for setting the multiarch name for soft-float/hard-float ABIs
7864 # default stack clash protection guard size as power of twos in bytes.
7865 # Please keep these in sync with params.def.
7866 stk_clash_min=12
7867 stk_clash_max=30
7869 # Keep the default value when the option is not used to 0, this allows us to
7870 # distinguish between the cases where the user specifially set a value via
7871 # configure and when the normal default value is used.
7873 # Check whether --with-stack-clash-protection-guard-size was given.
7874 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7875 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7876 else
7877 DEFAULT_STK_CLASH_GUARD_SIZE=0
7880 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7881 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7882 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7883 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
7887 cat >>confdefs.h <<_ACEOF
7888 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7889 _ACEOF
7892 # Enable __cxa_atexit for C++.
7893 # Check whether --enable-__cxa_atexit was given.
7894 if test "${enable___cxa_atexit+set}" = set; then :
7895 enableval=$enable___cxa_atexit;
7899 # Enable C extension for decimal float if target supports it.
7901 # Check whether --enable-decimal-float was given.
7902 if test "${enable_decimal_float+set}" = set; then :
7903 enableval=$enable_decimal_float;
7904 case $enable_decimal_float in
7905 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7906 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7907 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7908 esac
7910 else
7912 case $target in
7913 aarch64* | \
7914 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7915 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7916 i?86*-*-mingw* | x86_64*-*-mingw* | \
7917 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7918 enable_decimal_float=yes
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7922 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7923 enable_decimal_float=no
7925 esac
7930 # x86's use BID format instead of DPD
7931 case x$enable_decimal_float in
7932 xyes)
7933 case $target in
7934 aarch64* | i?86*-*-* | x86_64*-*-*)
7935 enable_decimal_float=bid
7938 enable_decimal_float=dpd
7940 esac
7941 default_decimal_float=$enable_decimal_float
7943 xno)
7944 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7945 # dependency on libdecnumber.
7946 default_decimal_float=dpd
7948 esac
7953 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7955 cat >>confdefs.h <<_ACEOF
7956 #define ENABLE_DECIMAL_FLOAT $dfp
7957 _ACEOF
7960 # Use default_decimal_float for dependency.
7961 enable_decimal_float=$default_decimal_float
7963 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7965 cat >>confdefs.h <<_ACEOF
7966 #define ENABLE_DECIMAL_BID_FORMAT $bid
7967 _ACEOF
7970 # Enable C extension for fixed-point arithmetic.
7971 # Check whether --enable-fixed-point was given.
7972 if test "${enable_fixed_point+set}" = set; then :
7973 enableval=$enable_fixed_point;
7974 else
7976 case $target in
7977 arm*)
7978 enable_fixed_point=yes
7981 mips*-*-*)
7982 enable_fixed_point=yes
7984 loongarch*-*-*)
7985 enable_fixed_point=yes
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7989 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7990 enable_fixed_point=no
7992 esac
7998 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8000 cat >>confdefs.h <<_ACEOF
8001 #define ENABLE_FIXED_POINT $fixedpoint
8002 _ACEOF
8005 # Enable threads
8006 # Pass with no value to take the default
8007 # Pass with a value to specify a thread package
8008 # Check whether --enable-threads was given.
8009 if test "${enable_threads+set}" = set; then :
8010 enableval=$enable_threads;
8011 else
8012 enable_threads=''
8016 # Check whether --enable-tls was given.
8017 if test "${enable_tls+set}" = set; then :
8018 enableval=$enable_tls;
8019 case $enable_tls in
8020 yes | no) ;;
8021 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8022 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8023 esac
8025 else
8026 enable_tls=''
8030 # Check whether --enable-vtable-verify was given.
8031 if test "${enable_vtable_verify+set}" = set; then :
8032 enableval=$enable_vtable_verify;
8033 else
8034 enable_vtable_verify=no
8037 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8039 cat >>confdefs.h <<_ACEOF
8040 #define ENABLE_VTABLE_VERIFY $vtable_verify
8041 _ACEOF
8044 # Check whether --enable-analyzer was given.
8045 if test "${enable_analyzer+set}" = set; then :
8046 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8047 analyzer=0
8048 else
8049 analyzer=1
8051 else
8052 analyzer=1
8056 cat >>confdefs.h <<_ACEOF
8057 #define ENABLE_ANALYZER $analyzer
8058 _ACEOF
8061 # Check whether --enable-objc-gc was given.
8062 if test "${enable_objc_gc+set}" = set; then :
8063 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8064 objc_boehm_gc=''
8065 else
8066 objc_boehm_gc=1
8068 else
8069 objc_boehm_gc=''
8074 # Check whether --with-dwarf2 was given.
8075 if test "${with_dwarf2+set}" = set; then :
8076 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8077 else
8078 dwarf2=no
8082 # Check whether --enable-shared was given.
8083 if test "${enable_shared+set}" = set; then :
8084 enableval=$enable_shared;
8085 case $enable_shared in
8086 yes | no) ;;
8088 enable_shared=no
8089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8090 for pkg in $enableval; do
8091 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8092 enable_shared=yes
8094 done
8095 IFS="$ac_save_ifs"
8097 esac
8099 else
8100 enable_shared=yes
8105 # Check whether --enable-gcov was given.
8106 if test "${enable_gcov+set}" = set; then :
8107 enableval=$enable_gcov;
8108 else
8109 case $target in
8110 bpf-*-*)
8111 enable_gcov=no
8114 enable_gcov=yes
8116 esac
8123 # Check whether --with-specs was given.
8124 if test "${with_specs+set}" = set; then :
8125 withval=$with_specs; CONFIGURE_SPECS=$withval
8126 else
8127 CONFIGURE_SPECS=
8135 # Check whether --with-pkgversion was given.
8136 if test "${with_pkgversion+set}" = set; then :
8137 withval=$with_pkgversion; case "$withval" in
8138 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8139 no) PKGVERSION= ;;
8140 *) PKGVERSION="($withval) " ;;
8141 esac
8142 else
8143 PKGVERSION="(GCC) "
8151 # Check whether --with-bugurl was given.
8152 if test "${with_bugurl+set}" = set; then :
8153 withval=$with_bugurl; case "$withval" in
8154 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8155 no) BUGURL=
8157 *) BUGURL="$withval"
8159 esac
8160 else
8161 BUGURL="https://gcc.gnu.org/bugs/"
8165 case ${BUGURL} in
8167 REPORT_BUGS_TO=
8168 REPORT_BUGS_TEXI=
8171 REPORT_BUGS_TO="<$BUGURL>"
8172 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8174 esac;
8179 # Allow overriding the default URL for documentation
8181 # Check whether --with-documentation-root-url was given.
8182 if test "${with_documentation_root_url+set}" = set; then :
8183 withval=$with_documentation_root_url; case "$withval" in
8184 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8185 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8186 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8187 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8188 esac
8189 else
8190 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8195 cat >>confdefs.h <<_ACEOF
8196 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8197 _ACEOF
8200 # Allow overriding the default URL for GCC changes
8202 # Check whether --with-changes-root-url was given.
8203 if test "${with_changes_root_url+set}" = set; then :
8204 withval=$with_changes_root_url; case "$withval" in
8205 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8206 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8207 */) CHANGES_ROOT_URL="$withval" ;;
8208 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8209 esac
8210 else
8211 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8216 cat >>confdefs.h <<_ACEOF
8217 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8218 _ACEOF
8221 # Sanity check enable_languages in case someone does not run the toplevel
8222 # configure # script.
8223 # Check whether --enable-languages was given.
8224 if test "${enable_languages+set}" = set; then :
8225 enableval=$enable_languages; case ,${enable_languages}, in
8226 ,,|,yes,)
8227 # go safe -- we cannot be much sure without the toplevel
8228 # configure's
8229 # analysis of which target libs are present and usable
8230 enable_languages=c
8232 *,all,*)
8233 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8235 *,c,*)
8238 enable_languages=c,${enable_languages}
8240 esac
8241 else
8242 enable_languages=c
8246 # If top-level libada has been disabled, then wire in install-gnatlib
8247 # invocation with `make install', so that one can build and install
8248 # the library manually with `make -C gcc all gnatlib gnattools install'.
8249 if test x"$enable_libada" = xno; then
8250 gnat_install_lib=gnat-install-lib
8251 else
8252 gnat_install_lib=
8256 if test x"$enable_as_accelerator_for" != x; then
8258 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8260 enable_as_accelerator=yes
8261 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8262 program_transform_name=`echo $program_transform_name | sed $sedscript`
8263 accel_dir_suffix=/accel/${target_noncanonical}
8264 real_target_noncanonical=${enable_as_accelerator_for}
8270 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8271 tgt=`echo $tgt | sed 's/=.*//'`
8273 enable_offloading=1
8274 case "$tgt" in
8275 amdgcn*)
8276 omp_device_property=omp-device-properties-gcn
8277 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8279 nvptx*)
8280 omp_device_property=omp-device-properties-nvptx
8281 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8284 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8286 esac
8287 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8288 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8290 if test x"$offload_targets" = x; then
8291 offload_targets=$tgt
8292 else
8293 offload_targets="$offload_targets,$tgt"
8295 done
8300 cat >>confdefs.h <<_ACEOF
8301 #define OFFLOAD_TARGETS "$offload_targets"
8302 _ACEOF
8304 if test x"$enable_offloading" != x; then
8306 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8308 else
8310 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8314 if test "x$enable_offload_defaulted" = xyes; then
8316 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8321 # Check whether --with-multilib-list was given.
8322 if test "${with_multilib_list+set}" = set; then :
8323 withval=$with_multilib_list; :
8324 else
8325 with_multilib_list=default
8330 # Check whether --with-multilib-generator was given.
8331 if test "${with_multilib_generator+set}" = set; then :
8332 withval=$with_multilib_generator; :
8333 else
8334 with_multilib_generator=default
8338 # -------------------------
8339 # Checks for other programs
8340 # -------------------------
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8344 set x ${MAKE-make}
8345 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8346 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat >conftest.make <<\_ACEOF
8350 SHELL = /bin/sh
8351 all:
8352 @echo '@@@%%%=$(MAKE)=@@@%%%'
8353 _ACEOF
8354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8356 *@@@%%%=?*=@@@%%%*)
8357 eval ac_cv_prog_make_${ac_make}_set=yes;;
8359 eval ac_cv_prog_make_${ac_make}_set=no;;
8360 esac
8361 rm -f conftest.make
8363 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8366 SET_MAKE=
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 SET_MAKE="MAKE=${MAKE-make}"
8374 # Find some useful tools
8375 for ac_prog in gawk mawk nawk awk
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AWK+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AWK"; then
8385 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AWK="$ac_prog"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8404 AWK=$ac_cv_prog_AWK
8405 if test -n "$AWK"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8407 $as_echo "$AWK" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8414 test -n "$AWK" && break
8415 done
8417 # We need awk to create options.cc and options.h.
8418 # Bail out if it's missing.
8419 case ${AWK} in
8420 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8421 esac
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8424 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if ${gcc_cv_prog_LN_S+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 rm -f conftestdata_t
8429 echo >conftestdata_f
8430 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8431 then
8432 gcc_cv_prog_LN_S="ln -s"
8433 else
8434 if ln conftestdata_f conftestdata_t 2>/dev/null
8435 then
8436 gcc_cv_prog_LN_S=ln
8437 else
8438 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8439 then
8440 gcc_cv_prog_LN_S="cp -p"
8441 else
8442 gcc_cv_prog_LN_S=cp
8446 rm -f conftestdata_f conftestdata_t
8449 LN_S="$gcc_cv_prog_LN_S"
8450 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8453 else
8454 if test "$gcc_cv_prog_LN_S" = "ln"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8456 $as_echo "no, using ln" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8459 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8464 $as_echo_n "checking whether ln works... " >&6; }
8465 if ${acx_cv_prog_LN+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 rm -f conftestdata_t
8469 echo >conftestdata_f
8470 if ln conftestdata_f conftestdata_t 2>/dev/null
8471 then
8472 acx_cv_prog_LN=ln
8473 else
8474 acx_cv_prog_LN=no
8476 rm -f conftestdata_f conftestdata_t
8479 if test $acx_cv_prog_LN = no; then
8480 LN="$LN_S"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8482 $as_echo "no, using $LN" >&6; }
8483 else
8484 LN="$acx_cv_prog_LN"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486 $as_echo "yes" >&6; }
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_RANLIB+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 RANLIB=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8520 $as_echo "$RANLIB" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_ac_ct_RANLIB="ranlib"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8560 $as_echo "$ac_ct_RANLIB" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x; then
8567 RANLIB=":"
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575 RANLIB=$ac_ct_RANLIB
8577 else
8578 RANLIB="$ac_cv_prog_RANLIB"
8581 ranlib_flags=""
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8590 # AIX /bin/install
8591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8593 # ./install, which can be erroneously created by make from ./install.sh.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8595 $as_echo_n "checking for a BSD compatible install... " >&6; }
8596 if test -z "$INSTALL"; then
8597 if ${ac_cv_path_install+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8601 for ac_dir in $PATH; do
8602 # Account for people who put trailing slashes in PATH elements.
8603 case "$ac_dir/" in
8604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8606 # OSF1 and SCO ODT 3.0 have their own names for install.
8607 for ac_prog in ginstall scoinst install; do
8608 if test -f $ac_dir/$ac_prog; then
8609 if test $ac_prog = install &&
8610 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 # OSF/1 installbsd also uses dspmsg, but is usable.
8614 else
8615 ac_cv_path_install="$ac_dir/$ac_prog -c"
8616 break 2
8619 done
8621 esac
8622 done
8623 IFS="$ac_save_IFS"
8626 if test "${ac_cv_path_install+set}" = set; then
8627 INSTALL="$ac_cv_path_install"
8628 else
8629 # As a last resort, use the slow shell script. We don't cache a
8630 # path for INSTALL within a source directory, because that will
8631 # break other packages using the cache if that directory is
8632 # removed, or if the path is relative.
8633 INSTALL="$ac_install_sh"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8637 $as_echo "$INSTALL" >&6; }
8639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8640 # It thinks the first close brace ends the variable substitution.
8641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8646 # See if cmp has --ignore-initial.
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8648 $as_echo_n "checking for cmp's capabilities... " >&6; }
8649 if ${gcc_cv_prog_cmp_skip+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 echo abfoo >t1
8653 echo cdfoo >t2
8654 gcc_cv_prog_cmp_skip=slowcompare
8655 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8656 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8658 else
8659 gcc_cv_prog_cmp_skip=gnucompare
8662 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8663 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8664 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8666 else
8667 gcc_cv_prog_cmp_skip=fastcompare
8671 rm t1 t2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8675 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8676 make_compare_target=$gcc_cv_prog_cmp_skip
8680 # See if we have the mktemp command.
8681 # Extract the first word of "mktemp", so it can be a program name with args.
8682 set dummy mktemp; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 if test -n "$have_mktemp_command"; then
8689 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_have_mktemp_command="yes"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8704 IFS=$as_save_IFS
8706 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8709 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8710 if test -n "$have_mktemp_command"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8712 $as_echo "$have_mktemp_command" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 # See if makeinfo has been installed and is modern enough
8721 # that we can use it.
8723 # Extract the first word of "makeinfo", so it can be a program name with args.
8724 set dummy makeinfo; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_MAKEINFO+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 if test -n "$MAKEINFO"; then
8731 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_MAKEINFO="makeinfo"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8750 MAKEINFO=$ac_cv_prog_MAKEINFO
8751 if test -n "$MAKEINFO"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8753 $as_echo "$MAKEINFO" >&6; }
8754 else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8760 if test -n "$MAKEINFO"; then
8761 # Found it, now check the version.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8763 $as_echo_n "checking for modern makeinfo... " >&6; }
8764 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8768 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') gcc_cv_prog_makeinfo_modern=no;;
8772 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8773 *) gcc_cv_prog_makeinfo_modern=no;;
8774 esac
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8778 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8779 else
8780 gcc_cv_prog_makeinfo_modern=no
8782 if test $gcc_cv_prog_makeinfo_modern = no; then
8783 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8786 if test $gcc_cv_prog_makeinfo_modern = no; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&5
8790 $as_echo "$as_me: WARNING:
8791 *** Makeinfo is missing or too old.
8792 *** Info documentation will not be built." >&2;}
8793 BUILD_INFO=
8794 else
8795 BUILD_INFO=info
8799 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8800 # If it does, we want to pass it to makeinfo in order to restore the old
8801 # behavior of @{summary,}contents placement.
8802 MAKEINFO_TOC_INLINE_FLAG=
8803 if test x"$MAKEINFO" != x; then :
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8806 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8807 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8811 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8812 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8813 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8814 gcc_cv_texi_add_toc_inline_flags=no
8815 else
8816 gcc_cv_texi_add_toc_inline_flags=yes
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8821 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8822 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8823 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8829 # Is pod2man recent enough to regenerate manpages?
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8831 $as_echo_n "checking for recent Pod::Man... " >&6; }
8832 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8834 $as_echo "yes" >&6; }
8835 GENERATED_MANPAGES=generated-manpages
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 GENERATED_MANPAGES=
8843 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8845 # How about lex?
8846 for ac_prog in flex
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy $ac_prog; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_FLEX+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 if test -n "$FLEX"; then
8856 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_FLEX="$ac_prog"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8869 done
8870 done
8871 IFS=$as_save_IFS
8875 FLEX=$ac_cv_prog_FLEX
8876 if test -n "$FLEX"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8878 $as_echo "$FLEX" >&6; }
8879 else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8885 test -n "$FLEX" && break
8886 done
8887 test -n "$FLEX" || FLEX="$MISSING flex"
8890 # Bison?
8891 for ac_prog in bison
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy $ac_prog; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_BISON+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test -n "$BISON"; then
8901 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_BISON="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8914 done
8915 done
8916 IFS=$as_save_IFS
8920 BISON=$ac_cv_prog_BISON
8921 if test -n "$BISON"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8923 $as_echo "$BISON" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$BISON" && break
8931 done
8932 test -n "$BISON" || BISON="$MISSING bison"
8935 # Python3?
8937 # Extract the first word of "python3", so it can be a program name with args.
8938 set dummy python3; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_prog_PYTHON+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 if test -n "$PYTHON"; then
8945 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_prog_PYTHON="python3"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8958 done
8959 done
8960 IFS=$as_save_IFS
8964 PYTHON=$ac_cv_prog_PYTHON
8965 if test -n "$PYTHON"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8967 $as_echo "$PYTHON" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8974 if test -n "$PYTHON"; then
8975 # Found it, now check the version.
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
8977 $as_echo_n "checking for modern python3... " >&6; }
8978 if ${gcc_cv_prog_python3_modern+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 ac_prog_version=`eval $PYTHON --version 2>&1 |
8982 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
8984 case $ac_prog_version in
8985 '') gcc_cv_prog_python3_modern=no;;
8986 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
8987 *) gcc_cv_prog_python3_modern=no;;
8988 esac
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
8992 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
8993 else
8994 gcc_cv_prog_python3_modern=no
8996 if test $gcc_cv_prog_python3_modern = no; then
8997 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9000 if test $gcc_cv_prog_python3_modern = no; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9002 *** Python3 is missing.
9003 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9004 $as_echo "$as_me: WARNING:
9005 *** Python3 is missing.
9006 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9007 HAVE_PYTHON=no
9008 else
9009 HAVE_PYTHON=yes
9013 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9014 # check for build == host before using them.
9016 # NM
9017 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9018 && test -d ../binutils ; then
9019 NM='${objdir}/../binutils/nm-new'
9020 else
9021 # Extract the first word of "nm", so it can be a program name with args.
9022 set dummy nm; ac_word=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if ${ac_cv_prog_NM+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 if test -n "$NM"; then
9029 ac_cv_prog_NM="$NM" # Let the user override the test.
9030 else
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_prog_NM="nm"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9044 IFS=$as_save_IFS
9046 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9049 NM=$ac_cv_prog_NM
9050 if test -n "$NM"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9052 $as_echo "$NM" >&6; }
9053 else
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9061 # AR
9062 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9063 && test -d ../binutils ; then
9064 AR='${objdir}/../binutils/ar'
9065 else
9066 # Extract the first word of "ar", so it can be a program name with args.
9067 set dummy ar; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_prog_AR+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$AR"; then
9074 ac_cv_prog_AR="$AR" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_prog_AR="ar"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9091 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9094 AR=$ac_cv_prog_AR
9095 if test -n "$AR"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9097 $as_echo "$AR" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9106 # The jit documentation looks better if built with sphinx, but can be
9107 # built with texinfo if sphinx is not available.
9108 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9109 # Extract the first word of "sphinx-build", so it can be a program name with args.
9110 set dummy sphinx-build; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_prog_doc_build_sys+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$doc_build_sys"; then
9117 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_doc_build_sys="sphinx"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9134 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9137 doc_build_sys=$ac_cv_prog_doc_build_sys
9138 if test -n "$doc_build_sys"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9140 $as_echo "$doc_build_sys" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 # --------------------
9149 # Checks for C headers
9150 # --------------------
9152 # Need to reject headers which give warnings, so that the -Werror bootstrap
9153 # works later. *sigh* This needs to come before all header checks.
9155 ac_c_preproc_warn_flag=yes
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9158 $as_echo_n "checking for ANSI C header files... " >&6; }
9159 if ${ac_cv_header_stdc+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <stdlib.h>
9165 #include <stdarg.h>
9166 #include <string.h>
9167 #include <float.h>
9170 main ()
9174 return 0;
9176 _ACEOF
9177 if ac_fn_cxx_try_compile "$LINENO"; then :
9178 ac_cv_header_stdc=yes
9179 else
9180 ac_cv_header_stdc=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 if test $ac_cv_header_stdc = yes; then
9185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #include <string.h>
9190 _ACEOF
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "memchr" >/dev/null 2>&1; then :
9194 else
9195 ac_cv_header_stdc=no
9197 rm -f conftest*
9201 if test $ac_cv_header_stdc = yes; then
9202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 #include <stdlib.h>
9207 _ACEOF
9208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9209 $EGREP "free" >/dev/null 2>&1; then :
9211 else
9212 ac_cv_header_stdc=no
9214 rm -f conftest*
9218 if test $ac_cv_header_stdc = yes; then
9219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9220 if test "$cross_compiling" = yes; then :
9222 else
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <ctype.h>
9226 #include <stdlib.h>
9227 #if ((' ' & 0x0FF) == 0x020)
9228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9230 #else
9231 # define ISLOWER(c) \
9232 (('a' <= (c) && (c) <= 'i') \
9233 || ('j' <= (c) && (c) <= 'r') \
9234 || ('s' <= (c) && (c) <= 'z'))
9235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9236 #endif
9238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9240 main ()
9242 int i;
9243 for (i = 0; i < 256; i++)
9244 if (XOR (islower (i), ISLOWER (i))
9245 || toupper (i) != TOUPPER (i))
9246 return 2;
9247 return 0;
9249 _ACEOF
9250 if ac_fn_cxx_try_run "$LINENO"; then :
9252 else
9253 ac_cv_header_stdc=no
9255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9256 conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9262 $as_echo "$ac_cv_header_stdc" >&6; }
9263 if test $ac_cv_header_stdc = yes; then
9265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9270 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9271 if ${ac_cv_header_time+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <sys/time.h>
9278 #include <time.h>
9281 main ()
9283 if ((struct tm *) 0)
9284 return 0;
9286 return 0;
9288 _ACEOF
9289 if ac_fn_cxx_try_compile "$LINENO"; then :
9290 ac_cv_header_time=yes
9291 else
9292 ac_cv_header_time=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9297 $as_echo "$ac_cv_header_time" >&6; }
9298 if test $ac_cv_header_time = yes; then
9300 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9305 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9306 if ${gcc_cv_header_string+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 #include <string.h>
9312 #include <strings.h>
9314 main ()
9318 return 0;
9320 _ACEOF
9321 if ac_fn_cxx_try_compile "$LINENO"; then :
9322 gcc_cv_header_string=yes
9323 else
9324 gcc_cv_header_string=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9329 $as_echo "$gcc_cv_header_string" >&6; }
9330 if test $gcc_cv_header_string = yes; then
9332 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9337 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9338 if ${ac_cv_header_sys_wait_h+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 #include <sys/types.h>
9344 #include <sys/wait.h>
9345 #ifndef WEXITSTATUS
9346 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9347 #endif
9348 #ifndef WIFEXITED
9349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9350 #endif
9353 main ()
9355 int s;
9356 wait (&s);
9357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9359 return 0;
9361 _ACEOF
9362 if ac_fn_cxx_try_compile "$LINENO"; then :
9363 ac_cv_header_sys_wait_h=yes
9364 else
9365 ac_cv_header_sys_wait_h=no
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9371 if test $ac_cv_header_sys_wait_h = yes; then
9373 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9378 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9379 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <sys/types.h>
9385 #include <termios.h>
9386 #ifdef TIOCGWINSZ
9388 #endif
9390 _ACEOF
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 $EGREP "yes" >/dev/null 2>&1; then :
9393 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9394 else
9395 ac_cv_sys_tiocgwinsz_in_termios_h=no
9397 rm -f conftest*
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9401 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9403 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9405 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9406 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/ioctl.h>
9413 #ifdef TIOCGWINSZ
9415 #endif
9417 _ACEOF
9418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9419 $EGREP "yes" >/dev/null 2>&1; then :
9420 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9421 else
9422 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9424 rm -f conftest*
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9428 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9430 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9432 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9437 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9438 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9439 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9440 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9441 do :
9442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9443 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447 _ACEOF
9450 done
9453 # Check for thread headers.
9454 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9455 if test "x$ac_cv_header_thread_h" = xyes; then :
9456 have_thread_h=yes
9457 else
9458 have_thread_h=
9461 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9462 if test "x$ac_cv_header_pthread_h" = xyes; then :
9463 have_pthread_h=yes
9464 else
9465 have_pthread_h=
9469 # These tests can't be done till we know if we have limits.h.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9471 $as_echo_n "checking for CHAR_BIT... " >&6; }
9472 if ${gcc_cv_decl_char_bit+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 #ifdef HAVE_LIMITS_H
9478 #include <limits.h>
9479 #endif
9480 #ifdef CHAR_BIT
9481 found
9482 #endif
9483 _ACEOF
9484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9485 $EGREP "found" >/dev/null 2>&1; then :
9486 gcc_cv_decl_char_bit=yes
9487 else
9488 gcc_cv_decl_char_bit=no
9490 rm -f conftest*
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9495 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9496 if test $gcc_cv_decl_char_bit = no; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9498 $as_echo_n "checking number of bits in a byte... " >&6; }
9499 if ${gcc_cv_c_nbby+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9503 gcc_cv_c_nbby=
9504 while test $i -lt 65; do
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9509 main ()
9511 switch(0) {
9512 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9513 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9516 return 0;
9518 _ACEOF
9519 if ac_fn_cxx_try_compile "$LINENO"; then :
9520 gcc_cv_c_nbby=$i; break
9522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523 i=`expr $i + 1`
9524 done
9525 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9529 $as_echo "$gcc_cv_c_nbby" >&6; }
9530 if test $gcc_cv_c_nbby = failed; then
9531 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9532 else
9534 cat >>confdefs.h <<_ACEOF
9535 #define CHAR_BIT $gcc_cv_c_nbby
9536 _ACEOF
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9541 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9542 if ${ac_cv_c_bigendian+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 ac_cv_c_bigendian=unknown
9546 # See if we're dealing with a universal compiler.
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #ifndef __APPLE_CC__
9550 not a universal capable compiler
9551 #endif
9552 typedef int dummy;
9554 _ACEOF
9555 if ac_fn_cxx_try_compile "$LINENO"; then :
9557 # Check for potential -arch flags. It is not universal unless
9558 # there are at least two -arch flags with different values.
9559 ac_arch=
9560 ac_prev=
9561 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9562 if test -n "$ac_prev"; then
9563 case $ac_word in
9564 i?86 | x86_64 | ppc | ppc64)
9565 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9566 ac_arch=$ac_word
9567 else
9568 ac_cv_c_bigendian=universal
9569 break
9572 esac
9573 ac_prev=
9574 elif test "x$ac_word" = "x-arch"; then
9575 ac_prev=arch
9577 done
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 if test $ac_cv_c_bigendian = unknown; then
9581 # See if sys/param.h defines the BYTE_ORDER macro.
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 #include <sys/types.h>
9585 #include <sys/param.h>
9588 main ()
9590 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9591 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9592 && LITTLE_ENDIAN)
9593 bogus endian macros
9594 #endif
9597 return 0;
9599 _ACEOF
9600 if ac_fn_cxx_try_compile "$LINENO"; then :
9601 # It does; now see whether it defined to BIG_ENDIAN or not.
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/param.h>
9608 main ()
9610 #if BYTE_ORDER != BIG_ENDIAN
9611 not big endian
9612 #endif
9615 return 0;
9617 _ACEOF
9618 if ac_fn_cxx_try_compile "$LINENO"; then :
9619 ac_cv_c_bigendian=yes
9620 else
9621 ac_cv_c_bigendian=no
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 if test $ac_cv_c_bigendian = unknown; then
9628 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 #include <limits.h>
9634 main ()
9636 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9637 bogus endian macros
9638 #endif
9641 return 0;
9643 _ACEOF
9644 if ac_fn_cxx_try_compile "$LINENO"; then :
9645 # It does; now see whether it defined to _BIG_ENDIAN or not.
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #include <limits.h>
9651 main ()
9653 #ifndef _BIG_ENDIAN
9654 not big endian
9655 #endif
9658 return 0;
9660 _ACEOF
9661 if ac_fn_cxx_try_compile "$LINENO"; then :
9662 ac_cv_c_bigendian=yes
9663 else
9664 ac_cv_c_bigendian=no
9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 if test $ac_cv_c_bigendian = unknown; then
9671 # Compile a test program.
9672 if test "$cross_compiling" = yes; then :
9673 # Try to guess by grepping values from an object file.
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 short int ascii_mm[] =
9677 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9678 short int ascii_ii[] =
9679 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9680 int use_ascii (int i) {
9681 return ascii_mm[i] + ascii_ii[i];
9683 short int ebcdic_ii[] =
9684 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9685 short int ebcdic_mm[] =
9686 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9687 int use_ebcdic (int i) {
9688 return ebcdic_mm[i] + ebcdic_ii[i];
9690 extern int foo;
9693 main ()
9695 return use_ascii (foo) == use_ebcdic (foo);
9697 return 0;
9699 _ACEOF
9700 if ac_fn_cxx_try_compile "$LINENO"; then :
9701 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9702 ac_cv_c_bigendian=yes
9704 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9705 if test "$ac_cv_c_bigendian" = unknown; then
9706 ac_cv_c_bigendian=no
9707 else
9708 # finding both strings is unlikely to happen, but who knows?
9709 ac_cv_c_bigendian=unknown
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 $ac_includes_default
9719 main ()
9722 /* Are we little or big endian? From Harbison&Steele. */
9723 union
9725 long int l;
9726 char c[sizeof (long int)];
9727 } u;
9728 u.l = 1;
9729 return u.c[sizeof (long int) - 1] == 1;
9732 return 0;
9734 _ACEOF
9735 if ac_fn_cxx_try_run "$LINENO"; then :
9736 ac_cv_c_bigendian=no
9737 else
9738 ac_cv_c_bigendian=yes
9740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9741 conftest.$ac_objext conftest.beam conftest.$ac_ext
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9747 $as_echo "$ac_cv_c_bigendian" >&6; }
9748 case $ac_cv_c_bigendian in #(
9749 yes)
9750 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9751 ;; #(
9753 ;; #(
9754 universal)
9756 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9758 ;; #(
9760 as_fn_error $? "unknown endianness
9761 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9762 esac
9765 # ----------------------
9766 # Checks for C++ headers
9767 # ----------------------
9769 ac_ext=cpp
9770 ac_cpp='$CXXCPP $CPPFLAGS'
9771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9775 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9776 if test -z "$CXXCPP"; then
9777 if ${ac_cv_prog_CXXCPP+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 # Double quotes because CXXCPP needs to be expanded
9781 for CXXCPP in "$CXX -E" "/lib/cpp"
9783 ac_preproc_ok=false
9784 for ac_cxx_preproc_warn_flag in '' yes
9786 # Use a header file that comes with gcc, so configuring glibc
9787 # with a fresh cross-compiler works.
9788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 # <limits.h> exists even on freestanding compilers.
9790 # On the NeXT, cc -E runs the code through the compiler's parser,
9791 # not just through cpp. "Syntax error" is here to catch this case.
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 #ifdef __STDC__
9795 # include <limits.h>
9796 #else
9797 # include <assert.h>
9798 #endif
9799 Syntax error
9800 _ACEOF
9801 if ac_fn_cxx_try_cpp "$LINENO"; then :
9803 else
9804 # Broken: fails on valid input.
9805 continue
9807 rm -f conftest.err conftest.i conftest.$ac_ext
9809 # OK, works on sane cases. Now check whether nonexistent headers
9810 # can be detected and how.
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 #include <ac_nonexistent.h>
9814 _ACEOF
9815 if ac_fn_cxx_try_cpp "$LINENO"; then :
9816 # Broken: success on invalid input.
9817 continue
9818 else
9819 # Passes both tests.
9820 ac_preproc_ok=:
9821 break
9823 rm -f conftest.err conftest.i conftest.$ac_ext
9825 done
9826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9827 rm -f conftest.i conftest.err conftest.$ac_ext
9828 if $ac_preproc_ok; then :
9829 break
9832 done
9833 ac_cv_prog_CXXCPP=$CXXCPP
9836 CXXCPP=$ac_cv_prog_CXXCPP
9837 else
9838 ac_cv_prog_CXXCPP=$CXXCPP
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9841 $as_echo "$CXXCPP" >&6; }
9842 ac_preproc_ok=false
9843 for ac_cxx_preproc_warn_flag in '' yes
9845 # Use a header file that comes with gcc, so configuring glibc
9846 # with a fresh cross-compiler works.
9847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 # <limits.h> exists even on freestanding compilers.
9849 # On the NeXT, cc -E runs the code through the compiler's parser,
9850 # not just through cpp. "Syntax error" is here to catch this case.
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9858 Syntax error
9859 _ACEOF
9860 if ac_fn_cxx_try_cpp "$LINENO"; then :
9862 else
9863 # Broken: fails on valid input.
9864 continue
9866 rm -f conftest.err conftest.i conftest.$ac_ext
9868 # OK, works on sane cases. Now check whether nonexistent headers
9869 # can be detected and how.
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <ac_nonexistent.h>
9873 _ACEOF
9874 if ac_fn_cxx_try_cpp "$LINENO"; then :
9875 # Broken: success on invalid input.
9876 continue
9877 else
9878 # Passes both tests.
9879 ac_preproc_ok=:
9880 break
9882 rm -f conftest.err conftest.i conftest.$ac_ext
9884 done
9885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9886 rm -f conftest.i conftest.err conftest.$ac_ext
9887 if $ac_preproc_ok; then :
9889 else
9890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9893 See \`config.log' for more details" >&5
9894 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9895 See \`config.log' for more details" >&2;}; }
9898 ac_ext=cpp
9899 ac_cpp='$CXXCPP $CPPFLAGS'
9900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9905 for ac_header in unordered_map
9906 do :
9907 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9908 if test "x$ac_cv_header_unordered_map" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_UNORDERED_MAP 1
9911 _ACEOF
9914 done
9916 for ac_header in tr1/unordered_map
9917 do :
9918 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9919 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9920 cat >>confdefs.h <<_ACEOF
9921 #define HAVE_TR1_UNORDERED_MAP 1
9922 _ACEOF
9925 done
9927 for ac_header in ext/hash_map
9928 do :
9929 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9930 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9931 cat >>confdefs.h <<_ACEOF
9932 #define HAVE_EXT_HASH_MAP 1
9933 _ACEOF
9936 done
9939 # --------
9940 # Dependency checking.
9941 # --------
9943 rm -rf .tst 2>/dev/null
9944 mkdir .tst 2>/dev/null
9945 if test -d .tst; then
9946 am__leading_dot=.
9947 else
9948 am__leading_dot=_
9950 rmdir .tst 2>/dev/null
9952 DEPDIR="${am__leading_dot}deps"
9954 ac_config_commands="$ac_config_commands depdir"
9957 ac_config_commands="$ac_config_commands gccdepdir"
9960 depcc="$CXX" am_compiler_list=
9962 am_depcomp=$ac_aux_dir/depcomp
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9964 $as_echo_n "checking dependency style of $depcc... " >&6; }
9965 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 if test -f "$am_depcomp"; then
9969 # We make a subdir and do the tests there. Otherwise we can end up
9970 # making bogus files that we don't know about and never remove. For
9971 # instance it was reported that on HP-UX the gcc test will end up
9972 # making a dummy file named `D' -- because `-MD' means `put the output
9973 # in D'.
9974 mkdir conftest.dir
9975 # Copy depcomp to subdir because otherwise we won't find it if we're
9976 # using a relative directory.
9977 cp "$am_depcomp" conftest.dir
9978 cd conftest.dir
9979 # We will build objects and dependencies in a subdirectory because
9980 # it helps to detect inapplicable dependency modes. For instance
9981 # both Tru64's cc and ICC support -MD to output dependencies as a
9982 # side effect of compilation, but ICC will put the dependencies in
9983 # the current directory while Tru64 will put them in the object
9984 # directory.
9985 mkdir sub
9987 am_cv_CXX_dependencies_compiler_type=none
9988 if test "$am_compiler_list" = ""; then
9989 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9991 for depmode in $am_compiler_list; do
9992 if test $depmode = none; then break; fi
9994 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9995 # Setup a source with many dependencies, because some compilers
9996 # like to wrap large dependency lists on column 80 (with \), and
9997 # we should not choose a depcomp mode which is confused by this.
9999 # We need to recreate these files for each test, as the compiler may
10000 # overwrite some of them when testing with obscure command lines.
10001 # This happens at least with the AIX C compiler.
10002 : > sub/conftest.c
10003 for i in 1 2 3 4 5 6; do
10004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10006 # Solaris 8's {/usr,}/bin/sh.
10007 touch sub/conftst$i.h
10008 done
10009 echo "include sub/conftest.Po" > confmf
10011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10012 # mode. It turns out that the SunPro C++ compiler does not properly
10013 # handle `-M -o', and we need to detect this.
10014 depcmd="depmode=$depmode \
10015 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10017 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10018 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10019 if env $depcmd > conftest.err 2>&1 &&
10020 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10021 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10022 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10023 # icc doesn't choke on unknown options, it will just issue warnings
10024 # or remarks (even with -Werror). So we grep stderr for any message
10025 # that says an option was ignored or not supported.
10026 # When given -MP, icc 7.0 and 7.1 complain thusly:
10027 # icc: Command line warning: ignoring option '-M'; no argument required
10028 # The diagnosis changed in icc 8.0:
10029 # icc: Command line remark: option '-MP' not supported
10030 if (grep 'ignoring option' conftest.err ||
10031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10032 am_cv_CXX_dependencies_compiler_type=$depmode
10033 $as_echo "$as_me:$LINENO: success" >&5
10034 break
10037 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10038 sed -e 's/^/| /' < conftest.err >&5
10039 done
10041 cd ..
10042 rm -rf conftest.dir
10043 else
10044 am_cv_CXX_dependencies_compiler_type=none
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10049 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10050 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10051 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10052 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10057 # --------
10058 # UNSORTED
10059 # --------
10062 # These libraries may be used by collect2.
10063 # We may need a special search path to get them linked.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10065 $as_echo_n "checking for collect2 libraries... " >&6; }
10066 if ${gcc_cv_collect2_libs+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 save_LIBS="$LIBS"
10070 for libs in '' -lld -lmld \
10071 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10072 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10074 LIBS="$libs"
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char ldopen ();
10086 main ()
10088 return ldopen ();
10090 return 0;
10092 _ACEOF
10093 if ac_fn_cxx_try_link "$LINENO"; then :
10094 gcc_cv_collect2_libs="$libs"; break
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 done
10099 LIBS="$save_LIBS"
10100 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10103 $as_echo "$gcc_cv_collect2_libs" >&6; }
10104 case $gcc_cv_collect2_libs in
10105 "none required") ;;
10106 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10107 esac
10110 # When building Ada code on Alpha, we need exc_resume which is usually in
10111 # -lexc. So test for it.
10112 save_LIBS="$LIBS"
10113 LIBS=
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10115 $as_echo_n "checking for library containing exc_resume... " >&6; }
10116 if ${ac_cv_search_exc_resume+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 ac_func_search_save_LIBS=$LIBS
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char exc_resume ();
10131 main ()
10133 return exc_resume ();
10135 return 0;
10137 _ACEOF
10138 for ac_lib in '' exc; do
10139 if test -z "$ac_lib"; then
10140 ac_res="none required"
10141 else
10142 ac_res=-l$ac_lib
10143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10145 if ac_fn_cxx_try_link "$LINENO"; then :
10146 ac_cv_search_exc_resume=$ac_res
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext
10150 if ${ac_cv_search_exc_resume+:} false; then :
10151 break
10153 done
10154 if ${ac_cv_search_exc_resume+:} false; then :
10156 else
10157 ac_cv_search_exc_resume=no
10159 rm conftest.$ac_ext
10160 LIBS=$ac_func_search_save_LIBS
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10163 $as_echo "$ac_cv_search_exc_resume" >&6; }
10164 ac_res=$ac_cv_search_exc_resume
10165 if test "$ac_res" != no; then :
10166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10170 GNAT_LIBEXC="$LIBS"
10171 LIBS="$save_LIBS"
10174 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10175 save_LIBS="$LIBS"
10176 LIBS=
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10178 $as_echo_n "checking for library containing kstat_open... " >&6; }
10179 if ${ac_cv_search_kstat_open+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_func_search_save_LIBS=$LIBS
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char kstat_open ();
10194 main ()
10196 return kstat_open ();
10198 return 0;
10200 _ACEOF
10201 for ac_lib in '' kstat; do
10202 if test -z "$ac_lib"; then
10203 ac_res="none required"
10204 else
10205 ac_res=-l$ac_lib
10206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10208 if ac_fn_cxx_try_link "$LINENO"; then :
10209 ac_cv_search_kstat_open=$ac_res
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext
10213 if ${ac_cv_search_kstat_open+:} false; then :
10214 break
10216 done
10217 if ${ac_cv_search_kstat_open+:} false; then :
10219 else
10220 ac_cv_search_kstat_open=no
10222 rm conftest.$ac_ext
10223 LIBS=$ac_func_search_save_LIBS
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10226 $as_echo "$ac_cv_search_kstat_open" >&6; }
10227 ac_res=$ac_cv_search_kstat_open
10228 if test "$ac_res" != no; then :
10229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10233 EXTRA_GCC_LIBS="$LIBS"
10234 LIBS="$save_LIBS"
10237 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10238 # C++ needs those for libcody.
10239 save_LIBS="$LIBS"
10240 LIBS=
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10243 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10244 if ${ac_cv_search_gethostbyname+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_func_search_save_LIBS=$LIBS
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char gethostbyname ();
10259 main ()
10261 return gethostbyname ();
10263 return 0;
10265 _ACEOF
10266 for ac_lib in '' nsl; do
10267 if test -z "$ac_lib"; then
10268 ac_res="none required"
10269 else
10270 ac_res=-l$ac_lib
10271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10273 if ac_fn_cxx_try_link "$LINENO"; then :
10274 ac_cv_search_gethostbyname=$ac_res
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext
10278 if ${ac_cv_search_gethostbyname+:} false; then :
10279 break
10281 done
10282 if ${ac_cv_search_gethostbyname+:} false; then :
10284 else
10285 ac_cv_search_gethostbyname=no
10287 rm conftest.$ac_ext
10288 LIBS=$ac_func_search_save_LIBS
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10291 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10292 ac_res=$ac_cv_search_gethostbyname
10293 if test "$ac_res" != no; then :
10294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10299 $as_echo_n "checking for library containing socket... " >&6; }
10300 if ${ac_cv_search_socket+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 ac_func_search_save_LIBS=$LIBS
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char socket ();
10315 main ()
10317 return socket ();
10319 return 0;
10321 _ACEOF
10322 for ac_lib in '' socket; do
10323 if test -z "$ac_lib"; then
10324 ac_res="none required"
10325 else
10326 ac_res=-l$ac_lib
10327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10329 if ac_fn_cxx_try_link "$LINENO"; then :
10330 ac_cv_search_socket=$ac_res
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext
10334 if ${ac_cv_search_socket+:} false; then :
10335 break
10337 done
10338 if ${ac_cv_search_socket+:} false; then :
10340 else
10341 ac_cv_search_socket=no
10343 rm conftest.$ac_ext
10344 LIBS=$ac_func_search_save_LIBS
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10347 $as_echo "$ac_cv_search_socket" >&6; }
10348 ac_res=$ac_cv_search_socket
10349 if test "$ac_res" != no; then :
10350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10352 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10355 $as_echo_n "checking for socket in -lsocket... " >&6; }
10356 if ${ac_cv_lib_socket_socket+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lsocket -lnsl $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char socket ();
10372 main ()
10374 return socket ();
10376 return 0;
10378 _ACEOF
10379 if ac_fn_cxx_try_link "$LINENO"; then :
10380 ac_cv_lib_socket_socket=yes
10381 else
10382 ac_cv_lib_socket_socket=no
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10389 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10390 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10391 LIBS="-lsocket -lnsl $LIBS"
10397 NETLIBS="$LIBS"
10398 LIBS="$save_LIBS"
10401 # Some systems put ldexp and frexp in libm instead of libc; assume
10402 # they're both in the same place. jcf-dump needs them.
10403 save_LIBS="$LIBS"
10404 LIBS=
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10406 $as_echo_n "checking for library containing ldexp... " >&6; }
10407 if ${ac_cv_search_ldexp+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 ac_func_search_save_LIBS=$LIBS
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char ldexp ();
10422 main ()
10424 return ldexp ();
10426 return 0;
10428 _ACEOF
10429 for ac_lib in '' m; do
10430 if test -z "$ac_lib"; then
10431 ac_res="none required"
10432 else
10433 ac_res=-l$ac_lib
10434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10436 if ac_fn_cxx_try_link "$LINENO"; then :
10437 ac_cv_search_ldexp=$ac_res
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext
10441 if ${ac_cv_search_ldexp+:} false; then :
10442 break
10444 done
10445 if ${ac_cv_search_ldexp+:} false; then :
10447 else
10448 ac_cv_search_ldexp=no
10450 rm conftest.$ac_ext
10451 LIBS=$ac_func_search_save_LIBS
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10454 $as_echo "$ac_cv_search_ldexp" >&6; }
10455 ac_res=$ac_cv_search_ldexp
10456 if test "$ac_res" != no; then :
10457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10461 LDEXP_LIB="$LIBS"
10462 LIBS="$save_LIBS"
10465 # Some systems need dlopen
10466 save_LIBS="$LIBS"
10467 LIBS=
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10469 $as_echo_n "checking for library containing dlopen... " >&6; }
10470 if ${ac_cv_search_dlopen+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 ac_func_search_save_LIBS=$LIBS
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 /* Override any GCC internal prototype to avoid an error.
10478 Use char because int might match the return type of a GCC
10479 builtin and then its argument prototype would still apply. */
10480 #ifdef __cplusplus
10481 extern "C"
10482 #endif
10483 char dlopen ();
10485 main ()
10487 return dlopen ();
10489 return 0;
10491 _ACEOF
10492 for ac_lib in '' dl; do
10493 if test -z "$ac_lib"; then
10494 ac_res="none required"
10495 else
10496 ac_res=-l$ac_lib
10497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10499 if ac_fn_cxx_try_link "$LINENO"; then :
10500 ac_cv_search_dlopen=$ac_res
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext
10504 if ${ac_cv_search_dlopen+:} false; then :
10505 break
10507 done
10508 if ${ac_cv_search_dlopen+:} false; then :
10510 else
10511 ac_cv_search_dlopen=no
10513 rm conftest.$ac_ext
10514 LIBS=$ac_func_search_save_LIBS
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10517 $as_echo "$ac_cv_search_dlopen" >&6; }
10518 ac_res=$ac_cv_search_dlopen
10519 if test "$ac_res" != no; then :
10520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10524 DL_LIB="$LIBS"
10525 LIBS="$save_LIBS"
10528 # Use <inttypes.h> only if it exists,
10529 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10530 # PRId64
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10532 $as_echo_n "checking for inttypes.h... " >&6; }
10533 if ${gcc_cv_header_inttypes_h+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #define __STDC_FORMAT_MACROS
10539 #include <sys/types.h>
10540 #include <inttypes.h>
10542 main ()
10544 intmax_t i = -1;
10545 #ifndef PRId64
10546 choke me
10547 #endif
10549 return 0;
10551 _ACEOF
10552 if ac_fn_cxx_try_compile "$LINENO"; then :
10553 gcc_cv_header_inttypes_h=yes
10554 else
10555 gcc_cv_header_inttypes_h=no
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10561 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10562 if test $gcc_cv_header_inttypes_h = yes; then
10564 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10568 # Look for the ZSTD package.
10569 ZSTD_INCLUDE=
10570 ZSTD_LIB=
10573 ZSTD_CPPFLAGS=
10574 ZSTD_LDFLAGS=
10578 # Check whether --with-zstd was given.
10579 if test "${with_zstd+set}" = set; then :
10580 withval=$with_zstd;
10584 # Check whether --with-zstd-include was given.
10585 if test "${with_zstd_include+set}" = set; then :
10586 withval=$with_zstd_include;
10590 # Check whether --with-zstd-lib was given.
10591 if test "${with_zstd_lib+set}" = set; then :
10592 withval=$with_zstd_lib;
10595 case "x$with_zstd" in
10596 x) ;;
10597 xno)
10598 ZSTD_INCLUDE=
10599 ZSTD_LIB=
10601 *) ZSTD_INCLUDE=$with_zstd/include
10602 ZSTD_LIB=$with_zstd/lib
10604 esac
10606 if test "x$with_zstd" != xno; then
10607 if test "x$with_zstd_include" != x; then
10608 ZSTD_INCLUDE=$with_zstd_include
10610 if test "x$with_zstd_lib" != x; then
10611 ZSTD_LIB=$with_zstd_lib
10613 if test "x$ZSTD_INCLUDE" != x \
10614 && test "x$ZSTD_INCLUDE" != xno; then
10615 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10617 if test "x$ZSTD_LIB" != x \
10618 && test "x$ZSTD_LIB" != xno; then
10619 ZSTD_LDFLAGS=-L$ZSTD_LIB
10622 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10623 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10625 # LTO can use zstd compression algorithm
10626 save_LIBS="$LIBS"
10627 LIBS=
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10629 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10630 if ${ac_cv_search_ZSTD_compress+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 ac_func_search_save_LIBS=$LIBS
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char ZSTD_compress ();
10645 main ()
10647 return ZSTD_compress ();
10649 return 0;
10651 _ACEOF
10652 for ac_lib in '' zstd; do
10653 if test -z "$ac_lib"; then
10654 ac_res="none required"
10655 else
10656 ac_res=-l$ac_lib
10657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10659 if ac_fn_cxx_try_link "$LINENO"; then :
10660 ac_cv_search_ZSTD_compress=$ac_res
10662 rm -f core conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext
10664 if ${ac_cv_search_ZSTD_compress+:} false; then :
10665 break
10667 done
10668 if ${ac_cv_search_ZSTD_compress+:} false; then :
10670 else
10671 ac_cv_search_ZSTD_compress=no
10673 rm conftest.$ac_ext
10674 LIBS=$ac_func_search_save_LIBS
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10677 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10678 ac_res=$ac_cv_search_ZSTD_compress
10679 if test "$ac_res" != no; then :
10680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10682 else
10683 gcc_cv_header_zstd_h=no
10686 ZSTD_LIB="$LIBS"
10687 LIBS="$save_LIBS"
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10691 $as_echo_n "checking for zstd.h... " >&6; }
10692 if ${gcc_cv_header_zstd_h+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 # We require version 1.3.0 or later. This is the first version that has
10696 # ZSTD_getFrameContentSize.
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699 #include <zstd.h>
10700 #if ZSTD_VERSION_NUMBER < 10300
10701 #error "need zstd 1.3.0 or better"
10702 #endif
10704 main ()
10708 return 0;
10710 _ACEOF
10711 if ac_fn_cxx_try_compile "$LINENO"; then :
10712 gcc_cv_header_zstd_h=yes
10713 else
10714 gcc_cv_header_zstd_h=no
10716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10720 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10721 if test $gcc_cv_header_zstd_h = yes; then
10723 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10725 elif test "x$with_zstd" != x; then
10726 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10732 for ac_func in times clock kill getrlimit setrlimit atoq \
10733 popen sysconf strsignal getrusage nl_langinfo \
10734 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10735 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
10736 do :
10737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10739 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10740 cat >>confdefs.h <<_ACEOF
10741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10742 _ACEOF
10745 done
10748 if test x$ac_cv_func_mbstowcs = xyes; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10750 $as_echo_n "checking whether mbstowcs works... " >&6; }
10751 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 if test "$cross_compiling" = yes; then :
10755 gcc_cv_func_mbstowcs_works=yes
10756 else
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 #include <stdlib.h>
10760 int main()
10762 mbstowcs(0, "", 0);
10763 return 0;
10765 _ACEOF
10766 if ac_fn_cxx_try_run "$LINENO"; then :
10767 gcc_cv_func_mbstowcs_works=yes
10768 else
10769 gcc_cv_func_mbstowcs_works=no
10771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10772 conftest.$ac_objext conftest.beam conftest.$ac_ext
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10777 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10778 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10780 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10785 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10786 if test "x$ac_cv_type_ssize_t" = xyes; then :
10788 else
10790 cat >>confdefs.h <<_ACEOF
10791 #define ssize_t int
10792 _ACEOF
10796 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10797 if test "x$ac_cv_type_caddr_t" = xyes; then :
10799 else
10801 cat >>confdefs.h <<_ACEOF
10802 #define caddr_t char *
10803 _ACEOF
10807 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10809 if test "x$ac_cv_type_sighander_t" = xyes; then :
10811 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10817 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10818 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10819 gcc_header_sys_mman_h=yes
10820 else
10821 gcc_header_sys_mman_h=no
10824 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10825 if test "x$ac_cv_func_mmap" = xyes; then :
10826 gcc_func_mmap=yes
10827 else
10828 gcc_func_mmap=no
10831 if test "$gcc_header_sys_mman_h" != yes \
10832 || test "$gcc_func_mmap" != yes; then
10833 gcc_cv_func_mmap_file=no
10834 gcc_cv_func_mmap_dev_zero=no
10835 gcc_cv_func_mmap_anon=no
10836 else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10838 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10839 if ${gcc_cv_func_mmap_file+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 # Add a system to this blacklist if
10843 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10844 # memory area containing the same data that you'd get if you applied
10845 # read() to the same fd. The only system known to have a problem here
10846 # is VMS, where text files have record structure.
10847 case "$host_os" in
10848 *vms* | ultrix*)
10849 gcc_cv_func_mmap_file=no ;;
10851 gcc_cv_func_mmap_file=yes;;
10852 esac
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10855 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10857 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10858 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 # Add a system to this blacklist if it has mmap() but /dev/zero
10862 # does not exist, or if mmapping /dev/zero does not give anonymous
10863 # zeroed pages with both the following properties:
10864 # 1. If you map N consecutive pages in with one call, and then
10865 # unmap any subset of those pages, the pages that were not
10866 # explicitly unmapped remain accessible.
10867 # 2. If you map two adjacent blocks of memory and then unmap them
10868 # both at once, they must both go away.
10869 # Systems known to be in this category are Windows (all variants),
10870 # VMS, and Darwin.
10871 case "$host_os" in
10872 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10873 gcc_cv_func_mmap_dev_zero=no ;;
10875 gcc_cv_func_mmap_dev_zero=yes;;
10876 esac
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10879 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10881 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10883 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10884 if ${gcc_cv_decl_map_anon+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889 #include <sys/types.h>
10890 #include <sys/mman.h>
10891 #include <unistd.h>
10893 #ifndef MAP_ANONYMOUS
10894 #define MAP_ANONYMOUS MAP_ANON
10895 #endif
10898 main ()
10900 int n = MAP_ANONYMOUS;
10902 return 0;
10904 _ACEOF
10905 if ac_fn_cxx_try_compile "$LINENO"; then :
10906 gcc_cv_decl_map_anon=yes
10907 else
10908 gcc_cv_decl_map_anon=no
10910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10913 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10915 if test $gcc_cv_decl_map_anon = no; then
10916 gcc_cv_func_mmap_anon=no
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10919 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10920 if ${gcc_cv_func_mmap_anon+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10924 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10925 # doesn't give anonymous zeroed pages with the same properties listed
10926 # above for use of /dev/zero.
10927 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10928 case "$host_os" in
10929 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10930 gcc_cv_func_mmap_anon=no ;;
10932 gcc_cv_func_mmap_anon=yes;;
10933 esac
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10936 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10940 if test $gcc_cv_func_mmap_file = yes; then
10942 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10945 if test $gcc_cv_func_mmap_dev_zero = yes; then
10947 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10950 if test $gcc_cv_func_mmap_anon = yes; then
10952 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10957 case "${host}" in
10958 *-*-*vms*)
10959 # Under VMS, vfork works very differently than on Unix. The standard test
10960 # won't work, and it isn't easily adaptable. It makes more sense to
10961 # just force it.
10962 ac_cv_func_vfork_works=yes
10964 esac
10965 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10966 if test "x$ac_cv_type_pid_t" = xyes; then :
10968 else
10970 cat >>confdefs.h <<_ACEOF
10971 #define pid_t int
10972 _ACEOF
10976 for ac_header in vfork.h
10977 do :
10978 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10979 if test "x$ac_cv_header_vfork_h" = xyes; then :
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_VFORK_H 1
10982 _ACEOF
10985 done
10987 for ac_func in fork vfork
10988 do :
10989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10990 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10992 cat >>confdefs.h <<_ACEOF
10993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10994 _ACEOF
10997 done
10999 if test "x$ac_cv_func_fork" = xyes; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11001 $as_echo_n "checking for working fork... " >&6; }
11002 if ${ac_cv_func_fork_works+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 if test "$cross_compiling" = yes; then :
11006 ac_cv_func_fork_works=cross
11007 else
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010 $ac_includes_default
11012 main ()
11015 /* By Ruediger Kuhlmann. */
11016 return fork () < 0;
11019 return 0;
11021 _ACEOF
11022 if ac_fn_cxx_try_run "$LINENO"; then :
11023 ac_cv_func_fork_works=yes
11024 else
11025 ac_cv_func_fork_works=no
11027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11028 conftest.$ac_objext conftest.beam conftest.$ac_ext
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11033 $as_echo "$ac_cv_func_fork_works" >&6; }
11035 else
11036 ac_cv_func_fork_works=$ac_cv_func_fork
11038 if test "x$ac_cv_func_fork_works" = xcross; then
11039 case $host in
11040 *-*-amigaos* | *-*-msdosdjgpp*)
11041 # Override, as these systems have only a dummy fork() stub
11042 ac_cv_func_fork_works=no
11045 ac_cv_func_fork_works=yes
11047 esac
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11049 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11051 ac_cv_func_vfork_works=$ac_cv_func_vfork
11052 if test "x$ac_cv_func_vfork" = xyes; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11054 $as_echo_n "checking for working vfork... " >&6; }
11055 if ${ac_cv_func_vfork_works+:} false; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 if test "$cross_compiling" = yes; then :
11059 ac_cv_func_vfork_works=cross
11060 else
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063 /* Thanks to Paul Eggert for this test. */
11064 $ac_includes_default
11065 #include <sys/wait.h>
11066 #ifdef HAVE_VFORK_H
11067 # include <vfork.h>
11068 #endif
11069 /* On some sparc systems, changes by the child to local and incoming
11070 argument registers are propagated back to the parent. The compiler
11071 is told about this with #include <vfork.h>, but some compilers
11072 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11073 static variable whose address is put into a register that is
11074 clobbered by the vfork. */
11075 static void
11076 #ifdef __cplusplus
11077 sparc_address_test (int arg)
11078 # else
11079 sparc_address_test (arg) int arg;
11080 #endif
11082 static pid_t child;
11083 if (!child) {
11084 child = vfork ();
11085 if (child < 0) {
11086 perror ("vfork");
11087 _exit(2);
11089 if (!child) {
11090 arg = getpid();
11091 write(-1, "", 0);
11092 _exit (arg);
11098 main ()
11100 pid_t parent = getpid ();
11101 pid_t child;
11103 sparc_address_test (0);
11105 child = vfork ();
11107 if (child == 0) {
11108 /* Here is another test for sparc vfork register problems. This
11109 test uses lots of local variables, at least as many local
11110 variables as main has allocated so far including compiler
11111 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11112 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11113 reuse the register of parent for one of the local variables,
11114 since it will think that parent can't possibly be used any more
11115 in this routine. Assigning to the local variable will thus
11116 munge parent in the parent process. */
11117 pid_t
11118 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11119 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11120 /* Convince the compiler that p..p7 are live; otherwise, it might
11121 use the same hardware register for all 8 local variables. */
11122 if (p != p1 || p != p2 || p != p3 || p != p4
11123 || p != p5 || p != p6 || p != p7)
11124 _exit(1);
11126 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11127 from child file descriptors. If the child closes a descriptor
11128 before it execs or exits, this munges the parent's descriptor
11129 as well. Test for this by closing stdout in the child. */
11130 _exit(close(fileno(stdout)) != 0);
11131 } else {
11132 int status;
11133 struct stat st;
11135 while (wait(&status) != child)
11137 return (
11138 /* Was there some problem with vforking? */
11139 child < 0
11141 /* Did the child fail? (This shouldn't happen.) */
11142 || status
11144 /* Did the vfork/compiler bug occur? */
11145 || parent != getpid()
11147 /* Did the file descriptor bug occur? */
11148 || fstat(fileno(stdout), &st) != 0
11152 _ACEOF
11153 if ac_fn_cxx_try_run "$LINENO"; then :
11154 ac_cv_func_vfork_works=yes
11155 else
11156 ac_cv_func_vfork_works=no
11158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11159 conftest.$ac_objext conftest.beam conftest.$ac_ext
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11164 $as_echo "$ac_cv_func_vfork_works" >&6; }
11167 if test "x$ac_cv_func_fork_works" = xcross; then
11168 ac_cv_func_vfork_works=$ac_cv_func_vfork
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11170 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11173 if test "x$ac_cv_func_vfork_works" = xyes; then
11175 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11177 else
11179 $as_echo "#define vfork fork" >>confdefs.h
11182 if test "x$ac_cv_func_fork_works" = xyes; then
11184 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11190 if test "X$prefix" = "XNONE"; then
11191 acl_final_prefix="$ac_default_prefix"
11192 else
11193 acl_final_prefix="$prefix"
11195 if test "X$exec_prefix" = "XNONE"; then
11196 acl_final_exec_prefix='${prefix}'
11197 else
11198 acl_final_exec_prefix="$exec_prefix"
11200 acl_save_prefix="$prefix"
11201 prefix="$acl_final_prefix"
11202 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11203 prefix="$acl_save_prefix"
11206 # Check whether --with-gnu-ld was given.
11207 if test "${with_gnu_ld+set}" = set; then :
11208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11209 else
11210 with_gnu_ld=no
11213 # Prepare PATH_SEPARATOR.
11214 # The user is always right.
11215 if test "${PATH_SEPARATOR+set}" != set; then
11216 echo "#! /bin/sh" >conf$$.sh
11217 echo "exit 0" >>conf$$.sh
11218 chmod +x conf$$.sh
11219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11220 PATH_SEPARATOR=';'
11221 else
11222 PATH_SEPARATOR=:
11224 rm -f conf$$.sh
11226 ac_prog=ld
11227 if test "$GCC" = yes; then
11228 # Check if gcc -print-prog-name=ld gives a path.
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11230 $as_echo_n "checking for ld used by GCC... " >&6; }
11231 case $host in
11232 *-*-mingw*)
11233 # gcc leaves a trailing carriage return which upsets mingw
11234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11237 esac
11238 case $ac_prog in
11239 # Accept absolute paths.
11240 [\\/]* | [A-Za-z]:[\\/]*)
11241 re_direlt='/[^/][^/]*/\.\./'
11242 # Canonicalize the path of ld
11243 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11244 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11245 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11246 done
11247 test -z "$LD" && LD="$ac_prog"
11250 # If it fails, then pretend we aren't using GCC.
11251 ac_prog=ld
11254 # If it is relative, then search for the first ld in PATH.
11255 with_gnu_ld=unknown
11257 esac
11258 elif test "$with_gnu_ld" = yes; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11260 $as_echo_n "checking for GNU ld... " >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11263 $as_echo_n "checking for non-GNU ld... " >&6; }
11265 if ${acl_cv_path_LD+:} false; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 if test -z "$LD"; then
11269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11270 for ac_dir in $PATH; do
11271 test -z "$ac_dir" && ac_dir=.
11272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11273 acl_cv_path_LD="$ac_dir/$ac_prog"
11274 # Check to see if the program is GNU ld. I'd rather use --version,
11275 # but apparently some GNU ld's only accept -v.
11276 # Break only if it was the GNU/non-GNU ld that we prefer.
11277 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11278 test "$with_gnu_ld" != no && break
11279 else
11280 test "$with_gnu_ld" != yes && break
11283 done
11284 IFS="$ac_save_ifs"
11285 else
11286 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11290 LD="$acl_cv_path_LD"
11291 if test -n "$LD"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11293 $as_echo "$LD" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11298 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11301 if ${acl_cv_prog_gnu_ld+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11305 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11306 acl_cv_prog_gnu_ld=yes
11307 else
11308 acl_cv_prog_gnu_ld=no
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11312 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11313 with_gnu_ld=$acl_cv_prog_gnu_ld
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11318 $as_echo_n "checking for shared library run path origin... " >&6; }
11319 if ${acl_cv_rpath+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11323 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11324 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11325 . ./conftest.sh
11326 rm -f ./conftest.sh
11327 acl_cv_rpath=done
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11331 $as_echo "$acl_cv_rpath" >&6; }
11332 wl="$acl_cv_wl"
11333 libext="$acl_cv_libext"
11334 shlibext="$acl_cv_shlibext"
11335 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11336 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11337 hardcode_direct="$acl_cv_hardcode_direct"
11338 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11339 # Check whether --enable-rpath was given.
11340 if test "${enable_rpath+set}" = set; then :
11341 enableval=$enable_rpath; :
11342 else
11343 enable_rpath=yes
11353 use_additional=yes
11355 acl_save_prefix="$prefix"
11356 prefix="$acl_final_prefix"
11357 acl_save_exec_prefix="$exec_prefix"
11358 exec_prefix="$acl_final_exec_prefix"
11360 eval additional_includedir=\"$includedir\"
11361 eval additional_libdir=\"$libdir\"
11363 exec_prefix="$acl_save_exec_prefix"
11364 prefix="$acl_save_prefix"
11367 # Check whether --with-libiconv-prefix was given.
11368 if test "${with_libiconv_prefix+set}" = set; then :
11369 withval=$with_libiconv_prefix;
11370 if test "X$withval" = "Xno"; then
11371 use_additional=no
11372 else
11373 if test "X$withval" = "X"; then
11375 acl_save_prefix="$prefix"
11376 prefix="$acl_final_prefix"
11377 acl_save_exec_prefix="$exec_prefix"
11378 exec_prefix="$acl_final_exec_prefix"
11380 eval additional_includedir=\"$includedir\"
11381 eval additional_libdir=\"$libdir\"
11383 exec_prefix="$acl_save_exec_prefix"
11384 prefix="$acl_save_prefix"
11386 else
11387 additional_includedir="$withval/include"
11388 additional_libdir="$withval/lib"
11395 # Check whether --with-libiconv-type was given.
11396 if test "${with_libiconv_type+set}" = set; then :
11397 withval=$with_libiconv_type; with_libiconv_type=$withval
11398 else
11399 with_libiconv_type=auto
11402 lib_type=`eval echo \$with_libiconv_type`
11404 LIBICONV=
11405 LTLIBICONV=
11406 INCICONV=
11407 rpathdirs=
11408 ltrpathdirs=
11409 names_already_handled=
11410 names_next_round='iconv '
11411 while test -n "$names_next_round"; do
11412 names_this_round="$names_next_round"
11413 names_next_round=
11414 for name in $names_this_round; do
11415 already_handled=
11416 for n in $names_already_handled; do
11417 if test "$n" = "$name"; then
11418 already_handled=yes
11419 break
11421 done
11422 if test -z "$already_handled"; then
11423 names_already_handled="$names_already_handled $name"
11424 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11425 eval value=\"\$HAVE_LIB$uppername\"
11426 if test -n "$value"; then
11427 if test "$value" = yes; then
11428 eval value=\"\$LIB$uppername\"
11429 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11430 eval value=\"\$LTLIB$uppername\"
11431 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11432 else
11435 else
11436 found_dir=
11437 found_la=
11438 found_so=
11439 found_a=
11440 if test $use_additional = yes; then
11441 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11442 found_dir="$additional_libdir"
11443 found_so="$additional_libdir/lib$name.$shlibext"
11444 if test -f "$additional_libdir/lib$name.la"; then
11445 found_la="$additional_libdir/lib$name.la"
11447 elif test x$lib_type != xshared; then
11448 if test -f "$additional_libdir/lib$name.$libext"; then
11449 found_dir="$additional_libdir"
11450 found_a="$additional_libdir/lib$name.$libext"
11451 if test -f "$additional_libdir/lib$name.la"; then
11452 found_la="$additional_libdir/lib$name.la"
11457 if test "X$found_dir" = "X"; then
11458 for x in $LDFLAGS $LTLIBICONV; do
11460 acl_save_prefix="$prefix"
11461 prefix="$acl_final_prefix"
11462 acl_save_exec_prefix="$exec_prefix"
11463 exec_prefix="$acl_final_exec_prefix"
11464 eval x=\"$x\"
11465 exec_prefix="$acl_save_exec_prefix"
11466 prefix="$acl_save_prefix"
11468 case "$x" in
11469 -L*)
11470 dir=`echo "X$x" | sed -e 's/^X-L//'`
11471 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11472 found_dir="$dir"
11473 found_so="$dir/lib$name.$shlibext"
11474 if test -f "$dir/lib$name.la"; then
11475 found_la="$dir/lib$name.la"
11477 elif test x$lib_type != xshared; then
11478 if test -f "$dir/lib$name.$libext"; then
11479 found_dir="$dir"
11480 found_a="$dir/lib$name.$libext"
11481 if test -f "$dir/lib$name.la"; then
11482 found_la="$dir/lib$name.la"
11487 esac
11488 if test "X$found_dir" != "X"; then
11489 break
11491 done
11493 if test "X$found_dir" != "X"; then
11494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11495 if test "X$found_so" != "X"; then
11496 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11498 else
11499 haveit=
11500 for x in $ltrpathdirs; do
11501 if test "X$x" = "X$found_dir"; then
11502 haveit=yes
11503 break
11505 done
11506 if test -z "$haveit"; then
11507 ltrpathdirs="$ltrpathdirs $found_dir"
11509 if test "$hardcode_direct" = yes; then
11510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11511 else
11512 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11514 haveit=
11515 for x in $rpathdirs; do
11516 if test "X$x" = "X$found_dir"; then
11517 haveit=yes
11518 break
11520 done
11521 if test -z "$haveit"; then
11522 rpathdirs="$rpathdirs $found_dir"
11524 else
11525 haveit=
11526 for x in $LDFLAGS $LIBICONV; do
11528 acl_save_prefix="$prefix"
11529 prefix="$acl_final_prefix"
11530 acl_save_exec_prefix="$exec_prefix"
11531 exec_prefix="$acl_final_exec_prefix"
11532 eval x=\"$x\"
11533 exec_prefix="$acl_save_exec_prefix"
11534 prefix="$acl_save_prefix"
11536 if test "X$x" = "X-L$found_dir"; then
11537 haveit=yes
11538 break
11540 done
11541 if test -z "$haveit"; then
11542 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11544 if test "$hardcode_minus_L" != no; then
11545 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11546 else
11547 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11552 else
11553 if test "X$found_a" != "X"; then
11554 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11555 else
11556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11559 additional_includedir=
11560 case "$found_dir" in
11561 */lib | */lib/)
11562 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11563 additional_includedir="$basedir/include"
11565 esac
11566 if test "X$additional_includedir" != "X"; then
11567 if test "X$additional_includedir" != "X/usr/include"; then
11568 haveit=
11569 if test "X$additional_includedir" = "X/usr/local/include"; then
11570 if test -n "$GCC"; then
11571 case $host_os in
11572 linux*) haveit=yes;;
11573 esac
11576 if test -z "$haveit"; then
11577 for x in $CPPFLAGS $INCICONV; do
11579 acl_save_prefix="$prefix"
11580 prefix="$acl_final_prefix"
11581 acl_save_exec_prefix="$exec_prefix"
11582 exec_prefix="$acl_final_exec_prefix"
11583 eval x=\"$x\"
11584 exec_prefix="$acl_save_exec_prefix"
11585 prefix="$acl_save_prefix"
11587 if test "X$x" = "X-I$additional_includedir"; then
11588 haveit=yes
11589 break
11591 done
11592 if test -z "$haveit"; then
11593 if test -d "$additional_includedir"; then
11594 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11600 if test -n "$found_la"; then
11601 save_libdir="$libdir"
11602 case "$found_la" in
11603 */* | *\\*) . "$found_la" ;;
11604 *) . "./$found_la" ;;
11605 esac
11606 libdir="$save_libdir"
11607 for dep in $dependency_libs; do
11608 case "$dep" in
11609 -L*)
11610 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11611 if test "X$additional_libdir" != "X/usr/lib"; then
11612 haveit=
11613 if test "X$additional_libdir" = "X/usr/local/lib"; then
11614 if test -n "$GCC"; then
11615 case $host_os in
11616 linux*) haveit=yes;;
11617 esac
11620 if test -z "$haveit"; then
11621 haveit=
11622 for x in $LDFLAGS $LIBICONV; do
11624 acl_save_prefix="$prefix"
11625 prefix="$acl_final_prefix"
11626 acl_save_exec_prefix="$exec_prefix"
11627 exec_prefix="$acl_final_exec_prefix"
11628 eval x=\"$x\"
11629 exec_prefix="$acl_save_exec_prefix"
11630 prefix="$acl_save_prefix"
11632 if test "X$x" = "X-L$additional_libdir"; then
11633 haveit=yes
11634 break
11636 done
11637 if test -z "$haveit"; then
11638 if test -d "$additional_libdir"; then
11639 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11642 haveit=
11643 for x in $LDFLAGS $LTLIBICONV; do
11645 acl_save_prefix="$prefix"
11646 prefix="$acl_final_prefix"
11647 acl_save_exec_prefix="$exec_prefix"
11648 exec_prefix="$acl_final_exec_prefix"
11649 eval x=\"$x\"
11650 exec_prefix="$acl_save_exec_prefix"
11651 prefix="$acl_save_prefix"
11653 if test "X$x" = "X-L$additional_libdir"; then
11654 haveit=yes
11655 break
11657 done
11658 if test -z "$haveit"; then
11659 if test -d "$additional_libdir"; then
11660 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11666 -R*)
11667 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11668 if test "$enable_rpath" != no; then
11669 haveit=
11670 for x in $rpathdirs; do
11671 if test "X$x" = "X$dir"; then
11672 haveit=yes
11673 break
11675 done
11676 if test -z "$haveit"; then
11677 rpathdirs="$rpathdirs $dir"
11679 haveit=
11680 for x in $ltrpathdirs; do
11681 if test "X$x" = "X$dir"; then
11682 haveit=yes
11683 break
11685 done
11686 if test -z "$haveit"; then
11687 ltrpathdirs="$ltrpathdirs $dir"
11691 -l*)
11692 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11694 *.la)
11695 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11698 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11699 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11701 esac
11702 done
11704 else
11705 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11706 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11708 else
11709 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11715 done
11716 done
11717 if test "X$rpathdirs" != "X"; then
11718 if test -n "$hardcode_libdir_separator"; then
11719 alldirs=
11720 for found_dir in $rpathdirs; do
11721 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11722 done
11723 acl_save_libdir="$libdir"
11724 libdir="$alldirs"
11725 eval flag=\"$hardcode_libdir_flag_spec\"
11726 libdir="$acl_save_libdir"
11727 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11728 else
11729 for found_dir in $rpathdirs; do
11730 acl_save_libdir="$libdir"
11731 libdir="$found_dir"
11732 eval flag=\"$hardcode_libdir_flag_spec\"
11733 libdir="$acl_save_libdir"
11734 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11735 done
11738 if test "X$ltrpathdirs" != "X"; then
11739 for found_dir in $ltrpathdirs; do
11740 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11741 done
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11751 $as_echo_n "checking for iconv... " >&6; }
11752 if ${am_cv_func_iconv+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11756 am_cv_func_iconv="no, consider installing GNU libiconv"
11757 am_cv_lib_iconv=no
11758 am_save_CPPFLAGS="$CPPFLAGS"
11759 CPPFLAGS="$CPPFLAGS $INCICONV"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762 #include <stdlib.h>
11763 #include <iconv.h>
11765 main ()
11767 iconv_t cd = iconv_open("","");
11768 iconv(cd,NULL,NULL,NULL,NULL);
11769 iconv_close(cd);
11771 return 0;
11773 _ACEOF
11774 if ac_fn_cxx_try_link "$LINENO"; then :
11775 am_cv_func_iconv=yes
11777 rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11779 CPPFLAGS="$am_save_CPPFLAGS"
11781 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11782 for _libs in .libs _libs; do
11783 am_save_CPPFLAGS="$CPPFLAGS"
11784 am_save_LIBS="$LIBS"
11785 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11786 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 #include <stdlib.h>
11790 #include <iconv.h>
11792 main ()
11794 iconv_t cd = iconv_open("","");
11795 iconv(cd,NULL,NULL,NULL,NULL);
11796 iconv_close(cd);
11798 return 0;
11800 _ACEOF
11801 if ac_fn_cxx_try_link "$LINENO"; then :
11802 INCICONV="-I../libiconv/include"
11803 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11804 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11805 am_cv_lib_iconv=yes
11806 am_cv_func_iconv=yes
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 CPPFLAGS="$am_save_CPPFLAGS"
11811 LIBS="$am_save_LIBS"
11812 if test "$am_cv_func_iconv" = "yes"; then
11813 break
11815 done
11818 if test "$am_cv_func_iconv" != yes; then
11819 am_save_CPPFLAGS="$CPPFLAGS"
11820 am_save_LIBS="$LIBS"
11821 CPPFLAGS="$CPPFLAGS $INCICONV"
11822 LIBS="$LIBS $LIBICONV"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 #include <stdlib.h>
11826 #include <iconv.h>
11828 main ()
11830 iconv_t cd = iconv_open("","");
11831 iconv(cd,NULL,NULL,NULL,NULL);
11832 iconv_close(cd);
11834 return 0;
11836 _ACEOF
11837 if ac_fn_cxx_try_link "$LINENO"; then :
11838 am_cv_lib_iconv=yes
11839 am_cv_func_iconv=yes
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 CPPFLAGS="$am_save_CPPFLAGS"
11844 LIBS="$am_save_LIBS"
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11849 $as_echo "$am_cv_func_iconv" >&6; }
11850 if test "$am_cv_func_iconv" = yes; then
11852 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11855 if test "$am_cv_lib_iconv" = yes; then
11857 for element in $INCICONV; do
11858 haveit=
11859 for x in $CPPFLAGS; do
11861 acl_save_prefix="$prefix"
11862 prefix="$acl_final_prefix"
11863 acl_save_exec_prefix="$exec_prefix"
11864 exec_prefix="$acl_final_exec_prefix"
11865 eval x=\"$x\"
11866 exec_prefix="$acl_save_exec_prefix"
11867 prefix="$acl_save_prefix"
11869 if test "X$x" = "X$element"; then
11870 haveit=yes
11871 break
11873 done
11874 if test -z "$haveit"; then
11875 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11877 done
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11880 $as_echo_n "checking how to link with libiconv... " >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11882 $as_echo "$LIBICONV" >&6; }
11883 else
11884 LIBICONV=
11885 LTLIBICONV=
11890 if test "$am_cv_func_iconv" = yes; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11892 $as_echo_n "checking for iconv declaration... " >&6; }
11893 if ${am_cv_proto_iconv+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 #include <stdlib.h>
11901 #include <iconv.h>
11902 extern
11903 #ifdef __cplusplus
11905 #endif
11906 #if defined(__STDC__) || defined(__cplusplus)
11907 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11908 #else
11909 size_t iconv();
11910 #endif
11913 main ()
11917 return 0;
11919 _ACEOF
11920 if ac_fn_cxx_try_compile "$LINENO"; then :
11921 am_cv_proto_iconv_arg1=""
11922 else
11923 am_cv_proto_iconv_arg1="const"
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 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);"
11929 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11931 }$am_cv_proto_iconv" >&5
11932 $as_echo "${ac_t:-
11933 }$am_cv_proto_iconv" >&6; }
11935 cat >>confdefs.h <<_ACEOF
11936 #define ICONV_CONST $am_cv_proto_iconv_arg1
11937 _ACEOF
11942 # Until we have in-tree GNU iconv:
11943 LIBICONV_DEP=
11944 if test -f "$LTLIBICONV"; then
11945 LIBICONV_DEP=$LTLIBICONV
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11951 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11952 if ${am_cv_val_LC_MESSAGES+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957 #include <locale.h>
11959 main ()
11961 return LC_MESSAGES
11963 return 0;
11965 _ACEOF
11966 if ac_fn_cxx_try_link "$LINENO"; then :
11967 am_cv_val_LC_MESSAGES=yes
11968 else
11969 am_cv_val_LC_MESSAGES=no
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11975 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11976 if test $am_cv_val_LC_MESSAGES = yes; then
11978 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11985 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11986 if ${am_cv_langinfo_codeset+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 #include <langinfo.h>
11993 main ()
11995 char* cs = nl_langinfo(CODESET);
11997 return 0;
11999 _ACEOF
12000 if ac_fn_cxx_try_link "$LINENO"; then :
12001 am_cv_langinfo_codeset=yes
12002 else
12003 am_cv_langinfo_codeset=no
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12010 $as_echo "$am_cv_langinfo_codeset" >&6; }
12011 if test $am_cv_langinfo_codeset = yes; then
12013 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12018 # We will need to find libiberty.h and ansidecl.h
12019 saved_CFLAGS="$CFLAGS"
12020 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12021 saved_CXXFLAGS="$CXXFLAGS"
12022 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12024 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12025 # normal autoconf function for these. But force definition of
12026 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12027 # basename handling in libiberty.h.
12028 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12029 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12030 #undef HAVE_DECL_BASENAME
12031 #define HAVE_DECL_BASENAME 1
12032 #include \"ansidecl.h\"
12033 #include \"system.h\"
12035 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12036 ac_have_decl=1
12037 else
12038 ac_have_decl=0
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_DECL_BASENAME $ac_have_decl
12043 _ACEOF
12044 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12045 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12046 #undef HAVE_DECL_BASENAME
12047 #define HAVE_DECL_BASENAME 1
12048 #include \"ansidecl.h\"
12049 #include \"system.h\"
12051 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12052 ac_have_decl=1
12053 else
12054 ac_have_decl=0
12057 cat >>confdefs.h <<_ACEOF
12058 #define HAVE_DECL_STRSTR $ac_have_decl
12059 _ACEOF
12062 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12063 madvise stpcpy strnlen strsignal strverscmp \
12064 strtol strtoul strtoll strtoull setenv unsetenv \
12065 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12066 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
12068 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12070 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12071 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 #undef $ac_tr_decl
12077 #define $ac_tr_decl 1
12079 #include "ansidecl.h"
12080 #include "system.h"
12083 main ()
12085 #ifndef $ac_func
12086 char *(*pfn) = (char *(*)) $ac_func ;
12087 #endif
12089 return 0;
12091 _ACEOF
12092 if ac_fn_cxx_try_compile "$LINENO"; then :
12093 eval "gcc_cv_have_decl_$ac_func=yes"
12094 else
12095 eval "gcc_cv_have_decl_$ac_func=no"
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12103 #define $ac_tr_decl 1
12104 _ACEOF
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12109 #define $ac_tr_decl 0
12110 _ACEOF
12114 done
12117 for ac_func in getrlimit setrlimit getrusage
12119 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12121 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12122 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 #undef $ac_tr_decl
12128 #define $ac_tr_decl 1
12130 #include "ansidecl.h"
12131 #include "system.h"
12132 #ifdef HAVE_SYS_RESOURCE_H
12133 #include <sys/resource.h>
12134 #endif
12138 main ()
12140 #ifndef $ac_func
12141 char *(*pfn) = (char *(*)) $ac_func ;
12142 #endif
12144 return 0;
12146 _ACEOF
12147 if ac_fn_cxx_try_compile "$LINENO"; then :
12148 eval "gcc_cv_have_decl_$ac_func=yes"
12149 else
12150 eval "gcc_cv_have_decl_$ac_func=no"
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12158 #define $ac_tr_decl 1
12159 _ACEOF
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12164 #define $ac_tr_decl 0
12165 _ACEOF
12169 done
12172 for ac_func in mallinfo mallinfo2
12174 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12176 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12177 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #undef $ac_tr_decl
12183 #define $ac_tr_decl 1
12185 #include "ansidecl.h"
12186 #include "system.h"
12187 #ifdef HAVE_MALLOC_H
12188 #include <malloc.h>
12189 #endif
12193 main ()
12195 #ifndef $ac_func
12196 char *(*pfn) = (char *(*)) $ac_func ;
12197 #endif
12199 return 0;
12201 _ACEOF
12202 if ac_fn_cxx_try_compile "$LINENO"; then :
12203 eval "gcc_cv_have_decl_$ac_func=yes"
12204 else
12205 eval "gcc_cv_have_decl_$ac_func=no"
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12213 #define $ac_tr_decl 1
12214 _ACEOF
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12219 #define $ac_tr_decl 0
12220 _ACEOF
12224 done
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 #include "ansidecl.h"
12231 #include "system.h"
12232 #ifdef HAVE_SYS_RESOURCE_H
12233 #include <sys/resource.h>
12234 #endif
12237 main ()
12239 rlim_t l = 0;
12241 return 0;
12243 _ACEOF
12244 if ac_fn_cxx_try_compile "$LINENO"; then :
12246 else
12248 $as_echo "#define rlim_t long" >>confdefs.h
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12254 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12255 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12256 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12257 for ac_func in ldgetname
12259 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12261 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12262 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #undef $ac_tr_decl
12268 #define $ac_tr_decl 1
12270 #include "ansidecl.h"
12271 #include "system.h"
12272 #ifdef HAVE_LDFCN_H
12273 #undef FREAD
12274 #undef FWRITE
12275 #include <ldfcn.h>
12276 #endif
12280 main ()
12282 #ifndef $ac_func
12283 char *(*pfn) = (char *(*)) $ac_func ;
12284 #endif
12286 return 0;
12288 _ACEOF
12289 if ac_fn_cxx_try_compile "$LINENO"; then :
12290 eval "gcc_cv_have_decl_$ac_func=yes"
12291 else
12292 eval "gcc_cv_have_decl_$ac_func=no"
12294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12300 #define $ac_tr_decl 1
12301 _ACEOF
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12306 #define $ac_tr_decl 0
12307 _ACEOF
12311 done
12314 for ac_func in times
12316 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12318 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12319 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324 #undef $ac_tr_decl
12325 #define $ac_tr_decl 1
12327 #include "ansidecl.h"
12328 #include "system.h"
12329 #ifdef HAVE_SYS_TIMES_H
12330 #include <sys/times.h>
12331 #endif
12335 main ()
12337 #ifndef $ac_func
12338 char *(*pfn) = (char *(*)) $ac_func ;
12339 #endif
12341 return 0;
12343 _ACEOF
12344 if ac_fn_cxx_try_compile "$LINENO"; then :
12345 eval "gcc_cv_have_decl_$ac_func=yes"
12346 else
12347 eval "gcc_cv_have_decl_$ac_func=no"
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12354 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12355 #define $ac_tr_decl 1
12356 _ACEOF
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12361 #define $ac_tr_decl 0
12362 _ACEOF
12366 done
12369 for ac_func in sigaltstack
12371 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12373 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12374 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 #undef $ac_tr_decl
12380 #define $ac_tr_decl 1
12382 #include "ansidecl.h"
12383 #include "system.h"
12384 #include <signal.h>
12388 main ()
12390 #ifndef $ac_func
12391 char *(*pfn) = (char *(*)) $ac_func ;
12392 #endif
12394 return 0;
12396 _ACEOF
12397 if ac_fn_cxx_try_compile "$LINENO"; then :
12398 eval "gcc_cv_have_decl_$ac_func=yes"
12399 else
12400 eval "gcc_cv_have_decl_$ac_func=no"
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12407 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12408 #define $ac_tr_decl 1
12409 _ACEOF
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12414 #define $ac_tr_decl 0
12415 _ACEOF
12419 done
12422 # More time-related stuff.
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12424 $as_echo_n "checking for struct tms... " >&6; }
12425 if ${ac_cv_struct_tms+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12432 #include "ansidecl.h"
12433 #include "system.h"
12434 #ifdef HAVE_SYS_TIMES_H
12435 #include <sys/times.h>
12436 #endif
12439 main ()
12441 struct tms tms;
12443 return 0;
12445 _ACEOF
12446 if ac_fn_cxx_try_compile "$LINENO"; then :
12447 ac_cv_struct_tms=yes
12448 else
12449 ac_cv_struct_tms=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12454 $as_echo "$ac_cv_struct_tms" >&6; }
12455 if test $ac_cv_struct_tms = yes; then
12457 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12461 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12462 # revisit after autoconf 2.50.
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12464 $as_echo_n "checking for clock_t... " >&6; }
12465 if ${gcc_cv_type_clock_t+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 #include "ansidecl.h"
12473 #include "system.h"
12476 main ()
12478 clock_t x;
12480 return 0;
12482 _ACEOF
12483 if ac_fn_cxx_try_compile "$LINENO"; then :
12484 gcc_cv_type_clock_t=yes
12485 else
12486 gcc_cv_type_clock_t=no
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12491 $as_echo "$gcc_cv_type_clock_t" >&6; }
12492 if test $gcc_cv_type_clock_t = yes; then
12494 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12498 # Check if F_SETLKW is supported by fcntl.
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12500 $as_echo_n "checking for F_SETLKW... " >&6; }
12501 if ${ac_cv_f_setlkw+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12508 #include <fcntl.h>
12510 main ()
12513 struct flock fl;
12514 fl.l_whence = 0;
12515 fl.l_start = 0;
12516 fl.l_len = 0;
12517 fl.l_pid = 0;
12518 return fcntl (1, F_SETLKW, &fl);
12520 return 0;
12522 _ACEOF
12523 if ac_fn_cxx_try_compile "$LINENO"; then :
12524 ac_cv_f_setlkw=yes
12525 else
12526 ac_cv_f_setlkw=no
12528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12531 $as_echo "$ac_cv_f_setlkw" >&6; }
12532 if test $ac_cv_f_setlkw = yes; then
12534 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12538 # Check if O_CLOEXEC is defined by fcntl
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12540 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12541 if ${ac_cv_o_cloexec+:} false; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 #include <fcntl.h>
12550 main ()
12553 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12555 return 0;
12557 _ACEOF
12558 if ac_fn_cxx_try_compile "$LINENO"; then :
12559 ac_cv_o_cloexec=yes
12560 else
12561 ac_cv_o_cloexec=no
12563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12566 $as_echo "$ac_cv_o_cloexec" >&6; }
12567 if test $ac_cv_o_cloexec = yes; then
12569 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12573 # Check if O_NONBLOCK is defined by fcntl
12574 for ac_header in fcntl.h
12575 do :
12576 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12577 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_FCNTL_H 1
12580 _ACEOF
12583 done
12585 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12587 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12591 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12593 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12598 # C++ Modules would like some networking features to provide the mapping
12599 # server. You can still use modules without them though.
12600 # The following network-related checks could probably do with some
12601 # Windows and other non-linux defenses and checking.
12603 # Local socket connectivity wants AF_UNIX networking
12604 # Check for AF_UNIX networking
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12606 $as_echo_n "checking for AF_UNIX... " >&6; }
12607 if ${ac_cv_af_unix+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12614 #include <sys/types.h>
12615 #include <sys/socket.h>
12616 #include <sys/un.h>
12617 #include <netinet/in.h>
12619 main ()
12622 sockaddr_un un;
12623 un.sun_family = AF_UNSPEC;
12624 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12625 connect (fd, (sockaddr *)&un, sizeof (un));
12627 return 0;
12629 _ACEOF
12630 if ac_fn_cxx_try_compile "$LINENO"; then :
12631 ac_cv_af_unix=yes
12632 else
12633 ac_cv_af_unix=no
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12638 $as_echo "$ac_cv_af_unix" >&6; }
12639 if test $ac_cv_af_unix = yes; then
12641 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12645 # Remote socket connectivity wants AF_INET6 networking
12646 # Check for AF_INET6 networking
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12648 $as_echo_n "checking for AF_INET6... " >&6; }
12649 if ${ac_cv_af_inet6+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12656 #include <sys/types.h>
12657 #include <sys/socket.h>
12658 #include <netinet/in.h>
12659 #include <netdb.h>
12661 main ()
12664 sockaddr_in6 in6;
12665 in6.sin6_family = AF_UNSPEC;
12666 struct addrinfo *addrs = 0;
12667 struct addrinfo hints;
12668 hints.ai_flags = 0;
12669 hints.ai_family = AF_INET6;
12670 hints.ai_socktype = SOCK_STREAM;
12671 hints.ai_protocol = 0;
12672 hints.ai_canonname = 0;
12673 hints.ai_addr = 0;
12674 hints.ai_next = 0;
12675 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12676 const char *str = gai_strerror (e);
12677 freeaddrinfo (addrs);
12678 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12679 connect (fd, (sockaddr *)&in6, sizeof (in6));
12681 return 0;
12683 _ACEOF
12684 if ac_fn_cxx_try_compile "$LINENO"; then :
12685 ac_cv_af_inet6=yes
12686 else
12687 ac_cv_af_inet6=no
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12692 $as_echo "$ac_cv_af_inet6" >&6; }
12693 if test $ac_cv_af_inet6 = yes; then
12695 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12699 # Check if _LK_LOCK is supported by _locking
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12701 $as_echo_n "checking for _LK_LOCK... " >&6; }
12702 if ${ac_cv_lk_lock+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 #include <io.h>
12710 #include <sys/locking.h>
12712 main ()
12715 int fd;
12716 return _locking (fd, _LK_LOCK, 0);
12718 return 0;
12720 _ACEOF
12721 if ac_fn_cxx_try_compile "$LINENO"; then :
12722 ac_cv_lk_lock=yes
12723 else
12724 ac_cv_lk_lock=no
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12729 $as_echo "$ac_cv_lk_lock" >&6; }
12730 if test $ac_cv_lk_lock = yes; then
12732 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12736 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12737 CFLAGS="$saved_CFLAGS"
12738 CXXFLAGS="$saved_CXXFLAGS"
12740 # mkdir takes a single argument on some systems.
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12742 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12743 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12749 #include <sys/types.h>
12750 #ifdef HAVE_SYS_STAT_H
12751 # include <sys/stat.h>
12752 #endif
12753 #ifdef HAVE_UNISTD_H
12754 # include <unistd.h>
12755 #endif
12756 #ifdef HAVE_DIRECT_H
12757 # include <direct.h>
12758 #endif
12760 main ()
12762 mkdir ("foo", 0);
12764 return 0;
12766 _ACEOF
12767 if ac_fn_cxx_try_compile "$LINENO"; then :
12768 gcc_cv_mkdir_takes_one_arg=no
12769 else
12770 gcc_cv_mkdir_takes_one_arg=yes
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12775 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12776 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12778 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12783 # File extensions
12784 manext='.1'
12785 objext='.o'
12789 # With Setjmp/Longjmp based exception handling.
12790 # Check whether --enable-sjlj-exceptions was given.
12791 if test "${enable_sjlj_exceptions+set}" = set; then :
12792 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12793 else
12794 case $target in
12795 lm32*-*-*)
12796 force_sjlj_exceptions=yes
12797 enableval=yes
12800 force_sjlj_exceptions=no
12802 esac
12805 if test $force_sjlj_exceptions = yes; then
12806 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12808 cat >>confdefs.h <<_ACEOF
12809 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12810 _ACEOF
12814 # --------------------------------------------------------
12815 # Build, host, and target specific configuration fragments
12816 # --------------------------------------------------------
12818 # Collect build-machine-specific information.
12819 . ${srcdir}/config.build || exit 1
12821 # Collect host-machine-specific information.
12822 . ${srcdir}/config.host || exit 1
12824 target_gtfiles=
12826 # Collect target-machine-specific information.
12827 . ${srcdir}/config.gcc || exit 1
12829 extra_objs="${host_extra_objs} ${extra_objs}"
12830 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12832 # Default the target-machine variables that were not explicitly set.
12833 if test x"$tm_file" = x
12834 then tm_file=$cpu_type/$cpu_type.h; fi
12836 if test x"$extra_headers" = x
12837 then extra_headers=; fi
12839 if test x$md_file = x
12840 then md_file=$cpu_type/$cpu_type.md; fi
12842 if test x$out_file = x
12843 then out_file=$cpu_type/$cpu_type.cc; fi
12845 if test x"$tmake_file" = x
12846 then tmake_file=$cpu_type/t-$cpu_type
12849 # Support --enable-initfini-array.
12850 if test x$enable_initfini_array != xno; then
12851 tm_file="${tm_file} initfini-array.h"
12854 if test x"$dwarf2" = xyes
12855 then tm_file="$tm_file tm-dwarf2.h"
12858 # Say what files are being used for the output code and MD file.
12859 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12860 echo "Using \`$srcdir/config/$md_file' as machine description file."
12862 # If any of the xm_file variables contain nonexistent files, warn
12863 # about them and drop them.
12866 for x in $build_xm_file; do
12867 if test -f $srcdir/config/$x
12868 then bx="$bx $x"
12869 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12870 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12872 done
12873 build_xm_file="$bx"
12876 for x in $host_xm_file; do
12877 if test -f $srcdir/config/$x
12878 then hx="$hx $x"
12879 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12880 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12882 done
12883 host_xm_file="$hx"
12886 for x in $xm_file; do
12887 if test -f $srcdir/config/$x
12888 then tx="$tx $x"
12889 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12890 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12892 done
12893 xm_file="$tx"
12895 count=a
12896 for f in $tm_file; do
12897 count=${count}x
12898 done
12899 if test $count = ax; then
12900 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12901 else
12902 echo "Using the following target machine macro files:"
12903 for f in $tm_file; do
12904 echo " $srcdir/config/$f"
12905 done
12908 if test x$use_long_long_for_widest_fast_int = xyes; then
12910 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12914 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_GNU_LD $gnu_ld_bool
12918 _ACEOF
12921 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_GNU_AS $gnu_as_bool
12925 _ACEOF
12928 count=a
12929 for f in $host_xm_file; do
12930 count=${count}x
12931 done
12932 if test $count = a; then
12934 elif test $count = ax; then
12935 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12936 else
12937 echo "Using the following host machine macro files:"
12938 for f in $host_xm_file; do
12939 echo " $srcdir/config/$f"
12940 done
12942 echo "Using ${out_host_hook_obj} for host machine hooks."
12944 if test "$host_xm_file" != "$build_xm_file"; then
12945 count=a
12946 for f in $build_xm_file; do
12947 count=${count}x
12948 done
12949 if test $count = a; then
12951 elif test $count = ax; then
12952 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12953 else
12954 echo "Using the following build machine macro files:"
12955 for f in $build_xm_file; do
12956 echo " $srcdir/config/$f"
12957 done
12961 if test -n "$configured_native_system_header_dir"; then
12962 native_system_header_dir=$configured_native_system_header_dir
12964 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12967 case ${host} in
12968 powerpc*-*-darwin*)
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12970 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12971 if ${gcc_cv_mcontext_underscores+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12977 #include <sys/cdefs.h>
12978 #include <sys/signal.h>
12979 #include <ucontext.h>
12980 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12982 _ACEOF
12983 if ac_fn_cxx_try_compile "$LINENO"; then :
12984 gcc_cv_mcontext_underscores=no
12985 else
12986 gcc_cv_mcontext_underscores=yes
12988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12991 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12992 if test $gcc_cv_mcontext_underscores = yes; then
12994 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12998 esac
13000 # ---------
13001 # Threading
13002 # ---------
13004 # Check if a valid thread package
13005 case ${enable_threads} in
13006 "" | no)
13007 # No threads
13008 target_thread_file='single'
13010 yes)
13011 # default
13012 target_thread_file='single'
13014 aix | dce | lynx | mipssde | posix | rtems | \
13015 single | tpf | vxworks | win32 | mcf)
13016 target_thread_file=${enable_threads}
13019 echo "${enable_threads} is an unknown thread package" 1>&2
13020 exit 1
13022 esac
13024 if test x${thread_file} = x; then
13025 # No thread file set by target-specific clauses in config.gcc,
13026 # so use file chosen by default logic above
13027 thread_file=${target_thread_file}
13030 # --------
13031 # UNSORTED
13032 # --------
13034 use_cxa_atexit=no
13035 if test x$enable___cxa_atexit = xyes || \
13036 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13037 if test x$host = x$target; then
13038 case $host in
13039 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13040 # keyed to flag_use_cxa_atexit
13041 *-*-mingw32*)
13042 use_cxa_atexit=yes
13044 powerpc-ibm-aix*)
13045 use_cxa_atexit=yes
13048 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13049 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13050 use_cxa_atexit=yes
13051 else
13052 echo "__cxa_atexit can't be enabled on this target"
13056 esac
13057 else
13058 # We can't check for __cxa_atexit when building a cross, so assume
13059 # it is available
13060 use_cxa_atexit=yes
13062 if test x$use_cxa_atexit = xyes; then
13064 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13069 # Look for a file containing extra machine modes.
13070 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13071 extra_modes_file='$(srcdir)'/config/${extra_modes}
13074 cat >>confdefs.h <<_ACEOF
13075 #define EXTRA_MODES_FILE "config/$extra_modes"
13076 _ACEOF
13080 # Convert extra_options into a form suitable for Makefile use.
13081 extra_opt_files=
13082 all_opt_files=
13083 for f in $extra_options; do
13084 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13085 all_opt_files="$all_opt_files $srcdir/config/$f"
13086 done
13089 # auto-host.h is the file containing items generated by autoconf and is
13090 # the first file included by config.h.
13091 # If host=build, it is correct to have bconfig include auto-host.h
13092 # as well. If host!=build, we are in error and need to do more
13093 # work to find out the build config parameters.
13094 if test x$host = x$build
13095 then
13096 build_auto=auto-host.h
13097 HAVE_AUTO_BUILD='# '
13098 else
13099 # We create a subdir, then run autoconf in the subdir.
13100 # To prevent recursion we set host and build for the new
13101 # invocation of configure to the build for this invocation
13102 # of configure.
13103 tempdir=build.$$
13104 rm -rf $tempdir
13105 mkdir $tempdir
13106 cd $tempdir
13107 case ${srcdir} in
13108 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13109 *) realsrcdir=../${srcdir};;
13110 esac
13111 # Clearing GMPINC is necessary to prevent host headers being
13112 # used by the build compiler. Defining GENERATOR_FILE stops
13113 # system.h from including gmp.h.
13114 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13115 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13116 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13117 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13118 ${realsrcdir}/configure \
13119 --enable-languages=${enable_languages-all} \
13120 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13121 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13122 --target=$target_alias --host=$build_alias \
13123 --build=$build_alias || exit # retaining $tempdir
13125 # We just finished tests for the build machine, so rename
13126 # the file auto-build.h in the gcc directory.
13127 mv auto-host.h ../auto-build.h
13128 cd ..
13129 rm -rf $tempdir
13130 build_auto=auto-build.h
13131 HAVE_AUTO_BUILD=
13136 tm_file="${tm_file} defaults.h"
13137 tm_p_file="${tm_p_file} tm-preds.h"
13138 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13139 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13140 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13141 # put this back in temporarily.
13142 xm_file="auto-host.h ansidecl.h ${xm_file}"
13144 # --------
13145 # UNSORTED
13146 # --------
13148 # Compile in configure arguments.
13149 if test -f configargs.h ; then
13150 # Being re-configured.
13151 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13152 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13153 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13154 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13156 else
13157 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13160 # Double all backslashes and backslash all quotes to turn
13161 # gcc_config_arguments into a C string.
13162 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13163 $gcc_config_arguments
13165 gcc_config_arguments_str=`cat conftest.out`
13166 rm -f conftest.out
13168 cat > configargs.h <<EOF
13169 /* Generated automatically. */
13170 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13171 static const char thread_model[] = "$thread_file";
13173 static const struct {
13174 const char *name, *value;
13175 } configure_default_options[] = $configure_default_options;
13178 gcc_BASEVER=`cat $srcdir/BASE-VER`
13179 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13180 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13181 if test -f $srcdir/REVISION ; then
13182 gcc_REVISION=`cat $srcdir/REVISION`
13183 else
13184 gcc_REVISION=""
13186 cat > plugin-version.h <<EOF
13187 #include "configargs.h"
13189 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13190 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13191 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13192 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13194 static char basever[] = "$gcc_BASEVER";
13195 static char datestamp[] = "$gcc_DATESTAMP";
13196 static char devphase[] = "$gcc_DEVPHASE";
13197 static char revision[] = "$gcc_REVISION";
13199 /* FIXME plugins: We should make the version information more precise.
13200 One way to do is to add a checksum. */
13202 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13203 devphase, revision,
13204 configuration_arguments};
13207 # Determine what GCC version number to use in filesystem paths.
13209 get_gcc_base_ver="cat"
13211 # Check whether --with-gcc-major-version-only was given.
13212 if test "${with_gcc_major_version_only+set}" = set; then :
13213 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13214 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13222 # Internationalization
13223 # If we haven't got the data from the intl directory,
13224 # assume NLS is disabled.
13225 USE_NLS=no
13226 LIBINTL=
13227 LIBINTL_DEP=
13228 INCINTL=
13229 XGETTEXT=
13230 GMSGFMT=
13231 POSUB=
13233 if test -f ../intl/config.intl; then
13234 . ../intl/config.intl
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13237 $as_echo_n "checking whether NLS is requested... " >&6; }
13238 if test x"$USE_NLS" != xyes; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243 $as_echo "yes" >&6; }
13245 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13249 $as_echo_n "checking for catalogs to be installed... " >&6; }
13250 # Look for .po and .gmo files in the source directory.
13251 CATALOGS=
13252 XLINGUAS=
13253 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13254 # If there aren't any .gmo files the shell will give us the
13255 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13256 # weeded out.
13257 case "$cat" in *\**)
13258 continue;;
13259 esac
13260 # The quadruple backslash is collapsed to a double backslash
13261 # by the backticks, then collapsed again by the double quotes,
13262 # leaving us with one backslash in the sed expression (right
13263 # before the dot that mustn't act as a wildcard).
13264 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13265 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13266 # The user is allowed to set LINGUAS to a list of languages to
13267 # install catalogs for. If it's empty that means "all of them."
13268 if test "x$LINGUAS" = x; then
13269 CATALOGS="$CATALOGS $cat"
13270 XLINGUAS="$XLINGUAS $lang"
13271 else
13272 case "$LINGUAS" in *$lang*)
13273 CATALOGS="$CATALOGS $cat"
13274 XLINGUAS="$XLINGUAS $lang"
13276 esac
13278 done
13279 LINGUAS="$XLINGUAS"
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13281 $as_echo "$LINGUAS" >&6; }
13284 DATADIRNAME=share
13286 INSTOBJEXT=.mo
13288 GENCAT=gencat
13290 CATOBJEXT=.gmo
13294 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13295 # -liconv on the link line twice.
13296 case "$LIBINTL" in *$LIBICONV*)
13297 LIBICONV= ;;
13298 esac
13300 # Check whether --enable-secureplt was given.
13301 if test "${enable_secureplt+set}" = set; then :
13302 enableval=$enable_secureplt;
13306 # Check whether --enable-mingw-wildcard was given.
13307 if test "${enable_mingw_wildcard+set}" = set; then :
13308 enableval=$enable_mingw_wildcard;
13309 else
13310 enable_mingw_wildcard=platform
13313 if test x"$enable_mingw_wildcard" != xplatform ; then :
13315 cat >>confdefs.h <<_ACEOF
13316 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13317 _ACEOF
13321 # Check whether --enable-large-address-aware was given.
13322 if test "${enable_large_address_aware+set}" = set; then :
13323 enableval=$enable_large_address_aware;
13326 if test x"$enable_large_address_aware" = xyes; then :
13328 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13332 # Check whether --enable-leading-mingw64-underscores was given.
13333 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13334 enableval=$enable_leading_mingw64_underscores;
13337 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13339 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13343 # Check whether --enable-cld was given.
13344 if test "${enable_cld+set}" = set; then :
13345 enableval=$enable_cld;
13346 else
13347 enable_cld=no
13351 # Check whether --enable-frame-pointer was given.
13352 if test "${enable_frame_pointer+set}" = set; then :
13353 enableval=$enable_frame_pointer;
13354 else
13356 case $target_os in
13357 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13358 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13359 enable_frame_pointer=no
13362 enable_frame_pointer=yes
13364 esac
13369 case $target in
13370 i[34567]86-*-* | x86_64-*-*)
13371 if test "x$enable_cld" = xyes; then
13372 tm_defines="${tm_defines} USE_IX86_CLD=1"
13374 if test "x$enable_frame_pointer" = xyes; then
13375 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13378 esac
13380 # Windows32 Registry support for specifying GCC installation paths.
13381 # Check whether --enable-win32-registry was given.
13382 if test "${enable_win32_registry+set}" = set; then :
13383 enableval=$enable_win32_registry;
13387 case $host_os in
13388 win32 | pe | cygwin* | mingw32*)
13389 if test "x$enable_win32_registry" != xno; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13391 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13392 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 ac_func_search_save_LIBS=$LIBS
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char RegOpenKeyExA ();
13407 main ()
13409 return RegOpenKeyExA ();
13411 return 0;
13413 _ACEOF
13414 for ac_lib in '' advapi32; do
13415 if test -z "$ac_lib"; then
13416 ac_res="none required"
13417 else
13418 ac_res=-l$ac_lib
13419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13421 if ac_fn_cxx_try_link "$LINENO"; then :
13422 ac_cv_search_RegOpenKeyExA=$ac_res
13424 rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext
13426 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13427 break
13429 done
13430 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13432 else
13433 ac_cv_search_RegOpenKeyExA=no
13435 rm conftest.$ac_ext
13436 LIBS=$ac_func_search_save_LIBS
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13439 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13440 ac_res=$ac_cv_search_RegOpenKeyExA
13441 if test "$ac_res" != no; then :
13442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13444 else
13445 enable_win32_registry=no
13450 if test "x$enable_win32_registry" != xno; then
13452 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13455 if test "x$enable_win32_registry" != xyes \
13456 && test "x$enable_win32_registry" != x; then
13458 cat >>confdefs.h <<_ACEOF
13459 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13460 _ACEOF
13465 esac
13467 # Get an absolute path to the GCC top-level source directory
13468 holddir=`${PWDCMD-pwd}`
13469 cd $srcdir
13470 topdir=`${PWDCMD-pwd}`
13471 cd $holddir
13473 # Conditionalize the makefile for this host machine.
13474 xmake_file=
13475 for f in ${host_xmake_file}
13477 if test -f ${srcdir}/config/$f
13478 then
13479 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13481 done
13483 # Conditionalize the makefile for this target machine.
13484 tmake_file_=
13485 for f in ${tmake_file}
13487 if test -f ${srcdir}/config/$f
13488 then
13489 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13491 done
13492 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13494 out_object_file=`basename $out_file .cc`.o
13495 common_out_object_file=`basename $common_out_file .cc`.o
13497 tm_file_list="options.h"
13498 tm_include_list="options.h insn-constants.h"
13499 for f in $tm_file; do
13500 case $f in
13501 ./* )
13502 f=`echo $f | sed 's/^..//'`
13503 tm_file_list="${tm_file_list} $f"
13504 tm_include_list="${tm_include_list} $f"
13506 defaults.h )
13507 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13508 tm_include_list="${tm_include_list} $f"
13511 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13512 tm_include_list="${tm_include_list} config/$f"
13514 esac
13515 done
13517 tm_p_file_list=
13518 tm_p_include_list=
13519 for f in $tm_p_file; do
13520 case $f in
13521 tm-preds.h )
13522 tm_p_file_list="${tm_p_file_list} $f"
13523 tm_p_include_list="${tm_p_include_list} $f"
13526 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13527 tm_p_include_list="${tm_p_include_list} config/$f"
13528 esac
13529 done
13531 tm_d_file_list=
13532 tm_d_include_list=
13533 for f in $tm_d_file; do
13534 case $f in
13536 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13537 tm_d_include_list="${tm_d_include_list} config/$f"
13539 esac
13540 done
13542 xm_file_list=
13543 xm_include_list=
13544 for f in $xm_file; do
13545 case $f in
13546 ansidecl.h )
13547 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13548 xm_include_list="${xm_include_list} $f"
13550 auto-host.h )
13551 xm_file_list="${xm_file_list} $f"
13552 xm_include_list="${xm_include_list} $f"
13555 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13556 xm_include_list="${xm_include_list} config/$f"
13558 esac
13559 done
13561 host_xm_file_list=
13562 host_xm_include_list=
13563 for f in $host_xm_file; do
13564 case $f in
13565 ansidecl.h )
13566 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13567 host_xm_include_list="${host_xm_include_list} $f"
13569 auto-host.h )
13570 host_xm_file_list="${host_xm_file_list} $f"
13571 host_xm_include_list="${host_xm_include_list} $f"
13574 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13575 host_xm_include_list="${host_xm_include_list} config/$f"
13577 esac
13578 done
13580 build_xm_file_list=
13581 for f in $build_xm_file; do
13582 case $f in
13583 ansidecl.h )
13584 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13585 build_xm_include_list="${build_xm_include_list} $f"
13587 auto-build.h | auto-host.h )
13588 build_xm_file_list="${build_xm_file_list} $f"
13589 build_xm_include_list="${build_xm_include_list} $f"
13592 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13593 build_xm_include_list="${build_xm_include_list} config/$f"
13595 esac
13596 done
13598 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13599 # cross-compiler which does not use the native headers and libraries.
13600 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13601 CROSS=
13602 ALL=all.internal
13603 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13604 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13606 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13607 test x$build != x$host || test "x$with_build_sysroot" != x; then
13608 if test "x$with_build_sysroot" != x; then
13609 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13610 else
13611 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13614 if test x$host != x$target
13615 then
13616 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13617 ALL=all.cross
13618 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13619 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13620 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13623 if test "x$with_build_sysroot" != "x"; then
13624 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13625 elif test "x$with_sysroot" = x; then
13626 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13627 elif test "x$with_sysroot" = xyes; then
13628 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13629 else
13630 target_header_dir="${with_sysroot}${native_system_header_dir}"
13632 else
13633 target_header_dir=${native_system_header_dir}
13636 # If this is a cross-compiler that does not
13637 # have its own set of headers then define
13638 # inhibit_libc
13640 # If this is using newlib, without having the headers available now,
13641 # then define inhibit_libc in LIBGCC2_CFLAGS.
13642 # This prevents libgcc2 from containing any code which requires libc
13643 # support.
13644 : ${inhibit_libc=false}
13645 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13646 test x$with_newlib = xyes ; } &&
13647 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13648 inhibit_libc=true
13652 # When building gcc with a cross-compiler, we need to adjust things so
13653 # that the generator programs are still built with the native compiler.
13654 # Also, we cannot run fixincludes.
13656 # These are the normal (build=host) settings:
13657 CC_FOR_BUILD='$(CC)'
13658 CXX_FOR_BUILD='$(CXX)'
13659 BUILD_CFLAGS='$(ALL_CFLAGS)'
13660 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13661 BUILD_LDFLAGS='$(LDFLAGS)'
13662 STMP_FIXINC=stmp-fixinc
13664 # And these apply if build != host, or we are generating coverage data
13665 if test x$build != x$host || test "x$coverage_flags" != x
13666 then
13667 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13668 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13669 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13673 if test x$enable_fixincludes = xno;
13674 then
13675 STMP_FIXINC=''
13678 # Expand extra_headers to include complete path.
13679 # This substitutes for lots of t-* files.
13680 extra_headers_list=
13681 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13682 for file in ${extra_headers} ; do
13683 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13684 done
13686 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13687 if test x"$use_gcc_tgmath" = xyes
13688 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13691 # Define collect2 in Makefile.
13692 case $host_can_use_collect2 in
13693 no) collect2= ;;
13694 *) collect2='collect2$(exeext)' ;;
13695 esac
13698 # Add a definition of USE_COLLECT2 if system wants one.
13699 case $use_collect2 in
13700 no) use_collect2= ;;
13701 "") ;;
13703 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13704 xm_defines="${xm_defines} USE_COLLECT2"
13705 case $host_can_use_collect2 in
13707 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13709 esac
13711 esac
13714 cat >>confdefs.h <<_ACEOF
13715 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13716 _ACEOF
13719 # ---------------------------
13720 # Assembler & linker features
13721 # ---------------------------
13723 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13724 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13725 # However when ld-new is first executed from the build tree, libtool will
13726 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13727 # to the build tree. While doing this we need to use the previous-stage
13728 # linker, or we have an infinite loop. The presence of a shell script as
13729 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13730 # the gcc/collect-ld script. So we need to know how libtool works, or
13731 # exec-tool will fail.
13734 case `pwd` in
13735 *\ * | *\ *)
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13737 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13738 esac
13742 macro_version='2.2.7a'
13743 macro_revision='1.3134'
13757 ltmain="$ac_aux_dir/ltmain.sh"
13759 # Backslashify metacharacters that are still active within
13760 # double-quoted strings.
13761 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13763 # Same as above, but do not quote variable references.
13764 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13766 # Sed substitution to delay expansion of an escaped shell variable in a
13767 # double_quote_subst'ed string.
13768 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13770 # Sed substitution to delay expansion of an escaped single quote.
13771 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13773 # Sed substitution to avoid accidental globbing in evaled expressions
13774 no_glob_subst='s/\*/\\\*/g'
13776 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13777 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13778 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13781 $as_echo_n "checking how to print strings... " >&6; }
13782 # Test print first, because it will be a builtin if present.
13783 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13784 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13785 ECHO='print -r --'
13786 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13787 ECHO='printf %s\n'
13788 else
13789 # Use this function as a fallback that always works.
13790 func_fallback_echo ()
13792 eval 'cat <<_LTECHO_EOF
13794 _LTECHO_EOF'
13796 ECHO='func_fallback_echo'
13799 # func_echo_all arg...
13800 # Invoke $ECHO with all args, space-separated.
13801 func_echo_all ()
13803 $ECHO ""
13806 case "$ECHO" in
13807 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13808 $as_echo "printf" >&6; } ;;
13809 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13810 $as_echo "print -r" >&6; } ;;
13811 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13812 $as_echo "cat" >&6; } ;;
13813 esac
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13829 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13830 if ${ac_cv_path_SED+:} false; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13834 for ac_i in 1 2 3 4 5 6 7; do
13835 ac_script="$ac_script$as_nl$ac_script"
13836 done
13837 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13838 { ac_script=; unset ac_script;}
13839 if test -z "$SED"; then
13840 ac_path_SED_found=false
13841 # Loop through the user's path and test for each of PROGNAME-LIST
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13845 IFS=$as_save_IFS
13846 test -z "$as_dir" && as_dir=.
13847 for ac_prog in sed gsed; do
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13850 as_fn_executable_p "$ac_path_SED" || continue
13851 # Check for GNU ac_path_SED and select it if it is found.
13852 # Check for GNU $ac_path_SED
13853 case `"$ac_path_SED" --version 2>&1` in
13854 *GNU*)
13855 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13857 ac_count=0
13858 $as_echo_n 0123456789 >"conftest.in"
13859 while :
13861 cat "conftest.in" "conftest.in" >"conftest.tmp"
13862 mv "conftest.tmp" "conftest.in"
13863 cp "conftest.in" "conftest.nl"
13864 $as_echo '' >> "conftest.nl"
13865 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13867 as_fn_arith $ac_count + 1 && ac_count=$as_val
13868 if test $ac_count -gt ${ac_path_SED_max-0}; then
13869 # Best one so far, save it but keep looking for a better one
13870 ac_cv_path_SED="$ac_path_SED"
13871 ac_path_SED_max=$ac_count
13873 # 10*(2^10) chars as input seems more than enough
13874 test $ac_count -gt 10 && break
13875 done
13876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13877 esac
13879 $ac_path_SED_found && break 3
13880 done
13881 done
13882 done
13883 IFS=$as_save_IFS
13884 if test -z "$ac_cv_path_SED"; then
13885 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13887 else
13888 ac_cv_path_SED=$SED
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13893 $as_echo "$ac_cv_path_SED" >&6; }
13894 SED="$ac_cv_path_SED"
13895 rm -f conftest.sed
13897 test -z "$SED" && SED=sed
13898 Xsed="$SED -e 1s/^X//"
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13911 $as_echo_n "checking for fgrep... " >&6; }
13912 if ${ac_cv_path_FGREP+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13916 then ac_cv_path_FGREP="$GREP -F"
13917 else
13918 if test -z "$FGREP"; then
13919 ac_path_FGREP_found=false
13920 # Loop through the user's path and test for each of PROGNAME-LIST
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_prog in fgrep; do
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13929 as_fn_executable_p "$ac_path_FGREP" || continue
13930 # Check for GNU ac_path_FGREP and select it if it is found.
13931 # Check for GNU $ac_path_FGREP
13932 case `"$ac_path_FGREP" --version 2>&1` in
13933 *GNU*)
13934 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13936 ac_count=0
13937 $as_echo_n 0123456789 >"conftest.in"
13938 while :
13940 cat "conftest.in" "conftest.in" >"conftest.tmp"
13941 mv "conftest.tmp" "conftest.in"
13942 cp "conftest.in" "conftest.nl"
13943 $as_echo 'FGREP' >> "conftest.nl"
13944 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13946 as_fn_arith $ac_count + 1 && ac_count=$as_val
13947 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13948 # Best one so far, save it but keep looking for a better one
13949 ac_cv_path_FGREP="$ac_path_FGREP"
13950 ac_path_FGREP_max=$ac_count
13952 # 10*(2^10) chars as input seems more than enough
13953 test $ac_count -gt 10 && break
13954 done
13955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13956 esac
13958 $ac_path_FGREP_found && break 3
13959 done
13960 done
13961 done
13962 IFS=$as_save_IFS
13963 if test -z "$ac_cv_path_FGREP"; then
13964 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13966 else
13967 ac_cv_path_FGREP=$FGREP
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13973 $as_echo "$ac_cv_path_FGREP" >&6; }
13974 FGREP="$ac_cv_path_FGREP"
13977 test -z "$GREP" && GREP=grep
13997 # Check whether --with-gnu-ld was given.
13998 if test "${with_gnu_ld+set}" = set; then :
13999 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14000 else
14001 with_gnu_ld=no
14004 ac_prog=ld
14005 if test "$GCC" = yes; then
14006 # Check if gcc -print-prog-name=ld gives a path.
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14008 $as_echo_n "checking for ld used by $CC... " >&6; }
14009 case $host in
14010 *-*-mingw*)
14011 # gcc leaves a trailing carriage return which upsets mingw
14012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14015 esac
14016 case $ac_prog in
14017 # Accept absolute paths.
14018 [\\/]* | ?:[\\/]*)
14019 re_direlt='/[^/][^/]*/\.\./'
14020 # Canonicalize the pathname of ld
14021 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14022 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14023 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14024 done
14025 test -z "$LD" && LD="$ac_prog"
14028 # If it fails, then pretend we aren't using GCC.
14029 ac_prog=ld
14032 # If it is relative, then search for the first ld in PATH.
14033 with_gnu_ld=unknown
14035 esac
14036 elif test "$with_gnu_ld" = yes; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14038 $as_echo_n "checking for GNU ld... " >&6; }
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14041 $as_echo_n "checking for non-GNU ld... " >&6; }
14043 if ${lt_cv_path_LD+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 if test -z "$LD"; then
14047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14048 for ac_dir in $PATH; do
14049 IFS="$lt_save_ifs"
14050 test -z "$ac_dir" && ac_dir=.
14051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14052 lt_cv_path_LD="$ac_dir/$ac_prog"
14053 # Check to see if the program is GNU ld. I'd rather use --version,
14054 # but apparently some variants of GNU ld only accept -v.
14055 # Break only if it was the GNU/non-GNU ld that we prefer.
14056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14057 *GNU* | *'with BFD'*)
14058 test "$with_gnu_ld" != no && break
14061 test "$with_gnu_ld" != yes && break
14063 esac
14065 done
14066 IFS="$lt_save_ifs"
14067 else
14068 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14072 LD="$lt_cv_path_LD"
14073 if test -n "$LD"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14075 $as_echo "$LD" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14080 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14082 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14083 if ${lt_cv_prog_gnu_ld+:} false; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14087 case `$LD -v 2>&1 </dev/null` in
14088 *GNU* | *'with BFD'*)
14089 lt_cv_prog_gnu_ld=yes
14092 lt_cv_prog_gnu_ld=no
14094 esac
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14097 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14098 with_gnu_ld=$lt_cv_prog_gnu_ld
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14109 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14110 if ${lt_cv_path_NM+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test -n "$NM"; then
14114 # Let the user override the test.
14115 lt_cv_path_NM="$NM"
14116 else
14117 lt_nm_to_check="${ac_tool_prefix}nm"
14118 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14119 lt_nm_to_check="$lt_nm_to_check nm"
14121 for lt_tmp_nm in $lt_nm_to_check; do
14122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14123 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14124 IFS="$lt_save_ifs"
14125 test -z "$ac_dir" && ac_dir=.
14126 tmp_nm="$ac_dir/$lt_tmp_nm"
14127 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14128 # Check to see if the nm accepts a BSD-compat flag.
14129 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14130 # nm: unknown option "B" ignored
14131 # Tru64's nm complains that /dev/null is an invalid object file
14132 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14133 */dev/null* | *'Invalid file or object type'*)
14134 lt_cv_path_NM="$tmp_nm -B"
14135 break
14138 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14139 */dev/null*)
14140 lt_cv_path_NM="$tmp_nm -p"
14141 break
14144 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14145 continue # so that we can try to find one that supports BSD flags
14147 esac
14149 esac
14151 done
14152 IFS="$lt_save_ifs"
14153 done
14154 : ${lt_cv_path_NM=no}
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14158 $as_echo "$lt_cv_path_NM" >&6; }
14159 if test "$lt_cv_path_NM" != "no"; then
14160 NM="$lt_cv_path_NM"
14161 else
14162 # Didn't find any BSD compatible name lister, look for dumpbin.
14163 if test -n "$DUMPBIN"; then :
14164 # Let the user override the test.
14165 else
14166 if test -n "$ac_tool_prefix"; then
14167 for ac_prog in dumpbin "link -dump"
14169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14172 $as_echo_n "checking for $ac_word... " >&6; }
14173 if ${ac_cv_prog_DUMPBIN+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 if test -n "$DUMPBIN"; then
14177 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14178 else
14179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180 for as_dir in $PATH
14182 IFS=$as_save_IFS
14183 test -z "$as_dir" && as_dir=.
14184 for ac_exec_ext in '' $ac_executable_extensions; do
14185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14186 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14188 break 2
14190 done
14191 done
14192 IFS=$as_save_IFS
14196 DUMPBIN=$ac_cv_prog_DUMPBIN
14197 if test -n "$DUMPBIN"; then
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14199 $as_echo "$DUMPBIN" >&6; }
14200 else
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202 $as_echo "no" >&6; }
14206 test -n "$DUMPBIN" && break
14207 done
14209 if test -z "$DUMPBIN"; then
14210 ac_ct_DUMPBIN=$DUMPBIN
14211 for ac_prog in dumpbin "link -dump"
14213 # Extract the first word of "$ac_prog", so it can be a program name with args.
14214 set dummy $ac_prog; ac_word=$2
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216 $as_echo_n "checking for $ac_word... " >&6; }
14217 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 if test -n "$ac_ct_DUMPBIN"; then
14221 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14222 else
14223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
14229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14230 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14234 done
14235 done
14236 IFS=$as_save_IFS
14240 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14241 if test -n "$ac_ct_DUMPBIN"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14243 $as_echo "$ac_ct_DUMPBIN" >&6; }
14244 else
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246 $as_echo "no" >&6; }
14250 test -n "$ac_ct_DUMPBIN" && break
14251 done
14253 if test "x$ac_ct_DUMPBIN" = x; then
14254 DUMPBIN=":"
14255 else
14256 case $cross_compiling:$ac_tool_warned in
14257 yes:)
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14260 ac_tool_warned=yes ;;
14261 esac
14262 DUMPBIN=$ac_ct_DUMPBIN
14266 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14267 *COFF*)
14268 DUMPBIN="$DUMPBIN -symbols"
14271 DUMPBIN=:
14273 esac
14276 if test "$DUMPBIN" != ":"; then
14277 NM="$DUMPBIN"
14280 test -z "$NM" && NM=nm
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14288 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14289 if ${lt_cv_nm_interface+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 lt_cv_nm_interface="BSD nm"
14293 echo "int some_variable = 0;" > conftest.$ac_ext
14294 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14295 (eval "$ac_compile" 2>conftest.err)
14296 cat conftest.err >&5
14297 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14298 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14299 cat conftest.err >&5
14300 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14301 cat conftest.out >&5
14302 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14303 lt_cv_nm_interface="MS dumpbin"
14305 rm -f conftest*
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14308 $as_echo "$lt_cv_nm_interface" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14311 $as_echo_n "checking whether ln -s works... " >&6; }
14312 LN_S=$as_ln_s
14313 if test "$LN_S" = "ln -s"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14315 $as_echo "yes" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14318 $as_echo "no, using $LN_S" >&6; }
14321 # find the maximum length of command line arguments
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14323 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14324 if ${lt_cv_sys_max_cmd_len+:} false; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14328 teststring="ABCD"
14330 case $build_os in
14331 msdosdjgpp*)
14332 # On DJGPP, this test can blow up pretty badly due to problems in libc
14333 # (any single argument exceeding 2000 bytes causes a buffer overrun
14334 # during glob expansion). Even if it were fixed, the result of this
14335 # check would be larger than it should be.
14336 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14339 gnu*)
14340 # Under GNU Hurd, this test is not required because there is
14341 # no limit to the length of command line arguments.
14342 # Libtool will interpret -1 as no limit whatsoever
14343 lt_cv_sys_max_cmd_len=-1;
14346 cygwin* | mingw* | cegcc*)
14347 # On Win9x/ME, this test blows up -- it succeeds, but takes
14348 # about 5 minutes as the teststring grows exponentially.
14349 # Worse, since 9x/ME are not pre-emptively multitasking,
14350 # you end up with a "frozen" computer, even though with patience
14351 # the test eventually succeeds (with a max line length of 256k).
14352 # Instead, let's just punt: use the minimum linelength reported by
14353 # all of the supported platforms: 8192 (on NT/2K/XP).
14354 lt_cv_sys_max_cmd_len=8192;
14357 mint*)
14358 # On MiNT this can take a long time and run out of memory.
14359 lt_cv_sys_max_cmd_len=8192;
14362 amigaos*)
14363 # On AmigaOS with pdksh, this test takes hours, literally.
14364 # So we just punt and use a minimum line length of 8192.
14365 lt_cv_sys_max_cmd_len=8192;
14368 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14369 # This has been around since 386BSD, at least. Likely further.
14370 if test -x /sbin/sysctl; then
14371 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14372 elif test -x /usr/sbin/sysctl; then
14373 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14374 else
14375 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14377 # And add a safety zone
14378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14382 interix*)
14383 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14384 lt_cv_sys_max_cmd_len=196608
14387 osf*)
14388 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14389 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14390 # nice to cause kernel panics so lets avoid the loop below.
14391 # First set a reasonable default.
14392 lt_cv_sys_max_cmd_len=16384
14394 if test -x /sbin/sysconfig; then
14395 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14396 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14397 esac
14400 sco3.2v5*)
14401 lt_cv_sys_max_cmd_len=102400
14403 sysv5* | sco5v6* | sysv4.2uw2*)
14404 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14405 if test -n "$kargmax"; then
14406 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14407 else
14408 lt_cv_sys_max_cmd_len=32768
14412 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14413 if test -n "$lt_cv_sys_max_cmd_len"; then
14414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14416 else
14417 # Make teststring a little bigger before we do anything with it.
14418 # a 1K string should be a reasonable start.
14419 for i in 1 2 3 4 5 6 7 8 ; do
14420 teststring=$teststring$teststring
14421 done
14422 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14423 # If test is not a shell built-in, we'll probably end up computing a
14424 # maximum length that is only half of the actual maximum length, but
14425 # we can't tell.
14426 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14427 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14428 test $i != 17 # 1/2 MB should be enough
14430 i=`expr $i + 1`
14431 teststring=$teststring$teststring
14432 done
14433 # Only check the string length outside the loop.
14434 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14435 teststring=
14436 # Add a significant safety factor because C++ compilers can tack on
14437 # massive amounts of additional arguments before passing them to the
14438 # linker. It appears as though 1/2 is a usable value.
14439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14442 esac
14446 if test -n $lt_cv_sys_max_cmd_len ; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14448 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14451 $as_echo "none" >&6; }
14453 max_cmd_len=$lt_cv_sys_max_cmd_len
14460 : ${CP="cp -f"}
14461 : ${MV="mv -f"}
14462 : ${RM="rm -f"}
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14465 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14466 # Try some XSI features
14467 xsi_shell=no
14468 ( _lt_dummy="a/b/c"
14469 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14470 = c,a/b,, \
14471 && eval 'test $(( 1 + 1 )) -eq 2 \
14472 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14473 && xsi_shell=yes
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14475 $as_echo "$xsi_shell" >&6; }
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14479 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14480 lt_shell_append=no
14481 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14482 >/dev/null 2>&1 \
14483 && lt_shell_append=yes
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14485 $as_echo "$lt_shell_append" >&6; }
14488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14489 lt_unset=unset
14490 else
14491 lt_unset=false
14498 # test EBCDIC or ASCII
14499 case `echo X|tr X '\101'` in
14500 A) # ASCII based system
14501 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14502 lt_SP2NL='tr \040 \012'
14503 lt_NL2SP='tr \015\012 \040\040'
14505 *) # EBCDIC based system
14506 lt_SP2NL='tr \100 \n'
14507 lt_NL2SP='tr \r\n \100\100'
14509 esac
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14520 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14521 if ${lt_cv_ld_reload_flag+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 lt_cv_ld_reload_flag='-r'
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14527 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14528 reload_flag=$lt_cv_ld_reload_flag
14529 case $reload_flag in
14530 "" | " "*) ;;
14531 *) reload_flag=" $reload_flag" ;;
14532 esac
14533 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14534 case $host_os in
14535 darwin*)
14536 if test "$GCC" = yes; then
14537 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14538 else
14539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14542 esac
14552 if test -n "$ac_tool_prefix"; then
14553 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14554 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14556 $as_echo_n "checking for $ac_word... " >&6; }
14557 if ${ac_cv_prog_OBJDUMP+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 if test -n "$OBJDUMP"; then
14561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14562 else
14563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14564 for as_dir in $PATH
14566 IFS=$as_save_IFS
14567 test -z "$as_dir" && as_dir=.
14568 for ac_exec_ext in '' $ac_executable_extensions; do
14569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14570 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14572 break 2
14574 done
14575 done
14576 IFS=$as_save_IFS
14580 OBJDUMP=$ac_cv_prog_OBJDUMP
14581 if test -n "$OBJDUMP"; then
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14583 $as_echo "$OBJDUMP" >&6; }
14584 else
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14591 if test -z "$ac_cv_prog_OBJDUMP"; then
14592 ac_ct_OBJDUMP=$OBJDUMP
14593 # Extract the first word of "objdump", so it can be a program name with args.
14594 set dummy objdump; ac_word=$2
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596 $as_echo_n "checking for $ac_word... " >&6; }
14597 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 if test -n "$ac_ct_OBJDUMP"; then
14601 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14602 else
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14606 IFS=$as_save_IFS
14607 test -z "$as_dir" && as_dir=.
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14610 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14612 break 2
14614 done
14615 done
14616 IFS=$as_save_IFS
14620 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14621 if test -n "$ac_ct_OBJDUMP"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14623 $as_echo "$ac_ct_OBJDUMP" >&6; }
14624 else
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14629 if test "x$ac_ct_OBJDUMP" = x; then
14630 OBJDUMP="false"
14631 else
14632 case $cross_compiling:$ac_tool_warned in
14633 yes:)
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14636 ac_tool_warned=yes ;;
14637 esac
14638 OBJDUMP=$ac_ct_OBJDUMP
14640 else
14641 OBJDUMP="$ac_cv_prog_OBJDUMP"
14644 test -z "$OBJDUMP" && OBJDUMP=objdump
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14655 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14656 if ${lt_cv_deplibs_check_method+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 lt_cv_file_magic_cmd='$MAGIC_CMD'
14660 lt_cv_file_magic_test_file=
14661 lt_cv_deplibs_check_method='unknown'
14662 # Need to set the preceding variable on all platforms that support
14663 # interlibrary dependencies.
14664 # 'none' -- dependencies not supported.
14665 # `unknown' -- same as none, but documents that we really don't know.
14666 # 'pass_all' -- all dependencies passed with no checks.
14667 # 'test_compile' -- check by making test program.
14668 # 'file_magic [[regex]]' -- check by looking for files in library path
14669 # which responds to the $file_magic_cmd with a given extended regex.
14670 # If you have `file' or equivalent on your system and you're not sure
14671 # whether `pass_all' will *always* work, you probably want this one.
14673 case $host_os in
14674 aix[4-9]*)
14675 lt_cv_deplibs_check_method=pass_all
14678 beos*)
14679 lt_cv_deplibs_check_method=pass_all
14682 bsdi[45]*)
14683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14684 lt_cv_file_magic_cmd='/usr/bin/file -L'
14685 lt_cv_file_magic_test_file=/shlib/libc.so
14688 cygwin*)
14689 # func_win32_libid is a shell function defined in ltmain.sh
14690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14691 lt_cv_file_magic_cmd='func_win32_libid'
14694 mingw* | pw32*)
14695 # Base MSYS/MinGW do not provide the 'file' command needed by
14696 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14697 # unless we find 'file', for example because we are cross-compiling.
14698 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14699 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14701 lt_cv_file_magic_cmd='func_win32_libid'
14702 else
14703 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14704 lt_cv_file_magic_cmd='$OBJDUMP -f'
14708 cegcc*)
14709 # use the weaker test based on 'objdump'. See mingw*.
14710 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14711 lt_cv_file_magic_cmd='$OBJDUMP -f'
14714 darwin* | rhapsody*)
14715 lt_cv_deplibs_check_method=pass_all
14718 freebsd* | dragonfly*)
14719 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14720 case $host_cpu in
14721 i*86 )
14722 # Not sure whether the presence of OpenBSD here was a mistake.
14723 # Let's accept both of them until this is cleared up.
14724 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14725 lt_cv_file_magic_cmd=/usr/bin/file
14726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14728 esac
14729 else
14730 lt_cv_deplibs_check_method=pass_all
14734 gnu*)
14735 lt_cv_deplibs_check_method=pass_all
14738 haiku*)
14739 lt_cv_deplibs_check_method=pass_all
14742 hpux10.20* | hpux11*)
14743 lt_cv_file_magic_cmd=/usr/bin/file
14744 case $host_cpu in
14745 ia64*)
14746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14747 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14749 hppa*64*)
14750 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]'
14751 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14755 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14757 esac
14760 interix[3-9]*)
14761 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14765 irix5* | irix6* | nonstopux*)
14766 case $LD in
14767 *-32|*"-32 ") libmagic=32-bit;;
14768 *-n32|*"-n32 ") libmagic=N32;;
14769 *-64|*"-64 ") libmagic=64-bit;;
14770 *) libmagic=never-match;;
14771 esac
14772 lt_cv_deplibs_check_method=pass_all
14775 # This must be Linux ELF.
14776 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14777 lt_cv_deplibs_check_method=pass_all
14780 netbsd*)
14781 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14783 else
14784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14788 newos6*)
14789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14790 lt_cv_file_magic_cmd=/usr/bin/file
14791 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14794 *nto* | *qnx*)
14795 lt_cv_deplibs_check_method=pass_all
14798 openbsd*)
14799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14801 else
14802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14806 osf3* | osf4* | osf5*)
14807 lt_cv_deplibs_check_method=pass_all
14810 rdos*)
14811 lt_cv_deplibs_check_method=pass_all
14814 solaris*)
14815 lt_cv_deplibs_check_method=pass_all
14818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14819 lt_cv_deplibs_check_method=pass_all
14822 sysv4 | sysv4.3*)
14823 case $host_vendor in
14824 motorola)
14825 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]'
14826 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14828 ncr)
14829 lt_cv_deplibs_check_method=pass_all
14831 sequent)
14832 lt_cv_file_magic_cmd='/bin/file'
14833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14835 sni)
14836 lt_cv_file_magic_cmd='/bin/file'
14837 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14838 lt_cv_file_magic_test_file=/lib/libc.so
14840 siemens)
14841 lt_cv_deplibs_check_method=pass_all
14844 lt_cv_deplibs_check_method=pass_all
14846 esac
14849 tpf*)
14850 lt_cv_deplibs_check_method=pass_all
14852 vxworks*)
14853 # Assume VxWorks cross toolchains are built on Linux, possibly
14854 # as canadian for Windows hosts.
14855 lt_cv_deplibs_check_method=pass_all
14857 esac
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14861 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14862 file_magic_cmd=$lt_cv_file_magic_cmd
14863 deplibs_check_method=$lt_cv_deplibs_check_method
14864 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14877 if test -n "$ac_tool_prefix"; then
14878 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14879 set dummy ${ac_tool_prefix}ar; ac_word=$2
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14881 $as_echo_n "checking for $ac_word... " >&6; }
14882 if ${ac_cv_prog_AR+:} false; then :
14883 $as_echo_n "(cached) " >&6
14884 else
14885 if test -n "$AR"; then
14886 ac_cv_prog_AR="$AR" # Let the user override the test.
14887 else
14888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889 for as_dir in $PATH
14891 IFS=$as_save_IFS
14892 test -z "$as_dir" && as_dir=.
14893 for ac_exec_ext in '' $ac_executable_extensions; do
14894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14895 ac_cv_prog_AR="${ac_tool_prefix}ar"
14896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14897 break 2
14899 done
14900 done
14901 IFS=$as_save_IFS
14905 AR=$ac_cv_prog_AR
14906 if test -n "$AR"; then
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14908 $as_echo "$AR" >&6; }
14909 else
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911 $as_echo "no" >&6; }
14916 if test -z "$ac_cv_prog_AR"; then
14917 ac_ct_AR=$AR
14918 # Extract the first word of "ar", so it can be a program name with args.
14919 set dummy ar; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921 $as_echo_n "checking for $ac_word... " >&6; }
14922 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 if test -n "$ac_ct_AR"; then
14926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14927 else
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14931 IFS=$as_save_IFS
14932 test -z "$as_dir" && as_dir=.
14933 for ac_exec_ext in '' $ac_executable_extensions; do
14934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935 ac_cv_prog_ac_ct_AR="ar"
14936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937 break 2
14939 done
14940 done
14941 IFS=$as_save_IFS
14945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14946 if test -n "$ac_ct_AR"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14948 $as_echo "$ac_ct_AR" >&6; }
14949 else
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14954 if test "x$ac_ct_AR" = x; then
14955 AR="false"
14956 else
14957 case $cross_compiling:$ac_tool_warned in
14958 yes:)
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14961 ac_tool_warned=yes ;;
14962 esac
14963 AR=$ac_ct_AR
14965 else
14966 AR="$ac_cv_prog_AR"
14969 test -z "$AR" && AR=ar
14970 test -z "$AR_FLAGS" && AR_FLAGS=cru
14982 if test -n "$ac_tool_prefix"; then
14983 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14984 set dummy ${ac_tool_prefix}strip; ac_word=$2
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14986 $as_echo_n "checking for $ac_word... " >&6; }
14987 if ${ac_cv_prog_STRIP+:} false; then :
14988 $as_echo_n "(cached) " >&6
14989 else
14990 if test -n "$STRIP"; then
14991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14992 else
14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $PATH
14996 IFS=$as_save_IFS
14997 test -z "$as_dir" && as_dir=.
14998 for ac_exec_ext in '' $ac_executable_extensions; do
14999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15000 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15002 break 2
15004 done
15005 done
15006 IFS=$as_save_IFS
15010 STRIP=$ac_cv_prog_STRIP
15011 if test -n "$STRIP"; then
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15013 $as_echo "$STRIP" >&6; }
15014 else
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016 $as_echo "no" >&6; }
15021 if test -z "$ac_cv_prog_STRIP"; then
15022 ac_ct_STRIP=$STRIP
15023 # Extract the first word of "strip", so it can be a program name with args.
15024 set dummy strip; ac_word=$2
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15026 $as_echo_n "checking for $ac_word... " >&6; }
15027 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15028 $as_echo_n "(cached) " >&6
15029 else
15030 if test -n "$ac_ct_STRIP"; then
15031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15032 else
15033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15034 for as_dir in $PATH
15036 IFS=$as_save_IFS
15037 test -z "$as_dir" && as_dir=.
15038 for ac_exec_ext in '' $ac_executable_extensions; do
15039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15040 ac_cv_prog_ac_ct_STRIP="strip"
15041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15042 break 2
15044 done
15045 done
15046 IFS=$as_save_IFS
15050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15051 if test -n "$ac_ct_STRIP"; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15053 $as_echo "$ac_ct_STRIP" >&6; }
15054 else
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 $as_echo "no" >&6; }
15059 if test "x$ac_ct_STRIP" = x; then
15060 STRIP=":"
15061 else
15062 case $cross_compiling:$ac_tool_warned in
15063 yes:)
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15066 ac_tool_warned=yes ;;
15067 esac
15068 STRIP=$ac_ct_STRIP
15070 else
15071 STRIP="$ac_cv_prog_STRIP"
15074 test -z "$STRIP" && STRIP=:
15081 if test -n "$ac_tool_prefix"; then
15082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15085 $as_echo_n "checking for $ac_word... " >&6; }
15086 if ${ac_cv_prog_RANLIB+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 if test -n "$RANLIB"; then
15090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15091 else
15092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15093 for as_dir in $PATH
15095 IFS=$as_save_IFS
15096 test -z "$as_dir" && as_dir=.
15097 for ac_exec_ext in '' $ac_executable_extensions; do
15098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15101 break 2
15103 done
15104 done
15105 IFS=$as_save_IFS
15109 RANLIB=$ac_cv_prog_RANLIB
15110 if test -n "$RANLIB"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15112 $as_echo "$RANLIB" >&6; }
15113 else
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115 $as_echo "no" >&6; }
15120 if test -z "$ac_cv_prog_RANLIB"; then
15121 ac_ct_RANLIB=$RANLIB
15122 # Extract the first word of "ranlib", so it can be a program name with args.
15123 set dummy ranlib; ac_word=$2
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15125 $as_echo_n "checking for $ac_word... " >&6; }
15126 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15127 $as_echo_n "(cached) " >&6
15128 else
15129 if test -n "$ac_ct_RANLIB"; then
15130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15131 else
15132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15133 for as_dir in $PATH
15135 IFS=$as_save_IFS
15136 test -z "$as_dir" && as_dir=.
15137 for ac_exec_ext in '' $ac_executable_extensions; do
15138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15139 ac_cv_prog_ac_ct_RANLIB="ranlib"
15140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15141 break 2
15143 done
15144 done
15145 IFS=$as_save_IFS
15149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15150 if test -n "$ac_ct_RANLIB"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15152 $as_echo "$ac_ct_RANLIB" >&6; }
15153 else
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15158 if test "x$ac_ct_RANLIB" = x; then
15159 RANLIB=":"
15160 else
15161 case $cross_compiling:$ac_tool_warned in
15162 yes:)
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15165 ac_tool_warned=yes ;;
15166 esac
15167 RANLIB=$ac_ct_RANLIB
15169 else
15170 RANLIB="$ac_cv_prog_RANLIB"
15173 test -z "$RANLIB" && RANLIB=:
15180 # Determine commands to create old-style static archives.
15181 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15182 old_postinstall_cmds='chmod 644 $oldlib'
15183 old_postuninstall_cmds=
15185 if test -n "$RANLIB"; then
15186 case $host_os in
15187 openbsd*)
15188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15191 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15193 esac
15194 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15197 case $host_os in
15198 darwin*)
15199 lock_old_archive_extraction=yes ;;
15201 lock_old_archive_extraction=no ;;
15202 esac
15242 # If no C compiler was specified, use CC.
15243 LTCC=${LTCC-"$CC"}
15245 # If no C compiler flags were specified, use CFLAGS.
15246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15248 # Allow CC to be a program name with arguments.
15249 compiler=$CC
15252 # Check for command to grab the raw symbol name followed by C symbol from nm.
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15254 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15255 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15259 # These are sane defaults that work on at least a few old systems.
15260 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15262 # Character class describing NM global symbol codes.
15263 symcode='[BCDEGRST]'
15265 # Regexp to match symbols that can be accessed directly from C.
15266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15268 # Define system-specific variables.
15269 case $host_os in
15270 aix*)
15271 symcode='[BCDT]'
15273 cygwin* | mingw* | pw32* | cegcc*)
15274 symcode='[ABCDGISTW]'
15276 hpux*)
15277 if test "$host_cpu" = ia64; then
15278 symcode='[ABCDEGRST]'
15281 irix* | nonstopux*)
15282 symcode='[BCDEGRST]'
15284 osf*)
15285 symcode='[BCDEGQRST]'
15287 solaris*)
15288 symcode='[BDRT]'
15290 sco3.2v5*)
15291 symcode='[DT]'
15293 sysv4.2uw2*)
15294 symcode='[DT]'
15296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15297 symcode='[ABDT]'
15299 sysv4)
15300 symcode='[DFNSTU]'
15302 esac
15304 # If we're using GNU nm, then use its standard symbol codes.
15305 case `$NM -V 2>&1` in
15306 *GNU* | *'with BFD'*)
15307 symcode='[ABCDGIRSTW]' ;;
15308 esac
15310 # Transform an extracted symbol line into a proper C declaration.
15311 # Some systems (esp. on ia64) link data and code symbols differently,
15312 # so use this general approach.
15313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15315 # Transform an extracted symbol line into symbol name and symbol address
15316 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15317 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'"
15319 # Handle CRLF in mingw tool chain
15320 opt_cr=
15321 case $build_os in
15322 mingw*)
15323 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15325 esac
15327 # Try without a prefix underscore, then with it.
15328 for ac_symprfx in "" "_"; do
15330 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15331 symxfrm="\\1 $ac_symprfx\\2 \\2"
15333 # Write the raw and C identifiers.
15334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15335 # Fake it for dumpbin and say T for any non-static function
15336 # and D for any global variable.
15337 # Also find C++ and __fastcall symbols from MSVC++,
15338 # which start with @ or ?.
15339 lt_cv_sys_global_symbol_pipe="$AWK '"\
15340 " {last_section=section; section=\$ 3};"\
15341 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15342 " \$ 0!~/External *\|/{next};"\
15343 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15344 " {if(hide[section]) next};"\
15345 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15346 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15347 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15348 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15349 " ' prfx=^$ac_symprfx"
15350 else
15351 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15354 # Check to see that the pipe works correctly.
15355 pipe_works=no
15357 rm -f conftest*
15358 cat > conftest.$ac_ext <<_LT_EOF
15359 #ifdef __cplusplus
15360 extern "C" {
15361 #endif
15362 char nm_test_var;
15363 void nm_test_func(void);
15364 void nm_test_func(void){}
15365 #ifdef __cplusplus
15367 #endif
15368 int main(){nm_test_var='a';nm_test_func();return(0);}
15369 _LT_EOF
15371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15372 (eval $ac_compile) 2>&5
15373 ac_status=$?
15374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15375 test $ac_status = 0; }; then
15376 # Now try to grab the symbols.
15377 nlist=conftest.nm
15378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15379 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15380 ac_status=$?
15381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15382 test $ac_status = 0; } && test -s "$nlist"; then
15383 # Try sorting and uniquifying the output.
15384 if sort "$nlist" | uniq > "$nlist"T; then
15385 mv -f "$nlist"T "$nlist"
15386 else
15387 rm -f "$nlist"T
15390 # Make sure that we snagged all the symbols we need.
15391 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15392 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15393 cat <<_LT_EOF > conftest.$ac_ext
15394 #ifdef __cplusplus
15395 extern "C" {
15396 #endif
15398 _LT_EOF
15399 # Now generate the symbol file.
15400 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15402 cat <<_LT_EOF >> conftest.$ac_ext
15404 /* The mapping between symbol names and symbols. */
15405 const struct {
15406 const char *name;
15407 void *address;
15409 lt__PROGRAM__LTX_preloaded_symbols[] =
15411 { "@PROGRAM@", (void *) 0 },
15412 _LT_EOF
15413 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15414 cat <<\_LT_EOF >> conftest.$ac_ext
15415 {0, (void *) 0}
15418 /* This works around a problem in FreeBSD linker */
15419 #ifdef FREEBSD_WORKAROUND
15420 static const void *lt_preloaded_setup() {
15421 return lt__PROGRAM__LTX_preloaded_symbols;
15423 #endif
15425 #ifdef __cplusplus
15427 #endif
15428 _LT_EOF
15429 # Now try linking the two files.
15430 mv conftest.$ac_objext conftstm.$ac_objext
15431 lt_save_LIBS="$LIBS"
15432 lt_save_CFLAGS="$CFLAGS"
15433 LIBS="conftstm.$ac_objext"
15434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15436 (eval $ac_link) 2>&5
15437 ac_status=$?
15438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15440 pipe_works=yes
15442 LIBS="$lt_save_LIBS"
15443 CFLAGS="$lt_save_CFLAGS"
15444 else
15445 echo "cannot find nm_test_func in $nlist" >&5
15447 else
15448 echo "cannot find nm_test_var in $nlist" >&5
15450 else
15451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15453 else
15454 echo "$progname: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15457 rm -rf conftest* conftst*
15459 # Do not use the global_symbol_pipe unless it works.
15460 if test "$pipe_works" = yes; then
15461 break
15462 else
15463 lt_cv_sys_global_symbol_pipe=
15465 done
15469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15470 lt_cv_sys_global_symbol_to_cdecl=
15472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15474 $as_echo "failed" >&6; }
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15477 $as_echo "ok" >&6; }
15501 # Check whether --enable-libtool-lock was given.
15502 if test "${enable_libtool_lock+set}" = set; then :
15503 enableval=$enable_libtool_lock;
15506 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15508 # Some flags need to be propagated to the compiler or linker for good
15509 # libtool support.
15510 case $host in
15511 ia64-*-hpux*)
15512 # Find out which ABI we are using.
15513 echo 'int i;' > conftest.$ac_ext
15514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15515 (eval $ac_compile) 2>&5
15516 ac_status=$?
15517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15518 test $ac_status = 0; }; then
15519 case `/usr/bin/file conftest.$ac_objext` in
15520 *ELF-32*)
15521 HPUX_IA64_MODE="32"
15523 *ELF-64*)
15524 HPUX_IA64_MODE="64"
15526 esac
15528 rm -rf conftest*
15530 *-*-irix6*)
15531 # Find out which ABI we are using.
15532 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15534 (eval $ac_compile) 2>&5
15535 ac_status=$?
15536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15537 test $ac_status = 0; }; then
15538 if test "$lt_cv_prog_gnu_ld" = yes; then
15539 case `/usr/bin/file conftest.$ac_objext` in
15540 *32-bit*)
15541 LD="${LD-ld} -melf32bsmip"
15543 *N32*)
15544 LD="${LD-ld} -melf32bmipn32"
15546 *64-bit*)
15547 LD="${LD-ld} -melf64bmip"
15549 esac
15550 else
15551 case `/usr/bin/file conftest.$ac_objext` in
15552 *32-bit*)
15553 LD="${LD-ld} -32"
15555 *N32*)
15556 LD="${LD-ld} -n32"
15558 *64-bit*)
15559 LD="${LD-ld} -64"
15561 esac
15564 rm -rf conftest*
15567 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15568 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15569 # Find out which ABI we are using.
15570 echo 'int i;' > conftest.$ac_ext
15571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15572 (eval $ac_compile) 2>&5
15573 ac_status=$?
15574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15575 test $ac_status = 0; }; then
15576 case `/usr/bin/file conftest.o` in
15577 *32-bit*)
15578 case $host in
15579 x86_64-*kfreebsd*-gnu)
15580 LD="${LD-ld} -m elf_i386_fbsd"
15582 x86_64-*linux*)
15583 case `/usr/bin/file conftest.o` in
15584 *x86-64*)
15585 LD="${LD-ld} -m elf32_x86_64"
15588 LD="${LD-ld} -m elf_i386"
15590 esac
15592 powerpc64le-*linux*)
15593 LD="${LD-ld} -m elf32lppclinux"
15595 powerpc64-*linux*)
15596 LD="${LD-ld} -m elf32ppclinux"
15598 s390x-*linux*)
15599 LD="${LD-ld} -m elf_s390"
15601 sparc64-*linux*)
15602 LD="${LD-ld} -m elf32_sparc"
15604 esac
15606 *64-bit*)
15607 case $host in
15608 x86_64-*kfreebsd*-gnu)
15609 LD="${LD-ld} -m elf_x86_64_fbsd"
15611 x86_64-*linux*)
15612 LD="${LD-ld} -m elf_x86_64"
15614 powerpcle-*linux*)
15615 LD="${LD-ld} -m elf64lppc"
15617 powerpc-*linux*)
15618 LD="${LD-ld} -m elf64ppc"
15620 s390*-*linux*|s390*-*tpf*)
15621 LD="${LD-ld} -m elf64_s390"
15623 sparc*-*linux*)
15624 LD="${LD-ld} -m elf64_sparc"
15626 esac
15628 esac
15630 rm -rf conftest*
15633 *-*-sco3.2v5*)
15634 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15635 SAVE_CFLAGS="$CFLAGS"
15636 CFLAGS="$CFLAGS -belf"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15638 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15639 if ${lt_cv_cc_needs_belf+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 ac_ext=c
15643 ac_cpp='$CPP $CPPFLAGS'
15644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15652 main ()
15656 return 0;
15658 _ACEOF
15659 if ac_fn_c_try_link "$LINENO"; then :
15660 lt_cv_cc_needs_belf=yes
15661 else
15662 lt_cv_cc_needs_belf=no
15664 rm -f core conftest.err conftest.$ac_objext \
15665 conftest$ac_exeext conftest.$ac_ext
15666 ac_ext=c
15667 ac_cpp='$CPP $CPPFLAGS'
15668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15674 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15675 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15676 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15677 CFLAGS="$SAVE_CFLAGS"
15680 sparc*-*solaris*)
15681 # Find out which ABI we are using.
15682 echo 'int i;' > conftest.$ac_ext
15683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15684 (eval $ac_compile) 2>&5
15685 ac_status=$?
15686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15687 test $ac_status = 0; }; then
15688 case `/usr/bin/file conftest.o` in
15689 *64-bit*)
15690 case $lt_cv_prog_gnu_ld in
15691 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15693 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15694 LD="${LD-ld} -64"
15697 esac
15699 esac
15701 rm -rf conftest*
15703 esac
15705 need_locks="$enable_libtool_lock"
15708 case $host_os in
15709 rhapsody* | darwin*)
15710 if test -n "$ac_tool_prefix"; then
15711 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15712 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15714 $as_echo_n "checking for $ac_word... " >&6; }
15715 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 if test -n "$DSYMUTIL"; then
15719 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15720 else
15721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722 for as_dir in $PATH
15724 IFS=$as_save_IFS
15725 test -z "$as_dir" && as_dir=.
15726 for ac_exec_ext in '' $ac_executable_extensions; do
15727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15728 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15730 break 2
15732 done
15733 done
15734 IFS=$as_save_IFS
15738 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15739 if test -n "$DSYMUTIL"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15741 $as_echo "$DSYMUTIL" >&6; }
15742 else
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15749 if test -z "$ac_cv_prog_DSYMUTIL"; then
15750 ac_ct_DSYMUTIL=$DSYMUTIL
15751 # Extract the first word of "dsymutil", so it can be a program name with args.
15752 set dummy dsymutil; ac_word=$2
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15754 $as_echo_n "checking for $ac_word... " >&6; }
15755 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 if test -n "$ac_ct_DSYMUTIL"; then
15759 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15760 else
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15764 IFS=$as_save_IFS
15765 test -z "$as_dir" && as_dir=.
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15770 break 2
15772 done
15773 done
15774 IFS=$as_save_IFS
15778 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15779 if test -n "$ac_ct_DSYMUTIL"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15781 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15782 else
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15787 if test "x$ac_ct_DSYMUTIL" = x; then
15788 DSYMUTIL=":"
15789 else
15790 case $cross_compiling:$ac_tool_warned in
15791 yes:)
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15794 ac_tool_warned=yes ;;
15795 esac
15796 DSYMUTIL=$ac_ct_DSYMUTIL
15798 else
15799 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15802 if test -n "$ac_tool_prefix"; then
15803 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15804 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15806 $as_echo_n "checking for $ac_word... " >&6; }
15807 if ${ac_cv_prog_NMEDIT+:} false; then :
15808 $as_echo_n "(cached) " >&6
15809 else
15810 if test -n "$NMEDIT"; then
15811 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15812 else
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15816 IFS=$as_save_IFS
15817 test -z "$as_dir" && as_dir=.
15818 for ac_exec_ext in '' $ac_executable_extensions; do
15819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15820 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15822 break 2
15824 done
15825 done
15826 IFS=$as_save_IFS
15830 NMEDIT=$ac_cv_prog_NMEDIT
15831 if test -n "$NMEDIT"; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15833 $as_echo "$NMEDIT" >&6; }
15834 else
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15836 $as_echo "no" >&6; }
15841 if test -z "$ac_cv_prog_NMEDIT"; then
15842 ac_ct_NMEDIT=$NMEDIT
15843 # Extract the first word of "nmedit", so it can be a program name with args.
15844 set dummy nmedit; ac_word=$2
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15846 $as_echo_n "checking for $ac_word... " >&6; }
15847 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 if test -n "$ac_ct_NMEDIT"; then
15851 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15852 else
15853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15854 for as_dir in $PATH
15856 IFS=$as_save_IFS
15857 test -z "$as_dir" && as_dir=.
15858 for ac_exec_ext in '' $ac_executable_extensions; do
15859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15860 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15862 break 2
15864 done
15865 done
15866 IFS=$as_save_IFS
15870 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15871 if test -n "$ac_ct_NMEDIT"; then
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15873 $as_echo "$ac_ct_NMEDIT" >&6; }
15874 else
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876 $as_echo "no" >&6; }
15879 if test "x$ac_ct_NMEDIT" = x; then
15880 NMEDIT=":"
15881 else
15882 case $cross_compiling:$ac_tool_warned in
15883 yes:)
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15886 ac_tool_warned=yes ;;
15887 esac
15888 NMEDIT=$ac_ct_NMEDIT
15890 else
15891 NMEDIT="$ac_cv_prog_NMEDIT"
15894 if test -n "$ac_tool_prefix"; then
15895 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15896 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898 $as_echo_n "checking for $ac_word... " >&6; }
15899 if ${ac_cv_prog_LIPO+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15902 if test -n "$LIPO"; then
15903 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15904 else
15905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15906 for as_dir in $PATH
15908 IFS=$as_save_IFS
15909 test -z "$as_dir" && as_dir=.
15910 for ac_exec_ext in '' $ac_executable_extensions; do
15911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15912 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15914 break 2
15916 done
15917 done
15918 IFS=$as_save_IFS
15922 LIPO=$ac_cv_prog_LIPO
15923 if test -n "$LIPO"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15925 $as_echo "$LIPO" >&6; }
15926 else
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15933 if test -z "$ac_cv_prog_LIPO"; then
15934 ac_ct_LIPO=$LIPO
15935 # Extract the first word of "lipo", so it can be a program name with args.
15936 set dummy lipo; ac_word=$2
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15938 $as_echo_n "checking for $ac_word... " >&6; }
15939 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 if test -n "$ac_ct_LIPO"; then
15943 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15944 else
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $PATH
15948 IFS=$as_save_IFS
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_prog_ac_ct_LIPO="lipo"
15953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954 break 2
15956 done
15957 done
15958 IFS=$as_save_IFS
15962 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15963 if test -n "$ac_ct_LIPO"; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15965 $as_echo "$ac_ct_LIPO" >&6; }
15966 else
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15971 if test "x$ac_ct_LIPO" = x; then
15972 LIPO=":"
15973 else
15974 case $cross_compiling:$ac_tool_warned in
15975 yes:)
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15978 ac_tool_warned=yes ;;
15979 esac
15980 LIPO=$ac_ct_LIPO
15982 else
15983 LIPO="$ac_cv_prog_LIPO"
15986 if test -n "$ac_tool_prefix"; then
15987 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15988 set dummy ${ac_tool_prefix}otool; ac_word=$2
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15990 $as_echo_n "checking for $ac_word... " >&6; }
15991 if ${ac_cv_prog_OTOOL+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 if test -n "$OTOOL"; then
15995 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15996 else
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
16000 IFS=$as_save_IFS
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16004 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16006 break 2
16008 done
16009 done
16010 IFS=$as_save_IFS
16014 OTOOL=$ac_cv_prog_OTOOL
16015 if test -n "$OTOOL"; then
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16017 $as_echo "$OTOOL" >&6; }
16018 else
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16025 if test -z "$ac_cv_prog_OTOOL"; then
16026 ac_ct_OTOOL=$OTOOL
16027 # Extract the first word of "otool", so it can be a program name with args.
16028 set dummy otool; ac_word=$2
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16030 $as_echo_n "checking for $ac_word... " >&6; }
16031 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16032 $as_echo_n "(cached) " >&6
16033 else
16034 if test -n "$ac_ct_OTOOL"; then
16035 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16036 else
16037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16038 for as_dir in $PATH
16040 IFS=$as_save_IFS
16041 test -z "$as_dir" && as_dir=.
16042 for ac_exec_ext in '' $ac_executable_extensions; do
16043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16044 ac_cv_prog_ac_ct_OTOOL="otool"
16045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16046 break 2
16048 done
16049 done
16050 IFS=$as_save_IFS
16054 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16055 if test -n "$ac_ct_OTOOL"; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16057 $as_echo "$ac_ct_OTOOL" >&6; }
16058 else
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 $as_echo "no" >&6; }
16063 if test "x$ac_ct_OTOOL" = x; then
16064 OTOOL=":"
16065 else
16066 case $cross_compiling:$ac_tool_warned in
16067 yes:)
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16070 ac_tool_warned=yes ;;
16071 esac
16072 OTOOL=$ac_ct_OTOOL
16074 else
16075 OTOOL="$ac_cv_prog_OTOOL"
16078 if test -n "$ac_tool_prefix"; then
16079 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16080 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16082 $as_echo_n "checking for $ac_word... " >&6; }
16083 if ${ac_cv_prog_OTOOL64+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 if test -n "$OTOOL64"; then
16087 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16088 else
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16092 IFS=$as_save_IFS
16093 test -z "$as_dir" && as_dir=.
16094 for ac_exec_ext in '' $ac_executable_extensions; do
16095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16096 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16098 break 2
16100 done
16101 done
16102 IFS=$as_save_IFS
16106 OTOOL64=$ac_cv_prog_OTOOL64
16107 if test -n "$OTOOL64"; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16109 $as_echo "$OTOOL64" >&6; }
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16117 if test -z "$ac_cv_prog_OTOOL64"; then
16118 ac_ct_OTOOL64=$OTOOL64
16119 # Extract the first word of "otool64", so it can be a program name with args.
16120 set dummy otool64; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 if test -n "$ac_ct_OTOOL64"; then
16127 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16128 else
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16132 IFS=$as_save_IFS
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_ac_ct_OTOOL64="otool64"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138 break 2
16140 done
16141 done
16142 IFS=$as_save_IFS
16146 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16147 if test -n "$ac_ct_OTOOL64"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16149 $as_echo "$ac_ct_OTOOL64" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16155 if test "x$ac_ct_OTOOL64" = x; then
16156 OTOOL64=":"
16157 else
16158 case $cross_compiling:$ac_tool_warned in
16159 yes:)
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16162 ac_tool_warned=yes ;;
16163 esac
16164 OTOOL64=$ac_ct_OTOOL64
16166 else
16167 OTOOL64="$ac_cv_prog_OTOOL64"
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16197 $as_echo_n "checking for -single_module linker flag... " >&6; }
16198 if ${lt_cv_apple_cc_single_mod+:} false; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 lt_cv_apple_cc_single_mod=no
16202 if test -z "${LT_MULTI_MODULE}"; then
16203 # By default we will add the -single_module flag. You can override
16204 # by either setting the environment variable LT_MULTI_MODULE
16205 # non-empty at configure time, or by adding -multi_module to the
16206 # link flags.
16207 rm -rf libconftest.dylib*
16208 echo "int foo(void){return 1;}" > conftest.c
16209 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16210 -dynamiclib -Wl,-single_module conftest.c" >&5
16211 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16212 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16213 _lt_result=$?
16214 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16215 lt_cv_apple_cc_single_mod=yes
16216 else
16217 cat conftest.err >&5
16219 rm -rf libconftest.dylib*
16220 rm -f conftest.*
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16224 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16226 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16227 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16228 $as_echo_n "(cached) " >&6
16229 else
16230 lt_cv_ld_exported_symbols_list=no
16231 save_LDFLAGS=$LDFLAGS
16232 echo "_main" > conftest.sym
16233 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16238 main ()
16242 return 0;
16244 _ACEOF
16245 if ac_fn_c_try_link "$LINENO"; then :
16246 lt_cv_ld_exported_symbols_list=yes
16247 else
16248 lt_cv_ld_exported_symbols_list=no
16250 rm -f core conftest.err conftest.$ac_objext \
16251 conftest$ac_exeext conftest.$ac_ext
16252 LDFLAGS="$save_LDFLAGS"
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16256 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16258 $as_echo_n "checking for -force_load linker flag... " >&6; }
16259 if ${lt_cv_ld_force_load+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16262 lt_cv_ld_force_load=no
16263 cat > conftest.c << _LT_EOF
16264 int forced_loaded() { return 2;}
16265 _LT_EOF
16266 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16267 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16268 echo "$AR cru libconftest.a conftest.o" >&5
16269 $AR cru libconftest.a conftest.o 2>&5
16270 cat > conftest.c << _LT_EOF
16271 int main() { return 0;}
16272 _LT_EOF
16273 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16274 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16275 _lt_result=$?
16276 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16277 lt_cv_ld_force_load=yes
16278 else
16279 cat conftest.err >&5
16281 rm -f conftest.err libconftest.a conftest conftest.c
16282 rm -rf conftest.dSYM
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16286 $as_echo "$lt_cv_ld_force_load" >&6; }
16287 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16288 # build without first building modern cctools / linker.
16289 case $host_cpu-$host_os in
16290 *-rhapsody* | *-darwin1.[012])
16291 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16292 *-darwin1.*)
16293 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16294 *-darwin*)
16295 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16296 # deployment target is forced to an earlier version.
16297 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16298 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16300 10.[012][,.]*)
16301 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16305 esac
16307 esac
16308 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16309 _lt_dar_single_mod='$single_module'
16311 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16312 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16313 else
16314 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16316 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16317 _lt_dsymutil='~$DSYMUTIL $lib || :'
16318 else
16319 _lt_dsymutil=
16322 esac
16325 for ac_header in dlfcn.h
16326 do :
16327 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16328 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16329 cat >>confdefs.h <<_ACEOF
16330 #define HAVE_DLFCN_H 1
16331 _ACEOF
16334 done
16340 # Set options
16344 enable_dlopen=no
16347 enable_win32_dll=no
16350 # Check whether --enable-shared was given.
16351 if test "${enable_shared+set}" = set; then :
16352 enableval=$enable_shared; p=${PACKAGE-default}
16353 case $enableval in
16354 yes) enable_shared=yes ;;
16355 no) enable_shared=no ;;
16357 enable_shared=no
16358 # Look at the argument we got. We use all the common list separators.
16359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16360 for pkg in $enableval; do
16361 IFS="$lt_save_ifs"
16362 if test "X$pkg" = "X$p"; then
16363 enable_shared=yes
16365 done
16366 IFS="$lt_save_ifs"
16368 esac
16369 else
16370 enable_shared=yes
16381 # Check whether --enable-static was given.
16382 if test "${enable_static+set}" = set; then :
16383 enableval=$enable_static; p=${PACKAGE-default}
16384 case $enableval in
16385 yes) enable_static=yes ;;
16386 no) enable_static=no ;;
16388 enable_static=no
16389 # Look at the argument we got. We use all the common list separators.
16390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16391 for pkg in $enableval; do
16392 IFS="$lt_save_ifs"
16393 if test "X$pkg" = "X$p"; then
16394 enable_static=yes
16396 done
16397 IFS="$lt_save_ifs"
16399 esac
16400 else
16401 enable_static=yes
16413 # Check whether --with-pic was given.
16414 if test "${with_pic+set}" = set; then :
16415 withval=$with_pic; pic_mode="$withval"
16416 else
16417 pic_mode=default
16421 test -z "$pic_mode" && pic_mode=default
16429 # Check whether --enable-fast-install was given.
16430 if test "${enable_fast_install+set}" = set; then :
16431 enableval=$enable_fast_install; p=${PACKAGE-default}
16432 case $enableval in
16433 yes) enable_fast_install=yes ;;
16434 no) enable_fast_install=no ;;
16436 enable_fast_install=no
16437 # Look at the argument we got. We use all the common list separators.
16438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16439 for pkg in $enableval; do
16440 IFS="$lt_save_ifs"
16441 if test "X$pkg" = "X$p"; then
16442 enable_fast_install=yes
16444 done
16445 IFS="$lt_save_ifs"
16447 esac
16448 else
16449 enable_fast_install=yes
16462 # This can be used to rebuild libtool when needed
16463 LIBTOOL_DEPS="$ltmain"
16465 # Always use our own libtool.
16466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16493 test -z "$LN_S" && LN_S="ln -s"
16508 if test -n "${ZSH_VERSION+set}" ; then
16509 setopt NO_GLOB_SUBST
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16513 $as_echo_n "checking for objdir... " >&6; }
16514 if ${lt_cv_objdir+:} false; then :
16515 $as_echo_n "(cached) " >&6
16516 else
16517 rm -f .libs 2>/dev/null
16518 mkdir .libs 2>/dev/null
16519 if test -d .libs; then
16520 lt_cv_objdir=.libs
16521 else
16522 # MS-DOS does not allow filenames that begin with a dot.
16523 lt_cv_objdir=_libs
16525 rmdir .libs 2>/dev/null
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16528 $as_echo "$lt_cv_objdir" >&6; }
16529 objdir=$lt_cv_objdir
16535 cat >>confdefs.h <<_ACEOF
16536 #define LT_OBJDIR "$lt_cv_objdir/"
16537 _ACEOF
16542 case $host_os in
16543 aix3*)
16544 # AIX sometimes has problems with the GCC collect2 program. For some
16545 # reason, if we set the COLLECT_NAMES environment variable, the problems
16546 # vanish in a puff of smoke.
16547 if test "X${COLLECT_NAMES+set}" != Xset; then
16548 COLLECT_NAMES=
16549 export COLLECT_NAMES
16552 esac
16554 # Global variables:
16555 ofile=libtool
16556 can_build_shared=yes
16558 # All known linkers require a `.a' archive for static linking (except MSVC,
16559 # which needs '.lib').
16560 libext=a
16562 with_gnu_ld="$lt_cv_prog_gnu_ld"
16564 old_CC="$CC"
16565 old_CFLAGS="$CFLAGS"
16567 # Set sane defaults for various variables
16568 test -z "$CC" && CC=cc
16569 test -z "$LTCC" && LTCC=$CC
16570 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16571 test -z "$LD" && LD=ld
16572 test -z "$ac_objext" && ac_objext=o
16574 for cc_temp in $compiler""; do
16575 case $cc_temp in
16576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16578 \-*) ;;
16579 *) break;;
16580 esac
16581 done
16582 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16585 # Only perform the check for file, if the check method requires it
16586 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16587 case $deplibs_check_method in
16588 file_magic*)
16589 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16591 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 case $MAGIC_CMD in
16596 [\\/*] | ?:[\\/]*)
16597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16600 lt_save_MAGIC_CMD="$MAGIC_CMD"
16601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16603 for ac_dir in $ac_dummy; do
16604 IFS="$lt_save_ifs"
16605 test -z "$ac_dir" && ac_dir=.
16606 if test -f $ac_dir/${ac_tool_prefix}file; then
16607 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16608 if test -n "$file_magic_test_file"; then
16609 case $deplibs_check_method in
16610 "file_magic "*)
16611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16614 $EGREP "$file_magic_regex" > /dev/null; then
16616 else
16617 cat <<_LT_EOF 1>&2
16619 *** Warning: the command libtool uses to detect shared libraries,
16620 *** $file_magic_cmd, produces output that libtool cannot recognize.
16621 *** The result is that libtool may fail to recognize shared libraries
16622 *** as such. This will affect the creation of libtool libraries that
16623 *** depend on shared libraries, but programs linked with such libtool
16624 *** libraries will work regardless of this problem. Nevertheless, you
16625 *** may want to report the problem to your system manager and/or to
16626 *** bug-libtool@gnu.org
16628 _LT_EOF
16629 fi ;;
16630 esac
16632 break
16634 done
16635 IFS="$lt_save_ifs"
16636 MAGIC_CMD="$lt_save_MAGIC_CMD"
16638 esac
16641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16642 if test -n "$MAGIC_CMD"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16644 $as_echo "$MAGIC_CMD" >&6; }
16645 else
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16647 $as_echo "no" >&6; }
16654 if test -z "$lt_cv_path_MAGIC_CMD"; then
16655 if test -n "$ac_tool_prefix"; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16657 $as_echo_n "checking for file... " >&6; }
16658 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 case $MAGIC_CMD in
16662 [\\/*] | ?:[\\/]*)
16663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16666 lt_save_MAGIC_CMD="$MAGIC_CMD"
16667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16669 for ac_dir in $ac_dummy; do
16670 IFS="$lt_save_ifs"
16671 test -z "$ac_dir" && ac_dir=.
16672 if test -f $ac_dir/file; then
16673 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16674 if test -n "$file_magic_test_file"; then
16675 case $deplibs_check_method in
16676 "file_magic "*)
16677 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16680 $EGREP "$file_magic_regex" > /dev/null; then
16682 else
16683 cat <<_LT_EOF 1>&2
16685 *** Warning: the command libtool uses to detect shared libraries,
16686 *** $file_magic_cmd, produces output that libtool cannot recognize.
16687 *** The result is that libtool may fail to recognize shared libraries
16688 *** as such. This will affect the creation of libtool libraries that
16689 *** depend on shared libraries, but programs linked with such libtool
16690 *** libraries will work regardless of this problem. Nevertheless, you
16691 *** may want to report the problem to your system manager and/or to
16692 *** bug-libtool@gnu.org
16694 _LT_EOF
16695 fi ;;
16696 esac
16698 break
16700 done
16701 IFS="$lt_save_ifs"
16702 MAGIC_CMD="$lt_save_MAGIC_CMD"
16704 esac
16707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16708 if test -n "$MAGIC_CMD"; then
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16710 $as_echo "$MAGIC_CMD" >&6; }
16711 else
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16713 $as_echo "no" >&6; }
16717 else
16718 MAGIC_CMD=:
16724 esac
16726 # Use C for the default configuration in the libtool script
16728 lt_save_CC="$CC"
16729 ac_ext=c
16730 ac_cpp='$CPP $CPPFLAGS'
16731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16736 # Source file extension for C test sources.
16737 ac_ext=c
16739 # Object file extension for compiled C test sources.
16740 objext=o
16741 objext=$objext
16743 # Code to be used in simple compile tests
16744 lt_simple_compile_test_code="int some_variable = 0;"
16746 # Code to be used in simple link tests
16747 lt_simple_link_test_code='int main(){return(0);}'
16755 # If no C compiler was specified, use CC.
16756 LTCC=${LTCC-"$CC"}
16758 # If no C compiler flags were specified, use CFLAGS.
16759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16761 # Allow CC to be a program name with arguments.
16762 compiler=$CC
16764 # Save the default compiler, since it gets overwritten when the other
16765 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16766 compiler_DEFAULT=$CC
16768 # save warnings/boilerplate of simple test code
16769 ac_outfile=conftest.$ac_objext
16770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16772 _lt_compiler_boilerplate=`cat conftest.err`
16773 $RM conftest*
16775 ac_outfile=conftest.$ac_objext
16776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16778 _lt_linker_boilerplate=`cat conftest.err`
16779 $RM -r conftest*
16782 ## CAVEAT EMPTOR:
16783 ## There is no encapsulation within the following macros, do not change
16784 ## the running order or otherwise move them around unless you know exactly
16785 ## what you are doing...
16786 if test -n "$compiler"; then
16788 lt_prog_compiler_no_builtin_flag=
16790 if test "$GCC" = yes; then
16791 case $cc_basename in
16792 nvcc*)
16793 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16795 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16796 esac
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16800 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803 lt_cv_prog_compiler_rtti_exceptions=no
16804 ac_outfile=conftest.$ac_objext
16805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16806 lt_compiler_flag="-fno-rtti -fno-exceptions"
16807 # Insert the option either (1) after the last *FLAGS variable, or
16808 # (2) before a word containing "conftest.", or (3) at the end.
16809 # Note that $ac_compile itself does not contain backslashes and begins
16810 # with a dollar sign (not a hyphen), so the echo should work correctly.
16811 # The option is referenced via a variable to avoid confusing sed.
16812 lt_compile=`echo "$ac_compile" | $SED \
16813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16815 -e 's:$: $lt_compiler_flag:'`
16816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16817 (eval "$lt_compile" 2>conftest.err)
16818 ac_status=$?
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 if (exit $ac_status) && test -s "$ac_outfile"; then
16822 # The compiler can only warn and ignore the option if not recognized
16823 # So say no if there are warnings other than the usual output.
16824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16827 lt_cv_prog_compiler_rtti_exceptions=yes
16830 $RM conftest*
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16838 else
16849 lt_prog_compiler_wl=
16850 lt_prog_compiler_pic=
16851 lt_prog_compiler_static=
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16854 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16856 if test "$GCC" = yes; then
16857 lt_prog_compiler_wl='-Wl,'
16858 lt_prog_compiler_static='-static'
16860 case $host_os in
16861 aix*)
16862 # All AIX code is PIC.
16863 if test "$host_cpu" = ia64; then
16864 # AIX 5 now supports IA64 processor
16865 lt_prog_compiler_static='-Bstatic'
16867 lt_prog_compiler_pic='-fPIC'
16870 amigaos*)
16871 case $host_cpu in
16872 powerpc)
16873 # see comment about AmigaOS4 .so support
16874 lt_prog_compiler_pic='-fPIC'
16876 m68k)
16877 # FIXME: we need at least 68020 code to build shared libraries, but
16878 # adding the `-m68020' flag to GCC prevents building anything better,
16879 # like `-m68040'.
16880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16882 esac
16885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16886 # PIC is the default for these OSes.
16889 mingw* | cygwin* | pw32* | os2* | cegcc*)
16890 # This hack is so that the source file can tell whether it is being
16891 # built for inclusion in a dll (and should export symbols for example).
16892 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16893 # (--disable-auto-import) libraries
16894 lt_prog_compiler_pic='-DDLL_EXPORT'
16897 darwin* | rhapsody*)
16898 # PIC is the default on this platform
16899 # Common symbols not allowed in MH_DYLIB files
16900 lt_prog_compiler_pic='-fno-common'
16903 haiku*)
16904 # PIC is the default for Haiku.
16905 # The "-static" flag exists, but is broken.
16906 lt_prog_compiler_static=
16909 hpux*)
16910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16912 # sets the default TLS model and affects inlining.
16913 case $host_cpu in
16914 hppa*64*)
16915 # +Z the default
16918 lt_prog_compiler_pic='-fPIC'
16920 esac
16923 interix[3-9]*)
16924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16925 # Instead, we relocate shared libraries at runtime.
16928 msdosdjgpp*)
16929 # Just because we use GCC doesn't mean we suddenly get shared libraries
16930 # on systems that don't support them.
16931 lt_prog_compiler_can_build_shared=no
16932 enable_shared=no
16935 *nto* | *qnx*)
16936 # QNX uses GNU C++, but need to define -shared option too, otherwise
16937 # it will coredump.
16938 lt_prog_compiler_pic='-fPIC -shared'
16941 sysv4*MP*)
16942 if test -d /usr/nec; then
16943 lt_prog_compiler_pic=-Kconform_pic
16948 lt_prog_compiler_pic='-fPIC'
16950 esac
16952 case $cc_basename in
16953 nvcc*) # Cuda Compiler Driver 2.2
16954 lt_prog_compiler_wl='-Xlinker '
16955 lt_prog_compiler_pic='-Xcompiler -fPIC'
16957 esac
16958 else
16959 # PORTME Check for flag to pass linker flags through the system compiler.
16960 case $host_os in
16961 aix*)
16962 lt_prog_compiler_wl='-Wl,'
16963 if test "$host_cpu" = ia64; then
16964 # AIX 5 now supports IA64 processor
16965 lt_prog_compiler_static='-Bstatic'
16966 else
16967 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16971 mingw* | cygwin* | pw32* | os2* | cegcc*)
16972 # This hack is so that the source file can tell whether it is being
16973 # built for inclusion in a dll (and should export symbols for example).
16974 lt_prog_compiler_pic='-DDLL_EXPORT'
16977 hpux9* | hpux10* | hpux11*)
16978 lt_prog_compiler_wl='-Wl,'
16979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16980 # not for PA HP-UX.
16981 case $host_cpu in
16982 hppa*64*|ia64*)
16983 # +Z the default
16986 lt_prog_compiler_pic='+Z'
16988 esac
16989 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16990 lt_prog_compiler_static='${wl}-a ${wl}archive'
16993 irix5* | irix6* | nonstopux*)
16994 lt_prog_compiler_wl='-Wl,'
16995 # PIC (with -KPIC) is the default.
16996 lt_prog_compiler_static='-non_shared'
16999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17000 case $cc_basename in
17001 # old Intel for x86_64 which still supported -KPIC.
17002 ecc*)
17003 lt_prog_compiler_wl='-Wl,'
17004 lt_prog_compiler_pic='-KPIC'
17005 lt_prog_compiler_static='-static'
17007 # icc used to be incompatible with GCC.
17008 # ICC 10 doesn't accept -KPIC any more.
17009 icc* | ifort*)
17010 lt_prog_compiler_wl='-Wl,'
17011 lt_prog_compiler_pic='-fPIC'
17012 lt_prog_compiler_static='-static'
17014 # Lahey Fortran 8.1.
17015 lf95*)
17016 lt_prog_compiler_wl='-Wl,'
17017 lt_prog_compiler_pic='--shared'
17018 lt_prog_compiler_static='--static'
17020 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17021 # Portland Group compilers (*not* the Pentium gcc compiler,
17022 # which looks to be a dead project)
17023 lt_prog_compiler_wl='-Wl,'
17024 lt_prog_compiler_pic='-fpic'
17025 lt_prog_compiler_static='-Bstatic'
17027 ccc*)
17028 lt_prog_compiler_wl='-Wl,'
17029 # All Alpha code is PIC.
17030 lt_prog_compiler_static='-non_shared'
17032 xl* | bgxl* | bgf* | mpixl*)
17033 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17034 lt_prog_compiler_wl='-Wl,'
17035 lt_prog_compiler_pic='-qpic'
17036 lt_prog_compiler_static='-qstaticlink'
17039 case `$CC -V 2>&1 | sed 5q` in
17040 *Sun\ F* | *Sun*Fortran*)
17041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17042 lt_prog_compiler_pic='-KPIC'
17043 lt_prog_compiler_static='-Bstatic'
17044 lt_prog_compiler_wl=''
17046 *Sun\ C*)
17047 # Sun C 5.9
17048 lt_prog_compiler_pic='-KPIC'
17049 lt_prog_compiler_static='-Bstatic'
17050 lt_prog_compiler_wl='-Wl,'
17052 esac
17054 esac
17057 newsos6)
17058 lt_prog_compiler_pic='-KPIC'
17059 lt_prog_compiler_static='-Bstatic'
17062 *nto* | *qnx*)
17063 # QNX uses GNU C++, but need to define -shared option too, otherwise
17064 # it will coredump.
17065 lt_prog_compiler_pic='-fPIC -shared'
17068 osf3* | osf4* | osf5*)
17069 lt_prog_compiler_wl='-Wl,'
17070 # All OSF/1 code is PIC.
17071 lt_prog_compiler_static='-non_shared'
17074 rdos*)
17075 lt_prog_compiler_static='-non_shared'
17078 solaris*)
17079 lt_prog_compiler_pic='-KPIC'
17080 lt_prog_compiler_static='-Bstatic'
17081 case $cc_basename in
17082 f77* | f90* | f95*)
17083 lt_prog_compiler_wl='-Qoption ld ';;
17085 lt_prog_compiler_wl='-Wl,';;
17086 esac
17089 sunos4*)
17090 lt_prog_compiler_wl='-Qoption ld '
17091 lt_prog_compiler_pic='-PIC'
17092 lt_prog_compiler_static='-Bstatic'
17095 sysv4 | sysv4.2uw2* | sysv4.3*)
17096 lt_prog_compiler_wl='-Wl,'
17097 lt_prog_compiler_pic='-KPIC'
17098 lt_prog_compiler_static='-Bstatic'
17101 sysv4*MP*)
17102 if test -d /usr/nec ;then
17103 lt_prog_compiler_pic='-Kconform_pic'
17104 lt_prog_compiler_static='-Bstatic'
17108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17109 lt_prog_compiler_wl='-Wl,'
17110 lt_prog_compiler_pic='-KPIC'
17111 lt_prog_compiler_static='-Bstatic'
17114 unicos*)
17115 lt_prog_compiler_wl='-Wl,'
17116 lt_prog_compiler_can_build_shared=no
17119 uts4*)
17120 lt_prog_compiler_pic='-pic'
17121 lt_prog_compiler_static='-Bstatic'
17125 lt_prog_compiler_can_build_shared=no
17127 esac
17130 case $host_os in
17131 # For platforms which do not support PIC, -DPIC is meaningless:
17132 *djgpp*)
17133 lt_prog_compiler_pic=
17136 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17138 esac
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17140 $as_echo "$lt_prog_compiler_pic" >&6; }
17148 # Check to make sure the PIC flag actually works.
17150 if test -n "$lt_prog_compiler_pic"; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17152 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17153 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17154 $as_echo_n "(cached) " >&6
17155 else
17156 lt_cv_prog_compiler_pic_works=no
17157 ac_outfile=conftest.$ac_objext
17158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17159 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17160 # Insert the option either (1) after the last *FLAGS variable, or
17161 # (2) before a word containing "conftest.", or (3) at the end.
17162 # Note that $ac_compile itself does not contain backslashes and begins
17163 # with a dollar sign (not a hyphen), so the echo should work correctly.
17164 # The option is referenced via a variable to avoid confusing sed.
17165 lt_compile=`echo "$ac_compile" | $SED \
17166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168 -e 's:$: $lt_compiler_flag:'`
17169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17170 (eval "$lt_compile" 2>conftest.err)
17171 ac_status=$?
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 if (exit $ac_status) && test -s "$ac_outfile"; then
17175 # The compiler can only warn and ignore the option if not recognized
17176 # So say no if there are warnings other than the usual output.
17177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17180 lt_cv_prog_compiler_pic_works=yes
17183 $RM conftest*
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17187 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17189 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17190 case $lt_prog_compiler_pic in
17191 "" | " "*) ;;
17192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17193 esac
17194 else
17195 lt_prog_compiler_pic=
17196 lt_prog_compiler_can_build_shared=no
17207 # Check to make sure the static flag actually works.
17209 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17211 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17212 if ${lt_cv_prog_compiler_static_works+:} false; then :
17213 $as_echo_n "(cached) " >&6
17214 else
17215 lt_cv_prog_compiler_static_works=no
17216 save_LDFLAGS="$LDFLAGS"
17217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17220 # The linker can only warn and ignore the option if not recognized
17221 # So say no if there are warnings
17222 if test -s conftest.err; then
17223 # Append any errors to the config.log.
17224 cat conftest.err 1>&5
17225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17227 if diff conftest.exp conftest.er2 >/dev/null; then
17228 lt_cv_prog_compiler_static_works=yes
17230 else
17231 lt_cv_prog_compiler_static_works=yes
17234 $RM -r conftest*
17235 LDFLAGS="$save_LDFLAGS"
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17239 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17241 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17243 else
17244 lt_prog_compiler_static=
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17255 if ${lt_cv_prog_compiler_c_o+:} false; then :
17256 $as_echo_n "(cached) " >&6
17257 else
17258 lt_cv_prog_compiler_c_o=no
17259 $RM -r conftest 2>/dev/null
17260 mkdir conftest
17261 cd conftest
17262 mkdir out
17263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17265 lt_compiler_flag="-o out/conftest2.$ac_objext"
17266 # Insert the option either (1) after the last *FLAGS variable, or
17267 # (2) before a word containing "conftest.", or (3) at the end.
17268 # Note that $ac_compile itself does not contain backslashes and begins
17269 # with a dollar sign (not a hyphen), so the echo should work correctly.
17270 lt_compile=`echo "$ac_compile" | $SED \
17271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17273 -e 's:$: $lt_compiler_flag:'`
17274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17275 (eval "$lt_compile" 2>out/conftest.err)
17276 ac_status=$?
17277 cat out/conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17280 then
17281 # The compiler can only warn and ignore the option if not recognized
17282 # So say no if there are warnings
17283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17286 lt_cv_prog_compiler_c_o=yes
17289 chmod u+w . 2>&5
17290 $RM conftest*
17291 # SGI C++ compiler will create directory out/ii_files/ for
17292 # template instantiation
17293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17294 $RM out/* && rmdir out
17295 cd ..
17296 $RM -r conftest
17297 $RM conftest*
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17301 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17310 if ${lt_cv_prog_compiler_c_o+:} false; then :
17311 $as_echo_n "(cached) " >&6
17312 else
17313 lt_cv_prog_compiler_c_o=no
17314 $RM -r conftest 2>/dev/null
17315 mkdir conftest
17316 cd conftest
17317 mkdir out
17318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17320 lt_compiler_flag="-o out/conftest2.$ac_objext"
17321 # Insert the option either (1) after the last *FLAGS variable, or
17322 # (2) before a word containing "conftest.", or (3) at the end.
17323 # Note that $ac_compile itself does not contain backslashes and begins
17324 # with a dollar sign (not a hyphen), so the echo should work correctly.
17325 lt_compile=`echo "$ac_compile" | $SED \
17326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17328 -e 's:$: $lt_compiler_flag:'`
17329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17330 (eval "$lt_compile" 2>out/conftest.err)
17331 ac_status=$?
17332 cat out/conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17335 then
17336 # The compiler can only warn and ignore the option if not recognized
17337 # So say no if there are warnings
17338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17341 lt_cv_prog_compiler_c_o=yes
17344 chmod u+w . 2>&5
17345 $RM conftest*
17346 # SGI C++ compiler will create directory out/ii_files/ for
17347 # template instantiation
17348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17349 $RM out/* && rmdir out
17350 cd ..
17351 $RM -r conftest
17352 $RM conftest*
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17361 hard_links="nottested"
17362 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17363 # do not overwrite the value of need_locks provided by the user
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17365 $as_echo_n "checking if we can lock with hard links... " >&6; }
17366 hard_links=yes
17367 $RM conftest*
17368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17369 touch conftest.a
17370 ln conftest.a conftest.b 2>&5 || hard_links=no
17371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17373 $as_echo "$hard_links" >&6; }
17374 if test "$hard_links" = no; then
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17377 need_locks=warn
17379 else
17380 need_locks=no
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17389 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17391 runpath_var=
17392 allow_undefined_flag=
17393 always_export_symbols=no
17394 archive_cmds=
17395 archive_expsym_cmds=
17396 compiler_needs_object=no
17397 enable_shared_with_static_runtimes=no
17398 export_dynamic_flag_spec=
17399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17400 hardcode_automatic=no
17401 hardcode_direct=no
17402 hardcode_direct_absolute=no
17403 hardcode_libdir_flag_spec=
17404 hardcode_libdir_flag_spec_ld=
17405 hardcode_libdir_separator=
17406 hardcode_minus_L=no
17407 hardcode_shlibpath_var=unsupported
17408 inherit_rpath=no
17409 link_all_deplibs=unknown
17410 module_cmds=
17411 module_expsym_cmds=
17412 old_archive_from_new_cmds=
17413 old_archive_from_expsyms_cmds=
17414 thread_safe_flag_spec=
17415 whole_archive_flag_spec=
17416 # include_expsyms should be a list of space-separated symbols to be *always*
17417 # included in the symbol list
17418 include_expsyms=
17419 # exclude_expsyms can be an extended regexp of symbols to exclude
17420 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17421 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17422 # as well as any symbol that contains `d'.
17423 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17425 # platforms (ab)use it in PIC code, but their linkers get confused if
17426 # the symbol is explicitly referenced. Since portable code cannot
17427 # rely on this symbol name, it's probably fine to never include it in
17428 # preloaded symbol tables.
17429 # Exclude shared library initialization/finalization symbols.
17430 extract_expsyms_cmds=
17432 case $host_os in
17433 cygwin* | mingw* | pw32* | cegcc*)
17434 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17435 # When not using gcc, we currently assume that we are using
17436 # Microsoft Visual C++.
17437 if test "$GCC" != yes; then
17438 with_gnu_ld=no
17441 interix*)
17442 # we just hope/assume this is gcc and not c89 (= MSVC++)
17443 with_gnu_ld=yes
17445 openbsd*)
17446 with_gnu_ld=no
17448 esac
17450 ld_shlibs=yes
17452 # On some targets, GNU ld is compatible enough with the native linker
17453 # that we're better off using the native interface for both.
17454 lt_use_gnu_ld_interface=no
17455 if test "$with_gnu_ld" = yes; then
17456 case $host_os in
17457 aix*)
17458 # The AIX port of GNU ld has always aspired to compatibility
17459 # with the native linker. However, as the warning in the GNU ld
17460 # block says, versions before 2.19.5* couldn't really create working
17461 # shared libraries, regardless of the interface used.
17462 case `$LD -v 2>&1` in
17463 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17464 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17465 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17467 lt_use_gnu_ld_interface=yes
17469 esac
17472 lt_use_gnu_ld_interface=yes
17474 esac
17477 if test "$lt_use_gnu_ld_interface" = yes; then
17478 # If archive_cmds runs LD, not CC, wlarc should be empty
17479 wlarc='${wl}'
17481 # Set some defaults for GNU ld with shared library support. These
17482 # are reset later if shared libraries are not supported. Putting them
17483 # here allows them to be overridden if necessary.
17484 runpath_var=LD_RUN_PATH
17485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17486 export_dynamic_flag_spec='${wl}--export-dynamic'
17487 # ancient GNU ld didn't support --whole-archive et. al.
17488 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17489 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17490 else
17491 whole_archive_flag_spec=
17493 supports_anon_versioning=no
17494 case `$LD -v 2>&1` in
17495 *GNU\ gold*) supports_anon_versioning=yes ;;
17496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17499 *\ 2.11.*) ;; # other 2.11 versions
17500 *) supports_anon_versioning=yes ;;
17501 esac
17503 # See if GNU ld supports shared libraries.
17504 case $host_os in
17505 aix[3-9]*)
17506 # On AIX/PPC, the GNU linker is very broken
17507 if test "$host_cpu" != ia64; then
17508 ld_shlibs=no
17509 cat <<_LT_EOF 1>&2
17511 *** Warning: the GNU linker, at least up to release 2.19, is reported
17512 *** to be unable to reliably create shared libraries on AIX.
17513 *** Therefore, libtool is disabling shared libraries support. If you
17514 *** really care for shared libraries, you may want to install binutils
17515 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17516 *** You will then need to restart the configuration process.
17518 _LT_EOF
17522 amigaos*)
17523 case $host_cpu in
17524 powerpc)
17525 # see comment about AmigaOS4 .so support
17526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17527 archive_expsym_cmds=''
17529 m68k)
17530 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)'
17531 hardcode_libdir_flag_spec='-L$libdir'
17532 hardcode_minus_L=yes
17534 esac
17537 beos*)
17538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17539 allow_undefined_flag=unsupported
17540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17541 # support --undefined. This deserves some investigation. FIXME
17542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 else
17544 ld_shlibs=no
17548 cygwin* | mingw* | pw32* | cegcc*)
17549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17550 # as there is no search path for DLLs.
17551 hardcode_libdir_flag_spec='-L$libdir'
17552 export_dynamic_flag_spec='${wl}--export-all-symbols'
17553 allow_undefined_flag=unsupported
17554 always_export_symbols=no
17555 enable_shared_with_static_runtimes=yes
17556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17560 # If the export-symbols file already is a .def file (1st line
17561 # is EXPORTS), use it as is; otherwise, prepend...
17562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17563 cp $export_symbols $output_objdir/$soname.def;
17564 else
17565 echo EXPORTS > $output_objdir/$soname.def;
17566 cat $export_symbols >> $output_objdir/$soname.def;
17568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17569 else
17570 ld_shlibs=no
17574 haiku*)
17575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17576 link_all_deplibs=yes
17579 interix[3-9]*)
17580 hardcode_direct=no
17581 hardcode_shlibpath_var=no
17582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17583 export_dynamic_flag_spec='${wl}-E'
17584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17585 # Instead, shared libraries are loaded at an image base (0x10000000 by
17586 # default) and relocated if they conflict, which is a slow very memory
17587 # consuming and fragmenting process. To avoid this, we pick a random,
17588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17591 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'
17594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17595 tmp_diet=no
17596 if test "$host_os" = linux-dietlibc; then
17597 case $cc_basename in
17598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17599 esac
17601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17602 && test "$tmp_diet" = no
17603 then
17604 tmp_addflag=' $pic_flag'
17605 tmp_sharedflag='-shared'
17606 case $cc_basename,$host_cpu in
17607 pgcc*) # Portland Group C compiler
17608 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'
17609 tmp_addflag=' $pic_flag'
17611 pgf77* | pgf90* | pgf95* | pgfortran*)
17612 # Portland Group f77 and f90 compilers
17613 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'
17614 tmp_addflag=' $pic_flag -Mnomain' ;;
17615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17616 tmp_addflag=' -i_dynamic' ;;
17617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17618 tmp_addflag=' -i_dynamic -nofor_main' ;;
17619 ifc* | ifort*) # Intel Fortran compiler
17620 tmp_addflag=' -nofor_main' ;;
17621 lf95*) # Lahey Fortran 8.1
17622 whole_archive_flag_spec=
17623 tmp_sharedflag='--shared' ;;
17624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17625 tmp_sharedflag='-qmkshrobj'
17626 tmp_addflag= ;;
17627 nvcc*) # Cuda Compiler Driver 2.2
17628 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'
17629 compiler_needs_object=yes
17631 esac
17632 case `$CC -V 2>&1 | sed 5q` in
17633 *Sun\ C*) # Sun C 5.9
17634 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'
17635 compiler_needs_object=yes
17636 tmp_sharedflag='-G' ;;
17637 *Sun\ F*) # Sun Fortran 8.3
17638 tmp_sharedflag='-G' ;;
17639 esac
17640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 if test "x$supports_anon_versioning" = xyes; then
17643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17645 echo "local: *; };" >> $output_objdir/$libname.ver~
17646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17649 case $cc_basename in
17650 xlf* | bgf* | bgxlf* | mpixlf*)
17651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17653 hardcode_libdir_flag_spec=
17654 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17655 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17656 if test "x$supports_anon_versioning" = xyes; then
17657 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17659 echo "local: *; };" >> $output_objdir/$libname.ver~
17660 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17663 esac
17664 else
17665 ld_shlibs=no
17669 netbsd*)
17670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17671 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17672 wlarc=
17673 else
17674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17679 solaris*)
17680 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17681 ld_shlibs=no
17682 cat <<_LT_EOF 1>&2
17684 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17685 *** create shared libraries on Solaris systems. Therefore, libtool
17686 *** is disabling shared libraries support. We urge you to upgrade GNU
17687 *** binutils to release 2.9.1 or newer. Another option is to modify
17688 *** your PATH or compiler configuration so that the native linker is
17689 *** used, and then restart.
17691 _LT_EOF
17692 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17695 else
17696 ld_shlibs=no
17700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17701 case `$LD -v 2>&1` in
17702 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17703 ld_shlibs=no
17704 cat <<_LT_EOF 1>&2
17706 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17707 *** reliably create shared libraries on SCO systems. Therefore, libtool
17708 *** is disabling shared libraries support. We urge you to upgrade GNU
17709 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17710 *** your PATH or compiler configuration so that the native linker is
17711 *** used, and then restart.
17713 _LT_EOF
17716 # For security reasons, it is highly recommended that you always
17717 # use absolute paths for naming shared libraries, and exclude the
17718 # DT_RUNPATH tag from executables and libraries. But doing so
17719 # requires that you compile everything twice, which is a pain.
17720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17724 else
17725 ld_shlibs=no
17728 esac
17731 sunos4*)
17732 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17733 wlarc=
17734 hardcode_direct=yes
17735 hardcode_shlibpath_var=no
17739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17742 else
17743 ld_shlibs=no
17746 esac
17748 if test "$ld_shlibs" = no; then
17749 runpath_var=
17750 hardcode_libdir_flag_spec=
17751 export_dynamic_flag_spec=
17752 whole_archive_flag_spec=
17754 else
17755 # PORTME fill in a description of your system's linker (not GNU ld)
17756 case $host_os in
17757 aix3*)
17758 allow_undefined_flag=unsupported
17759 always_export_symbols=yes
17760 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'
17761 # Note: this linker hardcodes the directories in LIBPATH if there
17762 # are no directories specified by -L.
17763 hardcode_minus_L=yes
17764 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17765 # Neither direct hardcoding nor static linking is supported with a
17766 # broken collect2.
17767 hardcode_direct=unsupported
17771 aix[4-9]*)
17772 if test "$host_cpu" = ia64; then
17773 # On IA64, the linker does run time linking by default, so we don't
17774 # have to do anything special.
17775 aix_use_runtimelinking=no
17776 exp_sym_flag='-Bexport'
17777 no_entry_flag=""
17778 else
17779 # If we're using GNU nm, then we don't want the "-C" option.
17780 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17781 # Also, AIX nm treats weak defined symbols like other global
17782 # defined symbols, whereas GNU nm marks them as "W".
17783 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17784 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'
17785 else
17786 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'
17788 aix_use_runtimelinking=no
17790 # Test if we are trying to use run time linking or normal
17791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17792 # need to do runtime linking.
17793 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17794 for ld_flag in $LDFLAGS; do
17795 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17796 aix_use_runtimelinking=yes
17797 break
17799 done
17801 esac
17803 exp_sym_flag='-bexport'
17804 no_entry_flag='-bnoentry'
17807 # When large executables or shared objects are built, AIX ld can
17808 # have problems creating the table of contents. If linking a library
17809 # or program results in "error TOC overflow" add -mminimal-toc to
17810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17813 archive_cmds=''
17814 hardcode_direct=yes
17815 hardcode_direct_absolute=yes
17816 hardcode_libdir_separator=':'
17817 link_all_deplibs=yes
17818 file_list_spec='${wl}-f,'
17820 if test "$GCC" = yes; then
17821 case $host_os in aix4.[012]|aix4.[012].*)
17822 # We only want to do this on AIX 4.2 and lower, the check
17823 # below for broken collect2 doesn't work under 4.3+
17824 collect2name=`${CC} -print-prog-name=collect2`
17825 if test -f "$collect2name" &&
17826 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17827 then
17828 # We have reworked collect2
17830 else
17831 # We have old collect2
17832 hardcode_direct=unsupported
17833 # It fails to find uninstalled libraries when the uninstalled
17834 # path is not listed in the libpath. Setting hardcode_minus_L
17835 # to unsupported forces relinking
17836 hardcode_minus_L=yes
17837 hardcode_libdir_flag_spec='-L$libdir'
17838 hardcode_libdir_separator=
17841 esac
17842 shared_flag='-shared'
17843 if test "$aix_use_runtimelinking" = yes; then
17844 shared_flag="$shared_flag "'${wl}-G'
17846 else
17847 # not using gcc
17848 if test "$host_cpu" = ia64; then
17849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17850 # chokes on -Wl,-G. The following line is correct:
17851 shared_flag='-G'
17852 else
17853 if test "$aix_use_runtimelinking" = yes; then
17854 shared_flag='${wl}-G'
17855 else
17856 shared_flag='${wl}-bM:SRE'
17861 export_dynamic_flag_spec='${wl}-bexpall'
17862 # It seems that -bexpall does not export symbols beginning with
17863 # underscore (_), so it is better to generate a list of symbols to export.
17864 always_export_symbols=yes
17865 if test "$aix_use_runtimelinking" = yes; then
17866 # Warning - without using the other runtime loading flags (-brtl),
17867 # -berok will link without error, but may produce a broken library.
17868 allow_undefined_flag='-berok'
17869 # Determine the default libpath from the value encoded in an
17870 # empty executable.
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17875 main ()
17879 return 0;
17881 _ACEOF
17882 if ac_fn_c_try_link "$LINENO"; then :
17884 lt_aix_libpath_sed='
17885 /Import File Strings/,/^$/ {
17886 /^0/ {
17887 s/^0 *\(.*\)$/\1/
17891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17892 # Check for a 64-bit object if we didn't find anything.
17893 if test -z "$aix_libpath"; then
17894 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17897 rm -f core conftest.err conftest.$ac_objext \
17898 conftest$ac_exeext conftest.$ac_ext
17899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17902 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"
17903 else
17904 if test "$host_cpu" = ia64; then
17905 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17906 allow_undefined_flag="-z nodefs"
17907 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"
17908 else
17909 # Determine the default libpath from the value encoded in an
17910 # empty executable.
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17915 main ()
17919 return 0;
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"; then :
17924 lt_aix_libpath_sed='
17925 /Import File Strings/,/^$/ {
17926 /^0/ {
17927 s/^0 *\(.*\)$/\1/
17931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17932 # Check for a 64-bit object if we didn't find anything.
17933 if test -z "$aix_libpath"; then
17934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17941 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17942 # Warning - without using the other run time loading flags,
17943 # -berok will link without error, but may produce a broken library.
17944 no_undefined_flag=' ${wl}-bernotok'
17945 allow_undefined_flag=' ${wl}-berok'
17946 if test "$with_gnu_ld" = yes; then
17947 # We only use this code for GNU lds that support --whole-archive.
17948 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17949 else
17950 # Exported symbols can be pulled into shared objects from archives
17951 whole_archive_flag_spec='$convenience'
17953 archive_cmds_need_lc=yes
17954 # This is similar to how AIX traditionally builds its shared libraries.
17955 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'
17960 amigaos*)
17961 case $host_cpu in
17962 powerpc)
17963 # see comment about AmigaOS4 .so support
17964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17965 archive_expsym_cmds=''
17967 m68k)
17968 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)'
17969 hardcode_libdir_flag_spec='-L$libdir'
17970 hardcode_minus_L=yes
17972 esac
17975 bsdi[45]*)
17976 export_dynamic_flag_spec=-rdynamic
17979 cygwin* | mingw* | pw32* | cegcc*)
17980 # When not using gcc, we currently assume that we are using
17981 # Microsoft Visual C++.
17982 # hardcode_libdir_flag_spec is actually meaningless, as there is
17983 # no search path for DLLs.
17984 hardcode_libdir_flag_spec=' '
17985 allow_undefined_flag=unsupported
17986 # Tell ltmain to make .lib files, not .a files.
17987 libext=lib
17988 # Tell ltmain to make .dll files, not .so files.
17989 shrext_cmds=".dll"
17990 # FIXME: Setting linknames here is a bad hack.
17991 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17992 # The linker will automatically build a .lib file if we build a DLL.
17993 old_archive_from_new_cmds='true'
17994 # FIXME: Should let the user specify the lib program.
17995 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17996 fix_srcfile_path='`cygpath -w "$srcfile"`'
17997 enable_shared_with_static_runtimes=yes
18000 darwin* | rhapsody*)
18003 archive_cmds_need_lc=no
18004 hardcode_direct=no
18005 hardcode_automatic=yes
18006 hardcode_shlibpath_var=unsupported
18007 if test "$lt_cv_ld_force_load" = "yes"; then
18008 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\"`'
18009 else
18010 whole_archive_flag_spec=''
18012 link_all_deplibs=yes
18013 allow_undefined_flag="$_lt_dar_allow_undefined"
18014 case $cc_basename in
18015 ifort*) _lt_dar_can_shared=yes ;;
18016 *) _lt_dar_can_shared=$GCC ;;
18017 esac
18018 if test "$_lt_dar_can_shared" = "yes"; then
18019 output_verbose_link_cmd=func_echo_all
18020 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18021 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18022 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}"
18023 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}"
18025 else
18026 ld_shlibs=no
18031 dgux*)
18032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033 hardcode_libdir_flag_spec='-L$libdir'
18034 hardcode_shlibpath_var=no
18037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18038 # support. Future versions do this automatically, but an explicit c++rt0.o
18039 # does not break anything, and helps significantly (at the cost of a little
18040 # extra space).
18041 freebsd2.2*)
18042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18043 hardcode_libdir_flag_spec='-R$libdir'
18044 hardcode_direct=yes
18045 hardcode_shlibpath_var=no
18048 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18049 freebsd2.*)
18050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18051 hardcode_direct=yes
18052 hardcode_minus_L=yes
18053 hardcode_shlibpath_var=no
18056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18057 freebsd* | dragonfly*)
18058 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18059 hardcode_libdir_flag_spec='-R$libdir'
18060 hardcode_direct=yes
18061 hardcode_shlibpath_var=no
18064 hpux9*)
18065 if test "$GCC" = yes; then
18066 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'
18067 else
18068 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'
18070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18071 hardcode_libdir_separator=:
18072 hardcode_direct=yes
18074 # hardcode_minus_L: Not really in the search PATH,
18075 # but as the default location of the library.
18076 hardcode_minus_L=yes
18077 export_dynamic_flag_spec='${wl}-E'
18080 hpux10*)
18081 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18083 else
18084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18086 if test "$with_gnu_ld" = no; then
18087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18088 hardcode_libdir_flag_spec_ld='+b $libdir'
18089 hardcode_libdir_separator=:
18090 hardcode_direct=yes
18091 hardcode_direct_absolute=yes
18092 export_dynamic_flag_spec='${wl}-E'
18093 # hardcode_minus_L: Not really in the search PATH,
18094 # but as the default location of the library.
18095 hardcode_minus_L=yes
18099 hpux11*)
18100 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18101 case $host_cpu in
18102 hppa*64*)
18103 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18105 ia64*)
18106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18111 esac
18112 else
18113 case $host_cpu in
18114 hppa*64*)
18115 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18117 ia64*)
18118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18122 # Older versions of the 11.00 compiler do not understand -b yet
18123 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18125 $as_echo_n "checking if $CC understands -b... " >&6; }
18126 if ${lt_cv_prog_compiler__b+:} false; then :
18127 $as_echo_n "(cached) " >&6
18128 else
18129 lt_cv_prog_compiler__b=no
18130 save_LDFLAGS="$LDFLAGS"
18131 LDFLAGS="$LDFLAGS -b"
18132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18134 # The linker can only warn and ignore the option if not recognized
18135 # So say no if there are warnings
18136 if test -s conftest.err; then
18137 # Append any errors to the config.log.
18138 cat conftest.err 1>&5
18139 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18141 if diff conftest.exp conftest.er2 >/dev/null; then
18142 lt_cv_prog_compiler__b=yes
18144 else
18145 lt_cv_prog_compiler__b=yes
18148 $RM -r conftest*
18149 LDFLAGS="$save_LDFLAGS"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18155 if test x"$lt_cv_prog_compiler__b" = xyes; then
18156 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18157 else
18158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18162 esac
18164 if test "$with_gnu_ld" = no; then
18165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18166 hardcode_libdir_separator=:
18168 case $host_cpu in
18169 hppa*64*|ia64*)
18170 hardcode_direct=no
18171 hardcode_shlibpath_var=no
18174 hardcode_direct=yes
18175 hardcode_direct_absolute=yes
18176 export_dynamic_flag_spec='${wl}-E'
18178 # hardcode_minus_L: Not really in the search PATH,
18179 # but as the default location of the library.
18180 hardcode_minus_L=yes
18182 esac
18186 irix5* | irix6* | nonstopux*)
18187 if test "$GCC" = yes; then
18188 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'
18189 # Try to use the -exported_symbol ld option, if it does not
18190 # work, assume that -exports_file does not work either and
18191 # implicitly export all symbols.
18192 save_LDFLAGS="$LDFLAGS"
18193 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18196 int foo(void) {}
18197 _ACEOF
18198 if ac_fn_c_try_link "$LINENO"; then :
18199 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'
18202 rm -f core conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
18204 LDFLAGS="$save_LDFLAGS"
18205 else
18206 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'
18207 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'
18209 archive_cmds_need_lc='no'
18210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18211 hardcode_libdir_separator=:
18212 inherit_rpath=yes
18213 link_all_deplibs=yes
18216 netbsd*)
18217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18219 else
18220 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18222 hardcode_libdir_flag_spec='-R$libdir'
18223 hardcode_direct=yes
18224 hardcode_shlibpath_var=no
18227 newsos6)
18228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229 hardcode_direct=yes
18230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18231 hardcode_libdir_separator=:
18232 hardcode_shlibpath_var=no
18235 *nto* | *qnx*)
18238 openbsd*)
18239 if test -f /usr/libexec/ld.so; then
18240 hardcode_direct=yes
18241 hardcode_shlibpath_var=no
18242 hardcode_direct_absolute=yes
18243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18245 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18247 export_dynamic_flag_spec='${wl}-E'
18248 else
18249 case $host_os in
18250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18252 hardcode_libdir_flag_spec='-R$libdir'
18255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18258 esac
18260 else
18261 ld_shlibs=no
18265 os2*)
18266 hardcode_libdir_flag_spec='-L$libdir'
18267 hardcode_minus_L=yes
18268 allow_undefined_flag=unsupported
18269 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'
18270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18273 osf3*)
18274 if test "$GCC" = yes; then
18275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18276 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'
18277 else
18278 allow_undefined_flag=' -expect_unresolved \*'
18279 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'
18281 archive_cmds_need_lc='no'
18282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18283 hardcode_libdir_separator=:
18286 osf4* | osf5*) # as osf3* with the addition of -msym flag
18287 if test "$GCC" = yes; then
18288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18289 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'
18290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18291 else
18292 allow_undefined_flag=' -expect_unresolved \*'
18293 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'
18294 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~
18295 $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'
18297 # Both c and cxx compiler support -rpath directly
18298 hardcode_libdir_flag_spec='-rpath $libdir'
18300 archive_cmds_need_lc='no'
18301 hardcode_libdir_separator=:
18304 solaris*)
18305 no_undefined_flag=' -z defs'
18306 if test "$GCC" = yes; then
18307 wlarc='${wl}'
18308 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18310 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18311 else
18312 case `$CC -V 2>&1` in
18313 *"Compilers 5.0"*)
18314 wlarc=''
18315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18320 wlarc='${wl}'
18321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18325 esac
18327 hardcode_libdir_flag_spec='-R$libdir'
18328 hardcode_shlibpath_var=no
18329 case $host_os in
18330 solaris2.[0-5] | solaris2.[0-5].*) ;;
18332 # The compiler driver will combine and reorder linker options,
18333 # but understands `-z linker_flag'. GCC discards it without `$wl',
18334 # but is careful enough not to reorder.
18335 # Supported since Solaris 2.6 (maybe 2.5.1?)
18336 if test "$GCC" = yes; then
18337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18338 else
18339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18342 esac
18343 link_all_deplibs=yes
18346 sunos4*)
18347 if test "x$host_vendor" = xsequent; then
18348 # Use $CC to link under sequent, because it throws in some extra .o
18349 # files that make .init and .fini sections work.
18350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18351 else
18352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18354 hardcode_libdir_flag_spec='-L$libdir'
18355 hardcode_direct=yes
18356 hardcode_minus_L=yes
18357 hardcode_shlibpath_var=no
18360 sysv4)
18361 case $host_vendor in
18362 sni)
18363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18364 hardcode_direct=yes # is this really true???
18366 siemens)
18367 ## LD is ld it makes a PLAMLIB
18368 ## CC just makes a GrossModule.
18369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18370 reload_cmds='$CC -r -o $output$reload_objs'
18371 hardcode_direct=no
18373 motorola)
18374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18377 esac
18378 runpath_var='LD_RUN_PATH'
18379 hardcode_shlibpath_var=no
18382 sysv4.3*)
18383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384 hardcode_shlibpath_var=no
18385 export_dynamic_flag_spec='-Bexport'
18388 sysv4*MP*)
18389 if test -d /usr/nec; then
18390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_shlibpath_var=no
18392 runpath_var=LD_RUN_PATH
18393 hardcode_runpath_var=yes
18394 ld_shlibs=yes
18398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18399 no_undefined_flag='${wl}-z,text'
18400 archive_cmds_need_lc=no
18401 hardcode_shlibpath_var=no
18402 runpath_var='LD_RUN_PATH'
18404 if test "$GCC" = yes; then
18405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 else
18408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18413 sysv5* | sco3.2v5* | sco5v6*)
18414 # Note: We can NOT use -z defs as we might desire, because we do not
18415 # link with -lc, and that would cause any symbols used from libc to
18416 # always be unresolved, which means just about no library would
18417 # ever link correctly. If we're not using GNU ld we use -z text
18418 # though, which does catch some bad symbols but isn't as heavy-handed
18419 # as -z defs.
18420 no_undefined_flag='${wl}-z,text'
18421 allow_undefined_flag='${wl}-z,nodefs'
18422 archive_cmds_need_lc=no
18423 hardcode_shlibpath_var=no
18424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18425 hardcode_libdir_separator=':'
18426 link_all_deplibs=yes
18427 export_dynamic_flag_spec='${wl}-Bexport'
18428 runpath_var='LD_RUN_PATH'
18430 if test "$GCC" = yes; then
18431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18433 else
18434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18439 uts4*)
18440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18441 hardcode_libdir_flag_spec='-L$libdir'
18442 hardcode_shlibpath_var=no
18446 ld_shlibs=no
18448 esac
18450 if test x$host_vendor = xsni; then
18451 case $host in
18452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18453 export_dynamic_flag_spec='${wl}-Blargedynsym'
18455 esac
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18460 $as_echo "$ld_shlibs" >&6; }
18461 test "$ld_shlibs" = no && can_build_shared=no
18463 with_gnu_ld=$with_gnu_ld
18480 # Do we need to explicitly link libc?
18482 case "x$archive_cmds_need_lc" in
18483 x|xyes)
18484 # Assume -lc should be added
18485 archive_cmds_need_lc=yes
18487 if test "$enable_shared" = yes && test "$GCC" = yes; then
18488 case $archive_cmds in
18489 *'~'*)
18490 # FIXME: we may have to deal with multi-command sequences.
18492 '$CC '*)
18493 # Test whether the compiler implicitly links with -lc since on some
18494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18495 # to ld, don't add -lc before -lgcc.
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18498 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18499 $as_echo_n "(cached) " >&6
18500 else
18501 $RM conftest*
18502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18505 (eval $ac_compile) 2>&5
18506 ac_status=$?
18507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508 test $ac_status = 0; } 2>conftest.err; then
18509 soname=conftest
18510 lib=conftest
18511 libobjs=conftest.$ac_objext
18512 deplibs=
18513 wl=$lt_prog_compiler_wl
18514 pic_flag=$lt_prog_compiler_pic
18515 compiler_flags=-v
18516 linker_flags=-v
18517 verstring=
18518 output_objdir=.
18519 libname=conftest
18520 lt_save_allow_undefined_flag=$allow_undefined_flag
18521 allow_undefined_flag=
18522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18523 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18524 ac_status=$?
18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526 test $ac_status = 0; }
18527 then
18528 lt_cv_archive_cmds_need_lc=no
18529 else
18530 lt_cv_archive_cmds_need_lc=yes
18532 allow_undefined_flag=$lt_save_allow_undefined_flag
18533 else
18534 cat conftest.err 1>&5
18536 $RM conftest*
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18540 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18541 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18543 esac
18546 esac
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18707 if test "$GCC" = yes; then
18708 case $host_os in
18709 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18710 *) lt_awk_arg="/^libraries:/" ;;
18711 esac
18712 case $host_os in
18713 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18714 *) lt_sed_strip_eq="s,=/,/,g" ;;
18715 esac
18716 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18717 case $lt_search_path_spec in
18718 *\;*)
18719 # if the path contains ";" then we assume it to be the separator
18720 # otherwise default to the standard path separator (i.e. ":") - it is
18721 # assumed that no part of a normal pathname contains ";" but that should
18722 # okay in the real world where ";" in dirpaths is itself problematic.
18723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18728 esac
18729 # Ok, now we have the path, separated by spaces, we can step through it
18730 # and add multilib dir if necessary.
18731 lt_tmp_lt_search_path_spec=
18732 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18733 for lt_sys_path in $lt_search_path_spec; do
18734 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18736 else
18737 test -d "$lt_sys_path" && \
18738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18740 done
18741 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18742 BEGIN {RS=" "; FS="/|\n";} {
18743 lt_foo="";
18744 lt_count=0;
18745 for (lt_i = NF; lt_i > 0; lt_i--) {
18746 if ($lt_i != "" && $lt_i != ".") {
18747 if ($lt_i == "..") {
18748 lt_count++;
18749 } else {
18750 if (lt_count == 0) {
18751 lt_foo="/" $lt_i lt_foo;
18752 } else {
18753 lt_count--;
18758 if (lt_foo != "") { lt_freq[lt_foo]++; }
18759 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18761 # AWK program above erroneously prepends '/' to C:/dos/paths
18762 # for these hosts.
18763 case $host_os in
18764 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18765 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18766 esac
18767 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18768 else
18769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18771 library_names_spec=
18772 libname_spec='lib$name'
18773 soname_spec=
18774 shrext_cmds=".so"
18775 postinstall_cmds=
18776 postuninstall_cmds=
18777 finish_cmds=
18778 finish_eval=
18779 shlibpath_var=
18780 shlibpath_overrides_runpath=unknown
18781 version_type=none
18782 dynamic_linker="$host_os ld.so"
18783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18784 need_lib_prefix=unknown
18785 hardcode_into_libs=no
18787 # when you set need_version to no, make sure it does not cause -set_version
18788 # flags to be left without arguments
18789 need_version=unknown
18791 case $host_os in
18792 aix3*)
18793 version_type=linux
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18795 shlibpath_var=LIBPATH
18797 # AIX 3 has no versioning support, so we append a major version to the name.
18798 soname_spec='${libname}${release}${shared_ext}$major'
18801 aix[4-9]*)
18802 version_type=linux
18803 need_lib_prefix=no
18804 need_version=no
18805 hardcode_into_libs=yes
18806 if test "$host_cpu" = ia64; then
18807 # AIX 5 supports IA64
18808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18809 shlibpath_var=LD_LIBRARY_PATH
18810 else
18811 # With GCC up to 2.95.x, collect2 would create an import file
18812 # for dependence libraries. The import file would start with
18813 # the line `#! .'. This would cause the generated library to
18814 # depend on `.', always an invalid library. This was fixed in
18815 # development snapshots of GCC prior to 3.0.
18816 case $host_os in
18817 aix4 | aix4.[01] | aix4.[01].*)
18818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18819 echo ' yes '
18820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18822 else
18823 can_build_shared=no
18826 esac
18827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18828 # soname into executable. Probably we can add versioning support to
18829 # collect2, so additional links can be useful in future.
18830 if test "$aix_use_runtimelinking" = yes; then
18831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18832 # instead of lib<name>.a to let people know that these are not
18833 # typical AIX shared libraries.
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 else
18836 # We preserve .a as extension for shared libraries through AIX4.2
18837 # and later when we are not doing run time linking.
18838 library_names_spec='${libname}${release}.a $libname.a'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18841 shlibpath_var=LIBPATH
18845 amigaos*)
18846 case $host_cpu in
18847 powerpc)
18848 # Since July 2007 AmigaOS4 officially supports .so libraries.
18849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18852 m68k)
18853 library_names_spec='$libname.ixlibrary $libname.a'
18854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18855 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'
18857 esac
18860 beos*)
18861 library_names_spec='${libname}${shared_ext}'
18862 dynamic_linker="$host_os ld.so"
18863 shlibpath_var=LIBRARY_PATH
18866 bsdi[45]*)
18867 version_type=linux
18868 need_version=no
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18872 shlibpath_var=LD_LIBRARY_PATH
18873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18875 # the default ld.so.conf also contains /usr/contrib/lib and
18876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18877 # libtool to hard-code these into programs
18880 cygwin* | mingw* | pw32* | cegcc*)
18881 version_type=windows
18882 shrext_cmds=".dll"
18883 need_version=no
18884 need_lib_prefix=no
18886 case $GCC,$host_os in
18887 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18888 library_names_spec='$libname.dll.a'
18889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18890 postinstall_cmds='base_file=`basename \${file}`~
18891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18892 dldir=$destdir/`dirname \$dlpath`~
18893 test -d \$dldir || mkdir -p \$dldir~
18894 $install_prog $dir/$dlname \$dldir/$dlname~
18895 chmod a+x \$dldir/$dlname~
18896 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18897 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18900 dlpath=$dir/\$dldll~
18901 $RM \$dlpath'
18902 shlibpath_overrides_runpath=yes
18904 case $host_os in
18905 cygwin*)
18906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18911 mingw* | cegcc*)
18912 # MinGW DLLs use traditional 'lib' prefix
18913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18915 pw32*)
18916 # pw32 DLLs use 'pw' prefix rather than 'lib'
18917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18919 esac
18923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18925 esac
18926 dynamic_linker='Win32 ld.exe'
18927 # FIXME: first we should search . and the directory the executable is in
18928 shlibpath_var=PATH
18931 darwin* | rhapsody*)
18932 dynamic_linker="$host_os dyld"
18933 version_type=darwin
18934 need_lib_prefix=no
18935 need_version=no
18936 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18937 soname_spec='${libname}${release}${major}$shared_ext'
18938 shlibpath_overrides_runpath=yes
18939 shlibpath_var=DYLD_LIBRARY_PATH
18940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18946 dgux*)
18947 version_type=linux
18948 need_lib_prefix=no
18949 need_version=no
18950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18951 soname_spec='${libname}${release}${shared_ext}$major'
18952 shlibpath_var=LD_LIBRARY_PATH
18955 freebsd* | dragonfly*)
18956 # DragonFly does not have aout. When/if they implement a new
18957 # versioning mechanism, adjust this.
18958 if test -x /usr/bin/objformat; then
18959 objformat=`/usr/bin/objformat`
18960 else
18961 case $host_os in
18962 freebsd[23].*) objformat=aout ;;
18963 *) objformat=elf ;;
18964 esac
18966 version_type=freebsd-$objformat
18967 case $version_type in
18968 freebsd-elf*)
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18970 need_version=no
18971 need_lib_prefix=no
18973 freebsd-*)
18974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18975 need_version=yes
18977 esac
18978 shlibpath_var=LD_LIBRARY_PATH
18979 case $host_os in
18980 freebsd2.*)
18981 shlibpath_overrides_runpath=yes
18983 freebsd3.[01]* | freebsdelf3.[01]*)
18984 shlibpath_overrides_runpath=yes
18985 hardcode_into_libs=yes
18987 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18988 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18989 shlibpath_overrides_runpath=no
18990 hardcode_into_libs=yes
18992 *) # from 4.6 on, and DragonFly
18993 shlibpath_overrides_runpath=yes
18994 hardcode_into_libs=yes
18996 esac
18999 haiku*)
19000 version_type=linux
19001 need_lib_prefix=no
19002 need_version=no
19003 dynamic_linker="$host_os runtime_loader"
19004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19005 soname_spec='${libname}${release}${shared_ext}$major'
19006 shlibpath_var=LIBRARY_PATH
19007 shlibpath_overrides_runpath=yes
19008 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19009 hardcode_into_libs=yes
19012 hpux9* | hpux10* | hpux11*)
19013 # Give a soname corresponding to the major version so that dld.sl refuses to
19014 # link against other versions.
19015 version_type=sunos
19016 need_lib_prefix=no
19017 need_version=no
19018 case $host_cpu in
19019 ia64*)
19020 shrext_cmds='.so'
19021 hardcode_into_libs=yes
19022 dynamic_linker="$host_os dld.so"
19023 shlibpath_var=LD_LIBRARY_PATH
19024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 if test "X$HPUX_IA64_MODE" = X32; then
19028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19029 else
19030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19034 hppa*64*)
19035 shrext_cmds='.sl'
19036 hardcode_into_libs=yes
19037 dynamic_linker="$host_os dld.sl"
19038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19041 soname_spec='${libname}${release}${shared_ext}$major'
19042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19046 shrext_cmds='.sl'
19047 dynamic_linker="$host_os dld.sl"
19048 shlibpath_var=SHLIB_PATH
19049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19051 soname_spec='${libname}${release}${shared_ext}$major'
19053 esac
19054 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19055 postinstall_cmds='chmod 555 $lib'
19056 # or fails outright, so override atomically:
19057 install_override_mode=555
19060 interix[3-9]*)
19061 version_type=linux
19062 need_lib_prefix=no
19063 need_version=no
19064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19065 soname_spec='${libname}${release}${shared_ext}$major'
19066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19067 shlibpath_var=LD_LIBRARY_PATH
19068 shlibpath_overrides_runpath=no
19069 hardcode_into_libs=yes
19072 irix5* | irix6* | nonstopux*)
19073 case $host_os in
19074 nonstopux*) version_type=nonstopux ;;
19076 if test "$lt_cv_prog_gnu_ld" = yes; then
19077 version_type=linux
19078 else
19079 version_type=irix
19080 fi ;;
19081 esac
19082 need_lib_prefix=no
19083 need_version=no
19084 soname_spec='${libname}${release}${shared_ext}$major'
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19086 case $host_os in
19087 irix5* | nonstopux*)
19088 libsuff= shlibsuff=
19091 case $LD in # libtool.m4 will add one of these switches to LD
19092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19093 libsuff= shlibsuff= libmagic=32-bit;;
19094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19095 libsuff=32 shlibsuff=N32 libmagic=N32;;
19096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19098 *) libsuff= shlibsuff= libmagic=never-match;;
19099 esac
19101 esac
19102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19103 shlibpath_overrides_runpath=no
19104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19106 hardcode_into_libs=yes
19109 # No shared lib support for Linux oldld, aout, or coff.
19110 linux*oldld* | linux*aout* | linux*coff*)
19111 dynamic_linker=no
19114 # This must be Linux ELF.
19116 # uclinux* changes (here and below) have been submitted to the libtool
19117 # project, but have not yet been accepted: they are GCC-local changes
19118 # for the time being. (See
19119 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19121 version_type=linux
19122 need_lib_prefix=no
19123 need_version=no
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125 soname_spec='${libname}${release}${shared_ext}$major'
19126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19127 shlibpath_var=LD_LIBRARY_PATH
19128 shlibpath_overrides_runpath=no
19130 # Some binutils ld are patched to set DT_RUNPATH
19131 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 lt_cv_shlibpath_overrides_runpath=no
19135 save_LDFLAGS=$LDFLAGS
19136 save_libdir=$libdir
19137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19143 main ()
19147 return 0;
19149 _ACEOF
19150 if ac_fn_c_try_link "$LINENO"; then :
19151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19152 lt_cv_shlibpath_overrides_runpath=yes
19155 rm -f core conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19157 LDFLAGS=$save_LDFLAGS
19158 libdir=$save_libdir
19162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19164 # This implies no fast_install, which is unacceptable.
19165 # Some rework will be needed to allow for fast_install
19166 # before this can be enabled.
19167 hardcode_into_libs=yes
19169 # Append ld.so.conf contents to the search path
19170 if test -f /etc/ld.so.conf; then
19171 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' ' '`
19172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19175 # We used to test for /lib/ld.so.1 and disable shared libraries on
19176 # powerpc, because MkLinux only supported shared libraries with the
19177 # GNU dynamic linker. Since this was broken with cross compilers,
19178 # most powerpc-linux boxes support dynamic linking these days and
19179 # people can always --disable-shared, the test was removed, and we
19180 # assume the GNU/Linux dynamic linker is in use.
19181 dynamic_linker='GNU/Linux ld.so'
19184 netbsd*)
19185 version_type=sunos
19186 need_lib_prefix=no
19187 need_version=no
19188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19191 dynamic_linker='NetBSD (a.out) ld.so'
19192 else
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19194 soname_spec='${libname}${release}${shared_ext}$major'
19195 dynamic_linker='NetBSD ld.elf_so'
19197 shlibpath_var=LD_LIBRARY_PATH
19198 shlibpath_overrides_runpath=yes
19199 hardcode_into_libs=yes
19202 newsos6)
19203 version_type=linux
19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205 shlibpath_var=LD_LIBRARY_PATH
19206 shlibpath_overrides_runpath=yes
19209 *nto* | *qnx*)
19210 version_type=qnx
19211 need_lib_prefix=no
19212 need_version=no
19213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19214 soname_spec='${libname}${release}${shared_ext}$major'
19215 shlibpath_var=LD_LIBRARY_PATH
19216 shlibpath_overrides_runpath=no
19217 hardcode_into_libs=yes
19218 dynamic_linker='ldqnx.so'
19221 openbsd*)
19222 version_type=sunos
19223 sys_lib_dlsearch_path_spec="/usr/lib"
19224 need_lib_prefix=no
19225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19226 case $host_os in
19227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19228 *) need_version=no ;;
19229 esac
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19232 shlibpath_var=LD_LIBRARY_PATH
19233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19234 case $host_os in
19235 openbsd2.[89] | openbsd2.[89].*)
19236 shlibpath_overrides_runpath=no
19239 shlibpath_overrides_runpath=yes
19241 esac
19242 else
19243 shlibpath_overrides_runpath=yes
19247 os2*)
19248 libname_spec='$name'
19249 shrext_cmds=".dll"
19250 need_lib_prefix=no
19251 library_names_spec='$libname${shared_ext} $libname.a'
19252 dynamic_linker='OS/2 ld.exe'
19253 shlibpath_var=LIBPATH
19256 osf3* | osf4* | osf5*)
19257 version_type=osf
19258 need_lib_prefix=no
19259 need_version=no
19260 soname_spec='${libname}${release}${shared_ext}$major'
19261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19262 shlibpath_var=LD_LIBRARY_PATH
19263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19267 rdos*)
19268 dynamic_linker=no
19271 solaris*)
19272 version_type=linux
19273 need_lib_prefix=no
19274 need_version=no
19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19276 soname_spec='${libname}${release}${shared_ext}$major'
19277 shlibpath_var=LD_LIBRARY_PATH
19278 shlibpath_overrides_runpath=yes
19279 hardcode_into_libs=yes
19280 # ldd complains unless libraries are executable
19281 postinstall_cmds='chmod +x $lib'
19284 sunos4*)
19285 version_type=sunos
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19288 shlibpath_var=LD_LIBRARY_PATH
19289 shlibpath_overrides_runpath=yes
19290 if test "$with_gnu_ld" = yes; then
19291 need_lib_prefix=no
19293 need_version=yes
19296 sysv4 | sysv4.3*)
19297 version_type=linux
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19299 soname_spec='${libname}${release}${shared_ext}$major'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 case $host_vendor in
19302 sni)
19303 shlibpath_overrides_runpath=no
19304 need_lib_prefix=no
19305 runpath_var=LD_RUN_PATH
19307 siemens)
19308 need_lib_prefix=no
19310 motorola)
19311 need_lib_prefix=no
19312 need_version=no
19313 shlibpath_overrides_runpath=no
19314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19316 esac
19319 sysv4*MP*)
19320 if test -d /usr/nec ;then
19321 version_type=linux
19322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19323 soname_spec='$libname${shared_ext}.$major'
19324 shlibpath_var=LD_LIBRARY_PATH
19328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19329 version_type=freebsd-elf
19330 need_lib_prefix=no
19331 need_version=no
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 shlibpath_overrides_runpath=yes
19336 hardcode_into_libs=yes
19337 if test "$with_gnu_ld" = yes; then
19338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19339 else
19340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19341 case $host_os in
19342 sco3.2v5*)
19343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19345 esac
19347 sys_lib_dlsearch_path_spec='/usr/lib'
19350 tpf*)
19351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19352 version_type=linux
19353 need_lib_prefix=no
19354 need_version=no
19355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19356 shlibpath_var=LD_LIBRARY_PATH
19357 shlibpath_overrides_runpath=no
19358 hardcode_into_libs=yes
19361 uts4*)
19362 version_type=linux
19363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19364 soname_spec='${libname}${release}${shared_ext}$major'
19365 shlibpath_var=LD_LIBRARY_PATH
19368 # Shared libraries for VwWorks, >= 7 only at this stage
19369 # and (fpic) still incompatible with "large" code models
19370 # in a few configurations. Only for RTP mode in any case,
19371 # and upon explicit request at configure time.
19372 vxworks7*)
19373 dynamic_linker=no
19374 case ${with_multisubdir}-${enable_shared} in
19375 *large*)
19377 *mrtp*-yes)
19378 version_type=linux
19379 need_lib_prefix=no
19380 need_version=no
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382 soname_spec='${libname}${release}${shared_ext}$major'
19383 dynamic_linker="$host_os module_loader"
19385 esac
19388 dynamic_linker=no
19390 esac
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19392 $as_echo "$dynamic_linker" >&6; }
19393 test "$dynamic_linker" = no && can_build_shared=no
19395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19396 if test "$GCC" = yes; then
19397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19404 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19500 hardcode_action=
19501 if test -n "$hardcode_libdir_flag_spec" ||
19502 test -n "$runpath_var" ||
19503 test "X$hardcode_automatic" = "Xyes" ; then
19505 # We can hardcode non-existent directories.
19506 if test "$hardcode_direct" != no &&
19507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19508 # have to relink, otherwise we might link with an installed library
19509 # when we should be linking with a yet-to-be-installed one
19510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19511 test "$hardcode_minus_L" != no; then
19512 # Linking always hardcodes the temporary library directory.
19513 hardcode_action=relink
19514 else
19515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19516 hardcode_action=immediate
19518 else
19519 # We cannot hardcode anything, or else we can only hardcode existing
19520 # directories.
19521 hardcode_action=unsupported
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19524 $as_echo "$hardcode_action" >&6; }
19526 if test "$hardcode_action" = relink ||
19527 test "$inherit_rpath" = yes; then
19528 # Fast installation is not supported
19529 enable_fast_install=no
19530 elif test "$shlibpath_overrides_runpath" = yes ||
19531 test "$enable_shared" = no; then
19532 # Fast installation is not necessary
19533 enable_fast_install=needless
19541 if test "x$enable_dlopen" != xyes; then
19542 enable_dlopen=unknown
19543 enable_dlopen_self=unknown
19544 enable_dlopen_self_static=unknown
19545 else
19546 lt_cv_dlopen=no
19547 lt_cv_dlopen_libs=
19549 case $host_os in
19550 beos*)
19551 lt_cv_dlopen="load_add_on"
19552 lt_cv_dlopen_libs=
19553 lt_cv_dlopen_self=yes
19556 mingw* | pw32* | cegcc*)
19557 lt_cv_dlopen="LoadLibrary"
19558 lt_cv_dlopen_libs=
19561 cygwin*)
19562 lt_cv_dlopen="dlopen"
19563 lt_cv_dlopen_libs=
19566 darwin*)
19567 # if libdl is installed we need to link against it
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19570 if ${ac_cv_lib_dl_dlopen+:} false; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573 ac_check_lib_save_LIBS=$LIBS
19574 LIBS="-ldl $LIBS"
19575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576 /* end confdefs.h. */
19578 /* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19581 #ifdef __cplusplus
19582 extern "C"
19583 #endif
19584 char dlopen ();
19586 main ()
19588 return dlopen ();
19590 return 0;
19592 _ACEOF
19593 if ac_fn_c_try_link "$LINENO"; then :
19594 ac_cv_lib_dl_dlopen=yes
19595 else
19596 ac_cv_lib_dl_dlopen=no
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19606 else
19608 lt_cv_dlopen="dyld"
19609 lt_cv_dlopen_libs=
19610 lt_cv_dlopen_self=yes
19617 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19618 if test "x$ac_cv_func_shl_load" = xyes; then :
19619 lt_cv_dlopen="shl_load"
19620 else
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19622 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19623 if ${ac_cv_lib_dld_shl_load+:} false; then :
19624 $as_echo_n "(cached) " >&6
19625 else
19626 ac_check_lib_save_LIBS=$LIBS
19627 LIBS="-ldld $LIBS"
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h. */
19631 /* Override any GCC internal prototype to avoid an error.
19632 Use char because int might match the return type of a GCC
19633 builtin and then its argument prototype would still apply. */
19634 #ifdef __cplusplus
19635 extern "C"
19636 #endif
19637 char shl_load ();
19639 main ()
19641 return shl_load ();
19643 return 0;
19645 _ACEOF
19646 if ac_fn_c_try_link "$LINENO"; then :
19647 ac_cv_lib_dld_shl_load=yes
19648 else
19649 ac_cv_lib_dld_shl_load=no
19651 rm -f core conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19657 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19659 else
19660 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19661 if test "x$ac_cv_func_dlopen" = xyes; then :
19662 lt_cv_dlopen="dlopen"
19663 else
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19666 if ${ac_cv_lib_dl_dlopen+:} false; then :
19667 $as_echo_n "(cached) " >&6
19668 else
19669 ac_check_lib_save_LIBS=$LIBS
19670 LIBS="-ldl $LIBS"
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19674 /* Override any GCC internal prototype to avoid an error.
19675 Use char because int might match the return type of a GCC
19676 builtin and then its argument prototype would still apply. */
19677 #ifdef __cplusplus
19678 extern "C"
19679 #endif
19680 char dlopen ();
19682 main ()
19684 return dlopen ();
19686 return 0;
19688 _ACEOF
19689 if ac_fn_c_try_link "$LINENO"; then :
19690 ac_cv_lib_dl_dlopen=yes
19691 else
19692 ac_cv_lib_dl_dlopen=no
19694 rm -f core conftest.err conftest.$ac_objext \
19695 conftest$ac_exeext conftest.$ac_ext
19696 LIBS=$ac_check_lib_save_LIBS
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19700 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19702 else
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19704 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19705 if ${ac_cv_lib_svld_dlopen+:} false; then :
19706 $as_echo_n "(cached) " >&6
19707 else
19708 ac_check_lib_save_LIBS=$LIBS
19709 LIBS="-lsvld $LIBS"
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19713 /* Override any GCC internal prototype to avoid an error.
19714 Use char because int might match the return type of a GCC
19715 builtin and then its argument prototype would still apply. */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 char dlopen ();
19721 main ()
19723 return dlopen ();
19725 return 0;
19727 _ACEOF
19728 if ac_fn_c_try_link "$LINENO"; then :
19729 ac_cv_lib_svld_dlopen=yes
19730 else
19731 ac_cv_lib_svld_dlopen=no
19733 rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19735 LIBS=$ac_check_lib_save_LIBS
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19738 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19739 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19741 else
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19743 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19744 if ${ac_cv_lib_dld_dld_link+:} false; then :
19745 $as_echo_n "(cached) " >&6
19746 else
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-ldld $LIBS"
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char dld_link ();
19760 main ()
19762 return dld_link ();
19764 return 0;
19766 _ACEOF
19767 if ac_fn_c_try_link "$LINENO"; then :
19768 ac_cv_lib_dld_dld_link=yes
19769 else
19770 ac_cv_lib_dld_dld_link=no
19772 rm -f core conftest.err conftest.$ac_objext \
19773 conftest$ac_exeext conftest.$ac_ext
19774 LIBS=$ac_check_lib_save_LIBS
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19777 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19778 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19779 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19798 esac
19800 if test "x$lt_cv_dlopen" != xno; then
19801 enable_dlopen=yes
19802 else
19803 enable_dlopen=no
19806 case $lt_cv_dlopen in
19807 dlopen)
19808 save_CPPFLAGS="$CPPFLAGS"
19809 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19811 save_LDFLAGS="$LDFLAGS"
19812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19814 save_LIBS="$LIBS"
19815 LIBS="$lt_cv_dlopen_libs $LIBS"
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19818 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19819 if ${lt_cv_dlopen_self+:} false; then :
19820 $as_echo_n "(cached) " >&6
19821 else
19822 if test "$cross_compiling" = yes; then :
19823 lt_cv_dlopen_self=cross
19824 else
19825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19826 lt_status=$lt_dlunknown
19827 cat > conftest.$ac_ext <<_LT_EOF
19828 #line 19828 "configure"
19829 #include "confdefs.h"
19831 #if HAVE_DLFCN_H
19832 #include <dlfcn.h>
19833 #endif
19835 #include <stdio.h>
19837 #ifdef RTLD_GLOBAL
19838 # define LT_DLGLOBAL RTLD_GLOBAL
19839 #else
19840 # ifdef DL_GLOBAL
19841 # define LT_DLGLOBAL DL_GLOBAL
19842 # else
19843 # define LT_DLGLOBAL 0
19844 # endif
19845 #endif
19847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19848 find out it does not work in some platform. */
19849 #ifndef LT_DLLAZY_OR_NOW
19850 # ifdef RTLD_LAZY
19851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19852 # else
19853 # ifdef DL_LAZY
19854 # define LT_DLLAZY_OR_NOW DL_LAZY
19855 # else
19856 # ifdef RTLD_NOW
19857 # define LT_DLLAZY_OR_NOW RTLD_NOW
19858 # else
19859 # ifdef DL_NOW
19860 # define LT_DLLAZY_OR_NOW DL_NOW
19861 # else
19862 # define LT_DLLAZY_OR_NOW 0
19863 # endif
19864 # endif
19865 # endif
19866 # endif
19867 #endif
19869 /* When -fvisbility=hidden is used, assume the code has been annotated
19870 correspondingly for the symbols needed. */
19871 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19872 void fnord () __attribute__((visibility("default")));
19873 #endif
19875 void fnord () { int i=42; }
19876 int main ()
19878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19879 int status = $lt_dlunknown;
19881 if (self)
19883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19884 else
19886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19887 else puts (dlerror ());
19889 /* dlclose (self); */
19891 else
19892 puts (dlerror ());
19894 return status;
19896 _LT_EOF
19897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19898 (eval $ac_link) 2>&5
19899 ac_status=$?
19900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19901 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19902 (./conftest; exit; ) >&5 2>/dev/null
19903 lt_status=$?
19904 case x$lt_status in
19905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19907 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19908 esac
19909 else :
19910 # compilation failed
19911 lt_cv_dlopen_self=no
19914 rm -fr conftest*
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19919 $as_echo "$lt_cv_dlopen_self" >&6; }
19921 if test "x$lt_cv_dlopen_self" = xyes; then
19922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19924 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19925 if ${lt_cv_dlopen_self_static+:} false; then :
19926 $as_echo_n "(cached) " >&6
19927 else
19928 if test "$cross_compiling" = yes; then :
19929 lt_cv_dlopen_self_static=cross
19930 else
19931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19932 lt_status=$lt_dlunknown
19933 cat > conftest.$ac_ext <<_LT_EOF
19934 #line 19934 "configure"
19935 #include "confdefs.h"
19937 #if HAVE_DLFCN_H
19938 #include <dlfcn.h>
19939 #endif
19941 #include <stdio.h>
19943 #ifdef RTLD_GLOBAL
19944 # define LT_DLGLOBAL RTLD_GLOBAL
19945 #else
19946 # ifdef DL_GLOBAL
19947 # define LT_DLGLOBAL DL_GLOBAL
19948 # else
19949 # define LT_DLGLOBAL 0
19950 # endif
19951 #endif
19953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19954 find out it does not work in some platform. */
19955 #ifndef LT_DLLAZY_OR_NOW
19956 # ifdef RTLD_LAZY
19957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19958 # else
19959 # ifdef DL_LAZY
19960 # define LT_DLLAZY_OR_NOW DL_LAZY
19961 # else
19962 # ifdef RTLD_NOW
19963 # define LT_DLLAZY_OR_NOW RTLD_NOW
19964 # else
19965 # ifdef DL_NOW
19966 # define LT_DLLAZY_OR_NOW DL_NOW
19967 # else
19968 # define LT_DLLAZY_OR_NOW 0
19969 # endif
19970 # endif
19971 # endif
19972 # endif
19973 #endif
19975 /* When -fvisbility=hidden is used, assume the code has been annotated
19976 correspondingly for the symbols needed. */
19977 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19978 void fnord () __attribute__((visibility("default")));
19979 #endif
19981 void fnord () { int i=42; }
19982 int main ()
19984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19985 int status = $lt_dlunknown;
19987 if (self)
19989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19990 else
19992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19993 else puts (dlerror ());
19995 /* dlclose (self); */
19997 else
19998 puts (dlerror ());
20000 return status;
20002 _LT_EOF
20003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20004 (eval $ac_link) 2>&5
20005 ac_status=$?
20006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20007 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20008 (./conftest; exit; ) >&5 2>/dev/null
20009 lt_status=$?
20010 case x$lt_status in
20011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20013 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20014 esac
20015 else :
20016 # compilation failed
20017 lt_cv_dlopen_self_static=no
20020 rm -fr conftest*
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20025 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20028 CPPFLAGS="$save_CPPFLAGS"
20029 LDFLAGS="$save_LDFLAGS"
20030 LIBS="$save_LIBS"
20032 esac
20034 case $lt_cv_dlopen_self in
20035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20036 *) enable_dlopen_self=unknown ;;
20037 esac
20039 case $lt_cv_dlopen_self_static in
20040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20041 *) enable_dlopen_self_static=unknown ;;
20042 esac
20061 striplib=
20062 old_striplib=
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20064 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20065 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20066 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20067 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20069 $as_echo "yes" >&6; }
20070 else
20071 # FIXME - insert some real tests, host_os isn't really good enough
20072 case $host_os in
20073 darwin*)
20074 if test -n "$STRIP" ; then
20075 striplib="$STRIP -x"
20076 old_striplib="$STRIP -S"
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20078 $as_echo "yes" >&6; }
20079 else
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081 $as_echo "no" >&6; }
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20086 $as_echo "no" >&6; }
20088 esac
20102 # Report which library types will actually be built
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20104 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20106 $as_echo "$can_build_shared" >&6; }
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20109 $as_echo_n "checking whether to build shared libraries... " >&6; }
20110 test "$can_build_shared" = "no" && enable_shared=no
20112 # On AIX, shared libraries and static libraries use the same namespace, and
20113 # are all built from PIC.
20114 case $host_os in
20115 aix3*)
20116 test "$enable_shared" = yes && enable_static=no
20117 if test -n "$RANLIB"; then
20118 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20119 postinstall_cmds='$RANLIB $lib'
20123 aix[4-9]*)
20124 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20125 test "$enable_shared" = yes && enable_static=no
20128 esac
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20130 $as_echo "$enable_shared" >&6; }
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20133 $as_echo_n "checking whether to build static libraries... " >&6; }
20134 # Make sure either enable_shared or enable_static is yes.
20135 test "$enable_shared" = yes || enable_static=yes
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20137 $as_echo "$enable_static" >&6; }
20143 ac_ext=cpp
20144 ac_cpp='$CXXCPP $CPPFLAGS'
20145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20149 CC="$lt_save_CC"
20151 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20152 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20153 (test "X$CXX" != "Xg++"))) ; then
20154 ac_ext=cpp
20155 ac_cpp='$CXXCPP $CPPFLAGS'
20156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20160 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20161 if test -z "$CXXCPP"; then
20162 if ${ac_cv_prog_CXXCPP+:} false; then :
20163 $as_echo_n "(cached) " >&6
20164 else
20165 # Double quotes because CXXCPP needs to be expanded
20166 for CXXCPP in "$CXX -E" "/lib/cpp"
20168 ac_preproc_ok=false
20169 for ac_cxx_preproc_warn_flag in '' yes
20171 # Use a header file that comes with gcc, so configuring glibc
20172 # with a fresh cross-compiler works.
20173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20174 # <limits.h> exists even on freestanding compilers.
20175 # On the NeXT, cc -E runs the code through the compiler's parser,
20176 # not just through cpp. "Syntax error" is here to catch this case.
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h. */
20179 #ifdef __STDC__
20180 # include <limits.h>
20181 #else
20182 # include <assert.h>
20183 #endif
20184 Syntax error
20185 _ACEOF
20186 if ac_fn_cxx_try_cpp "$LINENO"; then :
20188 else
20189 # Broken: fails on valid input.
20190 continue
20192 rm -f conftest.err conftest.i conftest.$ac_ext
20194 # OK, works on sane cases. Now check whether nonexistent headers
20195 # can be detected and how.
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20198 #include <ac_nonexistent.h>
20199 _ACEOF
20200 if ac_fn_cxx_try_cpp "$LINENO"; then :
20201 # Broken: success on invalid input.
20202 continue
20203 else
20204 # Passes both tests.
20205 ac_preproc_ok=:
20206 break
20208 rm -f conftest.err conftest.i conftest.$ac_ext
20210 done
20211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20212 rm -f conftest.i conftest.err conftest.$ac_ext
20213 if $ac_preproc_ok; then :
20214 break
20217 done
20218 ac_cv_prog_CXXCPP=$CXXCPP
20221 CXXCPP=$ac_cv_prog_CXXCPP
20222 else
20223 ac_cv_prog_CXXCPP=$CXXCPP
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20226 $as_echo "$CXXCPP" >&6; }
20227 ac_preproc_ok=false
20228 for ac_cxx_preproc_warn_flag in '' yes
20230 # Use a header file that comes with gcc, so configuring glibc
20231 # with a fresh cross-compiler works.
20232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20233 # <limits.h> exists even on freestanding compilers.
20234 # On the NeXT, cc -E runs the code through the compiler's parser,
20235 # not just through cpp. "Syntax error" is here to catch this case.
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238 #ifdef __STDC__
20239 # include <limits.h>
20240 #else
20241 # include <assert.h>
20242 #endif
20243 Syntax error
20244 _ACEOF
20245 if ac_fn_cxx_try_cpp "$LINENO"; then :
20247 else
20248 # Broken: fails on valid input.
20249 continue
20251 rm -f conftest.err conftest.i conftest.$ac_ext
20253 # OK, works on sane cases. Now check whether nonexistent headers
20254 # can be detected and how.
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h. */
20257 #include <ac_nonexistent.h>
20258 _ACEOF
20259 if ac_fn_cxx_try_cpp "$LINENO"; then :
20260 # Broken: success on invalid input.
20261 continue
20262 else
20263 # Passes both tests.
20264 ac_preproc_ok=:
20265 break
20267 rm -f conftest.err conftest.i conftest.$ac_ext
20269 done
20270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20271 rm -f conftest.i conftest.err conftest.$ac_ext
20272 if $ac_preproc_ok; then :
20274 else
20275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20277 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20278 See \`config.log' for more details" "$LINENO" 5; }
20281 ac_ext=cpp
20282 ac_cpp='$CXXCPP $CPPFLAGS'
20283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20287 else
20288 _lt_caught_CXX_error=yes
20291 ac_ext=cpp
20292 ac_cpp='$CXXCPP $CPPFLAGS'
20293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20297 archive_cmds_need_lc_CXX=no
20298 allow_undefined_flag_CXX=
20299 always_export_symbols_CXX=no
20300 archive_expsym_cmds_CXX=
20301 compiler_needs_object_CXX=no
20302 export_dynamic_flag_spec_CXX=
20303 hardcode_direct_CXX=no
20304 hardcode_direct_absolute_CXX=no
20305 hardcode_libdir_flag_spec_CXX=
20306 hardcode_libdir_flag_spec_ld_CXX=
20307 hardcode_libdir_separator_CXX=
20308 hardcode_minus_L_CXX=no
20309 hardcode_shlibpath_var_CXX=unsupported
20310 hardcode_automatic_CXX=no
20311 inherit_rpath_CXX=no
20312 module_cmds_CXX=
20313 module_expsym_cmds_CXX=
20314 link_all_deplibs_CXX=unknown
20315 old_archive_cmds_CXX=$old_archive_cmds
20316 reload_flag_CXX=$reload_flag
20317 reload_cmds_CXX=$reload_cmds
20318 no_undefined_flag_CXX=
20319 whole_archive_flag_spec_CXX=
20320 enable_shared_with_static_runtimes_CXX=no
20322 # Source file extension for C++ test sources.
20323 ac_ext=cpp
20325 # Object file extension for compiled C++ test sources.
20326 objext=o
20327 objext_CXX=$objext
20329 # No sense in running all these tests if we already determined that
20330 # the CXX compiler isn't working. Some variables (like enable_shared)
20331 # are currently assumed to apply to all compilers on this platform,
20332 # and will be corrupted by setting them based on a non-working compiler.
20333 if test "$_lt_caught_CXX_error" != yes; then
20334 # Code to be used in simple compile tests
20335 lt_simple_compile_test_code="int some_variable = 0;"
20337 # Code to be used in simple link tests
20338 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20340 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20347 # If no C compiler was specified, use CC.
20348 LTCC=${LTCC-"$CC"}
20350 # If no C compiler flags were specified, use CFLAGS.
20351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20353 # Allow CC to be a program name with arguments.
20354 compiler=$CC
20357 # save warnings/boilerplate of simple test code
20358 ac_outfile=conftest.$ac_objext
20359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20361 _lt_compiler_boilerplate=`cat conftest.err`
20362 $RM conftest*
20364 ac_outfile=conftest.$ac_objext
20365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20367 _lt_linker_boilerplate=`cat conftest.err`
20368 $RM -r conftest*
20371 # Allow CC to be a program name with arguments.
20372 lt_save_CC=$CC
20373 lt_save_LD=$LD
20374 lt_save_GCC=$GCC
20375 GCC=$GXX
20376 lt_save_with_gnu_ld=$with_gnu_ld
20377 lt_save_path_LD=$lt_cv_path_LD
20378 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20379 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20380 else
20381 $as_unset lt_cv_prog_gnu_ld
20383 if test -n "${lt_cv_path_LDCXX+set}"; then
20384 lt_cv_path_LD=$lt_cv_path_LDCXX
20385 else
20386 $as_unset lt_cv_path_LD
20388 test -z "${LDCXX+set}" || LD=$LDCXX
20389 CC=${CXX-"c++"}
20390 compiler=$CC
20391 compiler_CXX=$CC
20392 for cc_temp in $compiler""; do
20393 case $cc_temp in
20394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20396 \-*) ;;
20397 *) break;;
20398 esac
20399 done
20400 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20403 if test -n "$compiler"; then
20404 # We don't want -fno-exception when compiling C++ code, so set the
20405 # no_builtin_flag separately
20406 if test "$GXX" = yes; then
20407 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20408 else
20409 lt_prog_compiler_no_builtin_flag_CXX=
20412 if test "$GXX" = yes; then
20413 # Set up default GNU C++ configuration
20417 # Check whether --with-gnu-ld was given.
20418 if test "${with_gnu_ld+set}" = set; then :
20419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20420 else
20421 with_gnu_ld=no
20424 ac_prog=ld
20425 if test "$GCC" = yes; then
20426 # Check if gcc -print-prog-name=ld gives a path.
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20428 $as_echo_n "checking for ld used by $CC... " >&6; }
20429 case $host in
20430 *-*-mingw*)
20431 # gcc leaves a trailing carriage return which upsets mingw
20432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20435 esac
20436 case $ac_prog in
20437 # Accept absolute paths.
20438 [\\/]* | ?:[\\/]*)
20439 re_direlt='/[^/][^/]*/\.\./'
20440 # Canonicalize the pathname of ld
20441 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20442 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20443 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20444 done
20445 test -z "$LD" && LD="$ac_prog"
20448 # If it fails, then pretend we aren't using GCC.
20449 ac_prog=ld
20452 # If it is relative, then search for the first ld in PATH.
20453 with_gnu_ld=unknown
20455 esac
20456 elif test "$with_gnu_ld" = yes; then
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20458 $as_echo_n "checking for GNU ld... " >&6; }
20459 else
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20461 $as_echo_n "checking for non-GNU ld... " >&6; }
20463 if ${lt_cv_path_LD+:} false; then :
20464 $as_echo_n "(cached) " >&6
20465 else
20466 if test -z "$LD"; then
20467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20468 for ac_dir in $PATH; do
20469 IFS="$lt_save_ifs"
20470 test -z "$ac_dir" && ac_dir=.
20471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20472 lt_cv_path_LD="$ac_dir/$ac_prog"
20473 # Check to see if the program is GNU ld. I'd rather use --version,
20474 # but apparently some variants of GNU ld only accept -v.
20475 # Break only if it was the GNU/non-GNU ld that we prefer.
20476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20477 *GNU* | *'with BFD'*)
20478 test "$with_gnu_ld" != no && break
20481 test "$with_gnu_ld" != yes && break
20483 esac
20485 done
20486 IFS="$lt_save_ifs"
20487 else
20488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20492 LD="$lt_cv_path_LD"
20493 if test -n "$LD"; then
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20495 $as_echo "$LD" >&6; }
20496 else
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20498 $as_echo "no" >&6; }
20500 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20502 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20503 if ${lt_cv_prog_gnu_ld+:} false; then :
20504 $as_echo_n "(cached) " >&6
20505 else
20506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20507 case `$LD -v 2>&1 </dev/null` in
20508 *GNU* | *'with BFD'*)
20509 lt_cv_prog_gnu_ld=yes
20512 lt_cv_prog_gnu_ld=no
20514 esac
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20517 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20518 with_gnu_ld=$lt_cv_prog_gnu_ld
20526 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20527 # archiving commands below assume that GNU ld is being used.
20528 if test "$with_gnu_ld" = yes; then
20529 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20530 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'
20532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20533 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20535 # If archive_cmds runs LD, not CC, wlarc should be empty
20536 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20537 # investigate it a little bit more. (MM)
20538 wlarc='${wl}'
20540 # ancient GNU ld didn't support --whole-archive et. al.
20541 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20542 $GREP 'no-whole-archive' > /dev/null; then
20543 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20544 else
20545 whole_archive_flag_spec_CXX=
20547 else
20548 with_gnu_ld=no
20549 wlarc=
20551 # A generic and very simple default shared library creation
20552 # command for GNU C++ for the case where it uses the native
20553 # linker, instead of GNU ld. If possible, this setting should
20554 # overridden to take advantage of the native linker features on
20555 # the platform it is being used on.
20556 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20559 # Commands to make compiler produce verbose output that lists
20560 # what "hidden" libraries, object files and flags are used when
20561 # linking a shared library.
20562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20564 else
20565 GXX=no
20566 with_gnu_ld=no
20567 wlarc=
20570 # PORTME: fill in a description of your system's C++ link characteristics
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20572 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20573 ld_shlibs_CXX=yes
20574 case $host_os in
20575 aix3*)
20576 # FIXME: insert proper C++ library support
20577 ld_shlibs_CXX=no
20579 aix[4-9]*)
20580 if test "$host_cpu" = ia64; then
20581 # On IA64, the linker does run time linking by default, so we don't
20582 # have to do anything special.
20583 aix_use_runtimelinking=no
20584 exp_sym_flag='-Bexport'
20585 no_entry_flag=""
20586 else
20587 aix_use_runtimelinking=no
20589 # Test if we are trying to use run time linking or normal
20590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20591 # need to do runtime linking.
20592 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20593 for ld_flag in $LDFLAGS; do
20594 case $ld_flag in
20595 *-brtl*)
20596 aix_use_runtimelinking=yes
20597 break
20599 esac
20600 done
20602 esac
20604 exp_sym_flag='-bexport'
20605 no_entry_flag='-bnoentry'
20608 # When large executables or shared objects are built, AIX ld can
20609 # have problems creating the table of contents. If linking a library
20610 # or program results in "error TOC overflow" add -mminimal-toc to
20611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20614 archive_cmds_CXX=''
20615 hardcode_direct_CXX=yes
20616 hardcode_direct_absolute_CXX=yes
20617 hardcode_libdir_separator_CXX=':'
20618 link_all_deplibs_CXX=yes
20619 file_list_spec_CXX='${wl}-f,'
20621 if test "$GXX" = yes; then
20622 case $host_os in aix4.[012]|aix4.[012].*)
20623 # We only want to do this on AIX 4.2 and lower, the check
20624 # below for broken collect2 doesn't work under 4.3+
20625 collect2name=`${CC} -print-prog-name=collect2`
20626 if test -f "$collect2name" &&
20627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20628 then
20629 # We have reworked collect2
20631 else
20632 # We have old collect2
20633 hardcode_direct_CXX=unsupported
20634 # It fails to find uninstalled libraries when the uninstalled
20635 # path is not listed in the libpath. Setting hardcode_minus_L
20636 # to unsupported forces relinking
20637 hardcode_minus_L_CXX=yes
20638 hardcode_libdir_flag_spec_CXX='-L$libdir'
20639 hardcode_libdir_separator_CXX=
20641 esac
20642 shared_flag='-shared'
20643 if test "$aix_use_runtimelinking" = yes; then
20644 shared_flag="$shared_flag "'${wl}-G'
20646 else
20647 # not using gcc
20648 if test "$host_cpu" = ia64; then
20649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20650 # chokes on -Wl,-G. The following line is correct:
20651 shared_flag='-G'
20652 else
20653 if test "$aix_use_runtimelinking" = yes; then
20654 shared_flag='${wl}-G'
20655 else
20656 shared_flag='${wl}-bM:SRE'
20661 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20662 # It seems that -bexpall does not export symbols beginning with
20663 # underscore (_), so it is better to generate a list of symbols to
20664 # export.
20665 always_export_symbols_CXX=yes
20666 if test "$aix_use_runtimelinking" = yes; then
20667 # Warning - without using the other runtime loading flags (-brtl),
20668 # -berok will link without error, but may produce a broken library.
20669 allow_undefined_flag_CXX='-berok'
20670 # Determine the default libpath from the value encoded in an empty
20671 # executable.
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20676 main ()
20680 return 0;
20682 _ACEOF
20683 if ac_fn_cxx_try_link "$LINENO"; then :
20685 lt_aix_libpath_sed='
20686 /Import File Strings/,/^$/ {
20687 /^0/ {
20688 s/^0 *\(.*\)$/\1/
20692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20693 # Check for a 64-bit object if we didn't find anything.
20694 if test -z "$aix_libpath"; then
20695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20698 rm -f core conftest.err conftest.$ac_objext \
20699 conftest$ac_exeext conftest.$ac_ext
20700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20702 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20704 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"
20705 else
20706 if test "$host_cpu" = ia64; then
20707 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20708 allow_undefined_flag_CXX="-z nodefs"
20709 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"
20710 else
20711 # Determine the default libpath from the value encoded in an
20712 # empty executable.
20713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20714 /* end confdefs.h. */
20717 main ()
20721 return 0;
20723 _ACEOF
20724 if ac_fn_cxx_try_link "$LINENO"; then :
20726 lt_aix_libpath_sed='
20727 /Import File Strings/,/^$/ {
20728 /^0/ {
20729 s/^0 *\(.*\)$/\1/
20733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20734 # Check for a 64-bit object if we didn't find anything.
20735 if test -z "$aix_libpath"; then
20736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20739 rm -f core conftest.err conftest.$ac_objext \
20740 conftest$ac_exeext conftest.$ac_ext
20741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20743 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20744 # Warning - without using the other run time loading flags,
20745 # -berok will link without error, but may produce a broken library.
20746 no_undefined_flag_CXX=' ${wl}-bernotok'
20747 allow_undefined_flag_CXX=' ${wl}-berok'
20748 if test "$with_gnu_ld" = yes; then
20749 # We only use this code for GNU lds that support --whole-archive.
20750 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20751 else
20752 # Exported symbols can be pulled into shared objects from archives
20753 whole_archive_flag_spec_CXX='$convenience'
20755 archive_cmds_need_lc_CXX=yes
20756 # This is similar to how AIX traditionally builds its shared
20757 # libraries.
20758 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'
20763 beos*)
20764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20765 allow_undefined_flag_CXX=unsupported
20766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20767 # support --undefined. This deserves some investigation. FIXME
20768 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20769 else
20770 ld_shlibs_CXX=no
20774 chorus*)
20775 case $cc_basename in
20777 # FIXME: insert proper C++ library support
20778 ld_shlibs_CXX=no
20780 esac
20783 cygwin* | mingw* | pw32* | cegcc*)
20784 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20785 # as there is no search path for DLLs.
20786 hardcode_libdir_flag_spec_CXX='-L$libdir'
20787 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20788 allow_undefined_flag_CXX=unsupported
20789 always_export_symbols_CXX=no
20790 enable_shared_with_static_runtimes_CXX=yes
20792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20793 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'
20794 # If the export-symbols file already is a .def file (1st line
20795 # is EXPORTS), use it as is; otherwise, prepend...
20796 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20797 cp $export_symbols $output_objdir/$soname.def;
20798 else
20799 echo EXPORTS > $output_objdir/$soname.def;
20800 cat $export_symbols >> $output_objdir/$soname.def;
20802 $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'
20803 else
20804 ld_shlibs_CXX=no
20807 darwin* | rhapsody*)
20810 archive_cmds_need_lc_CXX=no
20811 hardcode_direct_CXX=no
20812 hardcode_automatic_CXX=yes
20813 hardcode_shlibpath_var_CXX=unsupported
20814 if test "$lt_cv_ld_force_load" = "yes"; then
20815 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\"`'
20816 else
20817 whole_archive_flag_spec_CXX=''
20819 link_all_deplibs_CXX=yes
20820 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20821 case $cc_basename in
20822 ifort*) _lt_dar_can_shared=yes ;;
20823 *) _lt_dar_can_shared=$GCC ;;
20824 esac
20825 if test "$_lt_dar_can_shared" = "yes"; then
20826 output_verbose_link_cmd=func_echo_all
20827 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}"
20828 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20829 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}"
20830 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}"
20831 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20832 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}"
20833 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}"
20836 else
20837 ld_shlibs_CXX=no
20842 dgux*)
20843 case $cc_basename in
20844 ec++*)
20845 # FIXME: insert proper C++ library support
20846 ld_shlibs_CXX=no
20848 ghcx*)
20849 # Green Hills C++ Compiler
20850 # FIXME: insert proper C++ library support
20851 ld_shlibs_CXX=no
20854 # FIXME: insert proper C++ library support
20855 ld_shlibs_CXX=no
20857 esac
20860 freebsd2.*)
20861 # C++ shared libraries reported to be fairly broken before
20862 # switch to ELF
20863 ld_shlibs_CXX=no
20866 freebsd-elf*)
20867 archive_cmds_need_lc_CXX=no
20870 freebsd* | dragonfly*)
20871 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20872 # conventions
20873 ld_shlibs_CXX=yes
20876 gnu*)
20879 haiku*)
20880 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20881 link_all_deplibs_CXX=yes
20884 hpux9*)
20885 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20886 hardcode_libdir_separator_CXX=:
20887 export_dynamic_flag_spec_CXX='${wl}-E'
20888 hardcode_direct_CXX=yes
20889 hardcode_minus_L_CXX=yes # Not in the search PATH,
20890 # but as the default
20891 # location of the library.
20893 case $cc_basename in
20894 CC*)
20895 # FIXME: insert proper C++ library support
20896 ld_shlibs_CXX=no
20898 aCC*)
20899 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'
20900 # Commands to make compiler produce verbose output that lists
20901 # what "hidden" libraries, object files and flags are used when
20902 # linking a shared library.
20904 # There doesn't appear to be a way to prevent this compiler from
20905 # explicitly linking system object files so we need to strip them
20906 # from the output so that they don't get included in the library
20907 # dependencies.
20908 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"'
20911 if test "$GXX" = yes; then
20912 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'
20913 else
20914 # FIXME: insert proper C++ library support
20915 ld_shlibs_CXX=no
20918 esac
20921 hpux10*|hpux11*)
20922 if test $with_gnu_ld = no; then
20923 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20924 hardcode_libdir_separator_CXX=:
20926 case $host_cpu in
20927 hppa*64*|ia64*)
20930 export_dynamic_flag_spec_CXX='${wl}-E'
20932 esac
20934 case $host_cpu in
20935 hppa*64*|ia64*)
20936 hardcode_direct_CXX=no
20937 hardcode_shlibpath_var_CXX=no
20940 hardcode_direct_CXX=yes
20941 hardcode_direct_absolute_CXX=yes
20942 hardcode_minus_L_CXX=yes # Not in the search PATH,
20943 # but as the default
20944 # location of the library.
20946 esac
20948 case $cc_basename in
20949 CC*)
20950 # FIXME: insert proper C++ library support
20951 ld_shlibs_CXX=no
20953 aCC*)
20954 case $host_cpu in
20955 hppa*64*)
20956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20958 ia64*)
20959 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20962 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20964 esac
20965 # Commands to make compiler produce verbose output that lists
20966 # what "hidden" libraries, object files and flags are used when
20967 # linking a shared library.
20969 # There doesn't appear to be a way to prevent this compiler from
20970 # explicitly linking system object files so we need to strip them
20971 # from the output so that they don't get included in the library
20972 # dependencies.
20973 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"'
20976 if test "$GXX" = yes; then
20977 if test $with_gnu_ld = no; then
20978 case $host_cpu in
20979 hppa*64*)
20980 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20982 ia64*)
20983 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20986 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'
20988 esac
20990 else
20991 # FIXME: insert proper C++ library support
20992 ld_shlibs_CXX=no
20995 esac
20998 interix[3-9]*)
20999 hardcode_direct_CXX=no
21000 hardcode_shlibpath_var_CXX=no
21001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21002 export_dynamic_flag_spec_CXX='${wl}-E'
21003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21004 # Instead, shared libraries are loaded at an image base (0x10000000 by
21005 # default) and relocated if they conflict, which is a slow very memory
21006 # consuming and fragmenting process. To avoid this, we pick a random,
21007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21009 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'
21010 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'
21012 irix5* | irix6*)
21013 case $cc_basename in
21014 CC*)
21015 # SGI C++
21016 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'
21018 # Archives containing C++ object files must be created using
21019 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21020 # necessary to make sure instantiated templates are included
21021 # in the archive.
21022 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21025 if test "$GXX" = yes; then
21026 if test "$with_gnu_ld" = no; then
21027 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'
21028 else
21029 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'
21032 link_all_deplibs_CXX=yes
21034 esac
21035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21036 hardcode_libdir_separator_CXX=:
21037 inherit_rpath_CXX=yes
21040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21041 case $cc_basename in
21042 KCC*)
21043 # Kuck and Associates, Inc. (KAI) C++ Compiler
21045 # KCC will only create a shared library if the output file
21046 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21047 # to its proper name (with version) after linking.
21048 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'
21049 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'
21050 # Commands to make compiler produce verbose output that lists
21051 # what "hidden" libraries, object files and flags are used when
21052 # linking a shared library.
21054 # There doesn't appear to be a way to prevent this compiler from
21055 # explicitly linking system object files so we need to strip them
21056 # from the output so that they don't get included in the library
21057 # dependencies.
21058 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"'
21060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21063 # Archives containing C++ object files must be created using
21064 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21065 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21067 icpc* | ecpc* )
21068 # Intel C++
21069 with_gnu_ld=yes
21070 # version 8.0 and above of icpc choke on multiply defined symbols
21071 # if we add $predep_objects and $postdep_objects, however 7.1 and
21072 # earlier do not add the objects themselves.
21073 case `$CC -V 2>&1` in
21074 *"Version 7."*)
21075 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21076 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'
21078 *) # Version 8.0 or newer
21079 tmp_idyn=
21080 case $host_cpu in
21081 ia64*) tmp_idyn=' -i_dynamic';;
21082 esac
21083 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21084 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'
21086 esac
21087 archive_cmds_need_lc_CXX=no
21088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21090 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21092 pgCC* | pgcpp*)
21093 # Portland Group C++ compiler
21094 case `$CC -V` in
21095 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21096 prelink_cmds_CXX='tpldir=Template.dir~
21097 rm -rf $tpldir~
21098 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21099 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21100 old_archive_cmds_CXX='tpldir=Template.dir~
21101 rm -rf $tpldir~
21102 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21103 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21104 $RANLIB $oldlib'
21105 archive_cmds_CXX='tpldir=Template.dir~
21106 rm -rf $tpldir~
21107 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21108 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21109 archive_expsym_cmds_CXX='tpldir=Template.dir~
21110 rm -rf $tpldir~
21111 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21112 $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'
21114 *) # Version 6 and above use weak symbols
21115 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21116 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'
21118 esac
21120 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21121 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21122 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'
21124 cxx*)
21125 # Compaq C++
21126 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21127 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'
21129 runpath_var=LD_RUN_PATH
21130 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21131 hardcode_libdir_separator_CXX=:
21133 # Commands to make compiler produce verbose output that lists
21134 # what "hidden" libraries, object files and flags are used when
21135 # linking a shared library.
21137 # There doesn't appear to be a way to prevent this compiler from
21138 # explicitly linking system object files so we need to strip them
21139 # from the output so that they don't get included in the library
21140 # dependencies.
21141 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'
21143 xl* | mpixl* | bgxl*)
21144 # IBM XL 8.0 on PPC, with GNU ld
21145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21147 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21148 if test "x$supports_anon_versioning" = xyes; then
21149 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21151 echo "local: *; };" >> $output_objdir/$libname.ver~
21152 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21156 case `$CC -V 2>&1 | sed 5q` in
21157 *Sun\ C*)
21158 # Sun C++ 5.9
21159 no_undefined_flag_CXX=' -zdefs'
21160 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21161 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'
21162 hardcode_libdir_flag_spec_CXX='-R$libdir'
21163 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'
21164 compiler_needs_object_CXX=yes
21166 # Not sure whether something based on
21167 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21168 # would be better.
21169 output_verbose_link_cmd='func_echo_all'
21171 # Archives containing C++ object files must be created using
21172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21173 # necessary to make sure instantiated templates are included
21174 # in the archive.
21175 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21177 esac
21179 esac
21182 lynxos*)
21183 # FIXME: insert proper C++ library support
21184 ld_shlibs_CXX=no
21187 m88k*)
21188 # FIXME: insert proper C++ library support
21189 ld_shlibs_CXX=no
21192 mvs*)
21193 case $cc_basename in
21194 cxx*)
21195 # FIXME: insert proper C++ library support
21196 ld_shlibs_CXX=no
21199 # FIXME: insert proper C++ library support
21200 ld_shlibs_CXX=no
21202 esac
21205 netbsd*)
21206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21207 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21208 wlarc=
21209 hardcode_libdir_flag_spec_CXX='-R$libdir'
21210 hardcode_direct_CXX=yes
21211 hardcode_shlibpath_var_CXX=no
21213 # Workaround some broken pre-1.5 toolchains
21214 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21217 *nto* | *qnx*)
21218 ld_shlibs_CXX=yes
21221 openbsd2*)
21222 # C++ shared libraries are fairly broken
21223 ld_shlibs_CXX=no
21226 openbsd*)
21227 if test -f /usr/libexec/ld.so; then
21228 hardcode_direct_CXX=yes
21229 hardcode_shlibpath_var_CXX=no
21230 hardcode_direct_absolute_CXX=yes
21231 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21234 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21235 export_dynamic_flag_spec_CXX='${wl}-E'
21236 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21238 output_verbose_link_cmd=func_echo_all
21239 else
21240 ld_shlibs_CXX=no
21244 osf3* | osf4* | osf5*)
21245 case $cc_basename in
21246 KCC*)
21247 # Kuck and Associates, Inc. (KAI) C++ Compiler
21249 # KCC will only create a shared library if the output file
21250 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21251 # to its proper name (with version) after linking.
21252 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'
21254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21255 hardcode_libdir_separator_CXX=:
21257 # Archives containing C++ object files must be created using
21258 # the KAI C++ compiler.
21259 case $host in
21260 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21261 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21262 esac
21264 RCC*)
21265 # Rational C++ 2.4.1
21266 # FIXME: insert proper C++ library support
21267 ld_shlibs_CXX=no
21269 cxx*)
21270 case $host in
21271 osf3*)
21272 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21273 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'
21274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21277 allow_undefined_flag_CXX=' -expect_unresolved \*'
21278 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'
21279 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21280 echo "-hidden">> $lib.exp~
21281 $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~
21282 $RM $lib.exp'
21283 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21285 esac
21287 hardcode_libdir_separator_CXX=:
21289 # Commands to make compiler produce verbose output that lists
21290 # what "hidden" libraries, object files and flags are used when
21291 # linking a shared library.
21293 # There doesn't appear to be a way to prevent this compiler from
21294 # explicitly linking system object files so we need to strip them
21295 # from the output so that they don't get included in the library
21296 # dependencies.
21297 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"'
21300 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21301 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21302 case $host in
21303 osf3*)
21304 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'
21307 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'
21309 esac
21311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21312 hardcode_libdir_separator_CXX=:
21314 # Commands to make compiler produce verbose output that lists
21315 # what "hidden" libraries, object files and flags are used when
21316 # linking a shared library.
21317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21319 else
21320 # FIXME: insert proper C++ library support
21321 ld_shlibs_CXX=no
21324 esac
21327 psos*)
21328 # FIXME: insert proper C++ library support
21329 ld_shlibs_CXX=no
21332 sunos4*)
21333 case $cc_basename in
21334 CC*)
21335 # Sun C++ 4.x
21336 # FIXME: insert proper C++ library support
21337 ld_shlibs_CXX=no
21339 lcc*)
21340 # Lucid
21341 # FIXME: insert proper C++ library support
21342 ld_shlibs_CXX=no
21345 # FIXME: insert proper C++ library support
21346 ld_shlibs_CXX=no
21348 esac
21351 solaris*)
21352 case $cc_basename in
21353 CC*)
21354 # Sun C++ 4.2, 5.x and Centerline C++
21355 archive_cmds_need_lc_CXX=yes
21356 no_undefined_flag_CXX=' -zdefs'
21357 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21358 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21359 $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'
21361 hardcode_libdir_flag_spec_CXX='-R$libdir'
21362 hardcode_shlibpath_var_CXX=no
21363 case $host_os in
21364 solaris2.[0-5] | solaris2.[0-5].*) ;;
21366 # The compiler driver will combine and reorder linker options,
21367 # but understands `-z linker_flag'.
21368 # Supported since Solaris 2.6 (maybe 2.5.1?)
21369 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21371 esac
21372 link_all_deplibs_CXX=yes
21374 output_verbose_link_cmd='func_echo_all'
21376 # Archives containing C++ object files must be created using
21377 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21378 # necessary to make sure instantiated templates are included
21379 # in the archive.
21380 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21382 gcx*)
21383 # Green Hills C++ Compiler
21384 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21386 # The C++ compiler must be used to create the archive.
21387 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21390 # GNU C++ compiler with Solaris linker
21391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21392 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21393 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21394 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21395 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21396 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21398 # Commands to make compiler produce verbose output that lists
21399 # what "hidden" libraries, object files and flags are used when
21400 # linking a shared library.
21401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21402 else
21403 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21404 # platform.
21405 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21406 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21407 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21409 # Commands to make compiler produce verbose output that lists
21410 # what "hidden" libraries, object files and flags are used when
21411 # linking a shared library.
21412 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21415 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21416 case $host_os in
21417 solaris2.[0-5] | solaris2.[0-5].*) ;;
21419 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21421 esac
21424 esac
21427 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21428 no_undefined_flag_CXX='${wl}-z,text'
21429 archive_cmds_need_lc_CXX=no
21430 hardcode_shlibpath_var_CXX=no
21431 runpath_var='LD_RUN_PATH'
21433 case $cc_basename in
21434 CC*)
21435 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21436 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21439 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21440 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21442 esac
21445 sysv5* | sco3.2v5* | sco5v6*)
21446 # Note: We can NOT use -z defs as we might desire, because we do not
21447 # link with -lc, and that would cause any symbols used from libc to
21448 # always be unresolved, which means just about no library would
21449 # ever link correctly. If we're not using GNU ld we use -z text
21450 # though, which does catch some bad symbols but isn't as heavy-handed
21451 # as -z defs.
21452 no_undefined_flag_CXX='${wl}-z,text'
21453 allow_undefined_flag_CXX='${wl}-z,nodefs'
21454 archive_cmds_need_lc_CXX=no
21455 hardcode_shlibpath_var_CXX=no
21456 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21457 hardcode_libdir_separator_CXX=':'
21458 link_all_deplibs_CXX=yes
21459 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21460 runpath_var='LD_RUN_PATH'
21462 case $cc_basename in
21463 CC*)
21464 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21465 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21466 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21467 '"$old_archive_cmds_CXX"
21468 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21469 '"$reload_cmds_CXX"
21472 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21473 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21475 esac
21478 tandem*)
21479 case $cc_basename in
21480 NCC*)
21481 # NonStop-UX NCC 3.20
21482 # FIXME: insert proper C++ library support
21483 ld_shlibs_CXX=no
21486 # FIXME: insert proper C++ library support
21487 ld_shlibs_CXX=no
21489 esac
21492 vxworks*)
21493 # For VxWorks ports, we assume the use of a GNU linker with
21494 # standard elf conventions.
21495 ld_shlibs_CXX=yes
21499 # FIXME: insert proper C++ library support
21500 ld_shlibs_CXX=no
21502 esac
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21505 $as_echo "$ld_shlibs_CXX" >&6; }
21506 test "$ld_shlibs_CXX" = no && can_build_shared=no
21508 GCC_CXX="$GXX"
21509 LD_CXX="$LD"
21511 ## CAVEAT EMPTOR:
21512 ## There is no encapsulation within the following macros, do not change
21513 ## the running order or otherwise move them around unless you know exactly
21514 ## what you are doing...
21515 # Dependencies to place before and after the object being linked:
21516 predep_objects_CXX=
21517 postdep_objects_CXX=
21518 predeps_CXX=
21519 postdeps_CXX=
21520 compiler_lib_search_path_CXX=
21522 cat > conftest.$ac_ext <<_LT_EOF
21523 class Foo
21525 public:
21526 Foo (void) { a = 0; }
21527 private:
21528 int a;
21530 _LT_EOF
21532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21533 (eval $ac_compile) 2>&5
21534 ac_status=$?
21535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21536 test $ac_status = 0; }; then
21537 # Parse the compiler output and extract the necessary
21538 # objects, libraries and library flags.
21540 # Sentinel used to keep track of whether or not we are before
21541 # the conftest object file.
21542 pre_test_object_deps_done=no
21544 for p in `eval "$output_verbose_link_cmd"`; do
21545 case $p in
21547 -L* | -R* | -l*)
21548 # Some compilers place space between "-{L,R}" and the path.
21549 # Remove the space.
21550 if test $p = "-L" ||
21551 test $p = "-R"; then
21552 prev=$p
21553 continue
21554 else
21555 prev=
21558 if test "$pre_test_object_deps_done" = no; then
21559 case $p in
21560 -L* | -R*)
21561 # Internal compiler library paths should come after those
21562 # provided the user. The postdeps already come after the
21563 # user supplied libs so there is no need to process them.
21564 if test -z "$compiler_lib_search_path_CXX"; then
21565 compiler_lib_search_path_CXX="${prev}${p}"
21566 else
21567 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21570 # The "-l" case would never come before the object being
21571 # linked, so don't bother handling this case.
21572 esac
21573 else
21574 if test -z "$postdeps_CXX"; then
21575 postdeps_CXX="${prev}${p}"
21576 else
21577 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21582 *.$objext)
21583 # This assumes that the test object file only shows up
21584 # once in the compiler output.
21585 if test "$p" = "conftest.$objext"; then
21586 pre_test_object_deps_done=yes
21587 continue
21590 if test "$pre_test_object_deps_done" = no; then
21591 if test -z "$predep_objects_CXX"; then
21592 predep_objects_CXX="$p"
21593 else
21594 predep_objects_CXX="$predep_objects_CXX $p"
21596 else
21597 if test -z "$postdep_objects_CXX"; then
21598 postdep_objects_CXX="$p"
21599 else
21600 postdep_objects_CXX="$postdep_objects_CXX $p"
21605 *) ;; # Ignore the rest.
21607 esac
21608 done
21610 # Clean up.
21611 rm -f a.out a.exe
21612 else
21613 echo "libtool.m4: error: problem compiling CXX test program"
21616 $RM -f confest.$objext
21618 # PORTME: override above test on systems where it is broken
21619 case $host_os in
21620 interix[3-9]*)
21621 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21622 # hack all around it, let's just trust "g++" to DTRT.
21623 predep_objects_CXX=
21624 postdep_objects_CXX=
21625 postdeps_CXX=
21628 linux*)
21629 case `$CC -V 2>&1 | sed 5q` in
21630 *Sun\ C*)
21631 # Sun C++ 5.9
21633 # The more standards-conforming stlport4 library is
21634 # incompatible with the Cstd library. Avoid specifying
21635 # it if it's in CXXFLAGS. Ignore libCrun as
21636 # -library=stlport4 depends on it.
21637 case " $CXX $CXXFLAGS " in
21638 *" -library=stlport4 "*)
21639 solaris_use_stlport4=yes
21641 esac
21643 if test "$solaris_use_stlport4" != yes; then
21644 postdeps_CXX='-library=Cstd -library=Crun'
21647 esac
21650 solaris*)
21651 case $cc_basename in
21652 CC*)
21653 # The more standards-conforming stlport4 library is
21654 # incompatible with the Cstd library. Avoid specifying
21655 # it if it's in CXXFLAGS. Ignore libCrun as
21656 # -library=stlport4 depends on it.
21657 case " $CXX $CXXFLAGS " in
21658 *" -library=stlport4 "*)
21659 solaris_use_stlport4=yes
21661 esac
21663 # Adding this requires a known-good setup of shared libraries for
21664 # Sun compiler versions before 5.6, else PIC objects from an old
21665 # archive will be linked into the output, leading to subtle bugs.
21666 if test "$solaris_use_stlport4" != yes; then
21667 postdeps_CXX='-library=Cstd -library=Crun'
21670 esac
21672 esac
21675 case " $postdeps_CXX " in
21676 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21677 esac
21678 compiler_lib_search_dirs_CXX=
21679 if test -n "${compiler_lib_search_path_CXX}"; then
21680 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21713 lt_prog_compiler_wl_CXX=
21714 lt_prog_compiler_pic_CXX=
21715 lt_prog_compiler_static_CXX=
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21720 # C++ specific cases for pic, static, wl, etc.
21721 if test "$GXX" = yes; then
21722 lt_prog_compiler_wl_CXX='-Wl,'
21723 lt_prog_compiler_static_CXX='-static'
21725 case $host_os in
21726 aix*)
21727 # All AIX code is PIC.
21728 if test "$host_cpu" = ia64; then
21729 # AIX 5 now supports IA64 processor
21730 lt_prog_compiler_static_CXX='-Bstatic'
21732 lt_prog_compiler_pic_CXX='-fPIC'
21735 amigaos*)
21736 case $host_cpu in
21737 powerpc)
21738 # see comment about AmigaOS4 .so support
21739 lt_prog_compiler_pic_CXX='-fPIC'
21741 m68k)
21742 # FIXME: we need at least 68020 code to build shared libraries, but
21743 # adding the `-m68020' flag to GCC prevents building anything better,
21744 # like `-m68040'.
21745 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21747 esac
21750 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21751 # PIC is the default for these OSes.
21753 mingw* | cygwin* | os2* | pw32* | cegcc*)
21754 # This hack is so that the source file can tell whether it is being
21755 # built for inclusion in a dll (and should export symbols for example).
21756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21757 # (--disable-auto-import) libraries
21758 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21760 darwin* | rhapsody*)
21761 # PIC is the default on this platform
21762 # Common symbols not allowed in MH_DYLIB files
21763 lt_prog_compiler_pic_CXX='-fno-common'
21765 *djgpp*)
21766 # DJGPP does not support shared libraries at all
21767 lt_prog_compiler_pic_CXX=
21769 haiku*)
21770 # PIC is the default for Haiku.
21771 # The "-static" flag exists, but is broken.
21772 lt_prog_compiler_static_CXX=
21774 interix[3-9]*)
21775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21776 # Instead, we relocate shared libraries at runtime.
21778 sysv4*MP*)
21779 if test -d /usr/nec; then
21780 lt_prog_compiler_pic_CXX=-Kconform_pic
21783 hpux*)
21784 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21785 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21786 # sets the default TLS model and affects inlining.
21787 case $host_cpu in
21788 hppa*64*)
21791 lt_prog_compiler_pic_CXX='-fPIC'
21793 esac
21795 *qnx* | *nto*)
21796 # QNX uses GNU C++, but need to define -shared option too, otherwise
21797 # it will coredump.
21798 lt_prog_compiler_pic_CXX='-fPIC -shared'
21801 lt_prog_compiler_pic_CXX='-fPIC'
21803 esac
21804 else
21805 case $host_os in
21806 aix[4-9]*)
21807 # All AIX code is PIC.
21808 if test "$host_cpu" = ia64; then
21809 # AIX 5 now supports IA64 processor
21810 lt_prog_compiler_static_CXX='-Bstatic'
21811 else
21812 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21815 chorus*)
21816 case $cc_basename in
21817 cxch68*)
21818 # Green Hills C++ Compiler
21819 # _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"
21821 esac
21823 dgux*)
21824 case $cc_basename in
21825 ec++*)
21826 lt_prog_compiler_pic_CXX='-KPIC'
21828 ghcx*)
21829 # Green Hills C++ Compiler
21830 lt_prog_compiler_pic_CXX='-pic'
21834 esac
21836 freebsd* | dragonfly*)
21837 # FreeBSD uses GNU C++
21839 hpux9* | hpux10* | hpux11*)
21840 case $cc_basename in
21841 CC*)
21842 lt_prog_compiler_wl_CXX='-Wl,'
21843 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21844 if test "$host_cpu" != ia64; then
21845 lt_prog_compiler_pic_CXX='+Z'
21848 aCC*)
21849 lt_prog_compiler_wl_CXX='-Wl,'
21850 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21851 case $host_cpu in
21852 hppa*64*|ia64*)
21853 # +Z the default
21856 lt_prog_compiler_pic_CXX='+Z'
21858 esac
21862 esac
21864 interix*)
21865 # This is c89, which is MS Visual C++ (no shared libs)
21866 # Anyone wants to do a port?
21868 irix5* | irix6* | nonstopux*)
21869 case $cc_basename in
21870 CC*)
21871 lt_prog_compiler_wl_CXX='-Wl,'
21872 lt_prog_compiler_static_CXX='-non_shared'
21873 # CC pic flag -KPIC is the default.
21877 esac
21879 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21880 case $cc_basename in
21881 KCC*)
21882 # KAI C++ Compiler
21883 lt_prog_compiler_wl_CXX='--backend -Wl,'
21884 lt_prog_compiler_pic_CXX='-fPIC'
21886 ecpc* )
21887 # old Intel C++ for x86_64 which still supported -KPIC.
21888 lt_prog_compiler_wl_CXX='-Wl,'
21889 lt_prog_compiler_pic_CXX='-KPIC'
21890 lt_prog_compiler_static_CXX='-static'
21892 icpc* )
21893 # Intel C++, used to be incompatible with GCC.
21894 # ICC 10 doesn't accept -KPIC any more.
21895 lt_prog_compiler_wl_CXX='-Wl,'
21896 lt_prog_compiler_pic_CXX='-fPIC'
21897 lt_prog_compiler_static_CXX='-static'
21899 pgCC* | pgcpp*)
21900 # Portland Group C++ compiler
21901 lt_prog_compiler_wl_CXX='-Wl,'
21902 lt_prog_compiler_pic_CXX='-fpic'
21903 lt_prog_compiler_static_CXX='-Bstatic'
21905 cxx*)
21906 # Compaq C++
21907 # Make sure the PIC flag is empty. It appears that all Alpha
21908 # Linux and Compaq Tru64 Unix objects are PIC.
21909 lt_prog_compiler_pic_CXX=
21910 lt_prog_compiler_static_CXX='-non_shared'
21912 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21913 # IBM XL 8.0, 9.0 on PPC and BlueGene
21914 lt_prog_compiler_wl_CXX='-Wl,'
21915 lt_prog_compiler_pic_CXX='-qpic'
21916 lt_prog_compiler_static_CXX='-qstaticlink'
21919 case `$CC -V 2>&1 | sed 5q` in
21920 *Sun\ C*)
21921 # Sun C++ 5.9
21922 lt_prog_compiler_pic_CXX='-KPIC'
21923 lt_prog_compiler_static_CXX='-Bstatic'
21924 lt_prog_compiler_wl_CXX='-Qoption ld '
21926 esac
21928 esac
21930 lynxos*)
21932 m88k*)
21934 mvs*)
21935 case $cc_basename in
21936 cxx*)
21937 lt_prog_compiler_pic_CXX='-W c,exportall'
21941 esac
21943 netbsd*)
21945 *qnx* | *nto*)
21946 # QNX uses GNU C++, but need to define -shared option too, otherwise
21947 # it will coredump.
21948 lt_prog_compiler_pic_CXX='-fPIC -shared'
21950 osf3* | osf4* | osf5*)
21951 case $cc_basename in
21952 KCC*)
21953 lt_prog_compiler_wl_CXX='--backend -Wl,'
21955 RCC*)
21956 # Rational C++ 2.4.1
21957 lt_prog_compiler_pic_CXX='-pic'
21959 cxx*)
21960 # Digital/Compaq C++
21961 lt_prog_compiler_wl_CXX='-Wl,'
21962 # Make sure the PIC flag is empty. It appears that all Alpha
21963 # Linux and Compaq Tru64 Unix objects are PIC.
21964 lt_prog_compiler_pic_CXX=
21965 lt_prog_compiler_static_CXX='-non_shared'
21969 esac
21971 psos*)
21973 solaris*)
21974 case $cc_basename in
21975 CC*)
21976 # Sun C++ 4.2, 5.x and Centerline C++
21977 lt_prog_compiler_pic_CXX='-KPIC'
21978 lt_prog_compiler_static_CXX='-Bstatic'
21979 lt_prog_compiler_wl_CXX='-Qoption ld '
21981 gcx*)
21982 # Green Hills C++ Compiler
21983 lt_prog_compiler_pic_CXX='-PIC'
21987 esac
21989 sunos4*)
21990 case $cc_basename in
21991 CC*)
21992 # Sun C++ 4.x
21993 lt_prog_compiler_pic_CXX='-pic'
21994 lt_prog_compiler_static_CXX='-Bstatic'
21996 lcc*)
21997 # Lucid
21998 lt_prog_compiler_pic_CXX='-pic'
22002 esac
22004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22005 case $cc_basename in
22006 CC*)
22007 lt_prog_compiler_wl_CXX='-Wl,'
22008 lt_prog_compiler_pic_CXX='-KPIC'
22009 lt_prog_compiler_static_CXX='-Bstatic'
22011 esac
22013 tandem*)
22014 case $cc_basename in
22015 NCC*)
22016 # NonStop-UX NCC 3.20
22017 lt_prog_compiler_pic_CXX='-KPIC'
22021 esac
22023 vxworks*)
22026 lt_prog_compiler_can_build_shared_CXX=no
22028 esac
22031 case $host_os in
22032 # For platforms which do not support PIC, -DPIC is meaningless:
22033 *djgpp*)
22034 lt_prog_compiler_pic_CXX=
22037 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22039 esac
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22041 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22046 # Check to make sure the PIC flag actually works.
22048 if test -n "$lt_prog_compiler_pic_CXX"; then
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22050 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22051 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22052 $as_echo_n "(cached) " >&6
22053 else
22054 lt_cv_prog_compiler_pic_works_CXX=no
22055 ac_outfile=conftest.$ac_objext
22056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22057 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22058 # Insert the option either (1) after the last *FLAGS variable, or
22059 # (2) before a word containing "conftest.", or (3) at the end.
22060 # Note that $ac_compile itself does not contain backslashes and begins
22061 # with a dollar sign (not a hyphen), so the echo should work correctly.
22062 # The option is referenced via a variable to avoid confusing sed.
22063 lt_compile=`echo "$ac_compile" | $SED \
22064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22066 -e 's:$: $lt_compiler_flag:'`
22067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22068 (eval "$lt_compile" 2>conftest.err)
22069 ac_status=$?
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 if (exit $ac_status) && test -s "$ac_outfile"; then
22073 # The compiler can only warn and ignore the option if not recognized
22074 # So say no if there are warnings other than the usual output.
22075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22078 lt_cv_prog_compiler_pic_works_CXX=yes
22081 $RM conftest*
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22085 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22087 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22088 case $lt_prog_compiler_pic_CXX in
22089 "" | " "*) ;;
22090 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22091 esac
22092 else
22093 lt_prog_compiler_pic_CXX=
22094 lt_prog_compiler_can_build_shared_CXX=no
22102 # Check to make sure the static flag actually works.
22104 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22106 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22107 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22108 $as_echo_n "(cached) " >&6
22109 else
22110 lt_cv_prog_compiler_static_works_CXX=no
22111 save_LDFLAGS="$LDFLAGS"
22112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22113 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22115 # The linker can only warn and ignore the option if not recognized
22116 # So say no if there are warnings
22117 if test -s conftest.err; then
22118 # Append any errors to the config.log.
22119 cat conftest.err 1>&5
22120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22122 if diff conftest.exp conftest.er2 >/dev/null; then
22123 lt_cv_prog_compiler_static_works_CXX=yes
22125 else
22126 lt_cv_prog_compiler_static_works_CXX=yes
22129 $RM -r conftest*
22130 LDFLAGS="$save_LDFLAGS"
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22134 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22136 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22138 else
22139 lt_prog_compiler_static_CXX=
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22147 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22148 $as_echo_n "(cached) " >&6
22149 else
22150 lt_cv_prog_compiler_c_o_CXX=no
22151 $RM -r conftest 2>/dev/null
22152 mkdir conftest
22153 cd conftest
22154 mkdir out
22155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22157 lt_compiler_flag="-o out/conftest2.$ac_objext"
22158 # Insert the option either (1) after the last *FLAGS variable, or
22159 # (2) before a word containing "conftest.", or (3) at the end.
22160 # Note that $ac_compile itself does not contain backslashes and begins
22161 # with a dollar sign (not a hyphen), so the echo should work correctly.
22162 lt_compile=`echo "$ac_compile" | $SED \
22163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22165 -e 's:$: $lt_compiler_flag:'`
22166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22167 (eval "$lt_compile" 2>out/conftest.err)
22168 ac_status=$?
22169 cat out/conftest.err >&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22172 then
22173 # The compiler can only warn and ignore the option if not recognized
22174 # So say no if there are warnings
22175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22178 lt_cv_prog_compiler_c_o_CXX=yes
22181 chmod u+w . 2>&5
22182 $RM conftest*
22183 # SGI C++ compiler will create directory out/ii_files/ for
22184 # template instantiation
22185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22186 $RM out/* && rmdir out
22187 cd ..
22188 $RM -r conftest
22189 $RM conftest*
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22193 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22198 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22199 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22200 $as_echo_n "(cached) " >&6
22201 else
22202 lt_cv_prog_compiler_c_o_CXX=no
22203 $RM -r conftest 2>/dev/null
22204 mkdir conftest
22205 cd conftest
22206 mkdir out
22207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22209 lt_compiler_flag="-o out/conftest2.$ac_objext"
22210 # Insert the option either (1) after the last *FLAGS variable, or
22211 # (2) before a word containing "conftest.", or (3) at the end.
22212 # Note that $ac_compile itself does not contain backslashes and begins
22213 # with a dollar sign (not a hyphen), so the echo should work correctly.
22214 lt_compile=`echo "$ac_compile" | $SED \
22215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22217 -e 's:$: $lt_compiler_flag:'`
22218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22219 (eval "$lt_compile" 2>out/conftest.err)
22220 ac_status=$?
22221 cat out/conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22224 then
22225 # The compiler can only warn and ignore the option if not recognized
22226 # So say no if there are warnings
22227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22230 lt_cv_prog_compiler_c_o_CXX=yes
22233 chmod u+w . 2>&5
22234 $RM conftest*
22235 # SGI C++ compiler will create directory out/ii_files/ for
22236 # template instantiation
22237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22238 $RM out/* && rmdir out
22239 cd ..
22240 $RM -r conftest
22241 $RM conftest*
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22245 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22250 hard_links="nottested"
22251 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22252 # do not overwrite the value of need_locks provided by the user
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22254 $as_echo_n "checking if we can lock with hard links... " >&6; }
22255 hard_links=yes
22256 $RM conftest*
22257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22258 touch conftest.a
22259 ln conftest.a conftest.b 2>&5 || hard_links=no
22260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22262 $as_echo "$hard_links" >&6; }
22263 if test "$hard_links" = no; then
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22266 need_locks=warn
22268 else
22269 need_locks=no
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22275 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22277 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22278 case $host_os in
22279 aix[4-9]*)
22280 # If we're using GNU nm, then we don't want the "-C" option.
22281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22282 # Also, AIX nm treats weak defined symbols like other global defined
22283 # symbols, whereas GNU nm marks them as "W".
22284 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22285 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'
22286 else
22287 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'
22290 pw32*)
22291 export_symbols_cmds_CXX="$ltdll_cmds"
22293 cygwin* | mingw* | cegcc*)
22294 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'
22297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22299 esac
22300 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22303 $as_echo "$ld_shlibs_CXX" >&6; }
22304 test "$ld_shlibs_CXX" = no && can_build_shared=no
22306 with_gnu_ld_CXX=$with_gnu_ld
22314 # Do we need to explicitly link libc?
22316 case "x$archive_cmds_need_lc_CXX" in
22317 x|xyes)
22318 # Assume -lc should be added
22319 archive_cmds_need_lc_CXX=yes
22321 if test "$enable_shared" = yes && test "$GCC" = yes; then
22322 case $archive_cmds_CXX in
22323 *'~'*)
22324 # FIXME: we may have to deal with multi-command sequences.
22326 '$CC '*)
22327 # Test whether the compiler implicitly links with -lc since on some
22328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22329 # to ld, don't add -lc before -lgcc.
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22332 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22333 $as_echo_n "(cached) " >&6
22334 else
22335 $RM conftest*
22336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22339 (eval $ac_compile) 2>&5
22340 ac_status=$?
22341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22342 test $ac_status = 0; } 2>conftest.err; then
22343 soname=conftest
22344 lib=conftest
22345 libobjs=conftest.$ac_objext
22346 deplibs=
22347 wl=$lt_prog_compiler_wl_CXX
22348 pic_flag=$lt_prog_compiler_pic_CXX
22349 compiler_flags=-v
22350 linker_flags=-v
22351 verstring=
22352 output_objdir=.
22353 libname=conftest
22354 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22355 allow_undefined_flag_CXX=
22356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22357 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22358 ac_status=$?
22359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22360 test $ac_status = 0; }
22361 then
22362 lt_cv_archive_cmds_need_lc_CXX=no
22363 else
22364 lt_cv_archive_cmds_need_lc_CXX=yes
22366 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22367 else
22368 cat conftest.err 1>&5
22370 $RM conftest*
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22374 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22375 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22377 esac
22380 esac
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22448 library_names_spec=
22449 libname_spec='lib$name'
22450 soname_spec=
22451 shrext_cmds=".so"
22452 postinstall_cmds=
22453 postuninstall_cmds=
22454 finish_cmds=
22455 finish_eval=
22456 shlibpath_var=
22457 shlibpath_overrides_runpath=unknown
22458 version_type=none
22459 dynamic_linker="$host_os ld.so"
22460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22461 need_lib_prefix=unknown
22462 hardcode_into_libs=no
22464 # when you set need_version to no, make sure it does not cause -set_version
22465 # flags to be left without arguments
22466 need_version=unknown
22468 case $host_os in
22469 aix3*)
22470 version_type=linux
22471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22472 shlibpath_var=LIBPATH
22474 # AIX 3 has no versioning support, so we append a major version to the name.
22475 soname_spec='${libname}${release}${shared_ext}$major'
22478 aix[4-9]*)
22479 version_type=linux
22480 need_lib_prefix=no
22481 need_version=no
22482 hardcode_into_libs=yes
22483 if test "$host_cpu" = ia64; then
22484 # AIX 5 supports IA64
22485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22486 shlibpath_var=LD_LIBRARY_PATH
22487 else
22488 # With GCC up to 2.95.x, collect2 would create an import file
22489 # for dependence libraries. The import file would start with
22490 # the line `#! .'. This would cause the generated library to
22491 # depend on `.', always an invalid library. This was fixed in
22492 # development snapshots of GCC prior to 3.0.
22493 case $host_os in
22494 aix4 | aix4.[01] | aix4.[01].*)
22495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22496 echo ' yes '
22497 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22499 else
22500 can_build_shared=no
22503 esac
22504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22505 # soname into executable. Probably we can add versioning support to
22506 # collect2, so additional links can be useful in future.
22507 if test "$aix_use_runtimelinking" = yes; then
22508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22509 # instead of lib<name>.a to let people know that these are not
22510 # typical AIX shared libraries.
22511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22512 else
22513 # We preserve .a as extension for shared libraries through AIX4.2
22514 # and later when we are not doing run time linking.
22515 library_names_spec='${libname}${release}.a $libname.a'
22516 soname_spec='${libname}${release}${shared_ext}$major'
22518 shlibpath_var=LIBPATH
22522 amigaos*)
22523 case $host_cpu in
22524 powerpc)
22525 # Since July 2007 AmigaOS4 officially supports .so libraries.
22526 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22529 m68k)
22530 library_names_spec='$libname.ixlibrary $libname.a'
22531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22532 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'
22534 esac
22537 beos*)
22538 library_names_spec='${libname}${shared_ext}'
22539 dynamic_linker="$host_os ld.so"
22540 shlibpath_var=LIBRARY_PATH
22543 bsdi[45]*)
22544 version_type=linux
22545 need_version=no
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547 soname_spec='${libname}${release}${shared_ext}$major'
22548 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22549 shlibpath_var=LD_LIBRARY_PATH
22550 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22551 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22552 # the default ld.so.conf also contains /usr/contrib/lib and
22553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22554 # libtool to hard-code these into programs
22557 cygwin* | mingw* | pw32* | cegcc*)
22558 version_type=windows
22559 shrext_cmds=".dll"
22560 need_version=no
22561 need_lib_prefix=no
22563 case $GCC,$host_os in
22564 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22565 library_names_spec='$libname.dll.a'
22566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22567 postinstall_cmds='base_file=`basename \${file}`~
22568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22569 dldir=$destdir/`dirname \$dlpath`~
22570 test -d \$dldir || mkdir -p \$dldir~
22571 $install_prog $dir/$dlname \$dldir/$dlname~
22572 chmod a+x \$dldir/$dlname~
22573 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22574 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22577 dlpath=$dir/\$dldll~
22578 $RM \$dlpath'
22579 shlibpath_overrides_runpath=yes
22581 case $host_os in
22582 cygwin*)
22583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22587 mingw* | cegcc*)
22588 # MinGW DLLs use traditional 'lib' prefix
22589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22591 pw32*)
22592 # pw32 DLLs use 'pw' prefix rather than 'lib'
22593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22595 esac
22599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22601 esac
22602 dynamic_linker='Win32 ld.exe'
22603 # FIXME: first we should search . and the directory the executable is in
22604 shlibpath_var=PATH
22607 darwin* | rhapsody*)
22608 dynamic_linker="$host_os dyld"
22609 version_type=darwin
22610 need_lib_prefix=no
22611 need_version=no
22612 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22613 soname_spec='${libname}${release}${major}$shared_ext'
22614 shlibpath_overrides_runpath=yes
22615 shlibpath_var=DYLD_LIBRARY_PATH
22616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22621 dgux*)
22622 version_type=linux
22623 need_lib_prefix=no
22624 need_version=no
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22626 soname_spec='${libname}${release}${shared_ext}$major'
22627 shlibpath_var=LD_LIBRARY_PATH
22630 freebsd* | dragonfly*)
22631 # DragonFly does not have aout. When/if they implement a new
22632 # versioning mechanism, adjust this.
22633 if test -x /usr/bin/objformat; then
22634 objformat=`/usr/bin/objformat`
22635 else
22636 case $host_os in
22637 freebsd[23].*) objformat=aout ;;
22638 *) objformat=elf ;;
22639 esac
22641 version_type=freebsd-$objformat
22642 case $version_type in
22643 freebsd-elf*)
22644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22645 need_version=no
22646 need_lib_prefix=no
22648 freebsd-*)
22649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22650 need_version=yes
22652 esac
22653 shlibpath_var=LD_LIBRARY_PATH
22654 case $host_os in
22655 freebsd2.*)
22656 shlibpath_overrides_runpath=yes
22658 freebsd3.[01]* | freebsdelf3.[01]*)
22659 shlibpath_overrides_runpath=yes
22660 hardcode_into_libs=yes
22662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22664 shlibpath_overrides_runpath=no
22665 hardcode_into_libs=yes
22667 *) # from 4.6 on, and DragonFly
22668 shlibpath_overrides_runpath=yes
22669 hardcode_into_libs=yes
22671 esac
22674 haiku*)
22675 version_type=linux
22676 need_lib_prefix=no
22677 need_version=no
22678 dynamic_linker="$host_os runtime_loader"
22679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22680 soname_spec='${libname}${release}${shared_ext}$major'
22681 shlibpath_var=LIBRARY_PATH
22682 shlibpath_overrides_runpath=yes
22683 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22684 hardcode_into_libs=yes
22687 hpux9* | hpux10* | hpux11*)
22688 # Give a soname corresponding to the major version so that dld.sl refuses to
22689 # link against other versions.
22690 version_type=sunos
22691 need_lib_prefix=no
22692 need_version=no
22693 case $host_cpu in
22694 ia64*)
22695 shrext_cmds='.so'
22696 hardcode_into_libs=yes
22697 dynamic_linker="$host_os dld.so"
22698 shlibpath_var=LD_LIBRARY_PATH
22699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701 soname_spec='${libname}${release}${shared_ext}$major'
22702 if test "X$HPUX_IA64_MODE" = X32; then
22703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22704 else
22705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22709 hppa*64*)
22710 shrext_cmds='.sl'
22711 hardcode_into_libs=yes
22712 dynamic_linker="$host_os dld.sl"
22713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22716 soname_spec='${libname}${release}${shared_ext}$major'
22717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22721 shrext_cmds='.sl'
22722 dynamic_linker="$host_os dld.sl"
22723 shlibpath_var=SHLIB_PATH
22724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22728 esac
22729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22730 postinstall_cmds='chmod 555 $lib'
22731 # or fails outright, so override atomically:
22732 install_override_mode=555
22735 interix[3-9]*)
22736 version_type=linux
22737 need_lib_prefix=no
22738 need_version=no
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22740 soname_spec='${libname}${release}${shared_ext}$major'
22741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22742 shlibpath_var=LD_LIBRARY_PATH
22743 shlibpath_overrides_runpath=no
22744 hardcode_into_libs=yes
22747 irix5* | irix6* | nonstopux*)
22748 case $host_os in
22749 nonstopux*) version_type=nonstopux ;;
22751 if test "$lt_cv_prog_gnu_ld" = yes; then
22752 version_type=linux
22753 else
22754 version_type=irix
22755 fi ;;
22756 esac
22757 need_lib_prefix=no
22758 need_version=no
22759 soname_spec='${libname}${release}${shared_ext}$major'
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22761 case $host_os in
22762 irix5* | nonstopux*)
22763 libsuff= shlibsuff=
22766 case $LD in # libtool.m4 will add one of these switches to LD
22767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22768 libsuff= shlibsuff= libmagic=32-bit;;
22769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22770 libsuff=32 shlibsuff=N32 libmagic=N32;;
22771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22773 *) libsuff= shlibsuff= libmagic=never-match;;
22774 esac
22776 esac
22777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22778 shlibpath_overrides_runpath=no
22779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22781 hardcode_into_libs=yes
22784 # No shared lib support for Linux oldld, aout, or coff.
22785 linux*oldld* | linux*aout* | linux*coff*)
22786 dynamic_linker=no
22789 # This must be Linux ELF.
22791 # uclinux* changes (here and below) have been submitted to the libtool
22792 # project, but have not yet been accepted: they are GCC-local changes
22793 # for the time being. (See
22794 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22795 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22796 version_type=linux
22797 need_lib_prefix=no
22798 need_version=no
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=no
22805 # Some binutils ld are patched to set DT_RUNPATH
22806 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22807 $as_echo_n "(cached) " >&6
22808 else
22809 lt_cv_shlibpath_overrides_runpath=no
22810 save_LDFLAGS=$LDFLAGS
22811 save_libdir=$libdir
22812 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22813 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22815 /* end confdefs.h. */
22818 main ()
22822 return 0;
22824 _ACEOF
22825 if ac_fn_cxx_try_link "$LINENO"; then :
22826 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22827 lt_cv_shlibpath_overrides_runpath=yes
22830 rm -f core conftest.err conftest.$ac_objext \
22831 conftest$ac_exeext conftest.$ac_ext
22832 LDFLAGS=$save_LDFLAGS
22833 libdir=$save_libdir
22837 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22839 # This implies no fast_install, which is unacceptable.
22840 # Some rework will be needed to allow for fast_install
22841 # before this can be enabled.
22842 hardcode_into_libs=yes
22844 # Append ld.so.conf contents to the search path
22845 if test -f /etc/ld.so.conf; then
22846 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' ' '`
22847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22850 # We used to test for /lib/ld.so.1 and disable shared libraries on
22851 # powerpc, because MkLinux only supported shared libraries with the
22852 # GNU dynamic linker. Since this was broken with cross compilers,
22853 # most powerpc-linux boxes support dynamic linking these days and
22854 # people can always --disable-shared, the test was removed, and we
22855 # assume the GNU/Linux dynamic linker is in use.
22856 dynamic_linker='GNU/Linux ld.so'
22859 netbsd*)
22860 version_type=sunos
22861 need_lib_prefix=no
22862 need_version=no
22863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22866 dynamic_linker='NetBSD (a.out) ld.so'
22867 else
22868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22869 soname_spec='${libname}${release}${shared_ext}$major'
22870 dynamic_linker='NetBSD ld.elf_so'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=yes
22874 hardcode_into_libs=yes
22877 newsos6)
22878 version_type=linux
22879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22880 shlibpath_var=LD_LIBRARY_PATH
22881 shlibpath_overrides_runpath=yes
22884 *nto* | *qnx*)
22885 version_type=qnx
22886 need_lib_prefix=no
22887 need_version=no
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22889 soname_spec='${libname}${release}${shared_ext}$major'
22890 shlibpath_var=LD_LIBRARY_PATH
22891 shlibpath_overrides_runpath=no
22892 hardcode_into_libs=yes
22893 dynamic_linker='ldqnx.so'
22896 openbsd*)
22897 version_type=sunos
22898 sys_lib_dlsearch_path_spec="/usr/lib"
22899 need_lib_prefix=no
22900 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22901 case $host_os in
22902 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22903 *) need_version=no ;;
22904 esac
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22909 case $host_os in
22910 openbsd2.[89] | openbsd2.[89].*)
22911 shlibpath_overrides_runpath=no
22914 shlibpath_overrides_runpath=yes
22916 esac
22917 else
22918 shlibpath_overrides_runpath=yes
22922 os2*)
22923 libname_spec='$name'
22924 shrext_cmds=".dll"
22925 need_lib_prefix=no
22926 library_names_spec='$libname${shared_ext} $libname.a'
22927 dynamic_linker='OS/2 ld.exe'
22928 shlibpath_var=LIBPATH
22931 osf3* | osf4* | osf5*)
22932 version_type=osf
22933 need_lib_prefix=no
22934 need_version=no
22935 soname_spec='${libname}${release}${shared_ext}$major'
22936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22937 shlibpath_var=LD_LIBRARY_PATH
22938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22939 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22942 rdos*)
22943 dynamic_linker=no
22946 solaris*)
22947 version_type=linux
22948 need_lib_prefix=no
22949 need_version=no
22950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22951 soname_spec='${libname}${release}${shared_ext}$major'
22952 shlibpath_var=LD_LIBRARY_PATH
22953 shlibpath_overrides_runpath=yes
22954 hardcode_into_libs=yes
22955 # ldd complains unless libraries are executable
22956 postinstall_cmds='chmod +x $lib'
22959 sunos4*)
22960 version_type=sunos
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22963 shlibpath_var=LD_LIBRARY_PATH
22964 shlibpath_overrides_runpath=yes
22965 if test "$with_gnu_ld" = yes; then
22966 need_lib_prefix=no
22968 need_version=yes
22971 sysv4 | sysv4.3*)
22972 version_type=linux
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 shlibpath_var=LD_LIBRARY_PATH
22976 case $host_vendor in
22977 sni)
22978 shlibpath_overrides_runpath=no
22979 need_lib_prefix=no
22980 runpath_var=LD_RUN_PATH
22982 siemens)
22983 need_lib_prefix=no
22985 motorola)
22986 need_lib_prefix=no
22987 need_version=no
22988 shlibpath_overrides_runpath=no
22989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22991 esac
22994 sysv4*MP*)
22995 if test -d /usr/nec ;then
22996 version_type=linux
22997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22998 soname_spec='$libname${shared_ext}.$major'
22999 shlibpath_var=LD_LIBRARY_PATH
23003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23004 version_type=freebsd-elf
23005 need_lib_prefix=no
23006 need_version=no
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 shlibpath_var=LD_LIBRARY_PATH
23010 shlibpath_overrides_runpath=yes
23011 hardcode_into_libs=yes
23012 if test "$with_gnu_ld" = yes; then
23013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23014 else
23015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23016 case $host_os in
23017 sco3.2v5*)
23018 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23020 esac
23022 sys_lib_dlsearch_path_spec='/usr/lib'
23025 tpf*)
23026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23027 version_type=linux
23028 need_lib_prefix=no
23029 need_version=no
23030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23031 shlibpath_var=LD_LIBRARY_PATH
23032 shlibpath_overrides_runpath=no
23033 hardcode_into_libs=yes
23036 uts4*)
23037 version_type=linux
23038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23039 soname_spec='${libname}${release}${shared_ext}$major'
23040 shlibpath_var=LD_LIBRARY_PATH
23043 # Shared libraries for VwWorks, >= 7 only at this stage
23044 # and (fpic) still incompatible with "large" code models
23045 # in a few configurations. Only for RTP mode in any case,
23046 # and upon explicit request at configure time.
23047 vxworks7*)
23048 dynamic_linker=no
23049 case ${with_multisubdir}-${enable_shared} in
23050 *large*)
23052 *mrtp*-yes)
23053 version_type=linux
23054 need_lib_prefix=no
23055 need_version=no
23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23057 soname_spec='${libname}${release}${shared_ext}$major'
23058 dynamic_linker="$host_os module_loader"
23060 esac
23063 dynamic_linker=no
23065 esac
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23067 $as_echo "$dynamic_linker" >&6; }
23068 test "$dynamic_linker" = no && can_build_shared=no
23070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23071 if test "$GCC" = yes; then
23072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23076 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23079 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23121 hardcode_action_CXX=
23122 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23123 test -n "$runpath_var_CXX" ||
23124 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23126 # We can hardcode non-existent directories.
23127 if test "$hardcode_direct_CXX" != no &&
23128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23129 # have to relink, otherwise we might link with an installed library
23130 # when we should be linking with a yet-to-be-installed one
23131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23132 test "$hardcode_minus_L_CXX" != no; then
23133 # Linking always hardcodes the temporary library directory.
23134 hardcode_action_CXX=relink
23135 else
23136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23137 hardcode_action_CXX=immediate
23139 else
23140 # We cannot hardcode anything, or else we can only hardcode existing
23141 # directories.
23142 hardcode_action_CXX=unsupported
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23145 $as_echo "$hardcode_action_CXX" >&6; }
23147 if test "$hardcode_action_CXX" = relink ||
23148 test "$inherit_rpath_CXX" = yes; then
23149 # Fast installation is not supported
23150 enable_fast_install=no
23151 elif test "$shlibpath_overrides_runpath" = yes ||
23152 test "$enable_shared" = no; then
23153 # Fast installation is not necessary
23154 enable_fast_install=needless
23163 fi # test -n "$compiler"
23165 CC=$lt_save_CC
23166 LDCXX=$LD
23167 LD=$lt_save_LD
23168 GCC=$lt_save_GCC
23169 with_gnu_ld=$lt_save_with_gnu_ld
23170 lt_cv_path_LDCXX=$lt_cv_path_LD
23171 lt_cv_path_LD=$lt_save_path_LD
23172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23174 fi # test "$_lt_caught_CXX_error" != yes
23176 ac_ext=cpp
23177 ac_cpp='$CXXCPP $CPPFLAGS'
23178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23197 # Only expand once:
23203 # Identify the assembler which will work hand-in-glove with the newly
23204 # built GCC, so that we can examine its features. This is the assembler
23205 # which will be driven by the driver program.
23207 # If build != host, and we aren't building gas in-tree, we identify a
23208 # build->target assembler and hope that it will have the same features
23209 # as the host->target assembler we'll be using.
23210 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23212 if ${gcc_cv_as+:} false; then :
23214 else
23216 if test -x "$DEFAULT_ASSEMBLER"; then
23217 gcc_cv_as="$DEFAULT_ASSEMBLER"
23218 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23219 && test -f ../gas/Makefile \
23220 && test x$build = x$host; then
23221 gcc_cv_as=../gas/as-new$build_exeext
23222 elif test -x as$build_exeext; then
23223 # Build using assembler in the current directory.
23224 gcc_cv_as=./as$build_exeext
23225 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23226 gcc_cv_as="$AS_FOR_TARGET"
23227 else
23228 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23229 set dummy $AS_FOR_TARGET; ac_word=$2
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23231 $as_echo_n "checking for $ac_word... " >&6; }
23232 if ${ac_cv_path_gcc_cv_as+:} false; then :
23233 $as_echo_n "(cached) " >&6
23234 else
23235 case $gcc_cv_as in
23236 [\\/]* | ?:[\\/]*)
23237 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23241 for as_dir in $PATH
23243 IFS=$as_save_IFS
23244 test -z "$as_dir" && as_dir=.
23245 for ac_exec_ext in '' $ac_executable_extensions; do
23246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23247 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23249 break 2
23251 done
23252 done
23253 IFS=$as_save_IFS
23256 esac
23258 gcc_cv_as=$ac_cv_path_gcc_cv_as
23259 if test -n "$gcc_cv_as"; then
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23261 $as_echo "$gcc_cv_as" >&6; }
23262 else
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23264 $as_echo "no" >&6; }
23271 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23273 case "$ORIGINAL_AS_FOR_TARGET" in
23274 ./as | ./as$build_exeext) ;;
23275 *) ac_config_files="$ac_config_files as:exec-tool.in"
23277 esac
23279 default_ld=
23280 # Check whether --enable-ld was given.
23281 if test "${enable_ld+set}" = set; then :
23282 enableval=$enable_ld; case "${enableval}" in
23284 default_ld=ld.gold
23286 esac
23290 install_gold_as_default=no
23291 # Check whether --enable-gold was given.
23292 if test "${enable_gold+set}" = set; then :
23293 enableval=$enable_gold; case "${enableval}" in
23294 default)
23295 install_gold_as_default=yes
23297 yes)
23298 if test x${default_ld} != x; then
23299 install_gold_as_default=yes
23305 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23307 esac
23311 # Identify the linker which will work hand-in-glove with the newly
23312 # built GCC, so that we can examine its features. This is the linker
23313 # which will be driven by the driver program.
23315 # If build != host, and we aren't building gas in-tree, we identify a
23316 # build->target linker and hope that it will have the same features
23317 # as the host->target linker we'll be using.
23318 gcc_cv_gld_major_version=
23319 gcc_cv_gld_minor_version=
23320 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23321 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23322 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23324 if ${gcc_cv_ld+:} false; then :
23326 else
23328 if test -x "$DEFAULT_LINKER"; then
23329 gcc_cv_ld="$DEFAULT_LINKER"
23330 elif test $install_gold_as_default = yes \
23331 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23332 && test -f ../gold/Makefile \
23333 && test x$build = x$host; then
23334 gcc_cv_ld=../gold/ld-new$build_exeext
23335 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23336 && test -f ../ld/Makefile \
23337 && test x$build = x$host; then
23338 gcc_cv_ld=../ld/ld-new$build_exeext
23339 elif test -x collect-ld$build_exeext; then
23340 # Build using linker in the current directory.
23341 gcc_cv_ld=./collect-ld$build_exeext
23342 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23343 gcc_cv_ld="$LD_FOR_TARGET"
23344 else
23345 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23346 set dummy $LD_FOR_TARGET; ac_word=$2
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23348 $as_echo_n "checking for $ac_word... " >&6; }
23349 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23350 $as_echo_n "(cached) " >&6
23351 else
23352 case $gcc_cv_ld in
23353 [\\/]* | ?:[\\/]*)
23354 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23358 for as_dir in $PATH
23360 IFS=$as_save_IFS
23361 test -z "$as_dir" && as_dir=.
23362 for ac_exec_ext in '' $ac_executable_extensions; do
23363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23364 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23366 break 2
23368 done
23369 done
23370 IFS=$as_save_IFS
23373 esac
23375 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23376 if test -n "$gcc_cv_ld"; then
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23378 $as_echo "$gcc_cv_ld" >&6; }
23379 else
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23381 $as_echo "no" >&6; }
23388 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23389 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23390 # if the PLUGIN_LD is set ld-new, just have it as ld
23391 # as that is the installed named.
23392 if test x$PLUGIN_LD_SUFFIX = xld-new \
23393 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23394 PLUGIN_LD_SUFFIX=ld
23397 # Check whether --with-plugin-ld was given.
23398 if test "${with_plugin_ld+set}" = set; then :
23399 withval=$with_plugin_ld; if test x"$withval" != x; then
23400 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23401 PLUGIN_LD_SUFFIX="$withval"
23407 cat >>confdefs.h <<_ACEOF
23408 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23409 _ACEOF
23412 # Check to see if we are using gold instead of ld
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23414 $as_echo_n "checking whether we are using gold... " >&6; }
23415 ld_is_gold=no
23416 if test x$gcc_cv_ld != x; then
23417 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23418 | grep "GNU gold" > /dev/null; then
23419 ld_is_gold=yes
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23423 $as_echo "$ld_is_gold" >&6; }
23425 # Check to see if we are using mold instead of ld
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23427 $as_echo_n "checking whether we are using mold... " >&6; }
23428 ld_is_mold=no
23429 if test x$gcc_cv_ld != x; then
23430 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23431 | grep "mold" > /dev/null; then
23432 ld_is_mold=yes
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23436 $as_echo "$ld_is_mold" >&6; }
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23440 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23441 # Check to see if default ld is not gold, but gold is
23442 # available and has support for split stack. If gcc was configured
23443 # with gold then no checking is done.
23445 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23447 # For platforms other than powerpc64*, enable as appropriate.
23449 gold_non_default=no
23450 ld_gold=`which ${gcc_cv_ld}.gold`
23451 # Make sure this gold has minimal split stack support
23452 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23453 ld_vers=`$ld_gold --version | sed 1q`
23454 gold_vers=`echo $ld_vers | sed -n \
23455 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23456 case $target in
23457 # check that the gold version contains the complete split stack support
23458 # on powerpc64 big and little endian
23459 powerpc64*-*-*)
23460 case "$gold_vers" in
23461 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23463 *) gold_non_default=no
23465 esac
23467 esac
23469 if test $gold_non_default = yes; then
23471 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23476 $as_echo "$gold_non_default" >&6; }
23478 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23480 case "$ORIGINAL_LD_FOR_TARGET" in
23481 ./collect-ld | ./collect-ld$build_exeext) ;;
23482 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23484 esac
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23487 $as_echo_n "checking what linker to use... " >&6; }
23488 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23489 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23490 # Single tree build which includes ld. We want to prefer it
23491 # over whatever linker top-level may have detected, since
23492 # we'll use what we're building after installation anyway.
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23494 $as_echo "newly built ld" >&6; }
23495 in_tree_ld=yes
23496 in_tree_ld_is_elf=no
23497 if (grep 'EMUL = .*elf' ../ld/Makefile \
23498 || grep 'EMUL = .*linux' ../ld/Makefile \
23499 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23500 in_tree_ld_is_elf=yes
23501 elif test "$ld_is_gold" = yes; then
23502 in_tree_ld_is_elf=yes
23504 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
23506 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23507 if test x$gcc_cv_gld_version != x; then
23508 break
23510 done
23511 case $gcc_cv_gld_version in
23512 VERSION=[0-9]*) ;;
23513 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23514 esac
23515 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23516 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23517 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23518 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23519 else
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23521 $as_echo "$gcc_cv_ld" >&6; }
23522 in_tree_ld=no
23523 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23524 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23525 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23531 # Figure out what nm we will be using.
23532 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23533 if ${gcc_cv_nm+:} false; then :
23535 else
23537 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23538 && test -f ../binutils/Makefile \
23539 && test x$build = x$host; then
23540 gcc_cv_nm=../binutils/nm-new$build_exeext
23541 elif test -x nm$build_exeext; then
23542 gcc_cv_nm=./nm$build_exeext
23543 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23544 gcc_cv_nm="$NM_FOR_TARGET"
23545 else
23546 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23547 set dummy $NM_FOR_TARGET; ac_word=$2
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23549 $as_echo_n "checking for $ac_word... " >&6; }
23550 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23551 $as_echo_n "(cached) " >&6
23552 else
23553 case $gcc_cv_nm in
23554 [\\/]* | ?:[\\/]*)
23555 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23559 for as_dir in $PATH
23561 IFS=$as_save_IFS
23562 test -z "$as_dir" && as_dir=.
23563 for ac_exec_ext in '' $ac_executable_extensions; do
23564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23565 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23567 break 2
23569 done
23570 done
23571 IFS=$as_save_IFS
23574 esac
23576 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23577 if test -n "$gcc_cv_nm"; then
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23579 $as_echo "$gcc_cv_nm" >&6; }
23580 else
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23582 $as_echo "no" >&6; }
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23590 $as_echo_n "checking what nm to use... " >&6; }
23591 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23592 # Single tree build which includes binutils.
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23594 $as_echo "newly built nm" >&6; }
23595 in_tree_nm=yes
23596 else
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23598 $as_echo "$gcc_cv_nm" >&6; }
23599 in_tree_nm=no
23602 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23604 case "$ORIGINAL_NM_FOR_TARGET" in
23605 ./nm | ./nm$build_exeext) ;;
23606 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23608 esac
23611 # Figure out what objdump we will be using.
23612 if ${gcc_cv_objdump+:} false; then :
23614 else
23616 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23617 && test -f ../binutils/Makefile \
23618 && test x$build = x$host; then
23619 # Single tree build which includes binutils.
23620 gcc_cv_objdump=../binutils/objdump$build_exeext
23621 elif test -x objdump$build_exeext; then
23622 gcc_cv_objdump=./objdump$build_exeext
23623 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23624 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23625 else
23626 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23627 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23629 $as_echo_n "checking for $ac_word... " >&6; }
23630 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23631 $as_echo_n "(cached) " >&6
23632 else
23633 case $gcc_cv_objdump in
23634 [\\/]* | ?:[\\/]*)
23635 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23639 for as_dir in $PATH
23641 IFS=$as_save_IFS
23642 test -z "$as_dir" && as_dir=.
23643 for ac_exec_ext in '' $ac_executable_extensions; do
23644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23645 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23647 break 2
23649 done
23650 done
23651 IFS=$as_save_IFS
23654 esac
23656 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23657 if test -n "$gcc_cv_objdump"; then
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23659 $as_echo "$gcc_cv_objdump" >&6; }
23660 else
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23670 $as_echo_n "checking what objdump to use... " >&6; }
23671 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23672 # Single tree build which includes binutils.
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23674 $as_echo "newly built objdump" >&6; }
23675 elif test x$gcc_cv_objdump = x; then
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23677 $as_echo "not found" >&6; }
23678 else
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23680 $as_echo "$gcc_cv_objdump" >&6; }
23683 # Figure out what readelf we will be using.
23684 if ${gcc_cv_readelf+:} false; then :
23686 else
23688 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23689 && test -f ../binutils/Makefile \
23690 && test x$build = x$host; then
23691 # Single tree build which includes binutils.
23692 gcc_cv_readelf=../binutils/readelf$build_exeext
23693 elif test -x readelf$build_exeext; then
23694 gcc_cv_readelf=./readelf$build_exeext
23695 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23696 gcc_cv_readelf="$READELF_FOR_TARGET"
23697 else
23698 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23699 set dummy $READELF_FOR_TARGET; ac_word=$2
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23701 $as_echo_n "checking for $ac_word... " >&6; }
23702 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23703 $as_echo_n "(cached) " >&6
23704 else
23705 case $gcc_cv_readelf in
23706 [\\/]* | ?:[\\/]*)
23707 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23711 for as_dir in $PATH
23713 IFS=$as_save_IFS
23714 test -z "$as_dir" && as_dir=.
23715 for ac_exec_ext in '' $ac_executable_extensions; do
23716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23717 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23719 break 2
23721 done
23722 done
23723 IFS=$as_save_IFS
23726 esac
23728 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23729 if test -n "$gcc_cv_readelf"; then
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23731 $as_echo "$gcc_cv_readelf" >&6; }
23732 else
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23734 $as_echo "no" >&6; }
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23742 $as_echo_n "checking what readelf to use... " >&6; }
23743 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23744 # Single tree build which includes binutils.
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23746 $as_echo "newly built readelf" >&6; }
23747 elif test x$gcc_cv_readelf = x; then
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23749 $as_echo "not found" >&6; }
23750 else
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23752 $as_echo "$gcc_cv_readelf" >&6; }
23755 # Figure out what otool we will be using.
23756 if ${gcc_cv_otool+:} false; then :
23758 else
23760 if test -x otool$build_exeext; then
23761 gcc_cv_otool=./otool$build_exeext
23762 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23763 gcc_cv_otool="$OTOOL_FOR_TARGET"
23764 else
23765 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23766 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23768 $as_echo_n "checking for $ac_word... " >&6; }
23769 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23770 $as_echo_n "(cached) " >&6
23771 else
23772 case $gcc_cv_otool in
23773 [\\/]* | ?:[\\/]*)
23774 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23778 for as_dir in $PATH
23780 IFS=$as_save_IFS
23781 test -z "$as_dir" && as_dir=.
23782 for ac_exec_ext in '' $ac_executable_extensions; do
23783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23784 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23786 break 2
23788 done
23789 done
23790 IFS=$as_save_IFS
23793 esac
23795 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23796 if test -n "$gcc_cv_otool"; then
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23798 $as_echo "$gcc_cv_otool" >&6; }
23799 else
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23801 $as_echo "no" >&6; }
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23809 $as_echo_n "checking what otool to use... " >&6; }
23810 if test x$gcc_cv_otool = x; then
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23812 $as_echo "not found" >&6; }
23813 else
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23815 $as_echo "$gcc_cv_otool" >&6; }
23818 # Figure out the dsymutil we will use.
23819 if ${gcc_cv_dsymutil+:} false; then :
23821 else
23823 if test -x "$DEFAULT_DSYMUTIL"; then
23824 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23825 elif test -x dsymutil$build_exeext; then
23826 gcc_cv_dsymutil=./dsymutil$build_exeext
23827 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23828 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23829 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23830 gcc_cv_dsymutil=$DSYMUTIL
23831 else
23832 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23833 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23835 $as_echo_n "checking for $ac_word... " >&6; }
23836 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23837 $as_echo_n "(cached) " >&6
23838 else
23839 case $gcc_cv_dsymutil in
23840 [\\/]* | ?:[\\/]*)
23841 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23845 for as_dir in $PATH
23847 IFS=$as_save_IFS
23848 test -z "$as_dir" && as_dir=.
23849 for ac_exec_ext in '' $ac_executable_extensions; do
23850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23851 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23853 break 2
23855 done
23856 done
23857 IFS=$as_save_IFS
23860 esac
23862 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23863 if test -n "$gcc_cv_dsymutil"; then
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23865 $as_echo "$gcc_cv_dsymutil" >&6; }
23866 else
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23868 $as_echo "no" >&6; }
23875 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23877 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23878 ./dsymutil | ./dsymutil$build_exeext) ;;
23879 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23881 esac
23883 # Figure out what assembler alignment features are present.
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23885 $as_echo_n "checking assembler flags... " >&6; }
23886 if ${gcc_cv_as_flags+:} false; then :
23887 $as_echo_n "(cached) " >&6
23888 else
23889 case "$target" in
23890 i[34567]86-*-linux*)
23891 gcc_cv_as_flags=--32
23893 x86_64-*-linux-gnux32)
23894 gcc_cv_as_flags=--x32
23896 x86_64-*-linux*)
23897 gcc_cv_as_flags=--64
23899 powerpc*-*-darwin*)
23900 gcc_cv_as_flags="-arch ppc"
23903 gcc_cv_as_flags=" "
23905 esac
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23908 $as_echo "$gcc_cv_as_flags" >&6; }
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23911 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23912 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23913 $as_echo_n "(cached) " >&6
23914 else
23915 gcc_cv_as_balign_and_p2align=no
23916 if test x$gcc_cv_as != x; then
23917 $as_echo '.balign 4
23918 .p2align 2' > conftest.s
23919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924 test $ac_status = 0; }; }
23925 then
23926 gcc_cv_as_balign_and_p2align=yes
23927 else
23928 echo "configure: failed program was" >&5
23929 cat conftest.s >&5
23931 rm -f conftest.o conftest.s
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23935 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23936 if test $gcc_cv_as_balign_and_p2align = yes; then
23938 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23944 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23945 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23946 $as_echo_n "(cached) " >&6
23947 else
23948 gcc_cv_as_max_skip_p2align=no
23949 if test x$gcc_cv_as != x; then
23950 $as_echo '.p2align 4,,7' > conftest.s
23951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23956 test $ac_status = 0; }; }
23957 then
23958 gcc_cv_as_max_skip_p2align=yes
23959 else
23960 echo "configure: failed program was" >&5
23961 cat conftest.s >&5
23963 rm -f conftest.o conftest.s
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23967 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23968 if test $gcc_cv_as_max_skip_p2align = yes; then
23970 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23976 $as_echo_n "checking assembler for .literal16... " >&6; }
23977 if ${gcc_cv_as_literal16+:} false; then :
23978 $as_echo_n "(cached) " >&6
23979 else
23980 gcc_cv_as_literal16=no
23981 if test x$gcc_cv_as != x; then
23982 $as_echo '.literal16' > conftest.s
23983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985 (eval $ac_try) 2>&5
23986 ac_status=$?
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; }
23989 then
23990 gcc_cv_as_literal16=yes
23991 else
23992 echo "configure: failed program was" >&5
23993 cat conftest.s >&5
23995 rm -f conftest.o conftest.s
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23999 $as_echo "$gcc_cv_as_literal16" >&6; }
24000 if test $gcc_cv_as_literal16 = yes; then
24002 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24008 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24009 if ${gcc_cv_as_subsection_m1+:} false; then :
24010 $as_echo_n "(cached) " >&6
24011 else
24012 gcc_cv_as_subsection_m1=no
24013 if test x$gcc_cv_as != x; then
24014 $as_echo 'conftest_label1: .word 0
24015 .subsection -1
24016 conftest_label2: .word 0
24017 .previous' > conftest.s
24018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020 (eval $ac_try) 2>&5
24021 ac_status=$?
24022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023 test $ac_status = 0; }; }
24024 then
24025 if test x$gcc_cv_nm != x; then
24026 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24027 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24028 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24029 then :
24030 else gcc_cv_as_subsection_m1=yes
24032 rm -f conftest.nm1 conftest.nm2
24034 else
24035 echo "configure: failed program was" >&5
24036 cat conftest.s >&5
24038 rm -f conftest.o conftest.s
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24042 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24043 if test $gcc_cv_as_subsection_m1 = yes; then
24045 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24051 $as_echo_n "checking assembler for .weak... " >&6; }
24052 if ${gcc_cv_as_weak+:} false; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 gcc_cv_as_weak=no
24056 if test x$gcc_cv_as != x; then
24057 $as_echo ' .weak foobar' > conftest.s
24058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24064 then
24065 gcc_cv_as_weak=yes
24066 else
24067 echo "configure: failed program was" >&5
24068 cat conftest.s >&5
24070 rm -f conftest.o conftest.s
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24074 $as_echo "$gcc_cv_as_weak" >&6; }
24075 if test $gcc_cv_as_weak = yes; then
24077 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24083 $as_echo_n "checking assembler for .weakref... " >&6; }
24084 if ${gcc_cv_as_weakref+:} false; then :
24085 $as_echo_n "(cached) " >&6
24086 else
24087 gcc_cv_as_weakref=no
24088 if test x$gcc_cv_as != x; then
24089 $as_echo ' .weakref foobar, barfnot' > conftest.s
24090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }
24096 then
24097 gcc_cv_as_weakref=yes
24098 else
24099 echo "configure: failed program was" >&5
24100 cat conftest.s >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24106 $as_echo "$gcc_cv_as_weakref" >&6; }
24107 if test $gcc_cv_as_weakref = yes; then
24109 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24115 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24116 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24117 $as_echo_n "(cached) " >&6
24118 else
24119 gcc_cv_as_nsubspa_comdat=no
24120 if test x$gcc_cv_as != x; then
24121 $as_echo ' .SPACE $TEXT$
24122 .NSUBSPA $CODE$,COMDAT' > conftest.s
24123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128 test $ac_status = 0; }; }
24129 then
24130 gcc_cv_as_nsubspa_comdat=yes
24131 else
24132 echo "configure: failed program was" >&5
24133 cat conftest.s >&5
24135 rm -f conftest.o conftest.s
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24139 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24140 if test $gcc_cv_as_nsubspa_comdat = yes; then
24142 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24147 # .hidden needs to be supported in both the assembler and the linker,
24148 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24149 # This is irritatingly difficult to feature test for; we have to check the
24150 # date string after the version number. If we've got an in-tree
24151 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24152 # to be safe.
24153 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24154 case "${target}" in
24155 *-*-aix*)
24156 conftest_s=' .globl foobar,hidden'
24159 conftest_s=' .hidden foobar
24160 foobar:'
24162 esac
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24164 $as_echo_n "checking assembler for .hidden... " >&6; }
24165 if ${gcc_cv_as_hidden+:} false; then :
24166 $as_echo_n "(cached) " >&6
24167 else
24168 gcc_cv_as_hidden=no
24169 if test x$gcc_cv_as != x; then
24170 $as_echo "$conftest_s" > conftest.s
24171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24176 test $ac_status = 0; }; }
24177 then
24178 gcc_cv_as_hidden=yes
24179 else
24180 echo "configure: failed program was" >&5
24181 cat conftest.s >&5
24183 rm -f conftest.o conftest.s
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24187 $as_echo "$gcc_cv_as_hidden" >&6; }
24190 case "${target}" in
24191 *-*-darwin*)
24192 # Darwin as has some visibility support, though with a different syntax.
24193 gcc_cv_as_hidden=yes
24195 esac
24197 # gnu_indirect_function type is an extension proposed at
24198 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24199 # selection of function implementation
24200 # Check whether --enable-gnu-indirect-function was given.
24201 if test "${enable_gnu_indirect_function+set}" = set; then :
24202 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24203 yes | no) ;;
24204 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24205 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24206 esac
24207 else
24208 enable_gnu_indirect_function="$default_gnu_indirect_function"
24212 case "${target}" in
24213 riscv*-*-linux*)
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24215 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24216 cat > conftest.s <<EOF
24217 .text
24218 .type foo_resolver, @function
24219 foo_resolver:
24221 .size foo_resolver, .-foo_resolver
24223 .globl foo
24224 .type foo, %gnu_indirect_function
24225 .set foo, foo_resolver
24227 .globl bar
24228 .type bar, @function
24229 bar:
24230 call foo
24232 .size bar, .-bar
24234 if test x$gcc_cv_as != x \
24235 && test x$gcc_cv_ld != x \
24236 && test x$gcc_cv_readelf != x \
24237 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24238 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24239 && $gcc_cv_readelf --relocs --wide conftest \
24240 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24241 enable_gnu_indirect_function=yes
24243 rm -f conftest conftest.o conftest.s
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24245 $as_echo "$enable_gnu_indirect_function" >&6; }
24247 esac
24249 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24251 cat >>confdefs.h <<_ACEOF
24252 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24253 _ACEOF
24257 if test $in_tree_ld != yes ; then
24258 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24259 if echo "$ld_ver" | grep GNU > /dev/null; then
24260 if test x"$ld_is_gold" = xyes; then
24261 # GNU gold --version looks like this:
24263 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24265 # We extract the binutils version which is more familiar and specific
24266 # than the gold version.
24267 ld_vers=`echo $ld_ver | sed -n \
24268 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24269 else
24270 # GNU ld --version looks like this:
24272 # GNU ld (GNU Binutils) 2.21.51.20110225
24273 ld_vers=`echo $ld_ver | sed -n \
24274 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24276 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'`
24277 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24278 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24279 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24280 else
24281 case "${target}" in
24282 *-*-solaris2*)
24283 # Solaris 2 ld -V output looks like this for a regular version:
24285 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24287 # but test versions add stuff at the end:
24289 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24291 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24292 # numbers can be used in ld.so.1 feature checks even if a different
24293 # linker is configured.
24294 ld_ver=`$gcc_cv_ld -V 2>&1`
24295 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24296 ld_vers=`echo $ld_ver | sed -n \
24297 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24298 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24299 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24302 esac
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24307 $as_echo_n "checking linker for .hidden support... " >&6; }
24308 if ${gcc_cv_ld_hidden+:} false; then :
24309 $as_echo_n "(cached) " >&6
24310 else
24311 if test $in_tree_ld = yes ; then
24312 gcc_cv_ld_hidden=no
24313 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 \
24314 && test $in_tree_ld_is_elf = yes; then
24315 gcc_cv_ld_hidden=yes
24317 else
24318 gcc_cv_ld_hidden=yes
24319 if test x"$ld_is_gold" = xyes; then
24321 elif test x"$ld_is_mold" = xyes; then
24323 elif echo "$ld_ver" | grep GNU > /dev/null; then
24324 if test 0"$ld_date" -lt 20020404; then
24325 if test -n "$ld_date"; then
24326 # If there was date string, but was earlier than 2002-04-04, fail
24327 gcc_cv_ld_hidden=no
24328 elif test -z "$ld_vers"; then
24329 # If there was no date string nor ld version number, something is wrong
24330 gcc_cv_ld_hidden=no
24331 else
24332 test -z "$ld_vers_patch" && ld_vers_patch=0
24333 if test "$ld_vers_major" -lt 2; then
24334 gcc_cv_ld_hidden=no
24335 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24336 gcc_cv_ld_hidden="no"
24337 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24338 gcc_cv_ld_hidden=no
24342 else
24343 case "${target}" in
24344 *-*-aix[789]*)
24345 gcc_cv_ld_hidden=yes
24347 *-*-darwin*)
24348 # Darwin ld has some visibility support.
24349 gcc_cv_ld_hidden=yes
24351 hppa64*-*-hpux* | ia64*-*-hpux*)
24352 gcc_cv_ld_hidden=yes
24354 *-*-solaris2*)
24355 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24356 # .symbolic was only added in Solaris 9 12/02.
24357 gcc_cv_ld_hidden=yes
24360 gcc_cv_ld_hidden=no
24362 esac
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24367 $as_echo "$gcc_cv_ld_hidden" >&6; }
24368 libgcc_visibility=no
24371 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24372 libgcc_visibility=yes
24374 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24379 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24380 gcc_cv_ld_ro_rw_mix=unknown
24381 if test $in_tree_ld = yes ; then
24382 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 \
24383 && test $in_tree_ld_is_elf = yes; then
24384 gcc_cv_ld_ro_rw_mix=read-write
24386 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24387 echo '.section myfoosect, "a"' > conftest1.s
24388 echo '.section myfoosect, "aw"' > conftest2.s
24389 echo '.byte 1' >> conftest2.s
24390 echo '.section myfoosect, "a"' > conftest3.s
24391 echo '.byte 0' >> conftest3.s
24392 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24393 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24394 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
24395 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24396 conftest2.o conftest3.o > /dev/null 2>&1 \
24397 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
24398 conftest2.o conftest3.o > /dev/null 2>&1; then
24399 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24400 | sed -e '/myfoosect/!d' -e N`
24401 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24402 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24403 gcc_cv_ld_ro_rw_mix=read-only
24404 else
24405 gcc_cv_ld_ro_rw_mix=read-write
24410 rm -f conftest.* conftest[123].*
24412 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24414 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24418 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24420 # Check whether --enable-initfini-array was given.
24421 if test "${enable_initfini_array+set}" = set; then :
24422 enableval=$enable_initfini_array;
24423 else
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24426 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24427 if ${gcc_cv_initfini_array+:} false; then :
24428 $as_echo_n "(cached) " >&6
24429 else
24430 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24431 case "${target}" in
24432 ia64-*)
24433 if test "$cross_compiling" = yes; then :
24434 gcc_cv_initfini_array=no
24435 else
24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24439 #ifndef __ELF__
24440 #error Not an ELF OS
24441 #endif
24442 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24443 if it can be used. */
24444 static int x = -1;
24445 int main (void) { return x; }
24446 int foo (void) { x = 0; }
24447 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24449 _ACEOF
24450 if ac_fn_cxx_try_run "$LINENO"; then :
24451 gcc_cv_initfini_array=yes
24452 else
24453 gcc_cv_initfini_array=no
24455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24456 conftest.$ac_objext conftest.beam conftest.$ac_ext
24460 gcc_cv_initfini_array=no
24461 if test $in_tree_ld = yes ; then
24462 if test "$gcc_cv_gld_major_version" -eq 2 \
24463 -a "$gcc_cv_gld_minor_version" -ge 22 \
24464 -o "$gcc_cv_gld_major_version" -gt 2 \
24465 && test $in_tree_ld_is_elf = yes; then
24466 gcc_cv_initfini_array=yes
24468 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24469 case $target:$gas in
24470 *:yes)
24471 sh_flags='"a"'
24472 sh_type='%progbits'
24474 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24475 sh_flags='"a"'
24476 sh_type='@progbits'
24478 sparc*-*-solaris2*:no)
24479 sh_flags='#alloc'
24480 sh_type='#progbits'
24481 sh_quote='"'
24483 esac
24484 case "$target:$gnu_ld" in
24485 *:yes)
24486 cat > conftest.s <<EOF
24487 .section .dtors,$sh_flags,$sh_type
24488 .balign 4
24489 .byte 'A', 'A', 'A', 'A'
24490 .section .ctors,$sh_flags,$sh_type
24491 .balign 4
24492 .byte 'B', 'B', 'B', 'B'
24493 .section .fini_array.65530,$sh_flags,$sh_type
24494 .balign 4
24495 .byte 'C', 'C', 'C', 'C'
24496 .section .init_array.65530,$sh_flags,$sh_type
24497 .balign 4
24498 .byte 'D', 'D', 'D', 'D'
24499 .section .dtors.64528,$sh_flags,$sh_type
24500 .balign 4
24501 .byte 'E', 'E', 'E', 'E'
24502 .section .ctors.64528,$sh_flags,$sh_type
24503 .balign 4
24504 .byte 'F', 'F', 'F', 'F'
24505 .section .fini_array.01005,$sh_flags,$sh_type
24506 .balign 4
24507 .byte 'G', 'G', 'G', 'G'
24508 .section .init_array.01005,$sh_flags,$sh_type
24509 .balign 4
24510 .byte 'H', 'H', 'H', 'H'
24511 .text
24512 .globl _start
24513 _start:
24515 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24516 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24517 && $gcc_cv_objdump -s -j .init_array conftest \
24518 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24519 && $gcc_cv_objdump -s -j .fini_array conftest \
24520 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24521 gcc_cv_initfini_array=yes
24524 *-*-solaris2*:no)
24525 # When Solaris ld added constructor priority support, it was
24526 # decided to only handle .init_array.N/.fini_array.N since
24527 # there was no need for backwards compatibility with
24528 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24529 # sections with correct execution order resp. to
24530 # .init_array/.fini_array, while gld merges them into
24531 # .init_array/.fini_array.
24532 cat > conftest.s <<EOF
24533 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24534 .align 4
24535 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24536 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24537 .align 4
24538 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24539 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24540 .align 4
24541 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24542 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24543 .align 4
24544 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24545 .text
24546 .globl _start
24547 _start:
24549 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24550 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24551 && $gcc_cv_objdump -s -j .init_array conftest \
24552 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24553 && $gcc_cv_objdump -s -j .fini_array conftest \
24554 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24555 gcc_cv_initfini_array=yes
24558 esac
24559 rm -f conftest conftest.*
24561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562 /* end confdefs.h. */
24564 #ifndef __ELF__
24565 # error Not an ELF OS
24566 #endif
24567 #include <stdlib.h>
24568 #if defined __GLIBC_PREREQ
24569 # if __GLIBC_PREREQ (2, 4)
24570 # else
24571 # error GLIBC 2.4 required
24572 # endif
24573 #else
24574 # if defined __sun__ && defined __svr4__
24575 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24576 # else
24577 # error The C library not known to support .init_array/.fini_array
24578 # endif
24579 #endif
24581 _ACEOF
24582 if ac_fn_cxx_try_cpp "$LINENO"; then :
24584 else
24585 gcc_cv_initfini_array=no
24587 rm -f conftest.err conftest.i conftest.$ac_ext;;
24588 esac
24589 else
24590 case "${target}" in
24591 aarch64*-linux-gnu*)
24592 # AArch64 postdates glibc support for .init_array/.fini_array,
24593 # so we don't need the preprocessor test above.
24594 gcc_cv_initfini_array=yes
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24599 $as_echo_n "checking cross compile... guessing... " >&6; }
24600 gcc_cv_initfini_array=no
24602 esac
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24606 $as_echo "$gcc_cv_initfini_array" >&6; }
24607 enable_initfini_array=$gcc_cv_initfini_array
24612 cat >>confdefs.h <<_ACEOF
24613 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24614 _ACEOF
24618 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24619 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24620 # these directives, even when they appear to accept them.
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24622 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24623 if ${gcc_cv_as_leb128+:} false; then :
24624 $as_echo_n "(cached) " >&6
24625 else
24626 gcc_cv_as_leb128=no
24627 if test x$gcc_cv_as != x; then
24628 $as_echo ' .data
24629 .uleb128 L2 - L1
24631 .uleb128 1280
24632 .sleb128 -1010
24634 .uleb128 0x8000000000000000
24635 ' > conftest.s
24636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24638 (eval $ac_try) 2>&5
24639 ac_status=$?
24640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24641 test $ac_status = 0; }; }
24642 then
24644 if test "x$gcc_cv_objdump" != x; then
24645 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24646 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24647 gcc_cv_as_leb128=yes
24649 elif test "x$gcc_cv_otool" != x; then
24650 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24651 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24652 gcc_cv_as_leb128=yes
24654 else
24655 # play safe, assume the assembler is broken.
24659 else
24660 echo "configure: failed program was" >&5
24661 cat conftest.s >&5
24663 rm -f conftest.o conftest.s
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24667 $as_echo "$gcc_cv_as_leb128" >&6; }
24668 if test $gcc_cv_as_leb128 = yes; then
24670 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24673 if test $gcc_cv_as_leb128 != yes; then
24675 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24679 # Determine if an .eh_frame section is read-only.
24680 gcc_fn_eh_frame_ro () {
24681 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24682 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24683 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24686 # Check if we have assembler support for unwind directives.
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24688 $as_echo_n "checking assembler for cfi directives... " >&6; }
24689 if ${gcc_cv_as_cfi_directive+:} false; then :
24690 $as_echo_n "(cached) " >&6
24691 else
24692 gcc_cv_as_cfi_directive=no
24693 if test x$gcc_cv_as != x; then
24694 $as_echo ' .text
24695 .cfi_startproc
24696 .cfi_offset 0, 0
24697 .cfi_same_value 1
24698 .cfi_def_cfa 1, 2
24699 .cfi_escape 1, 2, 3, 4, 5
24700 .cfi_endproc' > conftest.s
24701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24703 (eval $ac_try) 2>&5
24704 ac_status=$?
24705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24706 test $ac_status = 0; }; }
24707 then
24708 case "$target" in
24709 *-*-solaris*)
24710 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24711 # read-only and read-write sections, we need to make sure that the
24712 # assembler used emits read-write .eh_frame sections.
24713 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24714 gcc_cv_as_cfi_directive=yes
24715 elif test "x$gcc_cv_objdump" = x; then
24716 # No objdump, err on the side of caution.
24717 gcc_cv_as_cfi_directive=no
24718 else
24719 if test x$gas = xyes; then
24720 as_32_opt="--32"
24721 as_64_opt="--64"
24722 else
24723 as_32_opt="-m32"
24724 as_64_opt="-m64"
24726 case "$target" in
24727 sparc*-*-solaris2.*)
24728 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24729 if gcc_fn_eh_frame_ro $as_32_opt \
24730 || gcc_fn_eh_frame_ro $as_64_opt; then
24731 gcc_cv_as_cfi_directive=no
24732 else
24733 gcc_cv_as_cfi_directive=yes
24736 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24737 # On Solaris/x86, make sure that GCC and assembler agree on using
24738 # read-only .eh_frame sections for 64-bit.
24739 if gcc_fn_eh_frame_ro $as_32_opt; then
24740 gcc_cv_as_cfi_directive=no
24741 elif gcc_fn_eh_frame_ro $as_64_opt; then
24742 gcc_cv_as_cfi_directive=yes
24743 else
24744 gcc_cv_as_cfi_directive=no
24747 esac
24750 *-*-*)
24751 gcc_cv_as_cfi_directive=yes
24753 esac
24754 else
24755 echo "configure: failed program was" >&5
24756 cat conftest.s >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24762 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24765 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24767 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24768 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24769 $as_echo_n "(cached) " >&6
24770 else
24771 gcc_cv_as_cfi_advance_working=no
24772 if test x$gcc_cv_as != x; then
24773 $as_echo ' .text
24774 .cfi_startproc
24775 .cfi_adjust_cfa_offset 64
24776 .skip 75040, 0
24777 .cfi_adjust_cfa_offset 128
24778 .cfi_endproc' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24787 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24788 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24789 gcc_cv_as_cfi_advance_working=yes
24792 else
24793 echo "configure: failed program was" >&5
24794 cat conftest.s >&5
24796 rm -f conftest.o conftest.s
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24800 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24803 else
24804 # no objdump, err on the side of caution
24805 gcc_cv_as_cfi_advance_working=no
24809 cat >>confdefs.h <<_ACEOF
24810 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24811 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24812 _ACEOF
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24817 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24818 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24819 $as_echo_n "(cached) " >&6
24820 else
24821 gcc_cv_as_cfi_personality_directive=no
24822 if test x$gcc_cv_as != x; then
24823 $as_echo ' .text
24824 .cfi_startproc
24825 .cfi_personality 0, symbol
24826 .cfi_endproc' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 gcc_cv_as_cfi_personality_directive=yes
24835 else
24836 echo "configure: failed program was" >&5
24837 cat conftest.s >&5
24839 rm -f conftest.o conftest.s
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24843 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24847 cat >>confdefs.h <<_ACEOF
24848 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24849 _ACEOF
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24853 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24854 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24855 $as_echo_n "(cached) " >&6
24856 else
24857 gcc_cv_as_cfi_sections_directive=no
24858 if test x$gcc_cv_as != x; then
24859 $as_echo ' .text
24860 .cfi_sections .debug_frame, .eh_frame
24861 .cfi_startproc
24862 .cfi_endproc' > conftest.s
24863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24868 test $ac_status = 0; }; }
24869 then
24870 case $target_os in
24871 win32 | pe | cygwin* | mingw32*)
24872 # Need to check that we generated the correct relocation for the
24873 # .debug_frame section. This was fixed for binutils 2.21.
24874 gcc_cv_as_cfi_sections_directive=no
24875 if test "x$gcc_cv_objdump" != x; then
24876 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24877 grep -i secrel > /dev/null; then
24878 gcc_cv_as_cfi_sections_directive=yes
24883 gcc_cv_as_cfi_sections_directive=yes
24885 esac
24886 else
24887 echo "configure: failed program was" >&5
24888 cat conftest.s >&5
24890 rm -f conftest.o conftest.s
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24894 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24899 cat >>confdefs.h <<_ACEOF
24900 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24901 _ACEOF
24904 # GAS versions up to and including 2.11.0 may mis-optimize
24905 # .eh_frame data.
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24907 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24908 if ${gcc_cv_as_eh_frame+:} false; then :
24909 $as_echo_n "(cached) " >&6
24910 else
24911 gcc_cv_as_eh_frame=no
24912 if test x$gcc_cv_as != x; then
24913 $as_echo ' .text
24914 .LFB1:
24915 .4byte 0
24916 .L1:
24917 .4byte 0
24918 .LFE1:
24919 .section .eh_frame,"aw",@progbits
24920 __FRAME_BEGIN__:
24921 .4byte .LECIE1-.LSCIE1
24922 .LSCIE1:
24923 .4byte 0x0
24924 .byte 0x1
24925 .ascii "z\0"
24926 .byte 0x1
24927 .byte 0x78
24928 .byte 0x1a
24929 .byte 0x0
24930 .byte 0x4
24931 .4byte 1
24932 .p2align 1
24933 .LECIE1:
24934 .LSFDE1:
24935 .4byte .LEFDE1-.LASFDE1
24936 .LASFDE1:
24937 .4byte .LASFDE1-__FRAME_BEGIN__
24938 .4byte .LFB1
24939 .4byte .LFE1-.LFB1
24940 .byte 0x4
24941 .4byte .LFE1-.LFB1
24942 .byte 0x4
24943 .4byte .L1-.LFB1
24944 .LEFDE1:' > conftest.s
24945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24947 (eval $ac_try) 2>&5
24948 ac_status=$?
24949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24950 test $ac_status = 0; }; }
24951 then
24952 cat > conftest.lit <<EOF
24953 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24954 0010 01000000 12000000 18000000 00000000 ................
24955 0020 08000000 04080000 0044 .........D
24957 cat > conftest.big <<EOF
24958 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24959 0010 00000001 00000012 00000018 00000000 ................
24960 0020 00000008 04000000 0844 .........D
24962 # If the assembler didn't choke, and we can objdump,
24963 # and we got the correct data, then succeed.
24964 # The text in the here-document typically retains its unix-style line
24965 # endings, while the output of objdump will use host line endings.
24966 # Therefore, use diff -b for the comparisons.
24967 if test x$gcc_cv_objdump != x \
24968 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24969 | tail -3 > conftest.got \
24970 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24971 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24972 then
24973 gcc_cv_as_eh_frame=yes
24974 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }; then
24980 gcc_cv_as_eh_frame=buggy
24981 else
24982 # Uh oh, what do we do now?
24983 gcc_cv_as_eh_frame=no
24985 else
24986 echo "configure: failed program was" >&5
24987 cat conftest.s >&5
24989 rm -f conftest.o conftest.s
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24993 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24997 if test $gcc_cv_as_eh_frame = buggy; then
24999 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25003 # Test if the assembler supports the section flag 'e' or #exclude for
25004 # specifying an excluded section.
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25006 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25007 if ${gcc_cv_as_section_exclude_e+:} false; then :
25008 $as_echo_n "(cached) " >&6
25009 else
25010 gcc_cv_as_section_exclude_e=no
25011 if test x$gcc_cv_as != x; then
25012 $as_echo '.section foo1,"e"
25013 .byte 0,0,0,0' > conftest.s
25014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25016 (eval $ac_try) 2>&5
25017 ac_status=$?
25018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019 test $ac_status = 0; }; }
25020 then
25021 gcc_cv_as_section_exclude_e=yes
25022 else
25023 echo "configure: failed program was" >&5
25024 cat conftest.s >&5
25026 rm -f conftest.o conftest.s
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25030 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25033 if test $gcc_cv_as_section_exclude_e = no; then
25034 case "${target}" in
25035 # Solaris as uses #exclude instead.
25036 *-*-solaris2*)
25037 case "${target}" in
25038 sparc*-*-solaris2*)
25039 conftest_s='.section "foo1", #exclude'
25041 i?86-*-solaris2* | x86_64-*-solaris2*)
25042 conftest_s='.section foo1, #exclude'
25044 esac
25046 esac
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25048 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25049 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_section_exclude_hash=no
25053 if test x$gcc_cv_as != x; then
25054 $as_echo "$conftest_s
25055 .byte 0,0,0,0" > conftest.s
25056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }
25062 then
25063 gcc_cv_as_section_exclude_hash=yes
25064 else
25065 echo "configure: failed program was" >&5
25066 cat conftest.s >&5
25068 rm -f conftest.o conftest.s
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25072 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25077 cat >>confdefs.h <<_ACEOF
25078 #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`
25079 _ACEOF
25082 # Test if the assembler supports the section flag 'R' for specifying
25083 # section with SHF_GNU_RETAIN.
25084 case "${target}" in
25085 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25086 # assembler supports the section flag 'R', it doesn't mean that
25087 # Solairs ld supports it.
25088 *-*-solaris2*)
25089 gcc_cv_as_shf_gnu_retain=no
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25093 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25094 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25095 $as_echo_n "(cached) " >&6
25096 else
25097 gcc_cv_as_shf_gnu_retain=no
25098 if test x$gcc_cv_as != x; then
25099 $as_echo '.section .foo,"awR",%progbits
25100 .byte 0' > conftest.s
25101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25107 then
25108 gcc_cv_as_shf_gnu_retain=yes
25109 else
25110 echo "configure: failed program was" >&5
25111 cat conftest.s >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25117 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25121 esac
25123 cat >>confdefs.h <<_ACEOF
25124 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25125 _ACEOF
25128 # Test if the assembler supports the section flag 'o' for specifying
25129 # section with link-order.
25130 case "${target}" in
25131 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25132 # assembler supports the section flag 'o', it doesn't mean that
25133 # Solairs ld supports it.
25134 *-*-solaris2*)
25135 gcc_cv_as_section_link_order=no
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25139 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25140 if ${gcc_cv_as_section_link_order+:} false; then :
25141 $as_echo_n "(cached) " >&6
25142 else
25143 gcc_cv_as_section_link_order=no
25144 if test x$gcc_cv_as != x; then
25145 $as_echo '.section .foo,"a"
25146 .byte 0
25147 .section __patchable_function_entries,"awo",%progbits,.foo
25148 .byte 0' > conftest.s
25149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25151 (eval $ac_try) 2>&5
25152 ac_status=$?
25153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25154 test $ac_status = 0; }; }
25155 then
25156 gcc_cv_as_section_link_order=yes
25157 else
25158 echo "configure: failed program was" >&5
25159 cat conftest.s >&5
25161 rm -f conftest.o conftest.s
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25165 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25169 esac
25171 cat >>confdefs.h <<_ACEOF
25172 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25173 _ACEOF
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25177 $as_echo_n "checking assembler for section merging support... " >&6; }
25178 if ${gcc_cv_as_shf_merge+:} false; then :
25179 $as_echo_n "(cached) " >&6
25180 else
25181 gcc_cv_as_shf_merge=no
25182 if test x$gcc_cv_as != x; then
25183 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25189 test $ac_status = 0; }; }
25190 then
25191 gcc_cv_as_shf_merge=yes
25192 else
25193 echo "configure: failed program was" >&5
25194 cat conftest.s >&5
25196 rm -f conftest.o conftest.s
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25200 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25203 if test $gcc_cv_as_shf_merge = no; then
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25205 $as_echo_n "checking assembler for section merging support... " >&6; }
25206 if ${gcc_cv_as_shf_merge+:} false; then :
25207 $as_echo_n "(cached) " >&6
25208 else
25209 gcc_cv_as_shf_merge=no
25210 if test x$gcc_cv_as != x; then
25211 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25215 ac_status=$?
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25218 then
25219 gcc_cv_as_shf_merge=yes
25220 else
25221 echo "configure: failed program was" >&5
25222 cat conftest.s >&5
25224 rm -f conftest.o conftest.s
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25228 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25233 cat >>confdefs.h <<_ACEOF
25234 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25235 _ACEOF
25238 gcc_cv_ld_aligned_shf_merge=yes
25239 case "$target" in
25240 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25241 # alignment > 1.
25242 sparc*-*-solaris2.11*)
25243 if test x"$gnu_ld" = xno \
25244 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25245 gcc_cv_ld_aligned_shf_merge=no
25248 esac
25250 cat >>confdefs.h <<_ACEOF
25251 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25252 _ACEOF
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25256 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25257 if ${gcc_cv_as_comdat_group+:} false; then :
25258 $as_echo_n "(cached) " >&6
25259 else
25260 gcc_cv_as_comdat_group=no
25261 if test x$gcc_cv_as != x; then
25262 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25265 (eval $ac_try) 2>&5
25266 ac_status=$?
25267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25268 test $ac_status = 0; }; }
25269 then
25270 gcc_cv_as_comdat_group=yes
25271 else
25272 echo "configure: failed program was" >&5
25273 cat conftest.s >&5
25275 rm -f conftest.o conftest.s
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25279 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25282 if test $gcc_cv_as_comdat_group = yes; then
25283 gcc_cv_as_comdat_group_percent=no
25284 gcc_cv_as_comdat_group_group=no
25285 else
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25287 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25288 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 gcc_cv_as_comdat_group_percent=no
25292 if test x$gcc_cv_as != x; then
25293 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25299 test $ac_status = 0; }; }
25300 then
25301 gcc_cv_as_comdat_group_percent=yes
25302 else
25303 echo "configure: failed program was" >&5
25304 cat conftest.s >&5
25306 rm -f conftest.o conftest.s
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25310 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25313 if test $gcc_cv_as_comdat_group_percent = yes; then
25314 gcc_cv_as_comdat_group_group=no
25315 else
25316 case "${target}" in
25317 # Sun as uses a completely different syntax.
25318 *-*-solaris2*)
25319 case "${target}" in
25320 sparc*-*-solaris2*)
25321 conftest_s='
25322 .group foo,".text%foo",#comdat
25323 .section ".text%foo", #alloc,#execinstr,#progbits
25324 .globl foo
25325 foo:
25328 i?86-*-solaris2* | x86_64-*-solaris2*)
25329 conftest_s='
25330 .group foo,.text%foo,#comdat
25331 .section .text%foo, "ax", @progbits
25332 .globl foo
25333 foo:
25336 esac
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25338 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25339 if ${gcc_cv_as_comdat_group_group+:} false; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 gcc_cv_as_comdat_group_group=no
25343 if test x$gcc_cv_as != x; then
25344 $as_echo "$conftest_s" > conftest.s
25345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25351 then
25352 gcc_cv_as_comdat_group_group=yes
25353 else
25354 echo "configure: failed program was" >&5
25355 cat conftest.s >&5
25357 rm -f conftest.o conftest.s
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25361 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25365 esac
25366 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25367 gcc_cv_as_comdat_group_group=no
25371 if test x"$ld_is_gold" = xyes; then
25372 comdat_group=yes
25373 elif test x"$ld_is_mold" = xyes; then
25374 comdat_group=yes
25375 elif test $in_tree_ld = yes ; then
25376 comdat_group=no
25377 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 \
25378 && test $in_tree_ld_is_elf = yes; then
25379 comdat_group=yes
25381 elif echo "$ld_ver" | grep GNU > /dev/null; then
25382 comdat_group=yes
25383 if test 0"$ld_date" -lt 20050308; then
25384 if test -n "$ld_date"; then
25385 # If there was date string, but was earlier than 2005-03-08, fail
25386 comdat_group=no
25387 elif test "$ld_vers_major" -lt 2; then
25388 comdat_group=no
25389 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25390 comdat_group=no
25393 else
25394 case "${target}" in
25395 *-*-solaris2.1[1-9]*)
25396 comdat_group=no
25397 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25398 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25399 # version 1.688.
25401 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25402 # least ld version 1.2267.
25403 if test "$ld_vers_major" -gt 1; then
25404 comdat_group=yes
25405 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25406 comdat_group=yes
25407 elif test "$ld_vers_minor" -ge 2267; then
25408 comdat_group=yes
25412 # Assume linkers other than GNU ld don't support COMDAT group.
25413 comdat_group=no
25415 esac
25417 # Allow overriding the automatic COMDAT group tests above.
25418 # Check whether --enable-comdat was given.
25419 if test "${enable_comdat+set}" = set; then :
25420 enableval=$enable_comdat; comdat_group="$enable_comdat"
25423 if test $comdat_group = no; then
25424 gcc_cv_as_comdat_group=no
25425 gcc_cv_as_comdat_group_percent=no
25426 gcc_cv_as_comdat_group_group=no
25429 cat >>confdefs.h <<_ACEOF
25430 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25431 || test $gcc_cv_as_comdat_group_percent = yes \
25432 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25433 _ACEOF
25436 # Restrict this test to Solaris/x86: other targets define this statically.
25437 case "${target}" in
25438 i?86-*-solaris2* | x86_64-*-solaris2*)
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25440 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25441 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25442 hidden_linkonce=yes
25443 else
25444 case "${target}" in
25445 # Full support for hidden thunks in linkonce sections only appeared in
25446 # Solaris 11/OpenSolaris.
25447 *-*-solaris2.1[1-9]*)
25448 hidden_linkonce=yes
25451 hidden_linkonce=no
25453 esac
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25456 $as_echo "$hidden_linkonce" >&6; }
25458 cat >>confdefs.h <<_ACEOF
25459 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25460 _ACEOF
25463 esac
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25466 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25467 if ${gcc_cv_as_is_stmt+:} false; then :
25468 $as_echo_n "(cached) " >&6
25469 else
25470 gcc_cv_as_is_stmt=no
25471 if test x$gcc_cv_as != x; then
25472 $as_echo ' .text
25473 .file 1 "conf.c"
25474 .loc 1 1 0 is_stmt 1' > conftest.s
25475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }; }
25481 then
25482 gcc_cv_as_is_stmt=yes
25483 else
25484 echo "configure: failed program was" >&5
25485 cat conftest.s >&5
25487 rm -f conftest.o conftest.s
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25491 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25492 if test $gcc_cv_as_is_stmt = yes; then
25494 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25500 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25501 if ${gcc_cv_as_discriminator+:} false; then :
25502 $as_echo_n "(cached) " >&6
25503 else
25504 gcc_cv_as_discriminator=no
25505 if test x$gcc_cv_as != x; then
25506 $as_echo ' .text
25507 .file 1 "conf.c"
25508 .loc 1 1 0 discriminator 1' > conftest.s
25509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25515 then
25516 gcc_cv_as_discriminator=yes
25517 else
25518 echo "configure: failed program was" >&5
25519 cat conftest.s >&5
25521 rm -f conftest.o conftest.s
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25525 $as_echo "$gcc_cv_as_discriminator" >&6; }
25526 if test $gcc_cv_as_discriminator = yes; then
25528 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25533 # Catch the newlib flag of the same name so we can gate GCC features on it.
25534 # Check whether --enable-newlib-nano-formatted-io was given.
25535 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25536 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25537 yes|no)
25540 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25542 esac
25546 # Thread-local storage - the check is heavily parameterized.
25547 conftest_s=
25548 tls_as_opt=
25549 case "$target" in
25550 alpha*-*-*)
25551 conftest_s='
25552 .section ".tdata","awT",@progbits
25553 foo: .long 25
25554 .text
25555 ldq $27,__tls_get_addr($29) !literal!1
25556 lda $16,foo($29) !tlsgd!1
25557 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25558 ldq $27,__tls_get_addr($29) !literal!2
25559 lda $16,foo($29) !tlsldm!2
25560 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25561 ldq $1,foo($29) !gotdtprel
25562 ldah $2,foo($29) !dtprelhi
25563 lda $3,foo($2) !dtprello
25564 lda $4,foo($29) !dtprel
25565 ldq $1,foo($29) !gottprel
25566 ldah $2,foo($29) !tprelhi
25567 lda $3,foo($2) !tprello
25568 lda $4,foo($29) !tprel'
25569 tls_as_opt=--fatal-warnings
25571 arc*-*-*)
25572 conftest_s='
25573 add_s r0,r0, @foo@tpoff'
25575 cris-*-*|crisv32-*-*)
25576 conftest_s='
25577 .section ".tdata","awT",@progbits
25578 x: .long 25
25579 .text
25580 move.d x:IE,$r10
25581 nop'
25582 tls_as_opt=--fatal-warnings
25584 frv*-*-*)
25585 conftest_s='
25586 .section ".tdata","awT",@progbits
25587 x: .long 25
25588 .text
25589 call #gettlsoff(x)'
25591 hppa*-*-linux*)
25592 conftest_s='
25593 t1: .reg %r20
25594 t2: .reg %r21
25595 gp: .reg %r19
25596 .section ".tdata","awT",@progbits
25597 foo: .long 25
25598 .text
25599 .align 4
25600 addil LT%foo-$tls_gdidx$,gp
25601 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25602 b __tls_get_addr
25604 addil LT%foo-$tls_ldidx$,gp
25605 b __tls_get_addr
25606 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25607 addil LR%foo-$tls_dtpoff$,%ret0
25608 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25609 mfctl %cr27,%t1
25610 addil LT%foo-$tls_ieoff$,gp
25611 ldw RT%foo-$tls_ieoff$(%r1),%t2
25612 add %t1,%t2,%t3
25613 mfctl %cr27,%t1
25614 addil LR%foo-$tls_leoff$,%t1
25615 ldo RR%foo-$tls_leoff$(%r1),%t2'
25616 tls_as_opt=--fatal-warnings
25618 arm*-*-*)
25619 conftest_s='
25620 .section ".tdata","awT",%progbits
25621 foo: .long 25
25622 .text
25623 .word foo(gottpoff)
25624 .word foo(tpoff)
25625 .word foo(tlsgd)
25626 .word foo(tlsldm)
25627 .word foo(tlsldo)'
25629 i[34567]86-*-* | x86_64-*-*)
25630 case "$target" in
25631 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25632 on_solaris=yes
25635 on_solaris=no
25637 esac
25638 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25639 conftest_s='
25640 .section .tdata,"awt",@progbits'
25641 tls_section_flag=t
25643 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25645 else
25646 conftest_s='
25647 .section ".tdata","awT",@progbits'
25648 tls_section_flag=T
25649 tls_as_opt="--fatal-warnings"
25651 case "$target" in
25652 i[34567]86-*-*)
25653 if test x$on_solaris = xyes; then
25654 case $gas_flag in
25655 yes) tls_as_opt="$tls_as_opt --32" ;;
25656 esac
25658 conftest_s="$conftest_s
25659 foo: .long 25
25660 .text
25661 movl %gs:0, %eax
25662 leal foo@tlsgd(,%ebx,1), %eax
25663 leal foo@tlsldm(%ebx), %eax
25664 leal foo@dtpoff(%eax), %edx
25665 movl foo@gottpoff(%ebx), %eax
25666 subl foo@gottpoff(%ebx), %eax
25667 addl foo@gotntpoff(%ebx), %eax
25668 movl foo@indntpoff, %eax
25669 movl \$foo@tpoff, %eax
25670 subl \$foo@tpoff, %eax
25671 leal foo@ntpoff(%ecx), %eax"
25673 x86_64-*-*)
25674 if test x$on_solaris = xyes; then
25675 case $gas_flag in
25676 yes) tls_as_opt="$tls_as_opt --64" ;;
25677 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25678 esac
25680 conftest_s="$conftest_s
25681 foo: .long 25
25682 .text
25683 movq %fs:0, %rax
25684 leaq foo@tlsgd(%rip), %rdi
25685 leaq foo@tlsld(%rip), %rdi
25686 leaq foo@dtpoff(%rax), %rdx
25687 movq foo@gottpoff(%rip), %rax
25688 movq \$foo@tpoff, %rax"
25690 esac
25692 ia64-*-*)
25693 conftest_s='
25694 .section ".tdata","awT",@progbits
25695 foo: data8 25
25696 .text
25697 addl r16 = @ltoff(@dtpmod(foo#)), gp
25698 addl r17 = @ltoff(@dtprel(foo#)), gp
25699 addl r18 = @ltoff(@tprel(foo#)), gp
25700 addl r19 = @dtprel(foo#), gp
25701 adds r21 = @dtprel(foo#), r13
25702 movl r23 = @dtprel(foo#)
25703 addl r20 = @tprel(foo#), gp
25704 adds r22 = @tprel(foo#), r13
25705 movl r24 = @tprel(foo#)'
25706 tls_as_opt=--fatal-warnings
25708 loongarch*-*-*)
25709 conftest_s='
25710 .section .tdata,"awT",@progbits
25711 x: .word 2
25712 .text
25713 la.tls.gd $a0,x
25714 bl __tls_get_addr'
25715 tls_first_major=0
25716 tls_first_minor=0
25717 tls_as_opt='--fatal-warnings'
25719 microblaze*-*-*)
25720 conftest_s='
25721 .section .tdata,"awT",@progbits
25723 .word 2
25724 .text
25725 addik r5,r20,x@TLSGD
25726 addik r5,r20,x@TLSLDM'
25727 tls_as_opt='--fatal-warnings'
25729 mips*-*-*)
25730 conftest_s='
25731 .section .tdata,"awT",@progbits
25733 .word 2
25734 .text
25735 addiu $4, $28, %tlsgd(x)
25736 addiu $4, $28, %tlsldm(x)
25737 lui $4, %dtprel_hi(x)
25738 addiu $4, $4, %dtprel_lo(x)
25739 lw $4, %gottprel(x)($28)
25740 lui $4, %tprel_hi(x)
25741 addiu $4, $4, %tprel_lo(x)'
25742 tls_as_opt='-32 --fatal-warnings'
25744 m68k-*-*)
25745 conftest_s='
25746 .section .tdata,"awT",@progbits
25748 .word 2
25749 .text
25750 foo:
25751 move.l x@TLSGD(%a5),%a0
25752 move.l x@TLSLDM(%a5),%a0
25753 move.l x@TLSLDO(%a5),%a0
25754 move.l x@TLSIE(%a5),%a0
25755 move.l x@TLSLE(%a5),%a0'
25756 tls_as_opt='--fatal-warnings'
25758 nios2-*-*)
25759 conftest_s='
25760 .section ".tdata","awT",@progbits'
25761 tls_as_opt="--fatal-warnings"
25763 aarch64*-*-*)
25764 conftest_s='
25765 .section ".tdata","awT",%progbits
25766 foo: .long 25
25767 .text
25768 adrp x0, :tlsgd:x
25769 add x0, x0, #:tlsgd_lo12:x
25770 bl __tls_get_addr
25771 nop'
25772 tls_as_opt='--fatal-warnings'
25774 or1k*-*-*)
25775 conftest_s='
25776 .section ".tdata","awT",@progbits
25777 foo: .long 25
25778 .text
25779 l.movhi r3, tpoffha(foo)
25780 l.add r3, r3, r10
25781 l.lwz r4, tpofflo(foo)(r3)'
25782 tls_as_opt=--fatal-warnings
25784 powerpc-ibm-aix*)
25785 conftest_s='
25786 .extern __get_tpointer
25787 .toc
25788 LC..1:
25789 .tc a[TC],a[TL]@le
25790 .csect .text[PR]
25791 .tlstest:
25792 lwz 9,LC..1(2)
25793 bla __get_tpointer
25794 lwzx 3,9,3
25795 .globl a
25796 .csect a[TL],4
25798 .space 4'
25800 powerpc64*-*-*)
25801 conftest_s='
25802 .section ".tdata","awT",@progbits
25803 .align 3
25804 ld0: .space 8
25805 ld1: .space 8
25806 x1: .space 8
25807 x2: .space 8
25808 x3: .space 8
25809 .text
25810 addi 3,2,ld0@got@tlsgd
25811 bl .__tls_get_addr
25813 addi 3,2,ld1@toc
25814 bl .__tls_get_addr
25816 addi 3,2,x1@got@tlsld
25817 bl .__tls_get_addr
25819 addi 9,3,x1@dtprel
25820 bl .__tls_get_addr
25822 addis 9,3,x2@dtprel@ha
25823 addi 9,9,x2@dtprel@l
25824 bl .__tls_get_addr
25826 ld 9,x3@got@dtprel(2)
25827 add 9,9,3
25828 bl .__tls_get_addr
25829 nop'
25830 tls_as_opt="-a64 --fatal-warnings"
25832 powerpc*-*-*)
25833 conftest_s='
25834 .section ".tdata","awT",@progbits
25835 .align 2
25836 ld0: .space 4
25837 ld1: .space 4
25838 x1: .space 4
25839 x2: .space 4
25840 x3: .space 4
25841 .text
25842 addi 3,31,ld0@got@tlsgd
25843 bl __tls_get_addr
25844 addi 3,31,x1@got@tlsld
25845 bl __tls_get_addr
25846 addi 9,3,x1@dtprel
25847 addis 9,3,x2@dtprel@ha
25848 addi 9,9,x2@dtprel@l
25849 lwz 9,x3@got@tprel(31)
25850 add 9,9,x@tls
25851 addi 9,2,x1@tprel
25852 addis 9,2,x2@tprel@ha
25853 addi 9,9,x2@tprel@l'
25854 tls_as_opt="-a32 --fatal-warnings"
25856 riscv*-*-*)
25857 conftest_s='
25858 .section .tdata,"awT",@progbits
25859 x: .word 2
25860 .text
25861 la.tls.gd a0,x
25862 call __tls_get_addr'
25863 tls_as_opt='--fatal-warnings'
25865 s390-*-*)
25866 conftest_s='
25867 .section ".tdata","awT",@progbits
25868 foo: .long 25
25869 .text
25870 .long foo@TLSGD
25871 .long foo@TLSLDM
25872 .long foo@DTPOFF
25873 .long foo@NTPOFF
25874 .long foo@GOTNTPOFF
25875 .long foo@INDNTPOFF
25876 l %r1,foo@GOTNTPOFF(%r12)
25877 l %r1,0(%r1):tls_load:foo
25878 bas %r14,0(%r1,%r13):tls_gdcall:foo
25879 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25880 tls_as_opt="-m31 --fatal-warnings"
25882 s390x-*-*)
25883 conftest_s='
25884 .section ".tdata","awT",@progbits
25885 foo: .long 25
25886 .text
25887 .quad foo@TLSGD
25888 .quad foo@TLSLDM
25889 .quad foo@DTPOFF
25890 .quad foo@NTPOFF
25891 .quad foo@GOTNTPOFF
25892 lg %r1,foo@GOTNTPOFF(%r12)
25893 larl %r1,foo@INDNTPOFF
25894 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25895 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25896 tls_as_opt="-m64 -Aesame --fatal-warnings"
25898 sh-*-* | sh[123456789lbe]*-*-*)
25899 conftest_s='
25900 .section ".tdata","awT",@progbits
25901 foo: .long 25
25902 .text
25903 .long foo@TLSGD
25904 .long foo@TLSLDM
25905 .long foo@DTPOFF
25906 .long foo@GOTTPOFF
25907 .long foo@TPOFF'
25908 tls_as_opt=--fatal-warnings
25910 sparc*-*-*)
25911 case "$target" in
25912 sparc*-sun-solaris2.*)
25913 on_solaris=yes
25916 on_solaris=no
25918 esac
25919 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25920 conftest_s='
25921 .section ".tdata",#alloc,#write,#tls'
25922 else
25923 conftest_s='
25924 .section ".tdata","awT",@progbits'
25925 tls_as_opt="-32 --fatal-warnings"
25927 conftest_s="$conftest_s
25928 foo: .long 25
25929 .text
25930 sethi %tgd_hi22(foo), %o0
25931 add %o0, %tgd_lo10(foo), %o1
25932 add %l7, %o1, %o0, %tgd_add(foo)
25933 call __tls_get_addr, %tgd_call(foo)
25934 sethi %tldm_hi22(foo), %l1
25935 add %l1, %tldm_lo10(foo), %l2
25936 add %l7, %l2, %o0, %tldm_add(foo)
25937 call __tls_get_addr, %tldm_call(foo)
25938 sethi %tldo_hix22(foo), %l3
25939 xor %l3, %tldo_lox10(foo), %l4
25940 add %o0, %l4, %l5, %tldo_add(foo)
25941 sethi %tie_hi22(foo), %o3
25942 add %o3, %tie_lo10(foo), %o3
25943 ld [%l7 + %o3], %o2, %tie_ld(foo)
25944 add %g7, %o2, %o4, %tie_add(foo)
25945 sethi %tle_hix22(foo), %l1
25946 xor %l1, %tle_lox10(foo), %o5
25947 ld [%g7 + %o5], %o1"
25949 xtensa*-*-*)
25950 conftest_s='
25951 .section ".tdata","awT",@progbits
25952 foo: .long 25
25953 .text
25954 movi a8, foo@TLSFUNC
25955 movi a10, foo@TLSARG
25956 callx8.tls a8, foo@TLSCALL'
25958 esac
25959 set_have_as_tls=no
25960 if test "x$enable_tls" = xno ; then
25961 : # TLS explicitly disabled.
25962 elif test "x$enable_tls" = xyes ; then
25963 set_have_as_tls=yes # TLS explicitly enabled.
25964 elif test -z "$conftest_s"; then
25965 : # If we don't have a check, assume no support.
25966 else
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25968 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25969 if ${gcc_cv_as_tls+:} false; then :
25970 $as_echo_n "(cached) " >&6
25971 else
25972 gcc_cv_as_tls=no
25973 if test x$gcc_cv_as != x; then
25974 $as_echo "$conftest_s" > conftest.s
25975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25977 (eval $ac_try) 2>&5
25978 ac_status=$?
25979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980 test $ac_status = 0; }; }
25981 then
25982 gcc_cv_as_tls=yes
25983 else
25984 echo "configure: failed program was" >&5
25985 cat conftest.s >&5
25987 rm -f conftest.o conftest.s
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25991 $as_echo "$gcc_cv_as_tls" >&6; }
25992 if test $gcc_cv_as_tls = yes; then
25993 set_have_as_tls=yes
25997 if test $set_have_as_tls = yes ; then
25999 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26003 # Target-specific assembler checks.
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26006 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26007 gcc_cv_ld_static_dynamic=no
26008 gcc_cv_ld_static_option='-Bstatic'
26009 gcc_cv_ld_dynamic_option='-Bdynamic'
26010 if test $in_tree_ld = yes ; then
26011 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
26012 gcc_cv_ld_static_dynamic=yes
26014 elif test x$gcc_cv_ld != x; then
26015 # Check if linker supports -Bstatic/-Bdynamic option
26016 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26017 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26018 gcc_cv_ld_static_dynamic=yes
26019 else
26020 case "$target" in
26021 # AIX ld uses -b flags
26022 *-*-aix4.[23]* | *-*-aix[5-9]*)
26023 gcc_cv_ld_static_dynamic=yes
26024 gcc_cv_ld_static_option="-bstatic"
26025 gcc_cv_ld_dynamic_option="-bdynamic"
26027 # HP-UX ld uses -a flags to select between shared and archive.
26028 *-*-hpux*)
26029 if test x"$gnu_ld" = xno; then
26030 gcc_cv_ld_static_dynamic=yes
26031 gcc_cv_ld_static_option="-aarchive_shared"
26032 gcc_cv_ld_dynamic_option="-adefault"
26035 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26036 *-*-solaris2*)
26037 gcc_cv_ld_static_dynamic=yes
26039 esac
26042 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26044 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26047 cat >>confdefs.h <<_ACEOF
26048 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26049 _ACEOF
26052 cat >>confdefs.h <<_ACEOF
26053 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26054 _ACEOF
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26058 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26061 $as_echo_n "checking linker --version-script option... " >&6; }
26062 gcc_cv_ld_version_script=no
26063 ld_version_script_option=''
26064 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26065 gcc_cv_ld_version_script=yes
26066 ld_version_script_option='--version-script'
26067 elif test x$gcc_cv_ld != x; then
26068 case "$target" in
26069 # Solaris 2 ld always supports -M. It also supports a subset of
26070 # --version-script since Solaris 11.4, but requires
26071 # -z gnu-version-script-compat to activate.
26072 *-*-solaris2*)
26073 gcc_cv_ld_version_script=yes
26074 ld_version_script_option='-M'
26076 esac
26078 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26080 $as_echo "$gcc_cv_ld_version_script" >&6; }
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26084 $as_echo_n "checking linker soname option... " >&6; }
26085 gcc_cv_ld_soname=no
26086 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26087 gcc_cv_ld_soname=yes
26088 ld_soname_option='-soname'
26089 elif test x$gcc_cv_ld != x; then
26090 case "$target" in
26091 *-*-darwin*)
26092 gcc_cv_ld_soname=yes
26093 ld_soname_option='-install_name'
26095 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26096 # ld compatiblity since some Solaris 10 update.
26097 *-*-solaris2*)
26098 gcc_cv_ld_soname=yes
26099 ld_soname_option='-h'
26101 esac
26103 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26105 $as_echo "$gcc_cv_ld_soname" >&6; }
26108 if test x"$demangler_in_ld" = xyes; then
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26110 $as_echo_n "checking linker --demangle support... " >&6; }
26111 gcc_cv_ld_demangle=no
26112 if test $in_tree_ld = yes; then
26113 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 \
26114 gcc_cv_ld_demangle=yes
26116 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26117 # Check if the GNU linker supports --demangle option
26118 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26119 gcc_cv_ld_demangle=yes
26122 if test x"$gcc_cv_ld_demangle" = xyes; then
26124 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26128 $as_echo "$gcc_cv_ld_demangle" >&6; }
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26132 $as_echo_n "checking linker plugin support... " >&6; }
26133 gcc_cv_lto_plugin=0
26134 if test -f liblto_plugin.la; then
26135 save_ld_ver="$ld_ver"
26136 save_ld_vers_major="$ld_vers_major"
26137 save_ld_vers_minor="$ld_vers_minor"
26138 save_ld_is_gold="$ld_is_gold"
26140 ld_is_gold=no
26142 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26143 ld_ver="GNU ld"
26144 # FIXME: ld_is_gold?
26145 ld_vers_major="$gcc_cv_gld_major_version"
26146 ld_vers_minor="$gcc_cv_gld_minor_version"
26147 else
26148 # Determine plugin linker version.
26149 # FIXME: Partial duplicate from above, generalize.
26150 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26151 if echo "$ld_ver" | grep GNU > /dev/null; then
26152 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26153 ld_is_gold=yes
26154 ld_vers=`echo $ld_ver | sed -n \
26155 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26156 else
26157 ld_vers=`echo $ld_ver | sed -n \
26158 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26160 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26161 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26165 # Determine plugin support.
26166 if echo "$ld_ver" | grep GNU > /dev/null; then
26167 # Require GNU ld or gold 2.21+ for plugin support by default.
26168 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26169 gcc_cv_lto_plugin=2
26170 elif test "$ld_is_mold" = yes; then
26171 gcc_cv_lto_plugin=2
26172 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26173 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26174 gcc_cv_lto_plugin=1
26178 ld_ver="$save_ld_ver"
26179 ld_vers_major="$save_ld_vers_major"
26180 ld_vers_minor="$save_ld_vers_minor"
26181 ld_is_gold="$save_ld_is_gold"
26184 cat >>confdefs.h <<_ACEOF
26185 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26186 _ACEOF
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26189 $as_echo "$gcc_cv_lto_plugin" >&6; }
26191 # Target OS-specific assembler checks.
26193 case "$target_os" in
26194 darwin*)
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26196 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26197 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26198 $as_echo_n "(cached) " >&6
26199 else
26200 gcc_cv_as_mmacosx_version_min=no
26201 if test x$gcc_cv_as != x; then
26202 $as_echo '.text' > conftest.s
26203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26208 test $ac_status = 0; }; }
26209 then
26210 gcc_cv_as_mmacosx_version_min=yes
26211 else
26212 echo "configure: failed program was" >&5
26213 cat conftest.s >&5
26215 rm -f conftest.o conftest.s
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26219 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26220 if test $gcc_cv_as_mmacosx_version_min = yes; then
26222 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26227 esac
26229 # Target CPU-specific assembler checks.
26231 case "$target" in
26232 aarch64*-*-*)
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26234 $as_echo_n "checking assembler for -mabi option... " >&6; }
26235 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26236 $as_echo_n "(cached) " >&6
26237 else
26238 gcc_cv_as_aarch64_mabi=no
26239 if test x$gcc_cv_as != x; then
26240 $as_echo '.text' > conftest.s
26241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26243 (eval $ac_try) 2>&5
26244 ac_status=$?
26245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26246 test $ac_status = 0; }; }
26247 then
26248 gcc_cv_as_aarch64_mabi=yes
26249 else
26250 echo "configure: failed program was" >&5
26251 cat conftest.s >&5
26253 rm -f conftest.o conftest.s
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26257 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26260 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26262 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26264 else
26265 if test x$with_abi = xilp32; then
26266 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26267 Upgrade the Assembler." "$LINENO" 5
26269 if test x"$with_multilib_list" = xdefault; then
26270 TM_MULTILIB_CONFIG=lp64
26271 else
26272 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26273 for aarch64_multilib in ${aarch64_multilibs}; do
26274 case ${aarch64_multilib} in
26275 ilp32)
26276 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26277 Upgrade the Assembler." "$LINENO" 5
26281 esac
26282 done
26285 # Check if we have binutils support for relocations types needed by -fpic
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26287 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26288 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26289 $as_echo_n "(cached) " >&6
26290 else
26291 gcc_cv_as_aarch64_picreloc=no
26292 if test x$gcc_cv_as != x; then
26293 $as_echo '
26294 .text
26295 ldr x0, [x2, #:gotpage_lo15:globalsym]
26296 ' > conftest.s
26297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26299 (eval $ac_try) 2>&5
26300 ac_status=$?
26301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26302 test $ac_status = 0; }; }
26303 then
26304 gcc_cv_as_aarch64_picreloc=yes
26305 else
26306 echo "configure: failed program was" >&5
26307 cat conftest.s >&5
26309 rm -f conftest.o conftest.s
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26313 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26314 if test $gcc_cv_as_aarch64_picreloc = yes; then
26316 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26320 # Enable Branch Target Identification Mechanism and Return Address
26321 # Signing by default.
26322 # Check whether --enable-standard-branch-protection was given.
26323 if test "${enable_standard_branch_protection+set}" = set; then :
26324 enableval=$enable_standard_branch_protection;
26325 case $enableval in
26326 yes)
26327 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26332 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26333 Valid choices are 'yes' and 'no'." "$LINENO" 5
26335 esac
26339 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26340 # Check whether --enable-fix-cortex-a53-835769 was given.
26341 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26342 enableval=$enable_fix_cortex_a53_835769;
26343 case $enableval in
26344 yes)
26345 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26350 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26351 Valid choices are 'yes' and 'no'." "$LINENO" 5
26354 esac
26358 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26359 # Check whether --enable-fix-cortex-a53-843419 was given.
26360 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26361 enableval=$enable_fix_cortex_a53_843419;
26362 case $enableval in
26363 yes)
26364 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26369 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26370 Valid choices are 'yes' and 'no'." "$LINENO" 5
26373 esac
26379 # All TARGET_ABI_OSF targets.
26380 alpha*-*-linux* | alpha*-*-*bsd*)
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26382 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26383 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26384 $as_echo_n "(cached) " >&6
26385 else
26386 gcc_cv_as_alpha_explicit_relocs=no
26387 if test x$gcc_cv_as != x; then
26388 $as_echo ' .set nomacro
26389 .text
26390 extbl $3, $2, $3 !lituse_bytoff!1
26391 ldq $2, a($29) !literal!1
26392 ldq $4, b($29) !literal!2
26393 ldq_u $3, 0($2) !lituse_base!1
26394 ldq $27, f($29) !literal!5
26395 jsr $26, ($27), f !lituse_jsr!5
26396 ldah $29, 0($26) !gpdisp!3
26397 lda $0, c($29) !gprel
26398 ldah $1, d($29) !gprelhigh
26399 lda $1, d($1) !gprellow
26400 lda $29, 0($29) !gpdisp!3' > conftest.s
26401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26406 test $ac_status = 0; }; }
26407 then
26408 gcc_cv_as_alpha_explicit_relocs=yes
26409 else
26410 echo "configure: failed program was" >&5
26411 cat conftest.s >&5
26413 rm -f conftest.o conftest.s
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26417 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26418 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26420 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26425 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26426 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26427 $as_echo_n "(cached) " >&6
26428 else
26429 gcc_cv_as_alpha_jsrdirect_relocs=no
26430 if test x$gcc_cv_as != x; then
26431 $as_echo ' .set nomacro
26432 .text
26433 ldq $27, a($29) !literal!1
26434 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 gcc_cv_as_alpha_jsrdirect_relocs=yes
26443 else
26444 echo "configure: failed program was" >&5
26445 cat conftest.s >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26451 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26452 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26454 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26460 avr-*-*)
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26462 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26463 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26464 $as_echo_n "(cached) " >&6
26465 else
26466 gcc_cv_as_avr_mlink_relax=no
26467 if test x$gcc_cv_as != x; then
26468 $as_echo '.text' > conftest.s
26469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26475 then
26476 gcc_cv_as_avr_mlink_relax=yes
26477 else
26478 echo "configure: failed program was" >&5
26479 cat conftest.s >&5
26481 rm -f conftest.o conftest.s
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26485 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26486 if test $gcc_cv_as_avr_mlink_relax = yes; then
26488 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26494 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26495 if ${gcc_cv_as_avr_mrmw+:} false; then :
26496 $as_echo_n "(cached) " >&6
26497 else
26498 gcc_cv_as_avr_mrmw=no
26499 if test x$gcc_cv_as != x; then
26500 $as_echo '.text' > conftest.s
26501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26506 test $ac_status = 0; }; }
26507 then
26508 gcc_cv_as_avr_mrmw=yes
26509 else
26510 echo "configure: failed program was" >&5
26511 cat conftest.s >&5
26513 rm -f conftest.o conftest.s
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26517 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26518 if test $gcc_cv_as_avr_mrmw = yes; then
26520 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26526 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26527 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26528 $as_echo_n "(cached) " >&6
26529 else
26530 gcc_cv_as_avr_mgccisr=no
26531 if test x$gcc_cv_as != x; then
26532 $as_echo '.text
26533 __gcc_isr 1
26534 __gcc_isr 2
26535 __gcc_isr 0,r24
26536 ' > conftest.s
26537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26542 test $ac_status = 0; }; }
26543 then
26544 gcc_cv_as_avr_mgccisr=yes
26545 else
26546 echo "configure: failed program was" >&5
26547 cat conftest.s >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26553 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26554 if test $gcc_cv_as_avr_mgccisr = yes; then
26556 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26561 # Check how default linker description file implements .rodata for
26562 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26563 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26565 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26566 cat > conftest.s <<EOF
26567 .section .rodata,"a",@progbits
26568 .global xxvaryy
26569 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26570 xxvaryy:
26571 .word 1
26573 rm -f conftest.nm
26574 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26579 test $ac_status = 0; }; }
26580 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26585 test $ac_status = 0; }; }
26586 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26592 if test -s conftest.nm
26593 then
26594 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26596 $as_echo "yes" >&6; }
26598 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26600 else
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26602 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26603 echo "$as_me: nm output was" >&5
26604 cat conftest.nm >&5
26605 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26606 { $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
26607 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26609 else
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26611 $as_echo "test failed" >&6; }
26612 echo "$as_me: failed program was" >&5
26613 cat conftest.s >&5
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26615 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26617 rm -f conftest.s conftest.o conftest.elf conftest.nm
26620 cris-*-*)
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26622 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26623 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26624 $as_echo_n "(cached) " >&6
26625 else
26626 gcc_cv_as_cris_no_mul_bug=no
26627 if test x$gcc_cv_as != x; then
26628 $as_echo '.text' > conftest.s
26629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26634 test $ac_status = 0; }; }
26635 then
26636 gcc_cv_as_cris_no_mul_bug=yes
26637 else
26638 echo "configure: failed program was" >&5
26639 cat conftest.s >&5
26641 rm -f conftest.o conftest.s
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26645 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26646 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26648 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26654 sparc*-*-*)
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26656 $as_echo_n "checking assembler for -relax option... " >&6; }
26657 if ${gcc_cv_as_sparc_relax+:} false; then :
26658 $as_echo_n "(cached) " >&6
26659 else
26660 gcc_cv_as_sparc_relax=no
26661 if test x$gcc_cv_as != x; then
26662 $as_echo '.text' > conftest.s
26663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26665 (eval $ac_try) 2>&5
26666 ac_status=$?
26667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26668 test $ac_status = 0; }; }
26669 then
26670 gcc_cv_as_sparc_relax=yes
26671 else
26672 echo "configure: failed program was" >&5
26673 cat conftest.s >&5
26675 rm -f conftest.o conftest.s
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26679 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26680 if test $gcc_cv_as_sparc_relax = yes; then
26682 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26688 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26689 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26690 $as_echo_n "(cached) " >&6
26691 else
26692 gcc_cv_as_sparc_gotdata_op=no
26693 if test x$gcc_cv_as != x; then
26694 $as_echo '.text
26695 .align 4
26696 foo:
26698 bar:
26699 sethi %gdop_hix22(foo), %g1
26700 xor %g1, %gdop_lox10(foo), %g1
26701 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26707 test $ac_status = 0; }; }
26708 then
26709 if test x$gcc_cv_ld != x \
26710 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26711 if test x$gcc_cv_objdump != x; then
26712 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26713 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26714 gcc_cv_as_sparc_gotdata_op=no
26715 else
26716 gcc_cv_as_sparc_gotdata_op=yes
26720 rm -f conftest
26721 else
26722 echo "configure: failed program was" >&5
26723 cat conftest.s >&5
26725 rm -f conftest.o conftest.s
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26729 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26730 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26732 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26738 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26739 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26740 $as_echo_n "(cached) " >&6
26741 else
26742 gcc_cv_as_sparc_ua_pcrel=no
26743 if test x$gcc_cv_as != x; then
26744 $as_echo '.text
26745 foo:
26747 .data
26748 .align 4
26749 .byte 0
26750 .uaword %r_disp32(foo)' > conftest.s
26751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26756 test $ac_status = 0; }; }
26757 then
26758 if test x$gcc_cv_ld != x \
26759 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26760 gcc_cv_as_sparc_ua_pcrel=yes
26762 rm -f conftest
26763 else
26764 echo "configure: failed program was" >&5
26765 cat conftest.s >&5
26767 rm -f conftest.o conftest.s
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26771 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26772 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26774 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26778 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26779 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26780 $as_echo_n "(cached) " >&6
26781 else
26782 gcc_cv_as_sparc_ua_pcrel_hidden=no
26783 if test x$gcc_cv_as != x; then
26784 $as_echo '.data
26785 .align 4
26786 .byte 0x31
26787 .uaword %r_disp32(foo)
26788 .byte 0x32, 0x33, 0x34
26789 .global foo
26790 .hidden foo
26791 foo:
26792 .skip 4' > conftest.s
26793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26798 test $ac_status = 0; }; }
26799 then
26800 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26801 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26802 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26803 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26804 if $gcc_cv_objdump -R conftest 2> /dev/null \
26805 | grep 'DISP32' > /dev/null 2>&1; then
26807 else
26808 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26811 rm -f conftest
26812 else
26813 echo "configure: failed program was" >&5
26814 cat conftest.s >&5
26816 rm -f conftest.o conftest.s
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26820 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26821 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26823 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26829 # unaligned pcrel relocs
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26832 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26833 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26834 $as_echo_n "(cached) " >&6
26835 else
26836 gcc_cv_as_sparc_offsetable_lo10=no
26837 if test x$gcc_cv_as != x; then
26838 $as_echo '.text
26839 or %g1, %lo(ab) + 12, %g1
26840 or %g1, %lo(ab + 12), %g1' > conftest.s
26841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26844 ac_status=$?
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }
26847 then
26848 if test x$gcc_cv_objdump != x \
26849 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26850 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26851 gcc_cv_as_sparc_offsetable_lo10=yes
26853 else
26854 echo "configure: failed program was" >&5
26855 cat conftest.s >&5
26857 rm -f conftest.o conftest.s
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26861 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26862 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26864 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26870 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26871 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26872 $as_echo_n "(cached) " >&6
26873 else
26874 gcc_cv_as_sparc_fmaf=no
26875 if test x$gcc_cv_as != x; then
26876 $as_echo '.text
26877 .register %g2, #scratch
26878 .register %g3, #scratch
26879 .align 4
26880 fmaddd %f0, %f2, %f4, %f6
26881 addxccc %g1, %g2, %g3
26882 fsrl32 %f2, %f4, %f8
26883 fnaddd %f10, %f12, %f14' > conftest.s
26884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }
26890 then
26891 gcc_cv_as_sparc_fmaf=yes
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26900 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26901 if test $gcc_cv_as_sparc_fmaf = yes; then
26903 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26909 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26910 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26911 $as_echo_n "(cached) " >&6
26912 else
26913 gcc_cv_as_sparc_sparc4=no
26914 if test x$gcc_cv_as != x; then
26915 $as_echo '.text
26916 .register %g2, #scratch
26917 .register %g3, #scratch
26918 .align 4
26919 cxbe %g2, %g3, 1f
26920 1: cwbneg %g2, %g3, 1f
26921 1: sha1
26923 aes_kexpand0 %f4, %f6, %f8
26924 des_round %f38, %f40, %f42, %f44
26925 camellia_f %f54, %f56, %f58, %f60
26926 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26929 (eval $ac_try) 2>&5
26930 ac_status=$?
26931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26932 test $ac_status = 0; }; }
26933 then
26934 gcc_cv_as_sparc_sparc4=yes
26935 else
26936 echo "configure: failed program was" >&5
26937 cat conftest.s >&5
26939 rm -f conftest.o conftest.s
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26943 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26944 if test $gcc_cv_as_sparc_sparc4 = yes; then
26946 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26952 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26953 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26954 $as_echo_n "(cached) " >&6
26955 else
26956 gcc_cv_as_sparc_sparc5=no
26957 if test x$gcc_cv_as != x; then
26958 $as_echo '.text
26959 .register %g2, #scratch
26960 .register %g3, #scratch
26961 .align 4
26962 subxc %g1, %g2, %g3
26963 fpadd8 %f0, %f2, %f4' > conftest.s
26964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26969 test $ac_status = 0; }; }
26970 then
26971 gcc_cv_as_sparc_sparc5=yes
26972 else
26973 echo "configure: failed program was" >&5
26974 cat conftest.s >&5
26976 rm -f conftest.o conftest.s
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26980 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26981 if test $gcc_cv_as_sparc_sparc5 = yes; then
26983 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26989 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26990 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26991 $as_echo_n "(cached) " >&6
26992 else
26993 gcc_cv_as_sparc_sparc6=no
26994 if test x$gcc_cv_as != x; then
26995 $as_echo '.text
26996 .register %g2, #scratch
26997 .register %g3, #scratch
26998 .align 4
26999 rd %entropy, %g1
27000 fpsll64x %f0, %f2, %f4' > conftest.s
27001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27006 test $ac_status = 0; }; }
27007 then
27008 gcc_cv_as_sparc_sparc6=yes
27009 else
27010 echo "configure: failed program was" >&5
27011 cat conftest.s >&5
27013 rm -f conftest.o conftest.s
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27017 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27018 if test $gcc_cv_as_sparc_sparc6 = yes; then
27020 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27026 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27027 if ${gcc_cv_as_sparc_leon+:} false; then :
27028 $as_echo_n "(cached) " >&6
27029 else
27030 gcc_cv_as_sparc_leon=no
27031 if test x$gcc_cv_as != x; then
27032 $as_echo '.text
27033 .register %g2, #scratch
27034 .register %g3, #scratch
27035 .align 4
27036 smac %g2, %g3, %g1
27037 umac %g2, %g3, %g1
27038 casa [%g2] 0xb, %g3, %g1' > conftest.s
27039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27041 (eval $ac_try) 2>&5
27042 ac_status=$?
27043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27044 test $ac_status = 0; }; }
27045 then
27046 gcc_cv_as_sparc_leon=yes
27047 else
27048 echo "configure: failed program was" >&5
27049 cat conftest.s >&5
27051 rm -f conftest.o conftest.s
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27055 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27056 if test $gcc_cv_as_sparc_leon = yes; then
27058 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27064 i[34567]86-*-* | x86_64-*-*)
27065 case $target_os in
27066 cygwin*)
27067 # Full C++ conformance when using a shared libstdc++-v3 requires some
27068 # support from the Cygwin DLL, which in more recent versions exports
27069 # wrappers to aid in interposing and redirecting operators new, delete,
27070 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27071 # are configuring for a version of Cygwin that exports the wrappers.
27072 if test x$host = x$target && test x$host_cpu = xi686; then
27073 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27074 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27075 gcc_ac_cygwin_dll_wrappers=yes
27076 else
27077 gcc_ac_cygwin_dll_wrappers=no
27080 else
27081 # Can't check presence of libc functions during cross-compile, so
27082 # we just have to assume we're building for an up-to-date target.
27083 gcc_ac_cygwin_dll_wrappers=yes
27086 cat >>confdefs.h <<_ACEOF
27087 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27088 _ACEOF
27090 esac
27091 case $target_os in
27092 cygwin* | pe | mingw32*)
27093 # Recent binutils allows the three-operand form of ".comm" on PE. This
27094 # definition is used unconditionally to initialise the default state of
27095 # the target option variable that governs usage of the feature.
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27097 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27098 if ${gcc_cv_as_comm_has_align+:} false; then :
27099 $as_echo_n "(cached) " >&6
27100 else
27101 gcc_cv_as_comm_has_align=no
27102 if test x$gcc_cv_as != x; then
27103 $as_echo '.comm foo,1,32' > conftest.s
27104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27110 then
27111 gcc_cv_as_comm_has_align=yes
27112 else
27113 echo "configure: failed program was" >&5
27114 cat conftest.s >&5
27116 rm -f conftest.o conftest.s
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27120 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27124 cat >>confdefs.h <<_ACEOF
27125 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27126 _ACEOF
27128 # Used for DWARF 2 in PE
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27130 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27131 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27132 $as_echo_n "(cached) " >&6
27133 else
27134 gcc_cv_as_ix86_pe_secrel32=no
27135 if test x$gcc_cv_as != x; then
27136 $as_echo '.text
27137 foo: nop
27138 .data
27139 .secrel32 foo' > conftest.s
27140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27145 test $ac_status = 0; }; }
27146 then
27147 if test x$gcc_cv_ld != x \
27148 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27149 gcc_cv_as_ix86_pe_secrel32=yes
27151 rm -f conftest
27152 else
27153 echo "configure: failed program was" >&5
27154 cat conftest.s >&5
27156 rm -f conftest.o conftest.s
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27160 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27161 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27163 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27167 # Test if the assembler supports the extended form of the .section
27168 # directive that specifies section alignment. LTO support uses this,
27169 # but normally only after installation, so we warn but don't fail the
27170 # configure if LTO is enabled but the assembler does not support it.
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27172 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27173 if ${gcc_cv_as_section_has_align+:} false; then :
27174 $as_echo_n "(cached) " >&6
27175 else
27176 gcc_cv_as_section_has_align=no
27177 if test x$gcc_cv_as != x; then
27178 $as_echo '.section lto_test,"dr0"' > conftest.s
27179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27184 test $ac_status = 0; }; }
27185 then
27186 gcc_cv_as_section_has_align=yes
27187 else
27188 echo "configure: failed program was" >&5
27189 cat conftest.s >&5
27191 rm -f conftest.o conftest.s
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27195 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27198 if test x$gcc_cv_as_section_has_align != xyes; then
27199 case ",$enable_languages," in
27200 *,lto,*)
27201 { $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
27202 $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;}
27204 esac
27207 esac
27208 case $target_os in
27209 darwin2* | darwin19*)
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27211 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27212 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27213 $as_echo_n "(cached) " >&6
27214 else
27215 gcc_cv_as_mllvm_x86_pad_for_align=no
27216 if test x$gcc_cv_as != x; then
27217 $as_echo '.text' > conftest.s
27218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27220 (eval $ac_try) 2>&5
27221 ac_status=$?
27222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223 test $ac_status = 0; }; }
27224 then
27225 gcc_cv_as_mllvm_x86_pad_for_align=yes
27226 else
27227 echo "configure: failed program was" >&5
27228 cat conftest.s >&5
27230 rm -f conftest.o conftest.s
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27234 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27235 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27237 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27242 esac
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27245 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27246 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27247 $as_echo_n "(cached) " >&6
27248 else
27249 gcc_cv_as_ix86_xbrace_comment=no
27250 if test x$gcc_cv_as != x; then
27251 $as_echo '.text' > conftest.s
27252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27254 (eval $ac_try) 2>&5
27255 ac_status=$?
27256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27257 test $ac_status = 0; }; }
27258 then
27259 gcc_cv_as_ix86_xbrace_comment=yes
27260 else
27261 echo "configure: failed program was" >&5
27262 cat conftest.s >&5
27264 rm -f conftest.o conftest.s
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27268 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27269 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27271 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27277 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27278 if ${gcc_cv_as_ix86_filds+:} false; then :
27279 $as_echo_n "(cached) " >&6
27280 else
27281 gcc_cv_as_ix86_filds=no
27282 if test x$gcc_cv_as != x; then
27283 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27286 (eval $ac_try) 2>&5
27287 ac_status=$?
27288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27289 test $ac_status = 0; }; }
27290 then
27291 gcc_cv_as_ix86_filds=yes
27292 else
27293 echo "configure: failed program was" >&5
27294 cat conftest.s >&5
27296 rm -f conftest.o conftest.s
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27300 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27301 if test $gcc_cv_as_ix86_filds = yes; then
27303 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27309 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27310 if ${gcc_cv_as_ix86_fildq+:} false; then :
27311 $as_echo_n "(cached) " >&6
27312 else
27313 gcc_cv_as_ix86_fildq=no
27314 if test x$gcc_cv_as != x; then
27315 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27318 (eval $ac_try) 2>&5
27319 ac_status=$?
27320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27321 test $ac_status = 0; }; }
27322 then
27323 gcc_cv_as_ix86_fildq=yes
27324 else
27325 echo "configure: failed program was" >&5
27326 cat conftest.s >&5
27328 rm -f conftest.o conftest.s
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27332 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27333 if test $gcc_cv_as_ix86_fildq = yes; then
27335 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27341 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27342 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27343 $as_echo_n "(cached) " >&6
27344 else
27345 gcc_cv_as_ix86_cmov_sun_syntax=no
27346 if test x$gcc_cv_as != x; then
27347 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27350 (eval $ac_try) 2>&5
27351 ac_status=$?
27352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27353 test $ac_status = 0; }; }
27354 then
27355 gcc_cv_as_ix86_cmov_sun_syntax=yes
27356 else
27357 echo "configure: failed program was" >&5
27358 cat conftest.s >&5
27360 rm -f conftest.o conftest.s
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27364 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27365 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27367 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27373 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27374 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_as_ix86_ffreep=no
27378 if test x$gcc_cv_as != x; then
27379 $as_echo 'ffreep %st(1)' > conftest.s
27380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27382 (eval $ac_try) 2>&5
27383 ac_status=$?
27384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27385 test $ac_status = 0; }; }
27386 then
27387 gcc_cv_as_ix86_ffreep=yes
27388 else
27389 echo "configure: failed program was" >&5
27390 cat conftest.s >&5
27392 rm -f conftest.o conftest.s
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27396 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27397 if test $gcc_cv_as_ix86_ffreep = yes; then
27399 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27405 $as_echo_n "checking assembler for .quad directive... " >&6; }
27406 if ${gcc_cv_as_ix86_quad+:} false; then :
27407 $as_echo_n "(cached) " >&6
27408 else
27409 gcc_cv_as_ix86_quad=no
27410 if test x$gcc_cv_as != x; then
27411 $as_echo '.quad 0' > conftest.s
27412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27414 (eval $ac_try) 2>&5
27415 ac_status=$?
27416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27417 test $ac_status = 0; }; }
27418 then
27419 gcc_cv_as_ix86_quad=yes
27420 else
27421 echo "configure: failed program was" >&5
27422 cat conftest.s >&5
27424 rm -f conftest.o conftest.s
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27428 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27429 if test $gcc_cv_as_ix86_quad = yes; then
27431 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27437 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27438 if ${gcc_cv_as_ix86_sahf+:} false; then :
27439 $as_echo_n "(cached) " >&6
27440 else
27441 gcc_cv_as_ix86_sahf=no
27442 if test x$gcc_cv_as != x; then
27443 $as_echo '.code64
27444 sahf' > conftest.s
27445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27447 (eval $ac_try) 2>&5
27448 ac_status=$?
27449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27450 test $ac_status = 0; }; }
27451 then
27452 gcc_cv_as_ix86_sahf=yes
27453 else
27454 echo "configure: failed program was" >&5
27455 cat conftest.s >&5
27457 rm -f conftest.o conftest.s
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27461 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27462 if test $gcc_cv_as_ix86_sahf = yes; then
27464 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27470 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27471 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27472 $as_echo_n "(cached) " >&6
27473 else
27474 gcc_cv_as_ix86_interunit_movq=no
27475 if test x$gcc_cv_as != x; then
27476 $as_echo '.code64
27477 movq %mm0, %rax
27478 movq %rax, %xmm0' > conftest.s
27479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27485 then
27486 gcc_cv_as_ix86_interunit_movq=yes
27487 else
27488 echo "configure: failed program was" >&5
27489 cat conftest.s >&5
27491 rm -f conftest.o conftest.s
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27495 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27499 cat >>confdefs.h <<_ACEOF
27500 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27501 _ACEOF
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27505 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27506 if ${gcc_cv_as_ix86_hle+:} false; then :
27507 $as_echo_n "(cached) " >&6
27508 else
27509 gcc_cv_as_ix86_hle=no
27510 if test x$gcc_cv_as != x; then
27511 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27517 test $ac_status = 0; }; }
27518 then
27519 gcc_cv_as_ix86_hle=yes
27520 else
27521 echo "configure: failed program was" >&5
27522 cat conftest.s >&5
27524 rm -f conftest.o conftest.s
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27528 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27529 if test $gcc_cv_as_ix86_hle = yes; then
27531 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27537 $as_echo_n "checking assembler for swap suffix... " >&6; }
27538 if ${gcc_cv_as_ix86_swap+:} false; then :
27539 $as_echo_n "(cached) " >&6
27540 else
27541 gcc_cv_as_ix86_swap=no
27542 if test x$gcc_cv_as != x; then
27543 $as_echo 'movl.s %esp, %ebp' > conftest.s
27544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27546 (eval $ac_try) 2>&5
27547 ac_status=$?
27548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27549 test $ac_status = 0; }; }
27550 then
27551 gcc_cv_as_ix86_swap=yes
27552 else
27553 echo "configure: failed program was" >&5
27554 cat conftest.s >&5
27556 rm -f conftest.o conftest.s
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27560 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27561 if test $gcc_cv_as_ix86_swap = yes; then
27563 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27569 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27570 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27571 $as_echo_n "(cached) " >&6
27572 else
27573 gcc_cv_as_ix86_diff_sect_delta=no
27574 if test x$gcc_cv_as != x; then
27575 $as_echo '.section .rodata
27576 .L1:
27577 .long .L2-.L1
27578 .long .L3-.L1
27579 .text
27580 .L3: nop
27581 .L2: nop' > conftest.s
27582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27587 test $ac_status = 0; }; }
27588 then
27589 gcc_cv_as_ix86_diff_sect_delta=yes
27590 else
27591 echo "configure: failed program was" >&5
27592 cat conftest.s >&5
27594 rm -f conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27598 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27599 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27601 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27607 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27608 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27609 $as_echo_n "(cached) " >&6
27610 else
27611 gcc_cv_as_ix86_rep_lock_prefix=no
27612 if test x$gcc_cv_as != x; then
27613 $as_echo 'rep movsl
27614 rep ret
27615 rep nop
27616 rep bsf %ecx, %eax
27617 rep bsr %ecx, %eax
27618 lock addl %edi, (%eax,%esi)
27619 lock orl $0, (%esp)' > conftest.s
27620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27622 (eval $ac_try) 2>&5
27623 ac_status=$?
27624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27625 test $ac_status = 0; }; }
27626 then
27627 gcc_cv_as_ix86_rep_lock_prefix=yes
27628 else
27629 echo "configure: failed program was" >&5
27630 cat conftest.s >&5
27632 rm -f conftest.o conftest.s
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27636 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27637 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27639 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27645 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27646 if ${gcc_cv_as_ix86_ud2+:} false; then :
27647 $as_echo_n "(cached) " >&6
27648 else
27649 gcc_cv_as_ix86_ud2=no
27650 if test x$gcc_cv_as != x; then
27651 $as_echo 'ud2' > conftest.s
27652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27657 test $ac_status = 0; }; }
27658 then
27659 gcc_cv_as_ix86_ud2=yes
27660 else
27661 echo "configure: failed program was" >&5
27662 cat conftest.s >&5
27664 rm -f conftest.o conftest.s
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27668 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27669 if test $gcc_cv_as_ix86_ud2 = yes; then
27671 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27676 # Enforce 32-bit output with gas and gld.
27677 if test x$gas = xyes; then
27678 as_ix86_gas_32_opt="--32"
27680 if echo "$ld_ver" | grep GNU > /dev/null; then
27681 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27682 ld_ix86_gld_32_opt="-melf_i386_sol2"
27683 else
27684 ld_ix86_gld_32_opt="-melf_i386"
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27689 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27690 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27691 $as_echo_n "(cached) " >&6
27692 else
27693 gcc_cv_as_ix86_tlsgdplt=no
27694 if test x$gcc_cv_as != x; then
27695 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27698 (eval $ac_try) 2>&5
27699 ac_status=$?
27700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27701 test $ac_status = 0; }; }
27702 then
27703 if test x$gcc_cv_ld != x \
27704 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27705 gcc_cv_as_ix86_tlsgdplt=yes
27707 rm -f conftest
27708 else
27709 echo "configure: failed program was" >&5
27710 cat conftest.s >&5
27712 rm -f conftest.o conftest.s
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27716 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27717 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27719 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27724 conftest_s='
27725 .section .tdata,"aw'$tls_section_flag'",@progbits
27726 tls_ld:
27727 .section .text,"ax",@progbits
27728 call tls_ld@tlsldmplt'
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27731 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27732 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27733 $as_echo_n "(cached) " >&6
27734 else
27735 gcc_cv_as_ix86_tlsldmplt=no
27736 if test x$gcc_cv_as != x; then
27737 $as_echo "$conftest_s" > conftest.s
27738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27740 (eval $ac_try) 2>&5
27741 ac_status=$?
27742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27743 test $ac_status = 0; }; }
27744 then
27745 if test x$gcc_cv_ld != x \
27746 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27747 gcc_cv_as_ix86_tlsldmplt=yes
27749 rm -f conftest
27750 else
27751 echo "configure: failed program was" >&5
27752 cat conftest.s >&5
27754 rm -f conftest.o conftest.s
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27758 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27762 cat >>confdefs.h <<_ACEOF
27763 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27764 _ACEOF
27767 conftest_s='
27768 .section .text,"ax",@progbits
27769 .globl _start
27770 .type _start, @function
27771 _start:
27772 leal value@tlsldm(%ebx), %eax
27773 call ___tls_get_addr@plt
27775 .section .tdata,"aw'$tls_section_flag'",@progbits
27776 .type value, @object
27777 value:'
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27779 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27780 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27781 $as_echo_n "(cached) " >&6
27782 else
27783 gcc_cv_as_ix86_tlsldm=no
27784 if test x$gcc_cv_as != x; then
27785 $as_echo "$conftest_s" > conftest.s
27786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27788 (eval $ac_try) 2>&5
27789 ac_status=$?
27790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27791 test $ac_status = 0; }; }
27792 then
27793 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27794 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27795 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27796 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27797 gcc_cv_as_ix86_tlsldm=yes
27800 rm -f conftest
27801 else
27802 echo "configure: failed program was" >&5
27803 cat conftest.s >&5
27805 rm -f conftest.o conftest.s
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27809 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27813 cat >>confdefs.h <<_ACEOF
27814 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27815 _ACEOF
27818 conftest_s='
27819 .data
27820 bar:
27821 .byte 1
27822 .text
27823 .global _start
27824 _start:
27825 cmpl $0, bar@GOT
27826 jmp *_start@GOT'
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27828 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27829 if ${gcc_cv_as_ix86_got32x+:} false; then :
27830 $as_echo_n "(cached) " >&6
27831 else
27832 gcc_cv_as_ix86_got32x=no
27833 if test x$gcc_cv_as != x; then
27834 $as_echo "$conftest_s" > conftest.s
27835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27840 test $ac_status = 0; }; }
27841 then
27842 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27843 && test x$gcc_cv_readelf != x \
27844 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27845 | grep R_386_GOT32X > /dev/null 2>&1 \
27846 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27847 if $gcc_cv_objdump -dw conftest 2>&1 \
27848 | grep 0xffffff > /dev/null 2>&1; then
27849 gcc_cv_as_ix86_got32x=no
27850 else
27851 gcc_cv_as_ix86_got32x=yes
27854 rm -f conftest
27855 else
27856 echo "configure: failed program was" >&5
27857 cat conftest.s >&5
27859 rm -f conftest.o conftest.s
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27863 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27867 cat >>confdefs.h <<_ACEOF
27868 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27869 _ACEOF
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27873 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27874 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27875 $as_echo_n "(cached) " >&6
27876 else
27877 gcc_cv_as_ix86_gotoff_in_data=no
27878 if test x$gcc_cv_as != x; then
27879 $as_echo ' .text
27880 .L0:
27882 .data
27883 .long .L0@GOTOFF' > conftest.s
27884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27886 (eval $ac_try) 2>&5
27887 ac_status=$?
27888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27889 test $ac_status = 0; }; }
27890 then
27891 gcc_cv_as_ix86_gotoff_in_data=yes
27892 else
27893 echo "configure: failed program was" >&5
27894 cat conftest.s >&5
27896 rm -f conftest.o conftest.s
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27900 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27904 cat >>confdefs.h <<_ACEOF
27905 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27906 _ACEOF
27909 conftest_s='
27910 .section .text,"ax",@progbits
27911 .globl _start
27912 .type _start, @function
27913 _start:
27914 leal ld@tlsldm(%ecx), %eax
27915 call *___tls_get_addr@GOT(%ecx)
27916 leal gd@tlsgd(%ecx), %eax
27917 call *___tls_get_addr@GOT(%ecx)
27919 .section .tdata,"aw'$tls_section_flag'",@progbits
27920 .type ld, @object
27922 .byte 0
27923 .globl gd
27924 .type gd, @object
27926 .byte 0'
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27928 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27929 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27930 $as_echo_n "(cached) " >&6
27931 else
27932 gcc_cv_as_ix86_tls_get_addr_via_got=no
27933 if test x$gcc_cv_as != x; then
27934 $as_echo "$conftest_s" > conftest.s
27935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27940 test $ac_status = 0; }; }
27941 then
27942 if test x$gcc_cv_ld != x \
27943 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27944 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27946 rm -f conftest
27947 else
27948 echo "configure: failed program was" >&5
27949 cat conftest.s >&5
27951 rm -f conftest.o conftest.s
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27955 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27959 cat >>confdefs.h <<_ACEOF
27960 #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`
27961 _ACEOF
27965 ia64*-*-*)
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27967 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27968 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27969 $as_echo_n "(cached) " >&6
27970 else
27971 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27972 if test x$gcc_cv_as != x; then
27973 $as_echo ' .text
27974 addl r15 = @ltoffx(x#), gp
27976 ld8.mov r16 = [r15], x#
27977 ' > conftest.s
27978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27980 (eval $ac_try) 2>&5
27981 ac_status=$?
27982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27983 test $ac_status = 0; }; }
27984 then
27985 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27986 else
27987 echo "configure: failed program was" >&5
27988 cat conftest.s >&5
27990 rm -f conftest.o conftest.s
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27994 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27995 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27997 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28004 powerpc*-*-*)
28006 case $target in
28007 *-*-darwin*)
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28009 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28010 if ${gcc_cv_as_machine_directive+:} false; then :
28011 $as_echo_n "(cached) " >&6
28012 else
28013 gcc_cv_as_machine_directive=no
28014 if test x$gcc_cv_as != x; then
28015 $as_echo ' .machine ppc7400' > conftest.s
28016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28018 (eval $ac_try) 2>&5
28019 ac_status=$?
28020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28021 test $ac_status = 0; }; }
28022 then
28023 gcc_cv_as_machine_directive=yes
28024 else
28025 echo "configure: failed program was" >&5
28026 cat conftest.s >&5
28028 rm -f conftest.o conftest.s
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28032 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28035 if test x$gcc_cv_as_machine_directive != xyes; then
28036 echo "*** This target requires an assembler supporting \".machine\"" >&2
28037 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28038 test x$build = x$target && exit 1
28041 esac
28043 case $target in
28044 *-*-aix*) conftest_s=' .machine "pwr5"
28045 .csect .text[PR]
28046 mfcr 3,128';;
28047 *-*-darwin*) conftest_s=' .text
28048 mfcr r3,128';;
28049 *) conftest_s=' .machine power4
28050 .text
28051 mfcr 3,128';;
28052 esac
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28055 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28056 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28057 $as_echo_n "(cached) " >&6
28058 else
28059 gcc_cv_as_powerpc_mfcrf=no
28060 if test x$gcc_cv_as != x; then
28061 $as_echo "$conftest_s" > conftest.s
28062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28067 test $ac_status = 0; }; }
28068 then
28069 gcc_cv_as_powerpc_mfcrf=yes
28070 else
28071 echo "configure: failed program was" >&5
28072 cat conftest.s >&5
28074 rm -f conftest.o conftest.s
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28078 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28079 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28081 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28086 case $target in
28087 *-*-aix*) conftest_s=' .csect .text[PR]
28088 LCF..0:
28089 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28090 *-*-darwin*)
28091 conftest_s=' .text
28092 LCF0:
28093 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28094 *) conftest_s=' .text
28095 .LCF0:
28096 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28097 esac
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28100 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28101 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28102 $as_echo_n "(cached) " >&6
28103 else
28104 gcc_cv_as_powerpc_rel16=no
28105 if test x$gcc_cv_as != x; then
28106 $as_echo "$conftest_s" > conftest.s
28107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28109 (eval $ac_try) 2>&5
28110 ac_status=$?
28111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28112 test $ac_status = 0; }; }
28113 then
28114 gcc_cv_as_powerpc_rel16=yes
28115 else
28116 echo "configure: failed program was" >&5
28117 cat conftest.s >&5
28119 rm -f conftest.o conftest.s
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28123 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28124 if test $gcc_cv_as_powerpc_rel16 = yes; then
28126 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28131 case $target in
28132 *-*-aix*) conftest_s=' .machine "pwr7"
28133 .csect .text[PR]
28134 lxvd2x 1,2,3';;
28135 *) conftest_s=' .machine power7
28136 .text
28137 lxvd2x 1,2,3';;
28138 esac
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28141 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28142 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28143 $as_echo_n "(cached) " >&6
28144 else
28145 gcc_cv_as_powerpc_vsx=no
28146 if test x$gcc_cv_as != x; then
28147 $as_echo "$conftest_s" > conftest.s
28148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28153 test $ac_status = 0; }; }
28154 then
28155 gcc_cv_as_powerpc_vsx=yes
28156 else
28157 echo "configure: failed program was" >&5
28158 cat conftest.s >&5
28160 rm -f conftest.o conftest.s
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28164 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28165 if test $gcc_cv_as_powerpc_vsx = yes; then
28167 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28173 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28174 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28175 $as_echo_n "(cached) " >&6
28176 else
28177 gcc_cv_as_powerpc_gnu_attribute=no
28178 if test x$gcc_cv_as != x; then
28179 $as_echo '.gnu_attribute 4,1' > conftest.s
28180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28182 (eval $ac_try) 2>&5
28183 ac_status=$?
28184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28185 test $ac_status = 0; }; }
28186 then
28187 gcc_cv_as_powerpc_gnu_attribute=yes
28188 else
28189 echo "configure: failed program was" >&5
28190 cat conftest.s >&5
28192 rm -f conftest.o conftest.s
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28196 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28197 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28199 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28205 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28206 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28207 $as_echo_n "(cached) " >&6
28208 else
28209 gcc_cv_as_powerpc_entry_markers=no
28210 if test x$gcc_cv_as != x; then
28211 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217 test $ac_status = 0; }; }
28218 then
28219 gcc_cv_as_powerpc_entry_markers=yes
28220 else
28221 echo "configure: failed program was" >&5
28222 cat conftest.s >&5
28224 rm -f conftest.o conftest.s
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28228 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28229 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28231 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28237 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28238 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28239 $as_echo_n "(cached) " >&6
28240 else
28241 gcc_cv_as_powerpc_pltseq_markers=no
28242 if test x$gcc_cv_as != x; then
28243 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28246 (eval $ac_try) 2>&5
28247 ac_status=$?
28248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28249 test $ac_status = 0; }; }
28250 then
28251 gcc_cv_as_powerpc_pltseq_markers=yes
28252 else
28253 echo "configure: failed program was" >&5
28254 cat conftest.s >&5
28256 rm -f conftest.o conftest.s
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28260 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28261 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28263 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28268 case $target in
28269 *-*-aix*)
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28271 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28272 if ${gcc_cv_as_aix_ref+:} false; then :
28273 $as_echo_n "(cached) " >&6
28274 else
28275 gcc_cv_as_aix_ref=no
28276 if test x$gcc_cv_as != x; then
28277 $as_echo ' .csect stuff[rw]
28278 stuff:
28279 .long 1
28280 .extern sym
28281 .ref sym
28282 ' > conftest.s
28283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28285 (eval $ac_try) 2>&5
28286 ac_status=$?
28287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28288 test $ac_status = 0; }; }
28289 then
28290 gcc_cv_as_aix_ref=yes
28291 else
28292 echo "configure: failed program was" >&5
28293 cat conftest.s >&5
28295 rm -f conftest.o conftest.s
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28299 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28300 if test $gcc_cv_as_aix_ref = yes; then
28302 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28308 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28309 if ${gcc_cv_as_aix_dwloc+:} false; then :
28310 $as_echo_n "(cached) " >&6
28311 else
28312 gcc_cv_as_aix_dwloc=no
28313 if test x$gcc_cv_as != x; then
28314 $as_echo ' .dwsect 0xA0000
28315 Lframe..0:
28316 .vbyte 4,Lframe..0
28317 ' > conftest.s
28318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28324 then
28325 gcc_cv_as_aix_dwloc=yes
28326 else
28327 echo "configure: failed program was" >&5
28328 cat conftest.s >&5
28330 rm -f conftest.o conftest.s
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28334 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28335 if test $gcc_cv_as_aix_dwloc = yes; then
28337 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28342 esac
28345 mips*-*-*)
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28347 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28348 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28349 $as_echo_n "(cached) " >&6
28350 else
28351 gcc_cv_as_mips_explicit_relocs=no
28352 if test x$gcc_cv_as != x; then
28353 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28356 (eval $ac_try) 2>&5
28357 ac_status=$?
28358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28359 test $ac_status = 0; }; }
28360 then
28361 gcc_cv_as_mips_explicit_relocs=yes
28362 else
28363 echo "configure: failed program was" >&5
28364 cat conftest.s >&5
28366 rm -f conftest.o conftest.s
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28370 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28371 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28372 if test x$target_cpu_default = x
28373 then target_cpu_default=MASK_EXPLICIT_RELOCS
28374 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28380 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28381 if ${gcc_cv_as_mips_no_shared+:} false; then :
28382 $as_echo_n "(cached) " >&6
28383 else
28384 gcc_cv_as_mips_no_shared=no
28385 if test x$gcc_cv_as != x; then
28386 $as_echo 'nop' > conftest.s
28387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28389 (eval $ac_try) 2>&5
28390 ac_status=$?
28391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28392 test $ac_status = 0; }; }
28393 then
28394 gcc_cv_as_mips_no_shared=yes
28395 else
28396 echo "configure: failed program was" >&5
28397 cat conftest.s >&5
28399 rm -f conftest.o conftest.s
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28403 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28404 if test $gcc_cv_as_mips_no_shared = yes; then
28406 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28412 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28413 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28414 $as_echo_n "(cached) " >&6
28415 else
28416 gcc_cv_as_mips_gnu_attribute=no
28417 if test x$gcc_cv_as != x; then
28418 $as_echo '.gnu_attribute 4,1' > conftest.s
28419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28421 (eval $ac_try) 2>&5
28422 ac_status=$?
28423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28424 test $ac_status = 0; }; }
28425 then
28426 gcc_cv_as_mips_gnu_attribute=yes
28427 else
28428 echo "configure: failed program was" >&5
28429 cat conftest.s >&5
28431 rm -f conftest.o conftest.s
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28435 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28436 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28438 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28444 $as_echo_n "checking assembler for .module support... " >&6; }
28445 if ${gcc_cv_as_mips_dot_module+:} false; then :
28446 $as_echo_n "(cached) " >&6
28447 else
28448 gcc_cv_as_mips_dot_module=no
28449 if test x$gcc_cv_as != x; then
28450 $as_echo '.module mips2
28451 .module fp=xx' > conftest.s
28452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28457 test $ac_status = 0; }; }
28458 then
28459 gcc_cv_as_mips_dot_module=yes
28460 else
28461 echo "configure: failed program was" >&5
28462 cat conftest.s >&5
28464 rm -f conftest.o conftest.s
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28468 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28469 if test $gcc_cv_as_mips_dot_module = yes; then
28471 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28475 if test x$gcc_cv_as_mips_dot_module = xno \
28476 && test x$with_fp_32 != x; then
28477 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28481 $as_echo_n "checking assembler for .micromips support... " >&6; }
28482 if ${gcc_cv_as_micromips_support+:} false; then :
28483 $as_echo_n "(cached) " >&6
28484 else
28485 gcc_cv_as_micromips_support=no
28486 if test x$gcc_cv_as != x; then
28487 $as_echo '.set micromips' > conftest.s
28488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28490 (eval $ac_try) 2>&5
28491 ac_status=$?
28492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28493 test $ac_status = 0; }; }
28494 then
28495 gcc_cv_as_micromips_support=yes
28496 else
28497 echo "configure: failed program was" >&5
28498 cat conftest.s >&5
28500 rm -f conftest.o conftest.s
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28504 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28505 if test $gcc_cv_as_micromips_support = yes; then
28507 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28513 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28514 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28515 $as_echo_n "(cached) " >&6
28516 else
28517 gcc_cv_as_mips_dtprelword=no
28518 if test x$gcc_cv_as != x; then
28519 $as_echo '.section .tdata,"awT",@progbits
28521 .word 2
28522 .text
28523 .dtprelword x+0x8000' > conftest.s
28524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28529 test $ac_status = 0; }; }
28530 then
28531 gcc_cv_as_mips_dtprelword=yes
28532 else
28533 echo "configure: failed program was" >&5
28534 cat conftest.s >&5
28536 rm -f conftest.o conftest.s
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28540 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28541 if test $gcc_cv_as_mips_dtprelword = yes; then
28543 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28549 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28550 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28551 $as_echo_n "(cached) " >&6
28552 else
28553 gcc_cv_as_mips_dspr1_mult=no
28554 if test x$gcc_cv_as != x; then
28555 $as_echo ' .set mips32r2
28556 .set nodspr2
28557 .set dsp
28558 madd $ac3,$4,$5
28559 maddu $ac3,$4,$5
28560 msub $ac3,$4,$5
28561 msubu $ac3,$4,$5
28562 mult $ac3,$4,$5
28563 multu $ac3,$4,$5' > conftest.s
28564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28569 test $ac_status = 0; }; }
28570 then
28571 gcc_cv_as_mips_dspr1_mult=yes
28572 else
28573 echo "configure: failed program was" >&5
28574 cat conftest.s >&5
28576 rm -f conftest.o conftest.s
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28580 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28581 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28583 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28589 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28590 gcc_cv_as_ld_jalr_reloc=no
28591 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28592 if test $in_tree_ld = yes ; then
28593 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 \
28594 && test $in_tree_ld_is_elf = yes; then
28595 gcc_cv_as_ld_jalr_reloc=yes
28597 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28598 echo ' .ent x' > conftest.s
28599 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28600 echo ' lw $25,%call16(y)($28)' >> conftest.s
28601 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28602 echo '1: jalr $25' >> conftest.s
28603 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28604 echo '1: jalr $25' >> conftest.s
28605 echo ' .end x' >> conftest.s
28606 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28607 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28608 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28609 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28610 gcc_cv_as_ld_jalr_reloc=yes
28613 rm -f conftest.*
28616 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28617 if test x$target_cpu_default = x; then
28618 target_cpu_default=MASK_RELAX_PIC_CALLS
28619 else
28620 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28624 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28627 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28628 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28629 $as_echo_n "(cached) " >&6
28630 else
28631 gcc_cv_ld_mips_personality_relaxation=no
28632 if test $in_tree_ld = yes ; then
28633 if test "$gcc_cv_gld_major_version" -eq 2 \
28634 -a "$gcc_cv_gld_minor_version" -ge 21 \
28635 -o "$gcc_cv_gld_major_version" -gt 2; then
28636 gcc_cv_ld_mips_personality_relaxation=yes
28638 elif test x$gcc_cv_as != x \
28639 -a x$gcc_cv_ld != x \
28640 -a x$gcc_cv_readelf != x ; then
28641 cat > conftest.s <<EOF
28642 .cfi_startproc
28643 .cfi_personality 0x80,indirect_ptr
28644 .ent test
28645 test:
28647 .end test
28648 .cfi_endproc
28650 .section .data,"aw",@progbits
28651 indirect_ptr:
28652 .dc.a personality
28654 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28655 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28656 if $gcc_cv_readelf -d conftest 2>&1 \
28657 | grep TEXTREL > /dev/null 2>&1; then
28659 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28660 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28662 else
28663 gcc_cv_ld_mips_personality_relaxation=yes
28667 rm -f conftest.s conftest.o conftest
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28670 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28671 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28673 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28678 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28679 if ${gcc_cv_as_mips_nan+:} false; then :
28680 $as_echo_n "(cached) " >&6
28681 else
28682 gcc_cv_as_mips_nan=no
28683 if test x$gcc_cv_as != x; then
28684 $as_echo '' > conftest.s
28685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28687 (eval $ac_try) 2>&5
28688 ac_status=$?
28689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28690 test $ac_status = 0; }; }
28691 then
28692 gcc_cv_as_mips_nan=yes
28693 else
28694 echo "configure: failed program was" >&5
28695 cat conftest.s >&5
28697 rm -f conftest.o conftest.s
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28701 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28702 if test $gcc_cv_as_mips_nan = yes; then
28704 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28708 if test x$gcc_cv_as_mips_nan = xno \
28709 && test x$with_nan != x; then
28710 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28713 msp430-*-*)
28714 # Earlier GAS versions generically support .gnu_attribute, but the
28715 # msp430 assembler will not do anything with it.
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28717 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28718 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28719 $as_echo_n "(cached) " >&6
28720 else
28721 gcc_cv_as_msp430_gnu_attribute=no
28722 if test x$gcc_cv_as != x; then
28723 $as_echo '.gnu_attribute 4,1' > conftest.s
28724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28726 (eval $ac_try) 2>&5
28727 ac_status=$?
28728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28729 test $ac_status = 0; }; }
28730 then
28731 gcc_cv_as_msp430_gnu_attribute=yes
28732 else
28733 echo "configure: failed program was" >&5
28734 cat conftest.s >&5
28736 rm -f conftest.o conftest.s
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28740 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28741 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28743 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28748 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28749 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28750 $as_echo_n "(cached) " >&6
28751 else
28752 gcc_cv_as_msp430_mspabi_attribute=no
28753 if test x$gcc_cv_as != x; then
28754 $as_echo '.mspabi_attribute 4,2' > conftest.s
28755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28760 test $ac_status = 0; }; }
28761 then
28762 gcc_cv_as_msp430_mspabi_attribute=yes
28763 else
28764 echo "configure: failed program was" >&5
28765 cat conftest.s >&5
28767 rm -f conftest.o conftest.s
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28771 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28772 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28774 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28778 if test x$enable_newlib_nano_formatted_io = xyes; then
28780 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28784 nios2-*-*)
28785 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28786 # syntax that is documented in the ABI specification.
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28788 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28789 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28790 $as_echo_n "(cached) " >&6
28791 else
28792 gcc_cv_as_nios2_gotoff_relocation=no
28793 if test x$gcc_cv_as != x; then
28794 $as_echo ' .extern foo
28795 .data
28796 .long %gotoff(foo)' > conftest.s
28797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28799 (eval $ac_try) 2>&5
28800 ac_status=$?
28801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28802 test $ac_status = 0; }; }
28803 then
28804 gcc_cv_as_nios2_gotoff_relocation=yes
28805 else
28806 echo "configure: failed program was" >&5
28807 cat conftest.s >&5
28809 rm -f conftest.o conftest.s
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28813 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28814 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28816 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28821 riscv*-*-*)
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28823 $as_echo_n "checking assembler for .attribute support... " >&6; }
28824 if ${gcc_cv_as_riscv_attribute+:} false; then :
28825 $as_echo_n "(cached) " >&6
28826 else
28827 gcc_cv_as_riscv_attribute=no
28828 if test x$gcc_cv_as != x; then
28829 $as_echo '.attribute stack_align,4' > conftest.s
28830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28835 test $ac_status = 0; }; }
28836 then
28837 gcc_cv_as_riscv_attribute=yes
28838 else
28839 echo "configure: failed program was" >&5
28840 cat conftest.s >&5
28842 rm -f conftest.o conftest.s
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28846 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28847 if test $gcc_cv_as_riscv_attribute = yes; then
28849 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28854 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28855 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28856 $as_echo_n "(cached) " >&6
28857 else
28858 gcc_cv_as_riscv_isa_spec=no
28859 if test x$gcc_cv_as != x; then
28860 $as_echo '' > conftest.s
28861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28866 test $ac_status = 0; }; }
28867 then
28868 gcc_cv_as_riscv_isa_spec=yes
28869 else
28870 echo "configure: failed program was" >&5
28871 cat conftest.s >&5
28873 rm -f conftest.o conftest.s
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28877 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28878 if test $gcc_cv_as_riscv_isa_spec = yes; then
28880 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28885 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28886 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28887 $as_echo_n "(cached) " >&6
28888 else
28889 gcc_cv_as_riscv_march_zifencei=no
28890 if test x$gcc_cv_as != x; then
28891 $as_echo '' > conftest.s
28892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28894 (eval $ac_try) 2>&5
28895 ac_status=$?
28896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28897 test $ac_status = 0; }; }
28898 then
28899 gcc_cv_as_riscv_march_zifencei=yes
28900 else
28901 echo "configure: failed program was" >&5
28902 cat conftest.s >&5
28904 rm -f conftest.o conftest.s
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28908 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28909 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28911 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28916 loongarch*-*-*)
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28918 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28919 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28920 $as_echo_n "(cached) " >&6
28921 else
28922 gcc_cv_as_loongarch_dtprelword=no
28923 if test x$gcc_cv_as != x; then
28924 $as_echo '' > conftest.s
28925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28927 (eval $ac_try) 2>&5
28928 ac_status=$?
28929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28930 test $ac_status = 0; }; }
28931 then
28932 .section .tdata,"awT",@progbits
28934 .word 2
28935 .text
28936 .dtprelword x+0x8000
28937 else
28938 echo "configure: failed program was" >&5
28939 cat conftest.s >&5
28941 rm -f conftest.o conftest.s
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28945 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28947 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28949 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28953 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28954 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28955 $as_echo_n "(cached) " >&6
28956 else
28957 gcc_cv_as_loongarch_explicit_relocs=no
28958 if test x$gcc_cv_as != x; then
28959 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28962 (eval $ac_try) 2>&5
28963 ac_status=$?
28964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28965 test $ac_status = 0; }; }
28966 then
28967 gcc_cv_as_loongarch_explicit_relocs=yes
28968 else
28969 echo "configure: failed program was" >&5
28970 cat conftest.s >&5
28972 rm -f conftest.o conftest.s
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28976 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28977 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28979 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28984 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28985 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28986 $as_echo_n "(cached) " >&6
28987 else
28988 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28989 if test x$gcc_cv_as != x; then
28990 $as_echo '.cfi_startproc
28991 .cfi_personality 0x9b,a
28992 .cfi_lsda 0x1b,b
28993 .cfi_endproc' > conftest.s
28994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28999 test $ac_status = 0; }; }
29000 then
29001 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
29002 else
29003 echo "configure: failed program was" >&5
29004 cat conftest.s >&5
29006 rm -f conftest.o conftest.s
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29010 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29011 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29013 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29018 s390*-*-*)
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29020 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29021 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29022 $as_echo_n "(cached) " >&6
29023 else
29024 gcc_cv_as_s390_gnu_attribute=no
29025 if test x$gcc_cv_as != x; then
29026 $as_echo '.gnu_attribute 8,1' > conftest.s
29027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29032 test $ac_status = 0; }; }
29033 then
29034 gcc_cv_as_s390_gnu_attribute=yes
29035 else
29036 echo "configure: failed program was" >&5
29037 cat conftest.s >&5
29039 rm -f conftest.o conftest.s
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29043 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29044 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29046 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29051 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29052 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29053 $as_echo_n "(cached) " >&6
29054 else
29055 gcc_cv_as_s390_machine_machinemode=no
29056 if test x$gcc_cv_as != x; then
29057 $as_echo ' .machinemode push
29058 .machinemode pop
29059 .machine push
29060 .machine pop' > conftest.s
29061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29063 (eval $ac_try) 2>&5
29064 ac_status=$?
29065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29066 test $ac_status = 0; }; }
29067 then
29068 gcc_cv_as_s390_machine_machinemode=yes
29069 else
29070 echo "configure: failed program was" >&5
29071 cat conftest.s >&5
29073 rm -f conftest.o conftest.s
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29077 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29078 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29080 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29085 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29086 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29087 $as_echo_n "(cached) " >&6
29088 else
29089 gcc_cv_as_s390_architecture_modifiers=no
29090 if test x$gcc_cv_as != x; then
29091 $as_echo ' .machine z13+vx ' > conftest.s
29092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29094 (eval $ac_try) 2>&5
29095 ac_status=$?
29096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29097 test $ac_status = 0; }; }
29098 then
29099 gcc_cv_as_s390_architecture_modifiers=yes
29100 else
29101 echo "configure: failed program was" >&5
29102 cat conftest.s >&5
29104 rm -f conftest.o conftest.s
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29108 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29109 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29111 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29116 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29117 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29118 $as_echo_n "(cached) " >&6
29119 else
29120 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29121 if test x$gcc_cv_as != x; then
29122 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29128 test $ac_status = 0; }; }
29129 then
29130 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29131 else
29132 echo "configure: failed program was" >&5
29133 cat conftest.s >&5
29135 rm -f conftest.o conftest.s
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29139 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29140 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29142 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29147 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29148 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29149 $as_echo_n "(cached) " >&6
29150 else
29151 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29152 if test x$gcc_cv_as != x; then
29153 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29156 (eval $ac_try) 2>&5
29157 ac_status=$?
29158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29159 test $ac_status = 0; }; }
29160 then
29161 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29162 else
29163 echo "configure: failed program was" >&5
29164 cat conftest.s >&5
29166 rm -f conftest.o conftest.s
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29170 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29171 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29173 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29179 esac
29181 # Mips, LoongArch and HP-UX need the GNU assembler.
29182 # Linux on IA64 might be able to use the Intel assembler.
29184 case "$target" in
29185 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29186 if test x$gas_flag = xyes \
29187 || test x"$host" != x"$build" \
29188 || test ! -x "$gcc_cv_as" \
29189 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29191 else
29192 echo "*** This configuration requires the GNU assembler" >&2
29193 exit 1
29196 esac
29198 # AMD GCN needs the LLVM assembler and linker.
29199 # Test that LLVM is at least 13.0.1.
29200 case "$target" in
29201 amdgcn-* | gcn-*)
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29203 $as_echo_n "checking llvm assembler version... " >&6; }
29204 gcc_cv_as_version="unknown"
29205 if test x$gcc_cv_as != x; then
29206 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29207 case "$gcc_cv_as_version" in
29208 13.0.[1-9]*) ;; # 13.0.1+
29209 13.[1-9]*) ;; # 13.1+
29210 1[4-9]*) ;; # 14..19
29211 [2-9][0-9]*) ;; # 20..99
29212 [1-9][0-9][0-9]*) ;; # 100+
29213 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29214 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29215 esac
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29218 $as_echo "$gcc_cv_as_version, ok" >&6; }
29220 esac
29222 case "$target" in
29223 arm*)
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29225 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29226 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29227 $as_echo_n "(cached) " >&6
29228 else
29229 gcc_cv_as_arm_option_extensions=no
29230 if test x$gcc_cv_as != x; then
29231 $as_echo '.text
29232 .thumb
29233 .syntax unified
29234 vmov.f32 s0, s1' > conftest.s
29235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29240 test $ac_status = 0; }; }
29241 then
29242 gcc_cv_as_arm_option_extensions=yes
29243 else
29244 echo "configure: failed program was" >&5
29245 cat conftest.s >&5
29247 rm -f conftest.o conftest.s
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29251 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29252 if test $gcc_cv_as_arm_option_extensions = yes; then
29254 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29258 esac
29260 # ??? Not all targets support dwarf2 debug_line, even within a version
29261 # of gas. Moreover, we need to emit a valid instruction to trigger any
29262 # info to the output file. So, as supported targets are added to gas 2.11,
29263 # add some instruction here to (also) show we expect this might work.
29264 # ??? Once 2.11 is released, probably need to add first known working
29265 # version to the per-target configury.
29266 case "$cpu_type" in
29267 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29268 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29269 | visium | xstormy16 | xtensa)
29270 insn="nop"
29272 ia64 | s390)
29273 insn="nop 0"
29275 mmix)
29276 insn="swym 0"
29278 esac
29279 if test x"$insn" != x; then
29280 conftest_s="\
29281 .file 1 \"conftest.s\"
29282 .loc 1 3 0
29283 $insn"
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29285 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29286 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29287 $as_echo_n "(cached) " >&6
29288 else
29289 gcc_cv_as_dwarf2_debug_line=no
29290 if test x$gcc_cv_as != x; then
29291 $as_echo "$conftest_s" > conftest.s
29292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29297 test $ac_status = 0; }; }
29298 then
29299 if test x$gcc_cv_objdump != x \
29300 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29301 | grep debug_line > /dev/null 2>&1; then
29302 gcc_cv_as_dwarf2_debug_line=yes
29303 elif test x$gcc_cv_otool != x \
29304 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29305 | grep debug_line > /dev/null 2>&1; then
29306 gcc_cv_as_dwarf2_debug_line=yes
29308 else
29309 echo "configure: failed program was" >&5
29310 cat conftest.s >&5
29312 rm -f conftest.o conftest.s
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29316 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29320 # The .debug_line file table must be in the exact order that
29321 # we specified the files, since these indices are also used
29322 # by DW_AT_decl_file. Approximate this test by testing if
29323 # the assembler bitches if the same index is assigned twice.
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29325 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29326 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29327 $as_echo_n "(cached) " >&6
29328 else
29329 gcc_cv_as_dwarf2_file_buggy=no
29330 if test x$gcc_cv_as != x; then
29331 $as_echo ' .file 1 "foo.s"
29332 .file 1 "bar.s"' > conftest.s
29333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; }
29339 then
29340 gcc_cv_as_dwarf2_file_buggy=yes
29341 else
29342 echo "configure: failed program was" >&5
29343 cat conftest.s >&5
29345 rm -f conftest.o conftest.s
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29349 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29353 if test $gcc_cv_as_dwarf2_debug_line = yes \
29354 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29356 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29359 if test $gcc_cv_as_leb128 = yes; then
29360 conftest_s="\
29361 .file 1 \"conftest.s\"
29362 .loc 1 3 0 view .LVU1
29363 $insn
29364 .data
29365 .uleb128 .LVU1
29366 .uleb128 .LVU1
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29369 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29370 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29371 $as_echo_n "(cached) " >&6
29372 else
29373 gcc_cv_as_dwarf2_debug_view=no
29374 if test x$gcc_cv_as != x; then
29375 $as_echo "$conftest_s" > conftest.s
29376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29378 (eval $ac_try) 2>&5
29379 ac_status=$?
29380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29381 test $ac_status = 0; }; }
29382 then
29383 gcc_cv_as_dwarf2_debug_view=yes
29384 else
29385 echo "configure: failed program was" >&5
29386 cat conftest.s >&5
29388 rm -f conftest.o conftest.s
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29392 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29393 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29395 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29403 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29404 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29405 $as_echo_n "(cached) " >&6
29406 else
29407 gcc_cv_as_gdwarf2_flag=no
29408 if test x$gcc_cv_as != x; then
29409 $as_echo "$insn" > conftest.s
29410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29412 (eval $ac_try) 2>&5
29413 ac_status=$?
29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415 test $ac_status = 0; }; }
29416 then
29417 gcc_cv_as_gdwarf2_flag=yes
29418 else
29419 echo "configure: failed program was" >&5
29420 cat conftest.s >&5
29422 rm -f conftest.o conftest.s
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29426 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29427 if test $gcc_cv_as_gdwarf2_flag = yes; then
29429 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29435 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29436 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29437 $as_echo_n "(cached) " >&6
29438 else
29439 gcc_cv_as_gdwarf_5_flag=no
29440 if test x$gcc_cv_as != x; then
29441 $as_echo "$insn" > conftest.s
29442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29447 test $ac_status = 0; }; }
29448 then
29449 if test x$gcc_cv_objdump != x \
29450 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29451 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29452 gcc_cv_as_gdwarf_5_flag=yes;
29454 else
29455 echo "configure: failed program was" >&5
29456 cat conftest.s >&5
29458 rm -f conftest.o conftest.s
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29462 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29463 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29465 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29470 case $target_os in
29471 win32 | pe | cygwin* | mingw32*)
29472 section_flags=\"dr\"
29473 function_type=".def foo; .scl 2; .type 32; .endef"
29474 function_size="";;
29476 section_flags=\"\",%progbits
29477 function_type=".type foo, %function"
29478 function_size=".size foo, .-foo";;
29479 esac
29480 dwarf4_debug_info_size=0x46
29481 dwarf4_high_pc_form=7
29482 dwarf4_debug_aranges_size=0x2c
29483 dwarf4_line_sz=9
29484 for dwarf4_addr_size in 8 4; do
29485 conftest_s="\
29486 .file \"a.c\"
29487 .text
29488 .Ltext0:
29489 .p2align 4
29490 .globl foo
29491 $function_type
29492 foo:
29493 .LFB0:
29494 .LM1:
29495 $insn
29496 .LM2:
29497 .LFE0:
29498 $function_size
29499 .Letext0:
29500 .section .debug_info,$section_flags
29501 .Ldebug_info0:
29502 .4byte $dwarf4_debug_info_size
29503 .2byte 0x4
29504 .4byte .Ldebug_abbrev0
29505 .byte 0x$dwarf4_addr_size
29506 .byte 0x1
29507 .ascii \"GNU C17\\0\"
29508 .byte 0xc
29509 .ascii \"a.c\\0\"
29510 .ascii \"/\\0\"
29511 .${dwarf4_addr_size}byte .Ltext0
29512 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29513 .4byte .Ldebug_line0
29514 .byte 0x2
29515 .ascii \"foo\\0\"
29516 .byte 0x1
29517 .byte 0x2
29518 .byte 0x1
29519 .${dwarf4_addr_size}byte .LFB0
29520 .${dwarf4_addr_size}byte .LFE0-.LFB0
29521 .byte 0x1
29522 .byte 0x9c
29523 .byte 0
29524 .section .debug_abbrev,$section_flags
29525 .Ldebug_abbrev0:
29526 .byte 0x1
29527 .byte 0x11
29528 .byte 0x1
29529 .byte 0x25
29530 .byte 0x8
29531 .byte 0x13
29532 .byte 0xb
29533 .byte 0x3
29534 .byte 0x8
29535 .byte 0x1b
29536 .byte 0x8
29537 .byte 0x11
29538 .byte 0x1
29539 .byte 0x12
29540 .byte 0x$dwarf4_high_pc_form
29541 .byte 0x10
29542 .byte 0x17
29543 .byte 0
29544 .byte 0
29545 .byte 0x2
29546 .byte 0x2e
29547 .byte 0
29548 .byte 0x3f
29549 .byte 0x19
29550 .byte 0x3
29551 .byte 0x8
29552 .byte 0x3a
29553 .byte 0xb
29554 .byte 0x3b
29555 .byte 0xb
29556 .byte 0x39
29557 .byte 0xb
29558 .byte 0x11
29559 .byte 0x1
29560 .byte 0x12
29561 .byte 0x$dwarf4_high_pc_form
29562 .byte 0x40
29563 .byte 0x18
29564 .byte 0
29565 .byte 0
29566 .byte 0
29567 .section .debug_aranges,$section_flags
29568 .4byte $dwarf4_debug_aranges_size
29569 .2byte 0x2
29570 .4byte .Ldebug_info0
29571 .byte 0x8
29572 .byte 0
29573 .2byte 0
29574 .2byte 0
29575 .${dwarf4_addr_size}byte .Ltext0
29576 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29577 .${dwarf4_addr_size}byte 0
29578 .${dwarf4_addr_size}byte 0
29579 .section .debug_line,$section_flags
29580 .Ldebug_line0:
29581 .4byte .LELT0-.LSLT0
29582 .LSLT0:
29583 .2byte 0x4
29584 .4byte .LELTP0-.LASLTP0
29585 .LASLTP0:
29586 .byte 0x1
29587 .byte 0x1
29588 .byte 0x1
29589 .byte 0xf6
29590 .byte 0xf2
29591 .byte 0xd
29592 .byte 0
29593 .byte 0x1
29594 .byte 0x1
29595 .byte 0x1
29596 .byte 0x1
29597 .byte 0
29598 .byte 0
29599 .byte 0
29600 .byte 0x1
29601 .byte 0
29602 .byte 0
29603 .byte 0x1
29604 .byte 0
29605 .ascii \"a.c\\0\"
29606 .byte 0
29607 .byte 0
29608 .byte 0
29609 .byte 0
29610 .LELTP0:
29611 .byte 0
29612 .byte 0x$dwarf4_line_sz
29613 .byte 0x2
29614 .${dwarf4_addr_size}byte .LM1
29615 .byte 0x18
29616 .byte 0x5
29617 .byte 0x1
29618 .byte 0
29619 .byte 0x$dwarf4_line_sz
29620 .byte 0x2
29621 .${dwarf4_addr_size}byte .LM2
29622 .byte 0x1
29623 .byte 0x5
29624 .byte 0x1
29625 .byte 0
29626 .byte 0x$dwarf4_line_sz
29627 .byte 0x2
29628 .${dwarf4_addr_size}byte .Letext0
29629 .byte 0
29630 .byte 0x1
29631 .byte 0x1
29632 .LELT0:
29633 .section .debug_str,$section_flags
29634 .ident \"GCC\"
29636 dwarf4_success=no
29637 if test $dwarf4_addr_size = 4; then
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29639 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29640 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29641 $as_echo_n "(cached) " >&6
29642 else
29643 gcc_cv_as_debug_line_32_flag=no
29644 if test x$gcc_cv_as != x; then
29645 $as_echo "$conftest_s" > conftest.s
29646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29648 (eval $ac_try) 2>&5
29649 ac_status=$?
29650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29651 test $ac_status = 0; }; }
29652 then
29653 gcc_cv_as_debug_line_32_flag=yes
29654 else
29655 echo "configure: failed program was" >&5
29656 cat conftest.s >&5
29658 rm -f conftest.o conftest.s
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29662 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29663 if test $gcc_cv_as_debug_line_32_flag = yes; then
29664 dwarf4_success=yes
29667 else
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29669 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29670 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29671 $as_echo_n "(cached) " >&6
29672 else
29673 gcc_cv_as_debug_line_64_flag=no
29674 if test x$gcc_cv_as != x; then
29675 $as_echo "$conftest_s" > conftest.s
29676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29678 (eval $ac_try) 2>&5
29679 ac_status=$?
29680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29681 test $ac_status = 0; }; }
29682 then
29683 gcc_cv_as_debug_line_64_flag=yes
29684 else
29685 echo "configure: failed program was" >&5
29686 cat conftest.s >&5
29688 rm -f conftest.o conftest.s
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29692 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29693 if test $gcc_cv_as_debug_line_64_flag = yes; then
29694 dwarf4_success=yes
29698 if test $dwarf4_success = yes; then
29699 dwarf4_success=no
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29701 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29702 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29703 $as_echo_n "(cached) " >&6
29704 else
29705 gcc_cv_as_dwarf_4_debug_line_flag=no
29706 if test x$gcc_cv_as != x; then
29707 $as_echo "$conftest_s" > conftest.s
29708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29710 (eval $ac_try) 2>&5
29711 ac_status=$?
29712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29713 test $ac_status = 0; }; }
29714 then
29715 gcc_cv_as_dwarf_4_debug_line_flag=yes
29716 else
29717 echo "configure: failed program was" >&5
29718 cat conftest.s >&5
29720 rm -f conftest.o conftest.s
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29724 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29725 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29726 dwarf4_success=yes
29729 break
29731 dwarf4_debug_info_size=0x36
29732 dwarf4_high_pc_form=6
29733 dwarf4_debug_aranges_size=0x1c
29734 dwarf4_line_sz=5
29735 done
29737 if test $dwarf4_success = yes; then
29738 conftest_s="\
29739 .file \"foo.c\"
29740 .text
29741 bar:
29742 #APP
29743 # 82 \"xxx.h\" 1
29744 $insn
29745 # 0 \"\" 2
29746 #NO_APP
29747 $insn
29748 foo:
29749 .file 1 \"foo.c\"
29750 $insn
29751 .file 2 \"foo.h\"
29754 dwarf4_success=no
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29756 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29757 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29758 $as_echo_n "(cached) " >&6
29759 else
29760 gcc_cv_as_dwarf_4_app_flag=no
29761 if test x$gcc_cv_as != x; then
29762 $as_echo "$conftest_s" > conftest.s
29763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29768 test $ac_status = 0; }; }
29769 then
29770 gcc_cv_as_dwarf_4_app_flag=yes
29771 else
29772 echo "configure: failed program was" >&5
29773 cat conftest.s >&5
29775 rm -f conftest.o conftest.s
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29779 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29780 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29781 dwarf4_success=yes
29786 if test $dwarf4_success = yes; then
29787 conftest_s="\
29788 .text
29789 .globl foo
29790 $function_type
29791 foo:
29792 $insn
29793 $function_size
29794 .file 1 \"foo.c\"
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29797 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29798 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29799 $as_echo_n "(cached) " >&6
29800 else
29801 gcc_cv_as_working_gdwarf_n_flag=no
29802 if test x$gcc_cv_as != x; then
29803 $as_echo "$conftest_s" > conftest.s
29804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29809 test $ac_status = 0; }; }
29810 then
29811 if test x$gcc_cv_objdump != x \
29812 && $gcc_cv_objdump -W conftest.o 2>&1 \
29813 | grep conftest.s > /dev/null 2>&1; then
29814 gcc_cv_as_working_gdwarf_n_flag=no
29815 else
29816 gcc_cv_as_working_gdwarf_n_flag=yes
29818 else
29819 echo "configure: failed program was" >&5
29820 cat conftest.s >&5
29822 rm -f conftest.o conftest.s
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29826 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29829 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29831 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29837 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29838 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29839 $as_echo_n "(cached) " >&6
29840 else
29841 gcc_cv_as_debug_prefix_map_flag=no
29842 if test x$gcc_cv_as != x; then
29843 $as_echo "$insn" > conftest.s
29844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29846 (eval $ac_try) 2>&5
29847 ac_status=$?
29848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29849 test $ac_status = 0; }; }
29850 then
29851 gcc_cv_as_debug_prefix_map_flag=yes
29852 else
29853 echo "configure: failed program was" >&5
29854 cat conftest.s >&5
29856 rm -f conftest.o conftest.s
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29860 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29861 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29863 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29870 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29871 if ${gcc_cv_as_compress_debug+:} false; then :
29872 $as_echo_n "(cached) " >&6
29873 else
29874 gcc_cv_as_compress_debug=no
29875 if test x$gcc_cv_as != x; then
29876 $as_echo '' > conftest.s
29877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29879 (eval $ac_try) 2>&5
29880 ac_status=$?
29881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29882 test $ac_status = 0; }; }
29883 then
29884 # gas compiled without zlib cannot compress debug sections and warns
29885 # about it, but still exits successfully. So check for this, too.
29886 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29887 then
29888 gcc_cv_as_compress_debug=0
29889 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29890 then
29891 gcc_cv_as_compress_debug=1
29892 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29893 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29894 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29895 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29896 then
29897 gcc_cv_as_compress_debug=2
29899 else
29900 gcc_cv_as_compress_debug=0
29902 else
29903 echo "configure: failed program was" >&5
29904 cat conftest.s >&5
29906 rm -f conftest.o conftest.s
29909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29910 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29914 cat >>confdefs.h <<_ACEOF
29915 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29916 _ACEOF
29919 cat >>confdefs.h <<_ACEOF
29920 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29921 _ACEOF
29924 cat >>confdefs.h <<_ACEOF
29925 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29926 _ACEOF
29929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29930 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29931 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29932 $as_echo_n "(cached) " >&6
29933 else
29934 gcc_cv_as_lcomm_with_alignment=no
29935 if test x$gcc_cv_as != x; then
29936 $as_echo '.lcomm bar,4,16' > conftest.s
29937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29939 (eval $ac_try) 2>&5
29940 ac_status=$?
29941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29942 test $ac_status = 0; }; }
29943 then
29944 gcc_cv_as_lcomm_with_alignment=yes
29945 else
29946 echo "configure: failed program was" >&5
29947 cat conftest.s >&5
29949 rm -f conftest.o conftest.s
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29953 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29954 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29956 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29961 if test x$with_sysroot = x && test x$host = x$target \
29962 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29963 && test "$prefix" != "NONE"; then
29965 cat >>confdefs.h <<_ACEOF
29966 #define PREFIX_INCLUDE_DIR "$prefix/include"
29967 _ACEOF
29971 # Determine the version of glibc, if any, used on the target.
29972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29973 $as_echo_n "checking for target glibc version... " >&6; }
29975 # Check whether --with-glibc-version was given.
29976 if test "${with_glibc_version+set}" = set; then :
29977 withval=$with_glibc_version;
29978 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29979 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29980 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29981 else
29982 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29984 else
29986 glibc_version_major=0
29987 glibc_version_minor=0
29988 if test -f $target_header_dir/features.h \
29989 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29990 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29991 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29992 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29997 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29999 cat >>confdefs.h <<_ACEOF
30000 #define TARGET_GLIBC_MAJOR $glibc_version_major
30001 _ACEOF
30004 cat >>confdefs.h <<_ACEOF
30005 #define TARGET_GLIBC_MINOR $glibc_version_minor
30006 _ACEOF
30009 # Check whether --enable-gnu-unique-object was given.
30010 if test "${enable_gnu_unique_object+set}" = set; then :
30011 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30012 yes | no) ;;
30013 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30014 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30015 esac
30016 else
30017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30018 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30019 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30020 $as_echo_n "(cached) " >&6
30021 else
30022 gcc_cv_as_gnu_unique_object=no
30023 if test x$gcc_cv_as != x; then
30024 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30027 (eval $ac_try) 2>&5
30028 ac_status=$?
30029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30030 test $ac_status = 0; }; }
30031 then
30032 gcc_cv_as_gnu_unique_object=yes
30033 else
30034 echo "configure: failed program was" >&5
30035 cat conftest.s >&5
30037 rm -f conftest.o conftest.s
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30041 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30042 if test $gcc_cv_as_gnu_unique_object = yes; then
30043 # We need to unquote above to to use the definition from config.gcc.
30044 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30046 if test $glibc_version_major -gt 2 \
30047 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30048 enable_gnu_unique_object=yes
30055 if test x$enable_gnu_unique_object = xyes; then
30057 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30062 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30063 if ${gcc_cv_as_line_zero+:} false; then :
30064 $as_echo_n "(cached) " >&6
30065 else
30066 gcc_cv_as_line_zero=no
30067 if test "x$gcc_cv_as" != x; then
30068 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30069 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30074 test $ac_status = 0; }; } &&
30075 test "x`cat conftest.out`" = x
30076 then
30077 gcc_cv_as_line_zero=yes
30078 else
30079 echo "configure: failed program was" >&5
30080 cat conftest.s >&5
30081 echo "configure: error output was" >&5
30082 cat conftest.out >&5
30084 rm -f conftest.o conftest.s conftest.out
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30088 $as_echo "$gcc_cv_as_line_zero" >&6; }
30089 if test "x$gcc_cv_as_line_zero" = xyes; then
30091 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30096 $as_echo_n "checking support for thin archives... " >&6; }
30097 thin_archive_support=no
30098 echo 'int main (void) { return 0; }' > conftest.c
30099 if ($AR --version | sed 1q | grep "GNU ar" \
30100 && $CC $CFLAGS -c conftest.c \
30101 && $AR rcT conftest.a conftest.o \
30102 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30103 thin_archive_support=yes
30105 rm -f conftest.c conftest.o conftest.a conftest
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30107 $as_echo "$thin_archive_support" >&6; }
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30111 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30112 gcc_cv_ld_eh_frame_hdr=no
30113 if test $in_tree_ld = yes ; then
30114 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 \
30115 && test $in_tree_ld_is_elf = yes; then
30116 gcc_cv_ld_eh_frame_hdr=yes
30118 elif test x$gcc_cv_ld != x; then
30119 if echo "$ld_ver" | grep GNU > /dev/null; then
30120 # Check if linker supports --eh-frame-hdr option
30121 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30122 gcc_cv_ld_eh_frame_hdr=yes
30124 else
30125 case "$target" in
30126 *-*-solaris2*)
30127 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30128 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30129 gcc_cv_ld_eh_frame_hdr=yes
30132 esac
30136 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30138 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30142 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30145 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30146 gcc_cv_ld_eh_frame_ciev3=no
30147 if test $in_tree_ld = yes ; then
30148 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 \
30149 && test $in_tree_ld_is_elf = yes; then
30150 gcc_cv_ld_eh_frame_ciev3=yes
30152 elif test x$gcc_cv_ld != x; then
30153 if echo "$ld_ver" | grep GNU > /dev/null; then
30154 gcc_cv_ld_eh_frame_ciev3=yes
30155 if test 0"$ld_date" -lt 20040513; then
30156 if test -n "$ld_date"; then
30157 # If there was date string, but was earlier than 2004-05-13, fail
30158 gcc_cv_ld_eh_frame_ciev3=no
30159 elif test "$ld_vers_major" -lt 2; then
30160 gcc_cv_ld_eh_frame_ciev3=no
30161 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30162 gcc_cv_ld_eh_frame_ciev3=no
30165 else
30166 case "$target" in
30167 *-*-solaris2*)
30168 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30169 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30170 gcc_cv_ld_eh_frame_ciev3=yes
30173 esac
30177 cat >>confdefs.h <<_ACEOF
30178 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30179 _ACEOF
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30182 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30185 $as_echo_n "checking linker position independent executable support... " >&6; }
30186 gcc_cv_ld_pie=no
30187 if test $in_tree_ld = yes ; then
30188 case "$target" in
30189 # Full PIE support on Solaris was only introduced in gld 2.26.
30190 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30191 *) gcc_gld_pie_min_version=15 ;;
30192 esac
30193 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 \
30194 && test $in_tree_ld_is_elf = yes; then
30195 gcc_cv_ld_pie=yes
30197 elif test x$gcc_cv_ld != x; then
30198 # Check if linker supports -pie option
30199 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30200 gcc_cv_ld_pie=yes
30201 case "$target" in
30202 *-*-solaris2*)
30203 if echo "$ld_ver" | grep GNU > /dev/null \
30204 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30205 gcc_cv_ld_pie=no
30208 esac
30209 else
30210 case "$target" in
30211 *-*-solaris2.1[1-9]*)
30212 # Solaris 11.3 added PIE support.
30213 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30214 gcc_cv_ld_pie=yes
30217 esac
30220 if test x"$gcc_cv_ld_pie" = xyes; then
30222 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30226 $as_echo "$gcc_cv_ld_pie" >&6; }
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30229 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30230 gcc_cv_ld_pie_copyreloc=no
30231 if test $gcc_cv_ld_pie = yes ; then
30232 if test $in_tree_ld = yes ; then
30233 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
30234 gcc_cv_ld_pie_copyreloc=yes
30236 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30237 # Check if linker supports -pie option with copy reloc
30238 case "$target" in
30239 i?86-*-linux* | x86_64-*-linux*)
30240 cat > conftest1.s <<EOF
30241 .globl a_glob
30242 .data
30243 .type a_glob, @object
30244 .size a_glob, 4
30245 a_glob:
30246 .long 2
30248 cat > conftest2.s <<EOF
30249 .text
30250 .globl main
30251 .type main, @function
30252 main:
30253 movl %eax, a_glob(%rip)
30254 .size main, .-main
30255 .globl ptr
30256 .section .data.rel,"aw",@progbits
30257 .type ptr, @object
30258 ptr:
30259 .quad a_glob
30261 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30262 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30263 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30264 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30265 gcc_cv_ld_pie_copyreloc=yes
30267 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30269 esac
30273 cat >>confdefs.h <<_ACEOF
30274 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30275 _ACEOF
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30278 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30281 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30282 gcc_cv_ld_eh_gc_sections=no
30283 if test $in_tree_ld = yes ; then
30284 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 \
30285 && test $in_tree_ld_is_elf = yes; then
30286 gcc_cv_ld_eh_gc_sections=yes
30288 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30289 cat > conftest.s <<EOF
30290 .section .text
30291 .globl _start
30292 .type _start, @function
30293 _start:
30294 .long foo
30295 .size _start, .-_start
30296 .section .text.foo,"ax",@progbits
30297 .type foo, @function
30298 foo:
30299 .long 0
30300 .size foo, .-foo
30301 .section .gcc_except_table.foo,"a",@progbits
30302 .L0:
30303 .long 0
30304 .section .eh_frame,"a",@progbits
30305 .long .L0
30307 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30308 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30309 | grep "gc-sections option ignored" > /dev/null; then
30310 gcc_cv_ld_eh_gc_sections=no
30311 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30312 | grep gcc_except_table > /dev/null; then
30313 gcc_cv_ld_eh_gc_sections=yes
30314 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30315 if test x$gcc_cv_as_comdat_group != xyes; then
30316 gcc_cv_ld_eh_gc_sections=no
30317 cat > conftest.s <<EOF
30318 .section .text
30319 .globl _start
30320 .type _start, @function
30321 _start:
30322 .long foo
30323 .size _start, .-_start
30324 .section .gnu.linkonce.t.foo,"ax",@progbits
30325 .type foo, @function
30326 foo:
30327 .long 0
30328 .size foo, .-foo
30329 .section .gcc_except_table.foo,"a",@progbits
30330 .L0:
30331 .long 0
30332 .section .eh_frame,"a",@progbits
30333 .long .L0
30335 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30336 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30337 | grep "gc-sections option ignored" > /dev/null; then
30338 gcc_cv_ld_eh_gc_sections=no
30339 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30340 | grep gcc_except_table > /dev/null; then
30341 gcc_cv_ld_eh_gc_sections=yes
30347 rm -f conftest.s conftest.o conftest
30349 case "$target" in
30350 hppa*-*-linux*)
30351 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30352 gcc_cv_ld_eh_gc_sections=no
30354 esac
30355 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30357 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30361 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30364 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30365 gcc_cv_ld_eh_gc_sections_bug=no
30366 if test $in_tree_ld = yes ; then
30367 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 \
30368 && test $in_tree_ld_is_elf = yes; then
30369 gcc_cv_ld_eh_gc_sections_bug=yes
30371 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
30372 gcc_cv_ld_eh_gc_sections_bug=yes
30373 cat > conftest.s <<EOF
30374 .section .text
30375 .globl _start
30376 .type _start, @function
30377 _start:
30378 .long foo
30379 .size _start, .-_start
30380 .section .text.startup.foo,"ax",@progbits
30381 .type foo, @function
30382 foo:
30383 .long 0
30384 .size foo, .-foo
30385 .section .gcc_except_table.foo,"a",@progbits
30386 .L0:
30387 .long 0
30388 .section .eh_frame,"a",@progbits
30389 .long .L0
30391 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30392 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30393 | grep "gc-sections option ignored" > /dev/null; then
30395 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30396 | grep gcc_except_table > /dev/null; then
30397 gcc_cv_ld_eh_gc_sections_bug=no
30400 rm -f conftest.s conftest.o conftest
30402 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30404 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30408 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30411 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30412 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30413 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30414 gcc_cv_ld_compress_debug=1
30415 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30416 # Detect zstd debug section compression support
30417 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30418 gcc_cv_ld_compress_debug=2
30420 else
30421 case "${target}" in
30422 *-*-solaris2*)
30423 # Introduced in Solaris 11.2.
30424 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30425 gcc_cv_ld_compress_debug=1
30426 gcc_cv_ld_compress_debug_option="-z compress-sections"
30427 else
30428 gcc_cv_ld_compress_debug=0
30432 # Assume linkers other than GNU ld don't support compessed debug
30433 # sections.
30434 gcc_cv_ld_compress_debug=0
30436 esac
30439 cat >>confdefs.h <<_ACEOF
30440 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30441 _ACEOF
30444 cat >>confdefs.h <<_ACEOF
30445 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30446 _ACEOF
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30449 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30451 if test x"$ld64_flag" = x"yes"; then
30453 # Set defaults for possibly untestable items.
30454 gcc_cv_ld64_export_dynamic=0
30455 gcc_cv_ld64_platform_version=0
30457 if test "$build" = "$host"; then
30458 darwin_try_test=1
30459 else
30460 darwin_try_test=0
30463 # On Darwin, because of FAT library support, it is often possible to execute
30464 # exes from compatible archs even when the host differs from the build system.
30465 case "$build","$host" in
30466 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30467 darwin_try_test=1;;
30468 *) ;;
30469 esac
30471 # If the configurer specified a minimum ld64 version to be supported, then use
30472 # that to determine feature support.
30473 if test x"${gcc_cv_ld64_version}" != x; then
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30475 $as_echo_n "checking ld64 specified version... " >&6; }
30476 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30478 $as_echo "$gcc_cv_ld64_major" >&6; }
30479 if test "$gcc_cv_ld64_major" -ge 236; then
30480 gcc_cv_ld64_export_dynamic=1
30482 if test "$gcc_cv_ld64_major" -ge 512; then
30483 gcc_cv_ld64_platform_version=1
30485 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30486 # If the version was not specified, try to find it.
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30488 $as_echo_n "checking linker version... " >&6; }
30489 if test x"${gcc_cv_ld64_version}" = x; then
30490 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30493 $as_echo "$gcc_cv_ld64_version" >&6; }
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30496 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30497 gcc_cv_ld64_export_dynamic=1
30498 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30499 gcc_cv_ld64_export_dynamic=0
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30502 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30505 $as_echo_n "checking linker for -platform_version support... " >&6; }
30506 gcc_cv_ld64_platform_version=1
30507 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30508 gcc_cv_ld64_platform_version=0
30510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30511 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30514 if test x"${gcc_cv_ld64_version}" != x; then
30516 cat >>confdefs.h <<_ACEOF
30517 #define LD64_VERSION "${gcc_cv_ld64_version}"
30518 _ACEOF
30523 cat >>confdefs.h <<_ACEOF
30524 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30525 _ACEOF
30529 cat >>confdefs.h <<_ACEOF
30530 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30531 _ACEOF
30535 if test x"$dsymutil_flag" = x"yes"; then
30537 # If the user specified a dsymutil path, then we will already have the
30538 # version string, otherwise, pick it up.
30539 if test x"$gcc_cv_dsymutil" = x; then
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30541 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30542 dsymutil_vers="tool unspecified"
30543 elif test x"$dsymutil_vers" = x; then
30544 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30547 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30549 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30550 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30551 dsymutil_kind=DWARFUTILS
30552 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30553 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30554 dsymutil_kind=CLANG
30555 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30556 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30557 dsymutil_kind=LLVM
30558 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30559 else
30560 dsymutil_kind=UNKNOWN
30561 dsymutil_vers="0.0"
30563 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30564 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30565 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30566 if test x"${dsymutil_minor}" = x; then
30567 dsymutil_minor=0
30569 if test x"${dsymutil_tiny}" = x; then
30570 dsymutil_tiny=0
30573 cat >>confdefs.h <<_ACEOF
30574 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30575 _ACEOF
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30578 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30581 case $target_os in
30582 win32 | pe | cygwin* | mingw32*)
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30584 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30585 gcc_cv_ld_broken_pe_dwarf5=yes
30586 if test $in_tree_ld = yes ; then
30587 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30588 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30589 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30590 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30591 gcc_cv_ld_broken_pe_dwarf5=no
30593 else
30594 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30595 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30596 gcc_cv_ld_broken_pe_dwarf5=no
30599 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30601 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30605 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30608 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30609 gcc_cv_ld_disable_dynamicbase=no
30610 if test $in_tree_ld = yes; then
30611 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 \
30612 gcc_cv_ld_disable_dynamicbase=yes
30614 else
30615 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30616 gcc_cv_ld_disable_dynamicbase=yes
30619 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30621 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30625 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30627 esac
30629 # --------
30630 # UNSORTED
30631 # --------
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30634 $as_echo_n "checking linker --as-needed support... " >&6; }
30635 if ${gcc_cv_ld_as_needed+:} false; then :
30636 $as_echo_n "(cached) " >&6
30637 else
30638 gcc_cv_ld_as_needed=no
30639 gcc_cv_ld_as_needed_option='--as-needed'
30640 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30641 if test $in_tree_ld = yes ; then
30642 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 \
30643 && test $in_tree_ld_is_elf = yes; then
30644 gcc_cv_ld_as_needed=yes
30645 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30646 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30647 gcc_cv_ld_no_as_needed_option='--pop-state'
30650 elif test x$gcc_cv_ld != x; then
30651 # Check if linker supports --as-needed and --no-as-needed options
30652 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30653 gcc_cv_ld_as_needed=yes
30654 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30655 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30656 && echo "$ld_ver" | grep GNU > /dev/null \
30657 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30658 # Use these options only when both ld.bfd and ld.gold support
30659 # --push-state/--pop-state, which unfortunately wasn't added
30660 # at the same time.
30661 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30662 gcc_cv_ld_no_as_needed_option='--pop-state'
30665 case "$target:$gnu_ld" in
30666 *-*-solaris2*:no)
30667 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30668 # forms.
30669 gcc_cv_ld_as_needed=yes
30670 gcc_cv_ld_as_needed_option="-z ignore"
30671 gcc_cv_ld_no_as_needed_option="-z record"
30673 esac
30675 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30676 # dl_iterate_phdr, i.e. since Solaris 11.
30677 case "$target" in
30678 *-*-solaris2.1[1-9]*)
30679 case "$target" in
30680 i?86-*-* | x86_64-*-*)
30681 if echo "$ld_ver" | grep GNU > /dev/null; then
30682 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30683 gcc_cv_ld_as_needed=no
30686 esac
30688 *-*-solaris2*)
30689 gcc_cv_ld_as_needed=no
30691 esac
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30695 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30696 if test x"$gcc_cv_ld_as_needed" = xyes; then
30698 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30701 cat >>confdefs.h <<_ACEOF
30702 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30703 _ACEOF
30706 cat >>confdefs.h <<_ACEOF
30707 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30708 _ACEOF
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30713 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30714 saved_LDFLAGS="$LDFLAGS"
30715 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30716 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30718 /* end confdefs.h. */
30719 int main(void) {return 0;}
30720 _ACEOF
30721 if ac_fn_cxx_try_link "$LINENO"; then :
30722 gcc_cv_ld_clearcap=yes; break
30723 else
30724 gcc_cv_ld_clearcap=no
30726 rm -f core conftest.err conftest.$ac_objext \
30727 conftest$ac_exeext conftest.$ac_ext
30728 done
30729 LDFLAGS="$saved_LDFLAGS"
30730 if test "x$gcc_cv_ld_clearcap" = xyes; then
30732 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30734 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30738 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30740 case "$target" in
30741 powerpc*-*-*)
30742 case "$target" in
30743 *le-*-linux*)
30744 emul_name="-melf32lppc"
30747 emul_name="-melf32ppc"
30749 esac
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30751 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30752 if ${gcc_cv_ld_ppc_attr+:} false; then :
30753 $as_echo_n "(cached) " >&6
30754 else
30755 gcc_cv_ld_ppc_attr=no
30756 if test x"$ld_is_gold" = xyes; then
30757 gcc_cv_ld_ppc_attr=yes
30758 elif test $in_tree_ld = yes ; then
30759 if test "$gcc_cv_gld_major_version" -eq 2 \
30760 -a "$gcc_cv_gld_minor_version" -ge 28 \
30761 -o "$gcc_cv_gld_major_version" -gt 2; then
30762 gcc_cv_ld_ppc_attr=yes
30764 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30765 # check that merging the long double .gnu_attribute doesn't warn
30766 cat > conftest1.s <<EOF
30767 .gnu_attribute 4,1
30769 cat > conftest2.s <<EOF
30770 .gnu_attribute 4,9
30772 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30773 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30774 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30775 && test ! -s conftest.err; then
30776 gcc_cv_ld_ppc_attr=yes
30778 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30783 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30784 if test x$gcc_cv_ld_ppc_attr = xyes; then
30786 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30790 esac
30792 case "$target:$tm_file" in
30793 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30794 case "$target" in
30795 *le-*-linux*)
30796 emul_name="-melf64lppc"
30798 *-*-linux*)
30799 emul_name="-melf64ppc"
30801 *le-*-freebsd*)
30802 emul_name="-melf64lppc_fbsd"
30804 *-*-freebsd*)
30805 emul_name="-melf64ppc_fbsd"
30807 esac
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30809 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30810 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30811 $as_echo_n "(cached) " >&6
30812 else
30813 gcc_cv_ld_no_dot_syms=no
30814 if test x"$ld_is_gold" = xyes; then
30815 gcc_cv_ld_no_dot_syms=yes
30816 elif test $in_tree_ld = yes ; then
30817 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
30818 gcc_cv_ld_no_dot_syms=yes
30820 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30821 cat > conftest1.s <<EOF
30822 .text
30823 bl .foo
30825 cat > conftest2.s <<EOF
30826 .section ".opd","aw"
30827 .align 3
30828 .globl foo
30829 .type foo,@function
30830 foo:
30831 .quad .LEfoo,.TOC.@tocbase,0
30832 .text
30833 .LEfoo:
30835 .size foo,.-.LEfoo
30837 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30838 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30839 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30840 gcc_cv_ld_no_dot_syms=yes
30842 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30847 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30848 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30850 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30855 $as_echo_n "checking linker large toc support... " >&6; }
30856 if ${gcc_cv_ld_large_toc+:} false; then :
30857 $as_echo_n "(cached) " >&6
30858 else
30859 gcc_cv_ld_large_toc=no
30860 if test x"$ld_is_gold" = xyes; then
30861 gcc_cv_ld_large_toc=yes
30862 elif test $in_tree_ld = yes ; then
30863 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
30864 gcc_cv_ld_large_toc=yes
30866 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30867 cat > conftest.s <<EOF
30868 .section ".tbss","awT",@nobits
30869 .align 3
30870 ie0: .space 8
30871 .global _start
30872 .text
30873 _start:
30874 addis 9,13,ie0@got@tprel@ha
30875 ld 9,ie0@got@tprel@l(9)
30877 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30878 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30879 gcc_cv_ld_large_toc=yes
30881 rm -f conftest conftest.o conftest.s
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30886 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30887 if test x"$gcc_cv_ld_large_toc" = xyes; then
30889 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30894 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30895 if ${gcc_cv_ld_toc_align+:} false; then :
30896 $as_echo_n "(cached) " >&6
30897 else
30898 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30899 cat > conftest.s <<EOF
30900 .global _start
30901 .text
30902 _start:
30903 addis 9,2,x@got@ha
30904 .section .data.rel.ro,"aw",@progbits
30905 .p2align 16
30906 .space 32768
30907 x: .quad .TOC.
30909 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30910 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30911 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)) }'`
30913 rm -f conftest conftest.o conftest.s
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30918 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30919 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30921 cat >>confdefs.h <<_ACEOF
30922 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30923 _ACEOF
30927 esac
30929 case "$target" in
30930 *-*-aix*)
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30932 $as_echo_n "checking linker large toc support... " >&6; }
30933 if ${gcc_cv_ld_large_toc+:} false; then :
30934 $as_echo_n "(cached) " >&6
30935 else
30936 gcc_cv_ld_large_toc=no
30937 if test x$gcc_cv_as != x ; then
30938 cat > conftest.s <<EOF
30939 .toc
30940 LC..1:
30941 .tc a[TC],a[RW]
30942 .extern a[RW]
30943 .csect .text[PR]
30944 .largetoctest:
30945 addis 9,LC..1@u(2)
30946 ld 3,LC..1@l(9)
30948 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30949 gcc_cv_ld_large_toc=yes
30951 rm -f conftest conftest.o conftest.s
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30956 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30957 if test x"$gcc_cv_ld_large_toc" = xyes; then
30959 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30963 esac
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30966 $as_echo_n "checking linker --build-id support... " >&6; }
30967 if ${gcc_cv_ld_buildid+:} false; then :
30968 $as_echo_n "(cached) " >&6
30969 else
30970 gcc_cv_ld_buildid=no
30971 if test $in_tree_ld = yes ; then
30972 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30973 "$gcc_cv_gld_minor_version" -ge 18 -o \
30974 "$gcc_cv_gld_major_version" -gt 2 \
30975 && test $in_tree_ld_is_elf = yes; then
30976 gcc_cv_ld_buildid=yes
30978 elif test x$gcc_cv_ld != x; then
30979 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30980 gcc_cv_ld_buildid=yes
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30985 $as_echo "$gcc_cv_ld_buildid" >&6; }
30986 if test x"$gcc_cv_ld_buildid" = xyes; then
30988 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30992 # Check whether --enable-linker-build-id was given.
30993 if test "${enable_linker_build_id+set}" = set; then :
30994 enableval=$enable_linker_build_id;
30995 else
30996 enable_linker_build_id=no
31000 if test x"$enable_linker_build_id" = xyes; then
31001 if test x"$gcc_cv_ld_buildid" = xyes; then
31003 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31005 else
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31007 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31011 # In binutils 2.21, GNU ld gained support for new emulations fully
31012 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31014 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31015 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31016 $as_echo_n "(cached) " >&6
31017 else
31018 gcc_cv_ld_sol2_emulation=no
31019 if test $in_tree_ld = yes ; then
31020 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31021 "$gcc_cv_gld_minor_version" -ge 21 -o \
31022 "$gcc_cv_gld_major_version" -gt 2 \
31023 && test $in_tree_ld_is_elf = yes; then
31024 gcc_cv_ld_sol2_emulation=yes
31026 elif test x$gcc_cv_ld != x; then
31027 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31028 grep _sol2 > /dev/null; then
31029 gcc_cv_ld_sol2_emulation=yes
31033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31034 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31035 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31037 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31042 $as_echo_n "checking linker --sysroot support... " >&6; }
31043 if ${gcc_cv_ld_sysroot+:} false; then :
31044 $as_echo_n "(cached) " >&6
31045 else
31046 gcc_cv_ld_sysroot=no
31047 if test $in_tree_ld = yes ; then
31048 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
31049 gcc_cv_ld_sysroot=yes
31051 elif test x$gcc_cv_ld != x; then
31052 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31053 gcc_cv_ld_sysroot=yes
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31058 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31059 if test x"$gcc_cv_ld_sysroot" = xyes; then
31061 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31065 case $target in
31066 *-*-solaris2*)
31067 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31069 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31070 if ${gcc_cv_solaris_crts+:} false; then :
31071 $as_echo_n "(cached) " >&6
31072 else
31073 gcc_cv_solaris_crts=no
31074 if test x$host != x$target; then
31075 if test "x$with_sysroot" = xyes; then
31076 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31077 else
31078 target_sysroot="${with_sysroot}"
31081 target_libdir="$target_sysroot/usr/lib"
31082 # At the time they were added, gcrt1.o became a symlink for backwards
31083 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31084 case $target in
31085 i?86-*-solaris2* | x86_64-*-solaris2*)
31086 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31088 sparc*-*-solaris2*)
31089 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31091 esac
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31094 $as_echo "$gcc_cv_solaris_crts" >&6; }
31096 esac
31097 if test x$gcc_cv_solaris_crts = xyes; then
31099 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31103 # Check whether --enable-libssp was given.
31104 if test "${enable_libssp+set}" = set; then :
31105 enableval=$enable_libssp; case "${enableval}" in
31106 yes|no)
31109 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31111 esac
31115 # Test for stack protector support in target C library.
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31117 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31118 if ${gcc_cv_libc_provides_ssp+:} false; then :
31119 $as_echo_n "(cached) " >&6
31120 else
31121 gcc_cv_libc_provides_ssp=no
31122 if test "x$enable_libssp" = "xno"; then
31123 gcc_cv_libc_provides_ssp=yes
31124 elif test "x$enable_libssp" = "xyes"; then
31125 gcc_cv_libc_provides_ssp=no
31126 else
31127 case "$target" in
31128 *-*-musl*)
31129 # All versions of musl provide stack protector
31130 gcc_cv_libc_provides_ssp=yes;;
31131 *-*-linux* | *-*-kfreebsd*-gnu)
31132 # glibc 2.4 and later provides __stack_chk_fail and
31133 # either __stack_chk_guard, or TLS access to stack guard canary.
31135 if test $glibc_version_major -gt 2 \
31136 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31137 gcc_cv_libc_provides_ssp=yes
31138 else
31140 if test -f $target_header_dir/features.h \
31141 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31142 $target_header_dir/features.h > /dev/null; then
31143 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31144 $target_header_dir/features.h > /dev/null && \
31145 test -f $target_header_dir/bits/uClibc_config.h && \
31146 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31147 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31148 gcc_cv_libc_provides_ssp=yes
31150 # all versions of Bionic support stack protector
31151 elif test -f $target_header_dir/sys/cdefs.h \
31152 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31153 $target_header_dir/sys/cdefs.h > /dev/null; then
31154 gcc_cv_libc_provides_ssp=yes
31158 *-*-gnu*)
31159 # Avoid complicated tests (see
31160 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31161 # simply assert that glibc does provide this, which is true for all
31162 # realistically usable GNU/Hurd configurations.
31163 # All supported versions of musl provide it as well
31164 gcc_cv_libc_provides_ssp=yes;;
31165 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31166 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31167 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31168 gcc_cv_libc_provides_ssp=yes
31169 else
31170 echo "no __stack_chk_fail on this target"
31174 *) gcc_cv_libc_provides_ssp=no ;;
31175 esac
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31179 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31181 if test x$gcc_cv_libc_provides_ssp = xyes; then
31183 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31187 # Check whether --enable-default-ssp was given.
31188 # Check whether --enable-default-ssp was given.
31189 if test "${enable_default_ssp+set}" = set; then :
31190 enableval=$enable_default_ssp;
31191 if test x$gcc_cv_libc_provides_ssp = xyes; then
31192 case "$target" in
31193 ia64*-*-*) enable_default_ssp=no ;;
31194 *) enable_default_ssp=$enableval ;;
31195 esac
31196 else
31197 enable_default_ssp=no
31199 else
31200 enable_default_ssp=no
31203 if test x$enable_default_ssp = xyes ; then
31205 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31210 # Test for <sys/sdt.h> on the target.
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31213 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31214 if ${gcc_cv_sys_sdt_h+:} false; then :
31215 $as_echo_n "(cached) " >&6
31216 else
31218 gcc_cv_sys_sdt_h=no
31219 if test -f $target_header_dir/sys/sdt.h; then
31220 gcc_cv_sys_sdt_h=yes
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31225 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31226 if test x$gcc_cv_sys_sdt_h = xyes; then :
31229 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31234 # Check if TFmode long double should be used by default or not.
31235 # Some glibc targets used DFmode long double, but with glibc 2.4
31236 # and later they can use TFmode.
31237 case "$target" in
31238 powerpc*-*-linux* | \
31239 sparc*-*-linux* | \
31240 s390*-*-linux* | \
31241 alpha*-*-linux*)
31243 # Check whether --with-long-double-128 was given.
31244 if test "${with_long_double_128+set}" = set; then :
31245 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31246 else
31248 case "$target" in
31249 s390*-*-linux-musl*)
31250 gcc_cv_target_ldbl128=yes
31252 powerpc*-*-linux-musl*)
31253 gcc_cv_target_ldbl128=no
31257 if test $glibc_version_major -gt 2 \
31258 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31259 gcc_cv_target_ldbl128=yes
31260 else
31262 gcc_cv_target_ldbl128=no
31263 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31264 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31265 && gcc_cv_target_ldbl128=yes
31270 esac
31275 esac
31276 if test x$gcc_cv_target_ldbl128 = xyes; then
31278 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31282 # Check if TFmode long double target should use the IBM extended double or IEEE
31283 # 128-bit floating point formats if long doubles are 128-bits long. The long
31284 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31285 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31286 # libgcc.
31288 # Check whether --with-long-double-format was given.
31289 if test "${with_long_double_format+set}" = set; then :
31290 withval=$with_long_double_format;
31291 case "$target:$with_long_double_format" in
31292 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31295 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31296 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31297 case "$with_cpu" in
31298 power7 | power8 | power9 | power1*)
31302 as_fn_error $? "Configuration option --with-long-double-format is only \
31303 supported if the default cpu is power7 or newer" "$LINENO" 5
31304 with_long_double_format=""
31306 esac
31308 powerpc64*-*-linux*:*)
31309 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31310 with_long_double_format=""
31313 as_fn_error $? "Configure option --with-long-double-format is only supported \
31314 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31315 with_long_double_format=""
31317 esac
31321 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31322 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31323 gcc_cv_libc_provides_hwcap_in_tcb=no
31324 case "$target" in
31325 powerpc*-*-linux*)
31327 if test $glibc_version_major -gt 2 \
31328 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31329 gcc_cv_libc_provides_hwcap_in_tcb=yes
31332 esac
31333 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31335 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31339 # Check if the target LIBC handles PT_GNU_STACK.
31340 gcc_cv_libc_gnustack=unknown
31341 case "$target" in
31342 mips*-*-linux-musl*)
31343 gcc_cv_libc_gnustack=yes
31345 mips*-*-linux*)
31347 if test $glibc_version_major -gt 2 \
31348 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31349 gcc_cv_libc_gnustack=yes
31352 esac
31353 if test x$gcc_cv_libc_gnustack = xyes; then
31355 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31360 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31361 gcc_cv_target_dl_iterate_phdr=unknown
31362 case "$target" in
31363 *-*-solaris2*)
31364 # <link.h> needs both a dl_iterate_phdr declaration and support for
31365 # compilation with largefile support.
31366 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31367 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31368 gcc_cv_target_dl_iterate_phdr=yes
31369 else
31370 gcc_cv_target_dl_iterate_phdr=no
31373 *-*-dragonfly* | *-*-freebsd*)
31374 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31375 gcc_cv_target_dl_iterate_phdr=yes
31376 else
31377 gcc_cv_target_dl_iterate_phdr=no
31380 *-linux-musl*)
31381 gcc_cv_target_dl_iterate_phdr=yes
31383 esac
31385 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31387 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31391 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31393 # We no longer support different GC mechanisms. Emit an error if
31394 # the user configures with --with-gc.
31396 # Check whether --with-gc was given.
31397 if test "${with_gc+set}" = set; then :
31398 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31402 # Libraries to use on the host. This will normally be set by the top
31403 # level Makefile. Here we simply capture the value for our Makefile.
31404 if test -z "${HOST_LIBS+set}"; then
31405 HOST_LIBS=
31409 # Use the system's zlib library.
31411 # Use the system's zlib library.
31412 zlibdir="-L\$(top_builddir)/../zlib"
31413 zlibinc="-I\$(top_srcdir)/../zlib"
31415 # Check whether --with-system-zlib was given.
31416 if test "${with_system_zlib+set}" = set; then :
31417 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31418 zlibdir=
31419 zlibinc=
31429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31430 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31431 # Check whether --enable-maintainer-mode was given.
31432 if test "${enable_maintainer_mode+set}" = set; then :
31433 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31434 else
31435 maintainer_mode=no
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31440 $as_echo "$maintainer_mode" >&6; }
31442 if test "$maintainer_mode" = "yes"; then
31443 MAINT=''
31444 else
31445 MAINT='#'
31448 if test -z "$CTAGS"; then
31449 CTAGS=ctags
31452 if test -z "$ETAGS"; then
31453 ETAGS=etags
31456 if test -z "$CSCOPE"; then
31457 CSCOPE=cscope
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31463 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31464 # Check whether --enable-link-mutex was given.
31465 if test "${enable_link_mutex+set}" = set; then :
31466 enableval=$enable_link_mutex; do_link_mutex=$enableval
31467 else
31468 do_link_mutex=no
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31472 $as_echo "$do_link_mutex" >&6; }
31474 if test "$do_link_mutex" = "yes"; then
31475 DO_LINK_MUTEX=true
31476 { $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
31477 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31478 else
31479 DO_LINK_MUTEX=false
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31485 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31486 # Check whether --enable-link-serialization was given.
31487 if test "${enable_link_serialization+set}" = set; then :
31488 enableval=$enable_link_serialization; do_link_serialization=$enableval
31489 else
31490 do_link_serialization=no
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31494 $as_echo "$do_link_serialization" >&6; }
31496 case "$do_link_serialization" in
31497 yes)
31498 DO_LINK_SERIALIZATION=1;;
31499 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31500 DO_LINK_SERIALIZATION=$do_link_serialization;;
31502 DO_LINK_SERIALIZATION=;;
31504 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31505 esac
31508 # --------------
31509 # Language hooks
31510 # --------------
31512 # Make empty files to contain the specs and options for each language.
31513 # Then add #include lines to for a compiler that has specs and/or options.
31515 subdirs=
31516 lang_opt_files=
31517 lang_specs_files=
31518 lang_tree_files=
31519 # These (without "all_") are set in each config-lang.in.
31520 # `language' must be a single word so is spelled singularly.
31521 all_languages=
31522 all_compilers=
31523 all_outputs='Makefile'
31524 # List of language configure and makefile fragments.
31525 all_lang_configurefrags=
31526 all_lang_makefrags=
31527 # Additional files for gengtype
31528 all_gtfiles="$target_gtfiles"
31530 # These are the languages that are set in --enable-languages,
31531 # and are available in the GCC tree.
31532 all_selected_languages=
31534 # Add the language fragments.
31535 # Languages are added via two mechanisms. Some information must be
31536 # recorded in makefile variables, these are defined in config-lang.in.
31537 # We accumulate them and plug them into the main Makefile.
31538 # The other mechanism is a set of hooks for each of the main targets
31539 # like `clean', `install', etc.
31541 language_hooks="Make-hooks"
31543 for lang in ${srcdir}/*/config-lang.in
31545 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31547 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31548 if test "x$lang_alias" = x
31549 then
31550 echo "$lang doesn't set \$language." 1>&2
31551 exit 1
31553 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31554 subdirs="$subdirs $subdir"
31556 # $gcc_subdir is where the gcc integration files are to be found
31557 # for a language, both for internal compiler purposes (compiler
31558 # sources implementing front-end to GCC tree converters), and for
31559 # build infrastructure purposes (Make-lang.in, etc.)
31561 # This will be <subdir> (relative to $srcdir) if a line like
31562 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31563 # is found in <langdir>/config-lang.in, and will remain <langdir>
31564 # otherwise.
31566 # Except for the language alias (fetched above), the regular
31567 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31568 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31569 # only this and the language alias.
31571 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31572 if [ "$gcc_subdir" = "" ]; then
31573 gcc_subdir="$subdir"
31576 case ",$enable_languages," in
31577 *,$lang_alias,*)
31578 all_selected_languages="$all_selected_languages $lang_alias"
31579 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31580 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31583 esac
31585 language=
31586 boot_language=
31587 compilers=
31588 outputs=
31589 gtfiles=
31590 subdir_requires=
31591 . ${srcdir}/$gcc_subdir/config-lang.in
31592 if test "x$language" = x
31593 then
31594 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31595 exit 1
31598 ok=:
31599 case ",$enable_languages," in
31600 *,$lang_alias,*) ;;
31602 for i in $subdir_requires; do
31603 test -f "${srcdir}/$i/config-lang.in" && continue
31604 ok=false
31605 break
31606 done
31608 esac
31609 $ok || continue
31611 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31612 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31613 # Put c/Make-lang.in fragment first to match serialization languages order.
31614 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31615 else
31616 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31618 if test -f $srcdir/$gcc_subdir/lang.opt; then
31619 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31620 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31622 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31623 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31625 all_languages="$all_languages $language"
31626 all_compilers="$all_compilers $compilers"
31627 all_outputs="$all_outputs $outputs"
31628 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31629 case ",$enable_languages," in
31630 *,lto,*)
31632 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31634 enable_lto=yes
31637 *) ;;
31638 esac
31639 done
31641 check_languages=
31642 for language in $all_selected_languages
31644 check_languages="$check_languages check-$language"
31645 done
31647 selftest_languages=
31648 for language in $all_selected_languages
31650 selftest_languages="$selftest_languages selftest-$language"
31651 done
31653 # We link each language in with a set of hooks, reached indirectly via
31654 # lang.${target}. Only do so for selected languages.
31656 rm -f Make-hooks
31657 touch Make-hooks
31658 target_list="all.cross start.encap rest.encap tags \
31659 install-common install-man install-info install-dvi install-pdf \
31660 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31661 mostlyclean clean distclean maintainer-clean install-plugin"
31663 for t in $target_list
31666 for lang in $all_selected_languages
31668 x="$x $lang.$t"
31669 done
31670 echo "lang.$t: $x" >> Make-hooks
31671 done
31673 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31674 echo "SERIAL_LIST =" >> Make-hooks
31675 echo else >> Make-hooks
31676 lang_cnt=0
31677 lang_list=
31678 prev=c
31679 serialization_languages=c
31680 for lang in $all_selected_languages
31682 test $lang = c && continue
31683 if test $lang = lto; then
31684 serialization_languages="$serialization_languages lto1 lto2"
31685 else
31686 serialization_languages="$serialization_languages $lang"
31688 done
31689 for lang in $serialization_languages
31691 test $lang = c && continue
31692 lang_cnt=`expr $lang_cnt + 1`
31693 lang_list=" $prev$lang_list"
31694 prev=${lang}
31695 done
31696 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31697 echo endif >> Make-hooks
31698 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31699 echo "INDEX.c = 0" >> Make-hooks
31700 lang_idx=1
31701 for lang in $serialization_languages
31703 test $lang = c && continue
31704 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31705 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31706 lang_cnt=`expr $lang_cnt - 1`
31707 lang_idx=`expr $lang_idx + 1`
31708 done
31710 # --------
31711 # Option include files
31712 # --------
31714 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31715 option_includes="option-includes.mk"
31718 # --------
31719 # UNSORTED
31720 # --------
31722 # Create .gdbinit.
31724 echo "dir ." > .gdbinit
31725 echo "dir ${srcdir}" >> .gdbinit
31726 if test x$gdb_needs_out_file_path = xyes
31727 then
31728 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31730 if test "x$subdirs" != x; then
31731 for s in $subdirs
31733 echo "dir ${srcdir}/$s" >> .gdbinit
31734 done
31736 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31737 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31739 # Put a breakpoint on __asan_report_error to help with debugging buffer
31740 # overflow.
31741 case "$CFLAGS" in
31742 *-fsanitize=address*)
31743 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31745 esac
31747 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31751 # Find a directory in which to install a shared libgcc.
31753 # Check whether --enable-version-specific-runtime-libs was given.
31754 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31755 enableval=$enable_version_specific_runtime_libs;
31759 # Substitute configuration variables
31829 # Echo link setup.
31830 if test x${build} = x${host} ; then
31831 if test x${host} = x${target} ; then
31832 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31833 else
31834 echo "Links are now set up to build a cross-compiler" 1>&2
31835 echo " from ${host} to ${target}." 1>&2
31837 else
31838 if test x${host} = x${target} ; then
31839 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31840 echo " for ${target}." 1>&2
31841 else
31842 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31843 echo " from ${host} to ${target}." 1>&2
31852 if test "x${ISLLIBS}" != "x" ; then
31854 $as_echo "#define HAVE_isl 1" >>confdefs.h
31858 # Check for plugin support
31859 # Check whether --enable-plugin was given.
31860 if test "${enable_plugin+set}" = set; then :
31861 enableval=$enable_plugin; enable_plugin=$enableval
31862 else
31863 enable_plugin=yes; default_plugin=yes
31867 pluginlibs=
31868 plugin_check=yes
31870 case "${host}" in
31871 *-*-mingw*)
31872 # Since plugin support under MinGW is not as straightforward as on
31873 # other platforms (e.g., we have to link import library, etc), we
31874 # only enable it if explicitly requested.
31875 if test x"$default_plugin" = x"yes"; then
31876 enable_plugin=no
31877 elif test x"$enable_plugin" = x"yes"; then
31878 # Use make's target variable to derive import library name.
31879 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31880 plugin_check=no
31883 *-*-darwin*)
31884 if test x$build = x$host; then
31885 export_sym_check="nm${exeext} -g"
31886 elif test x$host = x$target; then
31887 export_sym_check="$gcc_cv_nm -g"
31888 else
31889 export_sym_check=
31893 if test x$build = x$host; then
31894 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31895 elif test x$host = x$target; then
31896 export_sym_check="$gcc_cv_objdump -T"
31897 else
31898 export_sym_check=
31901 esac
31903 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31906 $as_echo_n "checking for exported symbols... " >&6; }
31907 if test "x$export_sym_check" != x; then
31908 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31909 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31910 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31911 : # No need to use a flag
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31913 $as_echo "yes" >&6; }
31914 else
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31916 $as_echo "yes" >&6; }
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31918 $as_echo_n "checking for -rdynamic... " >&6; }
31919 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31920 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31921 plugin_rdynamic=yes
31922 pluginlibs="-rdynamic"
31923 else
31924 plugin_rdynamic=no
31925 enable_plugin=no
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31928 $as_echo "$plugin_rdynamic" >&6; }
31930 else
31931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31932 $as_echo "unable to check" >&6; }
31935 # Check -ldl
31936 saved_LIBS="$LIBS"
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31938 $as_echo_n "checking for library containing dlopen... " >&6; }
31939 if ${ac_cv_search_dlopen+:} false; then :
31940 $as_echo_n "(cached) " >&6
31941 else
31942 ac_func_search_save_LIBS=$LIBS
31943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31944 /* end confdefs.h. */
31946 /* Override any GCC internal prototype to avoid an error.
31947 Use char because int might match the return type of a GCC
31948 builtin and then its argument prototype would still apply. */
31949 #ifdef __cplusplus
31950 extern "C"
31951 #endif
31952 char dlopen ();
31954 main ()
31956 return dlopen ();
31958 return 0;
31960 _ACEOF
31961 for ac_lib in '' dl; do
31962 if test -z "$ac_lib"; then
31963 ac_res="none required"
31964 else
31965 ac_res=-l$ac_lib
31966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31968 if ac_fn_cxx_try_link "$LINENO"; then :
31969 ac_cv_search_dlopen=$ac_res
31971 rm -f core conftest.err conftest.$ac_objext \
31972 conftest$ac_exeext
31973 if ${ac_cv_search_dlopen+:} false; then :
31974 break
31976 done
31977 if ${ac_cv_search_dlopen+:} false; then :
31979 else
31980 ac_cv_search_dlopen=no
31982 rm conftest.$ac_ext
31983 LIBS=$ac_func_search_save_LIBS
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31986 $as_echo "$ac_cv_search_dlopen" >&6; }
31987 ac_res=$ac_cv_search_dlopen
31988 if test "$ac_res" != no; then :
31989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31993 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31994 pluginlibs="$pluginlibs -ldl"
31996 LIBS="$saved_LIBS"
31998 # Check that we can build shared objects with -fPIC -shared
31999 saved_LDFLAGS="$LDFLAGS"
32000 saved_CFLAGS="$CFLAGS"
32001 saved_CXXFLAGS="$CXXFLAGS"
32002 case "${host}" in
32003 *-*-darwin*)
32004 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32005 CFLAGS="$CFLAGS -fPIC"
32006 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32007 CXXFLAGS="$CXXFLAGS -fPIC"
32008 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32011 CFLAGS="$CFLAGS -fPIC"
32012 CXXFLAGS="$CXXFLAGS -fPIC"
32013 LDFLAGS="$LDFLAGS -fPIC -shared"
32015 esac
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32017 $as_echo_n "checking for -fPIC -shared... " >&6; }
32018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32019 /* end confdefs.h. */
32020 extern int X;
32022 main ()
32024 return X == 0;
32026 return 0;
32028 _ACEOF
32029 if ac_fn_cxx_try_link "$LINENO"; then :
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32031 $as_echo "yes" >&6; }; have_pic_shared=yes
32032 else
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32034 $as_echo "no" >&6; }; have_pic_shared=no
32036 rm -f core conftest.err conftest.$ac_objext \
32037 conftest$ac_exeext conftest.$ac_ext
32038 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32039 pluginlibs=
32040 enable_plugin=no
32042 LDFLAGS="$saved_LDFLAGS"
32043 CFLAGS="$saved_CFLAGS"
32044 CXXFLAGS="$saved_CXXFLAGS"
32046 # If plugin support had been requested but not available, fail.
32047 if test x"$enable_plugin" = x"no" ; then
32048 if test x"$default_plugin" != x"yes"; then
32049 as_fn_error $? "
32050 Building GCC with plugin support requires a host that supports
32051 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32058 if test x"$enable_plugin" = x"yes"; then
32060 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32065 # Enable --enable-host-shared
32066 # Check whether --enable-host-shared was given.
32067 if test "${enable_host_shared+set}" = set; then :
32068 enableval=$enable_host_shared; PICFLAG=-fPIC
32069 else
32070 PICFLAG=
32077 # Check whether --enable-libquadmath-support was given.
32078 if test "${enable_libquadmath_support+set}" = set; then :
32079 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32080 else
32081 ENABLE_LIBQUADMATH_SUPPORT=yes
32084 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32086 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32091 # Specify what hash style to use by default.
32093 # Check whether --with-linker-hash-style was given.
32094 if test "${with_linker_hash_style+set}" = set; then :
32095 withval=$with_linker_hash_style; case x"$withval" in
32096 xsysv)
32097 LINKER_HASH_STYLE=sysv
32099 xgnu)
32100 LINKER_HASH_STYLE=gnu
32102 xboth)
32103 LINKER_HASH_STYLE=both
32106 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32108 esac
32109 else
32110 LINKER_HASH_STYLE=''
32113 if test x"${LINKER_HASH_STYLE}" != x; then
32115 cat >>confdefs.h <<_ACEOF
32116 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32117 _ACEOF
32121 # Specify what should be the default of -fdiagnostics-color option.
32123 # Check whether --with-diagnostics-color was given.
32124 if test "${with_diagnostics_color+set}" = set; then :
32125 withval=$with_diagnostics_color; case x"$withval" in
32126 xnever)
32127 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32129 xauto)
32130 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32132 xauto-if-env)
32133 DIAGNOSTICS_COLOR_DEFAULT=-1
32135 xalways)
32136 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32139 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32141 esac
32142 else
32143 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32147 cat >>confdefs.h <<_ACEOF
32148 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32149 _ACEOF
32152 # Specify what should be the default of -fdiagnostics-urls option.
32154 # Check whether --with-diagnostics-urls was given.
32155 if test "${with_diagnostics_urls+set}" = set; then :
32156 withval=$with_diagnostics_urls; case x"$withval" in
32157 xnever)
32158 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32160 xauto)
32161 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32163 xauto-if-env)
32164 DIAGNOSTICS_URLS_DEFAULT=-1
32166 xalways)
32167 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32170 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32172 esac
32173 else
32174 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32178 cat >>confdefs.h <<_ACEOF
32179 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32180 _ACEOF
32183 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32184 # of jit/jit-playback.cc.
32185 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32186 echo "gcc_driver_version: ${gcc_driver_version}"
32187 cat > gcc-driver-name.h <<EOF
32188 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32191 # Check whether --enable-default-pie was given.
32192 # Check whether --enable-default-pie was given.
32193 if test "${enable_default_pie+set}" = set; then :
32194 enableval=$enable_default_pie; enable_default_pie=$enableval
32195 else
32196 enable_default_pie=no
32199 if test x$enable_default_pie = xyes ; then
32201 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32206 # Check if -fno-PIE works.
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32208 $as_echo_n "checking for -fno-PIE option... " >&6; }
32209 if ${gcc_cv_c_no_fpie+:} false; then :
32210 $as_echo_n "(cached) " >&6
32211 else
32212 saved_CXXFLAGS="$CXXFLAGS"
32213 CXXFLAGS="$CXXFLAGS -fno-PIE"
32214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32215 /* end confdefs.h. */
32216 int main(void) {return 0;}
32217 _ACEOF
32218 if ac_fn_cxx_try_compile "$LINENO"; then :
32219 gcc_cv_c_no_fpie=yes
32220 else
32221 gcc_cv_c_no_fpie=no
32223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32224 CXXFLAGS="$saved_CXXFLAGS"
32226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32227 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32228 if test "$gcc_cv_c_no_fpie" = "yes"; then
32229 NO_PIE_CFLAGS="-fno-PIE"
32233 # Check if -no-pie works.
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32235 $as_echo_n "checking for -no-pie option... " >&6; }
32236 if ${gcc_cv_no_pie+:} false; then :
32237 $as_echo_n "(cached) " >&6
32238 else
32239 saved_LDFLAGS="$LDFLAGS"
32240 LDFLAGS="$LDFLAGS -no-pie"
32241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32242 /* end confdefs.h. */
32243 int main(void) {return 0;}
32244 _ACEOF
32245 if ac_fn_cxx_try_link "$LINENO"; then :
32246 gcc_cv_no_pie=yes
32247 else
32248 gcc_cv_no_pie=no
32250 rm -f core conftest.err conftest.$ac_objext \
32251 conftest$ac_exeext conftest.$ac_ext
32252 LDFLAGS="$saved_LDFLAGS"
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32255 $as_echo "$gcc_cv_no_pie" >&6; }
32256 if test "$gcc_cv_no_pie" = "yes"; then
32257 NO_PIE_FLAG="-no-pie"
32261 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32262 # Check whether --enable-cet was given.
32263 if test "${enable_cet+set}" = set; then :
32264 enableval=$enable_cet;
32265 case "$enableval" in
32266 yes|no|auto) ;;
32267 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32268 esac
32270 else
32271 enable_cet=auto
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32276 $as_echo_n "checking for CET support... " >&6; }
32278 case "$host" in
32279 i[34567]86-*-linux* | x86_64-*-linux*)
32280 may_have_cet=yes
32281 cet_save_CFLAGS="$CFLAGS"
32282 CFLAGS="$CFLAGS -fcf-protection"
32283 case "$enable_cet" in
32284 auto)
32285 # Check if target supports multi-byte NOPs
32286 # and if compiler and assembler support CET.
32287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32288 /* end confdefs.h. */
32291 main ()
32294 #if !defined(__SSE2__)
32295 #error target does not support multi-byte NOPs
32296 #else
32297 asm ("setssbsy");
32298 #endif
32301 return 0;
32303 _ACEOF
32304 if ac_fn_cxx_try_compile "$LINENO"; then :
32305 enable_cet=yes
32306 else
32307 enable_cet=no
32309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311 yes)
32312 # Check if compiler and assembler support CET.
32313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32314 /* end confdefs.h. */
32317 main ()
32319 asm ("setssbsy");
32321 return 0;
32323 _ACEOF
32324 if ac_fn_cxx_try_compile "$LINENO"; then :
32325 support_cet=yes
32326 else
32327 support_cet=no
32329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32330 if test $support_cet = "no"; then
32331 if test x$enable_bootstrap != xno \
32332 && test -z "${with_build_subdir}" \
32333 && (test ! -f ../stage_current \
32334 || test `cat ../stage_current` != "stage1"); then
32335 # Require CET support only for the final GCC build.
32336 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32337 else
32338 # Don't enable CET without CET support for non-bootstrap
32339 # build, in stage1 nor for build support.
32340 enable_cet=no
32344 esac
32345 CFLAGS="$cet_save_CFLAGS"
32348 may_have_cet=no
32349 enable_cet=no
32351 esac
32353 cet_save_CFLAGS="$CFLAGS"
32354 CFLAGS="$CFLAGS -fcf-protection=none"
32355 cet_save_LDFLAGS="$LDFLAGS"
32356 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32357 if test x$may_have_cet = xyes; then
32358 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32360 /* end confdefs.h. */
32363 main ()
32365 return 0;
32367 return 0;
32369 _ACEOF
32370 if ac_fn_cxx_try_link "$LINENO"; then :
32371 may_have_cet=yes
32372 else
32373 may_have_cet=no
32375 rm -f core conftest.err conftest.$ac_objext \
32376 conftest$ac_exeext conftest.$ac_ext
32379 if test x$may_have_cet = xyes; then
32380 if test x$cross_compiling = xno; then
32381 if test "$cross_compiling" = yes; then :
32382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32384 as_fn_error $? "cannot run test program while cross compiling
32385 See \`config.log' for more details" "$LINENO" 5; }
32386 else
32387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388 /* end confdefs.h. */
32391 main ()
32393 asm ("endbr32");
32394 return 0;
32397 _ACEOF
32398 if ac_fn_cxx_try_run "$LINENO"; then :
32399 have_multi_byte_nop=yes
32400 else
32401 have_multi_byte_nop=no
32403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32404 conftest.$ac_objext conftest.beam conftest.$ac_ext
32407 have_cet=no
32408 if test x$have_multi_byte_nop = xyes; then
32409 if test "$cross_compiling" = yes; then :
32410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32412 as_fn_error $? "cannot run test program while cross compiling
32413 See \`config.log' for more details" "$LINENO" 5; }
32414 else
32415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32416 /* end confdefs.h. */
32418 static void
32419 foo (void)
32423 static void
32424 __attribute__ ((noinline, noclone))
32425 xxx (void (*f) (void))
32427 f ();
32430 static void
32431 __attribute__ ((noinline, noclone))
32432 bar (void)
32434 xxx (foo);
32438 main ()
32440 bar ();
32441 return 0;
32444 _ACEOF
32445 if ac_fn_cxx_try_run "$LINENO"; then :
32446 have_cet=no
32447 else
32448 have_cet=yes
32450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32451 conftest.$ac_objext conftest.beam conftest.$ac_ext
32455 if test x$enable_cet = xno -a x$have_cet = xyes; then
32456 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32459 else
32460 # Enable CET in cross compiler if possible so that it will run on both
32461 # CET and non-CET hosts.
32462 have_cet=yes
32464 if test x$enable_cet = xyes; then
32465 CET_HOST_FLAGS="-fcf-protection"
32466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32467 $as_echo "yes" >&6; }
32468 else
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32470 $as_echo "no" >&6; }
32472 CFLAGS="$cet_save_CFLAGS"
32473 LDFLAGS="$cet_save_LDFLAGS"
32475 case x$enable_languages in
32476 *jit*)
32479 CET_HOST_FLAGS=
32481 esac
32484 # Check linker supports '-z bndplt'
32485 ld_bndplt_support=no
32486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32487 $as_echo_n "checking linker -z bndplt option... " >&6; }
32488 if test x"$ld_is_gold" = xno; then
32489 if test $in_tree_ld = yes ; then
32490 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
32491 ld_bndplt_support=yes
32493 elif test x$gcc_cv_ld != x; then
32494 # Check if linker supports -a bndplt option
32495 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32496 ld_bndplt_support=yes
32500 if test x"$ld_bndplt_support" = xyes; then
32502 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32506 $as_echo "$ld_bndplt_support" >&6; }
32508 # Check linker supports '--push-state'/'--pop-state'
32509 ld_pushpopstate_support=no
32510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32511 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32512 if test x"$ld_is_gold" = xno; then
32513 if test $in_tree_ld = yes ; then
32514 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
32515 ld_pushpopstate_support=yes
32517 elif test x$gcc_cv_ld != x; then
32518 # Check if linker supports --push-state/--pop-state options
32519 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32520 ld_pushpopstate_support=yes
32524 if test x"$ld_pushpopstate_support" = xyes; then
32526 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32530 $as_echo "$ld_pushpopstate_support" >&6; }
32532 # On s390, float_t has historically been statically defined as double for no
32533 # good reason. To comply with the C standard in the light of this definition,
32534 # gcc has evaluated float expressions in double precision when in
32535 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32536 # a smooth transition towards the new model used by most architectures, where
32537 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32538 # float_t from that, this behavior can be configured with
32539 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32540 # the old model. When omitted, native builds and cross compiles that have target
32541 # libc headers will detect whether libc clamps float_t to double and in that
32542 # case maintain the old model. Otherwise, they will default to the new model.
32543 # Check whether --enable-s390-excess-float-precision was given.
32544 if test "${enable_s390_excess_float_precision+set}" = set; then :
32545 enableval=$enable_s390_excess_float_precision;
32546 else
32547 enable_s390_excess_float_precision=auto
32551 case $target in
32552 s390*-linux*)
32553 if test x"$enable_s390_excess_float_precision" = xauto; then
32554 # Can we autodetect the behavior of the target libc?
32555 if test "$target" = "$host" -a "$host" = "$build"; then
32556 enable_s390_excess_float_precision=autodetect
32557 elif test "x$with_headers" != xno; then
32558 # cross build. are target headers available?
32559 # carefully coerce the build-system compiler to use target headers
32560 saved_CXXFLAGS="$CXXFLAGS"
32561 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32562 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32563 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32565 /* end confdefs.h. */
32567 #include <math.h>
32569 _ACEOF
32570 if ac_fn_cxx_try_compile "$LINENO"; then :
32571 enable_s390_excess_float_precision=autodetect
32573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32574 CXXFLAGS="$saved_CXXFLAGS"
32577 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32578 saved_CXXFLAGS="$CXXFLAGS"
32579 if ! test "$target" = "$host" -a "$host" = "$build"; then
32580 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32581 unset CROSS_TEST_CXXFLAGS
32583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32584 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32585 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32586 $as_echo_n "(cached) " >&6
32587 else
32589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32590 /* end confdefs.h. */
32592 #define __FLT_EVAL_METHOD__ 0
32593 #include <math.h>
32594 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32596 _ACEOF
32597 if ac_fn_cxx_try_compile "$LINENO"; then :
32598 gcc_cv_float_t_clamped_to_double=yes
32599 else
32600 gcc_cv_float_t_clamped_to_double=no
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32605 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32606 CXXFLAGS="$saved_CXXFLAGS"
32607 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32608 else
32609 # no way to detect behavior of target libc, default to new model
32610 enable_s390_excess_float_precision=no
32615 if test x"$enable_s390_excess_float_precision" = xyes; then
32617 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32621 esac
32623 # Configure the subdirectories
32624 # AC_CONFIG_SUBDIRS($subdirs)
32626 # Create the Makefile
32627 # and configure language subdirectories
32628 ac_config_files="$ac_config_files $all_outputs"
32631 ac_config_commands="$ac_config_commands default"
32633 cat >confcache <<\_ACEOF
32634 # This file is a shell script that caches the results of configure
32635 # tests run on this system so they can be shared between configure
32636 # scripts and configure runs, see configure's option --config-cache.
32637 # It is not useful on other systems. If it contains results you don't
32638 # want to keep, you may remove or edit it.
32640 # config.status only pays attention to the cache file if you give it
32641 # the --recheck option to rerun configure.
32643 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32645 # following values.
32647 _ACEOF
32649 # The following way of writing the cache mishandles newlines in values,
32650 # but we know of no workaround that is simple, portable, and efficient.
32651 # So, we kill variables containing newlines.
32652 # Ultrix sh set writes to stderr and can't be redirected directly,
32653 # and sets the high bit in the cache file unless we assign to the vars.
32655 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32656 eval ac_val=\$$ac_var
32657 case $ac_val in #(
32658 *${as_nl}*)
32659 case $ac_var in #(
32660 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32661 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32662 esac
32663 case $ac_var in #(
32664 _ | IFS | as_nl) ;; #(
32665 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32666 *) { eval $ac_var=; unset $ac_var;} ;;
32667 esac ;;
32668 esac
32669 done
32671 (set) 2>&1 |
32672 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32673 *${as_nl}ac_space=\ *)
32674 # `set' does not quote correctly, so add quotes: double-quote
32675 # substitution turns \\\\ into \\, and sed turns \\ into \.
32676 sed -n \
32677 "s/'/'\\\\''/g;
32678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32679 ;; #(
32681 # `set' quotes correctly as required by POSIX, so do not add quotes.
32682 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32684 esac |
32685 sort
32687 sed '
32688 /^ac_cv_env_/b end
32689 t clear
32690 :clear
32691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32692 t end
32693 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32694 :end' >>confcache
32695 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32696 if test -w "$cache_file"; then
32697 if test "x$cache_file" != "x/dev/null"; then
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32699 $as_echo "$as_me: updating cache $cache_file" >&6;}
32700 if test ! -f "$cache_file" || test -h "$cache_file"; then
32701 cat confcache >"$cache_file"
32702 else
32703 case $cache_file in #(
32704 */* | ?:*)
32705 mv -f confcache "$cache_file"$$ &&
32706 mv -f "$cache_file"$$ "$cache_file" ;; #(
32708 mv -f confcache "$cache_file" ;;
32709 esac
32712 else
32713 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32714 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32717 rm -f confcache
32719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32720 # Let make expand exec_prefix.
32721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32723 DEFS=-DHAVE_CONFIG_H
32725 ac_libobjs=
32726 ac_ltlibobjs=
32728 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32729 # 1. Remove the extension, and $U if already installed.
32730 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32731 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32733 # will be set to the directory where LIBOBJS objects are built.
32734 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32735 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32736 done
32737 LIBOBJS=$ac_libobjs
32739 LTLIBOBJS=$ac_ltlibobjs
32744 : "${CONFIG_STATUS=./config.status}"
32745 ac_write_fail=0
32746 ac_clean_files_save=$ac_clean_files
32747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32749 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32750 as_write_fail=0
32751 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32752 #! $SHELL
32753 # Generated by $as_me.
32754 # Run this file to recreate the current configuration.
32755 # Compiler output produced by configure, useful for debugging
32756 # configure, is in config.log if it exists.
32758 debug=false
32759 ac_cs_recheck=false
32760 ac_cs_silent=false
32762 SHELL=\${CONFIG_SHELL-$SHELL}
32763 export SHELL
32764 _ASEOF
32765 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32766 ## -------------------- ##
32767 ## M4sh Initialization. ##
32768 ## -------------------- ##
32770 # Be more Bourne compatible
32771 DUALCASE=1; export DUALCASE # for MKS sh
32772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32773 emulate sh
32774 NULLCMD=:
32775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32776 # is contrary to our usage. Disable this feature.
32777 alias -g '${1+"$@"}'='"$@"'
32778 setopt NO_GLOB_SUBST
32779 else
32780 case `(set -o) 2>/dev/null` in #(
32781 *posix*) :
32782 set -o posix ;; #(
32783 *) :
32785 esac
32789 as_nl='
32791 export as_nl
32792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32796 # Prefer a ksh shell builtin over an external printf program on Solaris,
32797 # but without wasting forks for bash or zsh.
32798 if test -z "$BASH_VERSION$ZSH_VERSION" \
32799 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32800 as_echo='print -r --'
32801 as_echo_n='print -rn --'
32802 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32803 as_echo='printf %s\n'
32804 as_echo_n='printf %s'
32805 else
32806 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32807 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32808 as_echo_n='/usr/ucb/echo -n'
32809 else
32810 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32811 as_echo_n_body='eval
32812 arg=$1;
32813 case $arg in #(
32814 *"$as_nl"*)
32815 expr "X$arg" : "X\\(.*\\)$as_nl";
32816 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32817 esac;
32818 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32820 export as_echo_n_body
32821 as_echo_n='sh -c $as_echo_n_body as_echo'
32823 export as_echo_body
32824 as_echo='sh -c $as_echo_body as_echo'
32827 # The user is always right.
32828 if test "${PATH_SEPARATOR+set}" != set; then
32829 PATH_SEPARATOR=:
32830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32831 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32832 PATH_SEPARATOR=';'
32837 # IFS
32838 # We need space, tab and new line, in precisely that order. Quoting is
32839 # there to prevent editors from complaining about space-tab.
32840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32841 # splitting by setting IFS to empty value.)
32842 IFS=" "" $as_nl"
32844 # Find who we are. Look in the path if we contain no directory separator.
32845 as_myself=
32846 case $0 in #((
32847 *[\\/]* ) as_myself=$0 ;;
32848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32849 for as_dir in $PATH
32851 IFS=$as_save_IFS
32852 test -z "$as_dir" && as_dir=.
32853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32854 done
32855 IFS=$as_save_IFS
32858 esac
32859 # We did not find ourselves, most probably we were run as `sh COMMAND'
32860 # in which case we are not to be found in the path.
32861 if test "x$as_myself" = x; then
32862 as_myself=$0
32864 if test ! -f "$as_myself"; then
32865 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32866 exit 1
32869 # Unset variables that we do not need and which cause bugs (e.g. in
32870 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32871 # suppresses any "Segmentation fault" message there. '((' could
32872 # trigger a bug in pdksh 5.2.14.
32873 for as_var in BASH_ENV ENV MAIL MAILPATH
32874 do eval test x\${$as_var+set} = xset \
32875 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32876 done
32877 PS1='$ '
32878 PS2='> '
32879 PS4='+ '
32881 # NLS nuisances.
32882 LC_ALL=C
32883 export LC_ALL
32884 LANGUAGE=C
32885 export LANGUAGE
32887 # CDPATH.
32888 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32891 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32892 # ----------------------------------------
32893 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32894 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32895 # script with STATUS, using 1 if that was 0.
32896 as_fn_error ()
32898 as_status=$1; test $as_status -eq 0 && as_status=1
32899 if test "$4"; then
32900 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32901 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32903 $as_echo "$as_me: error: $2" >&2
32904 as_fn_exit $as_status
32905 } # as_fn_error
32908 # as_fn_set_status STATUS
32909 # -----------------------
32910 # Set $? to STATUS, without forking.
32911 as_fn_set_status ()
32913 return $1
32914 } # as_fn_set_status
32916 # as_fn_exit STATUS
32917 # -----------------
32918 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32919 as_fn_exit ()
32921 set +e
32922 as_fn_set_status $1
32923 exit $1
32924 } # as_fn_exit
32926 # as_fn_unset VAR
32927 # ---------------
32928 # Portably unset VAR.
32929 as_fn_unset ()
32931 { eval $1=; unset $1;}
32933 as_unset=as_fn_unset
32934 # as_fn_append VAR VALUE
32935 # ----------------------
32936 # Append the text in VALUE to the end of the definition contained in VAR. Take
32937 # advantage of any shell optimizations that allow amortized linear growth over
32938 # repeated appends, instead of the typical quadratic growth present in naive
32939 # implementations.
32940 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32941 eval 'as_fn_append ()
32943 eval $1+=\$2
32945 else
32946 as_fn_append ()
32948 eval $1=\$$1\$2
32950 fi # as_fn_append
32952 # as_fn_arith ARG...
32953 # ------------------
32954 # Perform arithmetic evaluation on the ARGs, and store the result in the
32955 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32956 # must be portable across $(()) and expr.
32957 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32958 eval 'as_fn_arith ()
32960 as_val=$(( $* ))
32962 else
32963 as_fn_arith ()
32965 as_val=`expr "$@" || test $? -eq 1`
32967 fi # as_fn_arith
32970 if expr a : '\(a\)' >/dev/null 2>&1 &&
32971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32972 as_expr=expr
32973 else
32974 as_expr=false
32977 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32978 as_basename=basename
32979 else
32980 as_basename=false
32983 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32984 as_dirname=dirname
32985 else
32986 as_dirname=false
32989 as_me=`$as_basename -- "$0" ||
32990 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32991 X"$0" : 'X\(//\)$' \| \
32992 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32993 $as_echo X/"$0" |
32994 sed '/^.*\/\([^/][^/]*\)\/*$/{
32995 s//\1/
32998 /^X\/\(\/\/\)$/{
32999 s//\1/
33002 /^X\/\(\/\).*/{
33003 s//\1/
33006 s/.*/./; q'`
33008 # Avoid depending upon Character Ranges.
33009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33012 as_cr_digits='0123456789'
33013 as_cr_alnum=$as_cr_Letters$as_cr_digits
33015 ECHO_C= ECHO_N= ECHO_T=
33016 case `echo -n x` in #(((((
33017 -n*)
33018 case `echo 'xy\c'` in
33019 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33020 xy) ECHO_C='\c';;
33021 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33022 ECHO_T=' ';;
33023 esac;;
33025 ECHO_N='-n';;
33026 esac
33028 rm -f conf$$ conf$$.exe conf$$.file
33029 if test -d conf$$.dir; then
33030 rm -f conf$$.dir/conf$$.file
33031 else
33032 rm -f conf$$.dir
33033 mkdir conf$$.dir 2>/dev/null
33035 if (echo >conf$$.file) 2>/dev/null; then
33036 if ln -s conf$$.file conf$$ 2>/dev/null; then
33037 as_ln_s='ln -s'
33038 # ... but there are two gotchas:
33039 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33040 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33041 # In both cases, we have to default to `cp -pR'.
33042 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33043 as_ln_s='cp -pR'
33044 elif ln conf$$.file conf$$ 2>/dev/null; then
33045 as_ln_s=ln
33046 else
33047 as_ln_s='cp -pR'
33049 else
33050 as_ln_s='cp -pR'
33052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33053 rmdir conf$$.dir 2>/dev/null
33056 # as_fn_mkdir_p
33057 # -------------
33058 # Create "$as_dir" as a directory, including parents if necessary.
33059 as_fn_mkdir_p ()
33062 case $as_dir in #(
33063 -*) as_dir=./$as_dir;;
33064 esac
33065 test -d "$as_dir" || eval $as_mkdir_p || {
33066 as_dirs=
33067 while :; do
33068 case $as_dir in #(
33069 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33070 *) as_qdir=$as_dir;;
33071 esac
33072 as_dirs="'$as_qdir' $as_dirs"
33073 as_dir=`$as_dirname -- "$as_dir" ||
33074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33075 X"$as_dir" : 'X\(//\)[^/]' \| \
33076 X"$as_dir" : 'X\(//\)$' \| \
33077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33078 $as_echo X"$as_dir" |
33079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33080 s//\1/
33083 /^X\(\/\/\)[^/].*/{
33084 s//\1/
33087 /^X\(\/\/\)$/{
33088 s//\1/
33091 /^X\(\/\).*/{
33092 s//\1/
33095 s/.*/./; q'`
33096 test -d "$as_dir" && break
33097 done
33098 test -z "$as_dirs" || eval "mkdir $as_dirs"
33099 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33102 } # as_fn_mkdir_p
33103 if mkdir -p . 2>/dev/null; then
33104 as_mkdir_p='mkdir -p "$as_dir"'
33105 else
33106 test -d ./-p && rmdir ./-p
33107 as_mkdir_p=false
33111 # as_fn_executable_p FILE
33112 # -----------------------
33113 # Test if FILE is an executable regular file.
33114 as_fn_executable_p ()
33116 test -f "$1" && test -x "$1"
33117 } # as_fn_executable_p
33118 as_test_x='test -x'
33119 as_executable_p=as_fn_executable_p
33121 # Sed expression to map a string onto a valid CPP name.
33122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33124 # Sed expression to map a string onto a valid variable name.
33125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33128 exec 6>&1
33129 ## ----------------------------------- ##
33130 ## Main body of $CONFIG_STATUS script. ##
33131 ## ----------------------------------- ##
33132 _ASEOF
33133 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33136 # Save the log message, to keep $0 and so on meaningful, and to
33137 # report actual input values of CONFIG_FILES etc. instead of their
33138 # values after options handling.
33139 ac_log="
33140 This file was extended by $as_me, which was
33141 generated by GNU Autoconf 2.69. Invocation command line was
33143 CONFIG_FILES = $CONFIG_FILES
33144 CONFIG_HEADERS = $CONFIG_HEADERS
33145 CONFIG_LINKS = $CONFIG_LINKS
33146 CONFIG_COMMANDS = $CONFIG_COMMANDS
33147 $ $0 $@
33149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33152 _ACEOF
33154 case $ac_config_files in *"
33155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33156 esac
33158 case $ac_config_headers in *"
33159 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33160 esac
33163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33164 # Files that config.status was made for.
33165 config_files="$ac_config_files"
33166 config_headers="$ac_config_headers"
33167 config_links="$ac_config_links"
33168 config_commands="$ac_config_commands"
33170 _ACEOF
33172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33173 ac_cs_usage="\
33174 \`$as_me' instantiates files and other configuration actions
33175 from templates according to the current configuration. Unless the files
33176 and actions are specified as TAGs, all are instantiated by default.
33178 Usage: $0 [OPTION]... [TAG]...
33180 -h, --help print this help, then exit
33181 -V, --version print version number and configuration settings, then exit
33182 --config print configuration, then exit
33183 -q, --quiet, --silent
33184 do not print progress messages
33185 -d, --debug don't remove temporary files
33186 --recheck update $as_me by reconfiguring in the same conditions
33187 --file=FILE[:TEMPLATE]
33188 instantiate the configuration file FILE
33189 --header=FILE[:TEMPLATE]
33190 instantiate the configuration header FILE
33192 Configuration files:
33193 $config_files
33195 Configuration headers:
33196 $config_headers
33198 Configuration links:
33199 $config_links
33201 Configuration commands:
33202 $config_commands
33204 Report bugs to the package provider."
33206 _ACEOF
33207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33208 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33209 ac_cs_version="\\
33210 config.status
33211 configured by $0, generated by GNU Autoconf 2.69,
33212 with options \\"\$ac_cs_config\\"
33214 Copyright (C) 2012 Free Software Foundation, Inc.
33215 This config.status script is free software; the Free Software Foundation
33216 gives unlimited permission to copy, distribute and modify it."
33218 ac_pwd='$ac_pwd'
33219 srcdir='$srcdir'
33220 AWK='$AWK'
33221 test -n "\$AWK" || AWK=awk
33222 _ACEOF
33224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33225 # The default lists apply if the user does not specify any file.
33226 ac_need_defaults=:
33227 while test $# != 0
33229 case $1 in
33230 --*=?*)
33231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33232 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33233 ac_shift=:
33235 --*=)
33236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33237 ac_optarg=
33238 ac_shift=:
33241 ac_option=$1
33242 ac_optarg=$2
33243 ac_shift=shift
33245 esac
33247 case $ac_option in
33248 # Handling of the options.
33249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33250 ac_cs_recheck=: ;;
33251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33252 $as_echo "$ac_cs_version"; exit ;;
33253 --config | --confi | --conf | --con | --co | --c )
33254 $as_echo "$ac_cs_config"; exit ;;
33255 --debug | --debu | --deb | --de | --d | -d )
33256 debug=: ;;
33257 --file | --fil | --fi | --f )
33258 $ac_shift
33259 case $ac_optarg in
33260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33261 '') as_fn_error $? "missing file argument" ;;
33262 esac
33263 as_fn_append CONFIG_FILES " '$ac_optarg'"
33264 ac_need_defaults=false;;
33265 --header | --heade | --head | --hea )
33266 $ac_shift
33267 case $ac_optarg in
33268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33269 esac
33270 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33271 ac_need_defaults=false;;
33272 --he | --h)
33273 # Conflict between --help and --header
33274 as_fn_error $? "ambiguous option: \`$1'
33275 Try \`$0 --help' for more information.";;
33276 --help | --hel | -h )
33277 $as_echo "$ac_cs_usage"; exit ;;
33278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33280 ac_cs_silent=: ;;
33282 # This is an error.
33283 -*) as_fn_error $? "unrecognized option: \`$1'
33284 Try \`$0 --help' for more information." ;;
33286 *) as_fn_append ac_config_targets " $1"
33287 ac_need_defaults=false ;;
33289 esac
33290 shift
33291 done
33293 ac_configure_extra_args=
33295 if $ac_cs_silent; then
33296 exec 6>/dev/null
33297 ac_configure_extra_args="$ac_configure_extra_args --silent"
33300 _ACEOF
33301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33302 if \$ac_cs_recheck; then
33303 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33304 shift
33305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33306 CONFIG_SHELL='$SHELL'
33307 export CONFIG_SHELL
33308 exec "\$@"
33311 _ACEOF
33312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33313 exec 5>>config.log
33315 echo
33316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33317 ## Running $as_me. ##
33318 _ASBOX
33319 $as_echo "$ac_log"
33320 } >&5
33322 _ACEOF
33323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33325 # INIT-COMMANDS
33327 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33328 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33329 subdirs='$subdirs'
33331 _ACEOF
33333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33335 # Handling of arguments.
33336 for ac_config_target in $ac_config_targets
33338 case $ac_config_target in
33339 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33340 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33341 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33342 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33343 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33344 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33345 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33346 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33347 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33348 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33350 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33351 esac
33352 done
33355 # If the user did not use the arguments to specify the items to instantiate,
33356 # then the envvar interface is used. Set only those that are not.
33357 # We use the long form for the default assignment because of an extremely
33358 # bizarre bug on SunOS 4.1.3.
33359 if $ac_need_defaults; then
33360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33362 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33366 # Have a temporary directory for convenience. Make it in the build tree
33367 # simply because there is no reason against having it here, and in addition,
33368 # creating and moving files from /tmp can sometimes cause problems.
33369 # Hook for its removal unless debugging.
33370 # Note that there is a small window in which the directory will not be cleaned:
33371 # after its creation but before its name has been assigned to `$tmp'.
33372 $debug ||
33374 tmp= ac_tmp=
33375 trap 'exit_status=$?
33376 : "${ac_tmp:=$tmp}"
33377 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33379 trap 'as_fn_exit 1' 1 2 13 15
33381 # Create a (secure) tmp directory for tmp files.
33384 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33385 test -d "$tmp"
33386 } ||
33388 tmp=./conf$$-$RANDOM
33389 (umask 077 && mkdir "$tmp")
33390 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33391 ac_tmp=$tmp
33393 # Set up the scripts for CONFIG_FILES section.
33394 # No need to generate them if there are no CONFIG_FILES.
33395 # This happens for instance with `./config.status config.h'.
33396 if test -n "$CONFIG_FILES"; then
33398 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33399 ac_cs_awk_getline=:
33400 ac_cs_awk_pipe_init=
33401 ac_cs_awk_read_file='
33402 while ((getline aline < (F[key])) > 0)
33403 print(aline)
33404 close(F[key])'
33405 ac_cs_awk_pipe_fini=
33406 else
33407 ac_cs_awk_getline=false
33408 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33409 ac_cs_awk_read_file='
33410 print "|#_!!_#|"
33411 print "cat " F[key] " &&"
33412 '$ac_cs_awk_pipe_init
33413 # The final `:' finishes the AND list.
33414 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33416 ac_cr=`echo X | tr X '\015'`
33417 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33418 # But we know of no other shell where ac_cr would be empty at this
33419 # point, so we can use a bashism as a fallback.
33420 if test "x$ac_cr" = x; then
33421 eval ac_cr=\$\'\\r\'
33423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33425 ac_cs_awk_cr='\\r'
33426 else
33427 ac_cs_awk_cr=$ac_cr
33430 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33431 _ACEOF
33433 # Create commands to substitute file output variables.
33435 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33436 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33437 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33438 echo "_ACAWK" &&
33439 echo "_ACEOF"
33440 } >conf$$files.sh &&
33441 . ./conf$$files.sh ||
33442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33443 rm -f conf$$files.sh
33446 echo "cat >conf$$subs.awk <<_ACEOF" &&
33447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33448 echo "_ACEOF"
33449 } >conf$$subs.sh ||
33450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33452 ac_delim='%!_!# '
33453 for ac_last_try in false false false false false :; do
33454 . ./conf$$subs.sh ||
33455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33458 if test $ac_delim_n = $ac_delim_num; then
33459 break
33460 elif $ac_last_try; then
33461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33462 else
33463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33465 done
33466 rm -f conf$$subs.sh
33468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33469 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33470 _ACEOF
33471 sed -n '
33473 s/^/S["/; s/!.*/"]=/
33476 s/^[^!]*!//
33477 :repl
33478 t repl
33479 s/'"$ac_delim"'$//
33480 t delim
33483 s/\(.\{148\}\)..*/\1/
33484 t more1
33485 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33488 b repl
33489 :more1
33490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33493 s/.\{148\}//
33494 t nl
33495 :delim
33497 s/\(.\{148\}\)..*/\1/
33498 t more2
33499 s/["\\]/\\&/g; s/^/"/; s/$/"/
33502 :more2
33503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33506 s/.\{148\}//
33507 t delim
33508 ' <conf$$subs.awk | sed '
33509 /^[^""]/{
33511 s/\n//
33513 ' >>$CONFIG_STATUS || ac_write_fail=1
33514 rm -f conf$$subs.awk
33515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33516 _ACAWK
33517 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33518 for (key in S) S_is_set[key] = 1
33519 FS = "\a"
33520 \$ac_cs_awk_pipe_init
33523 line = $ 0
33524 nfields = split(line, field, "@")
33525 substed = 0
33526 len = length(field[1])
33527 for (i = 2; i < nfields; i++) {
33528 key = field[i]
33529 keylen = length(key)
33530 if (S_is_set[key]) {
33531 value = S[key]
33532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33533 len += length(value) + length(field[++i])
33534 substed = 1
33535 } else
33536 len += 1 + keylen
33538 if (nfields == 3 && !substed) {
33539 key = field[2]
33540 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33541 \$ac_cs_awk_read_file
33542 next
33545 print line
33547 \$ac_cs_awk_pipe_fini
33548 _ACAWK
33549 _ACEOF
33550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33553 else
33555 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33556 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33557 _ACEOF
33559 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33560 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33561 # trailing colons and then remove the whole line if VPATH becomes empty
33562 # (actually we leave an empty line to preserve line numbers).
33563 if test "x$srcdir" = x.; then
33564 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33566 s///
33567 s/^/:/
33568 s/[ ]*$/:/
33569 s/:\$(srcdir):/:/g
33570 s/:\${srcdir}:/:/g
33571 s/:@srcdir@:/:/g
33572 s/^:*//
33573 s/:*$//
33575 s/\(=[ ]*\).*/\1/
33577 s/\n//
33578 s/^[^=]*=[ ]*$//
33582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33583 fi # test -n "$CONFIG_FILES"
33585 # Set up the scripts for CONFIG_HEADERS section.
33586 # No need to generate them if there are no CONFIG_HEADERS.
33587 # This happens for instance with `./config.status Makefile'.
33588 if test -n "$CONFIG_HEADERS"; then
33589 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33590 BEGIN {
33591 _ACEOF
33593 # Transform confdefs.h into an awk script `defines.awk', embedded as
33594 # here-document in config.status, that substitutes the proper values into
33595 # config.h.in to produce config.h.
33597 # Create a delimiter string that does not exist in confdefs.h, to ease
33598 # handling of long lines.
33599 ac_delim='%!_!# '
33600 for ac_last_try in false false :; do
33601 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33602 if test -z "$ac_tt"; then
33603 break
33604 elif $ac_last_try; then
33605 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33606 else
33607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33609 done
33611 # For the awk script, D is an array of macro values keyed by name,
33612 # likewise P contains macro parameters if any. Preserve backslash
33613 # newline sequences.
33615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33616 sed -n '
33617 s/.\{148\}/&'"$ac_delim"'/g
33618 t rset
33619 :rset
33620 s/^[ ]*#[ ]*define[ ][ ]*/ /
33621 t def
33623 :def
33624 s/\\$//
33625 t bsnl
33626 s/["\\]/\\&/g
33627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33628 D["\1"]=" \3"/p
33629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33631 :bsnl
33632 s/["\\]/\\&/g
33633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33634 D["\1"]=" \3\\\\\\n"\\/p
33635 t cont
33636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33637 t cont
33639 :cont
33641 s/.\{148\}/&'"$ac_delim"'/g
33642 t clear
33643 :clear
33644 s/\\$//
33645 t bsnlc
33646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33648 :bsnlc
33649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33650 b cont
33651 ' <confdefs.h | sed '
33652 s/'"$ac_delim"'/"\\\
33653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33656 for (key in D) D_is_set[key] = 1
33657 FS = "\a"
33659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33660 line = \$ 0
33661 split(line, arg, " ")
33662 if (arg[1] == "#") {
33663 defundef = arg[2]
33664 mac1 = arg[3]
33665 } else {
33666 defundef = substr(arg[1], 2)
33667 mac1 = arg[2]
33669 split(mac1, mac2, "(") #)
33670 macro = mac2[1]
33671 prefix = substr(line, 1, index(line, defundef) - 1)
33672 if (D_is_set[macro]) {
33673 # Preserve the white space surrounding the "#".
33674 print prefix "define", macro P[macro] D[macro]
33675 next
33676 } else {
33677 # Replace #undef with comments. This is necessary, for example,
33678 # in the case of _POSIX_SOURCE, which is predefined and required
33679 # on some systems where configure will not decide to define it.
33680 if (defundef == "undef") {
33681 print "/*", prefix defundef, macro, "*/"
33682 next
33686 { print }
33687 _ACAWK
33688 _ACEOF
33689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33690 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33691 fi # test -n "$CONFIG_HEADERS"
33694 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33695 shift
33696 for ac_tag
33698 case $ac_tag in
33699 :[FHLC]) ac_mode=$ac_tag; continue;;
33700 esac
33701 case $ac_mode$ac_tag in
33702 :[FHL]*:*);;
33703 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33704 :[FH]-) ac_tag=-:-;;
33705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33706 esac
33707 ac_save_IFS=$IFS
33708 IFS=:
33709 set x $ac_tag
33710 IFS=$ac_save_IFS
33711 shift
33712 ac_file=$1
33713 shift
33715 case $ac_mode in
33716 :L) ac_source=$1;;
33717 :[FH])
33718 ac_file_inputs=
33719 for ac_f
33721 case $ac_f in
33722 -) ac_f="$ac_tmp/stdin";;
33723 *) # Look for the file first in the build tree, then in the source tree
33724 # (if the path is not absolute). The absolute path cannot be DOS-style,
33725 # because $ac_f cannot contain `:'.
33726 test -f "$ac_f" ||
33727 case $ac_f in
33728 [\\/$]*) false;;
33729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33730 esac ||
33731 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33732 esac
33733 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33734 as_fn_append ac_file_inputs " '$ac_f'"
33735 done
33737 # Let's still pretend it is `configure' which instantiates (i.e., don't
33738 # use $as_me), people would be surprised to read:
33739 # /* config.h. Generated by config.status. */
33740 configure_input='Generated from '`
33741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33742 `' by configure.'
33743 if test x"$ac_file" != x-; then
33744 configure_input="$ac_file. $configure_input"
33745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33746 $as_echo "$as_me: creating $ac_file" >&6;}
33748 # Neutralize special characters interpreted by sed in replacement strings.
33749 case $configure_input in #(
33750 *\&* | *\|* | *\\* )
33751 ac_sed_conf_input=`$as_echo "$configure_input" |
33752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33753 *) ac_sed_conf_input=$configure_input;;
33754 esac
33756 case $ac_tag in
33757 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33759 esac
33761 esac
33763 ac_dir=`$as_dirname -- "$ac_file" ||
33764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33765 X"$ac_file" : 'X\(//\)[^/]' \| \
33766 X"$ac_file" : 'X\(//\)$' \| \
33767 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33768 $as_echo X"$ac_file" |
33769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33770 s//\1/
33773 /^X\(\/\/\)[^/].*/{
33774 s//\1/
33777 /^X\(\/\/\)$/{
33778 s//\1/
33781 /^X\(\/\).*/{
33782 s//\1/
33785 s/.*/./; q'`
33786 as_dir="$ac_dir"; as_fn_mkdir_p
33787 ac_builddir=.
33789 case "$ac_dir" in
33790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33793 # A ".." for each directory in $ac_dir_suffix.
33794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33795 case $ac_top_builddir_sub in
33796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33798 esac ;;
33799 esac
33800 ac_abs_top_builddir=$ac_pwd
33801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33802 # for backward compatibility:
33803 ac_top_builddir=$ac_top_build_prefix
33805 case $srcdir in
33806 .) # We are building in place.
33807 ac_srcdir=.
33808 ac_top_srcdir=$ac_top_builddir_sub
33809 ac_abs_top_srcdir=$ac_pwd ;;
33810 [\\/]* | ?:[\\/]* ) # Absolute name.
33811 ac_srcdir=$srcdir$ac_dir_suffix;
33812 ac_top_srcdir=$srcdir
33813 ac_abs_top_srcdir=$srcdir ;;
33814 *) # Relative name.
33815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33816 ac_top_srcdir=$ac_top_build_prefix$srcdir
33817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33818 esac
33819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33822 case $ac_mode in
33825 # CONFIG_FILE
33828 _ACEOF
33830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33831 # If the template does not know about datarootdir, expand it.
33832 # FIXME: This hack should be removed a few years after 2.60.
33833 ac_datarootdir_hack=; ac_datarootdir_seen=
33834 ac_sed_dataroot='
33835 /datarootdir/ {
33839 /@datadir@/p
33840 /@docdir@/p
33841 /@infodir@/p
33842 /@localedir@/p
33843 /@mandir@/p'
33844 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33845 *datarootdir*) ac_datarootdir_seen=yes;;
33846 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33848 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33849 _ACEOF
33850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33851 ac_datarootdir_hack='
33852 s&@datadir@&$datadir&g
33853 s&@docdir@&$docdir&g
33854 s&@infodir@&$infodir&g
33855 s&@localedir@&$localedir&g
33856 s&@mandir@&$mandir&g
33857 s&\\\${datarootdir}&$datarootdir&g' ;;
33858 esac
33859 _ACEOF
33861 # Neutralize VPATH when `$srcdir' = `.'.
33862 # Shell code in configure.ac might set extrasub.
33863 # FIXME: do we really want to maintain this feature?
33864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33865 ac_sed_extra="$ac_vpsub
33866 $extrasub
33867 _ACEOF
33868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33871 s|@configure_input@|$ac_sed_conf_input|;t t
33872 s&@top_builddir@&$ac_top_builddir_sub&;t t
33873 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33874 s&@srcdir@&$ac_srcdir&;t t
33875 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33876 s&@top_srcdir@&$ac_top_srcdir&;t t
33877 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33878 s&@builddir@&$ac_builddir&;t t
33879 s&@abs_builddir@&$ac_abs_builddir&;t t
33880 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33881 $ac_datarootdir_hack
33883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33884 if $ac_cs_awk_getline; then
33885 $AWK -f "$ac_tmp/subs.awk"
33886 else
33887 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33888 fi \
33889 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33892 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33894 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33896 which seems to be undefined. Please make sure it is defined" >&5
33897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33898 which seems to be undefined. Please make sure it is defined" >&2;}
33900 rm -f "$ac_tmp/stdin"
33901 case $ac_file in
33902 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33903 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33904 esac \
33905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33909 # CONFIG_HEADER
33911 if test x"$ac_file" != x-; then
33913 $as_echo "/* $configure_input */" \
33914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33915 } >"$ac_tmp/config.h" \
33916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33917 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33918 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33919 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33920 else
33921 rm -f "$ac_file"
33922 mv "$ac_tmp/config.h" "$ac_file" \
33923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33925 else
33926 $as_echo "/* $configure_input */" \
33927 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33928 || as_fn_error $? "could not create -" "$LINENO" 5
33933 # CONFIG_LINK
33936 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33938 else
33939 # Prefer the file from the source tree if names are identical.
33940 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33941 ac_source=$srcdir/$ac_source
33944 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33945 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33947 if test ! -r "$ac_source"; then
33948 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33950 rm -f "$ac_file"
33952 # Try a relative symlink, then a hard link, then a copy.
33953 case $ac_source in
33954 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33955 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33956 esac
33957 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33958 ln "$ac_source" "$ac_file" 2>/dev/null ||
33959 cp -p "$ac_source" "$ac_file" ||
33960 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33963 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33964 $as_echo "$as_me: executing $ac_file commands" >&6;}
33966 esac
33969 case $ac_file$ac_mode in
33970 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33971 "gccdepdir":C)
33972 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33973 for lang in $subdirs c-family common analyzer rtl-ssa
33975 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33976 done ;;
33977 "as":F) chmod +x as ;;
33978 "collect-ld":F) chmod +x collect-ld ;;
33979 "nm":F) chmod +x nm ;;
33980 "dsymutil":F) chmod +x dsymutil ;;
33981 "default":C)
33982 case ${CONFIG_HEADERS} in
33983 *auto-host.h:config.in*)
33984 echo > cstamp-h ;;
33985 esac
33986 # Make sure all the subdirs exist.
33987 for d in $subdirs doc build common c-family
33989 test -d $d || mkdir $d
33990 done
33993 esac
33994 done # for ac_tag
33997 as_fn_exit 0
33998 _ACEOF
33999 ac_clean_files=$ac_clean_files_save
34001 test $ac_write_fail = 0 ||
34002 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34005 # configure is writing to config.log, and then calls config.status.
34006 # config.status does its own redirection, appending to config.log.
34007 # Unfortunately, on DOS this fails, as config.log is still kept open
34008 # by configure, so config.status won't be able to write to it; its
34009 # output is simply discarded. So we exec the FD to /dev/null,
34010 # effectively closing config.log, so it can be properly (re)opened and
34011 # appended to by config.status. When coming back to configure, we
34012 # need to make the FD available again.
34013 if test "$no_create" != yes; then
34014 ac_cs_success=:
34015 ac_config_status_args=
34016 test "$silent" = yes &&
34017 ac_config_status_args="$ac_config_status_args --quiet"
34018 exec 5>/dev/null
34019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34020 exec 5>>config.log
34021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34022 # would make configure fail if this is the last instruction.
34023 $ac_cs_success || as_fn_exit 1
34025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}