libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / configure
blob5acc42c1e4d931f32655a0c272a6917dfdb86e4f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 gt_needs=
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 CET_HOST_FLAGS
636 LD_PICFLAG
637 PICFLAG
638 enable_default_pie
639 enable_host_bind_now
640 enable_host_pie
641 enable_host_shared
642 enable_plugin
643 pluginlibs
644 ISLINC
645 ISLLIBS
646 GMPINC
647 GMPLIBS
648 target_cpu_default
649 rust_target_objs
650 d_target_objs
651 fortran_target_objs
652 cxx_target_objs
653 c_target_objs
654 use_gcc_stdint
655 xm_defines
656 xm_include_list
657 xm_file_list
658 tm_rust_include_list
659 tm_rust_file_list
660 tm_d_include_list
661 tm_d_file_list
662 tm_p_include_list
663 tm_p_file_list
664 tm_defines
665 tm_include_list
666 tm_file_list
667 common_out_object_file
668 common_out_file
669 out_object_file
670 out_file
671 objc_boehm_gc
672 md_file
673 local_prefix
674 lang_tree_files
675 lang_specs_files
676 lang_opt_files
677 install
678 out_host_hook_obj
679 host_xm_defines
680 host_xm_include_list
681 host_xm_file_list
682 host_exeext
683 gcc_gxx_libcxx_include_dir_add_sysroot
684 gcc_gxx_libcxx_include_dir
685 gcc_gxx_include_dir_add_sysroot
686 gcc_gxx_include_dir
687 gcc_config_arguments
688 float_h_file
689 extra_programs
690 extra_objs
691 extra_headers_list
692 user_headers_inc_next_post
693 user_headers_inc_next_pre
694 extra_gcc_objs
695 TM_MULTILIB_EXCEPTIONS_CONFIG
696 TM_MULTILIB_CONFIG
697 TM_ENDIAN_CONFIG
698 tmake_file
699 xmake_file
700 cpp_install_dir
701 selftest_languages
702 check_languages
703 build_file_translate
704 build_xm_defines
705 build_xm_include_list
706 build_xm_file_list
707 build_install_headers_dir
708 build_exeext
709 all_selected_languages
710 all_languages
711 all_lang_makefrags
712 all_lang_configurefrags
713 all_gtfiles
714 all_compilers
715 srcdir
716 subdirs
717 dollar
718 gcc_tooldir
719 enable_lto
720 DO_LINK_SERIALIZATION
721 DO_LINK_MUTEX
722 CSCOPE
723 ETAGS
724 CTAGS
725 MAINT
726 zlibinc
727 zlibdir
728 HOST_LIBS
729 enable_default_ssp
730 thin_archive_support
731 ld_soname_option
732 ld_version_script_option
733 libgcc_visibility
734 ORIGINAL_DSYMUTIL_FOR_TARGET
735 gcc_cv_dsymutil
736 gcc_cv_otool
737 gcc_cv_readelf
738 gcc_cv_objdump
739 ORIGINAL_NM_FOR_TARGET
740 gcc_cv_nm
741 ORIGINAL_LD_GOLD_FOR_TARGET
742 ORIGINAL_LD_BFD_FOR_TARGET
743 ORIGINAL_LD_FOR_TARGET
744 ORIGINAL_PLUGIN_LD_FOR_TARGET
745 gcc_cv_ld
746 ORIGINAL_AS_FOR_TARGET
747 gcc_cv_as
748 ENABLE_DARWIN_AT_RPATH_FALSE
749 ENABLE_DARWIN_AT_RPATH_TRUE
750 enable_fast_install
751 objdir
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 STRIP
758 OBJDUMP
759 ac_ct_DUMPBIN
760 DUMPBIN
762 FGREP
764 LIBTOOL
765 collect2
766 STMP_FIXINC
767 BUILD_LDFLAGS
768 BUILD_CXXFLAGS
769 BUILD_CFLAGS
770 CXX_FOR_BUILD
771 CC_FOR_BUILD
772 inhibit_libc
773 BUILD_SYSTEM_HEADER_DIR
774 SYSTEM_HEADER_DIR
776 CROSS
777 CATOBJEXT
778 GENCAT
779 INSTOBJEXT
780 DATADIRNAME
781 CATALOGS
782 INCINTL
783 LIBINTL_DEP
784 POSUB
785 LTLIBINTL
786 LIBINTL
787 INTLLIBS
788 INTL_MACOSX_LIBS
789 MSGMERGE
790 XGETTEXT
791 GMSGFMT
792 MSGFMT
793 USE_NLS
794 MKINSTALLDIRS
795 INSTALL_SCRIPT
796 get_gcc_base_ver
797 HAVE_AUTO_BUILD
798 extra_opt_files
799 extra_modes_file
800 NATIVE_SYSTEM_HEADER_DIR
801 objext
802 manext
803 LIBICONV_DEP
804 LTLIBICONV
805 LIBICONV
806 ZSTD_LDFLAGS
807 ZSTD_CPPFLAGS
808 ZSTD_LIB
809 ZSTD_INCLUDE
810 DL_LIB
811 LDEXP_LIB
812 EXTRA_GCC_LIBS
813 GNAT_LIBEXC
814 COLLECT2_LIBS
815 CXXDEPMODE
816 DEPDIR
817 am__leading_dot
818 doc_build_sys
821 HAVE_PYTHON
822 PYTHON
823 BISON
824 FLEX
825 GENERATED_MANPAGES
826 MAKEINFO_TOC_INLINE_FLAG
827 BUILD_INFO
828 MAKEINFO
829 have_mktemp_command
830 make_compare_target
831 INSTALL_DATA
832 INSTALL_PROGRAM
833 INSTALL
834 ranlib_flags
835 RANLIB
837 LN_S
839 SET_MAKE
840 omp_device_property_deps
841 omp_device_properties
842 accel_dir_suffix
843 real_target_noncanonical
844 enable_as_accelerator
845 gnat_install_lib
846 REPORT_BUGS_TEXI
847 REPORT_BUGS_TO
848 PKGVERSION
849 CONFIGURE_SPECS
850 enable_gcov
851 enable_shared
852 enable_fixed_point
853 enable_decimal_float
854 DEFAULT_INSNEMIT_PARTITIONS
855 DEFAULT_MATCHPD_PARTITIONS
856 with_float
857 with_cpu
858 enable_multiarch
859 enable_multilib
860 coverage_flags
861 valgrind_command
862 valgrind_path_defines
863 valgrind_path
864 TREECHECKING
865 noexception_flags
866 warn_cxxflags
867 warn_cflags
868 c_strict_warn
869 strict_warn
870 c_loose_warn
871 loose_warn
872 aliasing_flags
874 EGREP
875 GREP
876 CXXCPP
877 PICFLAG_FOR_TARGET
878 GDCFLAGS
880 GNATMAKE
881 GNATBIND
882 ac_ct_CXX
883 CXXFLAGS
885 OBJEXT
886 EXEEXT
887 ac_ct_CC
888 CPPFLAGS
889 LDFLAGS
890 CFLAGS
892 GENINSRC
893 CROSS_SYSTEM_HEADER_DIR
894 TARGET_SYSTEM_ROOT_DEFINE
895 TARGET_SYSTEM_ROOT
896 SYSROOT_CFLAGS_FOR_TARGET
897 target_subdir
898 host_subdir
899 build_subdir
900 build_libsubdir
901 target_noncanonical
902 host_noncanonical
903 target_os
904 target_vendor
905 target_cpu
906 target
907 host_os
908 host_vendor
909 host_cpu
910 host
911 build_os
912 build_vendor
913 build_cpu
914 build
915 target_alias
916 host_alias
917 build_alias
918 LIBS
919 ECHO_T
920 ECHO_N
921 ECHO_C
922 DEFS
923 mandir
924 localedir
925 libdir
926 psdir
927 pdfdir
928 dvidir
929 htmldir
930 infodir
931 docdir
932 oldincludedir
933 includedir
934 localstatedir
935 sharedstatedir
936 sysconfdir
937 datadir
938 datarootdir
939 libexecdir
940 sbindir
941 bindir
942 program_transform_name
943 prefix
944 exec_prefix
945 PACKAGE_URL
946 PACKAGE_BUGREPORT
947 PACKAGE_STRING
948 PACKAGE_VERSION
949 PACKAGE_TARNAME
950 PACKAGE_NAME
951 PATH_SEPARATOR
952 SHELL'
953 ac_subst_files='option_includes
954 language_hooks'
955 ac_user_opts='
956 enable_option_checking
957 with_build_libsubdir
958 with_local_prefix
959 with_native_system_header_dir
960 with_build_sysroot
961 with_sysroot
962 with_gxx_include_dir
963 with_gxx_libcxx_include_dir
964 with_cpp_install_dir
965 enable_generated_files_in_srcdir
966 with_gnu_ld
967 with_ld
968 with_demangler_in_ld
969 with_dsymutil
970 with_gnu_as
971 with_as
972 enable_largefile
973 enable_build_format_warnings
974 enable_werror_always
975 enable_checking
976 enable_coverage
977 enable_gather_detailed_mem_stats
978 enable_valgrind_annotations
979 enable_multilib
980 enable_multiarch
981 with_stack_clash_protection_guard_size
982 with_matchpd_partitions
983 with_insnemit_partitions
984 enable___cxa_atexit
985 enable_decimal_float
986 enable_fixed_point
987 enable_threads
988 enable_tls
989 enable_vtable_verify
990 enable_analyzer
991 enable_objc_gc
992 with_dwarf2
993 enable_shared
994 enable_gcov
995 with_specs
996 with_pkgversion
997 with_bugurl
998 with_documentation_root_url
999 with_changes_root_url
1000 enable_languages
1001 with_multilib_list
1002 with_multilib_generator
1003 with_zstd
1004 with_zstd_include
1005 with_zstd_lib
1006 enable_rpath
1007 with_libiconv_prefix
1008 with_libiconv_type
1009 enable_sjlj_exceptions
1010 enable_win32_utf8_manifest
1011 with_gcc_major_version_only
1012 enable_nls
1013 with_libintl_prefix
1014 with_libintl_type
1015 enable_secureplt
1016 enable_mingw_wildcard
1017 enable_large_address_aware
1018 enable_leading_mingw64_underscores
1019 enable_cld
1020 enable_frame_pointer
1021 enable_win32_registry
1022 enable_static
1023 with_pic
1024 enable_fast_install
1025 enable_libtool_lock
1026 enable_darwin_at_rpath
1027 with_darwin_extra_rpath
1028 enable_ld
1029 enable_gold
1030 with_plugin_ld
1031 enable_gnu_indirect_function
1032 enable_initfini_array
1033 enable_comdat
1034 enable_newlib_nano_formatted_io
1035 enable_standard_branch_protection
1036 enable_fix_cortex_a53_835769
1037 enable_fix_cortex_a53_843419
1038 with_glibc_version
1039 enable_gnu_unique_object
1040 enable_linker_build_id
1041 enable_libssp
1042 enable_default_ssp
1043 with_long_double_128
1044 with_long_double_format
1045 with_gc
1046 with_system_zlib
1047 enable_maintainer_mode
1048 enable_link_mutex
1049 enable_link_serialization
1050 enable_version_specific_runtime_libs
1051 enable_plugin
1052 enable_host_shared
1053 enable_host_pie
1054 enable_host_bind_now
1055 enable_libquadmath_support
1056 with_linker_hash_style
1057 with_diagnostics_color
1058 with_diagnostics_urls
1059 enable_default_pie
1060 enable_cet
1061 enable_s390_excess_float_precision
1063 ac_precious_vars='build_alias
1064 host_alias
1065 target_alias
1067 CFLAGS
1068 LDFLAGS
1069 LIBS
1070 CPPFLAGS
1072 CXXFLAGS
1074 CXXCPP
1076 GMPLIBS
1077 GMPINC
1078 ISLLIBS
1079 ISLINC'
1082 # Initialize some variables set by options.
1083 ac_init_help=
1084 ac_init_version=false
1085 ac_unrecognized_opts=
1086 ac_unrecognized_sep=
1087 # The variables have the same names as the options, with
1088 # dashes changed to underlines.
1089 cache_file=/dev/null
1090 exec_prefix=NONE
1091 no_create=
1092 no_recursion=
1093 prefix=NONE
1094 program_prefix=NONE
1095 program_suffix=NONE
1096 program_transform_name=s,x,x,
1097 silent=
1098 site=
1099 srcdir=
1100 verbose=
1101 x_includes=NONE
1102 x_libraries=NONE
1104 # Installation directory options.
1105 # These are left unexpanded so users can "make install exec_prefix=/foo"
1106 # and all the variables that are supposed to be based on exec_prefix
1107 # by default will actually change.
1108 # Use braces instead of parens because sh, perl, etc. also accept them.
1109 # (The list follows the same order as the GNU Coding Standards.)
1110 bindir='${exec_prefix}/bin'
1111 sbindir='${exec_prefix}/sbin'
1112 libexecdir='${exec_prefix}/libexec'
1113 datarootdir='${prefix}/share'
1114 datadir='${datarootdir}'
1115 sysconfdir='${prefix}/etc'
1116 sharedstatedir='${prefix}/com'
1117 localstatedir='${prefix}/var'
1118 includedir='${prefix}/include'
1119 oldincludedir='/usr/include'
1120 docdir='${datarootdir}/doc/${PACKAGE}'
1121 infodir='${datarootdir}/info'
1122 htmldir='${docdir}'
1123 dvidir='${docdir}'
1124 pdfdir='${docdir}'
1125 psdir='${docdir}'
1126 libdir='${exec_prefix}/lib'
1127 localedir='${datarootdir}/locale'
1128 mandir='${datarootdir}/man'
1130 ac_prev=
1131 ac_dashdash=
1132 for ac_option
1134 # If the previous option needs an argument, assign it.
1135 if test -n "$ac_prev"; then
1136 eval $ac_prev=\$ac_option
1137 ac_prev=
1138 continue
1141 case $ac_option in
1142 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1143 *=) ac_optarg= ;;
1144 *) ac_optarg=yes ;;
1145 esac
1147 # Accept the important Cygnus configure options, so we can diagnose typos.
1149 case $ac_dashdash$ac_option in
1151 ac_dashdash=yes ;;
1153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1154 ac_prev=bindir ;;
1155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1156 bindir=$ac_optarg ;;
1158 -build | --build | --buil | --bui | --bu)
1159 ac_prev=build_alias ;;
1160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1161 build_alias=$ac_optarg ;;
1163 -cache-file | --cache-file | --cache-fil | --cache-fi \
1164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1165 ac_prev=cache_file ;;
1166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1168 cache_file=$ac_optarg ;;
1170 --config-cache | -C)
1171 cache_file=config.cache ;;
1173 -datadir | --datadir | --datadi | --datad)
1174 ac_prev=datadir ;;
1175 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1176 datadir=$ac_optarg ;;
1178 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1179 | --dataroo | --dataro | --datar)
1180 ac_prev=datarootdir ;;
1181 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1182 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1183 datarootdir=$ac_optarg ;;
1185 -disable-* | --disable-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid feature name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "enable_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval enable_$ac_useropt=no ;;
1201 -docdir | --docdir | --docdi | --doc | --do)
1202 ac_prev=docdir ;;
1203 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1204 docdir=$ac_optarg ;;
1206 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1207 ac_prev=dvidir ;;
1208 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1209 dvidir=$ac_optarg ;;
1211 -enable-* | --enable-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid feature name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1220 "enable_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval enable_$ac_useropt=\$ac_optarg ;;
1227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229 | --exec | --exe | --ex)
1230 ac_prev=exec_prefix ;;
1231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233 | --exec=* | --exe=* | --ex=*)
1234 exec_prefix=$ac_optarg ;;
1236 -gas | --gas | --ga | --g)
1237 # Obsolete; use --with-gas.
1238 with_gas=yes ;;
1240 -help | --help | --hel | --he | -h)
1241 ac_init_help=long ;;
1242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243 ac_init_help=recursive ;;
1244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245 ac_init_help=short ;;
1247 -host | --host | --hos | --ho)
1248 ac_prev=host_alias ;;
1249 -host=* | --host=* | --hos=* | --ho=*)
1250 host_alias=$ac_optarg ;;
1252 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253 ac_prev=htmldir ;;
1254 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255 | --ht=*)
1256 htmldir=$ac_optarg ;;
1258 -includedir | --includedir | --includedi | --included | --include \
1259 | --includ | --inclu | --incl | --inc)
1260 ac_prev=includedir ;;
1261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262 | --includ=* | --inclu=* | --incl=* | --inc=*)
1263 includedir=$ac_optarg ;;
1265 -infodir | --infodir | --infodi | --infod | --info | --inf)
1266 ac_prev=infodir ;;
1267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268 infodir=$ac_optarg ;;
1270 -libdir | --libdir | --libdi | --libd)
1271 ac_prev=libdir ;;
1272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273 libdir=$ac_optarg ;;
1275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276 | --libexe | --libex | --libe)
1277 ac_prev=libexecdir ;;
1278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279 | --libexe=* | --libex=* | --libe=*)
1280 libexecdir=$ac_optarg ;;
1282 -localedir | --localedir | --localedi | --localed | --locale)
1283 ac_prev=localedir ;;
1284 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285 localedir=$ac_optarg ;;
1287 -localstatedir | --localstatedir | --localstatedi | --localstated \
1288 | --localstate | --localstat | --localsta | --localst | --locals)
1289 ac_prev=localstatedir ;;
1290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292 localstatedir=$ac_optarg ;;
1294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295 ac_prev=mandir ;;
1296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297 mandir=$ac_optarg ;;
1299 -nfp | --nfp | --nf)
1300 # Obsolete; use --without-fp.
1301 with_fp=no ;;
1303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304 | --no-cr | --no-c | -n)
1305 no_create=yes ;;
1307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309 no_recursion=yes ;;
1311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313 | --oldin | --oldi | --old | --ol | --o)
1314 ac_prev=oldincludedir ;;
1315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318 oldincludedir=$ac_optarg ;;
1320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321 ac_prev=prefix ;;
1322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323 prefix=$ac_optarg ;;
1325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326 | --program-pre | --program-pr | --program-p)
1327 ac_prev=program_prefix ;;
1328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330 program_prefix=$ac_optarg ;;
1332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333 | --program-suf | --program-su | --program-s)
1334 ac_prev=program_suffix ;;
1335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337 program_suffix=$ac_optarg ;;
1339 -program-transform-name | --program-transform-name \
1340 | --program-transform-nam | --program-transform-na \
1341 | --program-transform-n | --program-transform- \
1342 | --program-transform | --program-transfor \
1343 | --program-transfo | --program-transf \
1344 | --program-trans | --program-tran \
1345 | --progr-tra | --program-tr | --program-t)
1346 ac_prev=program_transform_name ;;
1347 -program-transform-name=* | --program-transform-name=* \
1348 | --program-transform-nam=* | --program-transform-na=* \
1349 | --program-transform-n=* | --program-transform-=* \
1350 | --program-transform=* | --program-transfor=* \
1351 | --program-transfo=* | --program-transf=* \
1352 | --program-trans=* | --program-tran=* \
1353 | --progr-tra=* | --program-tr=* | --program-t=*)
1354 program_transform_name=$ac_optarg ;;
1356 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357 ac_prev=pdfdir ;;
1358 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359 pdfdir=$ac_optarg ;;
1361 -psdir | --psdir | --psdi | --psd | --ps)
1362 ac_prev=psdir ;;
1363 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364 psdir=$ac_optarg ;;
1366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367 | -silent | --silent | --silen | --sile | --sil)
1368 silent=yes ;;
1370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371 ac_prev=sbindir ;;
1372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373 | --sbi=* | --sb=*)
1374 sbindir=$ac_optarg ;;
1376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378 | --sharedst | --shareds | --shared | --share | --shar \
1379 | --sha | --sh)
1380 ac_prev=sharedstatedir ;;
1381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384 | --sha=* | --sh=*)
1385 sharedstatedir=$ac_optarg ;;
1387 -site | --site | --sit)
1388 ac_prev=site ;;
1389 -site=* | --site=* | --sit=*)
1390 site=$ac_optarg ;;
1392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393 ac_prev=srcdir ;;
1394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395 srcdir=$ac_optarg ;;
1397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398 | --syscon | --sysco | --sysc | --sys | --sy)
1399 ac_prev=sysconfdir ;;
1400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402 sysconfdir=$ac_optarg ;;
1404 -target | --target | --targe | --targ | --tar | --ta | --t)
1405 ac_prev=target_alias ;;
1406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407 target_alias=$ac_optarg ;;
1409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410 verbose=yes ;;
1412 -version | --version | --versio | --versi | --vers | -V)
1413 ac_init_version=: ;;
1415 -with-* | --with-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error $? "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1424 "with_$ac_useropt"
1425 "*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval with_$ac_useropt=\$ac_optarg ;;
1431 -without-* | --without-*)
1432 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1433 # Reject names that are not valid shell variable names.
1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435 as_fn_error $? "invalid package name: $ac_useropt"
1436 ac_useropt_orig=$ac_useropt
1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438 case $ac_user_opts in
1440 "with_$ac_useropt"
1441 "*) ;;
1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1443 ac_unrecognized_sep=', ';;
1444 esac
1445 eval with_$ac_useropt=no ;;
1447 --x)
1448 # Obsolete; use --with-x.
1449 with_x=yes ;;
1451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1452 | --x-incl | --x-inc | --x-in | --x-i)
1453 ac_prev=x_includes ;;
1454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1456 x_includes=$ac_optarg ;;
1458 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1460 ac_prev=x_libraries ;;
1461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1463 x_libraries=$ac_optarg ;;
1465 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1466 Try \`$0 --help' for more information"
1469 *=*)
1470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1471 # Reject names that are not valid shell variable names.
1472 case $ac_envvar in #(
1473 '' | [0-9]* | *[!_$as_cr_alnum]* )
1474 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1475 esac
1476 eval $ac_envvar=\$ac_optarg
1477 export $ac_envvar ;;
1480 # FIXME: should be removed in autoconf 3.0.
1481 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1483 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1484 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1487 esac
1488 done
1490 if test -n "$ac_prev"; then
1491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1492 as_fn_error $? "missing argument to $ac_option"
1495 if test -n "$ac_unrecognized_opts"; then
1496 case $enable_option_checking in
1497 no) ;;
1498 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1499 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1500 esac
1503 # Check all directory arguments for consistency.
1504 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1505 datadir sysconfdir sharedstatedir localstatedir includedir \
1506 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1507 libdir localedir mandir
1509 eval ac_val=\$$ac_var
1510 # Remove trailing slashes.
1511 case $ac_val in
1512 */ )
1513 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1514 eval $ac_var=\$ac_val;;
1515 esac
1516 # Be sure to have absolute directory names.
1517 case $ac_val in
1518 [\\/$]* | ?:[\\/]* ) continue;;
1519 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1520 esac
1521 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1522 done
1524 # There might be people who depend on the old broken behavior: `$host'
1525 # used to hold the argument of --host etc.
1526 # FIXME: To remove some day.
1527 build=$build_alias
1528 host=$host_alias
1529 target=$target_alias
1531 # FIXME: To remove some day.
1532 if test "x$host_alias" != x; then
1533 if test "x$build_alias" = x; then
1534 cross_compiling=maybe
1535 elif test "x$build_alias" != "x$host_alias"; then
1536 cross_compiling=yes
1540 ac_tool_prefix=
1541 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543 test "$silent" = yes && exec 6>/dev/null
1546 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1547 ac_ls_di=`ls -di .` &&
1548 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1549 as_fn_error $? "working directory cannot be determined"
1550 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1551 as_fn_error $? "pwd does not report name of working directory"
1554 # Find the source files, if location was not specified.
1555 if test -z "$srcdir"; then
1556 ac_srcdir_defaulted=yes
1557 # Try the directory containing this script, then the parent directory.
1558 ac_confdir=`$as_dirname -- "$as_myself" ||
1559 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1560 X"$as_myself" : 'X\(//\)[^/]' \| \
1561 X"$as_myself" : 'X\(//\)$' \| \
1562 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1563 $as_echo X"$as_myself" |
1564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1565 s//\1/
1568 /^X\(\/\/\)[^/].*/{
1569 s//\1/
1572 /^X\(\/\/\)$/{
1573 s//\1/
1576 /^X\(\/\).*/{
1577 s//\1/
1580 s/.*/./; q'`
1581 srcdir=$ac_confdir
1582 if test ! -r "$srcdir/$ac_unique_file"; then
1583 srcdir=..
1585 else
1586 ac_srcdir_defaulted=no
1588 if test ! -r "$srcdir/$ac_unique_file"; then
1589 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1590 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593 ac_abs_confdir=`(
1594 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1595 pwd)`
1596 # When building in place, set srcdir=.
1597 if test "$ac_abs_confdir" = "$ac_pwd"; then
1598 srcdir=.
1600 # Remove unnecessary trailing slashes from srcdir.
1601 # Double slashes in file names in object file debugging info
1602 # mess up M-x gdb in Emacs.
1603 case $srcdir in
1604 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1605 esac
1606 for ac_var in $ac_precious_vars; do
1607 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1608 eval ac_env_${ac_var}_value=\$${ac_var}
1609 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1611 done
1614 # Report the --help message.
1616 if test "$ac_init_help" = "long"; then
1617 # Omit some internal or obsolete options to make the list less imposing.
1618 # This message is too long to be a string in the A/UX 3.1 sh.
1619 cat <<_ACEOF
1620 \`configure' configures this package to adapt to many kinds of systems.
1622 Usage: $0 [OPTION]... [VAR=VALUE]...
1624 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1625 VAR=VALUE. See below for descriptions of some of the useful variables.
1627 Defaults for the options are specified in brackets.
1629 Configuration:
1630 -h, --help display this help and exit
1631 --help=short display options specific to this package
1632 --help=recursive display the short help of all the included packages
1633 -V, --version display version information and exit
1634 -q, --quiet, --silent do not print \`checking ...' messages
1635 --cache-file=FILE cache test results in FILE [disabled]
1636 -C, --config-cache alias for \`--cache-file=config.cache'
1637 -n, --no-create do not create output files
1638 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640 Installation directories:
1641 --prefix=PREFIX install architecture-independent files in PREFIX
1642 [$ac_default_prefix]
1643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1644 [PREFIX]
1646 By default, \`make install' will install all the files in
1647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1649 for instance \`--prefix=\$HOME'.
1651 For better control, use the options below.
1653 Fine tuning of the installation directories:
1654 --bindir=DIR user executables [EPREFIX/bin]
1655 --sbindir=DIR system admin executables [EPREFIX/sbin]
1656 --libexecdir=DIR program executables [EPREFIX/libexec]
1657 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1658 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1659 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1660 --libdir=DIR object code libraries [EPREFIX/lib]
1661 --includedir=DIR C header files [PREFIX/include]
1662 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1663 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1665 --infodir=DIR info documentation [DATAROOTDIR/info]
1666 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1667 --mandir=DIR man documentation [DATAROOTDIR/man]
1668 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1669 --htmldir=DIR html documentation [DOCDIR]
1670 --dvidir=DIR dvi documentation [DOCDIR]
1671 --pdfdir=DIR pdf documentation [DOCDIR]
1672 --psdir=DIR ps documentation [DOCDIR]
1673 _ACEOF
1675 cat <<\_ACEOF
1677 Program names:
1678 --program-prefix=PREFIX prepend PREFIX to installed program names
1679 --program-suffix=SUFFIX append SUFFIX to installed program names
1680 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682 System types:
1683 --build=BUILD configure for building on BUILD [guessed]
1684 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1685 --target=TARGET configure for building compilers for TARGET [HOST]
1686 _ACEOF
1689 if test -n "$ac_init_help"; then
1691 cat <<\_ACEOF
1693 Optional Features:
1694 --disable-option-checking ignore unrecognized --enable/--with options
1695 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1696 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1697 --enable-generated-files-in-srcdir
1698 put copies of generated files in source dir intended
1699 for creating source tarballs for users without
1700 texinfo bison or flex
1701 --disable-largefile omit support for large files
1702 --disable-build-format-warnings
1703 don't use -Wformat while building GCC
1704 --enable-werror-always enable -Werror despite compiler version
1705 --enable-checking[=LIST]
1706 enable expensive run-time checks. With LIST, enable
1707 only specific categories of checks. Categories are:
1708 yes,no,all,none,release. Flags are:
1709 assert,df,extra,fold,gc,gcac,gimple,misc,
1710 rtlflag,rtl,runtime,tree,valgrind,types
1711 --enable-coverage[=LEVEL]
1712 enable compiler's code coverage collection. Use to
1713 measure compiler performance and locate unused parts
1714 of the compiler. With LEVEL, specify optimization.
1715 Values are opt, noopt, default is noopt
1716 --enable-gather-detailed-mem-stats
1717 enable detailed memory allocation stats gathering
1718 --enable-valgrind-annotations
1719 enable valgrind runtime interaction
1720 --enable-multilib enable library support for multiple ABIs
1721 --enable-multiarch enable support for multiarch paths
1722 --enable-__cxa_atexit enable __cxa_atexit for C++
1723 --enable-decimal-float={no,yes,bid,dpd}
1724 enable decimal float extension to C. Selecting 'bid'
1725 or 'dpd' choses which decimal floating point format
1726 to use
1727 --enable-fixed-point enable fixed-point arithmetic extension to C
1728 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1729 package
1730 --enable-tls enable or disable generation of tls code overriding
1731 the assembler check for tls support
1732 --enable-vtable-verify enable vtable verification feature
1733 --disable-analyzer disable -fanalyzer static analyzer
1734 --enable-objc-gc enable the use of Boehm's garbage collector with the
1735 GNU Objective-C runtime
1736 --disable-shared don't provide a shared libgcc
1737 --disable-gcov don't provide libgcov and related host tools
1738 --enable-languages=LIST specify which front-ends to build
1739 --disable-rpath do not hardcode runtime library paths
1740 --enable-sjlj-exceptions
1741 arrange to use setjmp/longjmp exception handling
1742 --disable-win32-utf8-manifest
1743 disable embedding a utf8 manifest on mingw hosts
1744 --enable-win32-utf8-manifest
1745 enable embedding a utf8 manifest on mingw hosts
1746 (default)
1747 --disable-nls do not use Native Language Support
1748 --enable-secureplt enable -msecure-plt by default for PowerPC
1749 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1750 Default to platform configuration
1751 --enable-large-address-aware
1752 Link mingw executables with --large-address-aware
1753 --enable-leading-mingw64-underscores
1754 enable leading underscores on 64 bit mingw targets
1755 --enable-cld enable -mcld by default for 32bit x86
1756 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1757 --disable-win32-registry
1758 disable lookup of installation paths in the Registry
1759 on Windows hosts
1760 --enable-win32-registry enable registry lookup (default)
1761 --enable-win32-registry=KEY
1762 use KEY instead of GCC version as the last portion
1763 of the registry key
1764 --enable-shared[=PKGS] build shared libraries [default=yes]
1765 --enable-static[=PKGS] build static libraries [default=yes]
1766 --enable-fast-install[=PKGS]
1767 optimize for fast installation [default=yes]
1768 --disable-libtool-lock avoid locking (might break parallel builds)
1769 --enable-darwin-at-rpath
1770 install libraries with @rpath/library-name, requires
1771 rpaths to be added to executables
1772 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1773 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1774 --enable-gnu-indirect-function
1775 enable the use of the @gnu_indirect_function to
1776 glibc systems
1777 --enable-initfini-array use .init_array/.fini_array sections
1778 --enable-comdat enable COMDAT group support
1779 --enable-newlib-nano-formatted-io
1780 Use nano version formatted IO
1782 --enable-standard-branch-protection
1783 enable Branch Target Identification Mechanism and
1784 Return Address Signing by default for AArch64
1785 --disable-standard-branch-protection
1786 disable Branch Target Identification Mechanism and
1787 Return Address Signing by default for AArch64
1790 --enable-fix-cortex-a53-835769
1791 enable workaround for AArch64 Cortex-A53 erratum
1792 835769 by default
1793 --disable-fix-cortex-a53-835769
1794 disable workaround for AArch64 Cortex-A53 erratum
1795 835769 by default
1798 --enable-fix-cortex-a53-843419
1799 enable workaround for AArch64 Cortex-A53 erratum
1800 843419 by default
1801 --disable-fix-cortex-a53-843419
1802 disable workaround for AArch64 Cortex-A53 erratum
1803 843419 by default
1805 --enable-gnu-unique-object
1806 enable the use of the @gnu_unique_object ELF
1807 extension on glibc systems
1808 --enable-linker-build-id
1809 compiler will always pass --build-id to linker
1810 --enable-libssp enable linking against libssp
1811 --enable-default-ssp enable Stack Smashing Protection as default
1812 --enable-maintainer-mode
1813 enable make rules and dependencies not useful (and
1814 sometimes confusing) to the casual installer
1815 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1816 thrashing on the build machine
1817 --enable-link-serialization
1818 avoid linking multiple GCC front-ends at once using
1819 make dependencies to avoid thrashing on the build
1820 machine
1821 --enable-version-specific-runtime-libs
1822 specify that runtime libraries should be installed
1823 in a compiler-specific directory
1824 --enable-plugin enable plugin support
1825 --enable-host-shared build host code as shared libraries
1826 --enable-host-pie build host code as PIE
1827 --enable-host-bind-now link host code as BIND_NOW
1828 --disable-libquadmath-support
1829 disable libquadmath support for Fortran
1830 --enable-default-pie enable Position Independent Executable as default
1831 --enable-cet enable Intel CET in host libraries [default=auto]
1832 --enable-s390-excess-float-precision
1833 on s390 targets, evaluate float with double
1834 precision when in standards-conforming mode
1836 Optional Packages:
1837 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1838 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1839 --with-build-libsubdir=DIR Directory where to find libraries for build system
1840 --with-local-prefix=DIR specifies directory to put local include
1841 --with-native-system-header-dir=dir
1842 use dir as the directory to look for standard
1843 system header files in. Defaults to /usr/include.
1844 --with-build-sysroot=sysroot
1845 use sysroot as the system root during the build
1846 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1847 --with-gxx-include-dir=DIR
1848 specifies directory to put g++ header files
1849 --with-gxx-libcxx-include-dir=DIR
1850 specifies directory to find libc++ header files
1851 --with-cpp-install-dir=DIR
1852 install the user visible C preprocessor in DIR
1853 (relative to PREFIX) as well as PREFIX/bin
1854 --with-gnu-ld arrange to work with GNU ld
1855 --with-ld arrange to use the specified ld (full pathname)
1856 --with-demangler-in-ld try to use demangler in GNU ld
1857 --with-dsymutil arrange to use the specified dsymutil (full
1858 pathname)
1859 --with-gnu-as arrange to work with GNU as
1860 --with-as arrange to use the specified as (full pathname)
1861 --with-stack-clash-protection-guard-size=size
1862 Set the default stack clash protection guard size
1863 for specific targets as a power of two in bytes.
1864 --with-matchpd-partitions=num
1865 Set the number of partitions to make for gimple and
1866 generic when splitting match.pd. [default=10]
1867 --with-insnemit-partitions=num
1868 Set the number of partitions of insn-emit.cc for
1869 genemit to create. [default=10]
1870 --with-dwarf2 force the default debug format to be DWARF 2 (or
1871 later)
1872 --with-specs=SPECS add SPECS to driver command-line processing
1873 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1874 --with-bugurl=URL Direct users to URL to report a bug
1875 --with-documentation-root-url=URL
1876 Root for documentation URLs
1877 --with-changes-root-url=URL
1878 Root for GCC changes URLs
1879 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1880 SH and x86-64 only)
1881 --with-multilib-generator
1882 Multi-libs configuration string (RISC-V only)
1883 --with-zstd=PATH specify prefix directory for installed zstd library.
1884 Equivalent to --with-zstd-include=PATH/include plus
1885 --with-zstd-lib=PATH/lib
1886 --with-zstd-include=PATH
1887 specify directory for installed zstd include files
1888 --with-zstd-lib=PATH specify directory for the installed zstd library
1889 --with-gnu-ld assume the C compiler uses GNU ld default=no
1890 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1891 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1892 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1893 --with-gcc-major-version-only
1894 use only GCC major number in filesystem paths
1895 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1896 --without-libintl-prefix don't search for libintl in includedir and libdir
1897 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1898 --with-pic try to use only PIC/non-PIC objects [default=use
1899 both]
1900 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1901 --with-darwin-extra-rpath=[ARG]
1902 Specify a runpath directory, additional to those
1903 provided by the compiler
1904 --with-plugin-ld=[ARG] specify the plugin linker
1905 --with-glibc-version=M.N
1906 assume GCC used with glibc version M.N or later
1907 --with-long-double-128 use 128-bit long double by default
1908 --with-long-double-format={ieee,ibm}
1909 Specify whether PowerPC long double uses IEEE or IBM format
1911 --with-gc={page,zone} this option is not supported anymore. It used to
1912 choose the garbage collection mechanism to use with
1913 the compiler
1914 --with-system-zlib use installed libz
1915 --with-linker-hash-style={sysv,gnu,both}
1916 specify the linker hash style
1917 --with-diagnostics-color={never,auto,auto-if-env,always}
1918 specify the default of -fdiagnostics-color option
1919 auto-if-env stands for -fdiagnostics-color=auto if
1920 GCC_COLOR environment variable is present and
1921 -fdiagnostics-color=never otherwise
1922 --with-diagnostics-urls={never,auto,auto-if-env,always}
1923 specify the default of -fdiagnostics-urls option
1924 auto-if-env stands for -fdiagnostics-urls=auto if
1925 GCC_URLS or TERM_URLS environment variable is
1926 present and -fdiagnostics-urls=never otherwise
1928 Some influential environment variables:
1929 CC C compiler command
1930 CFLAGS C compiler flags
1931 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1932 nonstandard directory <lib dir>
1933 LIBS libraries to pass to the linker, e.g. -l<library>
1934 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1935 you have headers in a nonstandard directory <include dir>
1936 CXX C++ compiler command
1937 CXXFLAGS C++ compiler flags
1938 CXXCPP C++ preprocessor
1939 CPP C preprocessor
1940 GMPLIBS How to link GMP
1941 GMPINC How to find GMP include files
1942 ISLLIBS How to link isl
1943 ISLINC How to find isl include files
1945 Use these variables to override the choices made by `configure' or to help
1946 it to find libraries and programs with nonstandard names/locations.
1948 Report bugs to the package provider.
1949 _ACEOF
1950 ac_status=$?
1953 if test "$ac_init_help" = "recursive"; then
1954 # If there are subdirs, report their specific --help.
1955 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1956 test -d "$ac_dir" ||
1957 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1958 continue
1959 ac_builddir=.
1961 case "$ac_dir" in
1962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1965 # A ".." for each directory in $ac_dir_suffix.
1966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1967 case $ac_top_builddir_sub in
1968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1970 esac ;;
1971 esac
1972 ac_abs_top_builddir=$ac_pwd
1973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1974 # for backward compatibility:
1975 ac_top_builddir=$ac_top_build_prefix
1977 case $srcdir in
1978 .) # We are building in place.
1979 ac_srcdir=.
1980 ac_top_srcdir=$ac_top_builddir_sub
1981 ac_abs_top_srcdir=$ac_pwd ;;
1982 [\\/]* | ?:[\\/]* ) # Absolute name.
1983 ac_srcdir=$srcdir$ac_dir_suffix;
1984 ac_top_srcdir=$srcdir
1985 ac_abs_top_srcdir=$srcdir ;;
1986 *) # Relative name.
1987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1988 ac_top_srcdir=$ac_top_build_prefix$srcdir
1989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1990 esac
1991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1993 cd "$ac_dir" || { ac_status=$?; continue; }
1994 # Check for guested configure.
1995 if test -f "$ac_srcdir/configure.gnu"; then
1996 echo &&
1997 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1998 elif test -f "$ac_srcdir/configure"; then
1999 echo &&
2000 $SHELL "$ac_srcdir/configure" --help=recursive
2001 else
2002 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2003 fi || ac_status=$?
2004 cd "$ac_pwd" || { ac_status=$?; break; }
2005 done
2008 test -n "$ac_init_help" && exit $ac_status
2009 if $ac_init_version; then
2010 cat <<\_ACEOF
2011 configure
2012 generated by GNU Autoconf 2.69
2014 Copyright (C) 2012 Free Software Foundation, Inc.
2015 This configure script is free software; the Free Software Foundation
2016 gives unlimited permission to copy, distribute and modify it.
2017 _ACEOF
2018 exit
2021 ## ------------------------ ##
2022 ## Autoconf initialization. ##
2023 ## ------------------------ ##
2025 # ac_fn_c_try_compile LINENO
2026 # --------------------------
2027 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_c_try_compile ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext
2032 if { { ac_try="$ac_compile"
2033 case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_compile") 2>conftest.err
2040 ac_status=$?
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest.$ac_objext; then :
2051 ac_retval=0
2052 else
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2056 ac_retval=1
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_c_try_compile
2063 # ac_fn_cxx_try_compile LINENO
2064 # ----------------------------
2065 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_cxx_try_compile ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 rm -f conftest.$ac_objext
2070 if { { ac_try="$ac_compile"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_compile") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest.$ac_objext; then :
2089 ac_retval=0
2090 else
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2094 ac_retval=1
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_cxx_try_compile
2101 # ac_fn_cxx_try_cpp LINENO
2102 # ------------------------
2103 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_cxx_try_cpp ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if { { ac_try="$ac_cpp conftest.$ac_ext"
2108 case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111 esac
2112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2115 ac_status=$?
2116 if test -s conftest.err; then
2117 grep -v '^ *+' conftest.err >conftest.er1
2118 cat conftest.er1 >&5
2119 mv -f conftest.er1 conftest.err
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; } > conftest.i && {
2123 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2124 test ! -s conftest.err
2125 }; then :
2126 ac_retval=0
2127 else
2128 $as_echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 ac_retval=1
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2136 } # ac_fn_cxx_try_cpp
2138 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2139 # ---------------------------------------------------------
2140 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2141 # the include files in INCLUDES and setting the cache variable VAR
2142 # accordingly.
2143 ac_fn_cxx_check_header_mongrel ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if eval \${$3+:} false; then :
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 else
2156 # Is the header compilable?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2158 $as_echo_n "checking $2 usability... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 #include <$2>
2163 _ACEOF
2164 if ac_fn_cxx_try_compile "$LINENO"; then :
2165 ac_header_compiler=yes
2166 else
2167 ac_header_compiler=no
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2171 $as_echo "$ac_header_compiler" >&6; }
2173 # Is the header present?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2175 $as_echo_n "checking $2 presence... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_cxx_try_cpp "$LINENO"; then :
2181 ac_header_preproc=yes
2182 else
2183 ac_header_preproc=no
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2187 $as_echo "$ac_header_preproc" >&6; }
2189 # So? What about this header?
2190 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2191 yes:no: )
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2193 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197 no:yes:* )
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2199 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2201 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2203 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2205 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 esac
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if eval \${$3+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 eval "$3=\$ac_header_compiler"
2217 eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 } # ac_fn_cxx_check_header_mongrel
2225 # ac_fn_cxx_try_run LINENO
2226 # ------------------------
2227 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2228 # that executables *can* be run.
2229 ac_fn_cxx_try_run ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { { ac_try="$ac_link"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_link") 2>&5
2240 ac_status=$?
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2243 { { case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 $as_echo "$ac_try_echo"; } >&5
2249 (eval "$ac_try") 2>&5
2250 ac_status=$?
2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252 test $ac_status = 0; }; }; then :
2253 ac_retval=0
2254 else
2255 $as_echo "$as_me: program exited with status $ac_status" >&5
2256 $as_echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2259 ac_retval=$ac_status
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_cxx_try_run
2267 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2268 # ---------------------------------------------------------
2269 # Tests whether HEADER exists and can be compiled using the include files in
2270 # INCLUDES, setting the cache variable VAR accordingly.
2271 ac_fn_cxx_check_header_compile ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2282 #include <$2>
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285 eval "$3=yes"
2286 else
2287 eval "$3=no"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 } # ac_fn_cxx_check_header_compile
2298 # ac_fn_c_try_cpp LINENO
2299 # ----------------------
2300 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2301 ac_fn_c_try_cpp ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if { { ac_try="$ac_cpp conftest.$ac_ext"
2305 case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308 esac
2309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310 $as_echo "$ac_try_echo"; } >&5
2311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2312 ac_status=$?
2313 if test -s conftest.err; then
2314 grep -v '^ *+' conftest.err >conftest.er1
2315 cat conftest.er1 >&5
2316 mv -f conftest.er1 conftest.err
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; } > conftest.i && {
2320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2321 test ! -s conftest.err
2322 }; then :
2323 ac_retval=0
2324 else
2325 $as_echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 ac_retval=1
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2333 } # ac_fn_c_try_cpp
2335 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2336 # ----------------------------------------------
2337 # Tries to find the compile-time value of EXPR in a program that includes
2338 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2339 # computed
2340 ac_fn_cxx_compute_int ()
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 if test "$cross_compiling" = yes; then
2344 # Depending upon the size, compute the lo and hi bounds.
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 main ()
2351 static int test_array [1 - 2 * !(($2) >= 0)];
2352 test_array [0] = 0;
2353 return test_array [0];
2356 return 0;
2358 _ACEOF
2359 if ac_fn_cxx_try_compile "$LINENO"; then :
2360 ac_lo=0 ac_mid=0
2361 while :; do
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 main ()
2368 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2373 return 0;
2375 _ACEOF
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377 ac_hi=$ac_mid; break
2378 else
2379 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2380 if test $ac_lo -le $ac_mid; then
2381 ac_lo= ac_hi=
2382 break
2384 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 done
2388 else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2393 main ()
2395 static int test_array [1 - 2 * !(($2) < 0)];
2396 test_array [0] = 0;
2397 return test_array [0];
2400 return 0;
2402 _ACEOF
2403 if ac_fn_cxx_try_compile "$LINENO"; then :
2404 ac_hi=-1 ac_mid=-1
2405 while :; do
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2410 main ()
2412 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2413 test_array [0] = 0;
2414 return test_array [0];
2417 return 0;
2419 _ACEOF
2420 if ac_fn_cxx_try_compile "$LINENO"; then :
2421 ac_lo=$ac_mid; break
2422 else
2423 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2424 if test $ac_mid -le $ac_hi; then
2425 ac_lo= ac_hi=
2426 break
2428 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 done
2432 else
2433 ac_lo= ac_hi=
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 # Binary search between lo and hi bounds.
2439 while test "x$ac_lo" != "x$ac_hi"; do
2440 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2445 main ()
2447 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2448 test_array [0] = 0;
2449 return test_array [0];
2452 return 0;
2454 _ACEOF
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2456 ac_hi=$ac_mid
2457 else
2458 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462 case $ac_lo in #((
2463 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2464 '') ac_retval=1 ;;
2465 esac
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2470 static long int longval () { return $2; }
2471 static unsigned long int ulongval () { return $2; }
2472 #include <stdio.h>
2473 #include <stdlib.h>
2475 main ()
2478 FILE *f = fopen ("conftest.val", "w");
2479 if (! f)
2480 return 1;
2481 if (($2) < 0)
2483 long int i = longval ();
2484 if (i != ($2))
2485 return 1;
2486 fprintf (f, "%ld", i);
2488 else
2490 unsigned long int i = ulongval ();
2491 if (i != ($2))
2492 return 1;
2493 fprintf (f, "%lu", i);
2495 /* Do not output a trailing newline, as this causes \r\n confusion
2496 on some platforms. */
2497 return ferror (f) || fclose (f) != 0;
2500 return 0;
2502 _ACEOF
2503 if ac_fn_cxx_try_run "$LINENO"; then :
2504 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2505 else
2506 ac_retval=1
2508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2509 conftest.$ac_objext conftest.beam conftest.$ac_ext
2510 rm -f conftest.val
2513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514 as_fn_set_status $ac_retval
2516 } # ac_fn_cxx_compute_int
2518 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2519 # ---------------------------------------------
2520 # Tests whether TYPE exists after having included INCLUDES, setting cache
2521 # variable VAR accordingly.
2522 ac_fn_cxx_check_type ()
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if eval \${$3+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 eval "$3=no"
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2535 main ()
2537 if (sizeof ($2))
2538 return 0;
2540 return 0;
2542 _ACEOF
2543 if ac_fn_cxx_try_compile "$LINENO"; then :
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2548 main ()
2550 if (sizeof (($2)))
2551 return 0;
2553 return 0;
2555 _ACEOF
2556 if ac_fn_cxx_try_compile "$LINENO"; then :
2558 else
2559 eval "$3=yes"
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570 } # ac_fn_cxx_check_type
2572 # ac_fn_c_find_intX_t LINENO BITS VAR
2573 # -----------------------------------
2574 # Finds a signed integer type with width BITS, setting cache variable VAR
2575 # accordingly.
2576 ac_fn_c_find_intX_t ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2580 $as_echo_n "checking for int$2_t... " >&6; }
2581 if eval \${$3+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 eval "$3=no"
2585 # Order is important - never check a type that is potentially smaller
2586 # than half of the expected target width.
2587 for ac_type in int$2_t 'int' 'long int' \
2588 'long long int' 'short int' 'signed char'; do
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2591 $ac_includes_default
2592 enum { N = $2 / 2 - 1 };
2594 main ()
2596 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2597 test_array [0] = 0;
2598 return test_array [0];
2601 return 0;
2603 _ACEOF
2604 if ac_fn_cxx_try_compile "$LINENO"; then :
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h. */
2607 $ac_includes_default
2608 enum { N = $2 / 2 - 1 };
2610 main ()
2612 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2613 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2614 test_array [0] = 0;
2615 return test_array [0];
2618 return 0;
2620 _ACEOF
2621 if ac_fn_cxx_try_compile "$LINENO"; then :
2623 else
2624 case $ac_type in #(
2625 int$2_t) :
2626 eval "$3=yes" ;; #(
2627 *) :
2628 eval "$3=\$ac_type" ;;
2629 esac
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 if eval test \"x\$"$3"\" = x"no"; then :
2636 else
2637 break
2639 done
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646 } # ac_fn_c_find_intX_t
2648 # ac_fn_cxx_try_link LINENO
2649 # -------------------------
2650 # Try to link conftest.$ac_ext, and return whether this succeeded.
2651 ac_fn_cxx_try_link ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { { ac_try="$ac_link"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2661 $as_echo "$ac_try_echo"; } >&5
2662 (eval "$ac_link") 2>conftest.err
2663 ac_status=$?
2664 if test -s conftest.err; then
2665 grep -v '^ *+' conftest.err >conftest.er1
2666 cat conftest.er1 >&5
2667 mv -f conftest.er1 conftest.err
2669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2670 test $ac_status = 0; } && {
2671 test -z "$ac_cxx_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest$ac_exeext && {
2674 test "$cross_compiling" = yes ||
2675 test -x conftest$ac_exeext
2676 }; then :
2677 ac_retval=0
2678 else
2679 $as_echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_retval=1
2684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2686 # interfere with the next link command; also delete a directory that is
2687 # left behind by Apple's compiler. We do this before executing the actions.
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2692 } # ac_fn_cxx_try_link
2694 # ac_fn_c_find_uintX_t LINENO BITS VAR
2695 # ------------------------------------
2696 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2697 # accordingly.
2698 ac_fn_c_find_uintX_t ()
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2702 $as_echo_n "checking for uint$2_t... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 eval "$3=no"
2707 # Order is important - never check a type that is potentially smaller
2708 # than half of the expected target width.
2709 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2710 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2713 $ac_includes_default
2715 main ()
2717 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2718 test_array [0] = 0;
2719 return test_array [0];
2722 return 0;
2724 _ACEOF
2725 if ac_fn_cxx_try_compile "$LINENO"; then :
2726 case $ac_type in #(
2727 uint$2_t) :
2728 eval "$3=yes" ;; #(
2729 *) :
2730 eval "$3=\$ac_type" ;;
2731 esac
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 if eval test \"x\$"$3"\" = x"no"; then :
2736 else
2737 break
2739 done
2741 eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746 } # ac_fn_c_find_uintX_t
2748 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2749 # ------------------------------------------------
2750 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2751 ac_fn_cxx_check_header_preproc ()
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if eval \${$3+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 #include <$2>
2762 _ACEOF
2763 if ac_fn_cxx_try_cpp "$LINENO"; then :
2764 eval "$3=yes"
2765 else
2766 eval "$3=no"
2768 rm -f conftest.err conftest.i conftest.$ac_ext
2770 eval ac_res=\$$3
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2772 $as_echo "$ac_res" >&6; }
2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775 } # ac_fn_cxx_check_header_preproc
2777 # ac_fn_cxx_check_func LINENO FUNC VAR
2778 # ------------------------------------
2779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2780 ac_fn_cxx_check_func ()
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2784 $as_echo_n "checking for $2... " >&6; }
2785 if eval \${$3+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2792 #define $2 innocuous_$2
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char $2 (); below.
2796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797 <limits.h> exists even on freestanding compilers. */
2799 #ifdef __STDC__
2800 # include <limits.h>
2801 #else
2802 # include <assert.h>
2803 #endif
2805 #undef $2
2807 /* Override any GCC internal prototype to avoid an error.
2808 Use char because int might match the return type of a GCC
2809 builtin and then its argument prototype would still apply. */
2810 #ifdef __cplusplus
2811 extern "C"
2812 #endif
2813 char $2 ();
2814 /* The GNU C library defines this for functions which it implements
2815 to always fail with ENOSYS. Some functions are actually named
2816 something starting with __ and the normal name is an alias. */
2817 #if defined __stub_$2 || defined __stub___$2
2818 choke me
2819 #endif
2822 main ()
2824 return $2 ();
2826 return 0;
2828 _ACEOF
2829 if ac_fn_cxx_try_link "$LINENO"; then :
2830 eval "$3=yes"
2831 else
2832 eval "$3=no"
2834 rm -f core conftest.err conftest.$ac_objext \
2835 conftest$ac_exeext conftest.$ac_ext
2837 eval ac_res=\$$3
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2839 $as_echo "$ac_res" >&6; }
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 } # ac_fn_cxx_check_func
2844 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2845 # -----------------------------------------------
2846 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2847 # accordingly.
2848 ac_fn_cxx_check_decl ()
2850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851 as_decl_name=`echo $2|sed 's/ *(.*//'`
2852 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2854 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2855 if eval \${$3+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2862 main ()
2864 #ifndef $as_decl_name
2865 #ifdef __cplusplus
2866 (void) $as_decl_use;
2867 #else
2868 (void) $as_decl_name;
2869 #endif
2870 #endif
2873 return 0;
2875 _ACEOF
2876 if ac_fn_cxx_try_compile "$LINENO"; then :
2877 eval "$3=yes"
2878 else
2879 eval "$3=no"
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 eval ac_res=\$$3
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2888 } # ac_fn_cxx_check_decl
2890 # ac_fn_c_try_link LINENO
2891 # -----------------------
2892 # Try to link conftest.$ac_ext, and return whether this succeeded.
2893 ac_fn_c_try_link ()
2895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2896 rm -f conftest.$ac_objext conftest$ac_exeext
2897 if { { ac_try="$ac_link"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link") 2>conftest.err
2905 ac_status=$?
2906 if test -s conftest.err; then
2907 grep -v '^ *+' conftest.err >conftest.er1
2908 cat conftest.er1 >&5
2909 mv -f conftest.er1 conftest.err
2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest$ac_exeext && {
2916 test "$cross_compiling" = yes ||
2917 test -x conftest$ac_exeext
2918 }; then :
2919 ac_retval=0
2920 else
2921 $as_echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 ac_retval=1
2926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2928 # interfere with the next link command; also delete a directory that is
2929 # left behind by Apple's compiler. We do this before executing the actions.
2930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2932 as_fn_set_status $ac_retval
2934 } # ac_fn_c_try_link
2936 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2937 # ----------------------------------------------
2938 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2939 ac_fn_c_check_header_preproc ()
2941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2943 $as_echo_n "checking for $2... " >&6; }
2944 if eval \${$3+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 #include <$2>
2950 _ACEOF
2951 if ac_fn_c_try_cpp "$LINENO"; then :
2952 eval "$3=yes"
2953 else
2954 eval "$3=no"
2956 rm -f conftest.err conftest.i conftest.$ac_ext
2958 eval ac_res=\$$3
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2960 $as_echo "$ac_res" >&6; }
2961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2963 } # ac_fn_c_check_header_preproc
2965 # ac_fn_c_check_func LINENO FUNC VAR
2966 # ----------------------------------
2967 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2968 ac_fn_c_check_func ()
2970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2972 $as_echo_n "checking for $2... " >&6; }
2973 if eval \${$3+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2980 #define $2 innocuous_$2
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $2 (); below.
2984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985 <limits.h> exists even on freestanding compilers. */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2993 #undef $2
2995 /* Override any GCC internal prototype to avoid an error.
2996 Use char because int might match the return type of a GCC
2997 builtin and then its argument prototype would still apply. */
2998 #ifdef __cplusplus
2999 extern "C"
3000 #endif
3001 char $2 ();
3002 /* The GNU C library defines this for functions which it implements
3003 to always fail with ENOSYS. Some functions are actually named
3004 something starting with __ and the normal name is an alias. */
3005 #if defined __stub_$2 || defined __stub___$2
3006 choke me
3007 #endif
3010 main ()
3012 return $2 ();
3014 return 0;
3016 _ACEOF
3017 if ac_fn_c_try_link "$LINENO"; then :
3018 eval "$3=yes"
3019 else
3020 eval "$3=no"
3022 rm -f core conftest.err conftest.$ac_objext \
3023 conftest$ac_exeext conftest.$ac_ext
3025 eval ac_res=\$$3
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3027 $as_echo "$ac_res" >&6; }
3028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3030 } # ac_fn_c_check_func
3031 cat >config.log <<_ACEOF
3032 This file contains any messages produced by compilers while
3033 running configure, to aid debugging if configure makes a mistake.
3035 It was created by $as_me, which was
3036 generated by GNU Autoconf 2.69. Invocation command line was
3038 $ $0 $@
3040 _ACEOF
3041 exec 5>>config.log
3043 cat <<_ASUNAME
3044 ## --------- ##
3045 ## Platform. ##
3046 ## --------- ##
3048 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3049 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3050 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3051 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3052 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3054 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3055 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3057 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3058 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3059 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3060 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3061 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3062 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3063 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3065 _ASUNAME
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 $as_echo "PATH: $as_dir"
3073 done
3074 IFS=$as_save_IFS
3076 } >&5
3078 cat >&5 <<_ACEOF
3081 ## ----------- ##
3082 ## Core tests. ##
3083 ## ----------- ##
3085 _ACEOF
3088 # Keep a trace of the command line.
3089 # Strip out --no-create and --no-recursion so they do not pile up.
3090 # Strip out --silent because we don't want to record it for future runs.
3091 # Also quote any args containing shell meta-characters.
3092 # Make two passes to allow for proper duplicate-argument suppression.
3093 ac_configure_args=
3094 ac_configure_args0=
3095 ac_configure_args1=
3096 ac_must_keep_next=false
3097 for ac_pass in 1 2
3099 for ac_arg
3101 case $ac_arg in
3102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3104 | -silent | --silent | --silen | --sile | --sil)
3105 continue ;;
3106 *\'*)
3107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3108 esac
3109 case $ac_pass in
3110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3112 as_fn_append ac_configure_args1 " '$ac_arg'"
3113 if test $ac_must_keep_next = true; then
3114 ac_must_keep_next=false # Got value, back to normal.
3115 else
3116 case $ac_arg in
3117 *=* | --config-cache | -C | -disable-* | --disable-* \
3118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3120 | -with-* | --with-* | -without-* | --without-* | --x)
3121 case "$ac_configure_args0 " in
3122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3123 esac
3125 -* ) ac_must_keep_next=true ;;
3126 esac
3128 as_fn_append ac_configure_args " '$ac_arg'"
3130 esac
3131 done
3132 done
3133 { ac_configure_args0=; unset ac_configure_args0;}
3134 { ac_configure_args1=; unset ac_configure_args1;}
3136 # When interrupted or exit'd, cleanup temporary files, and complete
3137 # config.log. We remove comments because anyway the quotes in there
3138 # would cause problems or look ugly.
3139 # WARNING: Use '\'' to represent an apostrophe within the trap.
3140 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3141 trap 'exit_status=$?
3142 # Save into config.log some information that might help in debugging.
3144 echo
3146 $as_echo "## ---------------- ##
3147 ## Cache variables. ##
3148 ## ---------------- ##"
3149 echo
3150 # The following way of writing the cache mishandles newlines in values,
3152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3153 eval ac_val=\$$ac_var
3154 case $ac_val in #(
3155 *${as_nl}*)
3156 case $ac_var in #(
3157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3159 esac
3160 case $ac_var in #(
3161 _ | IFS | as_nl) ;; #(
3162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3163 *) { eval $ac_var=; unset $ac_var;} ;;
3164 esac ;;
3165 esac
3166 done
3167 (set) 2>&1 |
3168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3169 *${as_nl}ac_space=\ *)
3170 sed -n \
3171 "s/'\''/'\''\\\\'\'''\''/g;
3172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3173 ;; #(
3175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3177 esac |
3178 sort
3180 echo
3182 $as_echo "## ----------------- ##
3183 ## Output variables. ##
3184 ## ----------------- ##"
3185 echo
3186 for ac_var in $ac_subst_vars
3188 eval ac_val=\$$ac_var
3189 case $ac_val in
3190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3191 esac
3192 $as_echo "$ac_var='\''$ac_val'\''"
3193 done | sort
3194 echo
3196 if test -n "$ac_subst_files"; then
3197 $as_echo "## ------------------- ##
3198 ## File substitutions. ##
3199 ## ------------------- ##"
3200 echo
3201 for ac_var in $ac_subst_files
3203 eval ac_val=\$$ac_var
3204 case $ac_val in
3205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3206 esac
3207 $as_echo "$ac_var='\''$ac_val'\''"
3208 done | sort
3209 echo
3212 if test -s confdefs.h; then
3213 $as_echo "## ----------- ##
3214 ## confdefs.h. ##
3215 ## ----------- ##"
3216 echo
3217 cat confdefs.h
3218 echo
3220 test "$ac_signal" != 0 &&
3221 $as_echo "$as_me: caught signal $ac_signal"
3222 $as_echo "$as_me: exit $exit_status"
3223 } >&5
3224 rm -f core *.core core.conftest.* &&
3225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226 exit $exit_status
3228 for ac_signal in 1 2 13 15; do
3229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3230 done
3231 ac_signal=0
3233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3234 rm -f -r conftest* confdefs.h
3236 $as_echo "/* confdefs.h */" > confdefs.h
3238 # Predefined preprocessor variables.
3240 cat >>confdefs.h <<_ACEOF
3241 #define PACKAGE_NAME "$PACKAGE_NAME"
3242 _ACEOF
3244 cat >>confdefs.h <<_ACEOF
3245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246 _ACEOF
3248 cat >>confdefs.h <<_ACEOF
3249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3250 _ACEOF
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_STRING "$PACKAGE_STRING"
3254 _ACEOF
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258 _ACEOF
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_URL "$PACKAGE_URL"
3262 _ACEOF
3265 # Let the site file select an alternate cache file if it wants to.
3266 # Prefer an explicitly selected file to automatically selected ones.
3267 ac_site_file1=NONE
3268 ac_site_file2=NONE
3269 if test -n "$CONFIG_SITE"; then
3270 # We do not want a PATH search for config.site.
3271 case $CONFIG_SITE in #((
3272 -*) ac_site_file1=./$CONFIG_SITE;;
3273 */*) ac_site_file1=$CONFIG_SITE;;
3274 *) ac_site_file1=./$CONFIG_SITE;;
3275 esac
3276 elif test "x$prefix" != xNONE; then
3277 ac_site_file1=$prefix/share/config.site
3278 ac_site_file2=$prefix/etc/config.site
3279 else
3280 ac_site_file1=$ac_default_prefix/share/config.site
3281 ac_site_file2=$ac_default_prefix/etc/config.site
3283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3285 test "x$ac_site_file" = xNONE && continue
3286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3289 sed 's/^/| /' "$ac_site_file" >&5
3290 . "$ac_site_file" \
3291 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "failed to load site script $ac_site_file
3294 See \`config.log' for more details" "$LINENO" 5; }
3296 done
3298 if test -r "$cache_file"; then
3299 # Some versions of bash will fail to source /dev/null (special files
3300 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3301 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3303 $as_echo "$as_me: loading cache $cache_file" >&6;}
3304 case $cache_file in
3305 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3306 *) . "./$cache_file";;
3307 esac
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3311 $as_echo "$as_me: creating cache $cache_file" >&6;}
3312 >$cache_file
3315 gt_needs="$gt_needs "
3316 # Check that the precious variables saved in the cache have kept the same
3317 # value.
3318 ac_cache_corrupted=false
3319 for ac_var in $ac_precious_vars; do
3320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3321 eval ac_new_set=\$ac_env_${ac_var}_set
3322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3323 eval ac_new_val=\$ac_env_${ac_var}_value
3324 case $ac_old_set,$ac_new_set in
3325 set,)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3328 ac_cache_corrupted=: ;;
3329 ,set)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3332 ac_cache_corrupted=: ;;
3333 ,);;
3335 if test "x$ac_old_val" != "x$ac_new_val"; then
3336 # differences in whitespace do not lead to failure.
3337 ac_old_val_w=`echo x $ac_old_val`
3338 ac_new_val_w=`echo x $ac_new_val`
3339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3342 ac_cache_corrupted=:
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3346 eval $ac_var=\$ac_old_val
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3352 fi;;
3353 esac
3354 # Pass precious variables to config.status.
3355 if test "$ac_new_set" = set; then
3356 case $ac_new_val in
3357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3358 *) ac_arg=$ac_var=$ac_new_val ;;
3359 esac
3360 case " $ac_configure_args " in
3361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3363 esac
3365 done
3366 if $ac_cache_corrupted; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3373 ## -------------------- ##
3374 ## Main body of script. ##
3375 ## -------------------- ##
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3392 gcc_version=`cat $srcdir/BASE-VER`
3394 # Determine the host, build, and target systems
3395 ac_aux_dir=
3396 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3397 if test -f "$ac_dir/install-sh"; then
3398 ac_aux_dir=$ac_dir
3399 ac_install_sh="$ac_aux_dir/install-sh -c"
3400 break
3401 elif test -f "$ac_dir/install.sh"; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install.sh -c"
3404 break
3405 elif test -f "$ac_dir/shtool"; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/shtool install -c"
3408 break
3410 done
3411 if test -z "$ac_aux_dir"; then
3412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3415 # These three variables are undocumented and unsupported,
3416 # and are intended to be withdrawn in a future Autoconf release.
3417 # They can cause serious problems if a builder's source tree is in a directory
3418 # whose full name contains unusual characters.
3419 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3420 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3421 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3424 # Make sure we can run config.sub.
3425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3426 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3429 $as_echo_n "checking build system type... " >&6; }
3430 if ${ac_cv_build+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 ac_build_alias=$build_alias
3434 test "x$ac_build_alias" = x &&
3435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3436 test "x$ac_build_alias" = x &&
3437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3443 $as_echo "$ac_cv_build" >&6; }
3444 case $ac_cv_build in
3445 *-*-*) ;;
3446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3447 esac
3448 build=$ac_cv_build
3449 ac_save_IFS=$IFS; IFS='-'
3450 set x $ac_cv_build
3451 shift
3452 build_cpu=$1
3453 build_vendor=$2
3454 shift; shift
3455 # Remember, the first character of IFS is used to create $*,
3456 # except with old shells:
3457 build_os=$*
3458 IFS=$ac_save_IFS
3459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3463 $as_echo_n "checking host system type... " >&6; }
3464 if ${ac_cv_host+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test "x$host_alias" = x; then
3468 ac_cv_host=$ac_cv_build
3469 else
3470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3476 $as_echo "$ac_cv_host" >&6; }
3477 case $ac_cv_host in
3478 *-*-*) ;;
3479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3480 esac
3481 host=$ac_cv_host
3482 ac_save_IFS=$IFS; IFS='-'
3483 set x $ac_cv_host
3484 shift
3485 host_cpu=$1
3486 host_vendor=$2
3487 shift; shift
3488 # Remember, the first character of IFS is used to create $*,
3489 # except with old shells:
3490 host_os=$*
3491 IFS=$ac_save_IFS
3492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3496 $as_echo_n "checking target system type... " >&6; }
3497 if ${ac_cv_target+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test "x$target_alias" = x; then
3501 ac_cv_target=$ac_cv_host
3502 else
3503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3509 $as_echo "$ac_cv_target" >&6; }
3510 case $ac_cv_target in
3511 *-*-*) ;;
3512 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3513 esac
3514 target=$ac_cv_target
3515 ac_save_IFS=$IFS; IFS='-'
3516 set x $ac_cv_target
3517 shift
3518 target_cpu=$1
3519 target_vendor=$2
3520 shift; shift
3521 # Remember, the first character of IFS is used to create $*,
3522 # except with old shells:
3523 target_os=$*
3524 IFS=$ac_save_IFS
3525 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3528 # The aliases save the names the user supplied, while $host etc.
3529 # will get canonicalized.
3530 test -n "$target_alias" &&
3531 test "$program_prefix$program_suffix$program_transform_name" = \
3532 NONENONEs,x,x, &&
3533 program_prefix=${target_alias}-
3535 # Determine the noncanonical host name, for Ada.
3536 case ${build_alias} in
3537 "") build_noncanonical=${build} ;;
3538 *) build_noncanonical=${build_alias} ;;
3539 esac
3541 case ${host_alias} in
3542 "") host_noncanonical=${build_noncanonical} ;;
3543 *) host_noncanonical=${host_alias} ;;
3544 esac
3549 # Determine the noncanonical target name, for directory use.
3550 case ${target_alias} in
3551 "") target_noncanonical=${host_noncanonical} ;;
3552 *) target_noncanonical=${target_alias} ;;
3553 esac
3558 # Used for constructing correct paths for offload compilers.
3559 real_target_noncanonical=${target_noncanonical}
3560 accel_dir_suffix=
3562 # Determine the target- and build-specific subdirectories
3564 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3565 # have matching libraries, they should use host libraries: Makefile.tpl
3566 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3567 # However, they still use the build modules, because the corresponding
3568 # host modules (e.g. bison) are only built for the host when bootstrap
3569 # finishes. So:
3570 # - build_subdir is where we find build modules, and never changes.
3571 # - build_libsubdir is where we find build libraries, and can be overridden.
3573 # Prefix 'build-' so this never conflicts with target_subdir.
3574 build_subdir="build-${build_noncanonical}"
3576 # Check whether --with-build-libsubdir was given.
3577 if test "${with_build_libsubdir+set}" = set; then :
3578 withval=$with_build_libsubdir; build_libsubdir="$withval"
3579 else
3580 build_libsubdir="$build_subdir"
3583 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3584 if ( test $srcdir = . && test -d gcc ) \
3585 || test -d $srcdir/../host-${host_noncanonical}; then
3586 host_subdir="host-${host_noncanonical}"
3587 else
3588 host_subdir=.
3590 # No prefix.
3591 target_subdir=${target_noncanonical}
3594 # Set program_transform_name
3595 test "$program_prefix" != NONE &&
3596 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3597 # Use a double $ so make ignores it.
3598 test "$program_suffix" != NONE &&
3599 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3600 # Double any \ or $.
3601 # By default was `s,x,x', remove it if useless.
3602 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3603 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3606 # Check for bogus environment variables.
3607 # Test if LIBRARY_PATH contains the notation for the current directory
3608 # since this would lead to problems installing/building glibc.
3609 # LIBRARY_PATH contains the current directory if one of the following
3610 # is true:
3611 # - one of the terminals (":" and ";") is the first or last sign
3612 # - two terminals occur directly after each other
3613 # - the path contains an element with a dot in it
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3615 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3616 case ${LIBRARY_PATH} in
3617 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3618 library_path_setting="contains current directory"
3621 library_path_setting="ok"
3623 esac
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3625 $as_echo "$library_path_setting" >&6; }
3626 if test "$library_path_setting" != "ok"; then
3627 as_fn_error $? "
3628 *** LIBRARY_PATH shouldn't contain the current directory when
3629 *** building gcc. Please change the environment variable
3630 *** and run configure again." "$LINENO" 5
3633 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3634 # since this would lead to problems installing/building glibc.
3635 # GCC_EXEC_PREFIX contains the current directory if one of the following
3636 # is true:
3637 # - one of the terminals (":" and ";") is the first or last sign
3638 # - two terminals occur directly after each other
3639 # - the path contains an element with a dot in it
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3641 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3642 case ${GCC_EXEC_PREFIX} in
3643 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3644 gcc_exec_prefix_setting="contains current directory"
3647 gcc_exec_prefix_setting="ok"
3649 esac
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3651 $as_echo "$gcc_exec_prefix_setting" >&6; }
3652 if test "$gcc_exec_prefix_setting" != "ok"; then
3653 as_fn_error $? "
3654 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3655 *** building gcc. Please change the environment variable
3656 *** and run configure again." "$LINENO" 5
3659 # -----------
3660 # Directories
3661 # -----------
3663 # Specify the local prefix
3664 local_prefix=
3666 # Check whether --with-local-prefix was given.
3667 if test "${with_local_prefix+set}" = set; then :
3668 withval=$with_local_prefix; case "${withval}" in
3669 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3670 no) ;;
3671 *) local_prefix=$with_local_prefix ;;
3672 esac
3676 # Default local prefix if it is empty
3677 if test x$local_prefix = x; then
3678 local_prefix=/usr/local
3682 # Check whether --with-native-system-header-dir was given.
3683 if test "${with_native_system_header_dir+set}" = set; then :
3684 withval=$with_native_system_header_dir;
3685 case ${with_native_system_header_dir} in
3686 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3687 /* | [A-Za-z]:[\\/]*) ;;
3688 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3689 esac
3690 configured_native_system_header_dir="${withval}"
3692 else
3693 configured_native_system_header_dir=
3698 # Check whether --with-build-sysroot was given.
3699 if test "${with_build_sysroot+set}" = set; then :
3700 withval=$with_build_sysroot; if test x"$withval" != x ; then
3701 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3703 else
3704 SYSROOT_CFLAGS_FOR_TARGET=
3709 if test "x$prefix" = xNONE; then
3710 test_prefix=/usr/local
3711 else
3712 test_prefix=$prefix
3714 if test "x$exec_prefix" = xNONE; then
3715 test_exec_prefix=$test_prefix
3716 else
3717 test_exec_prefix=$exec_prefix
3721 # Check whether --with-sysroot was given.
3722 if test "${with_sysroot+set}" = set; then :
3723 withval=$with_sysroot;
3724 case ${with_sysroot} in
3725 /) ;;
3726 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3727 esac
3728 case ${with_sysroot} in
3729 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3730 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3731 esac
3733 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3734 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3736 case ${TARGET_SYSTEM_ROOT} in
3737 "${test_prefix}"|"${test_prefix}/"*|\
3738 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3739 '${prefix}'|'${prefix}/'*|\
3740 '${exec_prefix}'|'${exec_prefix}/'*)
3741 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3742 TARGET_SYSTEM_ROOT_DEFINE="$t"
3744 esac
3746 else
3748 TARGET_SYSTEM_ROOT=
3749 TARGET_SYSTEM_ROOT_DEFINE=
3750 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3759 # passed in by the toplevel make and thus we'd get different behavior
3760 # depending on where we built the sources.
3761 gcc_gxx_include_dir=
3762 # Specify the g++ header file directory
3764 # Check whether --with-gxx-include-dir was given.
3765 if test "${with_gxx_include_dir+set}" = set; then :
3766 withval=$with_gxx_include_dir; case "${withval}" in
3767 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3768 no) ;;
3769 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3770 esac
3774 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3775 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3776 # relative to the sysroot.
3777 gcc_gxx_include_dir_add_sysroot=0
3779 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3780 if test x${gcc_gxx_include_dir} = x; then
3781 if test x${enable_version_specific_runtime_libs} = xyes; then
3782 gcc_gxx_include_dir='${libsubdir}/include/c++'
3783 else
3784 libstdcxx_incdir='include/c++/$(version)'
3785 if test x$host != x$target; then
3786 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3788 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3790 elif test "${with_sysroot+set}" = set; then
3791 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3792 if test "${gcc_gxx_without_sysroot}"; then
3793 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3794 gcc_gxx_include_dir_add_sysroot=1
3798 # Configuration for an alternate set of C++ headers.
3799 gcc_gxx_libcxx_include_dir=
3800 # Specify the alternate g++ header file directory
3802 # Check whether --with-gxx-libcxx-include-dir was given.
3803 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3804 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3805 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3806 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3807 esac
3811 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3812 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3813 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3814 # based on the platform (to be available on platform versions where it is the
3815 # default for the system tools). We also use a default path within the compiler
3816 # install tree.
3817 # Otherwise, we use the path provided and enable the stdlib option.
3818 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3819 # check to see if the latter starts with the former and, upon success, compute
3820 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3821 gcc_gxx_libcxx_include_dir_add_sysroot=0
3822 gcc_enable_stdlib_opt=0
3823 if test x${gcc_gxx_libcxx_include_dir} != x; then
3824 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3825 # set defaults for the dir, but the option is disabled anyway.
3826 gcc_gxx_libcxx_include_dir=
3827 else
3828 gcc_enable_stdlib_opt=1
3830 else
3831 case $target in
3832 *-darwin1[1-9]* | *-darwin2*)
3833 # Default this on for Darwin versions which default to libcxx,
3834 # and embed the path in the compiler install so that we get a
3835 # self-contained toolchain.
3836 gcc_enable_stdlib_opt=1
3838 *) ;;
3839 esac
3842 cat >>confdefs.h <<_ACEOF
3843 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3844 _ACEOF
3847 # Sysroot behaviour as for gxx-include-dir
3848 if test x${gcc_gxx_libcxx_include_dir} = x; then
3849 # default path,embedded in the compiler tree.
3850 libcxx_incdir='include/c++/v1'
3851 if test x${enable_version_specific_runtime_libs} = xyes; then
3852 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3853 else
3854 if test x$host != x$target; then
3855 libcxx_incdir="$target_alias/$libcxx_incdir"
3857 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3859 elif test "${with_sysroot+set}" = set; then
3860 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3861 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3862 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3863 gcc_gxx_libcxx_include_dir_add_sysroot=1
3868 # Check whether --with-cpp_install_dir was given.
3869 if test "${with_cpp_install_dir+set}" = set; then :
3870 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3871 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3872 elif test x$withval != xno; then
3873 cpp_install_dir=$withval
3878 # We would like to our source tree to be readonly. However when releases or
3879 # pre-releases are generated, the flex/bison generated files as well as the
3880 # various formats of manuals need to be included along with the rest of the
3881 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3882 # just that.
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3885 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3886 # Check whether --enable-generated-files-in-srcdir was given.
3887 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3888 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3889 else
3890 generated_files_in_srcdir=no
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3895 $as_echo "$generated_files_in_srcdir" >&6; }
3897 if test "$generated_files_in_srcdir" = "yes"; then
3898 GENINSRC=''
3899 else
3900 GENINSRC='#'
3904 # -------------------
3905 # Find default linker
3906 # -------------------
3908 # With GNU ld
3910 # Check whether --with-gnu-ld was given.
3911 if test "${with_gnu_ld+set}" = set; then :
3912 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3913 else
3914 gnu_ld_flag=no
3918 case $target in
3919 *darwin*)
3920 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3921 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3924 ld64_flag=no
3925 dsymutil_flag=no
3927 esac
3929 # With pre-defined ld
3931 # Check whether --with-ld was given.
3932 if test "${with_ld+set}" = set; then :
3933 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3936 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3937 if test ! -x "$DEFAULT_LINKER"; then
3938 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3939 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3940 gnu_ld_flag=yes
3941 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3942 ld64_flag=yes
3945 cat >>confdefs.h <<_ACEOF
3946 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3947 _ACEOF
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3952 $as_echo_n "checking whether a default linker was specified... " >&6; }
3953 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3954 if test x"$gnu_ld_flag" = x"no"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3956 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3959 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3966 # With demangler in GNU ld
3968 # Check whether --with-demangler-in-ld was given.
3969 if test "${with_demangler_in_ld+set}" = set; then :
3970 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3971 else
3972 demangler_in_ld=yes
3976 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3978 # Check whether --with-dsymutil was given.
3979 if test "${with_dsymutil+set}" = set; then :
3980 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3984 dsymutil_vers=
3985 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3986 if test ! -x "$DEFAULT_DSYMUTIL"; then
3987 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3988 else
3989 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3990 dsymutil_flag=yes
3994 cat >>confdefs.h <<_ACEOF
3995 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3996 _ACEOF
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4001 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4002 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4004 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4010 # ----------------------
4011 # Find default assembler
4012 # ----------------------
4014 # With GNU as
4016 # Check whether --with-gnu-as was given.
4017 if test "${with_gnu_as+set}" = set; then :
4018 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4019 else
4020 gas_flag=no
4025 # Check whether --with-as was given.
4026 if test "${with_as+set}" = set; then :
4027 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4030 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4031 if test ! -x "$DEFAULT_ASSEMBLER"; then
4032 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4033 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4034 gas_flag=yes
4037 cat >>confdefs.h <<_ACEOF
4038 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4039 _ACEOF
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4044 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4045 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4046 if test x"$gas_flag" = x"no"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4048 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4051 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4058 # ---------------
4059 # Find C compiler
4060 # ---------------
4062 # If a non-executable a.out is present (e.g. created by GNU as above even if
4063 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4064 # file, even when creating an executable, so an execution test fails.
4065 # Remove possible default executable files to avoid this.
4067 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4068 # Autoconf includes it.
4069 rm -f a.out a.exe b.out
4071 # Find the native compiler
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_CC+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$CC"; then
4086 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 CC=$ac_cv_prog_CC
4106 if test -n "$CC"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4108 $as_echo "$CC" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4116 if test -z "$ac_cv_prog_CC"; then
4117 ac_ct_CC=$CC
4118 # Extract the first word of "gcc", so it can be a program name with args.
4119 set dummy gcc; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_CC"; then
4126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_CC="gcc"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 $as_echo "$ac_ct_CC" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4154 if test "x$ac_ct_CC" = x; then
4155 CC=""
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 CC=$ac_ct_CC
4165 else
4166 CC="$ac_cv_prog_CC"
4169 if test -z "$CC"; then
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}cc; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_CC+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$CC"; then
4179 ac_cv_prog_CC="$CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_CC="${ac_tool_prefix}cc"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4198 CC=$ac_cv_prog_CC
4199 if test -n "$CC"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201 $as_echo "$CC" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4210 if test -z "$CC"; then
4211 # Extract the first word of "cc", so it can be a program name with args.
4212 set dummy cc; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_CC+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$CC"; then
4219 ac_cv_prog_CC="$CC" # Let the user override the test.
4220 else
4221 ac_prog_rejected=no
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4230 ac_prog_rejected=yes
4231 continue
4233 ac_cv_prog_CC="cc"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4239 IFS=$as_save_IFS
4241 if test $ac_prog_rejected = yes; then
4242 # We found a bogon in the path, so make sure we never use it.
4243 set dummy $ac_cv_prog_CC
4244 shift
4245 if test $# != 0; then
4246 # We chose a different compiler from the bogus one.
4247 # However, it has the same basename, so the bogon will be chosen
4248 # first if we set CC to just the basename; use the full file name.
4249 shift
4250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4266 if test -z "$CC"; then
4267 if test -n "$ac_tool_prefix"; then
4268 for ac_prog in cl.exe
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_CC+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300 $as_echo "$CC" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$CC" && break
4308 done
4310 if test -z "$CC"; then
4311 ac_ct_CC=$CC
4312 for ac_prog in cl.exe
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$ac_ct_CC"; then
4322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_CC="$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342 if test -n "$ac_ct_CC"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4344 $as_echo "$ac_ct_CC" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$ac_ct_CC" && break
4352 done
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363 CC=$ac_ct_CC
4370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "no acceptable C compiler found in \$PATH
4373 See \`config.log' for more details" "$LINENO" 5; }
4375 # Provide some information about the compiler.
4376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4377 set X $ac_compile
4378 ac_compiler=$2
4379 for ac_option in --version -v -V -qversion; do
4380 { { ac_try="$ac_compiler $ac_option >&5"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4388 ac_status=$?
4389 if test -s conftest.err; then
4390 sed '10a\
4391 ... rest of stderr output deleted ...
4392 10q' conftest.err >conftest.er1
4393 cat conftest.er1 >&5
4395 rm -f conftest.er1 conftest.err
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 done
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 ac_clean_files_save=$ac_clean_files
4412 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4413 # Try to create an executable without -o first, disregard a.out.
4414 # It will help us diagnose broken compilers, and finding out an intuition
4415 # of exeext.
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4417 $as_echo_n "checking whether the C compiler works... " >&6; }
4418 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4420 # The possible output files:
4421 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4423 ac_rmfiles=
4424 for ac_file in $ac_files
4426 case $ac_file in
4427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4428 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4429 esac
4430 done
4431 rm -f $ac_rmfiles
4433 if { { ac_try="$ac_link_default"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_link_default") 2>&5
4441 ac_status=$?
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }; then :
4444 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4445 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4446 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4447 # so that the user can short-circuit this test for compilers unknown to
4448 # Autoconf.
4449 for ac_file in $ac_files ''
4451 test -f "$ac_file" || continue
4452 case $ac_file in
4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4455 [ab].out )
4456 # We found the default executable, but exeext='' is most
4457 # certainly right.
4458 break;;
4459 *.* )
4460 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4461 then :; else
4462 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4464 # We set ac_cv_exeext here because the later test for it is not
4465 # safe: cross compilers may not add the suffix if given an `-o'
4466 # argument, so we may need to know it at that point already.
4467 # Even if this section looks crufty: it has the advantage of
4468 # actually working.
4469 break;;
4471 break;;
4472 esac
4473 done
4474 test "$ac_cv_exeext" = no && ac_cv_exeext=
4476 else
4477 ac_file=''
4479 if test -z "$ac_file"; then :
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error 77 "C compiler cannot create executables
4488 See \`config.log' for more details" "$LINENO" 5; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4491 $as_echo "yes" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4494 $as_echo_n "checking for C compiler default output file name... " >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4496 $as_echo "$ac_file" >&6; }
4497 ac_exeext=$ac_cv_exeext
4499 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4500 ac_clean_files=$ac_clean_files_save
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4502 $as_echo_n "checking for suffix of executables... " >&6; }
4503 if { { ac_try="$ac_link"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_link") 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
4514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4516 # work properly (i.e., refer to `conftest.exe'), while it won't with
4517 # `rm'.
4518 for ac_file in conftest.exe conftest conftest.*; do
4519 test -f "$ac_file" || continue
4520 case $ac_file in
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 break;;
4524 * ) break;;
4525 esac
4526 done
4527 else
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details" "$LINENO" 5; }
4533 rm -f conftest conftest$ac_cv_exeext
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4535 $as_echo "$ac_cv_exeext" >&6; }
4537 rm -f conftest.$ac_ext
4538 EXEEXT=$ac_cv_exeext
4539 ac_exeext=$EXEEXT
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #include <stdio.h>
4544 main ()
4546 FILE *f = fopen ("conftest.out", "w");
4547 return ferror (f) || fclose (f) != 0;
4550 return 0;
4552 _ACEOF
4553 ac_clean_files="$ac_clean_files conftest.out"
4554 # Check that the compiler produces executables we can run. If not, either
4555 # the compiler is broken, or we cross compile.
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4557 $as_echo_n "checking whether we are cross compiling... " >&6; }
4558 if test "$cross_compiling" != yes; then
4559 { { ac_try="$ac_link"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4565 $as_echo "$ac_try_echo"; } >&5
4566 (eval "$ac_link") 2>&5
4567 ac_status=$?
4568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569 test $ac_status = 0; }
4570 if { ac_try='./conftest$ac_cv_exeext'
4571 { { case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 $as_echo "$ac_try_echo"; } >&5
4577 (eval "$ac_try") 2>&5
4578 ac_status=$?
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }; }; then
4581 cross_compiling=no
4582 else
4583 if test "$cross_compiling" = maybe; then
4584 cross_compiling=yes
4585 else
4586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4588 as_fn_error $? "cannot run C compiled programs.
4589 If you meant to cross compile, use \`--host'.
4590 See \`config.log' for more details" "$LINENO" 5; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4595 $as_echo "$cross_compiling" >&6; }
4597 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4598 ac_clean_files=$ac_clean_files_save
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4600 $as_echo_n "checking for suffix of object files... " >&6; }
4601 if ${ac_cv_objext+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4608 main ()
4612 return 0;
4614 _ACEOF
4615 rm -f conftest.o conftest.obj
4616 if { { ac_try="$ac_compile"
4617 case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622 $as_echo "$ac_try_echo"; } >&5
4623 (eval "$ac_compile") 2>&5
4624 ac_status=$?
4625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }; then :
4627 for ac_file in conftest.o conftest.obj conftest.*; do
4628 test -f "$ac_file" || continue;
4629 case $ac_file in
4630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4632 break;;
4633 esac
4634 done
4635 else
4636 $as_echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 as_fn_error $? "cannot compute suffix of object files: cannot compile
4642 See \`config.log' for more details" "$LINENO" 5; }
4644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4647 $as_echo "$ac_cv_objext" >&6; }
4648 OBJEXT=$ac_cv_objext
4649 ac_objext=$OBJEXT
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4652 if ${ac_cv_c_compiler_gnu+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_compiler_gnu=yes
4671 else
4672 ac_compiler_gnu=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681 GCC=yes
4682 else
4683 GCC=
4685 ac_test_CFLAGS=${CFLAGS+set}
4686 ac_save_CFLAGS=$CFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4689 if ${ac_cv_prog_cc_g+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_save_c_werror_flag=$ac_c_werror_flag
4693 ac_c_werror_flag=yes
4694 ac_cv_prog_cc_g=no
4695 CFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_c_try_compile "$LINENO"; then :
4708 ac_cv_prog_cc_g=yes
4709 else
4710 CFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4724 else
4725 ac_c_werror_flag=$ac_save_c_werror_flag
4726 CFLAGS="-g"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_prog_cc_g=yes
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 $as_echo "$ac_cv_prog_cc_g" >&6; }
4750 if test "$ac_test_CFLAGS" = set; then
4751 CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4754 CFLAGS="-g -O2"
4755 else
4756 CFLAGS="-g"
4758 else
4759 if test "$GCC" = yes; then
4760 CFLAGS="-O2"
4761 else
4762 CFLAGS=
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4767 if ${ac_cv_prog_cc_c89+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 ac_cv_prog_cc_c89=no
4771 ac_save_CC=$CC
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <stdarg.h>
4775 #include <stdio.h>
4776 struct stat;
4777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4778 struct buf { int x; };
4779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4780 static char *e (p, i)
4781 char **p;
4782 int i;
4784 return p[i];
4786 static char *f (char * (*g) (char **, int), char **p, ...)
4788 char *s;
4789 va_list v;
4790 va_start (v,p);
4791 s = g (p, va_arg (v,int));
4792 va_end (v);
4793 return s;
4796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4797 function prototypes and stuff, but not '\xHH' hex character constants.
4798 These don't provoke an error unfortunately, instead are silently treated
4799 as 'x'. The following induces an error, until -std is added to get
4800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4801 array size at least. It's necessary to write '\x00'==0 to get something
4802 that's true only with -std. */
4803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4806 inside strings and character constants. */
4807 #define FOO(x) 'x'
4808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4810 int test (int i, double x);
4811 struct s1 {int (*f) (int a);};
4812 struct s2 {int (*f) (double a);};
4813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4814 int argc;
4815 char **argv;
4817 main ()
4819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4821 return 0;
4823 _ACEOF
4824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4827 CC="$ac_save_CC $ac_arg"
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_c89=$ac_arg
4831 rm -f core conftest.err conftest.$ac_objext
4832 test "x$ac_cv_prog_cc_c89" != "xno" && break
4833 done
4834 rm -f conftest.$ac_ext
4835 CC=$ac_save_CC
4838 # AC_CACHE_VAL
4839 case "x$ac_cv_prog_cc_c89" in
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4842 $as_echo "none needed" >&6; } ;;
4843 xno)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4845 $as_echo "unsupported" >&6; } ;;
4847 CC="$CC $ac_cv_prog_cc_c89"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4849 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4850 esac
4851 if test "x$ac_cv_prog_cc_c89" != xno; then :
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 ac_ext=cpp
4862 ac_cpp='$CXXCPP $CPPFLAGS'
4863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4866 if test -z "$CXX"; then
4867 if test -n "$CCC"; then
4868 CXX=$CCC
4869 else
4870 if test -n "$ac_tool_prefix"; then
4871 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_CXX+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if test -n "$CXX"; then
4881 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4896 IFS=$as_save_IFS
4900 CXX=$ac_cv_prog_CXX
4901 if test -n "$CXX"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4903 $as_echo "$CXX" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4910 test -n "$CXX" && break
4911 done
4913 if test -z "$CXX"; then
4914 ac_ct_CXX=$CXX
4915 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4917 # Extract the first word of "$ac_prog", so it can be a program name with args.
4918 set dummy $ac_prog; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$ac_ct_CXX"; then
4925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_CXX="$ac_prog"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4940 IFS=$as_save_IFS
4944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4945 if test -n "$ac_ct_CXX"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4947 $as_echo "$ac_ct_CXX" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4954 test -n "$ac_ct_CXX" && break
4955 done
4957 if test "x$ac_ct_CXX" = x; then
4958 CXX="g++"
4959 else
4960 case $cross_compiling:$ac_tool_warned in
4961 yes:)
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4965 esac
4966 CXX=$ac_ct_CXX
4972 # Provide some information about the compiler.
4973 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4974 set X $ac_compile
4975 ac_compiler=$2
4976 for ac_option in --version -v -V -qversion; do
4977 { { ac_try="$ac_compiler $ac_option >&5"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983 $as_echo "$ac_try_echo"; } >&5
4984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4985 ac_status=$?
4986 if test -s conftest.err; then
4987 sed '10a\
4988 ... rest of stderr output deleted ...
4989 10q' conftest.err >conftest.er1
4990 cat conftest.er1 >&5
4992 rm -f conftest.er1 conftest.err
4993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }
4995 done
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4998 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4999 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 main ()
5008 #ifndef __GNUC__
5009 choke me
5010 #endif
5013 return 0;
5015 _ACEOF
5016 if ac_fn_cxx_try_compile "$LINENO"; then :
5017 ac_compiler_gnu=yes
5018 else
5019 ac_compiler_gnu=no
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5026 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5027 if test $ac_compiler_gnu = yes; then
5028 GXX=yes
5029 else
5030 GXX=
5032 ac_test_CXXFLAGS=${CXXFLAGS+set}
5033 ac_save_CXXFLAGS=$CXXFLAGS
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5035 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5036 if ${ac_cv_prog_cxx_g+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5040 ac_cxx_werror_flag=yes
5041 ac_cv_prog_cxx_g=no
5042 CXXFLAGS="-g"
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5047 main ()
5051 return 0;
5053 _ACEOF
5054 if ac_fn_cxx_try_compile "$LINENO"; then :
5055 ac_cv_prog_cxx_g=yes
5056 else
5057 CXXFLAGS=""
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5062 main ()
5066 return 0;
5068 _ACEOF
5069 if ac_fn_cxx_try_compile "$LINENO"; then :
5071 else
5072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5073 CXXFLAGS="-g"
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5078 main ()
5082 return 0;
5084 _ACEOF
5085 if ac_fn_cxx_try_compile "$LINENO"; then :
5086 ac_cv_prog_cxx_g=yes
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5096 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5097 if test "$ac_test_CXXFLAGS" = set; then
5098 CXXFLAGS=$ac_save_CXXFLAGS
5099 elif test $ac_cv_prog_cxx_g = yes; then
5100 if test "$GXX" = yes; then
5101 CXXFLAGS="-g -O2"
5102 else
5103 CXXFLAGS="-g"
5105 else
5106 if test "$GXX" = yes; then
5107 CXXFLAGS="-O2"
5108 else
5109 CXXFLAGS=
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_GNATBIND+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$GNATBIND"; then
5130 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 GNATBIND=$ac_cv_prog_GNATBIND
5150 if test -n "$GNATBIND"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5152 $as_echo "$GNATBIND" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5160 if test -z "$ac_cv_prog_GNATBIND"; then
5161 ac_ct_GNATBIND=$GNATBIND
5162 # Extract the first word of "gnatbind", so it can be a program name with args.
5163 set dummy gnatbind; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$ac_ct_GNATBIND"; then
5170 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5190 if test -n "$ac_ct_GNATBIND"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5192 $as_echo "$ac_ct_GNATBIND" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5198 if test "x$ac_ct_GNATBIND" = x; then
5199 GNATBIND="no"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207 GNATBIND=$ac_ct_GNATBIND
5209 else
5210 GNATBIND="$ac_cv_prog_GNATBIND"
5213 if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_GNATMAKE+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$GNATMAKE"; then
5222 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5241 GNATMAKE=$ac_cv_prog_GNATMAKE
5242 if test -n "$GNATMAKE"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5244 $as_echo "$GNATMAKE" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5252 if test -z "$ac_cv_prog_GNATMAKE"; then
5253 ac_ct_GNATMAKE=$GNATMAKE
5254 # Extract the first word of "gnatmake", so it can be a program name with args.
5255 set dummy gnatmake; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$ac_ct_GNATMAKE"; then
5262 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5275 done
5276 done
5277 IFS=$as_save_IFS
5281 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5282 if test -n "$ac_ct_GNATMAKE"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5284 $as_echo "$ac_ct_GNATMAKE" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5290 if test "x$ac_ct_GNATMAKE" = x; then
5291 GNATMAKE="no"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 GNATMAKE=$ac_ct_GNATMAKE
5301 else
5302 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5306 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5307 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 cat >conftest.adb <<EOF
5311 pragma Warnings (Off);
5312 with System.CRTL;
5313 pragma Warnings (On);
5314 use type System.CRTL.int64;
5315 procedure conftest is begin null; end conftest;
5317 acx_cv_cc_gcc_supports_ada=no
5318 # There is a bug in old released versions of GCC which causes the
5319 # driver to exit successfully when the appropriate language module
5320 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5321 # Therefore we must check for the error message as well as an
5322 # unsuccessful exit.
5323 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5324 # given a .adb file, but produce no object file. So we must check
5325 # if an object file was really produced to guard against this.
5326 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5327 if test x"$errors" = x && test -f conftest.$ac_objext; then
5328 acx_cv_cc_gcc_supports_ada=yes
5330 rm -f conftest.*
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5333 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5335 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5336 have_gnat=yes
5337 else
5338 have_gnat=no
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_GDC+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$GDC"; then
5352 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5371 GDC=$ac_cv_prog_GDC
5372 if test -n "$GDC"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5374 $as_echo "$GDC" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5382 if test -z "$ac_cv_prog_GDC"; then
5383 ac_ct_GDC=$GDC
5384 # Extract the first word of "gdc", so it can be a program name with args.
5385 set dummy gdc; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$ac_ct_GDC"; then
5392 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ac_ct_GDC="gdc"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5411 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5412 if test -n "$ac_ct_GDC"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5414 $as_echo "$ac_ct_GDC" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5420 if test "x$ac_ct_GDC" = x; then
5421 GDC="no"
5422 else
5423 case $cross_compiling:$ac_tool_warned in
5424 yes:)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429 GDC=$ac_ct_GDC
5431 else
5432 GDC="$ac_cv_prog_GDC"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5436 $as_echo_n "checking whether the D compiler works... " >&6; }
5437 if ${acx_cv_d_compiler_works+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat >conftest.d <<EOF
5441 module conftest; int main() { return 0; }
5443 acx_cv_d_compiler_works=no
5444 if test "x$GDC" != xno; then
5445 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5446 if test x"$errors" = x && test -f conftest.$ac_objext; then
5447 acx_cv_d_compiler_works=yes
5449 rm -f conftest.*
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5453 $as_echo "$acx_cv_d_compiler_works" >&6; }
5454 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5455 have_gdc=yes
5456 else
5457 have_gdc=no
5461 # Do configure tests with the C++ compiler, since that's what we build with.
5462 ac_ext=cpp
5463 ac_cpp='$CXXCPP $CPPFLAGS'
5464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5469 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5470 # optimizations to be activated explicitly by the toplevel.
5471 case "$CC" in
5472 */prev-gcc/xgcc*) ;;
5473 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5474 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5475 esac
5480 # Determine PICFLAG for target gnatlib.
5485 case "${target}" in
5486 # PIC is the default on some targets or must not be used.
5487 *-*-darwin*)
5488 # For darwin, common symbols are not allowed in MH_DYLIB files
5489 case "${CFLAGS}" in
5490 # If we are using a compiler supporting mdynamic-no-pic
5491 # and the option has been tested as safe to add, then cancel
5492 # it here, since the code generated is incompatible with shared
5493 # libs.
5494 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5495 *) PICFLAG_FOR_TARGET=-fno-common ;;
5496 esac
5498 alpha*-dec-osf5*)
5499 # PIC is the default.
5501 hppa*64*-*-hpux*)
5502 # PIC is the default for 64-bit PA HP-UX.
5504 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5506 i[34567]86-*-mingw* | x86_64-*-mingw*)
5508 i[34567]86-*-interix[3-9]*)
5509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5510 # Instead, we relocate shared libraries at runtime.
5512 i[34567]86-*-nto-qnx*)
5513 # QNX uses GNU C++, but need to define -shared option too, otherwise
5514 # it will coredump.
5515 PICFLAG_FOR_TARGET='-fPIC -shared'
5517 i[34567]86-pc-msdosdjgpp*)
5518 # DJGPP does not support shared libraries at all.
5520 ia64*-*-hpux*)
5521 # On IA64 HP-UX, PIC is the default but the pic flag
5522 # sets the default TLS model and affects inlining.
5523 PICFLAG_FOR_TARGET=-fPIC
5525 loongarch*-*-*)
5526 PICFLAG_FOR_TARGET=-fpic
5528 mips-sgi-irix6*)
5529 # PIC is the default.
5531 rs6000-ibm-aix* | powerpc-ibm-aix*)
5532 # All AIX code is PIC.
5535 # Some targets support both -fPIC and -fpic, but prefer the latter.
5536 # FIXME: Why?
5537 i[34567]86-*-* | x86_64-*-*)
5538 PICFLAG_FOR_TARGET=-fpic
5540 # FIXME: Override -fPIC default in libgcc only?
5541 sh-*-linux* | sh[2346lbe]*-*-linux*)
5542 PICFLAG_FOR_TARGET=-fpic
5544 sh*-*-netbsd*)
5545 PICFLAG_FOR_TARGET=-fpic
5547 # Default to -fPIC unless specified otherwise.
5549 PICFLAG_FOR_TARGET=-fPIC
5551 esac
5553 # If the user explicitly uses -fpic/-fPIC, keep that.
5554 case "${CFLAGS_FOR_TARGET}" in
5555 *-fpic*)
5556 PICFLAG_FOR_TARGET=-fpic
5558 *-fPIC*)
5559 PICFLAG_FOR_TARGET=-fPIC
5561 esac
5565 # -------------------------
5566 # Check C compiler features
5567 # -------------------------
5570 ac_ext=cpp
5571 ac_cpp='$CXXCPP $CPPFLAGS'
5572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5576 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5577 if test -z "$CXXCPP"; then
5578 if ${ac_cv_prog_CXXCPP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 # Double quotes because CXXCPP needs to be expanded
5582 for CXXCPP in "$CXX -E" "/lib/cpp"
5584 ac_preproc_ok=false
5585 for ac_cxx_preproc_warn_flag in '' yes
5587 # Use a header file that comes with gcc, so configuring glibc
5588 # with a fresh cross-compiler works.
5589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590 # <limits.h> exists even on freestanding compilers.
5591 # On the NeXT, cc -E runs the code through the compiler's parser,
5592 # not just through cpp. "Syntax error" is here to catch this case.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #ifdef __STDC__
5596 # include <limits.h>
5597 #else
5598 # include <assert.h>
5599 #endif
5600 Syntax error
5601 _ACEOF
5602 if ac_fn_cxx_try_cpp "$LINENO"; then :
5604 else
5605 # Broken: fails on valid input.
5606 continue
5608 rm -f conftest.err conftest.i conftest.$ac_ext
5610 # OK, works on sane cases. Now check whether nonexistent headers
5611 # can be detected and how.
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5615 _ACEOF
5616 if ac_fn_cxx_try_cpp "$LINENO"; then :
5617 # Broken: success on invalid input.
5618 continue
5619 else
5620 # Passes both tests.
5621 ac_preproc_ok=:
5622 break
5624 rm -f conftest.err conftest.i conftest.$ac_ext
5626 done
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.i conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then :
5630 break
5633 done
5634 ac_cv_prog_CXXCPP=$CXXCPP
5637 CXXCPP=$ac_cv_prog_CXXCPP
5638 else
5639 ac_cv_prog_CXXCPP=$CXXCPP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5642 $as_echo "$CXXCPP" >&6; }
5643 ac_preproc_ok=false
5644 for ac_cxx_preproc_warn_flag in '' yes
5646 # Use a header file that comes with gcc, so configuring glibc
5647 # with a fresh cross-compiler works.
5648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 # <limits.h> exists even on freestanding compilers.
5650 # On the NeXT, cc -E runs the code through the compiler's parser,
5651 # not just through cpp. "Syntax error" is here to catch this case.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659 Syntax error
5660 _ACEOF
5661 if ac_fn_cxx_try_cpp "$LINENO"; then :
5663 else
5664 # Broken: fails on valid input.
5665 continue
5667 rm -f conftest.err conftest.i conftest.$ac_ext
5669 # OK, works on sane cases. Now check whether nonexistent headers
5670 # can be detected and how.
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <ac_nonexistent.h>
5674 _ACEOF
5675 if ac_fn_cxx_try_cpp "$LINENO"; then :
5676 # Broken: success on invalid input.
5677 continue
5678 else
5679 # Passes both tests.
5680 ac_preproc_ok=:
5681 break
5683 rm -f conftest.err conftest.i conftest.$ac_ext
5685 done
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.i conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then :
5690 else
5691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5693 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5694 See \`config.log' for more details" "$LINENO" 5; }
5697 ac_ext=cpp
5698 ac_cpp='$CXXCPP $CPPFLAGS'
5699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5705 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5706 if ${ac_cv_path_GREP+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -z "$GREP"; then
5710 ac_path_GREP_found=false
5711 # Loop through the user's path and test for each of PROGNAME-LIST
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_prog in grep ggrep; do
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5720 as_fn_executable_p "$ac_path_GREP" || continue
5721 # Check for GNU ac_path_GREP and select it if it is found.
5722 # Check for GNU $ac_path_GREP
5723 case `"$ac_path_GREP" --version 2>&1` in
5724 *GNU*)
5725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5727 ac_count=0
5728 $as_echo_n 0123456789 >"conftest.in"
5729 while :
5731 cat "conftest.in" "conftest.in" >"conftest.tmp"
5732 mv "conftest.tmp" "conftest.in"
5733 cp "conftest.in" "conftest.nl"
5734 $as_echo 'GREP' >> "conftest.nl"
5735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737 as_fn_arith $ac_count + 1 && ac_count=$as_val
5738 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5739 # Best one so far, save it but keep looking for a better one
5740 ac_cv_path_GREP="$ac_path_GREP"
5741 ac_path_GREP_max=$ac_count
5743 # 10*(2^10) chars as input seems more than enough
5744 test $ac_count -gt 10 && break
5745 done
5746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747 esac
5749 $ac_path_GREP_found && break 3
5750 done
5751 done
5752 done
5753 IFS=$as_save_IFS
5754 if test -z "$ac_cv_path_GREP"; then
5755 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 else
5758 ac_cv_path_GREP=$GREP
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5763 $as_echo "$ac_cv_path_GREP" >&6; }
5764 GREP="$ac_cv_path_GREP"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5768 $as_echo_n "checking for egrep... " >&6; }
5769 if ${ac_cv_path_EGREP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5773 then ac_cv_path_EGREP="$GREP -E"
5774 else
5775 if test -z "$EGREP"; then
5776 ac_path_EGREP_found=false
5777 # Loop through the user's path and test for each of PROGNAME-LIST
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_prog in egrep; do
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5786 as_fn_executable_p "$ac_path_EGREP" || continue
5787 # Check for GNU ac_path_EGREP and select it if it is found.
5788 # Check for GNU $ac_path_EGREP
5789 case `"$ac_path_EGREP" --version 2>&1` in
5790 *GNU*)
5791 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5793 ac_count=0
5794 $as_echo_n 0123456789 >"conftest.in"
5795 while :
5797 cat "conftest.in" "conftest.in" >"conftest.tmp"
5798 mv "conftest.tmp" "conftest.in"
5799 cp "conftest.in" "conftest.nl"
5800 $as_echo 'EGREP' >> "conftest.nl"
5801 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5803 as_fn_arith $ac_count + 1 && ac_count=$as_val
5804 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5805 # Best one so far, save it but keep looking for a better one
5806 ac_cv_path_EGREP="$ac_path_EGREP"
5807 ac_path_EGREP_max=$ac_count
5809 # 10*(2^10) chars as input seems more than enough
5810 test $ac_count -gt 10 && break
5811 done
5812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813 esac
5815 $ac_path_EGREP_found && break 3
5816 done
5817 done
5818 done
5819 IFS=$as_save_IFS
5820 if test -z "$ac_cv_path_EGREP"; then
5821 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5823 else
5824 ac_cv_path_EGREP=$EGREP
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5830 $as_echo "$ac_cv_path_EGREP" >&6; }
5831 EGREP="$ac_cv_path_EGREP"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5835 $as_echo_n "checking for ANSI C header files... " >&6; }
5836 if ${ac_cv_header_stdc+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <stdlib.h>
5842 #include <stdarg.h>
5843 #include <string.h>
5844 #include <float.h>
5847 main ()
5851 return 0;
5853 _ACEOF
5854 if ac_fn_cxx_try_compile "$LINENO"; then :
5855 ac_cv_header_stdc=yes
5856 else
5857 ac_cv_header_stdc=no
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 if test $ac_cv_header_stdc = yes; then
5862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <string.h>
5867 _ACEOF
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869 $EGREP "memchr" >/dev/null 2>&1; then :
5871 else
5872 ac_cv_header_stdc=no
5874 rm -f conftest*
5878 if test $ac_cv_header_stdc = yes; then
5879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 #include <stdlib.h>
5884 _ACEOF
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 $EGREP "free" >/dev/null 2>&1; then :
5888 else
5889 ac_cv_header_stdc=no
5891 rm -f conftest*
5895 if test $ac_cv_header_stdc = yes; then
5896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5897 if test "$cross_compiling" = yes; then :
5899 else
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #include <ctype.h>
5903 #include <stdlib.h>
5904 #if ((' ' & 0x0FF) == 0x020)
5905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5907 #else
5908 # define ISLOWER(c) \
5909 (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5913 #endif
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5917 main ()
5919 int i;
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5923 return 2;
5924 return 0;
5926 _ACEOF
5927 if ac_fn_cxx_try_run "$LINENO"; then :
5929 else
5930 ac_cv_header_stdc=no
5932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5933 conftest.$ac_objext conftest.beam conftest.$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5939 $as_echo "$ac_cv_header_stdc" >&6; }
5940 if test $ac_cv_header_stdc = yes; then
5942 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5946 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5948 inttypes.h stdint.h unistd.h
5949 do :
5950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5954 cat >>confdefs.h <<_ACEOF
5955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 _ACEOF
5960 done
5964 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5965 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5966 MINIX=yes
5967 else
5968 MINIX=
5972 if test "$MINIX" = yes; then
5974 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5977 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5980 $as_echo "#define _MINIX 1" >>confdefs.h
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5986 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5987 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5993 # define __EXTENSIONS__ 1
5994 $ac_includes_default
5996 main ()
6000 return 0;
6002 _ACEOF
6003 if ac_fn_cxx_try_compile "$LINENO"; then :
6004 ac_cv_safe_to_define___extensions__=yes
6005 else
6006 ac_cv_safe_to_define___extensions__=no
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6011 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6012 test $ac_cv_safe_to_define___extensions__ = yes &&
6013 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6015 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6017 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6019 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6021 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6032 # On Suns, sometimes $CPP names a directory.
6033 if test -n "$CPP" && test -d "$CPP"; then
6034 CPP=
6036 if test -z "$CPP"; then
6037 if ${ac_cv_prog_CPP+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 # Double quotes because CPP needs to be expanded
6041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6043 ac_preproc_ok=false
6044 for ac_c_preproc_warn_flag in '' yes
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6059 Syntax error
6060 _ACEOF
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6063 else
6064 # Broken: fails on valid input.
6065 continue
6067 rm -f conftest.err conftest.i conftest.$ac_ext
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6074 _ACEOF
6075 if ac_fn_c_try_cpp "$LINENO"; then :
6076 # Broken: success on invalid input.
6077 continue
6078 else
6079 # Passes both tests.
6080 ac_preproc_ok=:
6081 break
6083 rm -f conftest.err conftest.i conftest.$ac_ext
6085 done
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.i conftest.err conftest.$ac_ext
6088 if $ac_preproc_ok; then :
6089 break
6092 done
6093 ac_cv_prog_CPP=$CPP
6096 CPP=$ac_cv_prog_CPP
6097 else
6098 ac_cv_prog_CPP=$CPP
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6101 $as_echo "$CPP" >&6; }
6102 ac_preproc_ok=false
6103 for ac_c_preproc_warn_flag in '' yes
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #ifdef __STDC__
6114 # include <limits.h>
6115 #else
6116 # include <assert.h>
6117 #endif
6118 Syntax error
6119 _ACEOF
6120 if ac_fn_c_try_cpp "$LINENO"; then :
6122 else
6123 # Broken: fails on valid input.
6124 continue
6126 rm -f conftest.err conftest.i conftest.$ac_ext
6128 # OK, works on sane cases. Now check whether nonexistent headers
6129 # can be detected and how.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6133 _ACEOF
6134 if ac_fn_c_try_cpp "$LINENO"; then :
6135 # Broken: success on invalid input.
6136 continue
6137 else
6138 # Passes both tests.
6139 ac_preproc_ok=:
6140 break
6142 rm -f conftest.err conftest.i conftest.$ac_ext
6144 done
6145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6146 rm -f conftest.i conftest.err conftest.$ac_ext
6147 if $ac_preproc_ok; then :
6149 else
6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6152 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6153 See \`config.log' for more details" "$LINENO" 5; }
6156 ac_ext=cpp
6157 ac_cpp='$CXXCPP $CPPFLAGS'
6158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6163 $as_echo_n "checking for inline... " >&6; }
6164 if ${ac_cv_c_inline+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 ac_cv_c_inline=no
6168 for ac_kw in inline __inline__ __inline; do
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #ifndef __cplusplus
6172 typedef int foo_t;
6173 static $ac_kw foo_t static_foo () {return 0; }
6174 $ac_kw foo_t foo () {return 0; }
6175 #endif
6177 _ACEOF
6178 if ac_fn_cxx_try_compile "$LINENO"; then :
6179 ac_cv_c_inline=$ac_kw
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 test "$ac_cv_c_inline" != no && break
6183 done
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6187 $as_echo "$ac_cv_c_inline" >&6; }
6189 case $ac_cv_c_inline in
6190 inline | yes) ;;
6192 case $ac_cv_c_inline in
6193 no) ac_val=;;
6194 *) ac_val=$ac_cv_c_inline;;
6195 esac
6196 cat >>confdefs.h <<_ACEOF
6197 #ifndef __cplusplus
6198 #define inline $ac_val
6199 #endif
6200 _ACEOF
6202 esac
6205 # Check whether --enable-largefile was given.
6206 if test "${enable_largefile+set}" = set; then :
6207 enableval=$enable_largefile;
6210 if test "$enable_largefile" != no; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6213 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6214 if ${ac_cv_sys_largefile_CC+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 ac_cv_sys_largefile_CC=no
6218 if test "$GCC" != yes; then
6219 ac_save_CC=$CC
6220 while :; do
6221 # IRIX 6.2 and later do not support large files by default,
6222 # so use the C compiler's -n32 option if that helps.
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <sys/types.h>
6226 /* Check that off_t can represent 2**63 - 1 correctly.
6227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6228 since some C++ compilers masquerading as C compilers
6229 incorrectly reject 9223372036854775807. */
6230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6232 && LARGE_OFF_T % 2147483647 == 1)
6233 ? 1 : -1];
6235 main ()
6239 return 0;
6241 _ACEOF
6242 if ac_fn_cxx_try_compile "$LINENO"; then :
6243 break
6245 rm -f core conftest.err conftest.$ac_objext
6246 CC="$CC -n32"
6247 if ac_fn_cxx_try_compile "$LINENO"; then :
6248 ac_cv_sys_largefile_CC=' -n32'; break
6250 rm -f core conftest.err conftest.$ac_objext
6251 break
6252 done
6253 CC=$ac_save_CC
6254 rm -f conftest.$ac_ext
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6258 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6259 if test "$ac_cv_sys_largefile_CC" != no; then
6260 CC=$CC$ac_cv_sys_largefile_CC
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6264 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6265 if ${ac_cv_sys_file_offset_bits+:} 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_file_offset_bits=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 _FILE_OFFSET_BITS 64
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_file_offset_bits=64; break
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_cv_sys_file_offset_bits=unknown
6317 break
6318 done
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6321 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6322 case $ac_cv_sys_file_offset_bits in #(
6323 no | unknown) ;;
6325 cat >>confdefs.h <<_ACEOF
6326 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6327 _ACEOF
6329 esac
6330 rm -rf conftest*
6331 if test $ac_cv_sys_file_offset_bits = unknown; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6333 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6334 if ${ac_cv_sys_large_files+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 while :; do
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 #include <sys/types.h>
6341 /* Check that off_t can represent 2**63 - 1 correctly.
6342 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6343 since some C++ compilers masquerading as C compilers
6344 incorrectly reject 9223372036854775807. */
6345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6346 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6347 && LARGE_OFF_T % 2147483647 == 1)
6348 ? 1 : -1];
6350 main ()
6354 return 0;
6356 _ACEOF
6357 if ac_fn_cxx_try_compile "$LINENO"; then :
6358 ac_cv_sys_large_files=no; break
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #define _LARGE_FILES 1
6364 #include <sys/types.h>
6365 /* Check that off_t can represent 2**63 - 1 correctly.
6366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6367 since some C++ compilers masquerading as C compilers
6368 incorrectly reject 9223372036854775807. */
6369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6371 && LARGE_OFF_T % 2147483647 == 1)
6372 ? 1 : -1];
6374 main ()
6378 return 0;
6380 _ACEOF
6381 if ac_fn_cxx_try_compile "$LINENO"; then :
6382 ac_cv_sys_large_files=1; break
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_sys_large_files=unknown
6386 break
6387 done
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6390 $as_echo "$ac_cv_sys_large_files" >&6; }
6391 case $ac_cv_sys_large_files in #(
6392 no | unknown) ;;
6394 cat >>confdefs.h <<_ACEOF
6395 #define _LARGE_FILES $ac_cv_sys_large_files
6396 _ACEOF
6398 esac
6399 rm -rf conftest*
6405 # The cast to long int works around a bug in the HP C Compiler
6406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6408 # This bug is HP SR number 8606223364.
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6410 $as_echo_n "checking size of ino_t... " >&6; }
6411 if ${ac_cv_sizeof_ino_t+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6416 else
6417 if test "$ac_cv_type_ino_t" = yes; then
6418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6420 as_fn_error 77 "cannot compute sizeof (ino_t)
6421 See \`config.log' for more details" "$LINENO" 5; }
6422 else
6423 ac_cv_sizeof_ino_t=0
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6429 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6433 cat >>confdefs.h <<_ACEOF
6434 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6435 _ACEOF
6438 # The cast to long int works around a bug in the HP C Compiler
6439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6441 # This bug is HP SR number 8606223364.
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6443 $as_echo_n "checking size of dev_t... " >&6; }
6444 if ${ac_cv_sizeof_dev_t+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6449 else
6450 if test "$ac_cv_type_dev_t" = yes; then
6451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6453 as_fn_error 77 "cannot compute sizeof (dev_t)
6454 See \`config.log' for more details" "$LINENO" 5; }
6455 else
6456 ac_cv_sizeof_dev_t=0
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6462 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6466 cat >>confdefs.h <<_ACEOF
6467 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6468 _ACEOF
6472 # Select the right stat being able to handle 64bit inodes, if needed.
6473 if test "$enable_largefile" != no; then
6474 case "$host, $build" in
6475 *-*-aix*,*|*,*-*-aix*)
6476 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6478 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6480 fi;;
6481 esac
6485 # sizeof(char) is 1 by definition.
6486 # The cast to long int works around a bug in the HP C Compiler
6487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6489 # This bug is HP SR number 8606223364.
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6491 $as_echo_n "checking size of void *... " >&6; }
6492 if ${ac_cv_sizeof_void_p+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6497 else
6498 if test "$ac_cv_type_void_p" = yes; then
6499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6501 as_fn_error 77 "cannot compute sizeof (void *)
6502 See \`config.log' for more details" "$LINENO" 5; }
6503 else
6504 ac_cv_sizeof_void_p=0
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6514 cat >>confdefs.h <<_ACEOF
6515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6516 _ACEOF
6519 # The cast to long int works around a bug in the HP C Compiler
6520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6522 # This bug is HP SR number 8606223364.
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6524 $as_echo_n "checking size of short... " >&6; }
6525 if ${ac_cv_sizeof_short+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6530 else
6531 if test "$ac_cv_type_short" = yes; then
6532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6534 as_fn_error 77 "cannot compute sizeof (short)
6535 See \`config.log' for more details" "$LINENO" 5; }
6536 else
6537 ac_cv_sizeof_short=0
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6543 $as_echo "$ac_cv_sizeof_short" >&6; }
6547 cat >>confdefs.h <<_ACEOF
6548 #define SIZEOF_SHORT $ac_cv_sizeof_short
6549 _ACEOF
6552 # The cast to long int works around a bug in the HP C Compiler
6553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6555 # This bug is HP SR number 8606223364.
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6557 $as_echo_n "checking size of int... " >&6; }
6558 if ${ac_cv_sizeof_int+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6563 else
6564 if test "$ac_cv_type_int" = yes; then
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error 77 "cannot compute sizeof (int)
6568 See \`config.log' for more details" "$LINENO" 5; }
6569 else
6570 ac_cv_sizeof_int=0
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6576 $as_echo "$ac_cv_sizeof_int" >&6; }
6580 cat >>confdefs.h <<_ACEOF
6581 #define SIZEOF_INT $ac_cv_sizeof_int
6582 _ACEOF
6585 # The cast to long int works around a bug in the HP C Compiler
6586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6588 # This bug is HP SR number 8606223364.
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6590 $as_echo_n "checking size of long... " >&6; }
6591 if ${ac_cv_sizeof_long+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6596 else
6597 if test "$ac_cv_type_long" = yes; then
6598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6600 as_fn_error 77 "cannot compute sizeof (long)
6601 See \`config.log' for more details" "$LINENO" 5; }
6602 else
6603 ac_cv_sizeof_long=0
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6609 $as_echo "$ac_cv_sizeof_long" >&6; }
6613 cat >>confdefs.h <<_ACEOF
6614 #define SIZEOF_LONG $ac_cv_sizeof_long
6615 _ACEOF
6618 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6619 if test "x$ac_cv_type_long_long" = xyes; then :
6621 cat >>confdefs.h <<_ACEOF
6622 #define HAVE_LONG_LONG 1
6623 _ACEOF
6625 # The cast to long int works around a bug in the HP C Compiler
6626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6628 # This bug is HP SR number 8606223364.
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6630 $as_echo_n "checking size of long long... " >&6; }
6631 if ${ac_cv_sizeof_long_long+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6636 else
6637 if test "$ac_cv_type_long_long" = yes; then
6638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6640 as_fn_error 77 "cannot compute sizeof (long long)
6641 See \`config.log' for more details" "$LINENO" 5; }
6642 else
6643 ac_cv_sizeof_long_long=0
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6649 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6653 cat >>confdefs.h <<_ACEOF
6654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6655 _ACEOF
6660 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6661 case $ac_cv_c_int8_t in #(
6662 no|yes) ;; #(
6665 cat >>confdefs.h <<_ACEOF
6666 #define int8_t $ac_cv_c_int8_t
6667 _ACEOF
6669 esac
6671 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6672 case $ac_cv_c_int16_t in #(
6673 no|yes) ;; #(
6676 cat >>confdefs.h <<_ACEOF
6677 #define int16_t $ac_cv_c_int16_t
6678 _ACEOF
6680 esac
6682 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6683 case $ac_cv_c_int32_t in #(
6684 no|yes) ;; #(
6687 cat >>confdefs.h <<_ACEOF
6688 #define int32_t $ac_cv_c_int32_t
6689 _ACEOF
6691 esac
6693 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6694 case $ac_cv_c_int64_t in #(
6695 no|yes) ;; #(
6698 cat >>confdefs.h <<_ACEOF
6699 #define int64_t $ac_cv_c_int64_t
6700 _ACEOF
6702 esac
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6706 $as_echo_n "checking for unsigned long long int... " >&6; }
6707 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 ac_cv_type_unsigned_long_long_int=yes
6711 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6715 /* For now, do not test the preprocessor; as of 2007 there are too many
6716 implementations with broken preprocessors. Perhaps this can
6717 be revisited in 2012. In the meantime, code should not expect
6718 #if to work with literals wider than 32 bits. */
6719 /* Test literals. */
6720 long long int ll = 9223372036854775807ll;
6721 long long int nll = -9223372036854775807LL;
6722 unsigned long long int ull = 18446744073709551615ULL;
6723 /* Test constant expressions. */
6724 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6725 ? 1 : -1)];
6726 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6727 ? 1 : -1)];
6728 int i = 63;
6730 main ()
6732 /* Test availability of runtime routines for shift and division. */
6733 long long int llmax = 9223372036854775807ll;
6734 unsigned long long int ullmax = 18446744073709551615ull;
6735 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6736 | (llmax / ll) | (llmax % ll)
6737 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6738 | (ullmax / ull) | (ullmax % ull));
6740 return 0;
6743 _ACEOF
6744 if ac_fn_cxx_try_link "$LINENO"; then :
6746 else
6747 ac_cv_type_unsigned_long_long_int=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6754 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6755 if test $ac_cv_type_unsigned_long_long_int = yes; then
6757 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6764 $as_echo_n "checking for long long int... " >&6; }
6765 if ${ac_cv_type_long_long_int+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 ac_cv_type_long_long_int=yes
6769 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6770 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6771 if test $ac_cv_type_long_long_int = yes; then
6772 if test "$cross_compiling" = yes; then :
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <limits.h>
6778 #ifndef LLONG_MAX
6779 # define HALF \
6780 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6781 # define LLONG_MAX (HALF - 1 + HALF)
6782 #endif
6784 main ()
6786 long long int n = 1;
6787 int i;
6788 for (i = 0; ; i++)
6790 long long int m = n << i;
6791 if (m >> i != n)
6792 return 1;
6793 if (LLONG_MAX / 2 < m)
6794 break;
6796 return 0;
6798 return 0;
6800 _ACEOF
6801 if ac_fn_cxx_try_run "$LINENO"; then :
6803 else
6804 ac_cv_type_long_long_int=no
6806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6807 conftest.$ac_objext conftest.beam conftest.$ac_ext
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6814 $as_echo "$ac_cv_type_long_long_int" >&6; }
6815 if test $ac_cv_type_long_long_int = yes; then
6817 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6823 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6824 if test "x$ac_cv_type_intmax_t" = xyes; then :
6826 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6828 else
6829 test $ac_cv_type_long_long_int = yes \
6830 && ac_type='long long int' \
6831 || ac_type='long int'
6833 cat >>confdefs.h <<_ACEOF
6834 #define intmax_t $ac_type
6835 _ACEOF
6841 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6842 if test "x$ac_cv_type_intptr_t" = xyes; then :
6844 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6846 else
6847 for ac_type in 'int' 'long int' 'long long int'; do
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 $ac_includes_default
6852 main ()
6854 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6855 test_array [0] = 0;
6856 return test_array [0];
6859 return 0;
6861 _ACEOF
6862 if ac_fn_cxx_try_compile "$LINENO"; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define intptr_t $ac_type
6866 _ACEOF
6868 ac_type=
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 test -z "$ac_type" && break
6872 done
6876 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6877 case $ac_cv_c_uint8_t in #(
6878 no|yes) ;; #(
6881 $as_echo "#define _UINT8_T 1" >>confdefs.h
6884 cat >>confdefs.h <<_ACEOF
6885 #define uint8_t $ac_cv_c_uint8_t
6886 _ACEOF
6888 esac
6890 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6891 case $ac_cv_c_uint16_t in #(
6892 no|yes) ;; #(
6896 cat >>confdefs.h <<_ACEOF
6897 #define uint16_t $ac_cv_c_uint16_t
6898 _ACEOF
6900 esac
6902 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6903 case $ac_cv_c_uint32_t in #(
6904 no|yes) ;; #(
6907 $as_echo "#define _UINT32_T 1" >>confdefs.h
6910 cat >>confdefs.h <<_ACEOF
6911 #define uint32_t $ac_cv_c_uint32_t
6912 _ACEOF
6914 esac
6916 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6917 case $ac_cv_c_uint64_t in #(
6918 no|yes) ;; #(
6921 $as_echo "#define _UINT64_T 1" >>confdefs.h
6924 cat >>confdefs.h <<_ACEOF
6925 #define uint64_t $ac_cv_c_uint64_t
6926 _ACEOF
6928 esac
6932 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6933 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6935 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6937 else
6938 test $ac_cv_type_unsigned_long_long_int = yes \
6939 && ac_type='unsigned long long int' \
6940 || ac_type='unsigned long int'
6942 cat >>confdefs.h <<_ACEOF
6943 #define uintmax_t $ac_type
6944 _ACEOF
6950 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6951 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6953 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6955 else
6956 for ac_type in 'unsigned int' 'unsigned long int' \
6957 'unsigned long long int'; do
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 $ac_includes_default
6962 main ()
6964 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6965 test_array [0] = 0;
6966 return test_array [0];
6969 return 0;
6971 _ACEOF
6972 if ac_fn_cxx_try_compile "$LINENO"; then :
6974 cat >>confdefs.h <<_ACEOF
6975 #define uintptr_t $ac_type
6976 _ACEOF
6978 ac_type=
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 test -z "$ac_type" && break
6982 done
6998 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6999 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7002 # check what underlying integer type int64_t uses
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7004 $as_echo_n "checking for int64_t underlying type... " >&6; }
7005 if ${ac_cv_int64_t_type+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7012 #ifdef HAVE_STDINT_H
7013 #include <stdint.h>
7014 #endif
7015 template <typename T> struct X { };
7016 template <>
7017 struct X<long> { typedef long t; };
7020 main ()
7022 X<int64_t>::t x;
7024 return 0;
7026 _ACEOF
7027 if ac_fn_cxx_try_compile "$LINENO"; then :
7028 ac_cv_int64_t_type=long
7029 else
7030 ac_cv_int64_t_type="long long"
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7035 $as_echo "$ac_cv_int64_t_type" >&6; }
7036 if test "$ac_cv_int64_t_type" = "long"; then
7038 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7044 #ifdef HAVE_STDINT_H
7045 #include <stdint.h>
7046 #endif
7047 template <typename T> struct X { };
7048 template <>
7049 struct X<long long> { typedef long long t; };
7052 main ()
7054 X<int64_t>::t x;
7056 return 0;
7058 _ACEOF
7059 if ac_fn_cxx_try_compile "$LINENO"; then :
7061 else
7062 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7068 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7069 if ${ac_cv_std_swap_in_utility+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7076 #include <utility>
7079 main ()
7081 int a, b; std::swap(a,b);
7083 return 0;
7085 _ACEOF
7086 if ac_fn_cxx_try_compile "$LINENO"; then :
7087 ac_cv_std_swap_in_utility=yes
7088 else
7089 ac_cv_std_swap_in_utility=no
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7094 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7095 if test $ac_cv_std_swap_in_utility = yes; then
7097 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7101 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7102 # If the host compiler is affected by the bug, and we build with optimization
7103 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7104 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7105 # Since there is no reliable feature check for the presence of this bug,
7106 # we simply use a GCC version number check. (This should never trigger for
7107 # stages 2 or 3 of a native bootstrap.)
7108 aliasing_flags=
7109 if test "$GCC" = yes; then
7110 saved_CXXFLAGS="$CXXFLAGS"
7112 # The following test compilation will succeed if and only if $CXX accepts
7113 # -fno-strict-aliasing *and* is older than GCC 4.3.
7114 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7116 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7120 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7121 #error compiler not affected by placement new aliasing bug
7122 #endif
7124 _ACEOF
7125 if ac_fn_cxx_try_compile "$LINENO"; then :
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 CXXFLAGS="$saved_CXXFLAGS"
7140 # ---------------------
7141 # Warnings and checking
7142 # ---------------------
7144 # Check $CC warning features (if it's GCC).
7145 # We want to use -pedantic, but we don't want warnings about
7146 # * 'long long'
7147 # * variadic macros
7148 # * overlong strings
7149 # So, we only use -pedantic if we can disable those warnings.
7151 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7152 # Check whether --enable-build-format-warnings was given.
7153 if test "${enable_build_format_warnings+set}" = set; then :
7154 enableval=$enable_build_format_warnings;
7155 else
7156 enable_build_format_warnings=yes
7159 if test $enable_build_format_warnings = no; then :
7160 wf_opt=-Wno-format
7161 else
7162 wf_opt=
7164 ac_ext=cpp
7165 ac_cpp='$CXXCPP $CPPFLAGS'
7166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7170 loose_warn=
7171 save_CXXFLAGS="$CXXFLAGS"
7172 for real_option in -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7173 # Do the check with the no- prefix removed since gcc silently
7174 # accepts any -Wno-* option on purpose
7175 case $real_option in
7176 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7177 *) option=$real_option ;;
7178 esac
7179 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7182 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7183 if eval \${$as_acx_Woption+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 CXXFLAGS="$option"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7191 main ()
7195 return 0;
7197 _ACEOF
7198 if ac_fn_cxx_try_compile "$LINENO"; then :
7199 eval "$as_acx_Woption=yes"
7200 else
7201 eval "$as_acx_Woption=no"
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 eval ac_res=\$$as_acx_Woption
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7208 $as_echo "$ac_res" >&6; }
7209 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7210 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7212 done
7213 CXXFLAGS="$save_CXXFLAGS"
7214 ac_ext=cpp
7215 ac_cpp='$CXXCPP $CPPFLAGS'
7216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7222 ac_ext=c
7223 ac_cpp='$CPP $CPPFLAGS'
7224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228 c_loose_warn=
7229 save_CFLAGS="$CFLAGS"
7230 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7231 # Do the check with the no- prefix removed since gcc silently
7232 # accepts any -Wno-* option on purpose
7233 case $real_option in
7234 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7235 *) option=$real_option ;;
7236 esac
7237 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7240 $as_echo_n "checking whether $CC supports $option... " >&6; }
7241 if eval \${$as_acx_Woption+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 CFLAGS="$option"
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7249 main ()
7253 return 0;
7255 _ACEOF
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257 eval "$as_acx_Woption=yes"
7258 else
7259 eval "$as_acx_Woption=no"
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 eval ac_res=\$$as_acx_Woption
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7266 $as_echo "$ac_res" >&6; }
7267 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7268 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7270 done
7271 CFLAGS="$save_CFLAGS"
7272 ac_ext=cpp
7273 ac_cpp='$CXXCPP $CPPFLAGS'
7274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7279 ac_ext=cpp
7280 ac_cpp='$CXXCPP $CPPFLAGS'
7281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7285 strict_warn=
7286 save_CXXFLAGS="$CXXFLAGS"
7287 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7288 # Do the check with the no- prefix removed since gcc silently
7289 # accepts any -Wno-* option on purpose
7290 case $real_option in
7291 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7292 *) option=$real_option ;;
7293 esac
7294 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7297 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7298 if eval \${$as_acx_Woption+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 CXXFLAGS="$option"
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7306 main ()
7310 return 0;
7312 _ACEOF
7313 if ac_fn_cxx_try_compile "$LINENO"; then :
7314 eval "$as_acx_Woption=yes"
7315 else
7316 eval "$as_acx_Woption=no"
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 eval ac_res=\$$as_acx_Woption
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7323 $as_echo "$ac_res" >&6; }
7324 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7325 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7327 done
7328 CXXFLAGS="$save_CXXFLAGS"
7329 ac_ext=cpp
7330 ac_cpp='$CXXCPP $CPPFLAGS'
7331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7336 ac_ext=c
7337 ac_cpp='$CPP $CPPFLAGS'
7338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342 c_strict_warn=
7343 save_CFLAGS="$CFLAGS"
7344 for real_option in -Wold-style-definition -Wc++-compat; do
7345 # Do the check with the no- prefix removed since gcc silently
7346 # accepts any -Wno-* option on purpose
7347 case $real_option in
7348 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7349 *) option=$real_option ;;
7350 esac
7351 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7354 $as_echo_n "checking whether $CC supports $option... " >&6; }
7355 if eval \${$as_acx_Woption+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 CFLAGS="$option"
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7363 main ()
7367 return 0;
7369 _ACEOF
7370 if ac_fn_c_try_compile "$LINENO"; then :
7371 eval "$as_acx_Woption=yes"
7372 else
7373 eval "$as_acx_Woption=no"
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 eval ac_res=\$$as_acx_Woption
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7380 $as_echo "$ac_res" >&6; }
7381 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7382 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7384 done
7385 CFLAGS="$save_CFLAGS"
7386 ac_ext=cpp
7387 ac_cpp='$CXXCPP $CPPFLAGS'
7388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7393 ac_ext=cpp
7394 ac_cpp='$CXXCPP $CPPFLAGS'
7395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7399 # Do the check with the no- prefix removed from the warning options
7400 # since gcc silently accepts any -Wno-* option on purpose
7401 if test "$GXX" = yes; then :
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7403 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7404 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 save_CXXFLAGS="$CXXFLAGS"
7408 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7413 main ()
7417 return 0;
7419 _ACEOF
7420 if ac_fn_cxx_try_compile "$LINENO"; then :
7421 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7422 else
7423 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 CXXFLAGS="$save_CXXFLAGS"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7429 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7430 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7431 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7435 ac_ext=cpp
7436 ac_cpp='$CXXCPP $CPPFLAGS'
7437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7442 ac_ext=cpp
7443 ac_cpp='$CXXCPP $CPPFLAGS'
7444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7448 # Check whether --enable-werror-always was given.
7449 if test "${enable_werror_always+set}" = set; then :
7450 enableval=$enable_werror_always;
7451 else
7452 enable_werror_always=no
7455 if test $enable_werror_always = yes; then :
7456 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7459 ac_ext=cpp
7460 ac_cpp='$CXXCPP $CPPFLAGS'
7461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7467 # The above macros do nothing if the compiler is not GCC. However, the
7468 # Makefile has more goo to add other flags, so these variables are used
7469 # to enable warnings only for GCC.
7470 warn_cflags=
7471 warn_cxxflags=
7472 if test "x$GCC" = "xyes"; then
7473 warn_cflags='$(GCC_WARN_CFLAGS)'
7474 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7479 # Disable exceptions and RTTI if building with g++
7480 ac_ext=c
7481 ac_cpp='$CPP $CPPFLAGS'
7482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486 noexception_flags=
7487 save_CFLAGS="$CFLAGS"
7488 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7489 # Do the check with the no- prefix removed since gcc silently
7490 # accepts any -Wno-* option on purpose
7491 case $real_option in
7492 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7493 *) option=$real_option ;;
7494 esac
7495 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7498 $as_echo_n "checking whether $CC supports $option... " >&6; }
7499 if eval \${$as_acx_Woption+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 CFLAGS="$option"
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7507 main ()
7511 return 0;
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 eval "$as_acx_Woption=yes"
7516 else
7517 eval "$as_acx_Woption=no"
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 eval ac_res=\$$as_acx_Woption
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7524 $as_echo "$ac_res" >&6; }
7525 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7526 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7528 done
7529 CFLAGS="$save_CFLAGS"
7530 ac_ext=cpp
7531 ac_cpp='$CXXCPP $CPPFLAGS'
7532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7538 # Enable expensive internal checks
7539 is_release=
7540 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7541 is_release=yes
7544 # Check whether --enable-checking was given.
7545 if test "${enable_checking+set}" = set; then :
7546 enableval=$enable_checking; ac_checking_flags="${enableval}"
7547 else
7549 # Determine the default checks.
7550 if test x$is_release = x ; then
7551 ac_checking_flags=yes,extra
7552 else
7553 ac_checking_flags=release
7557 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7558 for check in release $ac_checking_flags
7560 case $check in
7561 # these set all the flags to specific states
7562 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7563 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7564 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7565 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7566 ac_tree_checking=1 ; ac_valgrind_checking= ;
7567 ac_types_checking=1 ;;
7568 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7569 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7570 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7571 ac_rtlflag_checking= ; ac_runtime_checking= ;
7572 ac_tree_checking= ; ac_valgrind_checking= ;
7573 ac_types_checking= ;;
7574 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7575 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7576 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7577 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7578 ac_tree_checking=1 ; ac_valgrind_checking= ;
7579 ac_types_checking=1 ;;
7580 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7581 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7582 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7583 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7584 ac_tree_checking= ; ac_valgrind_checking= ;
7585 ac_types_checking= ;;
7586 # these enable particular checks
7587 assert) ac_assert_checking=1 ;;
7588 df) ac_df_checking=1 ;;
7589 extra) ac_extra_checking=1 ;;
7590 fold) ac_fold_checking=1 ;;
7591 gc) ac_gc_checking=1 ;;
7592 gcac) ac_gc_always_collect=1 ;;
7593 gimple) ac_gimple_checking=1 ;;
7594 misc) ac_checking=1 ;;
7595 rtl) ac_rtl_checking=1 ;;
7596 rtlflag) ac_rtlflag_checking=1 ;;
7597 runtime) ac_runtime_checking=1 ;;
7598 tree) ac_tree_checking=1 ;;
7599 types) ac_types_checking=1 ;;
7600 valgrind) ac_valgrind_checking=1 ;;
7601 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7602 esac
7603 done
7604 IFS="$ac_save_IFS"
7606 if test x$ac_checking != x ; then
7608 $as_echo "#define CHECKING_P 1" >>confdefs.h
7610 else
7611 $as_echo "#define CHECKING_P 0" >>confdefs.h
7614 if test x$ac_extra_checking != x ; then
7616 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7618 else
7619 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7622 if test x$ac_df_checking != x ; then
7624 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7627 if test x$ac_assert_checking != x ; then
7629 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7632 if test x$ac_gimple_checking != x ; then
7634 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7638 if test x$ac_runtime_checking != x ; then
7640 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7643 if test x$ac_tree_checking != x ; then
7645 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7647 TREECHECKING=yes
7649 if test x$ac_types_checking != x ; then
7651 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7655 if test x$ac_rtl_checking != x ; then
7657 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7660 if test x$ac_rtlflag_checking != x ; then
7662 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7665 if test x$ac_gc_checking != x ; then
7667 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7670 if test x$ac_gc_always_collect != x ; then
7672 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7675 if test x$ac_fold_checking != x ; then
7677 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7680 valgrind_path_defines=
7681 valgrind_command=
7682 if test x$ac_valgrind_checking != x ; then
7684 # Prepare PATH_SEPARATOR.
7685 # The user is always right.
7686 if test "${PATH_SEPARATOR+set}" != set; then
7687 echo "#! /bin/sh" >conf$$.sh
7688 echo "exit 0" >>conf$$.sh
7689 chmod +x conf$$.sh
7690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7691 PATH_SEPARATOR=';'
7692 else
7693 PATH_SEPARATOR=:
7695 rm -f conf$$.sh
7698 # Find out how to test for executable files. Don't use a zero-byte file,
7699 # as systems may use methods other than mode bits to determine executability.
7700 cat >conf$$.file <<_ASEOF
7701 #! /bin/sh
7702 exit 0
7703 _ASEOF
7704 chmod +x conf$$.file
7705 if test -x conf$$.file >/dev/null 2>&1; then
7706 ac_executable_p="test -x"
7707 else
7708 ac_executable_p="test -f"
7710 rm -f conf$$.file
7712 # Extract the first word of "valgrind", so it can be a program name with args.
7713 set dummy valgrind; ac_word=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_path_valgrind_path+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 case "$valgrind_path" in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7724 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7725 for ac_dir in $PATH; do
7726 IFS="$ac_save_IFS"
7727 test -z "$ac_dir" && ac_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7730 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7731 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7732 break 2
7735 done
7736 done
7737 IFS="$ac_save_IFS"
7739 esac
7741 valgrind_path="$ac_cv_path_valgrind_path"
7742 if test -n "$valgrind_path"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7744 $as_echo "$valgrind_path" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7750 if test "x$valgrind_path" = "x"; then
7751 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7753 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7754 valgrind_command="$valgrind_path -q"
7756 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7762 # Enable code coverage collection
7763 # Check whether --enable-coverage was given.
7764 if test "${enable_coverage+set}" = set; then :
7765 enableval=$enable_coverage; case "${enableval}" in
7766 yes|noopt)
7767 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7769 opt)
7770 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7773 # a.k.a. --disable-coverage
7774 coverage_flags=""
7777 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7779 esac
7780 else
7781 coverage_flags=""
7786 # Check whether --enable-gather-detailed-mem-stats was given.
7787 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7788 enableval=$enable_gather_detailed_mem_stats;
7789 else
7790 enable_gather_detailed_mem_stats=no
7793 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7795 cat >>confdefs.h <<_ACEOF
7796 #define GATHER_STATISTICS $gather_stats
7797 _ACEOF
7800 # Check whether --enable-valgrind-annotations was given.
7801 if test "${enable_valgrind_annotations+set}" = set; then :
7802 enableval=$enable_valgrind_annotations;
7803 else
7804 enable_valgrind_annotations=no
7807 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7808 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7813 if test x$enable_valgrind_annotations != xno \
7814 || test x$ac_valgrind_checking != x; then
7815 if test $ac_cv_header_valgrind_memcheck_h = no; then
7816 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7819 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7823 # -------------------------------
7824 # Miscenalleous configure options
7825 # -------------------------------
7827 # Determine whether or not multilibs are enabled.
7828 # Check whether --enable-multilib was given.
7829 if test "${enable_multilib+set}" = set; then :
7830 enableval=$enable_multilib;
7831 else
7832 enable_multilib=yes
7837 # Determine whether or not multiarch is enabled.
7838 # Check whether --enable-multiarch was given.
7839 if test "${enable_multiarch+set}" = set; then :
7840 enableval=$enable_multiarch; case "${enableval}" in
7841 yes|no|auto) enable_multiarch=$enableval;;
7842 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7843 esac
7844 else
7845 enable_multiarch=auto
7848 if test x${enable_multiarch} = xauto; then
7849 if test x${with_native_system_header_dir} != x; then
7850 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7851 enable_multiarch=no
7853 if test x$host != x$target && test "x$with_sysroot" = x; then
7854 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7855 enable_multiarch=no
7858 if test x${enable_multiarch} = xyes; then
7860 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7864 $as_echo_n "checking for multiarch configuration... " >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7867 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7869 # needed for setting the multiarch name for soft-float/hard-float ABIs
7873 # default stack clash protection guard size as power of twos in bytes.
7874 # Please keep these in sync with params.def.
7875 stk_clash_min=12
7876 stk_clash_max=30
7878 # Keep the default value when the option is not used to 0, this allows us to
7879 # distinguish between the cases where the user specifially set a value via
7880 # configure and when the normal default value is used.
7882 # Check whether --with-stack-clash-protection-guard-size was given.
7883 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7884 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7885 else
7886 DEFAULT_STK_CLASH_GUARD_SIZE=0
7889 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7890 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7891 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7892 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
7896 cat >>confdefs.h <<_ACEOF
7897 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7898 _ACEOF
7901 # Specify the number of splits of match.pd to generate.
7903 # Check whether --with-matchpd-partitions was given.
7904 if test "${with_matchpd_partitions+set}" = set; then :
7905 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7906 else
7907 DEFAULT_MATCHPD_PARTITIONS=10
7910 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7911 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7916 # Specify the number of splits of insn-emit.cc to generate.
7918 # Check whether --with-insnemit-partitions was given.
7919 if test "${with_insnemit_partitions+set}" = set; then :
7920 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7921 else
7922 DEFAULT_INSNEMIT_PARTITIONS=10
7925 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7926 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7931 # Enable __cxa_atexit for C++.
7932 # Check whether --enable-__cxa_atexit was given.
7933 if test "${enable___cxa_atexit+set}" = set; then :
7934 enableval=$enable___cxa_atexit;
7938 # Enable C extension for decimal float if target supports it.
7940 # Check whether --enable-decimal-float was given.
7941 if test "${enable_decimal_float+set}" = set; then :
7942 enableval=$enable_decimal_float;
7943 case $enable_decimal_float in
7944 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7945 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7946 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7947 esac
7949 else
7951 case $target in
7952 aarch64* | \
7953 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7954 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7955 i?86*-*-mingw* | x86_64*-*-mingw* | \
7956 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7957 enable_decimal_float=yes
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7961 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7962 enable_decimal_float=no
7964 esac
7969 # x86's use BID format instead of DPD
7970 case x$enable_decimal_float in
7971 xyes)
7972 case $target in
7973 aarch64* | i?86*-*-* | x86_64*-*-*)
7974 enable_decimal_float=bid
7977 enable_decimal_float=dpd
7979 esac
7980 default_decimal_float=$enable_decimal_float
7982 xno)
7983 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7984 # dependency on libdecnumber.
7985 default_decimal_float=dpd
7987 esac
7992 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7994 cat >>confdefs.h <<_ACEOF
7995 #define ENABLE_DECIMAL_FLOAT $dfp
7996 _ACEOF
7999 # Use default_decimal_float for dependency.
8000 enable_decimal_float=$default_decimal_float
8002 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8004 cat >>confdefs.h <<_ACEOF
8005 #define ENABLE_DECIMAL_BID_FORMAT $bid
8006 _ACEOF
8009 # Enable C extension for fixed-point arithmetic.
8010 # Check whether --enable-fixed-point was given.
8011 if test "${enable_fixed_point+set}" = set; then :
8012 enableval=$enable_fixed_point;
8013 else
8015 case $target in
8016 arm*)
8017 enable_fixed_point=yes
8020 mips*-*-*)
8021 enable_fixed_point=yes
8023 loongarch*-*-*)
8024 enable_fixed_point=yes
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8028 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8029 enable_fixed_point=no
8031 esac
8037 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8039 cat >>confdefs.h <<_ACEOF
8040 #define ENABLE_FIXED_POINT $fixedpoint
8041 _ACEOF
8044 # Enable threads
8045 # Pass with no value to take the default
8046 # Pass with a value to specify a thread package
8047 # Check whether --enable-threads was given.
8048 if test "${enable_threads+set}" = set; then :
8049 enableval=$enable_threads;
8050 else
8051 enable_threads=''
8055 # Check whether --enable-tls was given.
8056 if test "${enable_tls+set}" = set; then :
8057 enableval=$enable_tls;
8058 case $enable_tls in
8059 yes | no) ;;
8060 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8061 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8062 esac
8064 else
8065 enable_tls=''
8069 # Check whether --enable-vtable-verify was given.
8070 if test "${enable_vtable_verify+set}" = set; then :
8071 enableval=$enable_vtable_verify;
8072 else
8073 enable_vtable_verify=no
8076 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8078 cat >>confdefs.h <<_ACEOF
8079 #define ENABLE_VTABLE_VERIFY $vtable_verify
8080 _ACEOF
8083 # Check whether --enable-analyzer was given.
8084 if test "${enable_analyzer+set}" = set; then :
8085 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8086 analyzer=0
8087 else
8088 analyzer=1
8090 else
8091 analyzer=1
8095 cat >>confdefs.h <<_ACEOF
8096 #define ENABLE_ANALYZER $analyzer
8097 _ACEOF
8100 # Check whether --enable-objc-gc was given.
8101 if test "${enable_objc_gc+set}" = set; then :
8102 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8103 objc_boehm_gc=''
8104 else
8105 objc_boehm_gc=1
8107 else
8108 objc_boehm_gc=''
8113 # Check whether --with-dwarf2 was given.
8114 if test "${with_dwarf2+set}" = set; then :
8115 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8116 else
8117 dwarf2=no
8121 # Check whether --enable-shared was given.
8122 if test "${enable_shared+set}" = set; then :
8123 enableval=$enable_shared;
8124 case $enable_shared in
8125 yes | no) ;;
8127 enable_shared=no
8128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8129 for pkg in $enableval; do
8130 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8131 enable_shared=yes
8133 done
8134 IFS="$ac_save_ifs"
8136 esac
8138 else
8139 enable_shared=yes
8144 # Check whether --enable-gcov was given.
8145 if test "${enable_gcov+set}" = set; then :
8146 enableval=$enable_gcov;
8147 else
8148 case $target in
8149 bpf-*-*)
8150 enable_gcov=no
8153 enable_gcov=yes
8155 esac
8162 # Check whether --with-specs was given.
8163 if test "${with_specs+set}" = set; then :
8164 withval=$with_specs; CONFIGURE_SPECS=$withval
8165 else
8166 CONFIGURE_SPECS=
8174 # Check whether --with-pkgversion was given.
8175 if test "${with_pkgversion+set}" = set; then :
8176 withval=$with_pkgversion; case "$withval" in
8177 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8178 no) PKGVERSION= ;;
8179 *) PKGVERSION="($withval) " ;;
8180 esac
8181 else
8182 PKGVERSION="(GCC) "
8190 # Check whether --with-bugurl was given.
8191 if test "${with_bugurl+set}" = set; then :
8192 withval=$with_bugurl; case "$withval" in
8193 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8194 no) BUGURL=
8196 *) BUGURL="$withval"
8198 esac
8199 else
8200 BUGURL="https://gcc.gnu.org/bugs/"
8204 case ${BUGURL} in
8206 REPORT_BUGS_TO=
8207 REPORT_BUGS_TEXI=
8210 REPORT_BUGS_TO="<$BUGURL>"
8211 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8213 esac;
8218 # Allow overriding the default URL for documentation
8220 # Check whether --with-documentation-root-url was given.
8221 if test "${with_documentation_root_url+set}" = set; then :
8222 withval=$with_documentation_root_url; case "$withval" in
8223 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8224 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8225 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8226 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8227 esac
8228 else
8230 docroot_url_suffix=
8231 case "$gcc_version" in
8232 *.[123456].0) docroot_url_suffix="gcc-$gcc_version/";;
8233 *.[123456].1) docroot_url_suffix="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8234 esac
8235 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8240 cat >>confdefs.h <<_ACEOF
8241 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8242 _ACEOF
8245 # Allow overriding the default URL for GCC changes
8247 # Check whether --with-changes-root-url was given.
8248 if test "${with_changes_root_url+set}" = set; then :
8249 withval=$with_changes_root_url; case "$withval" in
8250 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8251 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8252 */) CHANGES_ROOT_URL="$withval" ;;
8253 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8254 esac
8255 else
8256 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8261 cat >>confdefs.h <<_ACEOF
8262 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8263 _ACEOF
8266 # Sanity check enable_languages in case someone does not run the toplevel
8267 # configure # script.
8268 # Check whether --enable-languages was given.
8269 if test "${enable_languages+set}" = set; then :
8270 enableval=$enable_languages; case ,${enable_languages}, in
8271 ,,|,yes,)
8272 # go safe -- we cannot be much sure without the toplevel
8273 # configure's
8274 # analysis of which target libs are present and usable
8275 enable_languages=c
8277 *,all,*)
8278 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8280 *,c,*)
8283 enable_languages=c,${enable_languages}
8285 esac
8286 else
8287 enable_languages=c
8291 # If top-level libada has been disabled, then wire in install-gnatlib
8292 # invocation with `make install', so that one can build and install
8293 # the library manually with `make -C gcc all gnatlib gnattools install'.
8294 if test x"$enable_libada" = xno; then
8295 gnat_install_lib=gnat-install-lib
8296 else
8297 gnat_install_lib=
8301 if test x"$enable_as_accelerator_for" != x; then
8303 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8305 enable_as_accelerator=yes
8306 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8307 program_transform_name=`echo $program_transform_name | sed $sedscript`
8308 accel_dir_suffix=/accel/${target_noncanonical}
8309 real_target_noncanonical=${enable_as_accelerator_for}
8315 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8316 tgt=`echo $tgt | sed 's/=.*//'`
8318 enable_offloading=1
8319 case "$tgt" in
8320 amdgcn*)
8321 omp_device_property=omp-device-properties-gcn
8322 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8324 nvptx*)
8325 omp_device_property=omp-device-properties-nvptx
8326 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8329 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8331 esac
8332 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8333 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8335 if test x"$offload_targets" = x; then
8336 offload_targets=$tgt
8337 else
8338 offload_targets="$offload_targets,$tgt"
8340 done
8345 cat >>confdefs.h <<_ACEOF
8346 #define OFFLOAD_TARGETS "$offload_targets"
8347 _ACEOF
8349 if test x"$enable_offloading" != x; then
8351 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8353 else
8355 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8359 if test "x$enable_offload_defaulted" = xyes; then
8361 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8366 # Check whether --with-multilib-list was given.
8367 if test "${with_multilib_list+set}" = set; then :
8368 withval=$with_multilib_list; :
8369 else
8370 with_multilib_list=default
8375 # Check whether --with-multilib-generator was given.
8376 if test "${with_multilib_generator+set}" = set; then :
8377 withval=$with_multilib_generator; :
8378 else
8379 with_multilib_generator=default
8383 # -------------------------
8384 # Checks for other programs
8385 # -------------------------
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8388 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8389 set x ${MAKE-make}
8390 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8391 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 cat >conftest.make <<\_ACEOF
8395 SHELL = /bin/sh
8396 all:
8397 @echo '@@@%%%=$(MAKE)=@@@%%%'
8398 _ACEOF
8399 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8401 *@@@%%%=?*=@@@%%%*)
8402 eval ac_cv_prog_make_${ac_make}_set=yes;;
8404 eval ac_cv_prog_make_${ac_make}_set=no;;
8405 esac
8406 rm -f conftest.make
8408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8411 SET_MAKE=
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 SET_MAKE="MAKE=${MAKE-make}"
8419 # Find some useful tools
8420 for ac_prog in gawk mawk nawk awk
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_AWK+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$AWK"; then
8430 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_AWK="$ac_prog"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 AWK=$ac_cv_prog_AWK
8450 if test -n "$AWK"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8452 $as_echo "$AWK" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8459 test -n "$AWK" && break
8460 done
8462 # We need awk to create options.cc and options.h.
8463 # Bail out if it's missing.
8464 case ${AWK} in
8465 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8466 esac
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8469 $as_echo_n "checking whether ln -s works... " >&6; }
8470 if ${gcc_cv_prog_LN_S+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 rm -f conftestdata_t
8474 echo >conftestdata_f
8475 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8476 then
8477 gcc_cv_prog_LN_S="ln -s"
8478 else
8479 if ln conftestdata_f conftestdata_t 2>/dev/null
8480 then
8481 gcc_cv_prog_LN_S=ln
8482 else
8483 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8484 then
8485 gcc_cv_prog_LN_S="cp -p"
8486 else
8487 gcc_cv_prog_LN_S=cp
8491 rm -f conftestdata_f conftestdata_t
8494 LN_S="$gcc_cv_prog_LN_S"
8495 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8497 $as_echo "yes" >&6; }
8498 else
8499 if test "$gcc_cv_prog_LN_S" = "ln"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8501 $as_echo "no, using ln" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8504 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8509 $as_echo_n "checking whether ln works... " >&6; }
8510 if ${acx_cv_prog_LN+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 rm -f conftestdata_t
8514 echo >conftestdata_f
8515 if ln conftestdata_f conftestdata_t 2>/dev/null
8516 then
8517 acx_cv_prog_LN=ln
8518 else
8519 acx_cv_prog_LN=no
8521 rm -f conftestdata_f conftestdata_t
8524 if test $acx_cv_prog_LN = no; then
8525 LN="$LN_S"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8527 $as_echo "no, using $LN" >&6; }
8528 else
8529 LN="$acx_cv_prog_LN"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8534 if test -n "$ac_tool_prefix"; then
8535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_RANLIB+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$RANLIB"; then
8543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8562 RANLIB=$ac_cv_prog_RANLIB
8563 if test -n "$RANLIB"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8565 $as_echo "$RANLIB" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 if test -z "$ac_cv_prog_RANLIB"; then
8574 ac_ct_RANLIB=$RANLIB
8575 # Extract the first word of "ranlib", so it can be a program name with args.
8576 set dummy ranlib; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$ac_ct_RANLIB"; then
8583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_ac_ct_RANLIB="ranlib"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8603 if test -n "$ac_ct_RANLIB"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8605 $as_echo "$ac_ct_RANLIB" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8611 if test "x$ac_ct_RANLIB" = x; then
8612 RANLIB=":"
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620 RANLIB=$ac_ct_RANLIB
8622 else
8623 RANLIB="$ac_cv_prog_RANLIB"
8626 ranlib_flags=""
8629 # Find a good install program. We prefer a C program (faster),
8630 # so one script is as good as another. But avoid the broken or
8631 # incompatible versions:
8632 # SysV /etc/install, /usr/sbin/install
8633 # SunOS /usr/etc/install
8634 # IRIX /sbin/install
8635 # AIX /bin/install
8636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8638 # ./install, which can be erroneously created by make from ./install.sh.
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8640 $as_echo_n "checking for a BSD compatible install... " >&6; }
8641 if test -z "$INSTALL"; then
8642 if ${ac_cv_path_install+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8646 for ac_dir in $PATH; do
8647 # Account for people who put trailing slashes in PATH elements.
8648 case "$ac_dir/" in
8649 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8651 # OSF1 and SCO ODT 3.0 have their own names for install.
8652 for ac_prog in ginstall scoinst install; do
8653 if test -f $ac_dir/$ac_prog; then
8654 if test $ac_prog = install &&
8655 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8656 # AIX install. It has an incompatible calling convention.
8657 # OSF/1 installbsd also uses dspmsg, but is usable.
8659 else
8660 ac_cv_path_install="$ac_dir/$ac_prog -c"
8661 break 2
8664 done
8666 esac
8667 done
8668 IFS="$ac_save_IFS"
8671 if test "${ac_cv_path_install+set}" = set; then
8672 INSTALL="$ac_cv_path_install"
8673 else
8674 # As a last resort, use the slow shell script. We don't cache a
8675 # path for INSTALL within a source directory, because that will
8676 # break other packages using the cache if that directory is
8677 # removed, or if the path is relative.
8678 INSTALL="$ac_install_sh"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8682 $as_echo "$INSTALL" >&6; }
8684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8685 # It thinks the first close brace ends the variable substitution.
8686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8691 # See if cmp has --ignore-initial.
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8693 $as_echo_n "checking for cmp's capabilities... " >&6; }
8694 if ${gcc_cv_prog_cmp_skip+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 echo abfoo >t1
8698 echo cdfoo >t2
8699 gcc_cv_prog_cmp_skip=slowcompare
8700 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8701 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8703 else
8704 gcc_cv_prog_cmp_skip=gnucompare
8707 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8708 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8709 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8711 else
8712 gcc_cv_prog_cmp_skip=fastcompare
8716 rm t1 t2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8720 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8721 make_compare_target=$gcc_cv_prog_cmp_skip
8725 # See if we have the mktemp command.
8726 # Extract the first word of "mktemp", so it can be a program name with args.
8727 set dummy mktemp; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 if test -n "$have_mktemp_command"; then
8734 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_have_mktemp_command="yes"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8751 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8754 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8755 if test -n "$have_mktemp_command"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8757 $as_echo "$have_mktemp_command" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8765 # See if makeinfo has been installed and is modern enough
8766 # that we can use it.
8768 # Extract the first word of "makeinfo", so it can be a program name with args.
8769 set dummy makeinfo; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_MAKEINFO+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 if test -n "$MAKEINFO"; then
8776 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_MAKEINFO="makeinfo"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8789 done
8790 done
8791 IFS=$as_save_IFS
8795 MAKEINFO=$ac_cv_prog_MAKEINFO
8796 if test -n "$MAKEINFO"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8798 $as_echo "$MAKEINFO" >&6; }
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8805 if test -n "$MAKEINFO"; then
8806 # Found it, now check the version.
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8808 $as_echo_n "checking for modern makeinfo... " >&6; }
8809 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8813 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8815 case $ac_prog_version in
8816 '') gcc_cv_prog_makeinfo_modern=no;;
8817 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8818 *) gcc_cv_prog_makeinfo_modern=no;;
8819 esac
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8823 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8824 else
8825 gcc_cv_prog_makeinfo_modern=no
8827 if test $gcc_cv_prog_makeinfo_modern = no; then
8828 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8831 if test $gcc_cv_prog_makeinfo_modern = no; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8833 *** Makeinfo is missing or too old.
8834 *** Info documentation will not be built." >&5
8835 $as_echo "$as_me: WARNING:
8836 *** Makeinfo is missing or too old.
8837 *** Info documentation will not be built." >&2;}
8838 BUILD_INFO=no-info
8839 else
8840 BUILD_INFO=info
8844 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8845 # If it does, we want to pass it to makeinfo in order to restore the old
8846 # behavior of @{summary,}contents placement.
8847 MAKEINFO_TOC_INLINE_FLAG=
8848 if test x"$MAKEINFO" != x; then :
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8851 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8852 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8856 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8857 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8858 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8859 gcc_cv_texi_add_toc_inline_flags=no
8860 else
8861 gcc_cv_texi_add_toc_inline_flags=yes
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8866 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8867 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8868 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8874 # Is pod2man recent enough to regenerate manpages?
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8876 $as_echo_n "checking for recent Pod::Man... " >&6; }
8877 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8879 $as_echo "yes" >&6; }
8880 GENERATED_MANPAGES=generated-manpages
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8884 GENERATED_MANPAGES=
8888 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8890 # How about lex?
8891 for ac_prog in flex
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_FLEX+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test -n "$FLEX"; then
8901 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="$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 FLEX=$ac_cv_prog_FLEX
8921 if test -n "$FLEX"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8923 $as_echo "$FLEX" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$FLEX" && break
8931 done
8932 test -n "$FLEX" || FLEX="$MISSING flex"
8935 # Bison?
8936 for ac_prog in bison
8938 # Extract the first word of "$ac_prog", so it can be a program name with args.
8939 set dummy $ac_prog; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_BISON+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$BISON"; then
8946 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_BISON="$ac_prog"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8959 done
8960 done
8961 IFS=$as_save_IFS
8965 BISON=$ac_cv_prog_BISON
8966 if test -n "$BISON"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8968 $as_echo "$BISON" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8975 test -n "$BISON" && break
8976 done
8977 test -n "$BISON" || BISON="$MISSING bison"
8980 # Python3?
8982 # Extract the first word of "python3", so it can be a program name with args.
8983 set dummy python3; ac_word=$2
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if ${ac_cv_prog_PYTHON+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 if test -n "$PYTHON"; then
8990 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8995 IFS=$as_save_IFS
8996 test -z "$as_dir" && as_dir=.
8997 for ac_exec_ext in '' $ac_executable_extensions; do
8998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999 ac_cv_prog_PYTHON="python3"
9000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001 break 2
9003 done
9004 done
9005 IFS=$as_save_IFS
9009 PYTHON=$ac_cv_prog_PYTHON
9010 if test -n "$PYTHON"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9012 $as_echo "$PYTHON" >&6; }
9013 else
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9019 if test -n "$PYTHON"; then
9020 # Found it, now check the version.
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9022 $as_echo_n "checking for modern python3... " >&6; }
9023 if ${gcc_cv_prog_python3_modern+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 ac_prog_version=`eval $PYTHON --version 2>&1 |
9027 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9029 case $ac_prog_version in
9030 '') gcc_cv_prog_python3_modern=no;;
9031 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9032 *) gcc_cv_prog_python3_modern=no;;
9033 esac
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9037 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9038 else
9039 gcc_cv_prog_python3_modern=no
9041 if test $gcc_cv_prog_python3_modern = no; then
9042 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9045 if test $gcc_cv_prog_python3_modern = no; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9047 *** Python3 is missing.
9048 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9049 $as_echo "$as_me: WARNING:
9050 *** Python3 is missing.
9051 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9052 HAVE_PYTHON=no
9053 else
9054 HAVE_PYTHON=yes
9058 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9059 # check for build == host before using them.
9061 # NM
9062 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9063 && test -d ../binutils ; then
9064 NM='../binutils/nm-new'
9065 else
9066 # Extract the first word of "nm", so it can be a program name with args.
9067 set dummy nm; 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_NM+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$NM"; then
9074 ac_cv_prog_NM="$NM" # 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_NM="nm"
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_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9094 NM=$ac_cv_prog_NM
9095 if test -n "$NM"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9097 $as_echo "$NM" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9106 # AR
9107 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9108 && test -d ../binutils ; then
9109 AR='../binutils/ar'
9110 else
9111 # Extract the first word of "ar", so it can be a program name with args.
9112 set dummy ar; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_prog_AR+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$AR"; then
9119 ac_cv_prog_AR="$AR" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_AR="ar"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9136 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9139 AR=$ac_cv_prog_AR
9140 if test -n "$AR"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9142 $as_echo "$AR" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9151 # The jit documentation looks better if built with sphinx, but can be
9152 # built with texinfo if sphinx is not available.
9153 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9154 # Extract the first word of "sphinx-build", so it can be a program name with args.
9155 set dummy sphinx-build; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_prog_doc_build_sys+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$doc_build_sys"; then
9162 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_doc_build_sys="sphinx"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9179 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9182 doc_build_sys=$ac_cv_prog_doc_build_sys
9183 if test -n "$doc_build_sys"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9185 $as_echo "$doc_build_sys" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9193 # --------------------
9194 # Checks for C headers
9195 # --------------------
9197 # Need to reject headers which give warnings, so that the -Werror bootstrap
9198 # works later. *sigh* This needs to come before all header checks.
9200 ac_c_preproc_warn_flag=yes
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9203 $as_echo_n "checking for ANSI C header files... " >&6; }
9204 if ${ac_cv_header_stdc+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 #include <stdlib.h>
9210 #include <stdarg.h>
9211 #include <string.h>
9212 #include <float.h>
9215 main ()
9219 return 0;
9221 _ACEOF
9222 if ac_fn_cxx_try_compile "$LINENO"; then :
9223 ac_cv_header_stdc=yes
9224 else
9225 ac_cv_header_stdc=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 if test $ac_cv_header_stdc = yes; then
9230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <string.h>
9235 _ACEOF
9236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9237 $EGREP "memchr" >/dev/null 2>&1; then :
9239 else
9240 ac_cv_header_stdc=no
9242 rm -f conftest*
9246 if test $ac_cv_header_stdc = yes; then
9247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #include <stdlib.h>
9252 _ACEOF
9253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9254 $EGREP "free" >/dev/null 2>&1; then :
9256 else
9257 ac_cv_header_stdc=no
9259 rm -f conftest*
9263 if test $ac_cv_header_stdc = yes; then
9264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9265 if test "$cross_compiling" = yes; then :
9267 else
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <ctype.h>
9271 #include <stdlib.h>
9272 #if ((' ' & 0x0FF) == 0x020)
9273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9275 #else
9276 # define ISLOWER(c) \
9277 (('a' <= (c) && (c) <= 'i') \
9278 || ('j' <= (c) && (c) <= 'r') \
9279 || ('s' <= (c) && (c) <= 'z'))
9280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9281 #endif
9283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9285 main ()
9287 int i;
9288 for (i = 0; i < 256; i++)
9289 if (XOR (islower (i), ISLOWER (i))
9290 || toupper (i) != TOUPPER (i))
9291 return 2;
9292 return 0;
9294 _ACEOF
9295 if ac_fn_cxx_try_run "$LINENO"; then :
9297 else
9298 ac_cv_header_stdc=no
9300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9301 conftest.$ac_objext conftest.beam conftest.$ac_ext
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9307 $as_echo "$ac_cv_header_stdc" >&6; }
9308 if test $ac_cv_header_stdc = yes; then
9310 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9315 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9316 if ${ac_cv_header_time+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 #include <sys/types.h>
9322 #include <sys/time.h>
9323 #include <time.h>
9326 main ()
9328 if ((struct tm *) 0)
9329 return 0;
9331 return 0;
9333 _ACEOF
9334 if ac_fn_cxx_try_compile "$LINENO"; then :
9335 ac_cv_header_time=yes
9336 else
9337 ac_cv_header_time=no
9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9342 $as_echo "$ac_cv_header_time" >&6; }
9343 if test $ac_cv_header_time = yes; then
9345 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9350 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9351 if ${gcc_cv_header_string+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 #include <string.h>
9357 #include <strings.h>
9359 main ()
9363 return 0;
9365 _ACEOF
9366 if ac_fn_cxx_try_compile "$LINENO"; then :
9367 gcc_cv_header_string=yes
9368 else
9369 gcc_cv_header_string=no
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9374 $as_echo "$gcc_cv_header_string" >&6; }
9375 if test $gcc_cv_header_string = yes; then
9377 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9382 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9383 if ${ac_cv_header_sys_wait_h+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/types.h>
9389 #include <sys/wait.h>
9390 #ifndef WEXITSTATUS
9391 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9392 #endif
9393 #ifndef WIFEXITED
9394 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9395 #endif
9398 main ()
9400 int s;
9401 wait (&s);
9402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9404 return 0;
9406 _ACEOF
9407 if ac_fn_cxx_try_compile "$LINENO"; then :
9408 ac_cv_header_sys_wait_h=yes
9409 else
9410 ac_cv_header_sys_wait_h=no
9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9415 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9416 if test $ac_cv_header_sys_wait_h = yes; then
9418 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9423 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9424 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 #include <sys/types.h>
9430 #include <termios.h>
9431 #ifdef TIOCGWINSZ
9433 #endif
9435 _ACEOF
9436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9437 $EGREP "yes" >/dev/null 2>&1; then :
9438 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9439 else
9440 ac_cv_sys_tiocgwinsz_in_termios_h=no
9442 rm -f conftest*
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9446 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9448 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9450 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9451 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 #include <sys/types.h>
9457 #include <sys/ioctl.h>
9458 #ifdef TIOCGWINSZ
9460 #endif
9462 _ACEOF
9463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP "yes" >/dev/null 2>&1; then :
9465 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9466 else
9467 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9469 rm -f conftest*
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9473 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9475 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9477 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9482 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9483 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9484 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9485 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9486 do :
9487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9489 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9490 cat >>confdefs.h <<_ACEOF
9491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9492 _ACEOF
9495 done
9498 # Check for thread headers.
9499 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9500 if test "x$ac_cv_header_thread_h" = xyes; then :
9501 have_thread_h=yes
9502 else
9503 have_thread_h=
9506 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9507 if test "x$ac_cv_header_pthread_h" = xyes; then :
9508 have_pthread_h=yes
9509 else
9510 have_pthread_h=
9514 # These tests can't be done till we know if we have limits.h.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9516 $as_echo_n "checking for CHAR_BIT... " >&6; }
9517 if ${gcc_cv_decl_char_bit+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #ifdef HAVE_LIMITS_H
9523 #include <limits.h>
9524 #endif
9525 #ifdef CHAR_BIT
9526 found
9527 #endif
9528 _ACEOF
9529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9530 $EGREP "found" >/dev/null 2>&1; then :
9531 gcc_cv_decl_char_bit=yes
9532 else
9533 gcc_cv_decl_char_bit=no
9535 rm -f conftest*
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9540 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9541 if test $gcc_cv_decl_char_bit = no; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9543 $as_echo_n "checking number of bits in a byte... " >&6; }
9544 if ${gcc_cv_c_nbby+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9548 gcc_cv_c_nbby=
9549 while test $i -lt 65; do
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9554 main ()
9556 switch(0) {
9557 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9558 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9561 return 0;
9563 _ACEOF
9564 if ac_fn_cxx_try_compile "$LINENO"; then :
9565 gcc_cv_c_nbby=$i; break
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 i=`expr $i + 1`
9569 done
9570 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9574 $as_echo "$gcc_cv_c_nbby" >&6; }
9575 if test $gcc_cv_c_nbby = failed; then
9576 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9577 else
9579 cat >>confdefs.h <<_ACEOF
9580 #define CHAR_BIT $gcc_cv_c_nbby
9581 _ACEOF
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9587 if ${ac_cv_c_bigendian+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 ac_cv_c_bigendian=unknown
9591 # See if we're dealing with a universal compiler.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #ifndef __APPLE_CC__
9595 not a universal capable compiler
9596 #endif
9597 typedef int dummy;
9599 _ACEOF
9600 if ac_fn_cxx_try_compile "$LINENO"; then :
9602 # Check for potential -arch flags. It is not universal unless
9603 # there are at least two -arch flags with different values.
9604 ac_arch=
9605 ac_prev=
9606 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9607 if test -n "$ac_prev"; then
9608 case $ac_word in
9609 i?86 | x86_64 | ppc | ppc64)
9610 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9611 ac_arch=$ac_word
9612 else
9613 ac_cv_c_bigendian=universal
9614 break
9617 esac
9618 ac_prev=
9619 elif test "x$ac_word" = "x-arch"; then
9620 ac_prev=arch
9622 done
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 if test $ac_cv_c_bigendian = unknown; then
9626 # See if sys/param.h defines the BYTE_ORDER macro.
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/param.h>
9633 main ()
9635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9637 && LITTLE_ENDIAN)
9638 bogus endian macros
9639 #endif
9642 return 0;
9644 _ACEOF
9645 if ac_fn_cxx_try_compile "$LINENO"; then :
9646 # It does; now see whether it defined to BIG_ENDIAN or not.
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 #include <sys/types.h>
9650 #include <sys/param.h>
9653 main ()
9655 #if BYTE_ORDER != BIG_ENDIAN
9656 not big endian
9657 #endif
9660 return 0;
9662 _ACEOF
9663 if ac_fn_cxx_try_compile "$LINENO"; then :
9664 ac_cv_c_bigendian=yes
9665 else
9666 ac_cv_c_bigendian=no
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if test $ac_cv_c_bigendian = unknown; then
9673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 #include <limits.h>
9679 main ()
9681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9682 bogus endian macros
9683 #endif
9686 return 0;
9688 _ACEOF
9689 if ac_fn_cxx_try_compile "$LINENO"; then :
9690 # It does; now see whether it defined to _BIG_ENDIAN or not.
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 #include <limits.h>
9696 main ()
9698 #ifndef _BIG_ENDIAN
9699 not big endian
9700 #endif
9703 return 0;
9705 _ACEOF
9706 if ac_fn_cxx_try_compile "$LINENO"; then :
9707 ac_cv_c_bigendian=yes
9708 else
9709 ac_cv_c_bigendian=no
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 if test $ac_cv_c_bigendian = unknown; then
9716 # Compile a test program.
9717 if test "$cross_compiling" = yes; then :
9718 # Try to guess by grepping values from an object file.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 short int ascii_mm[] =
9722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9723 short int ascii_ii[] =
9724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9725 int use_ascii (int i) {
9726 return ascii_mm[i] + ascii_ii[i];
9728 short int ebcdic_ii[] =
9729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9730 short int ebcdic_mm[] =
9731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9732 int use_ebcdic (int i) {
9733 return ebcdic_mm[i] + ebcdic_ii[i];
9735 extern int foo;
9738 main ()
9740 return use_ascii (foo) == use_ebcdic (foo);
9742 return 0;
9744 _ACEOF
9745 if ac_fn_cxx_try_compile "$LINENO"; then :
9746 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9747 ac_cv_c_bigendian=yes
9749 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9750 if test "$ac_cv_c_bigendian" = unknown; then
9751 ac_cv_c_bigendian=no
9752 else
9753 # finding both strings is unlikely to happen, but who knows?
9754 ac_cv_c_bigendian=unknown
9758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759 else
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 $ac_includes_default
9764 main ()
9767 /* Are we little or big endian? From Harbison&Steele. */
9768 union
9770 long int l;
9771 char c[sizeof (long int)];
9772 } u;
9773 u.l = 1;
9774 return u.c[sizeof (long int) - 1] == 1;
9777 return 0;
9779 _ACEOF
9780 if ac_fn_cxx_try_run "$LINENO"; then :
9781 ac_cv_c_bigendian=no
9782 else
9783 ac_cv_c_bigendian=yes
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786 conftest.$ac_objext conftest.beam conftest.$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9792 $as_echo "$ac_cv_c_bigendian" >&6; }
9793 case $ac_cv_c_bigendian in #(
9794 yes)
9795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9796 ;; #(
9798 ;; #(
9799 universal)
9801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9803 ;; #(
9805 as_fn_error $? "unknown endianness
9806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9807 esac
9810 # ----------------------
9811 # Checks for C++ headers
9812 # ----------------------
9814 ac_ext=cpp
9815 ac_cpp='$CXXCPP $CPPFLAGS'
9816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9820 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9821 if test -z "$CXXCPP"; then
9822 if ${ac_cv_prog_CXXCPP+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 # Double quotes because CXXCPP needs to be expanded
9826 for CXXCPP in "$CXX -E" "/lib/cpp"
9828 ac_preproc_ok=false
9829 for ac_cxx_preproc_warn_flag in '' yes
9831 # Use a header file that comes with gcc, so configuring glibc
9832 # with a fresh cross-compiler works.
9833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 # <limits.h> exists even on freestanding compilers.
9835 # On the NeXT, cc -E runs the code through the compiler's parser,
9836 # not just through cpp. "Syntax error" is here to catch this case.
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #ifdef __STDC__
9840 # include <limits.h>
9841 #else
9842 # include <assert.h>
9843 #endif
9844 Syntax error
9845 _ACEOF
9846 if ac_fn_cxx_try_cpp "$LINENO"; then :
9848 else
9849 # Broken: fails on valid input.
9850 continue
9852 rm -f conftest.err conftest.i conftest.$ac_ext
9854 # OK, works on sane cases. Now check whether nonexistent headers
9855 # can be detected and how.
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include <ac_nonexistent.h>
9859 _ACEOF
9860 if ac_fn_cxx_try_cpp "$LINENO"; then :
9861 # Broken: success on invalid input.
9862 continue
9863 else
9864 # Passes both tests.
9865 ac_preproc_ok=:
9866 break
9868 rm -f conftest.err conftest.i conftest.$ac_ext
9870 done
9871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9872 rm -f conftest.i conftest.err conftest.$ac_ext
9873 if $ac_preproc_ok; then :
9874 break
9877 done
9878 ac_cv_prog_CXXCPP=$CXXCPP
9881 CXXCPP=$ac_cv_prog_CXXCPP
9882 else
9883 ac_cv_prog_CXXCPP=$CXXCPP
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9886 $as_echo "$CXXCPP" >&6; }
9887 ac_preproc_ok=false
9888 for ac_cxx_preproc_warn_flag in '' yes
9890 # Use a header file that comes with gcc, so configuring glibc
9891 # with a fresh cross-compiler works.
9892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 # <limits.h> exists even on freestanding compilers.
9894 # On the NeXT, cc -E runs the code through the compiler's parser,
9895 # not just through cpp. "Syntax error" is here to catch this case.
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9903 Syntax error
9904 _ACEOF
9905 if ac_fn_cxx_try_cpp "$LINENO"; then :
9907 else
9908 # Broken: fails on valid input.
9909 continue
9911 rm -f conftest.err conftest.i conftest.$ac_ext
9913 # OK, works on sane cases. Now check whether nonexistent headers
9914 # can be detected and how.
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <ac_nonexistent.h>
9918 _ACEOF
9919 if ac_fn_cxx_try_cpp "$LINENO"; then :
9920 # Broken: success on invalid input.
9921 continue
9922 else
9923 # Passes both tests.
9924 ac_preproc_ok=:
9925 break
9927 rm -f conftest.err conftest.i conftest.$ac_ext
9929 done
9930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9931 rm -f conftest.i conftest.err conftest.$ac_ext
9932 if $ac_preproc_ok; then :
9934 else
9935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9938 See \`config.log' for more details" >&5
9939 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9940 See \`config.log' for more details" >&2;}; }
9943 ac_ext=cpp
9944 ac_cpp='$CXXCPP $CPPFLAGS'
9945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9950 for ac_header in unordered_map
9951 do :
9952 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9953 if test "x$ac_cv_header_unordered_map" = xyes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_UNORDERED_MAP 1
9956 _ACEOF
9959 done
9961 for ac_header in tr1/unordered_map
9962 do :
9963 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9964 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_TR1_UNORDERED_MAP 1
9967 _ACEOF
9970 done
9972 for ac_header in ext/hash_map
9973 do :
9974 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9975 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9976 cat >>confdefs.h <<_ACEOF
9977 #define HAVE_EXT_HASH_MAP 1
9978 _ACEOF
9981 done
9984 # --------
9985 # Dependency checking.
9986 # --------
9988 rm -rf .tst 2>/dev/null
9989 mkdir .tst 2>/dev/null
9990 if test -d .tst; then
9991 am__leading_dot=.
9992 else
9993 am__leading_dot=_
9995 rmdir .tst 2>/dev/null
9997 DEPDIR="${am__leading_dot}deps"
9999 ac_config_commands="$ac_config_commands depdir"
10002 ac_config_commands="$ac_config_commands gccdepdir"
10005 depcc="$CXX" am_compiler_list=
10007 am_depcomp=$ac_aux_dir/depcomp
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10009 $as_echo_n "checking dependency style of $depcc... " >&6; }
10010 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 if test -f "$am_depcomp"; then
10014 # We make a subdir and do the tests there. Otherwise we can end up
10015 # making bogus files that we don't know about and never remove. For
10016 # instance it was reported that on HP-UX the gcc test will end up
10017 # making a dummy file named `D' -- because `-MD' means `put the output
10018 # in D'.
10019 mkdir conftest.dir
10020 # Copy depcomp to subdir because otherwise we won't find it if we're
10021 # using a relative directory.
10022 cp "$am_depcomp" conftest.dir
10023 cd conftest.dir
10024 # We will build objects and dependencies in a subdirectory because
10025 # it helps to detect inapplicable dependency modes. For instance
10026 # both Tru64's cc and ICC support -MD to output dependencies as a
10027 # side effect of compilation, but ICC will put the dependencies in
10028 # the current directory while Tru64 will put them in the object
10029 # directory.
10030 mkdir sub
10032 am_cv_CXX_dependencies_compiler_type=none
10033 if test "$am_compiler_list" = ""; then
10034 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10036 for depmode in $am_compiler_list; do
10037 if test $depmode = none; then break; fi
10039 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10040 # Setup a source with many dependencies, because some compilers
10041 # like to wrap large dependency lists on column 80 (with \), and
10042 # we should not choose a depcomp mode which is confused by this.
10044 # We need to recreate these files for each test, as the compiler may
10045 # overwrite some of them when testing with obscure command lines.
10046 # This happens at least with the AIX C compiler.
10047 : > sub/conftest.c
10048 for i in 1 2 3 4 5 6; do
10049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10051 # Solaris 8's {/usr,}/bin/sh.
10052 touch sub/conftst$i.h
10053 done
10054 echo "include sub/conftest.Po" > confmf
10056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10057 # mode. It turns out that the SunPro C++ compiler does not properly
10058 # handle `-M -o', and we need to detect this.
10059 depcmd="depmode=$depmode \
10060 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10062 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10063 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10064 if env $depcmd > conftest.err 2>&1 &&
10065 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10066 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10067 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10068 # icc doesn't choke on unknown options, it will just issue warnings
10069 # or remarks (even with -Werror). So we grep stderr for any message
10070 # that says an option was ignored or not supported.
10071 # When given -MP, icc 7.0 and 7.1 complain thusly:
10072 # icc: Command line warning: ignoring option '-M'; no argument required
10073 # The diagnosis changed in icc 8.0:
10074 # icc: Command line remark: option '-MP' not supported
10075 if (grep 'ignoring option' conftest.err ||
10076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10077 am_cv_CXX_dependencies_compiler_type=$depmode
10078 $as_echo "$as_me:$LINENO: success" >&5
10079 break
10082 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10083 sed -e 's/^/| /' < conftest.err >&5
10084 done
10086 cd ..
10087 rm -rf conftest.dir
10088 else
10089 am_cv_CXX_dependencies_compiler_type=none
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10094 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10095 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10096 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10097 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10102 # --------
10103 # UNSORTED
10104 # --------
10107 # These libraries may be used by collect2.
10108 # We may need a special search path to get them linked.
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10110 $as_echo_n "checking for collect2 libraries... " >&6; }
10111 if ${gcc_cv_collect2_libs+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 save_LIBS="$LIBS"
10115 for libs in '' -lld -lmld \
10116 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10117 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10119 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 ldopen ();
10131 main ()
10133 return ldopen ();
10135 return 0;
10137 _ACEOF
10138 if ac_fn_cxx_try_link "$LINENO"; then :
10139 gcc_cv_collect2_libs="$libs"; break
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 done
10144 LIBS="$save_LIBS"
10145 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10148 $as_echo "$gcc_cv_collect2_libs" >&6; }
10149 case $gcc_cv_collect2_libs in
10150 "none required") ;;
10151 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10152 esac
10155 # When building Ada code on Alpha, we need exc_resume which is usually in
10156 # -lexc. So test for it.
10157 save_LIBS="$LIBS"
10158 LIBS=
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10160 $as_echo_n "checking for library containing exc_resume... " >&6; }
10161 if ${ac_cv_search_exc_resume+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 ac_func_search_save_LIBS=$LIBS
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char exc_resume ();
10176 main ()
10178 return exc_resume ();
10180 return 0;
10182 _ACEOF
10183 for ac_lib in '' exc; do
10184 if test -z "$ac_lib"; then
10185 ac_res="none required"
10186 else
10187 ac_res=-l$ac_lib
10188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10190 if ac_fn_cxx_try_link "$LINENO"; then :
10191 ac_cv_search_exc_resume=$ac_res
10193 rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext
10195 if ${ac_cv_search_exc_resume+:} false; then :
10196 break
10198 done
10199 if ${ac_cv_search_exc_resume+:} false; then :
10201 else
10202 ac_cv_search_exc_resume=no
10204 rm conftest.$ac_ext
10205 LIBS=$ac_func_search_save_LIBS
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10208 $as_echo "$ac_cv_search_exc_resume" >&6; }
10209 ac_res=$ac_cv_search_exc_resume
10210 if test "$ac_res" != no; then :
10211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10215 GNAT_LIBEXC="$LIBS"
10216 LIBS="$save_LIBS"
10219 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10220 save_LIBS="$LIBS"
10221 LIBS=
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10223 $as_echo_n "checking for library containing kstat_open... " >&6; }
10224 if ${ac_cv_search_kstat_open+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 ac_func_search_save_LIBS=$LIBS
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char kstat_open ();
10239 main ()
10241 return kstat_open ();
10243 return 0;
10245 _ACEOF
10246 for ac_lib in '' kstat; do
10247 if test -z "$ac_lib"; then
10248 ac_res="none required"
10249 else
10250 ac_res=-l$ac_lib
10251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10253 if ac_fn_cxx_try_link "$LINENO"; then :
10254 ac_cv_search_kstat_open=$ac_res
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext
10258 if ${ac_cv_search_kstat_open+:} false; then :
10259 break
10261 done
10262 if ${ac_cv_search_kstat_open+:} false; then :
10264 else
10265 ac_cv_search_kstat_open=no
10267 rm conftest.$ac_ext
10268 LIBS=$ac_func_search_save_LIBS
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10271 $as_echo "$ac_cv_search_kstat_open" >&6; }
10272 ac_res=$ac_cv_search_kstat_open
10273 if test "$ac_res" != no; then :
10274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10278 EXTRA_GCC_LIBS="$LIBS"
10279 LIBS="$save_LIBS"
10282 # Some systems put ldexp and frexp in libm instead of libc; assume
10283 # they're both in the same place. jcf-dump needs them.
10284 save_LIBS="$LIBS"
10285 LIBS=
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10287 $as_echo_n "checking for library containing ldexp... " >&6; }
10288 if ${ac_cv_search_ldexp+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 ac_func_search_save_LIBS=$LIBS
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 char ldexp ();
10303 main ()
10305 return ldexp ();
10307 return 0;
10309 _ACEOF
10310 for ac_lib in '' m; do
10311 if test -z "$ac_lib"; then
10312 ac_res="none required"
10313 else
10314 ac_res=-l$ac_lib
10315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10317 if ac_fn_cxx_try_link "$LINENO"; then :
10318 ac_cv_search_ldexp=$ac_res
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext
10322 if ${ac_cv_search_ldexp+:} false; then :
10323 break
10325 done
10326 if ${ac_cv_search_ldexp+:} false; then :
10328 else
10329 ac_cv_search_ldexp=no
10331 rm conftest.$ac_ext
10332 LIBS=$ac_func_search_save_LIBS
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10335 $as_echo "$ac_cv_search_ldexp" >&6; }
10336 ac_res=$ac_cv_search_ldexp
10337 if test "$ac_res" != no; then :
10338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10342 LDEXP_LIB="$LIBS"
10343 LIBS="$save_LIBS"
10346 # Some systems need dlopen
10347 save_LIBS="$LIBS"
10348 LIBS=
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10350 $as_echo_n "checking for library containing dlopen... " >&6; }
10351 if ${ac_cv_search_dlopen+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 ac_func_search_save_LIBS=$LIBS
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char dlopen ();
10366 main ()
10368 return dlopen ();
10370 return 0;
10372 _ACEOF
10373 for ac_lib in '' dl; do
10374 if test -z "$ac_lib"; then
10375 ac_res="none required"
10376 else
10377 ac_res=-l$ac_lib
10378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10380 if ac_fn_cxx_try_link "$LINENO"; then :
10381 ac_cv_search_dlopen=$ac_res
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext
10385 if ${ac_cv_search_dlopen+:} false; then :
10386 break
10388 done
10389 if ${ac_cv_search_dlopen+:} false; then :
10391 else
10392 ac_cv_search_dlopen=no
10394 rm conftest.$ac_ext
10395 LIBS=$ac_func_search_save_LIBS
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10398 $as_echo "$ac_cv_search_dlopen" >&6; }
10399 ac_res=$ac_cv_search_dlopen
10400 if test "$ac_res" != no; then :
10401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10405 DL_LIB="$LIBS"
10406 LIBS="$save_LIBS"
10409 # Use <inttypes.h> only if it exists,
10410 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10411 # PRId64
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10413 $as_echo_n "checking for inttypes.h... " >&6; }
10414 if ${gcc_cv_header_inttypes_h+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419 #define __STDC_FORMAT_MACROS
10420 #include <sys/types.h>
10421 #include <inttypes.h>
10423 main ()
10425 intmax_t i = -1;
10426 #ifndef PRId64
10427 choke me
10428 #endif
10430 return 0;
10432 _ACEOF
10433 if ac_fn_cxx_try_compile "$LINENO"; then :
10434 gcc_cv_header_inttypes_h=yes
10435 else
10436 gcc_cv_header_inttypes_h=no
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10442 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10443 if test $gcc_cv_header_inttypes_h = yes; then
10445 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10449 # Look for the ZSTD package.
10450 ZSTD_INCLUDE=
10451 ZSTD_LIB=
10454 ZSTD_CPPFLAGS=
10455 ZSTD_LDFLAGS=
10459 # Check whether --with-zstd was given.
10460 if test "${with_zstd+set}" = set; then :
10461 withval=$with_zstd;
10465 # Check whether --with-zstd-include was given.
10466 if test "${with_zstd_include+set}" = set; then :
10467 withval=$with_zstd_include;
10471 # Check whether --with-zstd-lib was given.
10472 if test "${with_zstd_lib+set}" = set; then :
10473 withval=$with_zstd_lib;
10476 case "x$with_zstd" in
10477 x) ;;
10478 xno)
10479 ZSTD_INCLUDE=
10480 ZSTD_LIB=
10482 *) ZSTD_INCLUDE=$with_zstd/include
10483 ZSTD_LIB=$with_zstd/lib
10485 esac
10487 if test "x$with_zstd" != xno; then
10488 if test "x$with_zstd_include" != x; then
10489 ZSTD_INCLUDE=$with_zstd_include
10491 if test "x$with_zstd_lib" != x; then
10492 ZSTD_LIB=$with_zstd_lib
10494 if test "x$ZSTD_INCLUDE" != x \
10495 && test "x$ZSTD_INCLUDE" != xno; then
10496 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10498 if test "x$ZSTD_LIB" != x \
10499 && test "x$ZSTD_LIB" != xno; then
10500 ZSTD_LDFLAGS=-L$ZSTD_LIB
10503 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10504 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10506 # LTO can use zstd compression algorithm
10507 save_LIBS="$LIBS"
10508 LIBS=
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10510 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10511 if ${ac_cv_search_ZSTD_compress+:} false; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 ac_func_search_save_LIBS=$LIBS
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char ZSTD_compress ();
10526 main ()
10528 return ZSTD_compress ();
10530 return 0;
10532 _ACEOF
10533 for ac_lib in '' zstd; do
10534 if test -z "$ac_lib"; then
10535 ac_res="none required"
10536 else
10537 ac_res=-l$ac_lib
10538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10540 if ac_fn_cxx_try_link "$LINENO"; then :
10541 ac_cv_search_ZSTD_compress=$ac_res
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext
10545 if ${ac_cv_search_ZSTD_compress+:} false; then :
10546 break
10548 done
10549 if ${ac_cv_search_ZSTD_compress+:} false; then :
10551 else
10552 ac_cv_search_ZSTD_compress=no
10554 rm conftest.$ac_ext
10555 LIBS=$ac_func_search_save_LIBS
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10558 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10559 ac_res=$ac_cv_search_ZSTD_compress
10560 if test "$ac_res" != no; then :
10561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10563 else
10564 gcc_cv_header_zstd_h=no
10567 ZSTD_LIB="$LIBS"
10568 LIBS="$save_LIBS"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10572 $as_echo_n "checking for zstd.h... " >&6; }
10573 if ${gcc_cv_header_zstd_h+:} false; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 # We require version 1.3.0 or later. This is the first version that has
10577 # ZSTD_getFrameContentSize.
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 #include <zstd.h>
10581 #if ZSTD_VERSION_NUMBER < 10300
10582 #error "need zstd 1.3.0 or better"
10583 #endif
10585 main ()
10589 return 0;
10591 _ACEOF
10592 if ac_fn_cxx_try_compile "$LINENO"; then :
10593 gcc_cv_header_zstd_h=yes
10594 else
10595 gcc_cv_header_zstd_h=no
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10601 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10602 if test $gcc_cv_header_zstd_h = yes; then
10604 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10606 elif test "x$with_zstd" != x; then
10607 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10613 for ac_func in times clock kill getrlimit setrlimit atoq \
10614 popen sysconf strsignal getrusage nl_langinfo \
10615 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10616 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
10617 do :
10618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10619 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10620 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10621 cat >>confdefs.h <<_ACEOF
10622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10623 _ACEOF
10626 done
10629 if test x$ac_cv_func_mbstowcs = xyes; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10631 $as_echo_n "checking whether mbstowcs works... " >&6; }
10632 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 if test "$cross_compiling" = yes; then :
10636 gcc_cv_func_mbstowcs_works=yes
10637 else
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include <stdlib.h>
10641 int main()
10643 mbstowcs(0, "", 0);
10644 return 0;
10646 _ACEOF
10647 if ac_fn_cxx_try_run "$LINENO"; then :
10648 gcc_cv_func_mbstowcs_works=yes
10649 else
10650 gcc_cv_func_mbstowcs_works=no
10652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10653 conftest.$ac_objext conftest.beam conftest.$ac_ext
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10658 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10659 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10661 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10666 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10667 if test "x$ac_cv_type_ssize_t" = xyes; then :
10669 else
10671 cat >>confdefs.h <<_ACEOF
10672 #define ssize_t int
10673 _ACEOF
10677 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10678 if test "x$ac_cv_type_caddr_t" = xyes; then :
10680 else
10682 cat >>confdefs.h <<_ACEOF
10683 #define caddr_t char *
10684 _ACEOF
10688 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10690 if test "x$ac_cv_type_sighander_t" = xyes; then :
10692 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10698 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10699 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10700 gcc_header_sys_mman_h=yes
10701 else
10702 gcc_header_sys_mman_h=no
10705 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10706 if test "x$ac_cv_func_mmap" = xyes; then :
10707 gcc_func_mmap=yes
10708 else
10709 gcc_func_mmap=no
10712 if test "$gcc_header_sys_mman_h" != yes \
10713 || test "$gcc_func_mmap" != yes; then
10714 gcc_cv_func_mmap_file=no
10715 gcc_cv_func_mmap_dev_zero=no
10716 gcc_cv_func_mmap_anon=no
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10719 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10720 if ${gcc_cv_func_mmap_file+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 # Add a system to this blacklist if
10724 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10725 # memory area containing the same data that you'd get if you applied
10726 # read() to the same fd. The only system known to have a problem here
10727 # is VMS, where text files have record structure.
10728 case "$host_os" in
10729 *vms* | ultrix*)
10730 gcc_cv_func_mmap_file=no ;;
10732 gcc_cv_func_mmap_file=yes;;
10733 esac
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10736 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10738 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10739 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 # Add a system to this blacklist if it has mmap() but /dev/zero
10743 # does not exist, or if mmapping /dev/zero does not give anonymous
10744 # zeroed pages with both the following properties:
10745 # 1. If you map N consecutive pages in with one call, and then
10746 # unmap any subset of those pages, the pages that were not
10747 # explicitly unmapped remain accessible.
10748 # 2. If you map two adjacent blocks of memory and then unmap them
10749 # both at once, they must both go away.
10750 # Systems known to be in this category are Windows (all variants),
10751 # VMS, and Darwin.
10752 case "$host_os" in
10753 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10754 gcc_cv_func_mmap_dev_zero=no ;;
10756 gcc_cv_func_mmap_dev_zero=yes;;
10757 esac
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10760 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10762 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10764 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10765 if ${gcc_cv_decl_map_anon+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770 #include <sys/types.h>
10771 #include <sys/mman.h>
10772 #include <unistd.h>
10774 #ifndef MAP_ANONYMOUS
10775 #define MAP_ANONYMOUS MAP_ANON
10776 #endif
10779 main ()
10781 int n = MAP_ANONYMOUS;
10783 return 0;
10785 _ACEOF
10786 if ac_fn_cxx_try_compile "$LINENO"; then :
10787 gcc_cv_decl_map_anon=yes
10788 else
10789 gcc_cv_decl_map_anon=no
10791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10794 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10796 if test $gcc_cv_decl_map_anon = no; then
10797 gcc_cv_func_mmap_anon=no
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10800 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10801 if ${gcc_cv_func_mmap_anon+:} false; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10805 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10806 # doesn't give anonymous zeroed pages with the same properties listed
10807 # above for use of /dev/zero.
10808 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10809 case "$host_os" in
10810 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10811 gcc_cv_func_mmap_anon=no ;;
10813 gcc_cv_func_mmap_anon=yes;;
10814 esac
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10817 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10821 if test $gcc_cv_func_mmap_file = yes; then
10823 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10826 if test $gcc_cv_func_mmap_dev_zero = yes; then
10828 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10831 if test $gcc_cv_func_mmap_anon = yes; then
10833 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10838 case "${host}" in
10839 *-*-*vms*)
10840 # Under VMS, vfork works very differently than on Unix. The standard test
10841 # won't work, and it isn't easily adaptable. It makes more sense to
10842 # just force it.
10843 ac_cv_func_vfork_works=yes
10845 esac
10846 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10847 if test "x$ac_cv_type_pid_t" = xyes; then :
10849 else
10851 cat >>confdefs.h <<_ACEOF
10852 #define pid_t int
10853 _ACEOF
10857 for ac_header in vfork.h
10858 do :
10859 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10860 if test "x$ac_cv_header_vfork_h" = xyes; then :
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_VFORK_H 1
10863 _ACEOF
10866 done
10868 for ac_func in fork vfork
10869 do :
10870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10873 cat >>confdefs.h <<_ACEOF
10874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10875 _ACEOF
10878 done
10880 if test "x$ac_cv_func_fork" = xyes; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10882 $as_echo_n "checking for working fork... " >&6; }
10883 if ${ac_cv_func_fork_works+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 if test "$cross_compiling" = yes; then :
10887 ac_cv_func_fork_works=cross
10888 else
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 $ac_includes_default
10893 main ()
10896 /* By Ruediger Kuhlmann. */
10897 return fork () < 0;
10900 return 0;
10902 _ACEOF
10903 if ac_fn_cxx_try_run "$LINENO"; then :
10904 ac_cv_func_fork_works=yes
10905 else
10906 ac_cv_func_fork_works=no
10908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10909 conftest.$ac_objext conftest.beam conftest.$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10914 $as_echo "$ac_cv_func_fork_works" >&6; }
10916 else
10917 ac_cv_func_fork_works=$ac_cv_func_fork
10919 if test "x$ac_cv_func_fork_works" = xcross; then
10920 case $host in
10921 *-*-amigaos* | *-*-msdosdjgpp*)
10922 # Override, as these systems have only a dummy fork() stub
10923 ac_cv_func_fork_works=no
10926 ac_cv_func_fork_works=yes
10928 esac
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10930 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10932 ac_cv_func_vfork_works=$ac_cv_func_vfork
10933 if test "x$ac_cv_func_vfork" = xyes; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10935 $as_echo_n "checking for working vfork... " >&6; }
10936 if ${ac_cv_func_vfork_works+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test "$cross_compiling" = yes; then :
10940 ac_cv_func_vfork_works=cross
10941 else
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 /* Thanks to Paul Eggert for this test. */
10945 $ac_includes_default
10946 #include <sys/wait.h>
10947 #ifdef HAVE_VFORK_H
10948 # include <vfork.h>
10949 #endif
10950 /* On some sparc systems, changes by the child to local and incoming
10951 argument registers are propagated back to the parent. The compiler
10952 is told about this with #include <vfork.h>, but some compilers
10953 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10954 static variable whose address is put into a register that is
10955 clobbered by the vfork. */
10956 static void
10957 #ifdef __cplusplus
10958 sparc_address_test (int arg)
10959 # else
10960 sparc_address_test (arg) int arg;
10961 #endif
10963 static pid_t child;
10964 if (!child) {
10965 child = vfork ();
10966 if (child < 0) {
10967 perror ("vfork");
10968 _exit(2);
10970 if (!child) {
10971 arg = getpid();
10972 write(-1, "", 0);
10973 _exit (arg);
10979 main ()
10981 pid_t parent = getpid ();
10982 pid_t child;
10984 sparc_address_test (0);
10986 child = vfork ();
10988 if (child == 0) {
10989 /* Here is another test for sparc vfork register problems. This
10990 test uses lots of local variables, at least as many local
10991 variables as main has allocated so far including compiler
10992 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10993 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10994 reuse the register of parent for one of the local variables,
10995 since it will think that parent can't possibly be used any more
10996 in this routine. Assigning to the local variable will thus
10997 munge parent in the parent process. */
10998 pid_t
10999 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11000 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11001 /* Convince the compiler that p..p7 are live; otherwise, it might
11002 use the same hardware register for all 8 local variables. */
11003 if (p != p1 || p != p2 || p != p3 || p != p4
11004 || p != p5 || p != p6 || p != p7)
11005 _exit(1);
11007 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11008 from child file descriptors. If the child closes a descriptor
11009 before it execs or exits, this munges the parent's descriptor
11010 as well. Test for this by closing stdout in the child. */
11011 _exit(close(fileno(stdout)) != 0);
11012 } else {
11013 int status;
11014 struct stat st;
11016 while (wait(&status) != child)
11018 return (
11019 /* Was there some problem with vforking? */
11020 child < 0
11022 /* Did the child fail? (This shouldn't happen.) */
11023 || status
11025 /* Did the vfork/compiler bug occur? */
11026 || parent != getpid()
11028 /* Did the file descriptor bug occur? */
11029 || fstat(fileno(stdout), &st) != 0
11033 _ACEOF
11034 if ac_fn_cxx_try_run "$LINENO"; then :
11035 ac_cv_func_vfork_works=yes
11036 else
11037 ac_cv_func_vfork_works=no
11039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11040 conftest.$ac_objext conftest.beam conftest.$ac_ext
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11045 $as_echo "$ac_cv_func_vfork_works" >&6; }
11048 if test "x$ac_cv_func_fork_works" = xcross; then
11049 ac_cv_func_vfork_works=$ac_cv_func_vfork
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11051 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11054 if test "x$ac_cv_func_vfork_works" = xyes; then
11056 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11058 else
11060 $as_echo "#define vfork fork" >>confdefs.h
11063 if test "x$ac_cv_func_fork_works" = xyes; then
11065 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11071 if test "X$prefix" = "XNONE"; then
11072 acl_final_prefix="$ac_default_prefix"
11073 else
11074 acl_final_prefix="$prefix"
11076 if test "X$exec_prefix" = "XNONE"; then
11077 acl_final_exec_prefix='${prefix}'
11078 else
11079 acl_final_exec_prefix="$exec_prefix"
11081 acl_save_prefix="$prefix"
11082 prefix="$acl_final_prefix"
11083 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11084 prefix="$acl_save_prefix"
11087 # Check whether --with-gnu-ld was given.
11088 if test "${with_gnu_ld+set}" = set; then :
11089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11090 else
11091 with_gnu_ld=no
11094 # Prepare PATH_SEPARATOR.
11095 # The user is always right.
11096 if test "${PATH_SEPARATOR+set}" != set; then
11097 echo "#! /bin/sh" >conf$$.sh
11098 echo "exit 0" >>conf$$.sh
11099 chmod +x conf$$.sh
11100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11101 PATH_SEPARATOR=';'
11102 else
11103 PATH_SEPARATOR=:
11105 rm -f conf$$.sh
11107 ac_prog=ld
11108 if test "$GCC" = yes; then
11109 # Check if gcc -print-prog-name=ld gives a path.
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11111 $as_echo_n "checking for ld used by GCC... " >&6; }
11112 case $host in
11113 *-*-mingw*)
11114 # gcc leaves a trailing carriage return which upsets mingw
11115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11118 esac
11119 case $ac_prog in
11120 # Accept absolute paths.
11121 [\\/]* | [A-Za-z]:[\\/]*)
11122 re_direlt='/[^/][^/]*/\.\./'
11123 # Canonicalize the path of ld
11124 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11126 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11127 done
11128 test -z "$LD" && LD="$ac_prog"
11131 # If it fails, then pretend we aren't using GCC.
11132 ac_prog=ld
11135 # If it is relative, then search for the first ld in PATH.
11136 with_gnu_ld=unknown
11138 esac
11139 elif test "$with_gnu_ld" = yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11141 $as_echo_n "checking for GNU ld... " >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11144 $as_echo_n "checking for non-GNU ld... " >&6; }
11146 if ${acl_cv_path_LD+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 if test -z "$LD"; then
11150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11151 for ac_dir in $PATH; do
11152 test -z "$ac_dir" && ac_dir=.
11153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11154 acl_cv_path_LD="$ac_dir/$ac_prog"
11155 # Check to see if the program is GNU ld. I'd rather use --version,
11156 # but apparently some GNU ld's only accept -v.
11157 # Break only if it was the GNU/non-GNU ld that we prefer.
11158 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11159 test "$with_gnu_ld" != no && break
11160 else
11161 test "$with_gnu_ld" != yes && break
11164 done
11165 IFS="$ac_save_ifs"
11166 else
11167 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11171 LD="$acl_cv_path_LD"
11172 if test -n "$LD"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11174 $as_echo "$LD" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11179 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11181 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11182 if ${acl_cv_prog_gnu_ld+:} false; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11186 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11187 acl_cv_prog_gnu_ld=yes
11188 else
11189 acl_cv_prog_gnu_ld=no
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11193 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11194 with_gnu_ld=$acl_cv_prog_gnu_ld
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11199 $as_echo_n "checking for shared library run path origin... " >&6; }
11200 if ${acl_cv_rpath+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11204 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11205 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11206 . ./conftest.sh
11207 rm -f ./conftest.sh
11208 acl_cv_rpath=done
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11212 $as_echo "$acl_cv_rpath" >&6; }
11213 wl="$acl_cv_wl"
11214 libext="$acl_cv_libext"
11215 shlibext="$acl_cv_shlibext"
11216 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11217 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11218 hardcode_direct="$acl_cv_hardcode_direct"
11219 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11220 # Check whether --enable-rpath was given.
11221 if test "${enable_rpath+set}" = set; then :
11222 enableval=$enable_rpath; :
11223 else
11224 enable_rpath=yes
11234 use_additional=yes
11236 acl_save_prefix="$prefix"
11237 prefix="$acl_final_prefix"
11238 acl_save_exec_prefix="$exec_prefix"
11239 exec_prefix="$acl_final_exec_prefix"
11241 eval additional_includedir=\"$includedir\"
11242 eval additional_libdir=\"$libdir\"
11244 exec_prefix="$acl_save_exec_prefix"
11245 prefix="$acl_save_prefix"
11248 # Check whether --with-libiconv-prefix was given.
11249 if test "${with_libiconv_prefix+set}" = set; then :
11250 withval=$with_libiconv_prefix;
11251 if test "X$withval" = "Xno"; then
11252 use_additional=no
11253 else
11254 if test "X$withval" = "X"; then
11256 acl_save_prefix="$prefix"
11257 prefix="$acl_final_prefix"
11258 acl_save_exec_prefix="$exec_prefix"
11259 exec_prefix="$acl_final_exec_prefix"
11261 eval additional_includedir=\"$includedir\"
11262 eval additional_libdir=\"$libdir\"
11264 exec_prefix="$acl_save_exec_prefix"
11265 prefix="$acl_save_prefix"
11267 else
11268 additional_includedir="$withval/include"
11269 additional_libdir="$withval/lib"
11276 # Check whether --with-libiconv-type was given.
11277 if test "${with_libiconv_type+set}" = set; then :
11278 withval=$with_libiconv_type; with_libiconv_type=$withval
11279 else
11280 with_libiconv_type=auto
11283 lib_type=`eval echo \$with_libiconv_type`
11285 LIBICONV=
11286 LTLIBICONV=
11287 INCICONV=
11288 rpathdirs=
11289 ltrpathdirs=
11290 names_already_handled=
11291 names_next_round='iconv '
11292 while test -n "$names_next_round"; do
11293 names_this_round="$names_next_round"
11294 names_next_round=
11295 for name in $names_this_round; do
11296 already_handled=
11297 for n in $names_already_handled; do
11298 if test "$n" = "$name"; then
11299 already_handled=yes
11300 break
11302 done
11303 if test -z "$already_handled"; then
11304 names_already_handled="$names_already_handled $name"
11305 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11306 eval value=\"\$HAVE_LIB$uppername\"
11307 if test -n "$value"; then
11308 if test "$value" = yes; then
11309 eval value=\"\$LIB$uppername\"
11310 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11311 eval value=\"\$LTLIB$uppername\"
11312 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11313 else
11316 else
11317 found_dir=
11318 found_la=
11319 found_so=
11320 found_a=
11321 if test $use_additional = yes; then
11322 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11323 found_dir="$additional_libdir"
11324 found_so="$additional_libdir/lib$name.$shlibext"
11325 if test -f "$additional_libdir/lib$name.la"; then
11326 found_la="$additional_libdir/lib$name.la"
11328 elif test x$lib_type != xshared; then
11329 if test -f "$additional_libdir/lib$name.$libext"; then
11330 found_dir="$additional_libdir"
11331 found_a="$additional_libdir/lib$name.$libext"
11332 if test -f "$additional_libdir/lib$name.la"; then
11333 found_la="$additional_libdir/lib$name.la"
11338 if test "X$found_dir" = "X"; then
11339 for x in $LDFLAGS $LTLIBICONV; do
11341 acl_save_prefix="$prefix"
11342 prefix="$acl_final_prefix"
11343 acl_save_exec_prefix="$exec_prefix"
11344 exec_prefix="$acl_final_exec_prefix"
11345 eval x=\"$x\"
11346 exec_prefix="$acl_save_exec_prefix"
11347 prefix="$acl_save_prefix"
11349 case "$x" in
11350 -L*)
11351 dir=`echo "X$x" | sed -e 's/^X-L//'`
11352 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11353 found_dir="$dir"
11354 found_so="$dir/lib$name.$shlibext"
11355 if test -f "$dir/lib$name.la"; then
11356 found_la="$dir/lib$name.la"
11358 elif test x$lib_type != xshared; then
11359 if test -f "$dir/lib$name.$libext"; then
11360 found_dir="$dir"
11361 found_a="$dir/lib$name.$libext"
11362 if test -f "$dir/lib$name.la"; then
11363 found_la="$dir/lib$name.la"
11368 esac
11369 if test "X$found_dir" != "X"; then
11370 break
11372 done
11374 if test "X$found_dir" != "X"; then
11375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11376 if test "X$found_so" != "X"; then
11377 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11379 else
11380 haveit=
11381 for x in $ltrpathdirs; do
11382 if test "X$x" = "X$found_dir"; then
11383 haveit=yes
11384 break
11386 done
11387 if test -z "$haveit"; then
11388 ltrpathdirs="$ltrpathdirs $found_dir"
11390 if test "$hardcode_direct" = yes; then
11391 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11392 else
11393 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11394 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11395 haveit=
11396 for x in $rpathdirs; do
11397 if test "X$x" = "X$found_dir"; then
11398 haveit=yes
11399 break
11401 done
11402 if test -z "$haveit"; then
11403 rpathdirs="$rpathdirs $found_dir"
11405 else
11406 haveit=
11407 for x in $LDFLAGS $LIBICONV; do
11409 acl_save_prefix="$prefix"
11410 prefix="$acl_final_prefix"
11411 acl_save_exec_prefix="$exec_prefix"
11412 exec_prefix="$acl_final_exec_prefix"
11413 eval x=\"$x\"
11414 exec_prefix="$acl_save_exec_prefix"
11415 prefix="$acl_save_prefix"
11417 if test "X$x" = "X-L$found_dir"; then
11418 haveit=yes
11419 break
11421 done
11422 if test -z "$haveit"; then
11423 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11425 if test "$hardcode_minus_L" != no; then
11426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11427 else
11428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11433 else
11434 if test "X$found_a" != "X"; then
11435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11436 else
11437 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11440 additional_includedir=
11441 case "$found_dir" in
11442 */lib | */lib/)
11443 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11444 additional_includedir="$basedir/include"
11446 esac
11447 if test "X$additional_includedir" != "X"; then
11448 if test "X$additional_includedir" != "X/usr/include"; then
11449 haveit=
11450 if test "X$additional_includedir" = "X/usr/local/include"; then
11451 if test -n "$GCC"; then
11452 case $host_os in
11453 linux*) haveit=yes;;
11454 esac
11457 if test -z "$haveit"; then
11458 for x in $CPPFLAGS $INCICONV; 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 if test "X$x" = "X-I$additional_includedir"; then
11469 haveit=yes
11470 break
11472 done
11473 if test -z "$haveit"; then
11474 if test -d "$additional_includedir"; then
11475 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11481 if test -n "$found_la"; then
11482 save_libdir="$libdir"
11483 case "$found_la" in
11484 */* | *\\*) . "$found_la" ;;
11485 *) . "./$found_la" ;;
11486 esac
11487 libdir="$save_libdir"
11488 for dep in $dependency_libs; do
11489 case "$dep" in
11490 -L*)
11491 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11492 if test "X$additional_libdir" != "X/usr/lib"; then
11493 haveit=
11494 if test "X$additional_libdir" = "X/usr/local/lib"; then
11495 if test -n "$GCC"; then
11496 case $host_os in
11497 linux*) haveit=yes;;
11498 esac
11501 if test -z "$haveit"; then
11502 haveit=
11503 for x in $LDFLAGS $LIBICONV; do
11505 acl_save_prefix="$prefix"
11506 prefix="$acl_final_prefix"
11507 acl_save_exec_prefix="$exec_prefix"
11508 exec_prefix="$acl_final_exec_prefix"
11509 eval x=\"$x\"
11510 exec_prefix="$acl_save_exec_prefix"
11511 prefix="$acl_save_prefix"
11513 if test "X$x" = "X-L$additional_libdir"; then
11514 haveit=yes
11515 break
11517 done
11518 if test -z "$haveit"; then
11519 if test -d "$additional_libdir"; then
11520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11523 haveit=
11524 for x in $LDFLAGS $LTLIBICONV; do
11526 acl_save_prefix="$prefix"
11527 prefix="$acl_final_prefix"
11528 acl_save_exec_prefix="$exec_prefix"
11529 exec_prefix="$acl_final_exec_prefix"
11530 eval x=\"$x\"
11531 exec_prefix="$acl_save_exec_prefix"
11532 prefix="$acl_save_prefix"
11534 if test "X$x" = "X-L$additional_libdir"; then
11535 haveit=yes
11536 break
11538 done
11539 if test -z "$haveit"; then
11540 if test -d "$additional_libdir"; then
11541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11547 -R*)
11548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11549 if test "$enable_rpath" != no; then
11550 haveit=
11551 for x in $rpathdirs; do
11552 if test "X$x" = "X$dir"; then
11553 haveit=yes
11554 break
11556 done
11557 if test -z "$haveit"; then
11558 rpathdirs="$rpathdirs $dir"
11560 haveit=
11561 for x in $ltrpathdirs; do
11562 if test "X$x" = "X$dir"; then
11563 haveit=yes
11564 break
11566 done
11567 if test -z "$haveit"; then
11568 ltrpathdirs="$ltrpathdirs $dir"
11572 -l*)
11573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11575 *.la)
11576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11579 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11582 esac
11583 done
11585 else
11586 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11587 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11589 else
11590 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11591 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11596 done
11597 done
11598 if test "X$rpathdirs" != "X"; then
11599 if test -n "$hardcode_libdir_separator"; then
11600 alldirs=
11601 for found_dir in $rpathdirs; do
11602 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11603 done
11604 acl_save_libdir="$libdir"
11605 libdir="$alldirs"
11606 eval flag=\"$hardcode_libdir_flag_spec\"
11607 libdir="$acl_save_libdir"
11608 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11609 else
11610 for found_dir in $rpathdirs; do
11611 acl_save_libdir="$libdir"
11612 libdir="$found_dir"
11613 eval flag=\"$hardcode_libdir_flag_spec\"
11614 libdir="$acl_save_libdir"
11615 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11616 done
11619 if test "X$ltrpathdirs" != "X"; then
11620 for found_dir in $ltrpathdirs; do
11621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11622 done
11631 am_save_CPPFLAGS="$CPPFLAGS"
11633 for element in $INCICONV; do
11634 haveit=
11635 for x in $CPPFLAGS; do
11637 acl_save_prefix="$prefix"
11638 prefix="$acl_final_prefix"
11639 acl_save_exec_prefix="$exec_prefix"
11640 exec_prefix="$acl_final_exec_prefix"
11641 eval x=\"$x\"
11642 exec_prefix="$acl_save_exec_prefix"
11643 prefix="$acl_save_prefix"
11645 if test "X$x" = "X$element"; then
11646 haveit=yes
11647 break
11649 done
11650 if test -z "$haveit"; then
11651 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11653 done
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11657 $as_echo_n "checking for iconv... " >&6; }
11658 if ${am_cv_func_iconv+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11662 am_cv_func_iconv="no, consider installing GNU libiconv"
11663 am_cv_lib_iconv=no
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 #include <stdlib.h>
11668 #include <iconv.h>
11671 main ()
11673 iconv_t cd = iconv_open("","");
11674 iconv(cd,NULL,NULL,NULL,NULL);
11675 iconv_close(cd);
11677 return 0;
11679 _ACEOF
11680 if ac_fn_cxx_try_link "$LINENO"; then :
11681 am_cv_func_iconv=yes
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 if test "$am_cv_func_iconv" != yes; then
11686 am_save_LIBS="$LIBS"
11687 LIBS="$LIBS $LIBICONV"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11691 #include <stdlib.h>
11692 #include <iconv.h>
11695 main ()
11697 iconv_t cd = iconv_open("","");
11698 iconv(cd,NULL,NULL,NULL,NULL);
11699 iconv_close(cd);
11701 return 0;
11703 _ACEOF
11704 if ac_fn_cxx_try_link "$LINENO"; then :
11705 am_cv_lib_iconv=yes
11706 am_cv_func_iconv=yes
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 LIBS="$am_save_LIBS"
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11715 $as_echo "$am_cv_func_iconv" >&6; }
11716 if test "$am_cv_func_iconv" = yes; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11718 $as_echo_n "checking for working iconv... " >&6; }
11719 if ${am_cv_func_iconv_works+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11723 am_save_LIBS="$LIBS"
11724 if test $am_cv_lib_iconv = yes; then
11725 LIBS="$LIBS $LIBICONV"
11727 am_cv_func_iconv_works=no
11728 for ac_iconv_const in '' 'const'; do
11729 if test "$cross_compiling" = yes; then :
11730 case "$host_os" in
11731 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11732 *) am_cv_func_iconv_works="guessing yes" ;;
11733 esac
11734 else
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 #include <iconv.h>
11739 #include <string.h>
11741 #ifndef ICONV_CONST
11742 # define ICONV_CONST $ac_iconv_const
11743 #endif
11746 main ()
11748 int result = 0;
11749 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11750 successful returns. This is even documented in
11751 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11753 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11754 if (cd_utf8_to_88591 != (iconv_t)(-1))
11756 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11757 char buf[10];
11758 ICONV_CONST char *inptr = input;
11759 size_t inbytesleft = strlen (input);
11760 char *outptr = buf;
11761 size_t outbytesleft = sizeof (buf);
11762 size_t res = iconv (cd_utf8_to_88591,
11763 &inptr, &inbytesleft,
11764 &outptr, &outbytesleft);
11765 if (res == 0)
11766 result |= 1;
11767 iconv_close (cd_utf8_to_88591);
11770 /* Test against Solaris 10 bug: Failures are not distinguishable from
11771 successful returns. */
11773 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11774 if (cd_ascii_to_88591 != (iconv_t)(-1))
11776 static ICONV_CONST char input[] = "\263";
11777 char buf[10];
11778 ICONV_CONST char *inptr = input;
11779 size_t inbytesleft = strlen (input);
11780 char *outptr = buf;
11781 size_t outbytesleft = sizeof (buf);
11782 size_t res = iconv (cd_ascii_to_88591,
11783 &inptr, &inbytesleft,
11784 &outptr, &outbytesleft);
11785 if (res == 0)
11786 result |= 2;
11787 iconv_close (cd_ascii_to_88591);
11790 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11792 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11793 if (cd_88591_to_utf8 != (iconv_t)(-1))
11795 static ICONV_CONST char input[] = "\304";
11796 static char buf[2] = { (char)0xDE, (char)0xAD };
11797 ICONV_CONST char *inptr = input;
11798 size_t inbytesleft = 1;
11799 char *outptr = buf;
11800 size_t outbytesleft = 1;
11801 size_t res = iconv (cd_88591_to_utf8,
11802 &inptr, &inbytesleft,
11803 &outptr, &outbytesleft);
11804 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11805 result |= 4;
11806 iconv_close (cd_88591_to_utf8);
11809 #if 0 /* This bug could be worked around by the caller. */
11810 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11812 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11813 if (cd_88591_to_utf8 != (iconv_t)(-1))
11815 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11816 char buf[50];
11817 ICONV_CONST char *inptr = input;
11818 size_t inbytesleft = strlen (input);
11819 char *outptr = buf;
11820 size_t outbytesleft = sizeof (buf);
11821 size_t res = iconv (cd_88591_to_utf8,
11822 &inptr, &inbytesleft,
11823 &outptr, &outbytesleft);
11824 if ((int)res > 0)
11825 result |= 8;
11826 iconv_close (cd_88591_to_utf8);
11829 #endif
11830 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11831 provided. */
11833 /* Try standardized names. */
11834 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11835 /* Try IRIX, OSF/1 names. */
11836 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11837 /* Try AIX names. */
11838 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11839 /* Try HP-UX names. */
11840 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11841 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11842 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11843 result |= 16;
11844 if (cd1 != (iconv_t)(-1))
11845 iconv_close (cd1);
11846 if (cd2 != (iconv_t)(-1))
11847 iconv_close (cd2);
11848 if (cd3 != (iconv_t)(-1))
11849 iconv_close (cd3);
11850 if (cd4 != (iconv_t)(-1))
11851 iconv_close (cd4);
11853 return result;
11856 return 0;
11858 _ACEOF
11859 if ac_fn_cxx_try_run "$LINENO"; then :
11860 am_cv_func_iconv_works=yes
11862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11863 conftest.$ac_objext conftest.beam conftest.$ac_ext
11866 test "$am_cv_func_iconv_works" = no || break
11867 done
11868 LIBS="$am_save_LIBS"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11872 $as_echo "$am_cv_func_iconv_works" >&6; }
11873 case "$am_cv_func_iconv_works" in
11874 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11875 *) am_func_iconv=yes ;;
11876 esac
11877 else
11878 am_func_iconv=no am_cv_lib_iconv=no
11880 if test "$am_func_iconv" = yes; then
11882 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11885 if test "$am_cv_lib_iconv" = yes; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11887 $as_echo_n "checking how to link with libiconv... " >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11889 $as_echo "$LIBICONV" >&6; }
11890 else
11891 CPPFLAGS="$am_save_CPPFLAGS"
11892 LIBICONV=
11893 LTLIBICONV=
11898 if test "$am_cv_func_iconv" = yes; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
11900 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
11901 if ${gl_cv_iconv_nonconst+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11907 #include <stdlib.h>
11908 #include <iconv.h>
11909 extern
11910 #ifdef __cplusplus
11912 #endif
11913 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11916 main ()
11920 return 0;
11922 _ACEOF
11923 if ac_fn_cxx_try_compile "$LINENO"; then :
11924 gl_cv_iconv_nonconst=yes
11925 else
11926 gl_cv_iconv_nonconst=no
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
11932 $as_echo "$gl_cv_iconv_nonconst" >&6; }
11933 else
11934 gl_cv_iconv_nonconst=yes
11936 if test $gl_cv_iconv_nonconst = yes; then
11937 iconv_arg1=""
11938 else
11939 iconv_arg1="const"
11942 cat >>confdefs.h <<_ACEOF
11943 #define ICONV_CONST $iconv_arg1
11944 _ACEOF
11948 if test "$am_func_iconv" = yes; then
11949 if test -n "$LIBICONV"; then
11950 am_cv_func_iconv_summary='yes, in libiconv'
11951 else
11952 am_cv_func_iconv_summary='yes, in libc'
11954 else
11955 if test "$am_cv_func_iconv" = yes; then
11956 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
11957 else
11958 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
11963 # Until we have in-tree GNU iconv:
11964 LIBICONV_DEP=
11965 if test -f "$LTLIBICONV"; then
11966 LIBICONV_DEP=$LTLIBICONV
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11972 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11973 if ${am_cv_val_LC_MESSAGES+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 #include <locale.h>
11980 main ()
11982 return LC_MESSAGES
11984 return 0;
11986 _ACEOF
11987 if ac_fn_cxx_try_link "$LINENO"; then :
11988 am_cv_val_LC_MESSAGES=yes
11989 else
11990 am_cv_val_LC_MESSAGES=no
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11996 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11997 if test $am_cv_val_LC_MESSAGES = yes; then
11999 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12006 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12007 if ${am_cv_langinfo_codeset+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #include <langinfo.h>
12014 main ()
12016 char* cs = nl_langinfo(CODESET);
12018 return 0;
12020 _ACEOF
12021 if ac_fn_cxx_try_link "$LINENO"; then :
12022 am_cv_langinfo_codeset=yes
12023 else
12024 am_cv_langinfo_codeset=no
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12031 $as_echo "$am_cv_langinfo_codeset" >&6; }
12032 if test $am_cv_langinfo_codeset = yes; then
12034 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12039 # We will need to find libiberty.h and ansidecl.h
12040 saved_CFLAGS="$CFLAGS"
12041 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12042 saved_CXXFLAGS="$CXXFLAGS"
12043 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12045 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12046 # normal autoconf function for these. But force definition of
12047 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12048 # basename handling in libiberty.h.
12049 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12050 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12051 #undef HAVE_DECL_BASENAME
12052 #define HAVE_DECL_BASENAME 1
12053 #include \"ansidecl.h\"
12054 #include \"system.h\"
12056 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12057 ac_have_decl=1
12058 else
12059 ac_have_decl=0
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_DECL_BASENAME $ac_have_decl
12064 _ACEOF
12065 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12066 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12067 #undef HAVE_DECL_BASENAME
12068 #define HAVE_DECL_BASENAME 1
12069 #include \"ansidecl.h\"
12070 #include \"system.h\"
12072 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12073 ac_have_decl=1
12074 else
12075 ac_have_decl=0
12078 cat >>confdefs.h <<_ACEOF
12079 #define HAVE_DECL_STRSTR $ac_have_decl
12080 _ACEOF
12083 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12084 madvise stpcpy strnlen strsignal strverscmp \
12085 strtol strtoul strtoll strtoull setenv unsetenv \
12086 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12087 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
12089 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12091 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12092 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12097 #undef $ac_tr_decl
12098 #define $ac_tr_decl 1
12100 #include "ansidecl.h"
12101 #include "system.h"
12104 main ()
12106 #ifndef $ac_func
12107 char *(*pfn) = (char *(*)) $ac_func ;
12108 #endif
12110 return 0;
12112 _ACEOF
12113 if ac_fn_cxx_try_compile "$LINENO"; then :
12114 eval "gcc_cv_have_decl_$ac_func=yes"
12115 else
12116 eval "gcc_cv_have_decl_$ac_func=no"
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12123 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12124 #define $ac_tr_decl 1
12125 _ACEOF
12127 else
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12130 #define $ac_tr_decl 0
12131 _ACEOF
12135 done
12138 for ac_func in getrlimit setrlimit getrusage
12140 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12142 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12143 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #undef $ac_tr_decl
12149 #define $ac_tr_decl 1
12151 #include "ansidecl.h"
12152 #include "system.h"
12153 #ifdef HAVE_SYS_RESOURCE_H
12154 #include <sys/resource.h>
12155 #endif
12159 main ()
12161 #ifndef $ac_func
12162 char *(*pfn) = (char *(*)) $ac_func ;
12163 #endif
12165 return 0;
12167 _ACEOF
12168 if ac_fn_cxx_try_compile "$LINENO"; then :
12169 eval "gcc_cv_have_decl_$ac_func=yes"
12170 else
12171 eval "gcc_cv_have_decl_$ac_func=no"
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12179 #define $ac_tr_decl 1
12180 _ACEOF
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12185 #define $ac_tr_decl 0
12186 _ACEOF
12190 done
12193 for ac_func in mallinfo mallinfo2
12195 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12197 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12198 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203 #undef $ac_tr_decl
12204 #define $ac_tr_decl 1
12206 #include "ansidecl.h"
12207 #include "system.h"
12208 #ifdef HAVE_MALLOC_H
12209 #include <malloc.h>
12210 #endif
12214 main ()
12216 #ifndef $ac_func
12217 char *(*pfn) = (char *(*)) $ac_func ;
12218 #endif
12220 return 0;
12222 _ACEOF
12223 if ac_fn_cxx_try_compile "$LINENO"; then :
12224 eval "gcc_cv_have_decl_$ac_func=yes"
12225 else
12226 eval "gcc_cv_have_decl_$ac_func=no"
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12233 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12234 #define $ac_tr_decl 1
12235 _ACEOF
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12240 #define $ac_tr_decl 0
12241 _ACEOF
12245 done
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12251 #include "ansidecl.h"
12252 #include "system.h"
12253 #ifdef HAVE_SYS_RESOURCE_H
12254 #include <sys/resource.h>
12255 #endif
12258 main ()
12260 rlim_t l = 0;
12262 return 0;
12264 _ACEOF
12265 if ac_fn_cxx_try_compile "$LINENO"; then :
12267 else
12269 $as_echo "#define rlim_t long" >>confdefs.h
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12275 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12276 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12277 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12278 for ac_func in ldgetname
12280 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12282 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12283 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #undef $ac_tr_decl
12289 #define $ac_tr_decl 1
12291 #include "ansidecl.h"
12292 #include "system.h"
12293 #ifdef HAVE_LDFCN_H
12294 #undef FREAD
12295 #undef FWRITE
12296 #include <ldfcn.h>
12297 #endif
12301 main ()
12303 #ifndef $ac_func
12304 char *(*pfn) = (char *(*)) $ac_func ;
12305 #endif
12307 return 0;
12309 _ACEOF
12310 if ac_fn_cxx_try_compile "$LINENO"; then :
12311 eval "gcc_cv_have_decl_$ac_func=yes"
12312 else
12313 eval "gcc_cv_have_decl_$ac_func=no"
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12321 #define $ac_tr_decl 1
12322 _ACEOF
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12327 #define $ac_tr_decl 0
12328 _ACEOF
12332 done
12335 for ac_func in times
12337 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12339 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12340 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345 #undef $ac_tr_decl
12346 #define $ac_tr_decl 1
12348 #include "ansidecl.h"
12349 #include "system.h"
12350 #ifdef HAVE_SYS_TIMES_H
12351 #include <sys/times.h>
12352 #endif
12356 main ()
12358 #ifndef $ac_func
12359 char *(*pfn) = (char *(*)) $ac_func ;
12360 #endif
12362 return 0;
12364 _ACEOF
12365 if ac_fn_cxx_try_compile "$LINENO"; then :
12366 eval "gcc_cv_have_decl_$ac_func=yes"
12367 else
12368 eval "gcc_cv_have_decl_$ac_func=no"
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12375 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12376 #define $ac_tr_decl 1
12377 _ACEOF
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12382 #define $ac_tr_decl 0
12383 _ACEOF
12387 done
12390 for ac_func in sigaltstack
12392 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12394 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12395 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #undef $ac_tr_decl
12401 #define $ac_tr_decl 1
12403 #include "ansidecl.h"
12404 #include "system.h"
12405 #include <signal.h>
12409 main ()
12411 #ifndef $ac_func
12412 char *(*pfn) = (char *(*)) $ac_func ;
12413 #endif
12415 return 0;
12417 _ACEOF
12418 if ac_fn_cxx_try_compile "$LINENO"; then :
12419 eval "gcc_cv_have_decl_$ac_func=yes"
12420 else
12421 eval "gcc_cv_have_decl_$ac_func=no"
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12429 #define $ac_tr_decl 1
12430 _ACEOF
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12435 #define $ac_tr_decl 0
12436 _ACEOF
12440 done
12443 # More time-related stuff.
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12445 $as_echo_n "checking for struct tms... " >&6; }
12446 if ${ac_cv_struct_tms+:} false; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12453 #include "ansidecl.h"
12454 #include "system.h"
12455 #ifdef HAVE_SYS_TIMES_H
12456 #include <sys/times.h>
12457 #endif
12460 main ()
12462 struct tms tms;
12464 return 0;
12466 _ACEOF
12467 if ac_fn_cxx_try_compile "$LINENO"; then :
12468 ac_cv_struct_tms=yes
12469 else
12470 ac_cv_struct_tms=no
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12475 $as_echo "$ac_cv_struct_tms" >&6; }
12476 if test $ac_cv_struct_tms = yes; then
12478 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12482 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12483 # revisit after autoconf 2.50.
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12485 $as_echo_n "checking for clock_t... " >&6; }
12486 if ${gcc_cv_type_clock_t+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12493 #include "ansidecl.h"
12494 #include "system.h"
12497 main ()
12499 clock_t x;
12501 return 0;
12503 _ACEOF
12504 if ac_fn_cxx_try_compile "$LINENO"; then :
12505 gcc_cv_type_clock_t=yes
12506 else
12507 gcc_cv_type_clock_t=no
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12512 $as_echo "$gcc_cv_type_clock_t" >&6; }
12513 if test $gcc_cv_type_clock_t = yes; then
12515 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12519 # Check if F_SETLKW is supported by fcntl.
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12521 $as_echo_n "checking for F_SETLKW... " >&6; }
12522 if ${ac_cv_f_setlkw+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12529 #include <fcntl.h>
12531 main ()
12534 struct flock fl;
12535 fl.l_whence = 0;
12536 fl.l_start = 0;
12537 fl.l_len = 0;
12538 fl.l_pid = 0;
12539 return fcntl (1, F_SETLKW, &fl);
12541 return 0;
12543 _ACEOF
12544 if ac_fn_cxx_try_compile "$LINENO"; then :
12545 ac_cv_f_setlkw=yes
12546 else
12547 ac_cv_f_setlkw=no
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12552 $as_echo "$ac_cv_f_setlkw" >&6; }
12553 if test $ac_cv_f_setlkw = yes; then
12555 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12559 # Check if O_CLOEXEC is defined by fcntl
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12561 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12562 if ${ac_cv_o_cloexec+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 #include <fcntl.h>
12571 main ()
12574 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12576 return 0;
12578 _ACEOF
12579 if ac_fn_cxx_try_compile "$LINENO"; then :
12580 ac_cv_o_cloexec=yes
12581 else
12582 ac_cv_o_cloexec=no
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12587 $as_echo "$ac_cv_o_cloexec" >&6; }
12588 if test $ac_cv_o_cloexec = yes; then
12590 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12594 # Check if O_NONBLOCK is defined by fcntl
12595 for ac_header in fcntl.h
12596 do :
12597 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12598 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12599 cat >>confdefs.h <<_ACEOF
12600 #define HAVE_FCNTL_H 1
12601 _ACEOF
12604 done
12606 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12608 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12612 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12614 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12619 # C++ Modules would like some networking features to provide the mapping
12620 # server. You can still use modules without them though.
12621 # The following network-related checks could probably do with some
12622 # Windows and other non-linux defenses and checking.
12624 # Local socket connectivity wants AF_UNIX networking
12625 # Check for AF_UNIX networking
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12627 $as_echo_n "checking for AF_UNIX... " >&6; }
12628 if ${ac_cv_af_unix+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 #include <sys/types.h>
12636 #include <sys/socket.h>
12637 #include <sys/un.h>
12638 #include <netinet/in.h>
12640 main ()
12643 sockaddr_un un;
12644 un.sun_family = AF_UNSPEC;
12645 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12646 connect (fd, (sockaddr *)&un, sizeof (un));
12648 return 0;
12650 _ACEOF
12651 if ac_fn_cxx_try_compile "$LINENO"; then :
12652 ac_cv_af_unix=yes
12653 else
12654 ac_cv_af_unix=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12659 $as_echo "$ac_cv_af_unix" >&6; }
12660 if test $ac_cv_af_unix = yes; then
12662 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12666 # Remote socket connectivity wants AF_INET6 networking
12667 # Check for AF_INET6 networking
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12669 $as_echo_n "checking for AF_INET6... " >&6; }
12670 if ${ac_cv_af_inet6+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12677 #include <sys/types.h>
12678 #include <sys/socket.h>
12679 #include <netinet/in.h>
12680 #include <netdb.h>
12682 main ()
12685 sockaddr_in6 in6;
12686 in6.sin6_family = AF_UNSPEC;
12687 struct addrinfo *addrs = 0;
12688 struct addrinfo hints;
12689 hints.ai_flags = 0;
12690 hints.ai_family = AF_INET6;
12691 hints.ai_socktype = SOCK_STREAM;
12692 hints.ai_protocol = 0;
12693 hints.ai_canonname = 0;
12694 hints.ai_addr = 0;
12695 hints.ai_next = 0;
12696 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12697 const char *str = gai_strerror (e);
12698 freeaddrinfo (addrs);
12699 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12700 connect (fd, (sockaddr *)&in6, sizeof (in6));
12702 return 0;
12704 _ACEOF
12705 if ac_fn_cxx_try_compile "$LINENO"; then :
12706 ac_cv_af_inet6=yes
12707 else
12708 ac_cv_af_inet6=no
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12713 $as_echo "$ac_cv_af_inet6" >&6; }
12714 if test $ac_cv_af_inet6 = yes; then
12716 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12720 # Check if _LK_LOCK is supported by _locking
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12722 $as_echo_n "checking for _LK_LOCK... " >&6; }
12723 if ${ac_cv_lk_lock+:} false; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12730 #include <io.h>
12731 #include <sys/locking.h>
12733 main ()
12736 int fd;
12737 return _locking (fd, _LK_LOCK, 0);
12739 return 0;
12741 _ACEOF
12742 if ac_fn_cxx_try_compile "$LINENO"; then :
12743 ac_cv_lk_lock=yes
12744 else
12745 ac_cv_lk_lock=no
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12750 $as_echo "$ac_cv_lk_lock" >&6; }
12751 if test $ac_cv_lk_lock = yes; then
12753 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12757 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12758 CFLAGS="$saved_CFLAGS"
12759 CXXFLAGS="$saved_CXXFLAGS"
12761 # mkdir takes a single argument on some systems.
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12763 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12764 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12770 #include <sys/types.h>
12771 #ifdef HAVE_SYS_STAT_H
12772 # include <sys/stat.h>
12773 #endif
12774 #ifdef HAVE_UNISTD_H
12775 # include <unistd.h>
12776 #endif
12777 #ifdef HAVE_DIRECT_H
12778 # include <direct.h>
12779 #endif
12781 main ()
12783 mkdir ("foo", 0);
12785 return 0;
12787 _ACEOF
12788 if ac_fn_cxx_try_compile "$LINENO"; then :
12789 gcc_cv_mkdir_takes_one_arg=no
12790 else
12791 gcc_cv_mkdir_takes_one_arg=yes
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12796 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12797 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12799 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12804 # File extensions
12805 manext='.1'
12806 objext='.o'
12810 # With Setjmp/Longjmp based exception handling.
12811 # Check whether --enable-sjlj-exceptions was given.
12812 if test "${enable_sjlj_exceptions+set}" = set; then :
12813 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12814 else
12815 case $target in
12816 lm32*-*-*)
12817 force_sjlj_exceptions=yes
12818 enableval=yes
12821 force_sjlj_exceptions=no
12823 esac
12826 if test $force_sjlj_exceptions = yes; then
12827 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12829 cat >>confdefs.h <<_ACEOF
12830 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12831 _ACEOF
12835 # Windows32 UTF-8 manifest support for running the driver and compiler
12836 # executables with the UTF-8 active code page on mingw hosts.
12837 # Non-mingw hosts ignore this option.
12838 # The shell variables this sets are picked up from the mingw branches
12839 # of config.host so they have to be set before it gets sourced.
12840 # Check whether --enable-win32-utf8-manifest was given.
12841 if test "${enable_win32_utf8_manifest+set}" = set; then :
12842 enableval=$enable_win32_utf8_manifest;
12846 if test "x$enable_win32_utf8_manifest" != xno; then
12847 host_xmake_mingw=i386/x-mingw32-utf8
12848 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
12849 host_extra_objs_mingw=utf8-mingw32.o
12852 # --------------------------------------------------------
12853 # Build, host, and target specific configuration fragments
12854 # --------------------------------------------------------
12856 # Collect build-machine-specific information.
12857 . ${srcdir}/config.build || exit 1
12859 # Collect host-machine-specific information.
12860 . ${srcdir}/config.host || exit 1
12862 target_gtfiles=
12864 # Collect target-machine-specific information.
12865 . ${srcdir}/config.gcc || exit 1
12867 extra_objs="${host_extra_objs} ${extra_objs}"
12868 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12870 # Default the target-machine variables that were not explicitly set.
12871 if test x"$tm_file" = x
12872 then tm_file=$cpu_type/$cpu_type.h; fi
12874 if test x"$extra_headers" = x
12875 then extra_headers=; fi
12877 if test x$md_file = x
12878 then md_file=$cpu_type/$cpu_type.md; fi
12880 if test x$out_file = x
12881 then out_file=$cpu_type/$cpu_type.cc; fi
12883 if test x"$tmake_file" = x
12884 then tmake_file=$cpu_type/t-$cpu_type
12887 # Support --enable-initfini-array.
12888 if test x$enable_initfini_array != xno; then
12889 tm_file="${tm_file} initfini-array.h"
12892 if test x"$dwarf2" = xyes
12893 then tm_file="$tm_file tm-dwarf2.h"
12896 # Say what files are being used for the output code and MD file.
12897 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12898 echo "Using \`$srcdir/config/$md_file' as machine description file."
12900 # If any of the xm_file variables contain nonexistent files, warn
12901 # about them and drop them.
12904 for x in $build_xm_file; do
12905 if test -f $srcdir/config/$x
12906 then bx="$bx $x"
12907 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12908 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12910 done
12911 build_xm_file="$bx"
12914 for x in $host_xm_file; do
12915 if test -f $srcdir/config/$x
12916 then hx="$hx $x"
12917 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12918 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12920 done
12921 host_xm_file="$hx"
12924 for x in $xm_file; do
12925 if test -f $srcdir/config/$x
12926 then tx="$tx $x"
12927 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12928 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12930 done
12931 xm_file="$tx"
12933 count=a
12934 for f in $tm_file; do
12935 count=${count}x
12936 done
12937 if test $count = ax; then
12938 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12939 else
12940 echo "Using the following target machine macro files:"
12941 for f in $tm_file; do
12942 echo " $srcdir/config/$f"
12943 done
12946 if test x$use_long_long_for_widest_fast_int = xyes; then
12948 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12952 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12954 cat >>confdefs.h <<_ACEOF
12955 #define HAVE_GNU_LD $gnu_ld_bool
12956 _ACEOF
12959 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12961 cat >>confdefs.h <<_ACEOF
12962 #define HAVE_GNU_AS $gnu_as_bool
12963 _ACEOF
12966 count=a
12967 for f in $host_xm_file; do
12968 count=${count}x
12969 done
12970 if test $count = a; then
12972 elif test $count = ax; then
12973 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12974 else
12975 echo "Using the following host machine macro files:"
12976 for f in $host_xm_file; do
12977 echo " $srcdir/config/$f"
12978 done
12980 echo "Using ${out_host_hook_obj} for host machine hooks."
12982 if test "$host_xm_file" != "$build_xm_file"; then
12983 count=a
12984 for f in $build_xm_file; do
12985 count=${count}x
12986 done
12987 if test $count = a; then
12989 elif test $count = ax; then
12990 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12991 else
12992 echo "Using the following build machine macro files:"
12993 for f in $build_xm_file; do
12994 echo " $srcdir/config/$f"
12995 done
12999 if test -n "$configured_native_system_header_dir"; then
13000 native_system_header_dir=$configured_native_system_header_dir
13002 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13005 case ${host} in
13006 powerpc*-*-darwin*)
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13008 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13009 if ${gcc_cv_mcontext_underscores+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13015 #include <sys/cdefs.h>
13016 #include <sys/signal.h>
13017 #include <ucontext.h>
13018 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13020 _ACEOF
13021 if ac_fn_cxx_try_compile "$LINENO"; then :
13022 gcc_cv_mcontext_underscores=no
13023 else
13024 gcc_cv_mcontext_underscores=yes
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13029 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13030 if test $gcc_cv_mcontext_underscores = yes; then
13032 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13036 esac
13038 # ---------
13039 # Threading
13040 # ---------
13042 # Check if a valid thread package
13043 case ${enable_threads} in
13044 "" | no)
13045 # No threads
13046 target_thread_file='single'
13048 yes)
13049 # default
13050 target_thread_file='single'
13052 aix | dce | lynx | mipssde | posix | rtems | \
13053 single | tpf | vxworks | win32 | mcf)
13054 target_thread_file=${enable_threads}
13057 echo "${enable_threads} is an unknown thread package" 1>&2
13058 exit 1
13060 esac
13062 if test x${thread_file} = x; then
13063 # No thread file set by target-specific clauses in config.gcc,
13064 # so use file chosen by default logic above
13065 thread_file=${target_thread_file}
13068 # --------
13069 # UNSORTED
13070 # --------
13072 use_cxa_atexit=no
13073 if test x$enable___cxa_atexit = xyes || \
13074 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13075 if test x$host = x$target; then
13076 case $host in
13077 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13078 # keyed to flag_use_cxa_atexit
13079 *-*-mingw32*)
13080 use_cxa_atexit=yes
13082 powerpc-ibm-aix*)
13083 use_cxa_atexit=yes
13086 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13087 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13088 use_cxa_atexit=yes
13089 else
13090 echo "__cxa_atexit can't be enabled on this target"
13094 esac
13095 else
13096 # We can't check for __cxa_atexit when building a cross, so assume
13097 # it is available
13098 use_cxa_atexit=yes
13100 if test x$use_cxa_atexit = xyes; then
13102 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13107 # Look for a file containing extra machine modes.
13108 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13109 extra_modes_file='$(srcdir)'/config/${extra_modes}
13112 cat >>confdefs.h <<_ACEOF
13113 #define EXTRA_MODES_FILE "config/$extra_modes"
13114 _ACEOF
13118 # Convert extra_options into a form suitable for Makefile use.
13119 extra_opt_files=
13120 all_opt_files=
13121 for f in $extra_options; do
13122 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13123 all_opt_files="$all_opt_files $srcdir/config/$f"
13124 done
13127 # auto-host.h is the file containing items generated by autoconf and is
13128 # the first file included by config.h.
13129 # If host=build, it is correct to have bconfig include auto-host.h
13130 # as well. If host!=build, we are in error and need to do more
13131 # work to find out the build config parameters.
13132 if test x$host = x$build
13133 then
13134 build_auto=auto-host.h
13135 HAVE_AUTO_BUILD='# '
13136 else
13137 # We create a subdir, then run autoconf in the subdir.
13138 # To prevent recursion we set host and build for the new
13139 # invocation of configure to the build for this invocation
13140 # of configure.
13141 tempdir=build.$$
13142 rm -rf $tempdir
13143 mkdir $tempdir
13144 cd $tempdir
13145 case ${srcdir} in
13146 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13147 *) realsrcdir=../${srcdir};;
13148 esac
13149 # Clearing GMPINC is necessary to prevent host headers being
13150 # used by the build compiler. Defining GENERATOR_FILE stops
13151 # system.h from including gmp.h.
13152 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13153 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13154 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13155 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13156 ${realsrcdir}/configure \
13157 --enable-languages=${enable_languages-all} \
13158 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13159 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13160 --target=$target_alias --host=$build_alias \
13161 --build=$build_alias || exit # retaining $tempdir
13163 # We just finished tests for the build machine, so rename
13164 # the file auto-build.h in the gcc directory.
13165 mv auto-host.h ../auto-build.h
13166 cd ..
13167 rm -rf $tempdir
13168 build_auto=auto-build.h
13169 HAVE_AUTO_BUILD=
13174 tm_file="${tm_file} defaults.h"
13175 tm_p_file="${tm_p_file} tm-preds.h"
13176 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13177 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13178 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13179 # put this back in temporarily.
13180 xm_file="auto-host.h ansidecl.h ${xm_file}"
13182 # --------
13183 # UNSORTED
13184 # --------
13186 # Compile in configure arguments.
13187 if test -f configargs.h ; then
13188 # Being re-configured.
13189 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13190 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13191 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13192 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13194 else
13195 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13198 # Double all backslashes and backslash all quotes to turn
13199 # gcc_config_arguments into a C string.
13200 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13201 $gcc_config_arguments
13203 gcc_config_arguments_str=`cat conftest.out`
13204 rm -f conftest.out
13206 cat > configargs.h <<EOF
13207 /* Generated automatically. */
13208 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13209 static const char thread_model[] = "$thread_file";
13211 static const struct {
13212 const char *name, *value;
13213 } configure_default_options[] = $configure_default_options;
13216 gcc_BASEVER=`cat $srcdir/BASE-VER`
13217 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13218 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13219 if test -f $srcdir/REVISION ; then
13220 gcc_REVISION=`cat $srcdir/REVISION`
13221 else
13222 gcc_REVISION=""
13224 cat > plugin-version.h <<EOF
13225 #include "configargs.h"
13227 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13228 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13229 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13230 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13232 static char basever[] = "$gcc_BASEVER";
13233 static char datestamp[] = "$gcc_DATESTAMP";
13234 static char devphase[] = "$gcc_DEVPHASE";
13235 static char revision[] = "$gcc_REVISION";
13237 /* FIXME plugins: We should make the version information more precise.
13238 One way to do is to add a checksum. */
13240 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13241 devphase, revision,
13242 configuration_arguments};
13245 # Determine what GCC version number to use in filesystem paths.
13247 get_gcc_base_ver="cat"
13249 # Check whether --with-gcc-major-version-only was given.
13250 if test "${with_gcc_major_version_only+set}" = set; then :
13251 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13252 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13260 # Internationalization
13261 # Find a good install program. We prefer a C program (faster),
13262 # so one script is as good as another. But avoid the broken or
13263 # incompatible versions:
13264 # SysV /etc/install, /usr/sbin/install
13265 # SunOS /usr/etc/install
13266 # IRIX /sbin/install
13267 # AIX /bin/install
13268 # AmigaOS /C/install, which installs bootblocks on floppy discs
13269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13272 # OS/2's system install, which has a completely different semantic
13273 # ./install, which can be erroneously created by make from ./install.sh.
13274 # Reject install programs that cannot install multiple files.
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13276 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13277 if test -z "$INSTALL"; then
13278 if ${ac_cv_path_install+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 # Account for people who put trailing slashes in PATH elements.
13287 case $as_dir/ in #((
13288 ./ | .// | /[cC]/* | \
13289 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13290 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13291 /usr/ucb/* ) ;;
13293 # OSF1 and SCO ODT 3.0 have their own names for install.
13294 # Don't use installbsd from OSF since it installs stuff as root
13295 # by default.
13296 for ac_prog in ginstall scoinst install; do
13297 for ac_exec_ext in '' $ac_executable_extensions; do
13298 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13299 if test $ac_prog = install &&
13300 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13301 # AIX install. It has an incompatible calling convention.
13303 elif test $ac_prog = install &&
13304 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13305 # program-specific install script used by HP pwplus--don't use.
13307 else
13308 rm -rf conftest.one conftest.two conftest.dir
13309 echo one > conftest.one
13310 echo two > conftest.two
13311 mkdir conftest.dir
13312 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13313 test -s conftest.one && test -s conftest.two &&
13314 test -s conftest.dir/conftest.one &&
13315 test -s conftest.dir/conftest.two
13316 then
13317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13318 break 3
13322 done
13323 done
13325 esac
13327 done
13328 IFS=$as_save_IFS
13330 rm -rf conftest.one conftest.two conftest.dir
13333 if test "${ac_cv_path_install+set}" = set; then
13334 INSTALL=$ac_cv_path_install
13335 else
13336 # As a last resort, use the slow shell script. Don't cache a
13337 # value for INSTALL within a source directory, because that will
13338 # break other packages using the cache if that directory is
13339 # removed, or if the value is a relative name.
13340 INSTALL=$ac_install_sh
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13344 $as_echo "$INSTALL" >&6; }
13346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13347 # It thinks the first close brace ends the variable substitution.
13348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13355 MKINSTALLDIRS=
13356 if test -n "$ac_aux_dir"; then
13357 case "$ac_aux_dir" in
13358 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13359 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13360 esac
13362 if test -z "$MKINSTALLDIRS"; then
13363 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13369 $as_echo_n "checking whether NLS is requested... " >&6; }
13370 # Check whether --enable-nls was given.
13371 if test "${enable_nls+set}" = set; then :
13372 enableval=$enable_nls; USE_NLS=$enableval
13373 else
13374 USE_NLS=yes
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13378 $as_echo "$USE_NLS" >&6; }
13385 # Prepare PATH_SEPARATOR.
13386 # The user is always right.
13387 if test "${PATH_SEPARATOR+set}" != set; then
13388 echo "#! /bin/sh" >conf$$.sh
13389 echo "exit 0" >>conf$$.sh
13390 chmod +x conf$$.sh
13391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13392 PATH_SEPARATOR=';'
13393 else
13394 PATH_SEPARATOR=:
13396 rm -f conf$$.sh
13399 # Find out how to test for executable files. Don't use a zero-byte file,
13400 # as systems may use methods other than mode bits to determine executability.
13401 cat >conf$$.file <<_ASEOF
13402 #! /bin/sh
13403 exit 0
13404 _ASEOF
13405 chmod +x conf$$.file
13406 if test -x conf$$.file >/dev/null 2>&1; then
13407 ac_executable_p="test -x"
13408 else
13409 ac_executable_p="test -f"
13411 rm -f conf$$.file
13413 # Extract the first word of "msgfmt", so it can be a program name with args.
13414 set dummy msgfmt; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_MSGFMT+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 case "$MSGFMT" in
13421 [\\/]* | ?:[\\/]*)
13422 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13425 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13426 for ac_dir in $PATH; do
13427 IFS="$ac_save_IFS"
13428 test -z "$ac_dir" && ac_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13431 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13432 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13433 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13434 break 2
13437 done
13438 done
13439 IFS="$ac_save_IFS"
13440 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13442 esac
13444 MSGFMT="$ac_cv_path_MSGFMT"
13445 if test "$MSGFMT" != ":"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13447 $as_echo "$MSGFMT" >&6; }
13448 else
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13453 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13454 set dummy gmsgfmt; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_path_GMSGFMT+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 case $GMSGFMT in
13461 [\\/]* | ?:[\\/]*)
13462 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in $PATH
13468 IFS=$as_save_IFS
13469 test -z "$as_dir" && as_dir=.
13470 for ac_exec_ext in '' $ac_executable_extensions; do
13471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 break 2
13476 done
13477 done
13478 IFS=$as_save_IFS
13480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13482 esac
13484 GMSGFMT=$ac_cv_path_GMSGFMT
13485 if test -n "$GMSGFMT"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13487 $as_echo "$GMSGFMT" >&6; }
13488 else
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13496 # Prepare PATH_SEPARATOR.
13497 # The user is always right.
13498 if test "${PATH_SEPARATOR+set}" != set; then
13499 echo "#! /bin/sh" >conf$$.sh
13500 echo "exit 0" >>conf$$.sh
13501 chmod +x conf$$.sh
13502 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13503 PATH_SEPARATOR=';'
13504 else
13505 PATH_SEPARATOR=:
13507 rm -f conf$$.sh
13510 # Find out how to test for executable files. Don't use a zero-byte file,
13511 # as systems may use methods other than mode bits to determine executability.
13512 cat >conf$$.file <<_ASEOF
13513 #! /bin/sh
13514 exit 0
13515 _ASEOF
13516 chmod +x conf$$.file
13517 if test -x conf$$.file >/dev/null 2>&1; then
13518 ac_executable_p="test -x"
13519 else
13520 ac_executable_p="test -f"
13522 rm -f conf$$.file
13524 # Extract the first word of "xgettext", so it can be a program name with args.
13525 set dummy xgettext; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_XGETTEXT+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 case "$XGETTEXT" in
13532 [\\/]* | ?:[\\/]*)
13533 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13536 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13537 for ac_dir in $PATH; do
13538 IFS="$ac_save_IFS"
13539 test -z "$ac_dir" && ac_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13542 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13543 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13544 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13545 break 2
13548 done
13549 done
13550 IFS="$ac_save_IFS"
13551 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13553 esac
13555 XGETTEXT="$ac_cv_path_XGETTEXT"
13556 if test "$XGETTEXT" != ":"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13558 $as_echo "$XGETTEXT" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13564 rm -f messages.po
13567 # Prepare PATH_SEPARATOR.
13568 # The user is always right.
13569 if test "${PATH_SEPARATOR+set}" != set; then
13570 echo "#! /bin/sh" >conf$$.sh
13571 echo "exit 0" >>conf$$.sh
13572 chmod +x conf$$.sh
13573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13574 PATH_SEPARATOR=';'
13575 else
13576 PATH_SEPARATOR=:
13578 rm -f conf$$.sh
13581 # Find out how to test for executable files. Don't use a zero-byte file,
13582 # as systems may use methods other than mode bits to determine executability.
13583 cat >conf$$.file <<_ASEOF
13584 #! /bin/sh
13585 exit 0
13586 _ASEOF
13587 chmod +x conf$$.file
13588 if test -x conf$$.file >/dev/null 2>&1; then
13589 ac_executable_p="test -x"
13590 else
13591 ac_executable_p="test -f"
13593 rm -f conf$$.file
13595 # Extract the first word of "msgmerge", so it can be a program name with args.
13596 set dummy msgmerge; ac_word=$2
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598 $as_echo_n "checking for $ac_word... " >&6; }
13599 if ${ac_cv_path_MSGMERGE+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 case "$MSGMERGE" in
13603 [\\/]* | ?:[\\/]*)
13604 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13607 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13608 for ac_dir in $PATH; do
13609 IFS="$ac_save_IFS"
13610 test -z "$ac_dir" && ac_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13613 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13614 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13615 break 2
13618 done
13619 done
13620 IFS="$ac_save_IFS"
13621 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13623 esac
13625 MSGMERGE="$ac_cv_path_MSGMERGE"
13626 if test "$MSGMERGE" != ":"; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13628 $as_echo "$MSGMERGE" >&6; }
13629 else
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13635 if test "$GMSGFMT" != ":"; then
13636 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13637 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13639 else
13640 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13642 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13643 GMSGFMT=":"
13647 if test "$XGETTEXT" != ":"; then
13648 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13649 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13653 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13654 XGETTEXT=":"
13656 rm -f messages.po
13659 ac_config_commands="$ac_config_commands default-1"
13665 if test -f ../gettext/uninstalled-config.sh; then
13666 relative_builddir='$(top_builddir)/../gettext'
13667 . ../gettext/uninstalled-config.sh
13668 else
13669 # The sister gettext directory doesn't exist and won't collect information on
13670 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13695 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13696 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 gt_save_LIBS="$LIBS"
13700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 #include <CoreFoundation/CFPreferences.h>
13705 main ()
13707 CFPreferencesCopyAppValue(NULL, NULL)
13709 return 0;
13711 _ACEOF
13712 if ac_fn_cxx_try_link "$LINENO"; then :
13713 gt_cv_func_CFPreferencesCopyAppValue=yes
13714 else
13715 gt_cv_func_CFPreferencesCopyAppValue=no
13717 rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS="$gt_save_LIBS"
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13722 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13723 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13725 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13729 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13730 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 gt_save_LIBS="$LIBS"
13734 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737 #include <CoreFoundation/CFLocale.h>
13739 main ()
13741 CFLocaleCopyPreferredLanguages();
13743 return 0;
13745 _ACEOF
13746 if ac_fn_cxx_try_link "$LINENO"; then :
13747 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13748 else
13749 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13751 rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LIBS="$gt_save_LIBS"
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13756 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13757 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13759 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13762 INTL_MACOSX_LIBS=
13763 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13764 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13765 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13773 LIBINTL=
13774 LTLIBINTL=
13775 POSUB=
13777 case " $gt_needs " in
13778 *" need-formatstring-macros "*) gt_api_version=3 ;;
13779 *" need-ngettext "*) gt_api_version=2 ;;
13780 *) gt_api_version=1 ;;
13781 esac
13782 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13783 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13785 if test "$USE_NLS" = "yes"; then
13786 gt_use_preinstalled_gnugettext=no
13789 if test $gt_api_version -ge 3; then
13790 gt_revision_test_code='
13791 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13792 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13793 #endif
13794 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13796 else
13797 gt_revision_test_code=
13799 if test $gt_api_version -ge 2; then
13800 gt_expression_test_code=' + * ngettext ("", "", 0)'
13801 else
13802 gt_expression_test_code=
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13806 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13807 if eval \${$gt_func_gnugettext_libc+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13813 #include <libintl.h>
13814 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13815 extern int _nl_msg_cat_cntr;
13816 extern int *_nl_domain_bindings;
13817 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13818 #else
13819 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13820 #endif
13821 $gt_revision_test_code
13824 main ()
13827 bindtextdomain ("", "");
13828 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13831 return 0;
13833 _ACEOF
13834 if ac_fn_cxx_try_link "$LINENO"; then :
13835 eval "$gt_func_gnugettext_libc=yes"
13836 else
13837 eval "$gt_func_gnugettext_libc=no"
13839 rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13842 eval ac_res=\$$gt_func_gnugettext_libc
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13844 $as_echo "$ac_res" >&6; }
13846 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13852 am_save_CPPFLAGS="$CPPFLAGS"
13854 for element in $INCICONV; do
13855 haveit=
13856 for x in $CPPFLAGS; do
13858 acl_save_prefix="$prefix"
13859 prefix="$acl_final_prefix"
13860 acl_save_exec_prefix="$exec_prefix"
13861 exec_prefix="$acl_final_exec_prefix"
13862 eval x=\"$x\"
13863 exec_prefix="$acl_save_exec_prefix"
13864 prefix="$acl_save_prefix"
13866 if test "X$x" = "X$element"; then
13867 haveit=yes
13868 break
13870 done
13871 if test -z "$haveit"; then
13872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13874 done
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13878 $as_echo_n "checking for iconv... " >&6; }
13879 if ${am_cv_func_iconv+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13883 am_cv_func_iconv="no, consider installing GNU libiconv"
13884 am_cv_lib_iconv=no
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13888 #include <stdlib.h>
13889 #include <iconv.h>
13892 main ()
13894 iconv_t cd = iconv_open("","");
13895 iconv(cd,NULL,NULL,NULL,NULL);
13896 iconv_close(cd);
13898 return 0;
13900 _ACEOF
13901 if ac_fn_cxx_try_link "$LINENO"; then :
13902 am_cv_func_iconv=yes
13904 rm -f core conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 if test "$am_cv_func_iconv" != yes; then
13907 am_save_LIBS="$LIBS"
13908 LIBS="$LIBS $LIBICONV"
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13912 #include <stdlib.h>
13913 #include <iconv.h>
13916 main ()
13918 iconv_t cd = iconv_open("","");
13919 iconv(cd,NULL,NULL,NULL,NULL);
13920 iconv_close(cd);
13922 return 0;
13924 _ACEOF
13925 if ac_fn_cxx_try_link "$LINENO"; then :
13926 am_cv_lib_iconv=yes
13927 am_cv_func_iconv=yes
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 LIBS="$am_save_LIBS"
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13936 $as_echo "$am_cv_func_iconv" >&6; }
13937 if test "$am_cv_func_iconv" = yes; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13939 $as_echo_n "checking for working iconv... " >&6; }
13940 if ${am_cv_func_iconv_works+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13944 am_save_LIBS="$LIBS"
13945 if test $am_cv_lib_iconv = yes; then
13946 LIBS="$LIBS $LIBICONV"
13948 am_cv_func_iconv_works=no
13949 for ac_iconv_const in '' 'const'; do
13950 if test "$cross_compiling" = yes; then :
13951 case "$host_os" in
13952 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13953 *) am_cv_func_iconv_works="guessing yes" ;;
13954 esac
13955 else
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 #include <iconv.h>
13960 #include <string.h>
13962 #ifndef ICONV_CONST
13963 # define ICONV_CONST $ac_iconv_const
13964 #endif
13967 main ()
13969 int result = 0;
13970 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13971 successful returns. This is even documented in
13972 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13974 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13975 if (cd_utf8_to_88591 != (iconv_t)(-1))
13977 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13978 char buf[10];
13979 ICONV_CONST char *inptr = input;
13980 size_t inbytesleft = strlen (input);
13981 char *outptr = buf;
13982 size_t outbytesleft = sizeof (buf);
13983 size_t res = iconv (cd_utf8_to_88591,
13984 &inptr, &inbytesleft,
13985 &outptr, &outbytesleft);
13986 if (res == 0)
13987 result |= 1;
13988 iconv_close (cd_utf8_to_88591);
13991 /* Test against Solaris 10 bug: Failures are not distinguishable from
13992 successful returns. */
13994 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13995 if (cd_ascii_to_88591 != (iconv_t)(-1))
13997 static ICONV_CONST char input[] = "\263";
13998 char buf[10];
13999 ICONV_CONST char *inptr = input;
14000 size_t inbytesleft = strlen (input);
14001 char *outptr = buf;
14002 size_t outbytesleft = sizeof (buf);
14003 size_t res = iconv (cd_ascii_to_88591,
14004 &inptr, &inbytesleft,
14005 &outptr, &outbytesleft);
14006 if (res == 0)
14007 result |= 2;
14008 iconv_close (cd_ascii_to_88591);
14011 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14013 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14014 if (cd_88591_to_utf8 != (iconv_t)(-1))
14016 static ICONV_CONST char input[] = "\304";
14017 static char buf[2] = { (char)0xDE, (char)0xAD };
14018 ICONV_CONST char *inptr = input;
14019 size_t inbytesleft = 1;
14020 char *outptr = buf;
14021 size_t outbytesleft = 1;
14022 size_t res = iconv (cd_88591_to_utf8,
14023 &inptr, &inbytesleft,
14024 &outptr, &outbytesleft);
14025 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14026 result |= 4;
14027 iconv_close (cd_88591_to_utf8);
14030 #if 0 /* This bug could be worked around by the caller. */
14031 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14033 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14034 if (cd_88591_to_utf8 != (iconv_t)(-1))
14036 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14037 char buf[50];
14038 ICONV_CONST char *inptr = input;
14039 size_t inbytesleft = strlen (input);
14040 char *outptr = buf;
14041 size_t outbytesleft = sizeof (buf);
14042 size_t res = iconv (cd_88591_to_utf8,
14043 &inptr, &inbytesleft,
14044 &outptr, &outbytesleft);
14045 if ((int)res > 0)
14046 result |= 8;
14047 iconv_close (cd_88591_to_utf8);
14050 #endif
14051 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14052 provided. */
14054 /* Try standardized names. */
14055 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14056 /* Try IRIX, OSF/1 names. */
14057 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14058 /* Try AIX names. */
14059 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14060 /* Try HP-UX names. */
14061 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14062 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14063 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14064 result |= 16;
14065 if (cd1 != (iconv_t)(-1))
14066 iconv_close (cd1);
14067 if (cd2 != (iconv_t)(-1))
14068 iconv_close (cd2);
14069 if (cd3 != (iconv_t)(-1))
14070 iconv_close (cd3);
14071 if (cd4 != (iconv_t)(-1))
14072 iconv_close (cd4);
14074 return result;
14077 return 0;
14079 _ACEOF
14080 if ac_fn_cxx_try_run "$LINENO"; then :
14081 am_cv_func_iconv_works=yes
14083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14084 conftest.$ac_objext conftest.beam conftest.$ac_ext
14087 test "$am_cv_func_iconv_works" = no || break
14088 done
14089 LIBS="$am_save_LIBS"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14093 $as_echo "$am_cv_func_iconv_works" >&6; }
14094 case "$am_cv_func_iconv_works" in
14095 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14096 *) am_func_iconv=yes ;;
14097 esac
14098 else
14099 am_func_iconv=no am_cv_lib_iconv=no
14101 if test "$am_func_iconv" = yes; then
14103 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14106 if test "$am_cv_lib_iconv" = yes; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14108 $as_echo_n "checking how to link with libiconv... " >&6; }
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14110 $as_echo "$LIBICONV" >&6; }
14111 else
14112 CPPFLAGS="$am_save_CPPFLAGS"
14113 LIBICONV=
14114 LTLIBICONV=
14122 use_additional=yes
14124 acl_save_prefix="$prefix"
14125 prefix="$acl_final_prefix"
14126 acl_save_exec_prefix="$exec_prefix"
14127 exec_prefix="$acl_final_exec_prefix"
14129 eval additional_includedir=\"$includedir\"
14130 eval additional_libdir=\"$libdir\"
14132 exec_prefix="$acl_save_exec_prefix"
14133 prefix="$acl_save_prefix"
14136 # Check whether --with-libintl-prefix was given.
14137 if test "${with_libintl_prefix+set}" = set; then :
14138 withval=$with_libintl_prefix;
14139 if test "X$withval" = "Xno"; then
14140 use_additional=no
14141 else
14142 if test "X$withval" = "X"; then
14144 acl_save_prefix="$prefix"
14145 prefix="$acl_final_prefix"
14146 acl_save_exec_prefix="$exec_prefix"
14147 exec_prefix="$acl_final_exec_prefix"
14149 eval additional_includedir=\"$includedir\"
14150 eval additional_libdir=\"$libdir\"
14152 exec_prefix="$acl_save_exec_prefix"
14153 prefix="$acl_save_prefix"
14155 else
14156 additional_includedir="$withval/include"
14157 additional_libdir="$withval/lib"
14164 # Check whether --with-libintl-type was given.
14165 if test "${with_libintl_type+set}" = set; then :
14166 withval=$with_libintl_type; with_libintl_type=$withval
14167 else
14168 with_libintl_type=auto
14171 lib_type=`eval echo \$with_libintl_type`
14173 LIBINTL=
14174 LTLIBINTL=
14175 INCINTL=
14176 rpathdirs=
14177 ltrpathdirs=
14178 names_already_handled=
14179 names_next_round='intl '
14180 while test -n "$names_next_round"; do
14181 names_this_round="$names_next_round"
14182 names_next_round=
14183 for name in $names_this_round; do
14184 already_handled=
14185 for n in $names_already_handled; do
14186 if test "$n" = "$name"; then
14187 already_handled=yes
14188 break
14190 done
14191 if test -z "$already_handled"; then
14192 names_already_handled="$names_already_handled $name"
14193 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14194 eval value=\"\$HAVE_LIB$uppername\"
14195 if test -n "$value"; then
14196 if test "$value" = yes; then
14197 eval value=\"\$LIB$uppername\"
14198 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14199 eval value=\"\$LTLIB$uppername\"
14200 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14201 else
14204 else
14205 found_dir=
14206 found_la=
14207 found_so=
14208 found_a=
14209 if test $use_additional = yes; then
14210 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14211 found_dir="$additional_libdir"
14212 found_so="$additional_libdir/lib$name.$shlibext"
14213 if test -f "$additional_libdir/lib$name.la"; then
14214 found_la="$additional_libdir/lib$name.la"
14216 elif test x$lib_type != xshared; then
14217 if test -f "$additional_libdir/lib$name.$libext"; then
14218 found_dir="$additional_libdir"
14219 found_a="$additional_libdir/lib$name.$libext"
14220 if test -f "$additional_libdir/lib$name.la"; then
14221 found_la="$additional_libdir/lib$name.la"
14226 if test "X$found_dir" = "X"; then
14227 for x in $LDFLAGS $LTLIBINTL; do
14229 acl_save_prefix="$prefix"
14230 prefix="$acl_final_prefix"
14231 acl_save_exec_prefix="$exec_prefix"
14232 exec_prefix="$acl_final_exec_prefix"
14233 eval x=\"$x\"
14234 exec_prefix="$acl_save_exec_prefix"
14235 prefix="$acl_save_prefix"
14237 case "$x" in
14238 -L*)
14239 dir=`echo "X$x" | sed -e 's/^X-L//'`
14240 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14241 found_dir="$dir"
14242 found_so="$dir/lib$name.$shlibext"
14243 if test -f "$dir/lib$name.la"; then
14244 found_la="$dir/lib$name.la"
14246 elif test x$lib_type != xshared; then
14247 if test -f "$dir/lib$name.$libext"; then
14248 found_dir="$dir"
14249 found_a="$dir/lib$name.$libext"
14250 if test -f "$dir/lib$name.la"; then
14251 found_la="$dir/lib$name.la"
14256 esac
14257 if test "X$found_dir" != "X"; then
14258 break
14260 done
14262 if test "X$found_dir" != "X"; then
14263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14264 if test "X$found_so" != "X"; then
14265 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14266 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14267 else
14268 haveit=
14269 for x in $ltrpathdirs; do
14270 if test "X$x" = "X$found_dir"; then
14271 haveit=yes
14272 break
14274 done
14275 if test -z "$haveit"; then
14276 ltrpathdirs="$ltrpathdirs $found_dir"
14278 if test "$hardcode_direct" = yes; then
14279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14280 else
14281 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14283 haveit=
14284 for x in $rpathdirs; do
14285 if test "X$x" = "X$found_dir"; then
14286 haveit=yes
14287 break
14289 done
14290 if test -z "$haveit"; then
14291 rpathdirs="$rpathdirs $found_dir"
14293 else
14294 haveit=
14295 for x in $LDFLAGS $LIBINTL; do
14297 acl_save_prefix="$prefix"
14298 prefix="$acl_final_prefix"
14299 acl_save_exec_prefix="$exec_prefix"
14300 exec_prefix="$acl_final_exec_prefix"
14301 eval x=\"$x\"
14302 exec_prefix="$acl_save_exec_prefix"
14303 prefix="$acl_save_prefix"
14305 if test "X$x" = "X-L$found_dir"; then
14306 haveit=yes
14307 break
14309 done
14310 if test -z "$haveit"; then
14311 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14313 if test "$hardcode_minus_L" != no; then
14314 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14315 else
14316 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14321 else
14322 if test "X$found_a" != "X"; then
14323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14324 else
14325 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14328 additional_includedir=
14329 case "$found_dir" in
14330 */lib | */lib/)
14331 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14332 additional_includedir="$basedir/include"
14334 esac
14335 if test "X$additional_includedir" != "X"; then
14336 if test "X$additional_includedir" != "X/usr/include"; then
14337 haveit=
14338 if test "X$additional_includedir" = "X/usr/local/include"; then
14339 if test -n "$GCC"; then
14340 case $host_os in
14341 linux*) haveit=yes;;
14342 esac
14345 if test -z "$haveit"; then
14346 for x in $CPPFLAGS $INCINTL; do
14348 acl_save_prefix="$prefix"
14349 prefix="$acl_final_prefix"
14350 acl_save_exec_prefix="$exec_prefix"
14351 exec_prefix="$acl_final_exec_prefix"
14352 eval x=\"$x\"
14353 exec_prefix="$acl_save_exec_prefix"
14354 prefix="$acl_save_prefix"
14356 if test "X$x" = "X-I$additional_includedir"; then
14357 haveit=yes
14358 break
14360 done
14361 if test -z "$haveit"; then
14362 if test -d "$additional_includedir"; then
14363 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14369 if test -n "$found_la"; then
14370 save_libdir="$libdir"
14371 case "$found_la" in
14372 */* | *\\*) . "$found_la" ;;
14373 *) . "./$found_la" ;;
14374 esac
14375 libdir="$save_libdir"
14376 for dep in $dependency_libs; do
14377 case "$dep" in
14378 -L*)
14379 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14380 if test "X$additional_libdir" != "X/usr/lib"; then
14381 haveit=
14382 if test "X$additional_libdir" = "X/usr/local/lib"; then
14383 if test -n "$GCC"; then
14384 case $host_os in
14385 linux*) haveit=yes;;
14386 esac
14389 if test -z "$haveit"; then
14390 haveit=
14391 for x in $LDFLAGS $LIBINTL; do
14393 acl_save_prefix="$prefix"
14394 prefix="$acl_final_prefix"
14395 acl_save_exec_prefix="$exec_prefix"
14396 exec_prefix="$acl_final_exec_prefix"
14397 eval x=\"$x\"
14398 exec_prefix="$acl_save_exec_prefix"
14399 prefix="$acl_save_prefix"
14401 if test "X$x" = "X-L$additional_libdir"; then
14402 haveit=yes
14403 break
14405 done
14406 if test -z "$haveit"; then
14407 if test -d "$additional_libdir"; then
14408 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14411 haveit=
14412 for x in $LDFLAGS $LTLIBINTL; do
14414 acl_save_prefix="$prefix"
14415 prefix="$acl_final_prefix"
14416 acl_save_exec_prefix="$exec_prefix"
14417 exec_prefix="$acl_final_exec_prefix"
14418 eval x=\"$x\"
14419 exec_prefix="$acl_save_exec_prefix"
14420 prefix="$acl_save_prefix"
14422 if test "X$x" = "X-L$additional_libdir"; then
14423 haveit=yes
14424 break
14426 done
14427 if test -z "$haveit"; then
14428 if test -d "$additional_libdir"; then
14429 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14435 -R*)
14436 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14437 if test "$enable_rpath" != no; then
14438 haveit=
14439 for x in $rpathdirs; do
14440 if test "X$x" = "X$dir"; then
14441 haveit=yes
14442 break
14444 done
14445 if test -z "$haveit"; then
14446 rpathdirs="$rpathdirs $dir"
14448 haveit=
14449 for x in $ltrpathdirs; do
14450 if test "X$x" = "X$dir"; then
14451 haveit=yes
14452 break
14454 done
14455 if test -z "$haveit"; then
14456 ltrpathdirs="$ltrpathdirs $dir"
14460 -l*)
14461 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14463 *.la)
14464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14467 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14470 esac
14471 done
14473 else
14474 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14475 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14477 else
14478 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14479 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14484 done
14485 done
14486 if test "X$rpathdirs" != "X"; then
14487 if test -n "$hardcode_libdir_separator"; then
14488 alldirs=
14489 for found_dir in $rpathdirs; do
14490 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14491 done
14492 acl_save_libdir="$libdir"
14493 libdir="$alldirs"
14494 eval flag=\"$hardcode_libdir_flag_spec\"
14495 libdir="$acl_save_libdir"
14496 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14497 else
14498 for found_dir in $rpathdirs; do
14499 acl_save_libdir="$libdir"
14500 libdir="$found_dir"
14501 eval flag=\"$hardcode_libdir_flag_spec\"
14502 libdir="$acl_save_libdir"
14503 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14504 done
14507 if test "X$ltrpathdirs" != "X"; then
14508 for found_dir in $ltrpathdirs; do
14509 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14510 done
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14514 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14515 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 gt_save_CPPFLAGS="$CPPFLAGS"
14519 CPPFLAGS="$CPPFLAGS $INCINTL"
14520 gt_save_LIBS="$LIBS"
14521 LIBS="$LIBS $LIBINTL"
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14525 #include <libintl.h>
14526 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14527 extern int _nl_msg_cat_cntr;
14528 extern
14529 #ifdef __cplusplus
14531 #endif
14532 const char *_nl_expand_alias (const char *);
14533 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14534 #else
14535 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14536 #endif
14537 $gt_revision_test_code
14540 main ()
14543 bindtextdomain ("", "");
14544 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14547 return 0;
14549 _ACEOF
14550 if ac_fn_cxx_try_link "$LINENO"; then :
14551 eval "$gt_func_gnugettext_libintl=yes"
14552 else
14553 eval "$gt_func_gnugettext_libintl=no"
14555 rm -f core conftest.err conftest.$ac_objext \
14556 conftest$ac_exeext conftest.$ac_ext
14557 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14558 LIBS="$LIBS $LIBICONV"
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14562 #include <libintl.h>
14563 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14564 extern int _nl_msg_cat_cntr;
14565 extern
14566 #ifdef __cplusplus
14568 #endif
14569 const char *_nl_expand_alias (const char *);
14570 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14571 #else
14572 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14573 #endif
14574 $gt_revision_test_code
14577 main ()
14580 bindtextdomain ("", "");
14581 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14584 return 0;
14586 _ACEOF
14587 if ac_fn_cxx_try_link "$LINENO"; then :
14588 LIBINTL="$LIBINTL $LIBICONV"
14589 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14590 eval "$gt_func_gnugettext_libintl=yes"
14593 rm -f core conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
14596 CPPFLAGS="$gt_save_CPPFLAGS"
14597 LIBS="$gt_save_LIBS"
14599 eval ac_res=\$$gt_func_gnugettext_libintl
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14601 $as_echo "$ac_res" >&6; }
14604 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14605 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14606 && test "$PACKAGE" != gettext-runtime \
14607 && test "$PACKAGE" != gettext-tools; }; then
14608 gt_use_preinstalled_gnugettext=yes
14609 else
14610 LIBINTL=
14611 LTLIBINTL=
14612 INCINTL=
14617 if test -n "$INTL_MACOSX_LIBS"; then
14618 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14619 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14620 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14621 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14628 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14630 else
14631 USE_NLS=no
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14636 $as_echo_n "checking whether to use NLS... " >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14638 $as_echo "$USE_NLS" >&6; }
14639 if test "$USE_NLS" = "yes"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14641 $as_echo_n "checking where the gettext function comes from... " >&6; }
14642 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14643 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14644 gt_source="external libintl"
14645 else
14646 gt_source="libc"
14648 else
14649 gt_source="included intl directory"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14652 $as_echo "$gt_source" >&6; }
14655 if test "$USE_NLS" = "yes"; then
14657 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14658 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14660 $as_echo_n "checking how to link with libintl... " >&6; }
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14662 $as_echo "$LIBINTL" >&6; }
14664 for element in $INCINTL; do
14665 haveit=
14666 for x in $CPPFLAGS; do
14668 acl_save_prefix="$prefix"
14669 prefix="$acl_final_prefix"
14670 acl_save_exec_prefix="$exec_prefix"
14671 exec_prefix="$acl_final_exec_prefix"
14672 eval x=\"$x\"
14673 exec_prefix="$acl_save_exec_prefix"
14674 prefix="$acl_save_prefix"
14676 if test "X$x" = "X$element"; then
14677 haveit=yes
14678 break
14680 done
14681 if test -z "$haveit"; then
14682 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14684 done
14689 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14692 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14696 POSUB=po
14701 INTLLIBS="$LIBINTL"
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14721 $as_echo_n "checking whether NLS is requested... " >&6; }
14722 if test x"$USE_NLS" != xyes; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14724 $as_echo "no" >&6; }
14725 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14729 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14733 $as_echo_n "checking for catalogs to be installed... " >&6; }
14734 # Look for .po and .gmo files in the source directory.
14735 CATALOGS=
14736 XLINGUAS=
14737 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14738 # If there aren't any .gmo files the shell will give us the
14739 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14740 # weeded out.
14741 case "$cat" in *\**)
14742 continue;;
14743 esac
14744 # The quadruple backslash is collapsed to a double backslash
14745 # by the backticks, then collapsed again by the double quotes,
14746 # leaving us with one backslash in the sed expression (right
14747 # before the dot that mustn't act as a wildcard).
14748 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14749 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14750 # The user is allowed to set LINGUAS to a list of languages to
14751 # install catalogs for. If it's empty that means "all of them."
14752 if test "x$LINGUAS" = x; then
14753 CATALOGS="$CATALOGS $cat"
14754 XLINGUAS="$XLINGUAS $lang"
14755 else
14756 case "$LINGUAS" in *$lang*)
14757 CATALOGS="$CATALOGS $cat"
14758 XLINGUAS="$XLINGUAS $lang"
14760 esac
14762 done
14763 LINGUAS="$XLINGUAS"
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14765 $as_echo "$LINGUAS" >&6; }
14768 DATADIRNAME=share
14770 INSTOBJEXT=.mo
14772 GENCAT=gencat
14774 CATOBJEXT=.gmo
14778 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14779 # -liconv on the link line twice.
14780 case "$LIBINTL" in *$LIBICONV*)
14781 LIBICONV= ;;
14782 esac
14784 # Check whether --enable-secureplt was given.
14785 if test "${enable_secureplt+set}" = set; then :
14786 enableval=$enable_secureplt;
14790 # Check whether --enable-mingw-wildcard was given.
14791 if test "${enable_mingw_wildcard+set}" = set; then :
14792 enableval=$enable_mingw_wildcard;
14793 else
14794 enable_mingw_wildcard=platform
14797 if test x"$enable_mingw_wildcard" != xplatform ; then :
14799 cat >>confdefs.h <<_ACEOF
14800 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14801 _ACEOF
14805 # Check whether --enable-large-address-aware was given.
14806 if test "${enable_large_address_aware+set}" = set; then :
14807 enableval=$enable_large_address_aware;
14810 if test x"$enable_large_address_aware" = xyes; then :
14812 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14816 # Check whether --enable-leading-mingw64-underscores was given.
14817 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14818 enableval=$enable_leading_mingw64_underscores;
14821 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14823 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14827 # Check whether --enable-cld was given.
14828 if test "${enable_cld+set}" = set; then :
14829 enableval=$enable_cld;
14830 else
14831 enable_cld=no
14835 # Check whether --enable-frame-pointer was given.
14836 if test "${enable_frame_pointer+set}" = set; then :
14837 enableval=$enable_frame_pointer;
14838 else
14840 case $target_os in
14841 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
14842 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14843 enable_frame_pointer=no
14846 enable_frame_pointer=yes
14848 esac
14853 case $target in
14854 i[34567]86-*-* | x86_64-*-*)
14855 if test "x$enable_cld" = xyes; then
14856 tm_defines="${tm_defines} USE_IX86_CLD=1"
14858 if test "x$enable_frame_pointer" = xyes; then
14859 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
14862 esac
14864 # Windows32 Registry support for specifying GCC installation paths.
14865 # Check whether --enable-win32-registry was given.
14866 if test "${enable_win32_registry+set}" = set; then :
14867 enableval=$enable_win32_registry;
14871 case $host_os in
14872 win32 | pe | cygwin* | mingw32*)
14873 if test "x$enable_win32_registry" != xno; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
14875 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
14876 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14877 $as_echo_n "(cached) " >&6
14878 else
14879 ac_func_search_save_LIBS=$LIBS
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char RegOpenKeyExA ();
14891 main ()
14893 return RegOpenKeyExA ();
14895 return 0;
14897 _ACEOF
14898 for ac_lib in '' advapi32; do
14899 if test -z "$ac_lib"; then
14900 ac_res="none required"
14901 else
14902 ac_res=-l$ac_lib
14903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14905 if ac_fn_cxx_try_link "$LINENO"; then :
14906 ac_cv_search_RegOpenKeyExA=$ac_res
14908 rm -f core conftest.err conftest.$ac_objext \
14909 conftest$ac_exeext
14910 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14911 break
14913 done
14914 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14916 else
14917 ac_cv_search_RegOpenKeyExA=no
14919 rm conftest.$ac_ext
14920 LIBS=$ac_func_search_save_LIBS
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
14923 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
14924 ac_res=$ac_cv_search_RegOpenKeyExA
14925 if test "$ac_res" != no; then :
14926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14928 else
14929 enable_win32_registry=no
14934 if test "x$enable_win32_registry" != xno; then
14936 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
14939 if test "x$enable_win32_registry" != xyes \
14940 && test "x$enable_win32_registry" != x; then
14942 cat >>confdefs.h <<_ACEOF
14943 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
14944 _ACEOF
14949 esac
14951 # Get an absolute path to the GCC top-level source directory
14952 holddir=`${PWDCMD-pwd}`
14953 cd $srcdir
14954 topdir=`${PWDCMD-pwd}`
14955 cd $holddir
14957 # Conditionalize the makefile for this host machine.
14958 xmake_file=
14959 for f in ${host_xmake_file}
14961 if test -f ${srcdir}/config/$f
14962 then
14963 xmake_file="${xmake_file} \$(srcdir)/config/$f"
14965 done
14967 # Conditionalize the makefile for this target machine.
14968 tmake_file_=
14969 for f in ${tmake_file}
14971 if test -f ${srcdir}/config/$f
14972 then
14973 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
14975 done
14976 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
14978 out_object_file=`basename $out_file .cc`.o
14979 common_out_object_file=`basename $common_out_file .cc`.o
14981 tm_file_list="options.h"
14982 tm_include_list="options.h insn-constants.h"
14983 for f in $tm_file; do
14984 case $f in
14985 ./* )
14986 f=`echo $f | sed 's/^..//'`
14987 tm_file_list="${tm_file_list} $f"
14988 tm_include_list="${tm_include_list} $f"
14990 defaults.h )
14991 tm_file_list="${tm_file_list} \$(srcdir)/$f"
14992 tm_include_list="${tm_include_list} $f"
14995 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
14996 tm_include_list="${tm_include_list} config/$f"
14998 esac
14999 done
15001 tm_p_file_list=
15002 tm_p_include_list=
15003 for f in $tm_p_file; do
15004 case $f in
15005 tm-preds.h )
15006 tm_p_file_list="${tm_p_file_list} $f"
15007 tm_p_include_list="${tm_p_include_list} $f"
15010 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15011 tm_p_include_list="${tm_p_include_list} config/$f"
15012 esac
15013 done
15015 tm_d_file_list=
15016 tm_d_include_list=
15017 for f in $tm_d_file; do
15018 case $f in
15020 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15021 tm_d_include_list="${tm_d_include_list} config/$f"
15023 esac
15024 done
15026 tm_rust_file_list=
15027 tm_rust_include_list=
15028 for f in $tm_rust_file; do
15029 case $f in
15031 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15032 tm_rust_include_list="${tm_rust_include_list} config/$f"
15034 esac
15035 done
15037 xm_file_list=
15038 xm_include_list=
15039 for f in $xm_file; do
15040 case $f in
15041 ansidecl.h )
15042 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15043 xm_include_list="${xm_include_list} $f"
15045 auto-host.h )
15046 xm_file_list="${xm_file_list} $f"
15047 xm_include_list="${xm_include_list} $f"
15050 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15051 xm_include_list="${xm_include_list} config/$f"
15053 esac
15054 done
15056 host_xm_file_list=
15057 host_xm_include_list=
15058 for f in $host_xm_file; do
15059 case $f in
15060 ansidecl.h )
15061 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15062 host_xm_include_list="${host_xm_include_list} $f"
15064 auto-host.h )
15065 host_xm_file_list="${host_xm_file_list} $f"
15066 host_xm_include_list="${host_xm_include_list} $f"
15069 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15070 host_xm_include_list="${host_xm_include_list} config/$f"
15072 esac
15073 done
15075 build_xm_file_list=
15076 for f in $build_xm_file; do
15077 case $f in
15078 ansidecl.h )
15079 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15080 build_xm_include_list="${build_xm_include_list} $f"
15082 auto-build.h | auto-host.h )
15083 build_xm_file_list="${build_xm_file_list} $f"
15084 build_xm_include_list="${build_xm_include_list} $f"
15087 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15088 build_xm_include_list="${build_xm_include_list} config/$f"
15090 esac
15091 done
15093 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15094 # cross-compiler which does not use the native headers and libraries.
15095 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15096 CROSS=
15097 ALL=all.internal
15098 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15099 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15101 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15102 test x$build != x$host || test "x$with_build_sysroot" != x; then
15103 if test "x$with_build_sysroot" != x; then
15104 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15105 else
15106 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15109 if test x$host != x$target
15110 then
15111 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15112 ALL=all.cross
15113 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15114 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15115 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15118 if test "x$with_build_sysroot" != "x"; then
15119 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15120 elif test "x$with_sysroot" = x; then
15121 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15122 elif test "x$with_sysroot" = xyes; then
15123 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15124 else
15125 target_header_dir="${with_sysroot}${native_system_header_dir}"
15127 else
15128 target_header_dir=${native_system_header_dir}
15131 # If this is a cross-compiler that does not
15132 # have its own set of headers then define
15133 # inhibit_libc
15135 # If this is using newlib, without having the headers available now,
15136 # then define inhibit_libc in LIBGCC2_CFLAGS.
15137 # This prevents libgcc2 from containing any code which requires libc
15138 # support.
15139 : ${inhibit_libc=false}
15140 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15141 test x$with_newlib = xyes ; } &&
15142 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15143 inhibit_libc=true
15147 # When building gcc with a cross-compiler, we need to adjust things so
15148 # that the generator programs are still built with the native compiler.
15149 # Also, we cannot run fixincludes.
15151 # These are the normal (build=host) settings:
15152 CC_FOR_BUILD='$(CC)'
15153 CXX_FOR_BUILD='$(CXX)'
15154 BUILD_CFLAGS='$(ALL_CFLAGS)'
15155 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15156 BUILD_LDFLAGS='$(LDFLAGS)'
15157 STMP_FIXINC=stmp-fixinc
15159 # And these apply if build != host, or we are generating coverage data
15160 if test x$build != x$host || test "x$coverage_flags" != x
15161 then
15162 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15163 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15164 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15168 if test x$enable_fixincludes = xno;
15169 then
15170 STMP_FIXINC=''
15173 # Expand extra_headers to include complete path.
15174 # This substitutes for lots of t-* files.
15175 extra_headers_list=
15176 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15177 for file in ${extra_headers} ; do
15178 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15179 done
15181 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15182 if test x"$use_gcc_tgmath" = xyes
15183 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15186 # Define collect2 in Makefile.
15187 case $host_can_use_collect2 in
15188 no) collect2= ;;
15189 *) collect2='collect2$(exeext)' ;;
15190 esac
15193 # Add a definition of USE_COLLECT2 if system wants one.
15194 case $use_collect2 in
15195 no) use_collect2= ;;
15196 "") ;;
15198 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15199 xm_defines="${xm_defines} USE_COLLECT2"
15200 case $host_can_use_collect2 in
15202 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15204 esac
15206 esac
15209 cat >>confdefs.h <<_ACEOF
15210 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15211 _ACEOF
15214 # ---------------------------
15215 # Assembler & linker features
15216 # ---------------------------
15218 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15219 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15220 # However when ld-new is first executed from the build tree, libtool will
15221 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15222 # to the build tree. While doing this we need to use the previous-stage
15223 # linker, or we have an infinite loop. The presence of a shell script as
15224 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15225 # the gcc/collect-ld script. So we need to know how libtool works, or
15226 # exec-tool will fail.
15229 case `pwd` in
15230 *\ * | *\ *)
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15232 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15233 esac
15237 macro_version='2.2.7a'
15238 macro_revision='1.3134'
15252 ltmain="$ac_aux_dir/ltmain.sh"
15254 # Backslashify metacharacters that are still active within
15255 # double-quoted strings.
15256 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15258 # Same as above, but do not quote variable references.
15259 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15261 # Sed substitution to delay expansion of an escaped shell variable in a
15262 # double_quote_subst'ed string.
15263 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15265 # Sed substitution to delay expansion of an escaped single quote.
15266 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15268 # Sed substitution to avoid accidental globbing in evaled expressions
15269 no_glob_subst='s/\*/\\\*/g'
15271 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15272 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15273 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15276 $as_echo_n "checking how to print strings... " >&6; }
15277 # Test print first, because it will be a builtin if present.
15278 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15279 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15280 ECHO='print -r --'
15281 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15282 ECHO='printf %s\n'
15283 else
15284 # Use this function as a fallback that always works.
15285 func_fallback_echo ()
15287 eval 'cat <<_LTECHO_EOF
15289 _LTECHO_EOF'
15291 ECHO='func_fallback_echo'
15294 # func_echo_all arg...
15295 # Invoke $ECHO with all args, space-separated.
15296 func_echo_all ()
15298 $ECHO ""
15301 case "$ECHO" in
15302 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15303 $as_echo "printf" >&6; } ;;
15304 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15305 $as_echo "print -r" >&6; } ;;
15306 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15307 $as_echo "cat" >&6; } ;;
15308 esac
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15325 if ${ac_cv_path_SED+:} false; then :
15326 $as_echo_n "(cached) " >&6
15327 else
15328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15329 for ac_i in 1 2 3 4 5 6 7; do
15330 ac_script="$ac_script$as_nl$ac_script"
15331 done
15332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15333 { ac_script=; unset ac_script;}
15334 if test -z "$SED"; then
15335 ac_path_SED_found=false
15336 # Loop through the user's path and test for each of PROGNAME-LIST
15337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15338 for as_dir in $PATH
15340 IFS=$as_save_IFS
15341 test -z "$as_dir" && as_dir=.
15342 for ac_prog in sed gsed; do
15343 for ac_exec_ext in '' $ac_executable_extensions; do
15344 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15345 as_fn_executable_p "$ac_path_SED" || continue
15346 # Check for GNU ac_path_SED and select it if it is found.
15347 # Check for GNU $ac_path_SED
15348 case `"$ac_path_SED" --version 2>&1` in
15349 *GNU*)
15350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15352 ac_count=0
15353 $as_echo_n 0123456789 >"conftest.in"
15354 while :
15356 cat "conftest.in" "conftest.in" >"conftest.tmp"
15357 mv "conftest.tmp" "conftest.in"
15358 cp "conftest.in" "conftest.nl"
15359 $as_echo '' >> "conftest.nl"
15360 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15362 as_fn_arith $ac_count + 1 && ac_count=$as_val
15363 if test $ac_count -gt ${ac_path_SED_max-0}; then
15364 # Best one so far, save it but keep looking for a better one
15365 ac_cv_path_SED="$ac_path_SED"
15366 ac_path_SED_max=$ac_count
15368 # 10*(2^10) chars as input seems more than enough
15369 test $ac_count -gt 10 && break
15370 done
15371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15372 esac
15374 $ac_path_SED_found && break 3
15375 done
15376 done
15377 done
15378 IFS=$as_save_IFS
15379 if test -z "$ac_cv_path_SED"; then
15380 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15382 else
15383 ac_cv_path_SED=$SED
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15388 $as_echo "$ac_cv_path_SED" >&6; }
15389 SED="$ac_cv_path_SED"
15390 rm -f conftest.sed
15392 test -z "$SED" && SED=sed
15393 Xsed="$SED -e 1s/^X//"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15406 $as_echo_n "checking for fgrep... " >&6; }
15407 if ${ac_cv_path_FGREP+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15411 then ac_cv_path_FGREP="$GREP -F"
15412 else
15413 if test -z "$FGREP"; then
15414 ac_path_FGREP_found=false
15415 # Loop through the user's path and test for each of PROGNAME-LIST
15416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15419 IFS=$as_save_IFS
15420 test -z "$as_dir" && as_dir=.
15421 for ac_prog in fgrep; do
15422 for ac_exec_ext in '' $ac_executable_extensions; do
15423 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15424 as_fn_executable_p "$ac_path_FGREP" || continue
15425 # Check for GNU ac_path_FGREP and select it if it is found.
15426 # Check for GNU $ac_path_FGREP
15427 case `"$ac_path_FGREP" --version 2>&1` in
15428 *GNU*)
15429 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15431 ac_count=0
15432 $as_echo_n 0123456789 >"conftest.in"
15433 while :
15435 cat "conftest.in" "conftest.in" >"conftest.tmp"
15436 mv "conftest.tmp" "conftest.in"
15437 cp "conftest.in" "conftest.nl"
15438 $as_echo 'FGREP' >> "conftest.nl"
15439 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15441 as_fn_arith $ac_count + 1 && ac_count=$as_val
15442 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15443 # Best one so far, save it but keep looking for a better one
15444 ac_cv_path_FGREP="$ac_path_FGREP"
15445 ac_path_FGREP_max=$ac_count
15447 # 10*(2^10) chars as input seems more than enough
15448 test $ac_count -gt 10 && break
15449 done
15450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15451 esac
15453 $ac_path_FGREP_found && break 3
15454 done
15455 done
15456 done
15457 IFS=$as_save_IFS
15458 if test -z "$ac_cv_path_FGREP"; then
15459 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15461 else
15462 ac_cv_path_FGREP=$FGREP
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15468 $as_echo "$ac_cv_path_FGREP" >&6; }
15469 FGREP="$ac_cv_path_FGREP"
15472 test -z "$GREP" && GREP=grep
15492 # Check whether --with-gnu-ld was given.
15493 if test "${with_gnu_ld+set}" = set; then :
15494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15495 else
15496 with_gnu_ld=no
15499 ac_prog=ld
15500 if test "$GCC" = yes; then
15501 # Check if gcc -print-prog-name=ld gives a path.
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15503 $as_echo_n "checking for ld used by $CC... " >&6; }
15504 case $host in
15505 *-*-mingw*)
15506 # gcc leaves a trailing carriage return which upsets mingw
15507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15510 esac
15511 case $ac_prog in
15512 # Accept absolute paths.
15513 [\\/]* | ?:[\\/]*)
15514 re_direlt='/[^/][^/]*/\.\./'
15515 # Canonicalize the pathname of ld
15516 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15517 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15518 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15519 done
15520 test -z "$LD" && LD="$ac_prog"
15523 # If it fails, then pretend we aren't using GCC.
15524 ac_prog=ld
15527 # If it is relative, then search for the first ld in PATH.
15528 with_gnu_ld=unknown
15530 esac
15531 elif test "$with_gnu_ld" = yes; then
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15533 $as_echo_n "checking for GNU ld... " >&6; }
15534 else
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15536 $as_echo_n "checking for non-GNU ld... " >&6; }
15538 if ${lt_cv_path_LD+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 if test -z "$LD"; then
15542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15543 for ac_dir in $PATH; do
15544 IFS="$lt_save_ifs"
15545 test -z "$ac_dir" && ac_dir=.
15546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15547 lt_cv_path_LD="$ac_dir/$ac_prog"
15548 # Check to see if the program is GNU ld. I'd rather use --version,
15549 # but apparently some variants of GNU ld only accept -v.
15550 # Break only if it was the GNU/non-GNU ld that we prefer.
15551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15552 *GNU* | *'with BFD'*)
15553 test "$with_gnu_ld" != no && break
15556 test "$with_gnu_ld" != yes && break
15558 esac
15560 done
15561 IFS="$lt_save_ifs"
15562 else
15563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15567 LD="$lt_cv_path_LD"
15568 if test -n "$LD"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15570 $as_echo "$LD" >&6; }
15571 else
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 $as_echo "no" >&6; }
15575 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15578 if ${lt_cv_prog_gnu_ld+:} false; then :
15579 $as_echo_n "(cached) " >&6
15580 else
15581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15582 case `$LD -v 2>&1 </dev/null` in
15583 *GNU* | *'with BFD'*)
15584 lt_cv_prog_gnu_ld=yes
15587 lt_cv_prog_gnu_ld=no
15589 esac
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15593 with_gnu_ld=$lt_cv_prog_gnu_ld
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15605 if ${lt_cv_path_NM+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607 else
15608 if test -n "$NM"; then
15609 # Let the user override the nm to test.
15610 lt_nm_to_check="$NM"
15611 else
15612 lt_nm_to_check="${ac_tool_prefix}nm"
15613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15614 lt_nm_to_check="$lt_nm_to_check nm"
15617 for lt_tmp_nm in "$lt_nm_to_check"; do
15618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15619 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15620 IFS="$lt_save_ifs"
15621 test -z "$ac_dir" && ac_dir=.
15622 # Strip out any user-provided options from the nm to test twice,
15623 # the first time to test to see if nm (rather than its options) has
15624 # an explicit path, the second time to yield a file which can be
15625 # nm'ed itself.
15626 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15627 case "$tmp_nm_path" in
15628 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15629 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15630 esac
15631 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15632 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15633 # Check to see if the nm accepts a BSD-compat flag.
15634 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15635 # nm: unknown option "B" ignored
15636 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15637 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15638 break
15641 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15642 *$tmp_nm*)
15643 lt_cv_path_NM="$tmp_nm -p"
15644 break
15647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15648 continue # so that we can try to find one that supports BSD flags
15650 esac
15652 esac
15654 done
15655 IFS="$lt_save_ifs"
15656 done
15657 : ${lt_cv_path_NM=no}
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15660 $as_echo "$lt_cv_path_NM" >&6; }
15661 if test "$lt_cv_path_NM" != "no"; then
15662 NM="$lt_cv_path_NM"
15663 else
15664 # Didn't find any BSD compatible name lister, look for dumpbin.
15665 if test -n "$DUMPBIN"; then :
15666 # Let the user override the test.
15667 else
15668 if test -n "$ac_tool_prefix"; then
15669 for ac_prog in dumpbin "link -dump"
15671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15674 $as_echo_n "checking for $ac_word... " >&6; }
15675 if ${ac_cv_prog_DUMPBIN+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 if test -n "$DUMPBIN"; then
15679 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15680 else
15681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682 for as_dir in $PATH
15684 IFS=$as_save_IFS
15685 test -z "$as_dir" && as_dir=.
15686 for ac_exec_ext in '' $ac_executable_extensions; do
15687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15688 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15690 break 2
15692 done
15693 done
15694 IFS=$as_save_IFS
15698 DUMPBIN=$ac_cv_prog_DUMPBIN
15699 if test -n "$DUMPBIN"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15701 $as_echo "$DUMPBIN" >&6; }
15702 else
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 $as_echo "no" >&6; }
15708 test -n "$DUMPBIN" && break
15709 done
15711 if test -z "$DUMPBIN"; then
15712 ac_ct_DUMPBIN=$DUMPBIN
15713 for ac_prog in dumpbin "link -dump"
15715 # Extract the first word of "$ac_prog", so it can be a program name with args.
15716 set dummy $ac_prog; ac_word=$2
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718 $as_echo_n "checking for $ac_word... " >&6; }
15719 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 if test -n "$ac_ct_DUMPBIN"; then
15723 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15724 else
15725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15728 IFS=$as_save_IFS
15729 test -z "$as_dir" && as_dir=.
15730 for ac_exec_ext in '' $ac_executable_extensions; do
15731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15732 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15734 break 2
15736 done
15737 done
15738 IFS=$as_save_IFS
15742 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15743 if test -n "$ac_ct_DUMPBIN"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15745 $as_echo "$ac_ct_DUMPBIN" >&6; }
15746 else
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15752 test -n "$ac_ct_DUMPBIN" && break
15753 done
15755 if test "x$ac_ct_DUMPBIN" = x; then
15756 DUMPBIN=":"
15757 else
15758 case $cross_compiling:$ac_tool_warned in
15759 yes:)
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15762 ac_tool_warned=yes ;;
15763 esac
15764 DUMPBIN=$ac_ct_DUMPBIN
15768 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15769 *COFF*)
15770 DUMPBIN="$DUMPBIN -symbols"
15773 DUMPBIN=:
15775 esac
15778 if test "$DUMPBIN" != ":"; then
15779 NM="$DUMPBIN"
15782 test -z "$NM" && NM=nm
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15790 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15791 if ${lt_cv_nm_interface+:} false; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 lt_cv_nm_interface="BSD nm"
15795 echo "int some_variable = 0;" > conftest.$ac_ext
15796 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15797 (eval "$ac_compile" 2>conftest.err)
15798 cat conftest.err >&5
15799 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15800 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15801 cat conftest.err >&5
15802 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15803 cat conftest.out >&5
15804 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15805 lt_cv_nm_interface="MS dumpbin"
15807 rm -f conftest*
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15810 $as_echo "$lt_cv_nm_interface" >&6; }
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15813 $as_echo_n "checking whether ln -s works... " >&6; }
15814 LN_S=$as_ln_s
15815 if test "$LN_S" = "ln -s"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817 $as_echo "yes" >&6; }
15818 else
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15820 $as_echo "no, using $LN_S" >&6; }
15823 # find the maximum length of command line arguments
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15825 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15826 if ${lt_cv_sys_max_cmd_len+:} false; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15830 teststring="ABCD"
15832 case $build_os in
15833 msdosdjgpp*)
15834 # On DJGPP, this test can blow up pretty badly due to problems in libc
15835 # (any single argument exceeding 2000 bytes causes a buffer overrun
15836 # during glob expansion). Even if it were fixed, the result of this
15837 # check would be larger than it should be.
15838 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15841 gnu*)
15842 # Under GNU Hurd, this test is not required because there is
15843 # no limit to the length of command line arguments.
15844 # Libtool will interpret -1 as no limit whatsoever
15845 lt_cv_sys_max_cmd_len=-1;
15848 cygwin* | mingw* | cegcc*)
15849 # On Win9x/ME, this test blows up -- it succeeds, but takes
15850 # about 5 minutes as the teststring grows exponentially.
15851 # Worse, since 9x/ME are not pre-emptively multitasking,
15852 # you end up with a "frozen" computer, even though with patience
15853 # the test eventually succeeds (with a max line length of 256k).
15854 # Instead, let's just punt: use the minimum linelength reported by
15855 # all of the supported platforms: 8192 (on NT/2K/XP).
15856 lt_cv_sys_max_cmd_len=8192;
15859 mint*)
15860 # On MiNT this can take a long time and run out of memory.
15861 lt_cv_sys_max_cmd_len=8192;
15864 amigaos*)
15865 # On AmigaOS with pdksh, this test takes hours, literally.
15866 # So we just punt and use a minimum line length of 8192.
15867 lt_cv_sys_max_cmd_len=8192;
15870 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15871 # This has been around since 386BSD, at least. Likely further.
15872 if test -x /sbin/sysctl; then
15873 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15874 elif test -x /usr/sbin/sysctl; then
15875 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15876 else
15877 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15879 # And add a safety zone
15880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15884 interix*)
15885 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15886 lt_cv_sys_max_cmd_len=196608
15889 osf*)
15890 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15891 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15892 # nice to cause kernel panics so lets avoid the loop below.
15893 # First set a reasonable default.
15894 lt_cv_sys_max_cmd_len=16384
15896 if test -x /sbin/sysconfig; then
15897 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15898 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15899 esac
15902 sco3.2v5*)
15903 lt_cv_sys_max_cmd_len=102400
15905 sysv5* | sco5v6* | sysv4.2uw2*)
15906 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15907 if test -n "$kargmax"; then
15908 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15909 else
15910 lt_cv_sys_max_cmd_len=32768
15914 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15915 if test -n "$lt_cv_sys_max_cmd_len"; then
15916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15918 else
15919 # Make teststring a little bigger before we do anything with it.
15920 # a 1K string should be a reasonable start.
15921 for i in 1 2 3 4 5 6 7 8 ; do
15922 teststring=$teststring$teststring
15923 done
15924 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15925 # If test is not a shell built-in, we'll probably end up computing a
15926 # maximum length that is only half of the actual maximum length, but
15927 # we can't tell.
15928 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15929 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15930 test $i != 17 # 1/2 MB should be enough
15932 i=`expr $i + 1`
15933 teststring=$teststring$teststring
15934 done
15935 # Only check the string length outside the loop.
15936 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15937 teststring=
15938 # Add a significant safety factor because C++ compilers can tack on
15939 # massive amounts of additional arguments before passing them to the
15940 # linker. It appears as though 1/2 is a usable value.
15941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15944 esac
15948 if test -n $lt_cv_sys_max_cmd_len ; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15950 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15951 else
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15953 $as_echo "none" >&6; }
15955 max_cmd_len=$lt_cv_sys_max_cmd_len
15962 : ${CP="cp -f"}
15963 : ${MV="mv -f"}
15964 : ${RM="rm -f"}
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
15967 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
15968 # Try some XSI features
15969 xsi_shell=no
15970 ( _lt_dummy="a/b/c"
15971 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15972 = c,a/b,, \
15973 && eval 'test $(( 1 + 1 )) -eq 2 \
15974 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15975 && xsi_shell=yes
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
15977 $as_echo "$xsi_shell" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
15981 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
15982 lt_shell_append=no
15983 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15984 >/dev/null 2>&1 \
15985 && lt_shell_append=yes
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
15987 $as_echo "$lt_shell_append" >&6; }
15990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15991 lt_unset=unset
15992 else
15993 lt_unset=false
16000 # test EBCDIC or ASCII
16001 case `echo X|tr X '\101'` in
16002 A) # ASCII based system
16003 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16004 lt_SP2NL='tr \040 \012'
16005 lt_NL2SP='tr \015\012 \040\040'
16007 *) # EBCDIC based system
16008 lt_SP2NL='tr \100 \n'
16009 lt_NL2SP='tr \r\n \100\100'
16011 esac
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16022 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16023 if ${lt_cv_ld_reload_flag+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 lt_cv_ld_reload_flag='-r'
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16029 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16030 reload_flag=$lt_cv_ld_reload_flag
16031 case $reload_flag in
16032 "" | " "*) ;;
16033 *) reload_flag=" $reload_flag" ;;
16034 esac
16035 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16036 case $host_os in
16037 darwin*)
16038 if test "$GCC" = yes; then
16039 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16040 else
16041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16044 esac
16054 if test -n "$ac_tool_prefix"; then
16055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16056 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16058 $as_echo_n "checking for $ac_word... " >&6; }
16059 if ${ac_cv_prog_OBJDUMP+:} false; then :
16060 $as_echo_n "(cached) " >&6
16061 else
16062 if test -n "$OBJDUMP"; then
16063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16064 else
16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066 for as_dir in $PATH
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
16070 for ac_exec_ext in '' $ac_executable_extensions; do
16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16074 break 2
16076 done
16077 done
16078 IFS=$as_save_IFS
16082 OBJDUMP=$ac_cv_prog_OBJDUMP
16083 if test -n "$OBJDUMP"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16085 $as_echo "$OBJDUMP" >&6; }
16086 else
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16093 if test -z "$ac_cv_prog_OBJDUMP"; then
16094 ac_ct_OBJDUMP=$OBJDUMP
16095 # Extract the first word of "objdump", so it can be a program name with args.
16096 set dummy objdump; ac_word=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16098 $as_echo_n "checking for $ac_word... " >&6; }
16099 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 if test -n "$ac_ct_OBJDUMP"; then
16103 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16104 else
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 break 2
16116 done
16117 done
16118 IFS=$as_save_IFS
16122 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16123 if test -n "$ac_ct_OBJDUMP"; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16125 $as_echo "$ac_ct_OBJDUMP" >&6; }
16126 else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16131 if test "x$ac_ct_OBJDUMP" = x; then
16132 OBJDUMP="false"
16133 else
16134 case $cross_compiling:$ac_tool_warned in
16135 yes:)
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16138 ac_tool_warned=yes ;;
16139 esac
16140 OBJDUMP=$ac_ct_OBJDUMP
16142 else
16143 OBJDUMP="$ac_cv_prog_OBJDUMP"
16146 test -z "$OBJDUMP" && OBJDUMP=objdump
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16157 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16158 if ${lt_cv_deplibs_check_method+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 lt_cv_file_magic_cmd='$MAGIC_CMD'
16162 lt_cv_file_magic_test_file=
16163 lt_cv_deplibs_check_method='unknown'
16164 # Need to set the preceding variable on all platforms that support
16165 # interlibrary dependencies.
16166 # 'none' -- dependencies not supported.
16167 # `unknown' -- same as none, but documents that we really don't know.
16168 # 'pass_all' -- all dependencies passed with no checks.
16169 # 'test_compile' -- check by making test program.
16170 # 'file_magic [[regex]]' -- check by looking for files in library path
16171 # which responds to the $file_magic_cmd with a given extended regex.
16172 # If you have `file' or equivalent on your system and you're not sure
16173 # whether `pass_all' will *always* work, you probably want this one.
16175 case $host_os in
16176 aix[4-9]*)
16177 lt_cv_deplibs_check_method=pass_all
16180 beos*)
16181 lt_cv_deplibs_check_method=pass_all
16184 bsdi[45]*)
16185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16186 lt_cv_file_magic_cmd='/usr/bin/file -L'
16187 lt_cv_file_magic_test_file=/shlib/libc.so
16190 cygwin*)
16191 # func_win32_libid is a shell function defined in ltmain.sh
16192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16193 lt_cv_file_magic_cmd='func_win32_libid'
16196 mingw* | pw32*)
16197 # Base MSYS/MinGW do not provide the 'file' command needed by
16198 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16199 # unless we find 'file', for example because we are cross-compiling.
16200 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16201 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16203 lt_cv_file_magic_cmd='func_win32_libid'
16204 else
16205 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16206 lt_cv_file_magic_cmd='$OBJDUMP -f'
16210 cegcc*)
16211 # use the weaker test based on 'objdump'. See mingw*.
16212 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16213 lt_cv_file_magic_cmd='$OBJDUMP -f'
16216 darwin* | rhapsody*)
16217 lt_cv_deplibs_check_method=pass_all
16220 freebsd* | dragonfly*)
16221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16222 case $host_cpu in
16223 i*86 )
16224 # Not sure whether the presence of OpenBSD here was a mistake.
16225 # Let's accept both of them until this is cleared up.
16226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16227 lt_cv_file_magic_cmd=/usr/bin/file
16228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16230 esac
16231 else
16232 lt_cv_deplibs_check_method=pass_all
16236 gnu*)
16237 lt_cv_deplibs_check_method=pass_all
16240 haiku*)
16241 lt_cv_deplibs_check_method=pass_all
16244 hpux10.20* | hpux11*)
16245 lt_cv_file_magic_cmd=/usr/bin/file
16246 case $host_cpu in
16247 ia64*)
16248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16249 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16251 hppa*64*)
16252 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]'
16253 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16257 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16259 esac
16262 interix[3-9]*)
16263 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16267 irix5* | irix6* | nonstopux*)
16268 case $LD in
16269 *-32|*"-32 ") libmagic=32-bit;;
16270 *-n32|*"-n32 ") libmagic=N32;;
16271 *-64|*"-64 ") libmagic=64-bit;;
16272 *) libmagic=never-match;;
16273 esac
16274 lt_cv_deplibs_check_method=pass_all
16277 # This must be Linux ELF.
16278 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16279 lt_cv_deplibs_check_method=pass_all
16282 netbsd*)
16283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16285 else
16286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16290 newos6*)
16291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16292 lt_cv_file_magic_cmd=/usr/bin/file
16293 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16296 *nto* | *qnx*)
16297 lt_cv_deplibs_check_method=pass_all
16300 openbsd*)
16301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16303 else
16304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16308 osf3* | osf4* | osf5*)
16309 lt_cv_deplibs_check_method=pass_all
16312 rdos*)
16313 lt_cv_deplibs_check_method=pass_all
16316 solaris*)
16317 lt_cv_deplibs_check_method=pass_all
16320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16321 lt_cv_deplibs_check_method=pass_all
16324 sysv4 | sysv4.3*)
16325 case $host_vendor in
16326 motorola)
16327 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]'
16328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16330 ncr)
16331 lt_cv_deplibs_check_method=pass_all
16333 sequent)
16334 lt_cv_file_magic_cmd='/bin/file'
16335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16337 sni)
16338 lt_cv_file_magic_cmd='/bin/file'
16339 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16340 lt_cv_file_magic_test_file=/lib/libc.so
16342 siemens)
16343 lt_cv_deplibs_check_method=pass_all
16346 lt_cv_deplibs_check_method=pass_all
16348 esac
16351 tpf*)
16352 lt_cv_deplibs_check_method=pass_all
16354 vxworks*)
16355 # Assume VxWorks cross toolchains are built on Linux, possibly
16356 # as canadian for Windows hosts.
16357 lt_cv_deplibs_check_method=pass_all
16359 esac
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16363 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16364 file_magic_cmd=$lt_cv_file_magic_cmd
16365 deplibs_check_method=$lt_cv_deplibs_check_method
16366 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16379 plugin_option=
16380 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16381 for plugin in $plugin_names; do
16382 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16383 if test x$plugin_so = x$plugin; then
16384 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16386 if test x$plugin_so != x$plugin; then
16387 plugin_option="--plugin $plugin_so"
16388 break
16390 done
16392 if test -n "$ac_tool_prefix"; then
16393 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16394 set dummy ${ac_tool_prefix}ar; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396 $as_echo_n "checking for $ac_word... " >&6; }
16397 if ${ac_cv_prog_AR+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 if test -n "$AR"; then
16401 ac_cv_prog_AR="$AR" # Let the user override the test.
16402 else
16403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16404 for as_dir in $PATH
16406 IFS=$as_save_IFS
16407 test -z "$as_dir" && as_dir=.
16408 for ac_exec_ext in '' $ac_executable_extensions; do
16409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16410 ac_cv_prog_AR="${ac_tool_prefix}ar"
16411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16412 break 2
16414 done
16415 done
16416 IFS=$as_save_IFS
16420 AR=$ac_cv_prog_AR
16421 if test -n "$AR"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16423 $as_echo "$AR" >&6; }
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16431 if test -z "$ac_cv_prog_AR"; then
16432 ac_ct_AR=$AR
16433 # Extract the first word of "ar", so it can be a program name with args.
16434 set dummy ar; ac_word=$2
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16436 $as_echo_n "checking for $ac_word... " >&6; }
16437 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16438 $as_echo_n "(cached) " >&6
16439 else
16440 if test -n "$ac_ct_AR"; then
16441 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16442 else
16443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16444 for as_dir in $PATH
16446 IFS=$as_save_IFS
16447 test -z "$as_dir" && as_dir=.
16448 for ac_exec_ext in '' $ac_executable_extensions; do
16449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16450 ac_cv_prog_ac_ct_AR="ar"
16451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16452 break 2
16454 done
16455 done
16456 IFS=$as_save_IFS
16460 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16461 if test -n "$ac_ct_AR"; then
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16463 $as_echo "$ac_ct_AR" >&6; }
16464 else
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16469 if test "x$ac_ct_AR" = x; then
16470 AR="false"
16471 else
16472 case $cross_compiling:$ac_tool_warned in
16473 yes:)
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16476 ac_tool_warned=yes ;;
16477 esac
16478 AR=$ac_ct_AR
16480 else
16481 AR="$ac_cv_prog_AR"
16484 test -z "$AR" && AR=ar
16485 if test -n "$plugin_option"; then
16486 if $AR --help 2>&1 | grep -q "\--plugin"; then
16487 touch conftest.c
16488 $AR $plugin_option rc conftest.a conftest.c
16489 if test "$?" != 0; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16491 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16492 else
16493 AR="$AR $plugin_option"
16495 rm -f conftest.*
16498 test -z "$AR_FLAGS" && AR_FLAGS=cru
16510 if test -n "$ac_tool_prefix"; then
16511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16512 set dummy ${ac_tool_prefix}strip; ac_word=$2
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16514 $as_echo_n "checking for $ac_word... " >&6; }
16515 if ${ac_cv_prog_STRIP+:} false; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 if test -n "$STRIP"; then
16519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16520 else
16521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16522 for as_dir in $PATH
16524 IFS=$as_save_IFS
16525 test -z "$as_dir" && as_dir=.
16526 for ac_exec_ext in '' $ac_executable_extensions; do
16527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16530 break 2
16532 done
16533 done
16534 IFS=$as_save_IFS
16538 STRIP=$ac_cv_prog_STRIP
16539 if test -n "$STRIP"; then
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16541 $as_echo "$STRIP" >&6; }
16542 else
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 $as_echo "no" >&6; }
16549 if test -z "$ac_cv_prog_STRIP"; then
16550 ac_ct_STRIP=$STRIP
16551 # Extract the first word of "strip", so it can be a program name with args.
16552 set dummy strip; ac_word=$2
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16554 $as_echo_n "checking for $ac_word... " >&6; }
16555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 if test -n "$ac_ct_STRIP"; then
16559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16560 else
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16564 IFS=$as_save_IFS
16565 test -z "$as_dir" && as_dir=.
16566 for ac_exec_ext in '' $ac_executable_extensions; do
16567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16568 ac_cv_prog_ac_ct_STRIP="strip"
16569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16570 break 2
16572 done
16573 done
16574 IFS=$as_save_IFS
16578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16579 if test -n "$ac_ct_STRIP"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16581 $as_echo "$ac_ct_STRIP" >&6; }
16582 else
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 $as_echo "no" >&6; }
16587 if test "x$ac_ct_STRIP" = x; then
16588 STRIP=":"
16589 else
16590 case $cross_compiling:$ac_tool_warned in
16591 yes:)
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16594 ac_tool_warned=yes ;;
16595 esac
16596 STRIP=$ac_ct_STRIP
16598 else
16599 STRIP="$ac_cv_prog_STRIP"
16602 test -z "$STRIP" && STRIP=:
16609 if test -n "$ac_tool_prefix"; then
16610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16613 $as_echo_n "checking for $ac_word... " >&6; }
16614 if ${ac_cv_prog_RANLIB+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 if test -n "$RANLIB"; then
16618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16619 else
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $PATH
16623 IFS=$as_save_IFS
16624 test -z "$as_dir" && as_dir=.
16625 for ac_exec_ext in '' $ac_executable_extensions; do
16626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16629 break 2
16631 done
16632 done
16633 IFS=$as_save_IFS
16637 RANLIB=$ac_cv_prog_RANLIB
16638 if test -n "$RANLIB"; then
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16640 $as_echo "$RANLIB" >&6; }
16641 else
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16648 if test -z "$ac_cv_prog_RANLIB"; then
16649 ac_ct_RANLIB=$RANLIB
16650 # Extract the first word of "ranlib", so it can be a program name with args.
16651 set dummy ranlib; ac_word=$2
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16653 $as_echo_n "checking for $ac_word... " >&6; }
16654 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16655 $as_echo_n "(cached) " >&6
16656 else
16657 if test -n "$ac_ct_RANLIB"; then
16658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16659 else
16660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16661 for as_dir in $PATH
16663 IFS=$as_save_IFS
16664 test -z "$as_dir" && as_dir=.
16665 for ac_exec_ext in '' $ac_executable_extensions; do
16666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16667 ac_cv_prog_ac_ct_RANLIB="ranlib"
16668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16669 break 2
16671 done
16672 done
16673 IFS=$as_save_IFS
16677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16678 if test -n "$ac_ct_RANLIB"; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16680 $as_echo "$ac_ct_RANLIB" >&6; }
16681 else
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16686 if test "x$ac_ct_RANLIB" = x; then
16687 RANLIB=":"
16688 else
16689 case $cross_compiling:$ac_tool_warned in
16690 yes:)
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16693 ac_tool_warned=yes ;;
16694 esac
16695 RANLIB=$ac_ct_RANLIB
16697 else
16698 RANLIB="$ac_cv_prog_RANLIB"
16701 test -z "$RANLIB" && RANLIB=:
16702 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16703 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16704 RANLIB="$RANLIB $plugin_option"
16713 # Determine commands to create old-style static archives.
16714 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16715 old_postinstall_cmds='chmod 644 $oldlib'
16716 old_postuninstall_cmds=
16718 if test -n "$RANLIB"; then
16719 case $host_os in
16720 openbsd*)
16721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16724 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16726 esac
16727 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16730 case $host_os in
16731 darwin*)
16732 lock_old_archive_extraction=yes ;;
16734 lock_old_archive_extraction=no ;;
16735 esac
16775 # If no C compiler was specified, use CC.
16776 LTCC=${LTCC-"$CC"}
16778 # If no C compiler flags were specified, use CFLAGS.
16779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16781 # Allow CC to be a program name with arguments.
16782 compiler=$CC
16785 # Check for command to grab the raw symbol name followed by C symbol from nm.
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16787 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16788 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16792 # These are sane defaults that work on at least a few old systems.
16793 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16795 # Character class describing NM global symbol codes.
16796 symcode='[BCDEGRST]'
16798 # Regexp to match symbols that can be accessed directly from C.
16799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16801 # Define system-specific variables.
16802 case $host_os in
16803 aix*)
16804 symcode='[BCDT]'
16806 cygwin* | mingw* | pw32* | cegcc*)
16807 symcode='[ABCDGISTW]'
16809 hpux*)
16810 if test "$host_cpu" = ia64; then
16811 symcode='[ABCDEGRST]'
16814 irix* | nonstopux*)
16815 symcode='[BCDEGRST]'
16817 osf*)
16818 symcode='[BCDEGQRST]'
16820 solaris*)
16821 symcode='[BCDRT]'
16823 sco3.2v5*)
16824 symcode='[DT]'
16826 sysv4.2uw2*)
16827 symcode='[DT]'
16829 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16830 symcode='[ABDT]'
16832 sysv4)
16833 symcode='[DFNSTU]'
16835 esac
16837 # If we're using GNU nm, then use its standard symbol codes.
16838 case `$NM -V 2>&1` in
16839 *GNU* | *'with BFD'*)
16840 symcode='[ABCDGIRSTW]' ;;
16841 esac
16843 # Transform an extracted symbol line into a proper C declaration.
16844 # Some systems (esp. on ia64) link data and code symbols differently,
16845 # so use this general approach.
16846 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16848 # Transform an extracted symbol line into symbol name and symbol address
16849 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16850 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'"
16852 # Handle CRLF in mingw tool chain
16853 opt_cr=
16854 case $build_os in
16855 mingw*)
16856 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16858 esac
16860 # Try without a prefix underscore, then with it.
16861 for ac_symprfx in "" "_"; do
16863 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16864 symxfrm="\\1 $ac_symprfx\\2 \\2"
16866 # Write the raw and C identifiers.
16867 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16868 # Fake it for dumpbin and say T for any non-static function
16869 # and D for any global variable.
16870 # Also find C++ and __fastcall symbols from MSVC++,
16871 # which start with @ or ?.
16872 lt_cv_sys_global_symbol_pipe="$AWK '"\
16873 " {last_section=section; section=\$ 3};"\
16874 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16875 " \$ 0!~/External *\|/{next};"\
16876 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16877 " {if(hide[section]) next};"\
16878 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16879 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16880 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
16881 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16882 " ' prfx=^$ac_symprfx"
16883 else
16884 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16887 # Check to see that the pipe works correctly.
16888 pipe_works=no
16890 rm -f conftest*
16891 cat > conftest.$ac_ext <<_LT_EOF
16892 #ifdef __cplusplus
16893 extern "C" {
16894 #endif
16895 char nm_test_var;
16896 void nm_test_func(void);
16897 void nm_test_func(void){}
16898 #ifdef __cplusplus
16900 #endif
16901 int main(){nm_test_var='a';nm_test_func();return(0);}
16902 _LT_EOF
16904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16905 (eval $ac_compile) 2>&5
16906 ac_status=$?
16907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; }; then
16909 # Now try to grab the symbols.
16910 nlist=conftest.nm
16911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16912 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16913 ac_status=$?
16914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16915 test $ac_status = 0; } && test -s "$nlist"; then
16916 # Try sorting and uniquifying the output.
16917 if sort "$nlist" | uniq > "$nlist"T; then
16918 mv -f "$nlist"T "$nlist"
16919 else
16920 rm -f "$nlist"T
16923 # Make sure that we snagged all the symbols we need.
16924 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16925 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16926 cat <<_LT_EOF > conftest.$ac_ext
16927 #ifdef __cplusplus
16928 extern "C" {
16929 #endif
16931 _LT_EOF
16932 # Now generate the symbol file.
16933 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16935 cat <<_LT_EOF >> conftest.$ac_ext
16937 /* The mapping between symbol names and symbols. */
16938 const struct {
16939 const char *name;
16940 void *address;
16942 lt__PROGRAM__LTX_preloaded_symbols[] =
16944 { "@PROGRAM@", (void *) 0 },
16945 _LT_EOF
16946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16947 cat <<\_LT_EOF >> conftest.$ac_ext
16948 {0, (void *) 0}
16951 /* This works around a problem in FreeBSD linker */
16952 #ifdef FREEBSD_WORKAROUND
16953 static const void *lt_preloaded_setup() {
16954 return lt__PROGRAM__LTX_preloaded_symbols;
16956 #endif
16958 #ifdef __cplusplus
16960 #endif
16961 _LT_EOF
16962 # Now try linking the two files.
16963 mv conftest.$ac_objext conftstm.$ac_objext
16964 lt_save_LIBS="$LIBS"
16965 lt_save_CFLAGS="$CFLAGS"
16966 LIBS="conftstm.$ac_objext"
16967 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16969 (eval $ac_link) 2>&5
16970 ac_status=$?
16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16972 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16973 pipe_works=yes
16975 LIBS="$lt_save_LIBS"
16976 CFLAGS="$lt_save_CFLAGS"
16977 else
16978 echo "cannot find nm_test_func in $nlist" >&5
16980 else
16981 echo "cannot find nm_test_var in $nlist" >&5
16983 else
16984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16986 else
16987 echo "$progname: failed program was:" >&5
16988 cat conftest.$ac_ext >&5
16990 rm -rf conftest* conftst*
16992 # Do not use the global_symbol_pipe unless it works.
16993 if test "$pipe_works" = yes; then
16994 break
16995 else
16996 lt_cv_sys_global_symbol_pipe=
16998 done
17002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17003 lt_cv_sys_global_symbol_to_cdecl=
17005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17007 $as_echo "failed" >&6; }
17008 else
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17010 $as_echo "ok" >&6; }
17034 # Check whether --enable-libtool-lock was given.
17035 if test "${enable_libtool_lock+set}" = set; then :
17036 enableval=$enable_libtool_lock;
17039 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17041 # Some flags need to be propagated to the compiler or linker for good
17042 # libtool support.
17043 case $host in
17044 ia64-*-hpux*)
17045 # Find out which ABI we are using.
17046 echo 'int i;' > conftest.$ac_ext
17047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17048 (eval $ac_compile) 2>&5
17049 ac_status=$?
17050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17051 test $ac_status = 0; }; then
17052 case `/usr/bin/file conftest.$ac_objext` in
17053 *ELF-32*)
17054 HPUX_IA64_MODE="32"
17056 *ELF-64*)
17057 HPUX_IA64_MODE="64"
17059 esac
17061 rm -rf conftest*
17063 *-*-irix6*)
17064 # Find out which ABI we are using.
17065 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17067 (eval $ac_compile) 2>&5
17068 ac_status=$?
17069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17070 test $ac_status = 0; }; then
17071 if test "$lt_cv_prog_gnu_ld" = yes; then
17072 case `/usr/bin/file conftest.$ac_objext` in
17073 *32-bit*)
17074 LD="${LD-ld} -melf32bsmip"
17076 *N32*)
17077 LD="${LD-ld} -melf32bmipn32"
17079 *64-bit*)
17080 LD="${LD-ld} -melf64bmip"
17082 esac
17083 else
17084 case `/usr/bin/file conftest.$ac_objext` in
17085 *32-bit*)
17086 LD="${LD-ld} -32"
17088 *N32*)
17089 LD="${LD-ld} -n32"
17091 *64-bit*)
17092 LD="${LD-ld} -64"
17094 esac
17097 rm -rf conftest*
17100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17101 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17102 # Find out which ABI we are using.
17103 echo 'int i;' > conftest.$ac_ext
17104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17105 (eval $ac_compile) 2>&5
17106 ac_status=$?
17107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17108 test $ac_status = 0; }; then
17109 case `/usr/bin/file conftest.o` in
17110 *32-bit*)
17111 case $host in
17112 x86_64-*kfreebsd*-gnu)
17113 LD="${LD-ld} -m elf_i386_fbsd"
17115 x86_64-*linux*)
17116 case `/usr/bin/file conftest.o` in
17117 *x86-64*)
17118 LD="${LD-ld} -m elf32_x86_64"
17121 LD="${LD-ld} -m elf_i386"
17123 esac
17125 powerpc64le-*linux*)
17126 LD="${LD-ld} -m elf32lppclinux"
17128 powerpc64-*linux*)
17129 LD="${LD-ld} -m elf32ppclinux"
17131 s390x-*linux*)
17132 LD="${LD-ld} -m elf_s390"
17134 sparc64-*linux*)
17135 LD="${LD-ld} -m elf32_sparc"
17137 esac
17139 *64-bit*)
17140 case $host in
17141 x86_64-*kfreebsd*-gnu)
17142 LD="${LD-ld} -m elf_x86_64_fbsd"
17144 x86_64-*linux*)
17145 LD="${LD-ld} -m elf_x86_64"
17147 powerpcle-*linux*)
17148 LD="${LD-ld} -m elf64lppc"
17150 powerpc-*linux*)
17151 LD="${LD-ld} -m elf64ppc"
17153 s390*-*linux*|s390*-*tpf*)
17154 LD="${LD-ld} -m elf64_s390"
17156 sparc*-*linux*)
17157 LD="${LD-ld} -m elf64_sparc"
17159 esac
17161 esac
17163 rm -rf conftest*
17166 *-*-sco3.2v5*)
17167 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17168 SAVE_CFLAGS="$CFLAGS"
17169 CFLAGS="$CFLAGS -belf"
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17171 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17172 if ${lt_cv_cc_needs_belf+:} false; then :
17173 $as_echo_n "(cached) " >&6
17174 else
17175 ac_ext=c
17176 ac_cpp='$CPP $CPPFLAGS'
17177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17185 main ()
17189 return 0;
17191 _ACEOF
17192 if ac_fn_c_try_link "$LINENO"; then :
17193 lt_cv_cc_needs_belf=yes
17194 else
17195 lt_cv_cc_needs_belf=no
17197 rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17199 ac_ext=c
17200 ac_cpp='$CPP $CPPFLAGS'
17201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17207 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17210 CFLAGS="$SAVE_CFLAGS"
17213 sparc*-*solaris*)
17214 # Find out which ABI we are using.
17215 echo 'int i;' > conftest.$ac_ext
17216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17217 (eval $ac_compile) 2>&5
17218 ac_status=$?
17219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17220 test $ac_status = 0; }; then
17221 case `/usr/bin/file conftest.o` in
17222 *64-bit*)
17223 case $lt_cv_prog_gnu_ld in
17224 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17226 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17227 LD="${LD-ld} -64"
17230 esac
17232 esac
17234 rm -rf conftest*
17236 esac
17238 need_locks="$enable_libtool_lock"
17241 case $host_os in
17242 rhapsody* | darwin*)
17243 if test -n "$ac_tool_prefix"; then
17244 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17245 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247 $as_echo_n "checking for $ac_word... " >&6; }
17248 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 if test -n "$DSYMUTIL"; then
17252 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17253 else
17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in $PATH
17257 IFS=$as_save_IFS
17258 test -z "$as_dir" && as_dir=.
17259 for ac_exec_ext in '' $ac_executable_extensions; do
17260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17261 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17263 break 2
17265 done
17266 done
17267 IFS=$as_save_IFS
17271 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17272 if test -n "$DSYMUTIL"; then
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17274 $as_echo "$DSYMUTIL" >&6; }
17275 else
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17277 $as_echo "no" >&6; }
17282 if test -z "$ac_cv_prog_DSYMUTIL"; then
17283 ac_ct_DSYMUTIL=$DSYMUTIL
17284 # Extract the first word of "dsymutil", so it can be a program name with args.
17285 set dummy dsymutil; ac_word=$2
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17287 $as_echo_n "checking for $ac_word... " >&6; }
17288 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17289 $as_echo_n "(cached) " >&6
17290 else
17291 if test -n "$ac_ct_DSYMUTIL"; then
17292 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17293 else
17294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17295 for as_dir in $PATH
17297 IFS=$as_save_IFS
17298 test -z "$as_dir" && as_dir=.
17299 for ac_exec_ext in '' $ac_executable_extensions; do
17300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17301 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17303 break 2
17305 done
17306 done
17307 IFS=$as_save_IFS
17311 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17312 if test -n "$ac_ct_DSYMUTIL"; then
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17314 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17315 else
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17317 $as_echo "no" >&6; }
17320 if test "x$ac_ct_DSYMUTIL" = x; then
17321 DSYMUTIL=":"
17322 else
17323 case $cross_compiling:$ac_tool_warned in
17324 yes:)
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17327 ac_tool_warned=yes ;;
17328 esac
17329 DSYMUTIL=$ac_ct_DSYMUTIL
17331 else
17332 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17335 if test -n "$ac_tool_prefix"; then
17336 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17337 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17339 $as_echo_n "checking for $ac_word... " >&6; }
17340 if ${ac_cv_prog_NMEDIT+:} false; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343 if test -n "$NMEDIT"; then
17344 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17345 else
17346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17347 for as_dir in $PATH
17349 IFS=$as_save_IFS
17350 test -z "$as_dir" && as_dir=.
17351 for ac_exec_ext in '' $ac_executable_extensions; do
17352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17353 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17355 break 2
17357 done
17358 done
17359 IFS=$as_save_IFS
17363 NMEDIT=$ac_cv_prog_NMEDIT
17364 if test -n "$NMEDIT"; then
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17366 $as_echo "$NMEDIT" >&6; }
17367 else
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17374 if test -z "$ac_cv_prog_NMEDIT"; then
17375 ac_ct_NMEDIT=$NMEDIT
17376 # Extract the first word of "nmedit", so it can be a program name with args.
17377 set dummy nmedit; ac_word=$2
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17379 $as_echo_n "checking for $ac_word... " >&6; }
17380 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17381 $as_echo_n "(cached) " >&6
17382 else
17383 if test -n "$ac_ct_NMEDIT"; then
17384 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17385 else
17386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17387 for as_dir in $PATH
17389 IFS=$as_save_IFS
17390 test -z "$as_dir" && as_dir=.
17391 for ac_exec_ext in '' $ac_executable_extensions; do
17392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17393 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17395 break 2
17397 done
17398 done
17399 IFS=$as_save_IFS
17403 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17404 if test -n "$ac_ct_NMEDIT"; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17406 $as_echo "$ac_ct_NMEDIT" >&6; }
17407 else
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409 $as_echo "no" >&6; }
17412 if test "x$ac_ct_NMEDIT" = x; then
17413 NMEDIT=":"
17414 else
17415 case $cross_compiling:$ac_tool_warned in
17416 yes:)
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17419 ac_tool_warned=yes ;;
17420 esac
17421 NMEDIT=$ac_ct_NMEDIT
17423 else
17424 NMEDIT="$ac_cv_prog_NMEDIT"
17427 if test -n "$ac_tool_prefix"; then
17428 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17429 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 $as_echo_n "checking for $ac_word... " >&6; }
17432 if ${ac_cv_prog_LIPO+:} false; then :
17433 $as_echo_n "(cached) " >&6
17434 else
17435 if test -n "$LIPO"; then
17436 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17437 else
17438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17441 IFS=$as_save_IFS
17442 test -z "$as_dir" && as_dir=.
17443 for ac_exec_ext in '' $ac_executable_extensions; do
17444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17445 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17447 break 2
17449 done
17450 done
17451 IFS=$as_save_IFS
17455 LIPO=$ac_cv_prog_LIPO
17456 if test -n "$LIPO"; then
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17458 $as_echo "$LIPO" >&6; }
17459 else
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 $as_echo "no" >&6; }
17466 if test -z "$ac_cv_prog_LIPO"; then
17467 ac_ct_LIPO=$LIPO
17468 # Extract the first word of "lipo", so it can be a program name with args.
17469 set dummy lipo; ac_word=$2
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471 $as_echo_n "checking for $ac_word... " >&6; }
17472 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17473 $as_echo_n "(cached) " >&6
17474 else
17475 if test -n "$ac_ct_LIPO"; then
17476 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17477 else
17478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17479 for as_dir in $PATH
17481 IFS=$as_save_IFS
17482 test -z "$as_dir" && as_dir=.
17483 for ac_exec_ext in '' $ac_executable_extensions; do
17484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17485 ac_cv_prog_ac_ct_LIPO="lipo"
17486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17487 break 2
17489 done
17490 done
17491 IFS=$as_save_IFS
17495 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17496 if test -n "$ac_ct_LIPO"; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17498 $as_echo "$ac_ct_LIPO" >&6; }
17499 else
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17501 $as_echo "no" >&6; }
17504 if test "x$ac_ct_LIPO" = x; then
17505 LIPO=":"
17506 else
17507 case $cross_compiling:$ac_tool_warned in
17508 yes:)
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17511 ac_tool_warned=yes ;;
17512 esac
17513 LIPO=$ac_ct_LIPO
17515 else
17516 LIPO="$ac_cv_prog_LIPO"
17519 if test -n "$ac_tool_prefix"; then
17520 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17521 set dummy ${ac_tool_prefix}otool; ac_word=$2
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17523 $as_echo_n "checking for $ac_word... " >&6; }
17524 if ${ac_cv_prog_OTOOL+:} false; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 if test -n "$OTOOL"; then
17528 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17529 else
17530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17531 for as_dir in $PATH
17533 IFS=$as_save_IFS
17534 test -z "$as_dir" && as_dir=.
17535 for ac_exec_ext in '' $ac_executable_extensions; do
17536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17537 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17539 break 2
17541 done
17542 done
17543 IFS=$as_save_IFS
17547 OTOOL=$ac_cv_prog_OTOOL
17548 if test -n "$OTOOL"; then
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17550 $as_echo "$OTOOL" >&6; }
17551 else
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17558 if test -z "$ac_cv_prog_OTOOL"; then
17559 ac_ct_OTOOL=$OTOOL
17560 # Extract the first word of "otool", so it can be a program name with args.
17561 set dummy otool; ac_word=$2
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17563 $as_echo_n "checking for $ac_word... " >&6; }
17564 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17565 $as_echo_n "(cached) " >&6
17566 else
17567 if test -n "$ac_ct_OTOOL"; then
17568 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17569 else
17570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17571 for as_dir in $PATH
17573 IFS=$as_save_IFS
17574 test -z "$as_dir" && as_dir=.
17575 for ac_exec_ext in '' $ac_executable_extensions; do
17576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17577 ac_cv_prog_ac_ct_OTOOL="otool"
17578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17579 break 2
17581 done
17582 done
17583 IFS=$as_save_IFS
17587 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17588 if test -n "$ac_ct_OTOOL"; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17590 $as_echo "$ac_ct_OTOOL" >&6; }
17591 else
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17593 $as_echo "no" >&6; }
17596 if test "x$ac_ct_OTOOL" = x; then
17597 OTOOL=":"
17598 else
17599 case $cross_compiling:$ac_tool_warned in
17600 yes:)
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17603 ac_tool_warned=yes ;;
17604 esac
17605 OTOOL=$ac_ct_OTOOL
17607 else
17608 OTOOL="$ac_cv_prog_OTOOL"
17611 if test -n "$ac_tool_prefix"; then
17612 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17613 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17615 $as_echo_n "checking for $ac_word... " >&6; }
17616 if ${ac_cv_prog_OTOOL64+:} false; then :
17617 $as_echo_n "(cached) " >&6
17618 else
17619 if test -n "$OTOOL64"; then
17620 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17621 else
17622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623 for as_dir in $PATH
17625 IFS=$as_save_IFS
17626 test -z "$as_dir" && as_dir=.
17627 for ac_exec_ext in '' $ac_executable_extensions; do
17628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17631 break 2
17633 done
17634 done
17635 IFS=$as_save_IFS
17639 OTOOL64=$ac_cv_prog_OTOOL64
17640 if test -n "$OTOOL64"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17642 $as_echo "$OTOOL64" >&6; }
17643 else
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645 $as_echo "no" >&6; }
17650 if test -z "$ac_cv_prog_OTOOL64"; then
17651 ac_ct_OTOOL64=$OTOOL64
17652 # Extract the first word of "otool64", so it can be a program name with args.
17653 set dummy otool64; ac_word=$2
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17655 $as_echo_n "checking for $ac_word... " >&6; }
17656 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 if test -n "$ac_ct_OTOOL64"; then
17660 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17661 else
17662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17663 for as_dir in $PATH
17665 IFS=$as_save_IFS
17666 test -z "$as_dir" && as_dir=.
17667 for ac_exec_ext in '' $ac_executable_extensions; do
17668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17669 ac_cv_prog_ac_ct_OTOOL64="otool64"
17670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17671 break 2
17673 done
17674 done
17675 IFS=$as_save_IFS
17679 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17680 if test -n "$ac_ct_OTOOL64"; then
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17682 $as_echo "$ac_ct_OTOOL64" >&6; }
17683 else
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17685 $as_echo "no" >&6; }
17688 if test "x$ac_ct_OTOOL64" = x; then
17689 OTOOL64=":"
17690 else
17691 case $cross_compiling:$ac_tool_warned in
17692 yes:)
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17695 ac_tool_warned=yes ;;
17696 esac
17697 OTOOL64=$ac_ct_OTOOL64
17699 else
17700 OTOOL64="$ac_cv_prog_OTOOL64"
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17730 $as_echo_n "checking for -single_module linker flag... " >&6; }
17731 if ${lt_cv_apple_cc_single_mod+:} false; then :
17732 $as_echo_n "(cached) " >&6
17733 else
17734 lt_cv_apple_cc_single_mod=no
17735 if test -z "${LT_MULTI_MODULE}"; then
17736 # By default we will add the -single_module flag. You can override
17737 # by either setting the environment variable LT_MULTI_MODULE
17738 # non-empty at configure time, or by adding -multi_module to the
17739 # link flags.
17740 rm -rf libconftest.dylib*
17741 echo "int foo(void){return 1;}" > conftest.c
17742 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17743 -dynamiclib -Wl,-single_module conftest.c" >&5
17744 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17745 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17746 _lt_result=$?
17747 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17748 lt_cv_apple_cc_single_mod=yes
17749 else
17750 cat conftest.err >&5
17752 rm -rf libconftest.dylib*
17753 rm -f conftest.*
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17757 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17759 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17760 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17761 $as_echo_n "(cached) " >&6
17762 else
17763 lt_cv_ld_exported_symbols_list=no
17764 save_LDFLAGS=$LDFLAGS
17765 echo "_main" > conftest.sym
17766 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17771 main ()
17775 return 0;
17777 _ACEOF
17778 if ac_fn_c_try_link "$LINENO"; then :
17779 lt_cv_ld_exported_symbols_list=yes
17780 else
17781 lt_cv_ld_exported_symbols_list=no
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LDFLAGS="$save_LDFLAGS"
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17789 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17791 $as_echo_n "checking for -force_load linker flag... " >&6; }
17792 if ${lt_cv_ld_force_load+:} false; then :
17793 $as_echo_n "(cached) " >&6
17794 else
17795 lt_cv_ld_force_load=no
17796 cat > conftest.c << _LT_EOF
17797 int forced_loaded() { return 2;}
17798 _LT_EOF
17799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17801 echo "$AR cru libconftest.a conftest.o" >&5
17802 $AR cru libconftest.a conftest.o 2>&5
17803 cat > conftest.c << _LT_EOF
17804 int main() { return 0;}
17805 _LT_EOF
17806 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17807 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17808 _lt_result=$?
17809 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17810 lt_cv_ld_force_load=yes
17811 else
17812 cat conftest.err >&5
17814 rm -f conftest.err libconftest.a conftest conftest.c
17815 rm -rf conftest.dSYM
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17819 $as_echo "$lt_cv_ld_force_load" >&6; }
17820 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17821 # build without first building modern cctools / linker.
17822 case $host_cpu-$host_os in
17823 *-rhapsody* | *-darwin1.[012])
17824 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17825 *-darwin1.*)
17826 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17827 *-darwin*)
17828 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17829 # deployment target is forced to an earlier version.
17830 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17831 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17833 10.[012][,.]*)
17834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17838 esac
17840 esac
17841 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17842 _lt_dar_single_mod='$single_module'
17844 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17845 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17846 else
17847 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17849 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17850 _lt_dsymutil='~$DSYMUTIL $lib || :'
17851 else
17852 _lt_dsymutil=
17855 esac
17858 for ac_header in dlfcn.h
17859 do :
17860 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
17861 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17862 cat >>confdefs.h <<_ACEOF
17863 #define HAVE_DLFCN_H 1
17864 _ACEOF
17867 done
17873 # Set options
17877 enable_dlopen=no
17880 enable_win32_dll=no
17883 # Check whether --enable-shared was given.
17884 if test "${enable_shared+set}" = set; then :
17885 enableval=$enable_shared; p=${PACKAGE-default}
17886 case $enableval in
17887 yes) enable_shared=yes ;;
17888 no) enable_shared=no ;;
17890 enable_shared=no
17891 # Look at the argument we got. We use all the common list separators.
17892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17893 for pkg in $enableval; do
17894 IFS="$lt_save_ifs"
17895 if test "X$pkg" = "X$p"; then
17896 enable_shared=yes
17898 done
17899 IFS="$lt_save_ifs"
17901 esac
17902 else
17903 enable_shared=yes
17914 # Check whether --enable-static was given.
17915 if test "${enable_static+set}" = set; then :
17916 enableval=$enable_static; p=${PACKAGE-default}
17917 case $enableval in
17918 yes) enable_static=yes ;;
17919 no) enable_static=no ;;
17921 enable_static=no
17922 # Look at the argument we got. We use all the common list separators.
17923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17924 for pkg in $enableval; do
17925 IFS="$lt_save_ifs"
17926 if test "X$pkg" = "X$p"; then
17927 enable_static=yes
17929 done
17930 IFS="$lt_save_ifs"
17932 esac
17933 else
17934 enable_static=yes
17946 # Check whether --with-pic was given.
17947 if test "${with_pic+set}" = set; then :
17948 withval=$with_pic; pic_mode="$withval"
17949 else
17950 pic_mode=default
17954 test -z "$pic_mode" && pic_mode=default
17962 # Check whether --enable-fast-install was given.
17963 if test "${enable_fast_install+set}" = set; then :
17964 enableval=$enable_fast_install; p=${PACKAGE-default}
17965 case $enableval in
17966 yes) enable_fast_install=yes ;;
17967 no) enable_fast_install=no ;;
17969 enable_fast_install=no
17970 # Look at the argument we got. We use all the common list separators.
17971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17972 for pkg in $enableval; do
17973 IFS="$lt_save_ifs"
17974 if test "X$pkg" = "X$p"; then
17975 enable_fast_install=yes
17977 done
17978 IFS="$lt_save_ifs"
17980 esac
17981 else
17982 enable_fast_install=yes
17995 # This can be used to rebuild libtool when needed
17996 LIBTOOL_DEPS="$ltmain"
17998 # Always use our own libtool.
17999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18026 test -z "$LN_S" && LN_S="ln -s"
18041 if test -n "${ZSH_VERSION+set}" ; then
18042 setopt NO_GLOB_SUBST
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18046 $as_echo_n "checking for objdir... " >&6; }
18047 if ${lt_cv_objdir+:} false; then :
18048 $as_echo_n "(cached) " >&6
18049 else
18050 rm -f .libs 2>/dev/null
18051 mkdir .libs 2>/dev/null
18052 if test -d .libs; then
18053 lt_cv_objdir=.libs
18054 else
18055 # MS-DOS does not allow filenames that begin with a dot.
18056 lt_cv_objdir=_libs
18058 rmdir .libs 2>/dev/null
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18061 $as_echo "$lt_cv_objdir" >&6; }
18062 objdir=$lt_cv_objdir
18068 cat >>confdefs.h <<_ACEOF
18069 #define LT_OBJDIR "$lt_cv_objdir/"
18070 _ACEOF
18075 case $host_os in
18076 aix3*)
18077 # AIX sometimes has problems with the GCC collect2 program. For some
18078 # reason, if we set the COLLECT_NAMES environment variable, the problems
18079 # vanish in a puff of smoke.
18080 if test "X${COLLECT_NAMES+set}" != Xset; then
18081 COLLECT_NAMES=
18082 export COLLECT_NAMES
18085 esac
18087 # Global variables:
18088 ofile=libtool
18089 can_build_shared=yes
18091 # All known linkers require a `.a' archive for static linking (except MSVC,
18092 # which needs '.lib').
18093 libext=a
18095 with_gnu_ld="$lt_cv_prog_gnu_ld"
18097 old_CC="$CC"
18098 old_CFLAGS="$CFLAGS"
18100 # Set sane defaults for various variables
18101 test -z "$CC" && CC=cc
18102 test -z "$LTCC" && LTCC=$CC
18103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18104 test -z "$LD" && LD=ld
18105 test -z "$ac_objext" && ac_objext=o
18107 for cc_temp in $compiler""; do
18108 case $cc_temp in
18109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18111 \-*) ;;
18112 *) break;;
18113 esac
18114 done
18115 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18118 # Only perform the check for file, if the check method requires it
18119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18120 case $deplibs_check_method in
18121 file_magic*)
18122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18124 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18125 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 case $MAGIC_CMD in
18129 [\\/*] | ?:[\\/]*)
18130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18133 lt_save_MAGIC_CMD="$MAGIC_CMD"
18134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18136 for ac_dir in $ac_dummy; do
18137 IFS="$lt_save_ifs"
18138 test -z "$ac_dir" && ac_dir=.
18139 if test -f $ac_dir/${ac_tool_prefix}file; then
18140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18141 if test -n "$file_magic_test_file"; then
18142 case $deplibs_check_method in
18143 "file_magic "*)
18144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18147 $EGREP "$file_magic_regex" > /dev/null; then
18149 else
18150 cat <<_LT_EOF 1>&2
18152 *** Warning: the command libtool uses to detect shared libraries,
18153 *** $file_magic_cmd, produces output that libtool cannot recognize.
18154 *** The result is that libtool may fail to recognize shared libraries
18155 *** as such. This will affect the creation of libtool libraries that
18156 *** depend on shared libraries, but programs linked with such libtool
18157 *** libraries will work regardless of this problem. Nevertheless, you
18158 *** may want to report the problem to your system manager and/or to
18159 *** bug-libtool@gnu.org
18161 _LT_EOF
18162 fi ;;
18163 esac
18165 break
18167 done
18168 IFS="$lt_save_ifs"
18169 MAGIC_CMD="$lt_save_MAGIC_CMD"
18171 esac
18174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18175 if test -n "$MAGIC_CMD"; then
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18177 $as_echo "$MAGIC_CMD" >&6; }
18178 else
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180 $as_echo "no" >&6; }
18187 if test -z "$lt_cv_path_MAGIC_CMD"; then
18188 if test -n "$ac_tool_prefix"; then
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18190 $as_echo_n "checking for file... " >&6; }
18191 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18192 $as_echo_n "(cached) " >&6
18193 else
18194 case $MAGIC_CMD in
18195 [\\/*] | ?:[\\/]*)
18196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18199 lt_save_MAGIC_CMD="$MAGIC_CMD"
18200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18202 for ac_dir in $ac_dummy; do
18203 IFS="$lt_save_ifs"
18204 test -z "$ac_dir" && ac_dir=.
18205 if test -f $ac_dir/file; then
18206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18207 if test -n "$file_magic_test_file"; then
18208 case $deplibs_check_method in
18209 "file_magic "*)
18210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18213 $EGREP "$file_magic_regex" > /dev/null; then
18215 else
18216 cat <<_LT_EOF 1>&2
18218 *** Warning: the command libtool uses to detect shared libraries,
18219 *** $file_magic_cmd, produces output that libtool cannot recognize.
18220 *** The result is that libtool may fail to recognize shared libraries
18221 *** as such. This will affect the creation of libtool libraries that
18222 *** depend on shared libraries, but programs linked with such libtool
18223 *** libraries will work regardless of this problem. Nevertheless, you
18224 *** may want to report the problem to your system manager and/or to
18225 *** bug-libtool@gnu.org
18227 _LT_EOF
18228 fi ;;
18229 esac
18231 break
18233 done
18234 IFS="$lt_save_ifs"
18235 MAGIC_CMD="$lt_save_MAGIC_CMD"
18237 esac
18240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18241 if test -n "$MAGIC_CMD"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18243 $as_echo "$MAGIC_CMD" >&6; }
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18250 else
18251 MAGIC_CMD=:
18257 esac
18259 # Use C for the default configuration in the libtool script
18261 lt_save_CC="$CC"
18262 ac_ext=c
18263 ac_cpp='$CPP $CPPFLAGS'
18264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18269 # Source file extension for C test sources.
18270 ac_ext=c
18272 # Object file extension for compiled C test sources.
18273 objext=o
18274 objext=$objext
18276 # Code to be used in simple compile tests
18277 lt_simple_compile_test_code="int some_variable = 0;"
18279 # Code to be used in simple link tests
18280 lt_simple_link_test_code='int main(){return(0);}'
18288 # If no C compiler was specified, use CC.
18289 LTCC=${LTCC-"$CC"}
18291 # If no C compiler flags were specified, use CFLAGS.
18292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18294 # Allow CC to be a program name with arguments.
18295 compiler=$CC
18297 # Save the default compiler, since it gets overwritten when the other
18298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18299 compiler_DEFAULT=$CC
18301 # save warnings/boilerplate of simple test code
18302 ac_outfile=conftest.$ac_objext
18303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18305 _lt_compiler_boilerplate=`cat conftest.err`
18306 $RM conftest*
18308 ac_outfile=conftest.$ac_objext
18309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18311 _lt_linker_boilerplate=`cat conftest.err`
18312 $RM -r conftest*
18315 ## CAVEAT EMPTOR:
18316 ## There is no encapsulation within the following macros, do not change
18317 ## the running order or otherwise move them around unless you know exactly
18318 ## what you are doing...
18319 if test -n "$compiler"; then
18321 lt_prog_compiler_no_builtin_flag=
18323 if test "$GCC" = yes; then
18324 case $cc_basename in
18325 nvcc*)
18326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18329 esac
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18332 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18333 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18334 $as_echo_n "(cached) " >&6
18335 else
18336 lt_cv_prog_compiler_rtti_exceptions=no
18337 ac_outfile=conftest.$ac_objext
18338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18339 lt_compiler_flag="-fno-rtti -fno-exceptions"
18340 # Insert the option either (1) after the last *FLAGS variable, or
18341 # (2) before a word containing "conftest.", or (3) at the end.
18342 # Note that $ac_compile itself does not contain backslashes and begins
18343 # with a dollar sign (not a hyphen), so the echo should work correctly.
18344 # The option is referenced via a variable to avoid confusing sed.
18345 lt_compile=`echo "$ac_compile" | $SED \
18346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18348 -e 's:$: $lt_compiler_flag:'`
18349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18350 (eval "$lt_compile" 2>conftest.err)
18351 ac_status=$?
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 if (exit $ac_status) && test -s "$ac_outfile"; then
18355 # The compiler can only warn and ignore the option if not recognized
18356 # So say no if there are warnings other than the usual output.
18357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18360 lt_cv_prog_compiler_rtti_exceptions=yes
18363 $RM conftest*
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18371 else
18382 lt_prog_compiler_wl=
18383 lt_prog_compiler_pic=
18384 lt_prog_compiler_static=
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18389 if test "$GCC" = yes; then
18390 lt_prog_compiler_wl='-Wl,'
18391 lt_prog_compiler_static='-static'
18393 case $host_os in
18394 aix*)
18395 # All AIX code is PIC.
18396 if test "$host_cpu" = ia64; then
18397 # AIX 5 now supports IA64 processor
18398 lt_prog_compiler_static='-Bstatic'
18400 lt_prog_compiler_pic='-fPIC'
18403 amigaos*)
18404 case $host_cpu in
18405 powerpc)
18406 # see comment about AmigaOS4 .so support
18407 lt_prog_compiler_pic='-fPIC'
18409 m68k)
18410 # FIXME: we need at least 68020 code to build shared libraries, but
18411 # adding the `-m68020' flag to GCC prevents building anything better,
18412 # like `-m68040'.
18413 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18415 esac
18418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18419 # PIC is the default for these OSes.
18422 mingw* | cygwin* | pw32* | os2* | cegcc*)
18423 # This hack is so that the source file can tell whether it is being
18424 # built for inclusion in a dll (and should export symbols for example).
18425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18426 # (--disable-auto-import) libraries
18427 lt_prog_compiler_pic='-DDLL_EXPORT'
18430 darwin* | rhapsody*)
18431 # PIC is the default on this platform
18432 # Common symbols not allowed in MH_DYLIB files
18433 lt_prog_compiler_pic='-fno-common'
18436 haiku*)
18437 # PIC is the default for Haiku.
18438 # The "-static" flag exists, but is broken.
18439 lt_prog_compiler_static=
18442 hpux*)
18443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18445 # sets the default TLS model and affects inlining.
18446 case $host_cpu in
18447 hppa*64*)
18448 # +Z the default
18451 lt_prog_compiler_pic='-fPIC'
18453 esac
18456 interix[3-9]*)
18457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18458 # Instead, we relocate shared libraries at runtime.
18461 msdosdjgpp*)
18462 # Just because we use GCC doesn't mean we suddenly get shared libraries
18463 # on systems that don't support them.
18464 lt_prog_compiler_can_build_shared=no
18465 enable_shared=no
18468 *nto* | *qnx*)
18469 # QNX uses GNU C++, but need to define -shared option too, otherwise
18470 # it will coredump.
18471 lt_prog_compiler_pic='-fPIC -shared'
18474 sysv4*MP*)
18475 if test -d /usr/nec; then
18476 lt_prog_compiler_pic=-Kconform_pic
18481 lt_prog_compiler_pic='-fPIC'
18483 esac
18485 case $cc_basename in
18486 nvcc*) # Cuda Compiler Driver 2.2
18487 lt_prog_compiler_wl='-Xlinker '
18488 lt_prog_compiler_pic='-Xcompiler -fPIC'
18490 esac
18491 else
18492 # PORTME Check for flag to pass linker flags through the system compiler.
18493 case $host_os in
18494 aix*)
18495 lt_prog_compiler_wl='-Wl,'
18496 if test "$host_cpu" = ia64; then
18497 # AIX 5 now supports IA64 processor
18498 lt_prog_compiler_static='-Bstatic'
18499 else
18500 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18504 mingw* | cygwin* | pw32* | os2* | cegcc*)
18505 # This hack is so that the source file can tell whether it is being
18506 # built for inclusion in a dll (and should export symbols for example).
18507 lt_prog_compiler_pic='-DDLL_EXPORT'
18510 hpux9* | hpux10* | hpux11*)
18511 lt_prog_compiler_wl='-Wl,'
18512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18513 # not for PA HP-UX.
18514 case $host_cpu in
18515 hppa*64*|ia64*)
18516 # +Z the default
18519 lt_prog_compiler_pic='+Z'
18521 esac
18522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18523 lt_prog_compiler_static='${wl}-a ${wl}archive'
18526 irix5* | irix6* | nonstopux*)
18527 lt_prog_compiler_wl='-Wl,'
18528 # PIC (with -KPIC) is the default.
18529 lt_prog_compiler_static='-non_shared'
18532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18533 case $cc_basename in
18534 # old Intel for x86_64 which still supported -KPIC.
18535 ecc*)
18536 lt_prog_compiler_wl='-Wl,'
18537 lt_prog_compiler_pic='-KPIC'
18538 lt_prog_compiler_static='-static'
18540 # icc used to be incompatible with GCC.
18541 # ICC 10 doesn't accept -KPIC any more.
18542 icc* | ifort*)
18543 lt_prog_compiler_wl='-Wl,'
18544 lt_prog_compiler_pic='-fPIC'
18545 lt_prog_compiler_static='-static'
18547 # Lahey Fortran 8.1.
18548 lf95*)
18549 lt_prog_compiler_wl='-Wl,'
18550 lt_prog_compiler_pic='--shared'
18551 lt_prog_compiler_static='--static'
18553 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18554 # Portland Group compilers (*not* the Pentium gcc compiler,
18555 # which looks to be a dead project)
18556 lt_prog_compiler_wl='-Wl,'
18557 lt_prog_compiler_pic='-fpic'
18558 lt_prog_compiler_static='-Bstatic'
18560 ccc*)
18561 lt_prog_compiler_wl='-Wl,'
18562 # All Alpha code is PIC.
18563 lt_prog_compiler_static='-non_shared'
18565 xl* | bgxl* | bgf* | mpixl*)
18566 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18567 lt_prog_compiler_wl='-Wl,'
18568 lt_prog_compiler_pic='-qpic'
18569 lt_prog_compiler_static='-qstaticlink'
18572 case `$CC -V 2>&1 | sed 5q` in
18573 *Sun\ F* | *Sun*Fortran*)
18574 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18575 lt_prog_compiler_pic='-KPIC'
18576 lt_prog_compiler_static='-Bstatic'
18577 lt_prog_compiler_wl=''
18579 *Sun\ C*)
18580 # Sun C 5.9
18581 lt_prog_compiler_pic='-KPIC'
18582 lt_prog_compiler_static='-Bstatic'
18583 lt_prog_compiler_wl='-Wl,'
18585 esac
18587 esac
18590 newsos6)
18591 lt_prog_compiler_pic='-KPIC'
18592 lt_prog_compiler_static='-Bstatic'
18595 *nto* | *qnx*)
18596 # QNX uses GNU C++, but need to define -shared option too, otherwise
18597 # it will coredump.
18598 lt_prog_compiler_pic='-fPIC -shared'
18601 osf3* | osf4* | osf5*)
18602 lt_prog_compiler_wl='-Wl,'
18603 # All OSF/1 code is PIC.
18604 lt_prog_compiler_static='-non_shared'
18607 rdos*)
18608 lt_prog_compiler_static='-non_shared'
18611 solaris*)
18612 lt_prog_compiler_pic='-KPIC'
18613 lt_prog_compiler_static='-Bstatic'
18614 case $cc_basename in
18615 f77* | f90* | f95*)
18616 lt_prog_compiler_wl='-Qoption ld ';;
18618 lt_prog_compiler_wl='-Wl,';;
18619 esac
18622 sunos4*)
18623 lt_prog_compiler_wl='-Qoption ld '
18624 lt_prog_compiler_pic='-PIC'
18625 lt_prog_compiler_static='-Bstatic'
18628 sysv4 | sysv4.2uw2* | sysv4.3*)
18629 lt_prog_compiler_wl='-Wl,'
18630 lt_prog_compiler_pic='-KPIC'
18631 lt_prog_compiler_static='-Bstatic'
18634 sysv4*MP*)
18635 if test -d /usr/nec ;then
18636 lt_prog_compiler_pic='-Kconform_pic'
18637 lt_prog_compiler_static='-Bstatic'
18641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18642 lt_prog_compiler_wl='-Wl,'
18643 lt_prog_compiler_pic='-KPIC'
18644 lt_prog_compiler_static='-Bstatic'
18647 unicos*)
18648 lt_prog_compiler_wl='-Wl,'
18649 lt_prog_compiler_can_build_shared=no
18652 uts4*)
18653 lt_prog_compiler_pic='-pic'
18654 lt_prog_compiler_static='-Bstatic'
18658 lt_prog_compiler_can_build_shared=no
18660 esac
18663 case $host_os in
18664 # For platforms which do not support PIC, -DPIC is meaningless:
18665 *djgpp*)
18666 lt_prog_compiler_pic=
18669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18671 esac
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18673 $as_echo "$lt_prog_compiler_pic" >&6; }
18681 # Check to make sure the PIC flag actually works.
18683 if test -n "$lt_prog_compiler_pic"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18686 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18687 $as_echo_n "(cached) " >&6
18688 else
18689 lt_cv_prog_compiler_pic_works=no
18690 ac_outfile=conftest.$ac_objext
18691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18692 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18693 # Insert the option either (1) after the last *FLAGS variable, or
18694 # (2) before a word containing "conftest.", or (3) at the end.
18695 # Note that $ac_compile itself does not contain backslashes and begins
18696 # with a dollar sign (not a hyphen), so the echo should work correctly.
18697 # The option is referenced via a variable to avoid confusing sed.
18698 lt_compile=`echo "$ac_compile" | $SED \
18699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18701 -e 's:$: $lt_compiler_flag:'`
18702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18703 (eval "$lt_compile" 2>conftest.err)
18704 ac_status=$?
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 if (exit $ac_status) && test -s "$ac_outfile"; then
18708 # The compiler can only warn and ignore the option if not recognized
18709 # So say no if there are warnings other than the usual output.
18710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18713 lt_cv_prog_compiler_pic_works=yes
18716 $RM conftest*
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18720 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18722 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18723 case $lt_prog_compiler_pic in
18724 "" | " "*) ;;
18725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18726 esac
18727 else
18728 lt_prog_compiler_pic=
18729 lt_prog_compiler_can_build_shared=no
18740 # Check to make sure the static flag actually works.
18742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18745 if ${lt_cv_prog_compiler_static_works+:} false; then :
18746 $as_echo_n "(cached) " >&6
18747 else
18748 lt_cv_prog_compiler_static_works=no
18749 save_LDFLAGS="$LDFLAGS"
18750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18753 # The linker can only warn and ignore the option if not recognized
18754 # So say no if there are warnings
18755 if test -s conftest.err; then
18756 # Append any errors to the config.log.
18757 cat conftest.err 1>&5
18758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18760 if diff conftest.exp conftest.er2 >/dev/null; then
18761 lt_cv_prog_compiler_static_works=yes
18763 else
18764 lt_cv_prog_compiler_static_works=yes
18767 $RM -r conftest*
18768 LDFLAGS="$save_LDFLAGS"
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18772 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18774 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18776 else
18777 lt_prog_compiler_static=
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18788 if ${lt_cv_prog_compiler_c_o+:} false; then :
18789 $as_echo_n "(cached) " >&6
18790 else
18791 lt_cv_prog_compiler_c_o=no
18792 $RM -r conftest 2>/dev/null
18793 mkdir conftest
18794 cd conftest
18795 mkdir out
18796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18798 lt_compiler_flag="-o out/conftest2.$ac_objext"
18799 # Insert the option either (1) after the last *FLAGS variable, or
18800 # (2) before a word containing "conftest.", or (3) at the end.
18801 # Note that $ac_compile itself does not contain backslashes and begins
18802 # with a dollar sign (not a hyphen), so the echo should work correctly.
18803 lt_compile=`echo "$ac_compile" | $SED \
18804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18806 -e 's:$: $lt_compiler_flag:'`
18807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18808 (eval "$lt_compile" 2>out/conftest.err)
18809 ac_status=$?
18810 cat out/conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18813 then
18814 # The compiler can only warn and ignore the option if not recognized
18815 # So say no if there are warnings
18816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18819 lt_cv_prog_compiler_c_o=yes
18822 chmod u+w . 2>&5
18823 $RM conftest*
18824 # SGI C++ compiler will create directory out/ii_files/ for
18825 # template instantiation
18826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18827 $RM out/* && rmdir out
18828 cd ..
18829 $RM -r conftest
18830 $RM conftest*
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18843 if ${lt_cv_prog_compiler_c_o+:} false; then :
18844 $as_echo_n "(cached) " >&6
18845 else
18846 lt_cv_prog_compiler_c_o=no
18847 $RM -r conftest 2>/dev/null
18848 mkdir conftest
18849 cd conftest
18850 mkdir out
18851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18853 lt_compiler_flag="-o out/conftest2.$ac_objext"
18854 # Insert the option either (1) after the last *FLAGS variable, or
18855 # (2) before a word containing "conftest.", or (3) at the end.
18856 # Note that $ac_compile itself does not contain backslashes and begins
18857 # with a dollar sign (not a hyphen), so the echo should work correctly.
18858 lt_compile=`echo "$ac_compile" | $SED \
18859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18861 -e 's:$: $lt_compiler_flag:'`
18862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18863 (eval "$lt_compile" 2>out/conftest.err)
18864 ac_status=$?
18865 cat out/conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18868 then
18869 # The compiler can only warn and ignore the option if not recognized
18870 # So say no if there are warnings
18871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18874 lt_cv_prog_compiler_c_o=yes
18877 chmod u+w . 2>&5
18878 $RM conftest*
18879 # SGI C++ compiler will create directory out/ii_files/ for
18880 # template instantiation
18881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18882 $RM out/* && rmdir out
18883 cd ..
18884 $RM -r conftest
18885 $RM conftest*
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18894 hard_links="nottested"
18895 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18896 # do not overwrite the value of need_locks provided by the user
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18898 $as_echo_n "checking if we can lock with hard links... " >&6; }
18899 hard_links=yes
18900 $RM conftest*
18901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18902 touch conftest.a
18903 ln conftest.a conftest.b 2>&5 || hard_links=no
18904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18906 $as_echo "$hard_links" >&6; }
18907 if test "$hard_links" = no; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18909 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18910 need_locks=warn
18912 else
18913 need_locks=no
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18924 runpath_var=
18925 allow_undefined_flag=
18926 always_export_symbols=no
18927 archive_cmds=
18928 archive_expsym_cmds=
18929 compiler_needs_object=no
18930 enable_shared_with_static_runtimes=no
18931 export_dynamic_flag_spec=
18932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18933 hardcode_automatic=no
18934 hardcode_direct=no
18935 hardcode_direct_absolute=no
18936 hardcode_libdir_flag_spec=
18937 hardcode_libdir_flag_spec_ld=
18938 hardcode_libdir_separator=
18939 hardcode_minus_L=no
18940 hardcode_shlibpath_var=unsupported
18941 inherit_rpath=no
18942 link_all_deplibs=unknown
18943 module_cmds=
18944 module_expsym_cmds=
18945 old_archive_from_new_cmds=
18946 old_archive_from_expsyms_cmds=
18947 thread_safe_flag_spec=
18948 whole_archive_flag_spec=
18949 # include_expsyms should be a list of space-separated symbols to be *always*
18950 # included in the symbol list
18951 include_expsyms=
18952 # exclude_expsyms can be an extended regexp of symbols to exclude
18953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18955 # as well as any symbol that contains `d'.
18956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18958 # platforms (ab)use it in PIC code, but their linkers get confused if
18959 # the symbol is explicitly referenced. Since portable code cannot
18960 # rely on this symbol name, it's probably fine to never include it in
18961 # preloaded symbol tables.
18962 # Exclude shared library initialization/finalization symbols.
18963 extract_expsyms_cmds=
18965 case $host_os in
18966 cygwin* | mingw* | pw32* | cegcc*)
18967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18968 # When not using gcc, we currently assume that we are using
18969 # Microsoft Visual C++.
18970 if test "$GCC" != yes; then
18971 with_gnu_ld=no
18974 interix*)
18975 # we just hope/assume this is gcc and not c89 (= MSVC++)
18976 with_gnu_ld=yes
18978 openbsd*)
18979 with_gnu_ld=no
18981 esac
18983 ld_shlibs=yes
18985 # On some targets, GNU ld is compatible enough with the native linker
18986 # that we're better off using the native interface for both.
18987 lt_use_gnu_ld_interface=no
18988 if test "$with_gnu_ld" = yes; then
18989 case $host_os in
18990 aix*)
18991 # The AIX port of GNU ld has always aspired to compatibility
18992 # with the native linker. However, as the warning in the GNU ld
18993 # block says, versions before 2.19.5* couldn't really create working
18994 # shared libraries, regardless of the interface used.
18995 case `$LD -v 2>&1` in
18996 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18997 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18998 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19000 lt_use_gnu_ld_interface=yes
19002 esac
19005 lt_use_gnu_ld_interface=yes
19007 esac
19010 if test "$lt_use_gnu_ld_interface" = yes; then
19011 # If archive_cmds runs LD, not CC, wlarc should be empty
19012 wlarc='${wl}'
19014 # Set some defaults for GNU ld with shared library support. These
19015 # are reset later if shared libraries are not supported. Putting them
19016 # here allows them to be overridden if necessary.
19017 runpath_var=LD_RUN_PATH
19018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19019 export_dynamic_flag_spec='${wl}--export-dynamic'
19020 # ancient GNU ld didn't support --whole-archive et. al.
19021 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19022 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19023 else
19024 whole_archive_flag_spec=
19026 supports_anon_versioning=no
19027 case `$LD -v 2>&1` in
19028 *GNU\ gold*) supports_anon_versioning=yes ;;
19029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19032 *\ 2.11.*) ;; # other 2.11 versions
19033 *) supports_anon_versioning=yes ;;
19034 esac
19036 # See if GNU ld supports shared libraries.
19037 case $host_os in
19038 aix[3-9]*)
19039 # On AIX/PPC, the GNU linker is very broken
19040 if test "$host_cpu" != ia64; then
19041 ld_shlibs=no
19042 cat <<_LT_EOF 1>&2
19044 *** Warning: the GNU linker, at least up to release 2.19, is reported
19045 *** to be unable to reliably create shared libraries on AIX.
19046 *** Therefore, libtool is disabling shared libraries support. If you
19047 *** really care for shared libraries, you may want to install binutils
19048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19049 *** You will then need to restart the configuration process.
19051 _LT_EOF
19055 amigaos*)
19056 case $host_cpu in
19057 powerpc)
19058 # see comment about AmigaOS4 .so support
19059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19060 archive_expsym_cmds=''
19062 m68k)
19063 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)'
19064 hardcode_libdir_flag_spec='-L$libdir'
19065 hardcode_minus_L=yes
19067 esac
19070 beos*)
19071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19072 allow_undefined_flag=unsupported
19073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19074 # support --undefined. This deserves some investigation. FIXME
19075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19076 else
19077 ld_shlibs=no
19081 cygwin* | mingw* | pw32* | cegcc*)
19082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19083 # as there is no search path for DLLs.
19084 hardcode_libdir_flag_spec='-L$libdir'
19085 export_dynamic_flag_spec='${wl}--export-all-symbols'
19086 allow_undefined_flag=unsupported
19087 always_export_symbols=no
19088 enable_shared_with_static_runtimes=yes
19089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19091 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19093 # If the export-symbols file already is a .def file (1st line
19094 # is EXPORTS), use it as is; otherwise, prepend...
19095 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19096 cp $export_symbols $output_objdir/$soname.def;
19097 else
19098 echo EXPORTS > $output_objdir/$soname.def;
19099 cat $export_symbols >> $output_objdir/$soname.def;
19101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19102 else
19103 ld_shlibs=no
19107 haiku*)
19108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19109 link_all_deplibs=yes
19112 interix[3-9]*)
19113 hardcode_direct=no
19114 hardcode_shlibpath_var=no
19115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19116 export_dynamic_flag_spec='${wl}-E'
19117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19118 # Instead, shared libraries are loaded at an image base (0x10000000 by
19119 # default) and relocated if they conflict, which is a slow very memory
19120 # consuming and fragmenting process. To avoid this, we pick a random,
19121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19124 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'
19127 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19128 tmp_diet=no
19129 if test "$host_os" = linux-dietlibc; then
19130 case $cc_basename in
19131 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19132 esac
19134 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19135 && test "$tmp_diet" = no
19136 then
19137 tmp_addflag=' $pic_flag'
19138 tmp_sharedflag='-shared'
19139 case $cc_basename,$host_cpu in
19140 pgcc*) # Portland Group C compiler
19141 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'
19142 tmp_addflag=' $pic_flag'
19144 pgf77* | pgf90* | pgf95* | pgfortran*)
19145 # Portland Group f77 and f90 compilers
19146 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'
19147 tmp_addflag=' $pic_flag -Mnomain' ;;
19148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19149 tmp_addflag=' -i_dynamic' ;;
19150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19151 tmp_addflag=' -i_dynamic -nofor_main' ;;
19152 ifc* | ifort*) # Intel Fortran compiler
19153 tmp_addflag=' -nofor_main' ;;
19154 lf95*) # Lahey Fortran 8.1
19155 whole_archive_flag_spec=
19156 tmp_sharedflag='--shared' ;;
19157 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19158 tmp_sharedflag='-qmkshrobj'
19159 tmp_addflag= ;;
19160 nvcc*) # Cuda Compiler Driver 2.2
19161 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'
19162 compiler_needs_object=yes
19164 esac
19165 case `$CC -V 2>&1 | sed 5q` in
19166 *Sun\ C*) # Sun C 5.9
19167 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'
19168 compiler_needs_object=yes
19169 tmp_sharedflag='-G' ;;
19170 *Sun\ F*) # Sun Fortran 8.3
19171 tmp_sharedflag='-G' ;;
19172 esac
19173 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 if test "x$supports_anon_versioning" = xyes; then
19176 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19178 echo "local: *; };" >> $output_objdir/$libname.ver~
19179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19182 case $cc_basename in
19183 xlf* | bgf* | bgxlf* | mpixlf*)
19184 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19185 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19186 hardcode_libdir_flag_spec=
19187 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19188 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19189 if test "x$supports_anon_versioning" = xyes; then
19190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19192 echo "local: *; };" >> $output_objdir/$libname.ver~
19193 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19196 esac
19197 else
19198 ld_shlibs=no
19202 netbsd*)
19203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19205 wlarc=
19206 else
19207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19212 solaris*)
19213 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19214 ld_shlibs=no
19215 cat <<_LT_EOF 1>&2
19217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19218 *** create shared libraries on Solaris systems. Therefore, libtool
19219 *** is disabling shared libraries support. We urge you to upgrade GNU
19220 *** binutils to release 2.9.1 or newer. Another option is to modify
19221 *** your PATH or compiler configuration so that the native linker is
19222 *** used, and then restart.
19224 _LT_EOF
19225 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19228 else
19229 ld_shlibs=no
19233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19234 case `$LD -v 2>&1` in
19235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19236 ld_shlibs=no
19237 cat <<_LT_EOF 1>&2
19239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19240 *** reliably create shared libraries on SCO systems. Therefore, libtool
19241 *** is disabling shared libraries support. We urge you to upgrade GNU
19242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19243 *** your PATH or compiler configuration so that the native linker is
19244 *** used, and then restart.
19246 _LT_EOF
19249 # For security reasons, it is highly recommended that you always
19250 # use absolute paths for naming shared libraries, and exclude the
19251 # DT_RUNPATH tag from executables and libraries. But doing so
19252 # requires that you compile everything twice, which is a pain.
19253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19257 else
19258 ld_shlibs=no
19261 esac
19264 sunos4*)
19265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19266 wlarc=
19267 hardcode_direct=yes
19268 hardcode_shlibpath_var=no
19272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19275 else
19276 ld_shlibs=no
19279 esac
19281 if test "$ld_shlibs" = no; then
19282 runpath_var=
19283 hardcode_libdir_flag_spec=
19284 export_dynamic_flag_spec=
19285 whole_archive_flag_spec=
19287 else
19288 # PORTME fill in a description of your system's linker (not GNU ld)
19289 case $host_os in
19290 aix3*)
19291 allow_undefined_flag=unsupported
19292 always_export_symbols=yes
19293 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'
19294 # Note: this linker hardcodes the directories in LIBPATH if there
19295 # are no directories specified by -L.
19296 hardcode_minus_L=yes
19297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19298 # Neither direct hardcoding nor static linking is supported with a
19299 # broken collect2.
19300 hardcode_direct=unsupported
19304 aix[4-9]*)
19305 if test "$host_cpu" = ia64; then
19306 # On IA64, the linker does run time linking by default, so we don't
19307 # have to do anything special.
19308 aix_use_runtimelinking=no
19309 exp_sym_flag='-Bexport'
19310 no_entry_flag=""
19311 else
19312 # If we're using GNU nm, then we don't want the "-C" option.
19313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19314 # Also, AIX nm treats weak defined symbols like other global
19315 # defined symbols, whereas GNU nm marks them as "W".
19316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19317 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'
19318 else
19319 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'
19321 aix_use_runtimelinking=no
19323 # Test if we are trying to use run time linking or normal
19324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19325 # need to do runtime linking.
19326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19327 for ld_flag in $LDFLAGS; do
19328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19329 aix_use_runtimelinking=yes
19330 break
19332 done
19334 esac
19336 exp_sym_flag='-bexport'
19337 no_entry_flag='-bnoentry'
19340 # When large executables or shared objects are built, AIX ld can
19341 # have problems creating the table of contents. If linking a library
19342 # or program results in "error TOC overflow" add -mminimal-toc to
19343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19346 archive_cmds=''
19347 hardcode_direct=yes
19348 hardcode_direct_absolute=yes
19349 hardcode_libdir_separator=':'
19350 link_all_deplibs=yes
19351 file_list_spec='${wl}-f,'
19353 if test "$GCC" = yes; then
19354 case $host_os in aix4.[012]|aix4.[012].*)
19355 # We only want to do this on AIX 4.2 and lower, the check
19356 # below for broken collect2 doesn't work under 4.3+
19357 collect2name=`${CC} -print-prog-name=collect2`
19358 if test -f "$collect2name" &&
19359 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19360 then
19361 # We have reworked collect2
19363 else
19364 # We have old collect2
19365 hardcode_direct=unsupported
19366 # It fails to find uninstalled libraries when the uninstalled
19367 # path is not listed in the libpath. Setting hardcode_minus_L
19368 # to unsupported forces relinking
19369 hardcode_minus_L=yes
19370 hardcode_libdir_flag_spec='-L$libdir'
19371 hardcode_libdir_separator=
19374 esac
19375 shared_flag='-shared'
19376 if test "$aix_use_runtimelinking" = yes; then
19377 shared_flag="$shared_flag "'${wl}-G'
19379 else
19380 # not using gcc
19381 if test "$host_cpu" = ia64; then
19382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19383 # chokes on -Wl,-G. The following line is correct:
19384 shared_flag='-G'
19385 else
19386 if test "$aix_use_runtimelinking" = yes; then
19387 shared_flag='${wl}-G'
19388 else
19389 shared_flag='${wl}-bM:SRE'
19394 export_dynamic_flag_spec='${wl}-bexpall'
19395 # It seems that -bexpall does not export symbols beginning with
19396 # underscore (_), so it is better to generate a list of symbols to export.
19397 always_export_symbols=yes
19398 if test "$aix_use_runtimelinking" = yes; then
19399 # Warning - without using the other runtime loading flags (-brtl),
19400 # -berok will link without error, but may produce a broken library.
19401 allow_undefined_flag='-berok'
19402 # Determine the default libpath from the value encoded in an
19403 # empty executable.
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19408 main ()
19412 return 0;
19414 _ACEOF
19415 if ac_fn_c_try_link "$LINENO"; then :
19417 lt_aix_libpath_sed='
19418 /Import File Strings/,/^$/ {
19419 /^0/ {
19420 s/^0 *\(.*\)$/\1/
19424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19425 # Check for a 64-bit object if we didn't find anything.
19426 if test -z "$aix_libpath"; then
19427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19430 rm -f core conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19434 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19435 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"
19436 else
19437 if test "$host_cpu" = ia64; then
19438 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19439 allow_undefined_flag="-z nodefs"
19440 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"
19441 else
19442 # Determine the default libpath from the value encoded in an
19443 # empty executable.
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19448 main ()
19452 return 0;
19454 _ACEOF
19455 if ac_fn_c_try_link "$LINENO"; then :
19457 lt_aix_libpath_sed='
19458 /Import File Strings/,/^$/ {
19459 /^0/ {
19460 s/^0 *\(.*\)$/\1/
19464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19465 # Check for a 64-bit object if we didn't find anything.
19466 if test -z "$aix_libpath"; then
19467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19475 # Warning - without using the other run time loading flags,
19476 # -berok will link without error, but may produce a broken library.
19477 no_undefined_flag=' ${wl}-bernotok'
19478 allow_undefined_flag=' ${wl}-berok'
19479 if test "$with_gnu_ld" = yes; then
19480 # We only use this code for GNU lds that support --whole-archive.
19481 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19482 else
19483 # Exported symbols can be pulled into shared objects from archives
19484 whole_archive_flag_spec='$convenience'
19486 archive_cmds_need_lc=yes
19487 # This is similar to how AIX traditionally builds its shared libraries.
19488 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'
19493 amigaos*)
19494 case $host_cpu in
19495 powerpc)
19496 # see comment about AmigaOS4 .so support
19497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19498 archive_expsym_cmds=''
19500 m68k)
19501 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)'
19502 hardcode_libdir_flag_spec='-L$libdir'
19503 hardcode_minus_L=yes
19505 esac
19508 bsdi[45]*)
19509 export_dynamic_flag_spec=-rdynamic
19512 cygwin* | mingw* | pw32* | cegcc*)
19513 # When not using gcc, we currently assume that we are using
19514 # Microsoft Visual C++.
19515 # hardcode_libdir_flag_spec is actually meaningless, as there is
19516 # no search path for DLLs.
19517 hardcode_libdir_flag_spec=' '
19518 allow_undefined_flag=unsupported
19519 # Tell ltmain to make .lib files, not .a files.
19520 libext=lib
19521 # Tell ltmain to make .dll files, not .so files.
19522 shrext_cmds=".dll"
19523 # FIXME: Setting linknames here is a bad hack.
19524 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19525 # The linker will automatically build a .lib file if we build a DLL.
19526 old_archive_from_new_cmds='true'
19527 # FIXME: Should let the user specify the lib program.
19528 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19529 fix_srcfile_path='`cygpath -w "$srcfile"`'
19530 enable_shared_with_static_runtimes=yes
19533 darwin* | rhapsody*)
19537 # Publish an arg to allow the user to select that Darwin host (and target)
19538 # libraries should be given install-names like @rpath/libfoo.dylib. This
19539 # requires that the user of the library then adds an 'rpath' to the DSO that
19540 # needs access.
19541 # NOTE: there are defaults below, for systems that support rpaths. The person
19542 # configuring can override the defaults for any system version that supports
19543 # them - they are, however, forced off for system versions without support.
19544 # Check whether --enable-darwin-at-rpath was given.
19545 if test "${enable_darwin_at_rpath+set}" = set; then :
19546 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19547 # This is not supported before macOS 10.5 / Darwin9.
19548 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19549 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19551 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19552 enable_darwin_at_rpath=no
19554 esac
19556 else
19557 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19558 # As above, before 10.5 / Darwin9 this does not work.
19559 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19560 enable_darwin_at_rpath=no
19563 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19564 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19565 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19566 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19568 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19569 enable_darwin_at_rpath=yes
19571 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19572 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19574 esac
19579 archive_cmds_need_lc=no
19580 hardcode_direct=no
19581 hardcode_automatic=yes
19582 hardcode_shlibpath_var=unsupported
19583 if test "$lt_cv_ld_force_load" = "yes"; then
19584 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\"`'
19585 else
19586 whole_archive_flag_spec=''
19588 link_all_deplibs=yes
19589 allow_undefined_flag="$_lt_dar_allow_undefined"
19590 case $cc_basename in
19591 ifort*) _lt_dar_can_shared=yes ;;
19592 *) _lt_dar_can_shared=$GCC ;;
19593 esac
19594 if test "$_lt_dar_can_shared" = "yes"; then
19595 output_verbose_link_cmd=func_echo_all
19596 _lt_install_name='\$rpath/\$soname'
19597 if test "x$enable_darwin_at_rpath" = "xyes"; then
19598 _lt_install_name='@rpath/\$soname'
19600 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19601 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19602 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
19603 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}"
19605 else
19606 ld_shlibs=no
19611 dgux*)
19612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19613 hardcode_libdir_flag_spec='-L$libdir'
19614 hardcode_shlibpath_var=no
19617 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19618 # support. Future versions do this automatically, but an explicit c++rt0.o
19619 # does not break anything, and helps significantly (at the cost of a little
19620 # extra space).
19621 freebsd2.2*)
19622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19623 hardcode_libdir_flag_spec='-R$libdir'
19624 hardcode_direct=yes
19625 hardcode_shlibpath_var=no
19628 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19629 freebsd2.*)
19630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19631 hardcode_direct=yes
19632 hardcode_minus_L=yes
19633 hardcode_shlibpath_var=no
19636 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19637 freebsd* | dragonfly*)
19638 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19639 hardcode_libdir_flag_spec='-R$libdir'
19640 hardcode_direct=yes
19641 hardcode_shlibpath_var=no
19644 hpux9*)
19645 if test "$GCC" = yes; then
19646 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'
19647 else
19648 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'
19650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19651 hardcode_libdir_separator=:
19652 hardcode_direct=yes
19654 # hardcode_minus_L: Not really in the search PATH,
19655 # but as the default location of the library.
19656 hardcode_minus_L=yes
19657 export_dynamic_flag_spec='${wl}-E'
19660 hpux10*)
19661 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19663 else
19664 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19666 if test "$with_gnu_ld" = no; then
19667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19668 hardcode_libdir_flag_spec_ld='+b $libdir'
19669 hardcode_libdir_separator=:
19670 hardcode_direct=yes
19671 hardcode_direct_absolute=yes
19672 export_dynamic_flag_spec='${wl}-E'
19673 # hardcode_minus_L: Not really in the search PATH,
19674 # but as the default location of the library.
19675 hardcode_minus_L=yes
19679 hpux11*)
19680 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19681 case $host_cpu in
19682 hppa*64*)
19683 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19685 ia64*)
19686 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19691 esac
19692 else
19693 case $host_cpu in
19694 hppa*64*)
19695 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19697 ia64*)
19698 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19702 # Older versions of the 11.00 compiler do not understand -b yet
19703 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19705 $as_echo_n "checking if $CC understands -b... " >&6; }
19706 if ${lt_cv_prog_compiler__b+:} false; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19709 lt_cv_prog_compiler__b=no
19710 save_LDFLAGS="$LDFLAGS"
19711 LDFLAGS="$LDFLAGS -b"
19712 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19714 # The linker can only warn and ignore the option if not recognized
19715 # So say no if there are warnings
19716 if test -s conftest.err; then
19717 # Append any errors to the config.log.
19718 cat conftest.err 1>&5
19719 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19721 if diff conftest.exp conftest.er2 >/dev/null; then
19722 lt_cv_prog_compiler__b=yes
19724 else
19725 lt_cv_prog_compiler__b=yes
19728 $RM -r conftest*
19729 LDFLAGS="$save_LDFLAGS"
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19733 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19735 if test x"$lt_cv_prog_compiler__b" = xyes; then
19736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19737 else
19738 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19742 esac
19744 if test "$with_gnu_ld" = no; then
19745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19746 hardcode_libdir_separator=:
19748 case $host_cpu in
19749 hppa*64*|ia64*)
19750 hardcode_direct=no
19751 hardcode_shlibpath_var=no
19754 hardcode_direct=yes
19755 hardcode_direct_absolute=yes
19756 export_dynamic_flag_spec='${wl}-E'
19758 # hardcode_minus_L: Not really in the search PATH,
19759 # but as the default location of the library.
19760 hardcode_minus_L=yes
19762 esac
19766 irix5* | irix6* | nonstopux*)
19767 if test "$GCC" = yes; then
19768 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'
19769 # Try to use the -exported_symbol ld option, if it does not
19770 # work, assume that -exports_file does not work either and
19771 # implicitly export all symbols.
19772 save_LDFLAGS="$LDFLAGS"
19773 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19776 int foo(void) {}
19777 _ACEOF
19778 if ac_fn_c_try_link "$LINENO"; then :
19779 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'
19782 rm -f core conftest.err conftest.$ac_objext \
19783 conftest$ac_exeext conftest.$ac_ext
19784 LDFLAGS="$save_LDFLAGS"
19785 else
19786 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'
19787 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'
19789 archive_cmds_need_lc='no'
19790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19791 hardcode_libdir_separator=:
19792 inherit_rpath=yes
19793 link_all_deplibs=yes
19796 netbsd*)
19797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19798 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19799 else
19800 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19802 hardcode_libdir_flag_spec='-R$libdir'
19803 hardcode_direct=yes
19804 hardcode_shlibpath_var=no
19807 newsos6)
19808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19809 hardcode_direct=yes
19810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19811 hardcode_libdir_separator=:
19812 hardcode_shlibpath_var=no
19815 *nto* | *qnx*)
19818 openbsd*)
19819 if test -f /usr/libexec/ld.so; then
19820 hardcode_direct=yes
19821 hardcode_shlibpath_var=no
19822 hardcode_direct_absolute=yes
19823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19825 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19827 export_dynamic_flag_spec='${wl}-E'
19828 else
19829 case $host_os in
19830 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19832 hardcode_libdir_flag_spec='-R$libdir'
19835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19838 esac
19840 else
19841 ld_shlibs=no
19845 os2*)
19846 hardcode_libdir_flag_spec='-L$libdir'
19847 hardcode_minus_L=yes
19848 allow_undefined_flag=unsupported
19849 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'
19850 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19853 osf3*)
19854 if test "$GCC" = yes; then
19855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19856 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'
19857 else
19858 allow_undefined_flag=' -expect_unresolved \*'
19859 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'
19861 archive_cmds_need_lc='no'
19862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19863 hardcode_libdir_separator=:
19866 osf4* | osf5*) # as osf3* with the addition of -msym flag
19867 if test "$GCC" = yes; then
19868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19869 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'
19870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19871 else
19872 allow_undefined_flag=' -expect_unresolved \*'
19873 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'
19874 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~
19875 $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'
19877 # Both c and cxx compiler support -rpath directly
19878 hardcode_libdir_flag_spec='-rpath $libdir'
19880 archive_cmds_need_lc='no'
19881 hardcode_libdir_separator=:
19884 solaris*)
19885 no_undefined_flag=' -z defs'
19886 if test "$GCC" = yes; then
19887 wlarc='${wl}'
19888 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19890 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19891 else
19892 case `$CC -V 2>&1` in
19893 *"Compilers 5.0"*)
19894 wlarc=''
19895 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19897 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19900 wlarc='${wl}'
19901 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19902 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19903 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19905 esac
19907 hardcode_libdir_flag_spec='-R$libdir'
19908 hardcode_shlibpath_var=no
19909 case $host_os in
19910 solaris2.[0-5] | solaris2.[0-5].*) ;;
19912 # The compiler driver will combine and reorder linker options,
19913 # but understands `-z linker_flag'. GCC discards it without `$wl',
19914 # but is careful enough not to reorder.
19915 # Supported since Solaris 2.6 (maybe 2.5.1?)
19916 if test "$GCC" = yes; then
19917 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19918 else
19919 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19922 esac
19923 link_all_deplibs=yes
19926 sunos4*)
19927 if test "x$host_vendor" = xsequent; then
19928 # Use $CC to link under sequent, because it throws in some extra .o
19929 # files that make .init and .fini sections work.
19930 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19931 else
19932 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19934 hardcode_libdir_flag_spec='-L$libdir'
19935 hardcode_direct=yes
19936 hardcode_minus_L=yes
19937 hardcode_shlibpath_var=no
19940 sysv4)
19941 case $host_vendor in
19942 sni)
19943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19944 hardcode_direct=yes # is this really true???
19946 siemens)
19947 ## LD is ld it makes a PLAMLIB
19948 ## CC just makes a GrossModule.
19949 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19950 reload_cmds='$CC -r -o $output$reload_objs'
19951 hardcode_direct=no
19953 motorola)
19954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19957 esac
19958 runpath_var='LD_RUN_PATH'
19959 hardcode_shlibpath_var=no
19962 sysv4.3*)
19963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19964 hardcode_shlibpath_var=no
19965 export_dynamic_flag_spec='-Bexport'
19968 sysv4*MP*)
19969 if test -d /usr/nec; then
19970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971 hardcode_shlibpath_var=no
19972 runpath_var=LD_RUN_PATH
19973 hardcode_runpath_var=yes
19974 ld_shlibs=yes
19978 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19979 no_undefined_flag='${wl}-z,text'
19980 archive_cmds_need_lc=no
19981 hardcode_shlibpath_var=no
19982 runpath_var='LD_RUN_PATH'
19984 if test "$GCC" = yes; then
19985 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19986 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19987 else
19988 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19989 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19993 sysv5* | sco3.2v5* | sco5v6*)
19994 # Note: We can NOT use -z defs as we might desire, because we do not
19995 # link with -lc, and that would cause any symbols used from libc to
19996 # always be unresolved, which means just about no library would
19997 # ever link correctly. If we're not using GNU ld we use -z text
19998 # though, which does catch some bad symbols but isn't as heavy-handed
19999 # as -z defs.
20000 no_undefined_flag='${wl}-z,text'
20001 allow_undefined_flag='${wl}-z,nodefs'
20002 archive_cmds_need_lc=no
20003 hardcode_shlibpath_var=no
20004 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20005 hardcode_libdir_separator=':'
20006 link_all_deplibs=yes
20007 export_dynamic_flag_spec='${wl}-Bexport'
20008 runpath_var='LD_RUN_PATH'
20010 if test "$GCC" = yes; then
20011 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20012 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20013 else
20014 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20015 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20019 uts4*)
20020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20021 hardcode_libdir_flag_spec='-L$libdir'
20022 hardcode_shlibpath_var=no
20026 ld_shlibs=no
20028 esac
20030 if test x$host_vendor = xsni; then
20031 case $host in
20032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20033 export_dynamic_flag_spec='${wl}-Blargedynsym'
20035 esac
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20040 $as_echo "$ld_shlibs" >&6; }
20041 test "$ld_shlibs" = no && can_build_shared=no
20043 with_gnu_ld=$with_gnu_ld
20060 # Do we need to explicitly link libc?
20062 case "x$archive_cmds_need_lc" in
20063 x|xyes)
20064 # Assume -lc should be added
20065 archive_cmds_need_lc=yes
20067 if test "$enable_shared" = yes && test "$GCC" = yes; then
20068 case $archive_cmds in
20069 *'~'*)
20070 # FIXME: we may have to deal with multi-command sequences.
20072 '$CC '*)
20073 # Test whether the compiler implicitly links with -lc since on some
20074 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20075 # to ld, don't add -lc before -lgcc.
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20078 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20079 $as_echo_n "(cached) " >&6
20080 else
20081 $RM conftest*
20082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20085 (eval $ac_compile) 2>&5
20086 ac_status=$?
20087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20088 test $ac_status = 0; } 2>conftest.err; then
20089 soname=conftest
20090 lib=conftest
20091 libobjs=conftest.$ac_objext
20092 deplibs=
20093 wl=$lt_prog_compiler_wl
20094 pic_flag=$lt_prog_compiler_pic
20095 compiler_flags=-v
20096 linker_flags=-v
20097 verstring=
20098 output_objdir=.
20099 libname=conftest
20100 lt_save_allow_undefined_flag=$allow_undefined_flag
20101 allow_undefined_flag=
20102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20103 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20104 ac_status=$?
20105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20106 test $ac_status = 0; }
20107 then
20108 lt_cv_archive_cmds_need_lc=no
20109 else
20110 lt_cv_archive_cmds_need_lc=yes
20112 allow_undefined_flag=$lt_save_allow_undefined_flag
20113 else
20114 cat conftest.err 1>&5
20116 $RM conftest*
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20120 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20121 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20123 esac
20126 esac
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20285 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20287 if test "$GCC" = yes; then
20288 case $host_os in
20289 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20290 *) lt_awk_arg="/^libraries:/" ;;
20291 esac
20292 case $host_os in
20293 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20294 *) lt_sed_strip_eq="s,=/,/,g" ;;
20295 esac
20296 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20297 case $lt_search_path_spec in
20298 *\;*)
20299 # if the path contains ";" then we assume it to be the separator
20300 # otherwise default to the standard path separator (i.e. ":") - it is
20301 # assumed that no part of a normal pathname contains ";" but that should
20302 # okay in the real world where ";" in dirpaths is itself problematic.
20303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20308 esac
20309 # Ok, now we have the path, separated by spaces, we can step through it
20310 # and add multilib dir if necessary.
20311 lt_tmp_lt_search_path_spec=
20312 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20313 for lt_sys_path in $lt_search_path_spec; do
20314 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20316 else
20317 test -d "$lt_sys_path" && \
20318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20320 done
20321 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20322 BEGIN {RS=" "; FS="/|\n";} {
20323 lt_foo="";
20324 lt_count=0;
20325 for (lt_i = NF; lt_i > 0; lt_i--) {
20326 if ($lt_i != "" && $lt_i != ".") {
20327 if ($lt_i == "..") {
20328 lt_count++;
20329 } else {
20330 if (lt_count == 0) {
20331 lt_foo="/" $lt_i lt_foo;
20332 } else {
20333 lt_count--;
20338 if (lt_foo != "") { lt_freq[lt_foo]++; }
20339 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20341 # AWK program above erroneously prepends '/' to C:/dos/paths
20342 # for these hosts.
20343 case $host_os in
20344 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20345 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20346 esac
20347 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20348 else
20349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20351 library_names_spec=
20352 libname_spec='lib$name'
20353 soname_spec=
20354 shrext_cmds=".so"
20355 postinstall_cmds=
20356 postuninstall_cmds=
20357 finish_cmds=
20358 finish_eval=
20359 shlibpath_var=
20360 shlibpath_overrides_runpath=unknown
20361 version_type=none
20362 dynamic_linker="$host_os ld.so"
20363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20364 need_lib_prefix=unknown
20365 hardcode_into_libs=no
20367 # when you set need_version to no, make sure it does not cause -set_version
20368 # flags to be left without arguments
20369 need_version=unknown
20371 case $host_os in
20372 aix3*)
20373 version_type=linux
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20375 shlibpath_var=LIBPATH
20377 # AIX 3 has no versioning support, so we append a major version to the name.
20378 soname_spec='${libname}${release}${shared_ext}$major'
20381 aix[4-9]*)
20382 version_type=linux
20383 need_lib_prefix=no
20384 need_version=no
20385 hardcode_into_libs=yes
20386 if test "$host_cpu" = ia64; then
20387 # AIX 5 supports IA64
20388 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20389 shlibpath_var=LD_LIBRARY_PATH
20390 else
20391 # With GCC up to 2.95.x, collect2 would create an import file
20392 # for dependence libraries. The import file would start with
20393 # the line `#! .'. This would cause the generated library to
20394 # depend on `.', always an invalid library. This was fixed in
20395 # development snapshots of GCC prior to 3.0.
20396 case $host_os in
20397 aix4 | aix4.[01] | aix4.[01].*)
20398 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20399 echo ' yes '
20400 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20402 else
20403 can_build_shared=no
20406 esac
20407 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20408 # soname into executable. Probably we can add versioning support to
20409 # collect2, so additional links can be useful in future.
20410 if test "$aix_use_runtimelinking" = yes; then
20411 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20412 # instead of lib<name>.a to let people know that these are not
20413 # typical AIX shared libraries.
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415 else
20416 # We preserve .a as extension for shared libraries through AIX4.2
20417 # and later when we are not doing run time linking.
20418 library_names_spec='${libname}${release}.a $libname.a'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20421 shlibpath_var=LIBPATH
20425 amigaos*)
20426 case $host_cpu in
20427 powerpc)
20428 # Since July 2007 AmigaOS4 officially supports .so libraries.
20429 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 m68k)
20433 library_names_spec='$libname.ixlibrary $libname.a'
20434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20435 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'
20437 esac
20440 beos*)
20441 library_names_spec='${libname}${shared_ext}'
20442 dynamic_linker="$host_os ld.so"
20443 shlibpath_var=LIBRARY_PATH
20446 bsdi[45]*)
20447 version_type=linux
20448 need_version=no
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20452 shlibpath_var=LD_LIBRARY_PATH
20453 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20454 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20455 # the default ld.so.conf also contains /usr/contrib/lib and
20456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20457 # libtool to hard-code these into programs
20460 cygwin* | mingw* | pw32* | cegcc*)
20461 version_type=windows
20462 shrext_cmds=".dll"
20463 need_version=no
20464 need_lib_prefix=no
20466 case $GCC,$host_os in
20467 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20468 library_names_spec='$libname.dll.a'
20469 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20470 postinstall_cmds='base_file=`basename \${file}`~
20471 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20472 dldir=$destdir/`dirname \$dlpath`~
20473 test -d \$dldir || mkdir -p \$dldir~
20474 $install_prog $dir/$dlname \$dldir/$dlname~
20475 chmod a+x \$dldir/$dlname~
20476 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20477 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20480 dlpath=$dir/\$dldll~
20481 $RM \$dlpath'
20482 shlibpath_overrides_runpath=yes
20484 case $host_os in
20485 cygwin*)
20486 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20487 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20489 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20491 mingw* | cegcc*)
20492 # MinGW DLLs use traditional 'lib' prefix
20493 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20495 pw32*)
20496 # pw32 DLLs use 'pw' prefix rather than 'lib'
20497 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20499 esac
20503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20505 esac
20506 dynamic_linker='Win32 ld.exe'
20507 # FIXME: first we should search . and the directory the executable is in
20508 shlibpath_var=PATH
20511 darwin* | rhapsody*)
20512 dynamic_linker="$host_os dyld"
20513 version_type=darwin
20514 need_lib_prefix=no
20515 need_version=no
20516 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20517 soname_spec='${libname}${release}${major}$shared_ext'
20518 shlibpath_overrides_runpath=yes
20519 shlibpath_var=DYLD_LIBRARY_PATH
20520 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20523 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20526 dgux*)
20527 version_type=linux
20528 need_lib_prefix=no
20529 need_version=no
20530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20531 soname_spec='${libname}${release}${shared_ext}$major'
20532 shlibpath_var=LD_LIBRARY_PATH
20535 freebsd* | dragonfly*)
20536 # DragonFly does not have aout. When/if they implement a new
20537 # versioning mechanism, adjust this.
20538 if test -x /usr/bin/objformat; then
20539 objformat=`/usr/bin/objformat`
20540 else
20541 case $host_os in
20542 freebsd[23].*) objformat=aout ;;
20543 *) objformat=elf ;;
20544 esac
20546 version_type=freebsd-$objformat
20547 case $version_type in
20548 freebsd-elf*)
20549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20550 need_version=no
20551 need_lib_prefix=no
20553 freebsd-*)
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20555 need_version=yes
20557 esac
20558 shlibpath_var=LD_LIBRARY_PATH
20559 case $host_os in
20560 freebsd2.*)
20561 shlibpath_overrides_runpath=yes
20563 freebsd3.[01]* | freebsdelf3.[01]*)
20564 shlibpath_overrides_runpath=yes
20565 hardcode_into_libs=yes
20567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20569 shlibpath_overrides_runpath=no
20570 hardcode_into_libs=yes
20572 *) # from 4.6 on, and DragonFly
20573 shlibpath_overrides_runpath=yes
20574 hardcode_into_libs=yes
20576 esac
20579 haiku*)
20580 version_type=linux
20581 need_lib_prefix=no
20582 need_version=no
20583 dynamic_linker="$host_os runtime_loader"
20584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20585 soname_spec='${libname}${release}${shared_ext}$major'
20586 shlibpath_var=LIBRARY_PATH
20587 shlibpath_overrides_runpath=yes
20588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20589 hardcode_into_libs=yes
20592 hpux9* | hpux10* | hpux11*)
20593 # Give a soname corresponding to the major version so that dld.sl refuses to
20594 # link against other versions.
20595 version_type=sunos
20596 need_lib_prefix=no
20597 need_version=no
20598 case $host_cpu in
20599 ia64*)
20600 shrext_cmds='.so'
20601 hardcode_into_libs=yes
20602 dynamic_linker="$host_os dld.so"
20603 shlibpath_var=LD_LIBRARY_PATH
20604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 if test "X$HPUX_IA64_MODE" = X32; then
20608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20609 else
20610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20614 hppa*64*)
20615 shrext_cmds='.sl'
20616 hardcode_into_libs=yes
20617 dynamic_linker="$host_os dld.sl"
20618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20621 soname_spec='${libname}${release}${shared_ext}$major'
20622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20626 shrext_cmds='.sl'
20627 dynamic_linker="$host_os dld.sl"
20628 shlibpath_var=SHLIB_PATH
20629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20633 esac
20634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20635 postinstall_cmds='chmod 555 $lib'
20636 # or fails outright, so override atomically:
20637 install_override_mode=555
20640 interix[3-9]*)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20647 shlibpath_var=LD_LIBRARY_PATH
20648 shlibpath_overrides_runpath=no
20649 hardcode_into_libs=yes
20652 irix5* | irix6* | nonstopux*)
20653 case $host_os in
20654 nonstopux*) version_type=nonstopux ;;
20656 if test "$lt_cv_prog_gnu_ld" = yes; then
20657 version_type=linux
20658 else
20659 version_type=irix
20660 fi ;;
20661 esac
20662 need_lib_prefix=no
20663 need_version=no
20664 soname_spec='${libname}${release}${shared_ext}$major'
20665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20666 case $host_os in
20667 irix5* | nonstopux*)
20668 libsuff= shlibsuff=
20671 case $LD in # libtool.m4 will add one of these switches to LD
20672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20673 libsuff= shlibsuff= libmagic=32-bit;;
20674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20675 libsuff=32 shlibsuff=N32 libmagic=N32;;
20676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20678 *) libsuff= shlibsuff= libmagic=never-match;;
20679 esac
20681 esac
20682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20683 shlibpath_overrides_runpath=no
20684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20686 hardcode_into_libs=yes
20689 # No shared lib support for Linux oldld, aout, or coff.
20690 linux*oldld* | linux*aout* | linux*coff*)
20691 dynamic_linker=no
20694 # This must be Linux ELF.
20696 # uclinux* changes (here and below) have been submitted to the libtool
20697 # project, but have not yet been accepted: they are GCC-local changes
20698 # for the time being. (See
20699 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20700 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20701 version_type=linux
20702 need_lib_prefix=no
20703 need_version=no
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20707 shlibpath_var=LD_LIBRARY_PATH
20708 shlibpath_overrides_runpath=no
20710 # Some binutils ld are patched to set DT_RUNPATH
20711 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20712 $as_echo_n "(cached) " >&6
20713 else
20714 lt_cv_shlibpath_overrides_runpath=no
20715 save_LDFLAGS=$LDFLAGS
20716 save_libdir=$libdir
20717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20723 main ()
20727 return 0;
20729 _ACEOF
20730 if ac_fn_c_try_link "$LINENO"; then :
20731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20732 lt_cv_shlibpath_overrides_runpath=yes
20735 rm -f core conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737 LDFLAGS=$save_LDFLAGS
20738 libdir=$save_libdir
20742 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20744 # This implies no fast_install, which is unacceptable.
20745 # Some rework will be needed to allow for fast_install
20746 # before this can be enabled.
20747 hardcode_into_libs=yes
20749 # Append ld.so.conf contents to the search path
20750 if test -f /etc/ld.so.conf; then
20751 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' ' '`
20752 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20755 # We used to test for /lib/ld.so.1 and disable shared libraries on
20756 # powerpc, because MkLinux only supported shared libraries with the
20757 # GNU dynamic linker. Since this was broken with cross compilers,
20758 # most powerpc-linux boxes support dynamic linking these days and
20759 # people can always --disable-shared, the test was removed, and we
20760 # assume the GNU/Linux dynamic linker is in use.
20761 dynamic_linker='GNU/Linux ld.so'
20764 netbsd*)
20765 version_type=sunos
20766 need_lib_prefix=no
20767 need_version=no
20768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20771 dynamic_linker='NetBSD (a.out) ld.so'
20772 else
20773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20774 soname_spec='${libname}${release}${shared_ext}$major'
20775 dynamic_linker='NetBSD ld.elf_so'
20777 shlibpath_var=LD_LIBRARY_PATH
20778 shlibpath_overrides_runpath=yes
20779 hardcode_into_libs=yes
20782 newsos6)
20783 version_type=linux
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 shlibpath_var=LD_LIBRARY_PATH
20786 shlibpath_overrides_runpath=yes
20789 *nto* | *qnx*)
20790 version_type=qnx
20791 need_lib_prefix=no
20792 need_version=no
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20795 shlibpath_var=LD_LIBRARY_PATH
20796 shlibpath_overrides_runpath=no
20797 hardcode_into_libs=yes
20798 dynamic_linker='ldqnx.so'
20801 openbsd*)
20802 version_type=sunos
20803 sys_lib_dlsearch_path_spec="/usr/lib"
20804 need_lib_prefix=no
20805 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20806 case $host_os in
20807 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20808 *) need_version=no ;;
20809 esac
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20812 shlibpath_var=LD_LIBRARY_PATH
20813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20814 case $host_os in
20815 openbsd2.[89] | openbsd2.[89].*)
20816 shlibpath_overrides_runpath=no
20819 shlibpath_overrides_runpath=yes
20821 esac
20822 else
20823 shlibpath_overrides_runpath=yes
20827 os2*)
20828 libname_spec='$name'
20829 shrext_cmds=".dll"
20830 need_lib_prefix=no
20831 library_names_spec='$libname${shared_ext} $libname.a'
20832 dynamic_linker='OS/2 ld.exe'
20833 shlibpath_var=LIBPATH
20836 osf3* | osf4* | osf5*)
20837 version_type=osf
20838 need_lib_prefix=no
20839 need_version=no
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20844 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20847 rdos*)
20848 dynamic_linker=no
20851 solaris*)
20852 version_type=linux
20853 need_lib_prefix=no
20854 need_version=no
20855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20856 soname_spec='${libname}${release}${shared_ext}$major'
20857 shlibpath_var=LD_LIBRARY_PATH
20858 shlibpath_overrides_runpath=yes
20859 hardcode_into_libs=yes
20860 # ldd complains unless libraries are executable
20861 postinstall_cmds='chmod +x $lib'
20864 sunos4*)
20865 version_type=sunos
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20868 shlibpath_var=LD_LIBRARY_PATH
20869 shlibpath_overrides_runpath=yes
20870 if test "$with_gnu_ld" = yes; then
20871 need_lib_prefix=no
20873 need_version=yes
20876 sysv4 | sysv4.3*)
20877 version_type=linux
20878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20879 soname_spec='${libname}${release}${shared_ext}$major'
20880 shlibpath_var=LD_LIBRARY_PATH
20881 case $host_vendor in
20882 sni)
20883 shlibpath_overrides_runpath=no
20884 need_lib_prefix=no
20885 runpath_var=LD_RUN_PATH
20887 siemens)
20888 need_lib_prefix=no
20890 motorola)
20891 need_lib_prefix=no
20892 need_version=no
20893 shlibpath_overrides_runpath=no
20894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20896 esac
20899 sysv4*MP*)
20900 if test -d /usr/nec ;then
20901 version_type=linux
20902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20903 soname_spec='$libname${shared_ext}.$major'
20904 shlibpath_var=LD_LIBRARY_PATH
20908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20909 version_type=freebsd-elf
20910 need_lib_prefix=no
20911 need_version=no
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20913 soname_spec='${libname}${release}${shared_ext}$major'
20914 shlibpath_var=LD_LIBRARY_PATH
20915 shlibpath_overrides_runpath=yes
20916 hardcode_into_libs=yes
20917 if test "$with_gnu_ld" = yes; then
20918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20919 else
20920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20921 case $host_os in
20922 sco3.2v5*)
20923 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20925 esac
20927 sys_lib_dlsearch_path_spec='/usr/lib'
20930 tpf*)
20931 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20932 version_type=linux
20933 need_lib_prefix=no
20934 need_version=no
20935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20936 shlibpath_var=LD_LIBRARY_PATH
20937 shlibpath_overrides_runpath=no
20938 hardcode_into_libs=yes
20941 uts4*)
20942 version_type=linux
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20944 soname_spec='${libname}${release}${shared_ext}$major'
20945 shlibpath_var=LD_LIBRARY_PATH
20948 # Shared libraries for VwWorks, >= 7 only at this stage
20949 # and (fpic) still incompatible with "large" code models
20950 # in a few configurations. Only for RTP mode in any case,
20951 # and upon explicit request at configure time.
20952 vxworks7*)
20953 dynamic_linker=no
20954 case ${with_multisubdir}-${enable_shared} in
20955 *large*)
20957 *mrtp*-yes)
20958 version_type=linux
20959 need_lib_prefix=no
20960 need_version=no
20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20962 soname_spec='${libname}${release}${shared_ext}$major'
20963 dynamic_linker="$host_os module_loader"
20965 esac
20968 dynamic_linker=no
20970 esac
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20972 $as_echo "$dynamic_linker" >&6; }
20973 test "$dynamic_linker" = no && can_build_shared=no
20975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20976 if test "$GCC" = yes; then
20977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20981 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20984 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21080 hardcode_action=
21081 if test -n "$hardcode_libdir_flag_spec" ||
21082 test -n "$runpath_var" ||
21083 test "X$hardcode_automatic" = "Xyes" ; then
21085 # We can hardcode non-existent directories.
21086 if test "$hardcode_direct" != no &&
21087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21088 # have to relink, otherwise we might link with an installed library
21089 # when we should be linking with a yet-to-be-installed one
21090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21091 test "$hardcode_minus_L" != no; then
21092 # Linking always hardcodes the temporary library directory.
21093 hardcode_action=relink
21094 else
21095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21096 hardcode_action=immediate
21098 else
21099 # We cannot hardcode anything, or else we can only hardcode existing
21100 # directories.
21101 hardcode_action=unsupported
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21104 $as_echo "$hardcode_action" >&6; }
21106 if test "$hardcode_action" = relink ||
21107 test "$inherit_rpath" = yes; then
21108 # Fast installation is not supported
21109 enable_fast_install=no
21110 elif test "$shlibpath_overrides_runpath" = yes ||
21111 test "$enable_shared" = no; then
21112 # Fast installation is not necessary
21113 enable_fast_install=needless
21121 if test "x$enable_dlopen" != xyes; then
21122 enable_dlopen=unknown
21123 enable_dlopen_self=unknown
21124 enable_dlopen_self_static=unknown
21125 else
21126 lt_cv_dlopen=no
21127 lt_cv_dlopen_libs=
21129 case $host_os in
21130 beos*)
21131 lt_cv_dlopen="load_add_on"
21132 lt_cv_dlopen_libs=
21133 lt_cv_dlopen_self=yes
21136 mingw* | pw32* | cegcc*)
21137 lt_cv_dlopen="LoadLibrary"
21138 lt_cv_dlopen_libs=
21141 cygwin*)
21142 lt_cv_dlopen="dlopen"
21143 lt_cv_dlopen_libs=
21146 darwin*)
21147 # if libdl is installed we need to link against it
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21150 if ${ac_cv_lib_dl_dlopen+:} false; then :
21151 $as_echo_n "(cached) " >&6
21152 else
21153 ac_check_lib_save_LIBS=$LIBS
21154 LIBS="-ldl $LIBS"
21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h. */
21158 /* Override any GCC internal prototype to avoid an error.
21159 Use char because int might match the return type of a GCC
21160 builtin and then its argument prototype would still apply. */
21161 #ifdef __cplusplus
21162 extern "C"
21163 #endif
21164 char dlopen ();
21166 main ()
21168 return dlopen ();
21170 return 0;
21172 _ACEOF
21173 if ac_fn_c_try_link "$LINENO"; then :
21174 ac_cv_lib_dl_dlopen=yes
21175 else
21176 ac_cv_lib_dl_dlopen=no
21178 rm -f core conftest.err conftest.$ac_objext \
21179 conftest$ac_exeext conftest.$ac_ext
21180 LIBS=$ac_check_lib_save_LIBS
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21184 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21186 else
21188 lt_cv_dlopen="dyld"
21189 lt_cv_dlopen_libs=
21190 lt_cv_dlopen_self=yes
21197 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21198 if test "x$ac_cv_func_shl_load" = xyes; then :
21199 lt_cv_dlopen="shl_load"
21200 else
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21202 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21203 if ${ac_cv_lib_dld_shl_load+:} false; then :
21204 $as_echo_n "(cached) " >&6
21205 else
21206 ac_check_lib_save_LIBS=$LIBS
21207 LIBS="-ldld $LIBS"
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21211 /* Override any GCC internal prototype to avoid an error.
21212 Use char because int might match the return type of a GCC
21213 builtin and then its argument prototype would still apply. */
21214 #ifdef __cplusplus
21215 extern "C"
21216 #endif
21217 char shl_load ();
21219 main ()
21221 return shl_load ();
21223 return 0;
21225 _ACEOF
21226 if ac_fn_c_try_link "$LINENO"; then :
21227 ac_cv_lib_dld_shl_load=yes
21228 else
21229 ac_cv_lib_dld_shl_load=no
21231 rm -f core conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21233 LIBS=$ac_check_lib_save_LIBS
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21236 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21237 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21238 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21239 else
21240 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21241 if test "x$ac_cv_func_dlopen" = xyes; then :
21242 lt_cv_dlopen="dlopen"
21243 else
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21246 if ${ac_cv_lib_dl_dlopen+:} false; then :
21247 $as_echo_n "(cached) " >&6
21248 else
21249 ac_check_lib_save_LIBS=$LIBS
21250 LIBS="-ldl $LIBS"
21251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21252 /* end confdefs.h. */
21254 /* Override any GCC internal prototype to avoid an error.
21255 Use char because int might match the return type of a GCC
21256 builtin and then its argument prototype would still apply. */
21257 #ifdef __cplusplus
21258 extern "C"
21259 #endif
21260 char dlopen ();
21262 main ()
21264 return dlopen ();
21266 return 0;
21268 _ACEOF
21269 if ac_fn_c_try_link "$LINENO"; then :
21270 ac_cv_lib_dl_dlopen=yes
21271 else
21272 ac_cv_lib_dl_dlopen=no
21274 rm -f core conftest.err conftest.$ac_objext \
21275 conftest$ac_exeext conftest.$ac_ext
21276 LIBS=$ac_check_lib_save_LIBS
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21279 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21280 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21281 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21282 else
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21284 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21285 if ${ac_cv_lib_svld_dlopen+:} false; then :
21286 $as_echo_n "(cached) " >&6
21287 else
21288 ac_check_lib_save_LIBS=$LIBS
21289 LIBS="-lsvld $LIBS"
21290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21291 /* end confdefs.h. */
21293 /* Override any GCC internal prototype to avoid an error.
21294 Use char because int might match the return type of a GCC
21295 builtin and then its argument prototype would still apply. */
21296 #ifdef __cplusplus
21297 extern "C"
21298 #endif
21299 char dlopen ();
21301 main ()
21303 return dlopen ();
21305 return 0;
21307 _ACEOF
21308 if ac_fn_c_try_link "$LINENO"; then :
21309 ac_cv_lib_svld_dlopen=yes
21310 else
21311 ac_cv_lib_svld_dlopen=no
21313 rm -f core conftest.err conftest.$ac_objext \
21314 conftest$ac_exeext conftest.$ac_ext
21315 LIBS=$ac_check_lib_save_LIBS
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21318 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21319 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21321 else
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21323 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21324 if ${ac_cv_lib_dld_dld_link+:} false; then :
21325 $as_echo_n "(cached) " >&6
21326 else
21327 ac_check_lib_save_LIBS=$LIBS
21328 LIBS="-ldld $LIBS"
21329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21330 /* end confdefs.h. */
21332 /* Override any GCC internal prototype to avoid an error.
21333 Use char because int might match the return type of a GCC
21334 builtin and then its argument prototype would still apply. */
21335 #ifdef __cplusplus
21336 extern "C"
21337 #endif
21338 char dld_link ();
21340 main ()
21342 return dld_link ();
21344 return 0;
21346 _ACEOF
21347 if ac_fn_c_try_link "$LINENO"; then :
21348 ac_cv_lib_dld_dld_link=yes
21349 else
21350 ac_cv_lib_dld_dld_link=no
21352 rm -f core conftest.err conftest.$ac_objext \
21353 conftest$ac_exeext conftest.$ac_ext
21354 LIBS=$ac_check_lib_save_LIBS
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21358 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21378 esac
21380 if test "x$lt_cv_dlopen" != xno; then
21381 enable_dlopen=yes
21382 else
21383 enable_dlopen=no
21386 case $lt_cv_dlopen in
21387 dlopen)
21388 save_CPPFLAGS="$CPPFLAGS"
21389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21391 save_LDFLAGS="$LDFLAGS"
21392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21394 save_LIBS="$LIBS"
21395 LIBS="$lt_cv_dlopen_libs $LIBS"
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21398 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21399 if ${lt_cv_dlopen_self+:} false; then :
21400 $as_echo_n "(cached) " >&6
21401 else
21402 if test "$cross_compiling" = yes; then :
21403 lt_cv_dlopen_self=cross
21404 else
21405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21406 lt_status=$lt_dlunknown
21407 cat > conftest.$ac_ext <<_LT_EOF
21408 #line 21408 "configure"
21409 #include "confdefs.h"
21411 #if HAVE_DLFCN_H
21412 #include <dlfcn.h>
21413 #endif
21415 #include <stdio.h>
21417 #ifdef RTLD_GLOBAL
21418 # define LT_DLGLOBAL RTLD_GLOBAL
21419 #else
21420 # ifdef DL_GLOBAL
21421 # define LT_DLGLOBAL DL_GLOBAL
21422 # else
21423 # define LT_DLGLOBAL 0
21424 # endif
21425 #endif
21427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21428 find out it does not work in some platform. */
21429 #ifndef LT_DLLAZY_OR_NOW
21430 # ifdef RTLD_LAZY
21431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21432 # else
21433 # ifdef DL_LAZY
21434 # define LT_DLLAZY_OR_NOW DL_LAZY
21435 # else
21436 # ifdef RTLD_NOW
21437 # define LT_DLLAZY_OR_NOW RTLD_NOW
21438 # else
21439 # ifdef DL_NOW
21440 # define LT_DLLAZY_OR_NOW DL_NOW
21441 # else
21442 # define LT_DLLAZY_OR_NOW 0
21443 # endif
21444 # endif
21445 # endif
21446 # endif
21447 #endif
21449 /* When -fvisbility=hidden is used, assume the code has been annotated
21450 correspondingly for the symbols needed. */
21451 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21452 void fnord () __attribute__((visibility("default")));
21453 #endif
21455 void fnord () { int i=42; }
21456 int main ()
21458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21459 int status = $lt_dlunknown;
21461 if (self)
21463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21464 else
21466 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21467 else puts (dlerror ());
21469 /* dlclose (self); */
21471 else
21472 puts (dlerror ());
21474 return status;
21476 _LT_EOF
21477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21478 (eval $ac_link) 2>&5
21479 ac_status=$?
21480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21481 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21482 (./conftest; exit; ) >&5 2>/dev/null
21483 lt_status=$?
21484 case x$lt_status in
21485 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21486 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21487 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21488 esac
21489 else :
21490 # compilation failed
21491 lt_cv_dlopen_self=no
21494 rm -fr conftest*
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21499 $as_echo "$lt_cv_dlopen_self" >&6; }
21501 if test "x$lt_cv_dlopen_self" = xyes; then
21502 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21504 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21505 if ${lt_cv_dlopen_self_static+:} false; then :
21506 $as_echo_n "(cached) " >&6
21507 else
21508 if test "$cross_compiling" = yes; then :
21509 lt_cv_dlopen_self_static=cross
21510 else
21511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21512 lt_status=$lt_dlunknown
21513 cat > conftest.$ac_ext <<_LT_EOF
21514 #line 21514 "configure"
21515 #include "confdefs.h"
21517 #if HAVE_DLFCN_H
21518 #include <dlfcn.h>
21519 #endif
21521 #include <stdio.h>
21523 #ifdef RTLD_GLOBAL
21524 # define LT_DLGLOBAL RTLD_GLOBAL
21525 #else
21526 # ifdef DL_GLOBAL
21527 # define LT_DLGLOBAL DL_GLOBAL
21528 # else
21529 # define LT_DLGLOBAL 0
21530 # endif
21531 #endif
21533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21534 find out it does not work in some platform. */
21535 #ifndef LT_DLLAZY_OR_NOW
21536 # ifdef RTLD_LAZY
21537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21538 # else
21539 # ifdef DL_LAZY
21540 # define LT_DLLAZY_OR_NOW DL_LAZY
21541 # else
21542 # ifdef RTLD_NOW
21543 # define LT_DLLAZY_OR_NOW RTLD_NOW
21544 # else
21545 # ifdef DL_NOW
21546 # define LT_DLLAZY_OR_NOW DL_NOW
21547 # else
21548 # define LT_DLLAZY_OR_NOW 0
21549 # endif
21550 # endif
21551 # endif
21552 # endif
21553 #endif
21555 /* When -fvisbility=hidden is used, assume the code has been annotated
21556 correspondingly for the symbols needed. */
21557 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21558 void fnord () __attribute__((visibility("default")));
21559 #endif
21561 void fnord () { int i=42; }
21562 int main ()
21564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21565 int status = $lt_dlunknown;
21567 if (self)
21569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21570 else
21572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21573 else puts (dlerror ());
21575 /* dlclose (self); */
21577 else
21578 puts (dlerror ());
21580 return status;
21582 _LT_EOF
21583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21584 (eval $ac_link) 2>&5
21585 ac_status=$?
21586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21587 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21588 (./conftest; exit; ) >&5 2>/dev/null
21589 lt_status=$?
21590 case x$lt_status in
21591 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21592 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21593 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21594 esac
21595 else :
21596 # compilation failed
21597 lt_cv_dlopen_self_static=no
21600 rm -fr conftest*
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21605 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21608 CPPFLAGS="$save_CPPFLAGS"
21609 LDFLAGS="$save_LDFLAGS"
21610 LIBS="$save_LIBS"
21612 esac
21614 case $lt_cv_dlopen_self in
21615 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21616 *) enable_dlopen_self=unknown ;;
21617 esac
21619 case $lt_cv_dlopen_self_static in
21620 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21621 *) enable_dlopen_self_static=unknown ;;
21622 esac
21641 striplib=
21642 old_striplib=
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21644 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21645 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21646 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21647 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21649 $as_echo "yes" >&6; }
21650 else
21651 # FIXME - insert some real tests, host_os isn't really good enough
21652 case $host_os in
21653 darwin*)
21654 if test -n "$STRIP" ; then
21655 striplib="$STRIP -x"
21656 old_striplib="$STRIP -S"
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21658 $as_echo "yes" >&6; }
21659 else
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21661 $as_echo "no" >&6; }
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21666 $as_echo "no" >&6; }
21668 esac
21682 # Report which library types will actually be built
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21684 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21686 $as_echo "$can_build_shared" >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21689 $as_echo_n "checking whether to build shared libraries... " >&6; }
21690 test "$can_build_shared" = "no" && enable_shared=no
21692 # On AIX, shared libraries and static libraries use the same namespace, and
21693 # are all built from PIC.
21694 case $host_os in
21695 aix3*)
21696 test "$enable_shared" = yes && enable_static=no
21697 if test -n "$RANLIB"; then
21698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21699 postinstall_cmds='$RANLIB $lib'
21703 aix[4-9]*)
21704 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21705 test "$enable_shared" = yes && enable_static=no
21708 esac
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21710 $as_echo "$enable_shared" >&6; }
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21713 $as_echo_n "checking whether to build static libraries... " >&6; }
21714 # Make sure either enable_shared or enable_static is yes.
21715 test "$enable_shared" = yes || enable_static=yes
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21717 $as_echo "$enable_static" >&6; }
21723 ac_ext=cpp
21724 ac_cpp='$CXXCPP $CPPFLAGS'
21725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21729 CC="$lt_save_CC"
21731 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21732 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21733 (test "X$CXX" != "Xg++"))) ; then
21734 ac_ext=cpp
21735 ac_cpp='$CXXCPP $CPPFLAGS'
21736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21740 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21741 if test -z "$CXXCPP"; then
21742 if ${ac_cv_prog_CXXCPP+:} false; then :
21743 $as_echo_n "(cached) " >&6
21744 else
21745 # Double quotes because CXXCPP needs to be expanded
21746 for CXXCPP in "$CXX -E" "/lib/cpp"
21748 ac_preproc_ok=false
21749 for ac_cxx_preproc_warn_flag in '' yes
21751 # Use a header file that comes with gcc, so configuring glibc
21752 # with a fresh cross-compiler works.
21753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21754 # <limits.h> exists even on freestanding compilers.
21755 # On the NeXT, cc -E runs the code through the compiler's parser,
21756 # not just through cpp. "Syntax error" is here to catch this case.
21757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758 /* end confdefs.h. */
21759 #ifdef __STDC__
21760 # include <limits.h>
21761 #else
21762 # include <assert.h>
21763 #endif
21764 Syntax error
21765 _ACEOF
21766 if ac_fn_cxx_try_cpp "$LINENO"; then :
21768 else
21769 # Broken: fails on valid input.
21770 continue
21772 rm -f conftest.err conftest.i conftest.$ac_ext
21774 # OK, works on sane cases. Now check whether nonexistent headers
21775 # can be detected and how.
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21778 #include <ac_nonexistent.h>
21779 _ACEOF
21780 if ac_fn_cxx_try_cpp "$LINENO"; then :
21781 # Broken: success on invalid input.
21782 continue
21783 else
21784 # Passes both tests.
21785 ac_preproc_ok=:
21786 break
21788 rm -f conftest.err conftest.i conftest.$ac_ext
21790 done
21791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21792 rm -f conftest.i conftest.err conftest.$ac_ext
21793 if $ac_preproc_ok; then :
21794 break
21797 done
21798 ac_cv_prog_CXXCPP=$CXXCPP
21801 CXXCPP=$ac_cv_prog_CXXCPP
21802 else
21803 ac_cv_prog_CXXCPP=$CXXCPP
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21806 $as_echo "$CXXCPP" >&6; }
21807 ac_preproc_ok=false
21808 for ac_cxx_preproc_warn_flag in '' yes
21810 # Use a header file that comes with gcc, so configuring glibc
21811 # with a fresh cross-compiler works.
21812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21813 # <limits.h> exists even on freestanding compilers.
21814 # On the NeXT, cc -E runs the code through the compiler's parser,
21815 # not just through cpp. "Syntax error" is here to catch this case.
21816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21817 /* end confdefs.h. */
21818 #ifdef __STDC__
21819 # include <limits.h>
21820 #else
21821 # include <assert.h>
21822 #endif
21823 Syntax error
21824 _ACEOF
21825 if ac_fn_cxx_try_cpp "$LINENO"; then :
21827 else
21828 # Broken: fails on valid input.
21829 continue
21831 rm -f conftest.err conftest.i conftest.$ac_ext
21833 # OK, works on sane cases. Now check whether nonexistent headers
21834 # can be detected and how.
21835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h. */
21837 #include <ac_nonexistent.h>
21838 _ACEOF
21839 if ac_fn_cxx_try_cpp "$LINENO"; then :
21840 # Broken: success on invalid input.
21841 continue
21842 else
21843 # Passes both tests.
21844 ac_preproc_ok=:
21845 break
21847 rm -f conftest.err conftest.i conftest.$ac_ext
21849 done
21850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21851 rm -f conftest.i conftest.err conftest.$ac_ext
21852 if $ac_preproc_ok; then :
21854 else
21855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21857 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21858 See \`config.log' for more details" "$LINENO" 5; }
21861 ac_ext=cpp
21862 ac_cpp='$CXXCPP $CPPFLAGS'
21863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21867 else
21868 _lt_caught_CXX_error=yes
21871 ac_ext=cpp
21872 ac_cpp='$CXXCPP $CPPFLAGS'
21873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21877 archive_cmds_need_lc_CXX=no
21878 allow_undefined_flag_CXX=
21879 always_export_symbols_CXX=no
21880 archive_expsym_cmds_CXX=
21881 compiler_needs_object_CXX=no
21882 export_dynamic_flag_spec_CXX=
21883 hardcode_direct_CXX=no
21884 hardcode_direct_absolute_CXX=no
21885 hardcode_libdir_flag_spec_CXX=
21886 hardcode_libdir_flag_spec_ld_CXX=
21887 hardcode_libdir_separator_CXX=
21888 hardcode_minus_L_CXX=no
21889 hardcode_shlibpath_var_CXX=unsupported
21890 hardcode_automatic_CXX=no
21891 inherit_rpath_CXX=no
21892 module_cmds_CXX=
21893 module_expsym_cmds_CXX=
21894 link_all_deplibs_CXX=unknown
21895 old_archive_cmds_CXX=$old_archive_cmds
21896 reload_flag_CXX=$reload_flag
21897 reload_cmds_CXX=$reload_cmds
21898 no_undefined_flag_CXX=
21899 whole_archive_flag_spec_CXX=
21900 enable_shared_with_static_runtimes_CXX=no
21902 # Source file extension for C++ test sources.
21903 ac_ext=cpp
21905 # Object file extension for compiled C++ test sources.
21906 objext=o
21907 objext_CXX=$objext
21909 # No sense in running all these tests if we already determined that
21910 # the CXX compiler isn't working. Some variables (like enable_shared)
21911 # are currently assumed to apply to all compilers on this platform,
21912 # and will be corrupted by setting them based on a non-working compiler.
21913 if test "$_lt_caught_CXX_error" != yes; then
21914 # Code to be used in simple compile tests
21915 lt_simple_compile_test_code="int some_variable = 0;"
21917 # Code to be used in simple link tests
21918 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21920 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21927 # If no C compiler was specified, use CC.
21928 LTCC=${LTCC-"$CC"}
21930 # If no C compiler flags were specified, use CFLAGS.
21931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21933 # Allow CC to be a program name with arguments.
21934 compiler=$CC
21937 # save warnings/boilerplate of simple test code
21938 ac_outfile=conftest.$ac_objext
21939 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21941 _lt_compiler_boilerplate=`cat conftest.err`
21942 $RM conftest*
21944 ac_outfile=conftest.$ac_objext
21945 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21947 _lt_linker_boilerplate=`cat conftest.err`
21948 $RM -r conftest*
21951 # Allow CC to be a program name with arguments.
21952 lt_save_CC=$CC
21953 lt_save_LD=$LD
21954 lt_save_GCC=$GCC
21955 GCC=$GXX
21956 lt_save_with_gnu_ld=$with_gnu_ld
21957 lt_save_path_LD=$lt_cv_path_LD
21958 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21959 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21960 else
21961 $as_unset lt_cv_prog_gnu_ld
21963 if test -n "${lt_cv_path_LDCXX+set}"; then
21964 lt_cv_path_LD=$lt_cv_path_LDCXX
21965 else
21966 $as_unset lt_cv_path_LD
21968 test -z "${LDCXX+set}" || LD=$LDCXX
21969 CC=${CXX-"c++"}
21970 compiler=$CC
21971 compiler_CXX=$CC
21972 for cc_temp in $compiler""; do
21973 case $cc_temp in
21974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21976 \-*) ;;
21977 *) break;;
21978 esac
21979 done
21980 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21983 if test -n "$compiler"; then
21984 # We don't want -fno-exception when compiling C++ code, so set the
21985 # no_builtin_flag separately
21986 if test "$GXX" = yes; then
21987 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21988 else
21989 lt_prog_compiler_no_builtin_flag_CXX=
21992 if test "$GXX" = yes; then
21993 # Set up default GNU C++ configuration
21997 # Check whether --with-gnu-ld was given.
21998 if test "${with_gnu_ld+set}" = set; then :
21999 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22000 else
22001 with_gnu_ld=no
22004 ac_prog=ld
22005 if test "$GCC" = yes; then
22006 # Check if gcc -print-prog-name=ld gives a path.
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22008 $as_echo_n "checking for ld used by $CC... " >&6; }
22009 case $host in
22010 *-*-mingw*)
22011 # gcc leaves a trailing carriage return which upsets mingw
22012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22015 esac
22016 case $ac_prog in
22017 # Accept absolute paths.
22018 [\\/]* | ?:[\\/]*)
22019 re_direlt='/[^/][^/]*/\.\./'
22020 # Canonicalize the pathname of ld
22021 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22022 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22023 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22024 done
22025 test -z "$LD" && LD="$ac_prog"
22028 # If it fails, then pretend we aren't using GCC.
22029 ac_prog=ld
22032 # If it is relative, then search for the first ld in PATH.
22033 with_gnu_ld=unknown
22035 esac
22036 elif test "$with_gnu_ld" = yes; then
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22038 $as_echo_n "checking for GNU ld... " >&6; }
22039 else
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22041 $as_echo_n "checking for non-GNU ld... " >&6; }
22043 if ${lt_cv_path_LD+:} false; then :
22044 $as_echo_n "(cached) " >&6
22045 else
22046 if test -z "$LD"; then
22047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22048 for ac_dir in $PATH; do
22049 IFS="$lt_save_ifs"
22050 test -z "$ac_dir" && ac_dir=.
22051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22052 lt_cv_path_LD="$ac_dir/$ac_prog"
22053 # Check to see if the program is GNU ld. I'd rather use --version,
22054 # but apparently some variants of GNU ld only accept -v.
22055 # Break only if it was the GNU/non-GNU ld that we prefer.
22056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22057 *GNU* | *'with BFD'*)
22058 test "$with_gnu_ld" != no && break
22061 test "$with_gnu_ld" != yes && break
22063 esac
22065 done
22066 IFS="$lt_save_ifs"
22067 else
22068 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22072 LD="$lt_cv_path_LD"
22073 if test -n "$LD"; then
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22075 $as_echo "$LD" >&6; }
22076 else
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22078 $as_echo "no" >&6; }
22080 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22082 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22083 if ${lt_cv_prog_gnu_ld+:} false; then :
22084 $as_echo_n "(cached) " >&6
22085 else
22086 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22087 case `$LD -v 2>&1 </dev/null` in
22088 *GNU* | *'with BFD'*)
22089 lt_cv_prog_gnu_ld=yes
22092 lt_cv_prog_gnu_ld=no
22094 esac
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22097 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22098 with_gnu_ld=$lt_cv_prog_gnu_ld
22106 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22107 # archiving commands below assume that GNU ld is being used.
22108 if test "$with_gnu_ld" = yes; then
22109 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22110 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'
22112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22113 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22115 # If archive_cmds runs LD, not CC, wlarc should be empty
22116 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22117 # investigate it a little bit more. (MM)
22118 wlarc='${wl}'
22120 # ancient GNU ld didn't support --whole-archive et. al.
22121 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22122 $GREP 'no-whole-archive' > /dev/null; then
22123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22124 else
22125 whole_archive_flag_spec_CXX=
22127 else
22128 with_gnu_ld=no
22129 wlarc=
22131 # A generic and very simple default shared library creation
22132 # command for GNU C++ for the case where it uses the native
22133 # linker, instead of GNU ld. If possible, this setting should
22134 # overridden to take advantage of the native linker features on
22135 # the platform it is being used on.
22136 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22139 # Commands to make compiler produce verbose output that lists
22140 # what "hidden" libraries, object files and flags are used when
22141 # linking a shared library.
22142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22144 else
22145 GXX=no
22146 with_gnu_ld=no
22147 wlarc=
22150 # PORTME: fill in a description of your system's C++ link characteristics
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22152 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22153 ld_shlibs_CXX=yes
22154 case $host_os in
22155 aix3*)
22156 # FIXME: insert proper C++ library support
22157 ld_shlibs_CXX=no
22159 aix[4-9]*)
22160 if test "$host_cpu" = ia64; then
22161 # On IA64, the linker does run time linking by default, so we don't
22162 # have to do anything special.
22163 aix_use_runtimelinking=no
22164 exp_sym_flag='-Bexport'
22165 no_entry_flag=""
22166 else
22167 aix_use_runtimelinking=no
22169 # Test if we are trying to use run time linking or normal
22170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22171 # need to do runtime linking.
22172 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22173 for ld_flag in $LDFLAGS; do
22174 case $ld_flag in
22175 *-brtl*)
22176 aix_use_runtimelinking=yes
22177 break
22179 esac
22180 done
22182 esac
22184 exp_sym_flag='-bexport'
22185 no_entry_flag='-bnoentry'
22188 # When large executables or shared objects are built, AIX ld can
22189 # have problems creating the table of contents. If linking a library
22190 # or program results in "error TOC overflow" add -mminimal-toc to
22191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22194 archive_cmds_CXX=''
22195 hardcode_direct_CXX=yes
22196 hardcode_direct_absolute_CXX=yes
22197 hardcode_libdir_separator_CXX=':'
22198 link_all_deplibs_CXX=yes
22199 file_list_spec_CXX='${wl}-f,'
22201 if test "$GXX" = yes; then
22202 case $host_os in aix4.[012]|aix4.[012].*)
22203 # We only want to do this on AIX 4.2 and lower, the check
22204 # below for broken collect2 doesn't work under 4.3+
22205 collect2name=`${CC} -print-prog-name=collect2`
22206 if test -f "$collect2name" &&
22207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22208 then
22209 # We have reworked collect2
22211 else
22212 # We have old collect2
22213 hardcode_direct_CXX=unsupported
22214 # It fails to find uninstalled libraries when the uninstalled
22215 # path is not listed in the libpath. Setting hardcode_minus_L
22216 # to unsupported forces relinking
22217 hardcode_minus_L_CXX=yes
22218 hardcode_libdir_flag_spec_CXX='-L$libdir'
22219 hardcode_libdir_separator_CXX=
22221 esac
22222 shared_flag='-shared'
22223 if test "$aix_use_runtimelinking" = yes; then
22224 shared_flag="$shared_flag "'${wl}-G'
22226 else
22227 # not using gcc
22228 if test "$host_cpu" = ia64; then
22229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22230 # chokes on -Wl,-G. The following line is correct:
22231 shared_flag='-G'
22232 else
22233 if test "$aix_use_runtimelinking" = yes; then
22234 shared_flag='${wl}-G'
22235 else
22236 shared_flag='${wl}-bM:SRE'
22241 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22242 # It seems that -bexpall does not export symbols beginning with
22243 # underscore (_), so it is better to generate a list of symbols to
22244 # export.
22245 always_export_symbols_CXX=yes
22246 if test "$aix_use_runtimelinking" = yes; then
22247 # Warning - without using the other runtime loading flags (-brtl),
22248 # -berok will link without error, but may produce a broken library.
22249 allow_undefined_flag_CXX='-berok'
22250 # Determine the default libpath from the value encoded in an empty
22251 # executable.
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22256 main ()
22260 return 0;
22262 _ACEOF
22263 if ac_fn_cxx_try_link "$LINENO"; then :
22265 lt_aix_libpath_sed='
22266 /Import File Strings/,/^$/ {
22267 /^0/ {
22268 s/^0 *\(.*\)$/\1/
22272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22273 # Check for a 64-bit object if we didn't find anything.
22274 if test -z "$aix_libpath"; then
22275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22278 rm -f core conftest.err conftest.$ac_objext \
22279 conftest$ac_exeext conftest.$ac_ext
22280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22284 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"
22285 else
22286 if test "$host_cpu" = ia64; then
22287 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22288 allow_undefined_flag_CXX="-z nodefs"
22289 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"
22290 else
22291 # Determine the default libpath from the value encoded in an
22292 # empty executable.
22293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22294 /* end confdefs.h. */
22297 main ()
22301 return 0;
22303 _ACEOF
22304 if ac_fn_cxx_try_link "$LINENO"; then :
22306 lt_aix_libpath_sed='
22307 /Import File Strings/,/^$/ {
22308 /^0/ {
22309 s/^0 *\(.*\)$/\1/
22313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22314 # Check for a 64-bit object if we didn't find anything.
22315 if test -z "$aix_libpath"; then
22316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22319 rm -f core conftest.err conftest.$ac_objext \
22320 conftest$ac_exeext conftest.$ac_ext
22321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22323 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22324 # Warning - without using the other run time loading flags,
22325 # -berok will link without error, but may produce a broken library.
22326 no_undefined_flag_CXX=' ${wl}-bernotok'
22327 allow_undefined_flag_CXX=' ${wl}-berok'
22328 if test "$with_gnu_ld" = yes; then
22329 # We only use this code for GNU lds that support --whole-archive.
22330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22331 else
22332 # Exported symbols can be pulled into shared objects from archives
22333 whole_archive_flag_spec_CXX='$convenience'
22335 archive_cmds_need_lc_CXX=yes
22336 # This is similar to how AIX traditionally builds its shared
22337 # libraries.
22338 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'
22343 beos*)
22344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22345 allow_undefined_flag_CXX=unsupported
22346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22347 # support --undefined. This deserves some investigation. FIXME
22348 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22349 else
22350 ld_shlibs_CXX=no
22354 chorus*)
22355 case $cc_basename in
22357 # FIXME: insert proper C++ library support
22358 ld_shlibs_CXX=no
22360 esac
22363 cygwin* | mingw* | pw32* | cegcc*)
22364 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22365 # as there is no search path for DLLs.
22366 hardcode_libdir_flag_spec_CXX='-L$libdir'
22367 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22368 allow_undefined_flag_CXX=unsupported
22369 always_export_symbols_CXX=no
22370 enable_shared_with_static_runtimes_CXX=yes
22372 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22373 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'
22374 # If the export-symbols file already is a .def file (1st line
22375 # is EXPORTS), use it as is; otherwise, prepend...
22376 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22377 cp $export_symbols $output_objdir/$soname.def;
22378 else
22379 echo EXPORTS > $output_objdir/$soname.def;
22380 cat $export_symbols >> $output_objdir/$soname.def;
22382 $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'
22383 else
22384 ld_shlibs_CXX=no
22387 darwin* | rhapsody*)
22391 # Publish an arg to allow the user to select that Darwin host (and target)
22392 # libraries should be given install-names like @rpath/libfoo.dylib. This
22393 # requires that the user of the library then adds an 'rpath' to the DSO that
22394 # needs access.
22395 # NOTE: there are defaults below, for systems that support rpaths. The person
22396 # configuring can override the defaults for any system version that supports
22397 # them - they are, however, forced off for system versions without support.
22398 # Check whether --enable-darwin-at-rpath was given.
22399 if test "${enable_darwin_at_rpath+set}" = set; then :
22400 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22401 # This is not supported before macOS 10.5 / Darwin9.
22402 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22403 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22405 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22406 enable_darwin_at_rpath=no
22408 esac
22410 else
22411 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22412 # As above, before 10.5 / Darwin9 this does not work.
22413 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22414 enable_darwin_at_rpath=no
22417 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22418 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22419 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22420 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22422 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22423 enable_darwin_at_rpath=yes
22425 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22426 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22428 esac
22433 archive_cmds_need_lc_CXX=no
22434 hardcode_direct_CXX=no
22435 hardcode_automatic_CXX=yes
22436 hardcode_shlibpath_var_CXX=unsupported
22437 if test "$lt_cv_ld_force_load" = "yes"; then
22438 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\"`'
22439 else
22440 whole_archive_flag_spec_CXX=''
22442 link_all_deplibs_CXX=yes
22443 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22444 case $cc_basename in
22445 ifort*) _lt_dar_can_shared=yes ;;
22446 *) _lt_dar_can_shared=$GCC ;;
22447 esac
22448 if test "$_lt_dar_can_shared" = "yes"; then
22449 output_verbose_link_cmd=func_echo_all
22450 _lt_install_name='\$rpath/\$soname'
22451 if test "x$enable_darwin_at_rpath" = "xyes"; then
22452 _lt_install_name='@rpath/\$soname'
22454 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22455 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22456 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
22457 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}"
22458 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22459 _lt_install_name='\$rpath/\$soname'
22460 if test "x$enable_darwin_at_rpath" = "xyes"; then
22461 _lt_install_name='@rpath/\$soname'
22463 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
22464 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}"
22467 else
22468 ld_shlibs_CXX=no
22473 dgux*)
22474 case $cc_basename in
22475 ec++*)
22476 # FIXME: insert proper C++ library support
22477 ld_shlibs_CXX=no
22479 ghcx*)
22480 # Green Hills C++ Compiler
22481 # FIXME: insert proper C++ library support
22482 ld_shlibs_CXX=no
22485 # FIXME: insert proper C++ library support
22486 ld_shlibs_CXX=no
22488 esac
22491 freebsd2.*)
22492 # C++ shared libraries reported to be fairly broken before
22493 # switch to ELF
22494 ld_shlibs_CXX=no
22497 freebsd-elf*)
22498 archive_cmds_need_lc_CXX=no
22501 freebsd* | dragonfly*)
22502 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22503 # conventions
22504 ld_shlibs_CXX=yes
22507 gnu*)
22510 haiku*)
22511 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22512 link_all_deplibs_CXX=yes
22515 hpux9*)
22516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22517 hardcode_libdir_separator_CXX=:
22518 export_dynamic_flag_spec_CXX='${wl}-E'
22519 hardcode_direct_CXX=yes
22520 hardcode_minus_L_CXX=yes # Not in the search PATH,
22521 # but as the default
22522 # location of the library.
22524 case $cc_basename in
22525 CC*)
22526 # FIXME: insert proper C++ library support
22527 ld_shlibs_CXX=no
22529 aCC*)
22530 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'
22531 # Commands to make compiler produce verbose output that lists
22532 # what "hidden" libraries, object files and flags are used when
22533 # linking a shared library.
22535 # There doesn't appear to be a way to prevent this compiler from
22536 # explicitly linking system object files so we need to strip them
22537 # from the output so that they don't get included in the library
22538 # dependencies.
22539 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"'
22542 if test "$GXX" = yes; then
22543 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'
22544 else
22545 # FIXME: insert proper C++ library support
22546 ld_shlibs_CXX=no
22549 esac
22552 hpux10*|hpux11*)
22553 if test $with_gnu_ld = no; then
22554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22555 hardcode_libdir_separator_CXX=:
22557 case $host_cpu in
22558 hppa*64*|ia64*)
22561 export_dynamic_flag_spec_CXX='${wl}-E'
22563 esac
22565 case $host_cpu in
22566 hppa*64*|ia64*)
22567 hardcode_direct_CXX=no
22568 hardcode_shlibpath_var_CXX=no
22571 hardcode_direct_CXX=yes
22572 hardcode_direct_absolute_CXX=yes
22573 hardcode_minus_L_CXX=yes # Not in the search PATH,
22574 # but as the default
22575 # location of the library.
22577 esac
22579 case $cc_basename in
22580 CC*)
22581 # FIXME: insert proper C++ library support
22582 ld_shlibs_CXX=no
22584 aCC*)
22585 case $host_cpu in
22586 hppa*64*)
22587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22589 ia64*)
22590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22595 esac
22596 # Commands to make compiler produce verbose output that lists
22597 # what "hidden" libraries, object files and flags are used when
22598 # linking a shared library.
22600 # There doesn't appear to be a way to prevent this compiler from
22601 # explicitly linking system object files so we need to strip them
22602 # from the output so that they don't get included in the library
22603 # dependencies.
22604 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"'
22607 if test "$GXX" = yes; then
22608 if test $with_gnu_ld = no; then
22609 case $host_cpu in
22610 hppa*64*)
22611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22613 ia64*)
22614 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22617 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'
22619 esac
22621 else
22622 # FIXME: insert proper C++ library support
22623 ld_shlibs_CXX=no
22626 esac
22629 interix[3-9]*)
22630 hardcode_direct_CXX=no
22631 hardcode_shlibpath_var_CXX=no
22632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22633 export_dynamic_flag_spec_CXX='${wl}-E'
22634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22635 # Instead, shared libraries are loaded at an image base (0x10000000 by
22636 # default) and relocated if they conflict, which is a slow very memory
22637 # consuming and fragmenting process. To avoid this, we pick a random,
22638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22640 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'
22641 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'
22643 irix5* | irix6*)
22644 case $cc_basename in
22645 CC*)
22646 # SGI C++
22647 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'
22649 # Archives containing C++ object files must be created using
22650 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22651 # necessary to make sure instantiated templates are included
22652 # in the archive.
22653 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22656 if test "$GXX" = yes; then
22657 if test "$with_gnu_ld" = no; then
22658 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'
22659 else
22660 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'
22663 link_all_deplibs_CXX=yes
22665 esac
22666 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22667 hardcode_libdir_separator_CXX=:
22668 inherit_rpath_CXX=yes
22671 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22672 case $cc_basename in
22673 KCC*)
22674 # Kuck and Associates, Inc. (KAI) C++ Compiler
22676 # KCC will only create a shared library if the output file
22677 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22678 # to its proper name (with version) after linking.
22679 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'
22680 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'
22681 # Commands to make compiler produce verbose output that lists
22682 # what "hidden" libraries, object files and flags are used when
22683 # linking a shared library.
22685 # There doesn't appear to be a way to prevent this compiler from
22686 # explicitly linking system object files so we need to strip them
22687 # from the output so that they don't get included in the library
22688 # dependencies.
22689 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"'
22691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22694 # Archives containing C++ object files must be created using
22695 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22696 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22698 icpc* | ecpc* )
22699 # Intel C++
22700 with_gnu_ld=yes
22701 # version 8.0 and above of icpc choke on multiply defined symbols
22702 # if we add $predep_objects and $postdep_objects, however 7.1 and
22703 # earlier do not add the objects themselves.
22704 case `$CC -V 2>&1` in
22705 *"Version 7."*)
22706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22707 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'
22709 *) # Version 8.0 or newer
22710 tmp_idyn=
22711 case $host_cpu in
22712 ia64*) tmp_idyn=' -i_dynamic';;
22713 esac
22714 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22715 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'
22717 esac
22718 archive_cmds_need_lc_CXX=no
22719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22721 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22723 pgCC* | pgcpp*)
22724 # Portland Group C++ compiler
22725 case `$CC -V` in
22726 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22727 prelink_cmds_CXX='tpldir=Template.dir~
22728 rm -rf $tpldir~
22729 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22730 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22731 old_archive_cmds_CXX='tpldir=Template.dir~
22732 rm -rf $tpldir~
22733 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22734 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22735 $RANLIB $oldlib'
22736 archive_cmds_CXX='tpldir=Template.dir~
22737 rm -rf $tpldir~
22738 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22739 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22740 archive_expsym_cmds_CXX='tpldir=Template.dir~
22741 rm -rf $tpldir~
22742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22743 $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'
22745 *) # Version 6 and above use weak symbols
22746 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22747 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'
22749 esac
22751 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22753 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'
22755 cxx*)
22756 # Compaq C++
22757 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22758 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'
22760 runpath_var=LD_RUN_PATH
22761 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22762 hardcode_libdir_separator_CXX=:
22764 # Commands to make compiler produce verbose output that lists
22765 # what "hidden" libraries, object files and flags are used when
22766 # linking a shared library.
22768 # There doesn't appear to be a way to prevent this compiler from
22769 # explicitly linking system object files so we need to strip them
22770 # from the output so that they don't get included in the library
22771 # dependencies.
22772 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'
22774 xl* | mpixl* | bgxl*)
22775 # IBM XL 8.0 on PPC, with GNU ld
22776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22778 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22779 if test "x$supports_anon_versioning" = xyes; then
22780 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22782 echo "local: *; };" >> $output_objdir/$libname.ver~
22783 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22787 case `$CC -V 2>&1 | sed 5q` in
22788 *Sun\ C*)
22789 # Sun C++ 5.9
22790 no_undefined_flag_CXX=' -zdefs'
22791 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22792 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'
22793 hardcode_libdir_flag_spec_CXX='-R$libdir'
22794 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'
22795 compiler_needs_object_CXX=yes
22797 # Not sure whether something based on
22798 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22799 # would be better.
22800 output_verbose_link_cmd='func_echo_all'
22802 # Archives containing C++ object files must be created using
22803 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22804 # necessary to make sure instantiated templates are included
22805 # in the archive.
22806 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22808 esac
22810 esac
22813 lynxos*)
22814 # FIXME: insert proper C++ library support
22815 ld_shlibs_CXX=no
22818 m88k*)
22819 # FIXME: insert proper C++ library support
22820 ld_shlibs_CXX=no
22823 mvs*)
22824 case $cc_basename in
22825 cxx*)
22826 # FIXME: insert proper C++ library support
22827 ld_shlibs_CXX=no
22830 # FIXME: insert proper C++ library support
22831 ld_shlibs_CXX=no
22833 esac
22836 netbsd*)
22837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22838 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22839 wlarc=
22840 hardcode_libdir_flag_spec_CXX='-R$libdir'
22841 hardcode_direct_CXX=yes
22842 hardcode_shlibpath_var_CXX=no
22844 # Workaround some broken pre-1.5 toolchains
22845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22848 *nto* | *qnx*)
22849 ld_shlibs_CXX=yes
22852 openbsd2*)
22853 # C++ shared libraries are fairly broken
22854 ld_shlibs_CXX=no
22857 openbsd*)
22858 if test -f /usr/libexec/ld.so; then
22859 hardcode_direct_CXX=yes
22860 hardcode_shlibpath_var_CXX=no
22861 hardcode_direct_absolute_CXX=yes
22862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22865 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22866 export_dynamic_flag_spec_CXX='${wl}-E'
22867 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22869 output_verbose_link_cmd=func_echo_all
22870 else
22871 ld_shlibs_CXX=no
22875 osf3* | osf4* | osf5*)
22876 case $cc_basename in
22877 KCC*)
22878 # Kuck and Associates, Inc. (KAI) C++ Compiler
22880 # KCC will only create a shared library if the output file
22881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22882 # to its proper name (with version) after linking.
22883 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'
22885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22886 hardcode_libdir_separator_CXX=:
22888 # Archives containing C++ object files must be created using
22889 # the KAI C++ compiler.
22890 case $host in
22891 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22892 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22893 esac
22895 RCC*)
22896 # Rational C++ 2.4.1
22897 # FIXME: insert proper C++ library support
22898 ld_shlibs_CXX=no
22900 cxx*)
22901 case $host in
22902 osf3*)
22903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22904 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'
22905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22908 allow_undefined_flag_CXX=' -expect_unresolved \*'
22909 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'
22910 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22911 echo "-hidden">> $lib.exp~
22912 $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~
22913 $RM $lib.exp'
22914 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22916 esac
22918 hardcode_libdir_separator_CXX=:
22920 # Commands to make compiler produce verbose output that lists
22921 # what "hidden" libraries, object files and flags are used when
22922 # linking a shared library.
22924 # There doesn't appear to be a way to prevent this compiler from
22925 # explicitly linking system object files so we need to strip them
22926 # from the output so that they don't get included in the library
22927 # dependencies.
22928 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"'
22931 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22932 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22933 case $host in
22934 osf3*)
22935 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'
22938 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'
22940 esac
22942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22943 hardcode_libdir_separator_CXX=:
22945 # Commands to make compiler produce verbose output that lists
22946 # what "hidden" libraries, object files and flags are used when
22947 # linking a shared library.
22948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22950 else
22951 # FIXME: insert proper C++ library support
22952 ld_shlibs_CXX=no
22955 esac
22958 psos*)
22959 # FIXME: insert proper C++ library support
22960 ld_shlibs_CXX=no
22963 sunos4*)
22964 case $cc_basename in
22965 CC*)
22966 # Sun C++ 4.x
22967 # FIXME: insert proper C++ library support
22968 ld_shlibs_CXX=no
22970 lcc*)
22971 # Lucid
22972 # FIXME: insert proper C++ library support
22973 ld_shlibs_CXX=no
22976 # FIXME: insert proper C++ library support
22977 ld_shlibs_CXX=no
22979 esac
22982 solaris*)
22983 case $cc_basename in
22984 CC*)
22985 # Sun C++ 4.2, 5.x and Centerline C++
22986 archive_cmds_need_lc_CXX=yes
22987 no_undefined_flag_CXX=' -zdefs'
22988 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22989 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22990 $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'
22992 hardcode_libdir_flag_spec_CXX='-R$libdir'
22993 hardcode_shlibpath_var_CXX=no
22994 case $host_os in
22995 solaris2.[0-5] | solaris2.[0-5].*) ;;
22997 # The compiler driver will combine and reorder linker options,
22998 # but understands `-z linker_flag'.
22999 # Supported since Solaris 2.6 (maybe 2.5.1?)
23000 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23002 esac
23003 link_all_deplibs_CXX=yes
23005 output_verbose_link_cmd='func_echo_all'
23007 # Archives containing C++ object files must be created using
23008 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23009 # necessary to make sure instantiated templates are included
23010 # in the archive.
23011 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23013 gcx*)
23014 # Green Hills C++ Compiler
23015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23017 # The C++ compiler must be used to create the archive.
23018 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23021 # GNU C++ compiler with Solaris linker
23022 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23023 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23024 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23025 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23027 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23029 # Commands to make compiler produce verbose output that lists
23030 # what "hidden" libraries, object files and flags are used when
23031 # linking a shared library.
23032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23033 else
23034 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23035 # platform.
23036 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23037 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23038 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23040 # Commands to make compiler produce verbose output that lists
23041 # what "hidden" libraries, object files and flags are used when
23042 # linking a shared library.
23043 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23046 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23047 case $host_os in
23048 solaris2.[0-5] | solaris2.[0-5].*) ;;
23050 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23052 esac
23055 esac
23058 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23059 no_undefined_flag_CXX='${wl}-z,text'
23060 archive_cmds_need_lc_CXX=no
23061 hardcode_shlibpath_var_CXX=no
23062 runpath_var='LD_RUN_PATH'
23064 case $cc_basename in
23065 CC*)
23066 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23067 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23070 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23073 esac
23076 sysv5* | sco3.2v5* | sco5v6*)
23077 # Note: We can NOT use -z defs as we might desire, because we do not
23078 # link with -lc, and that would cause any symbols used from libc to
23079 # always be unresolved, which means just about no library would
23080 # ever link correctly. If we're not using GNU ld we use -z text
23081 # though, which does catch some bad symbols but isn't as heavy-handed
23082 # as -z defs.
23083 no_undefined_flag_CXX='${wl}-z,text'
23084 allow_undefined_flag_CXX='${wl}-z,nodefs'
23085 archive_cmds_need_lc_CXX=no
23086 hardcode_shlibpath_var_CXX=no
23087 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23088 hardcode_libdir_separator_CXX=':'
23089 link_all_deplibs_CXX=yes
23090 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23091 runpath_var='LD_RUN_PATH'
23093 case $cc_basename in
23094 CC*)
23095 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23096 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23097 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23098 '"$old_archive_cmds_CXX"
23099 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23100 '"$reload_cmds_CXX"
23103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23106 esac
23109 tandem*)
23110 case $cc_basename in
23111 NCC*)
23112 # NonStop-UX NCC 3.20
23113 # FIXME: insert proper C++ library support
23114 ld_shlibs_CXX=no
23117 # FIXME: insert proper C++ library support
23118 ld_shlibs_CXX=no
23120 esac
23123 vxworks*)
23124 # For VxWorks ports, we assume the use of a GNU linker with
23125 # standard elf conventions.
23126 ld_shlibs_CXX=yes
23130 # FIXME: insert proper C++ library support
23131 ld_shlibs_CXX=no
23133 esac
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23136 $as_echo "$ld_shlibs_CXX" >&6; }
23137 test "$ld_shlibs_CXX" = no && can_build_shared=no
23139 GCC_CXX="$GXX"
23140 LD_CXX="$LD"
23142 ## CAVEAT EMPTOR:
23143 ## There is no encapsulation within the following macros, do not change
23144 ## the running order or otherwise move them around unless you know exactly
23145 ## what you are doing...
23146 # Dependencies to place before and after the object being linked:
23147 predep_objects_CXX=
23148 postdep_objects_CXX=
23149 predeps_CXX=
23150 postdeps_CXX=
23151 compiler_lib_search_path_CXX=
23153 cat > conftest.$ac_ext <<_LT_EOF
23154 class Foo
23156 public:
23157 Foo (void) { a = 0; }
23158 private:
23159 int a;
23161 _LT_EOF
23163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23164 (eval $ac_compile) 2>&5
23165 ac_status=$?
23166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23167 test $ac_status = 0; }; then
23168 # Parse the compiler output and extract the necessary
23169 # objects, libraries and library flags.
23171 # Sentinel used to keep track of whether or not we are before
23172 # the conftest object file.
23173 pre_test_object_deps_done=no
23175 for p in `eval "$output_verbose_link_cmd"`; do
23176 case $p in
23178 -L* | -R* | -l*)
23179 # Some compilers place space between "-{L,R}" and the path.
23180 # Remove the space.
23181 if test $p = "-L" ||
23182 test $p = "-R"; then
23183 prev=$p
23184 continue
23185 else
23186 prev=
23189 if test "$pre_test_object_deps_done" = no; then
23190 case $p in
23191 -L* | -R*)
23192 # Internal compiler library paths should come after those
23193 # provided the user. The postdeps already come after the
23194 # user supplied libs so there is no need to process them.
23195 if test -z "$compiler_lib_search_path_CXX"; then
23196 compiler_lib_search_path_CXX="${prev}${p}"
23197 else
23198 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23201 # The "-l" case would never come before the object being
23202 # linked, so don't bother handling this case.
23203 esac
23204 else
23205 if test -z "$postdeps_CXX"; then
23206 postdeps_CXX="${prev}${p}"
23207 else
23208 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23213 *.$objext)
23214 # This assumes that the test object file only shows up
23215 # once in the compiler output.
23216 if test "$p" = "conftest.$objext"; then
23217 pre_test_object_deps_done=yes
23218 continue
23221 if test "$pre_test_object_deps_done" = no; then
23222 if test -z "$predep_objects_CXX"; then
23223 predep_objects_CXX="$p"
23224 else
23225 predep_objects_CXX="$predep_objects_CXX $p"
23227 else
23228 if test -z "$postdep_objects_CXX"; then
23229 postdep_objects_CXX="$p"
23230 else
23231 postdep_objects_CXX="$postdep_objects_CXX $p"
23236 *) ;; # Ignore the rest.
23238 esac
23239 done
23241 # Clean up.
23242 rm -f a.out a.exe
23243 else
23244 echo "libtool.m4: error: problem compiling CXX test program"
23247 $RM -f confest.$objext
23249 # PORTME: override above test on systems where it is broken
23250 case $host_os in
23251 interix[3-9]*)
23252 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23253 # hack all around it, let's just trust "g++" to DTRT.
23254 predep_objects_CXX=
23255 postdep_objects_CXX=
23256 postdeps_CXX=
23259 linux*)
23260 case `$CC -V 2>&1 | sed 5q` in
23261 *Sun\ C*)
23262 # Sun C++ 5.9
23264 # The more standards-conforming stlport4 library is
23265 # incompatible with the Cstd library. Avoid specifying
23266 # it if it's in CXXFLAGS. Ignore libCrun as
23267 # -library=stlport4 depends on it.
23268 case " $CXX $CXXFLAGS " in
23269 *" -library=stlport4 "*)
23270 solaris_use_stlport4=yes
23272 esac
23274 if test "$solaris_use_stlport4" != yes; then
23275 postdeps_CXX='-library=Cstd -library=Crun'
23278 esac
23281 solaris*)
23282 case $cc_basename in
23283 CC*)
23284 # The more standards-conforming stlport4 library is
23285 # incompatible with the Cstd library. Avoid specifying
23286 # it if it's in CXXFLAGS. Ignore libCrun as
23287 # -library=stlport4 depends on it.
23288 case " $CXX $CXXFLAGS " in
23289 *" -library=stlport4 "*)
23290 solaris_use_stlport4=yes
23292 esac
23294 # Adding this requires a known-good setup of shared libraries for
23295 # Sun compiler versions before 5.6, else PIC objects from an old
23296 # archive will be linked into the output, leading to subtle bugs.
23297 if test "$solaris_use_stlport4" != yes; then
23298 postdeps_CXX='-library=Cstd -library=Crun'
23301 esac
23303 esac
23306 case " $postdeps_CXX " in
23307 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23308 esac
23309 compiler_lib_search_dirs_CXX=
23310 if test -n "${compiler_lib_search_path_CXX}"; then
23311 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23344 lt_prog_compiler_wl_CXX=
23345 lt_prog_compiler_pic_CXX=
23346 lt_prog_compiler_static_CXX=
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23349 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23351 # C++ specific cases for pic, static, wl, etc.
23352 if test "$GXX" = yes; then
23353 lt_prog_compiler_wl_CXX='-Wl,'
23354 lt_prog_compiler_static_CXX='-static'
23356 case $host_os in
23357 aix*)
23358 # All AIX code is PIC.
23359 if test "$host_cpu" = ia64; then
23360 # AIX 5 now supports IA64 processor
23361 lt_prog_compiler_static_CXX='-Bstatic'
23363 lt_prog_compiler_pic_CXX='-fPIC'
23366 amigaos*)
23367 case $host_cpu in
23368 powerpc)
23369 # see comment about AmigaOS4 .so support
23370 lt_prog_compiler_pic_CXX='-fPIC'
23372 m68k)
23373 # FIXME: we need at least 68020 code to build shared libraries, but
23374 # adding the `-m68020' flag to GCC prevents building anything better,
23375 # like `-m68040'.
23376 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23378 esac
23381 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23382 # PIC is the default for these OSes.
23384 mingw* | cygwin* | os2* | pw32* | cegcc*)
23385 # This hack is so that the source file can tell whether it is being
23386 # built for inclusion in a dll (and should export symbols for example).
23387 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23388 # (--disable-auto-import) libraries
23389 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23391 darwin* | rhapsody*)
23392 # PIC is the default on this platform
23393 # Common symbols not allowed in MH_DYLIB files
23394 lt_prog_compiler_pic_CXX='-fno-common'
23396 *djgpp*)
23397 # DJGPP does not support shared libraries at all
23398 lt_prog_compiler_pic_CXX=
23400 haiku*)
23401 # PIC is the default for Haiku.
23402 # The "-static" flag exists, but is broken.
23403 lt_prog_compiler_static_CXX=
23405 interix[3-9]*)
23406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23407 # Instead, we relocate shared libraries at runtime.
23409 sysv4*MP*)
23410 if test -d /usr/nec; then
23411 lt_prog_compiler_pic_CXX=-Kconform_pic
23414 hpux*)
23415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23417 # sets the default TLS model and affects inlining.
23418 case $host_cpu in
23419 hppa*64*)
23422 lt_prog_compiler_pic_CXX='-fPIC'
23424 esac
23426 *qnx* | *nto*)
23427 # QNX uses GNU C++, but need to define -shared option too, otherwise
23428 # it will coredump.
23429 lt_prog_compiler_pic_CXX='-fPIC -shared'
23432 lt_prog_compiler_pic_CXX='-fPIC'
23434 esac
23435 else
23436 case $host_os in
23437 aix[4-9]*)
23438 # All AIX code is PIC.
23439 if test "$host_cpu" = ia64; then
23440 # AIX 5 now supports IA64 processor
23441 lt_prog_compiler_static_CXX='-Bstatic'
23442 else
23443 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23446 chorus*)
23447 case $cc_basename in
23448 cxch68*)
23449 # Green Hills C++ Compiler
23450 # _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"
23452 esac
23454 dgux*)
23455 case $cc_basename in
23456 ec++*)
23457 lt_prog_compiler_pic_CXX='-KPIC'
23459 ghcx*)
23460 # Green Hills C++ Compiler
23461 lt_prog_compiler_pic_CXX='-pic'
23465 esac
23467 freebsd* | dragonfly*)
23468 # FreeBSD uses GNU C++
23470 hpux9* | hpux10* | hpux11*)
23471 case $cc_basename in
23472 CC*)
23473 lt_prog_compiler_wl_CXX='-Wl,'
23474 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23475 if test "$host_cpu" != ia64; then
23476 lt_prog_compiler_pic_CXX='+Z'
23479 aCC*)
23480 lt_prog_compiler_wl_CXX='-Wl,'
23481 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23482 case $host_cpu in
23483 hppa*64*|ia64*)
23484 # +Z the default
23487 lt_prog_compiler_pic_CXX='+Z'
23489 esac
23493 esac
23495 interix*)
23496 # This is c89, which is MS Visual C++ (no shared libs)
23497 # Anyone wants to do a port?
23499 irix5* | irix6* | nonstopux*)
23500 case $cc_basename in
23501 CC*)
23502 lt_prog_compiler_wl_CXX='-Wl,'
23503 lt_prog_compiler_static_CXX='-non_shared'
23504 # CC pic flag -KPIC is the default.
23508 esac
23510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23511 case $cc_basename in
23512 KCC*)
23513 # KAI C++ Compiler
23514 lt_prog_compiler_wl_CXX='--backend -Wl,'
23515 lt_prog_compiler_pic_CXX='-fPIC'
23517 ecpc* )
23518 # old Intel C++ for x86_64 which still supported -KPIC.
23519 lt_prog_compiler_wl_CXX='-Wl,'
23520 lt_prog_compiler_pic_CXX='-KPIC'
23521 lt_prog_compiler_static_CXX='-static'
23523 icpc* )
23524 # Intel C++, used to be incompatible with GCC.
23525 # ICC 10 doesn't accept -KPIC any more.
23526 lt_prog_compiler_wl_CXX='-Wl,'
23527 lt_prog_compiler_pic_CXX='-fPIC'
23528 lt_prog_compiler_static_CXX='-static'
23530 pgCC* | pgcpp*)
23531 # Portland Group C++ compiler
23532 lt_prog_compiler_wl_CXX='-Wl,'
23533 lt_prog_compiler_pic_CXX='-fpic'
23534 lt_prog_compiler_static_CXX='-Bstatic'
23536 cxx*)
23537 # Compaq C++
23538 # Make sure the PIC flag is empty. It appears that all Alpha
23539 # Linux and Compaq Tru64 Unix objects are PIC.
23540 lt_prog_compiler_pic_CXX=
23541 lt_prog_compiler_static_CXX='-non_shared'
23543 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23544 # IBM XL 8.0, 9.0 on PPC and BlueGene
23545 lt_prog_compiler_wl_CXX='-Wl,'
23546 lt_prog_compiler_pic_CXX='-qpic'
23547 lt_prog_compiler_static_CXX='-qstaticlink'
23550 case `$CC -V 2>&1 | sed 5q` in
23551 *Sun\ C*)
23552 # Sun C++ 5.9
23553 lt_prog_compiler_pic_CXX='-KPIC'
23554 lt_prog_compiler_static_CXX='-Bstatic'
23555 lt_prog_compiler_wl_CXX='-Qoption ld '
23557 esac
23559 esac
23561 lynxos*)
23563 m88k*)
23565 mvs*)
23566 case $cc_basename in
23567 cxx*)
23568 lt_prog_compiler_pic_CXX='-W c,exportall'
23572 esac
23574 netbsd*)
23576 *qnx* | *nto*)
23577 # QNX uses GNU C++, but need to define -shared option too, otherwise
23578 # it will coredump.
23579 lt_prog_compiler_pic_CXX='-fPIC -shared'
23581 osf3* | osf4* | osf5*)
23582 case $cc_basename in
23583 KCC*)
23584 lt_prog_compiler_wl_CXX='--backend -Wl,'
23586 RCC*)
23587 # Rational C++ 2.4.1
23588 lt_prog_compiler_pic_CXX='-pic'
23590 cxx*)
23591 # Digital/Compaq C++
23592 lt_prog_compiler_wl_CXX='-Wl,'
23593 # Make sure the PIC flag is empty. It appears that all Alpha
23594 # Linux and Compaq Tru64 Unix objects are PIC.
23595 lt_prog_compiler_pic_CXX=
23596 lt_prog_compiler_static_CXX='-non_shared'
23600 esac
23602 psos*)
23604 solaris*)
23605 case $cc_basename in
23606 CC*)
23607 # Sun C++ 4.2, 5.x and Centerline C++
23608 lt_prog_compiler_pic_CXX='-KPIC'
23609 lt_prog_compiler_static_CXX='-Bstatic'
23610 lt_prog_compiler_wl_CXX='-Qoption ld '
23612 gcx*)
23613 # Green Hills C++ Compiler
23614 lt_prog_compiler_pic_CXX='-PIC'
23618 esac
23620 sunos4*)
23621 case $cc_basename in
23622 CC*)
23623 # Sun C++ 4.x
23624 lt_prog_compiler_pic_CXX='-pic'
23625 lt_prog_compiler_static_CXX='-Bstatic'
23627 lcc*)
23628 # Lucid
23629 lt_prog_compiler_pic_CXX='-pic'
23633 esac
23635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23636 case $cc_basename in
23637 CC*)
23638 lt_prog_compiler_wl_CXX='-Wl,'
23639 lt_prog_compiler_pic_CXX='-KPIC'
23640 lt_prog_compiler_static_CXX='-Bstatic'
23642 esac
23644 tandem*)
23645 case $cc_basename in
23646 NCC*)
23647 # NonStop-UX NCC 3.20
23648 lt_prog_compiler_pic_CXX='-KPIC'
23652 esac
23654 vxworks*)
23657 lt_prog_compiler_can_build_shared_CXX=no
23659 esac
23662 case $host_os in
23663 # For platforms which do not support PIC, -DPIC is meaningless:
23664 *djgpp*)
23665 lt_prog_compiler_pic_CXX=
23668 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23670 esac
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23672 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23677 # Check to make sure the PIC flag actually works.
23679 if test -n "$lt_prog_compiler_pic_CXX"; then
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23682 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 lt_cv_prog_compiler_pic_works_CXX=no
23686 ac_outfile=conftest.$ac_objext
23687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23688 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23689 # Insert the option either (1) after the last *FLAGS variable, or
23690 # (2) before a word containing "conftest.", or (3) at the end.
23691 # Note that $ac_compile itself does not contain backslashes and begins
23692 # with a dollar sign (not a hyphen), so the echo should work correctly.
23693 # The option is referenced via a variable to avoid confusing sed.
23694 lt_compile=`echo "$ac_compile" | $SED \
23695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23697 -e 's:$: $lt_compiler_flag:'`
23698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23699 (eval "$lt_compile" 2>conftest.err)
23700 ac_status=$?
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 if (exit $ac_status) && test -s "$ac_outfile"; then
23704 # The compiler can only warn and ignore the option if not recognized
23705 # So say no if there are warnings other than the usual output.
23706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23709 lt_cv_prog_compiler_pic_works_CXX=yes
23712 $RM conftest*
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23716 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23718 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23719 case $lt_prog_compiler_pic_CXX in
23720 "" | " "*) ;;
23721 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23722 esac
23723 else
23724 lt_prog_compiler_pic_CXX=
23725 lt_prog_compiler_can_build_shared_CXX=no
23733 # Check to make sure the static flag actually works.
23735 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23737 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23738 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23739 $as_echo_n "(cached) " >&6
23740 else
23741 lt_cv_prog_compiler_static_works_CXX=no
23742 save_LDFLAGS="$LDFLAGS"
23743 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23746 # The linker can only warn and ignore the option if not recognized
23747 # So say no if there are warnings
23748 if test -s conftest.err; then
23749 # Append any errors to the config.log.
23750 cat conftest.err 1>&5
23751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23753 if diff conftest.exp conftest.er2 >/dev/null; then
23754 lt_cv_prog_compiler_static_works_CXX=yes
23756 else
23757 lt_cv_prog_compiler_static_works_CXX=yes
23760 $RM -r conftest*
23761 LDFLAGS="$save_LDFLAGS"
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23765 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23767 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23769 else
23770 lt_prog_compiler_static_CXX=
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23777 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23778 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23779 $as_echo_n "(cached) " >&6
23780 else
23781 lt_cv_prog_compiler_c_o_CXX=no
23782 $RM -r conftest 2>/dev/null
23783 mkdir conftest
23784 cd conftest
23785 mkdir out
23786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23788 lt_compiler_flag="-o out/conftest2.$ac_objext"
23789 # Insert the option either (1) after the last *FLAGS variable, or
23790 # (2) before a word containing "conftest.", or (3) at the end.
23791 # Note that $ac_compile itself does not contain backslashes and begins
23792 # with a dollar sign (not a hyphen), so the echo should work correctly.
23793 lt_compile=`echo "$ac_compile" | $SED \
23794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23796 -e 's:$: $lt_compiler_flag:'`
23797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23798 (eval "$lt_compile" 2>out/conftest.err)
23799 ac_status=$?
23800 cat out/conftest.err >&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23803 then
23804 # The compiler can only warn and ignore the option if not recognized
23805 # So say no if there are warnings
23806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23809 lt_cv_prog_compiler_c_o_CXX=yes
23812 chmod u+w . 2>&5
23813 $RM conftest*
23814 # SGI C++ compiler will create directory out/ii_files/ for
23815 # template instantiation
23816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23817 $RM out/* && rmdir out
23818 cd ..
23819 $RM -r conftest
23820 $RM conftest*
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23824 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23830 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833 lt_cv_prog_compiler_c_o_CXX=no
23834 $RM -r conftest 2>/dev/null
23835 mkdir conftest
23836 cd conftest
23837 mkdir out
23838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23840 lt_compiler_flag="-o out/conftest2.$ac_objext"
23841 # Insert the option either (1) after the last *FLAGS variable, or
23842 # (2) before a word containing "conftest.", or (3) at the end.
23843 # Note that $ac_compile itself does not contain backslashes and begins
23844 # with a dollar sign (not a hyphen), so the echo should work correctly.
23845 lt_compile=`echo "$ac_compile" | $SED \
23846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23848 -e 's:$: $lt_compiler_flag:'`
23849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23850 (eval "$lt_compile" 2>out/conftest.err)
23851 ac_status=$?
23852 cat out/conftest.err >&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23855 then
23856 # The compiler can only warn and ignore the option if not recognized
23857 # So say no if there are warnings
23858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23861 lt_cv_prog_compiler_c_o_CXX=yes
23864 chmod u+w . 2>&5
23865 $RM conftest*
23866 # SGI C++ compiler will create directory out/ii_files/ for
23867 # template instantiation
23868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23869 $RM out/* && rmdir out
23870 cd ..
23871 $RM -r conftest
23872 $RM conftest*
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23876 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23881 hard_links="nottested"
23882 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
23883 # do not overwrite the value of need_locks provided by the user
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23885 $as_echo_n "checking if we can lock with hard links... " >&6; }
23886 hard_links=yes
23887 $RM conftest*
23888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23889 touch conftest.a
23890 ln conftest.a conftest.b 2>&5 || hard_links=no
23891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23893 $as_echo "$hard_links" >&6; }
23894 if test "$hard_links" = no; then
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23896 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23897 need_locks=warn
23899 else
23900 need_locks=no
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23906 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23909 case $host_os in
23910 aix[4-9]*)
23911 # If we're using GNU nm, then we don't want the "-C" option.
23912 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23913 # Also, AIX nm treats weak defined symbols like other global defined
23914 # symbols, whereas GNU nm marks them as "W".
23915 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23916 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'
23917 else
23918 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'
23921 pw32*)
23922 export_symbols_cmds_CXX="$ltdll_cmds"
23924 cygwin* | mingw* | cegcc*)
23925 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'
23928 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23930 esac
23931 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23934 $as_echo "$ld_shlibs_CXX" >&6; }
23935 test "$ld_shlibs_CXX" = no && can_build_shared=no
23937 with_gnu_ld_CXX=$with_gnu_ld
23945 # Do we need to explicitly link libc?
23947 case "x$archive_cmds_need_lc_CXX" in
23948 x|xyes)
23949 # Assume -lc should be added
23950 archive_cmds_need_lc_CXX=yes
23952 if test "$enable_shared" = yes && test "$GCC" = yes; then
23953 case $archive_cmds_CXX in
23954 *'~'*)
23955 # FIXME: we may have to deal with multi-command sequences.
23957 '$CC '*)
23958 # Test whether the compiler implicitly links with -lc since on some
23959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23960 # to ld, don't add -lc before -lgcc.
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23962 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23963 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
23964 $as_echo_n "(cached) " >&6
23965 else
23966 $RM conftest*
23967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23970 (eval $ac_compile) 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; } 2>conftest.err; then
23974 soname=conftest
23975 lib=conftest
23976 libobjs=conftest.$ac_objext
23977 deplibs=
23978 wl=$lt_prog_compiler_wl_CXX
23979 pic_flag=$lt_prog_compiler_pic_CXX
23980 compiler_flags=-v
23981 linker_flags=-v
23982 verstring=
23983 output_objdir=.
23984 libname=conftest
23985 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23986 allow_undefined_flag_CXX=
23987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23988 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23989 ac_status=$?
23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991 test $ac_status = 0; }
23992 then
23993 lt_cv_archive_cmds_need_lc_CXX=no
23994 else
23995 lt_cv_archive_cmds_need_lc_CXX=yes
23997 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23998 else
23999 cat conftest.err 1>&5
24001 $RM conftest*
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24005 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24006 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24008 esac
24011 esac
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24077 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24079 library_names_spec=
24080 libname_spec='lib$name'
24081 soname_spec=
24082 shrext_cmds=".so"
24083 postinstall_cmds=
24084 postuninstall_cmds=
24085 finish_cmds=
24086 finish_eval=
24087 shlibpath_var=
24088 shlibpath_overrides_runpath=unknown
24089 version_type=none
24090 dynamic_linker="$host_os ld.so"
24091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24092 need_lib_prefix=unknown
24093 hardcode_into_libs=no
24095 # when you set need_version to no, make sure it does not cause -set_version
24096 # flags to be left without arguments
24097 need_version=unknown
24099 case $host_os in
24100 aix3*)
24101 version_type=linux
24102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24103 shlibpath_var=LIBPATH
24105 # AIX 3 has no versioning support, so we append a major version to the name.
24106 soname_spec='${libname}${release}${shared_ext}$major'
24109 aix[4-9]*)
24110 version_type=linux
24111 need_lib_prefix=no
24112 need_version=no
24113 hardcode_into_libs=yes
24114 if test "$host_cpu" = ia64; then
24115 # AIX 5 supports IA64
24116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24117 shlibpath_var=LD_LIBRARY_PATH
24118 else
24119 # With GCC up to 2.95.x, collect2 would create an import file
24120 # for dependence libraries. The import file would start with
24121 # the line `#! .'. This would cause the generated library to
24122 # depend on `.', always an invalid library. This was fixed in
24123 # development snapshots of GCC prior to 3.0.
24124 case $host_os in
24125 aix4 | aix4.[01] | aix4.[01].*)
24126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24127 echo ' yes '
24128 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24130 else
24131 can_build_shared=no
24134 esac
24135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24136 # soname into executable. Probably we can add versioning support to
24137 # collect2, so additional links can be useful in future.
24138 if test "$aix_use_runtimelinking" = yes; then
24139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24140 # instead of lib<name>.a to let people know that these are not
24141 # typical AIX shared libraries.
24142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24143 else
24144 # We preserve .a as extension for shared libraries through AIX4.2
24145 # and later when we are not doing run time linking.
24146 library_names_spec='${libname}${release}.a $libname.a'
24147 soname_spec='${libname}${release}${shared_ext}$major'
24149 shlibpath_var=LIBPATH
24153 amigaos*)
24154 case $host_cpu in
24155 powerpc)
24156 # Since July 2007 AmigaOS4 officially supports .so libraries.
24157 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24160 m68k)
24161 library_names_spec='$libname.ixlibrary $libname.a'
24162 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24163 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'
24165 esac
24168 beos*)
24169 library_names_spec='${libname}${shared_ext}'
24170 dynamic_linker="$host_os ld.so"
24171 shlibpath_var=LIBRARY_PATH
24174 bsdi[45]*)
24175 version_type=linux
24176 need_version=no
24177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24178 soname_spec='${libname}${release}${shared_ext}$major'
24179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24180 shlibpath_var=LD_LIBRARY_PATH
24181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24183 # the default ld.so.conf also contains /usr/contrib/lib and
24184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24185 # libtool to hard-code these into programs
24188 cygwin* | mingw* | pw32* | cegcc*)
24189 version_type=windows
24190 shrext_cmds=".dll"
24191 need_version=no
24192 need_lib_prefix=no
24194 case $GCC,$host_os in
24195 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24196 library_names_spec='$libname.dll.a'
24197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24198 postinstall_cmds='base_file=`basename \${file}`~
24199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24200 dldir=$destdir/`dirname \$dlpath`~
24201 test -d \$dldir || mkdir -p \$dldir~
24202 $install_prog $dir/$dlname \$dldir/$dlname~
24203 chmod a+x \$dldir/$dlname~
24204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24208 dlpath=$dir/\$dldll~
24209 $RM \$dlpath'
24210 shlibpath_overrides_runpath=yes
24212 case $host_os in
24213 cygwin*)
24214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24218 mingw* | cegcc*)
24219 # MinGW DLLs use traditional 'lib' prefix
24220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24222 pw32*)
24223 # pw32 DLLs use 'pw' prefix rather than 'lib'
24224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24226 esac
24230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24232 esac
24233 dynamic_linker='Win32 ld.exe'
24234 # FIXME: first we should search . and the directory the executable is in
24235 shlibpath_var=PATH
24238 darwin* | rhapsody*)
24239 dynamic_linker="$host_os dyld"
24240 version_type=darwin
24241 need_lib_prefix=no
24242 need_version=no
24243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24244 soname_spec='${libname}${release}${major}$shared_ext'
24245 shlibpath_overrides_runpath=yes
24246 shlibpath_var=DYLD_LIBRARY_PATH
24247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24252 dgux*)
24253 version_type=linux
24254 need_lib_prefix=no
24255 need_version=no
24256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24257 soname_spec='${libname}${release}${shared_ext}$major'
24258 shlibpath_var=LD_LIBRARY_PATH
24261 freebsd* | dragonfly*)
24262 # DragonFly does not have aout. When/if they implement a new
24263 # versioning mechanism, adjust this.
24264 if test -x /usr/bin/objformat; then
24265 objformat=`/usr/bin/objformat`
24266 else
24267 case $host_os in
24268 freebsd[23].*) objformat=aout ;;
24269 *) objformat=elf ;;
24270 esac
24272 version_type=freebsd-$objformat
24273 case $version_type in
24274 freebsd-elf*)
24275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24276 need_version=no
24277 need_lib_prefix=no
24279 freebsd-*)
24280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24281 need_version=yes
24283 esac
24284 shlibpath_var=LD_LIBRARY_PATH
24285 case $host_os in
24286 freebsd2.*)
24287 shlibpath_overrides_runpath=yes
24289 freebsd3.[01]* | freebsdelf3.[01]*)
24290 shlibpath_overrides_runpath=yes
24291 hardcode_into_libs=yes
24293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24295 shlibpath_overrides_runpath=no
24296 hardcode_into_libs=yes
24298 *) # from 4.6 on, and DragonFly
24299 shlibpath_overrides_runpath=yes
24300 hardcode_into_libs=yes
24302 esac
24305 haiku*)
24306 version_type=linux
24307 need_lib_prefix=no
24308 need_version=no
24309 dynamic_linker="$host_os runtime_loader"
24310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24311 soname_spec='${libname}${release}${shared_ext}$major'
24312 shlibpath_var=LIBRARY_PATH
24313 shlibpath_overrides_runpath=yes
24314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24315 hardcode_into_libs=yes
24318 hpux9* | hpux10* | hpux11*)
24319 # Give a soname corresponding to the major version so that dld.sl refuses to
24320 # link against other versions.
24321 version_type=sunos
24322 need_lib_prefix=no
24323 need_version=no
24324 case $host_cpu in
24325 ia64*)
24326 shrext_cmds='.so'
24327 hardcode_into_libs=yes
24328 dynamic_linker="$host_os dld.so"
24329 shlibpath_var=LD_LIBRARY_PATH
24330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24332 soname_spec='${libname}${release}${shared_ext}$major'
24333 if test "X$HPUX_IA64_MODE" = X32; then
24334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24335 else
24336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24340 hppa*64*)
24341 shrext_cmds='.sl'
24342 hardcode_into_libs=yes
24343 dynamic_linker="$host_os dld.sl"
24344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24347 soname_spec='${libname}${release}${shared_ext}$major'
24348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24352 shrext_cmds='.sl'
24353 dynamic_linker="$host_os dld.sl"
24354 shlibpath_var=SHLIB_PATH
24355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24357 soname_spec='${libname}${release}${shared_ext}$major'
24359 esac
24360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24361 postinstall_cmds='chmod 555 $lib'
24362 # or fails outright, so override atomically:
24363 install_override_mode=555
24366 interix[3-9]*)
24367 version_type=linux
24368 need_lib_prefix=no
24369 need_version=no
24370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24371 soname_spec='${libname}${release}${shared_ext}$major'
24372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24373 shlibpath_var=LD_LIBRARY_PATH
24374 shlibpath_overrides_runpath=no
24375 hardcode_into_libs=yes
24378 irix5* | irix6* | nonstopux*)
24379 case $host_os in
24380 nonstopux*) version_type=nonstopux ;;
24382 if test "$lt_cv_prog_gnu_ld" = yes; then
24383 version_type=linux
24384 else
24385 version_type=irix
24386 fi ;;
24387 esac
24388 need_lib_prefix=no
24389 need_version=no
24390 soname_spec='${libname}${release}${shared_ext}$major'
24391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24392 case $host_os in
24393 irix5* | nonstopux*)
24394 libsuff= shlibsuff=
24397 case $LD in # libtool.m4 will add one of these switches to LD
24398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24399 libsuff= shlibsuff= libmagic=32-bit;;
24400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24401 libsuff=32 shlibsuff=N32 libmagic=N32;;
24402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24404 *) libsuff= shlibsuff= libmagic=never-match;;
24405 esac
24407 esac
24408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24409 shlibpath_overrides_runpath=no
24410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24412 hardcode_into_libs=yes
24415 # No shared lib support for Linux oldld, aout, or coff.
24416 linux*oldld* | linux*aout* | linux*coff*)
24417 dynamic_linker=no
24420 # This must be Linux ELF.
24422 # uclinux* changes (here and below) have been submitted to the libtool
24423 # project, but have not yet been accepted: they are GCC-local changes
24424 # for the time being. (See
24425 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24427 version_type=linux
24428 need_lib_prefix=no
24429 need_version=no
24430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24431 soname_spec='${libname}${release}${shared_ext}$major'
24432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24433 shlibpath_var=LD_LIBRARY_PATH
24434 shlibpath_overrides_runpath=no
24436 # Some binutils ld are patched to set DT_RUNPATH
24437 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24438 $as_echo_n "(cached) " >&6
24439 else
24440 lt_cv_shlibpath_overrides_runpath=no
24441 save_LDFLAGS=$LDFLAGS
24442 save_libdir=$libdir
24443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h. */
24449 main ()
24453 return 0;
24455 _ACEOF
24456 if ac_fn_cxx_try_link "$LINENO"; then :
24457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24458 lt_cv_shlibpath_overrides_runpath=yes
24461 rm -f core conftest.err conftest.$ac_objext \
24462 conftest$ac_exeext conftest.$ac_ext
24463 LDFLAGS=$save_LDFLAGS
24464 libdir=$save_libdir
24468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24470 # This implies no fast_install, which is unacceptable.
24471 # Some rework will be needed to allow for fast_install
24472 # before this can be enabled.
24473 hardcode_into_libs=yes
24475 # Append ld.so.conf contents to the search path
24476 if test -f /etc/ld.so.conf; then
24477 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' ' '`
24478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24481 # We used to test for /lib/ld.so.1 and disable shared libraries on
24482 # powerpc, because MkLinux only supported shared libraries with the
24483 # GNU dynamic linker. Since this was broken with cross compilers,
24484 # most powerpc-linux boxes support dynamic linking these days and
24485 # people can always --disable-shared, the test was removed, and we
24486 # assume the GNU/Linux dynamic linker is in use.
24487 dynamic_linker='GNU/Linux ld.so'
24490 netbsd*)
24491 version_type=sunos
24492 need_lib_prefix=no
24493 need_version=no
24494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24497 dynamic_linker='NetBSD (a.out) ld.so'
24498 else
24499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24500 soname_spec='${libname}${release}${shared_ext}$major'
24501 dynamic_linker='NetBSD ld.elf_so'
24503 shlibpath_var=LD_LIBRARY_PATH
24504 shlibpath_overrides_runpath=yes
24505 hardcode_into_libs=yes
24508 newsos6)
24509 version_type=linux
24510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24511 shlibpath_var=LD_LIBRARY_PATH
24512 shlibpath_overrides_runpath=yes
24515 *nto* | *qnx*)
24516 version_type=qnx
24517 need_lib_prefix=no
24518 need_version=no
24519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24520 soname_spec='${libname}${release}${shared_ext}$major'
24521 shlibpath_var=LD_LIBRARY_PATH
24522 shlibpath_overrides_runpath=no
24523 hardcode_into_libs=yes
24524 dynamic_linker='ldqnx.so'
24527 openbsd*)
24528 version_type=sunos
24529 sys_lib_dlsearch_path_spec="/usr/lib"
24530 need_lib_prefix=no
24531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24532 case $host_os in
24533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24534 *) need_version=no ;;
24535 esac
24536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24538 shlibpath_var=LD_LIBRARY_PATH
24539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24540 case $host_os in
24541 openbsd2.[89] | openbsd2.[89].*)
24542 shlibpath_overrides_runpath=no
24545 shlibpath_overrides_runpath=yes
24547 esac
24548 else
24549 shlibpath_overrides_runpath=yes
24553 os2*)
24554 libname_spec='$name'
24555 shrext_cmds=".dll"
24556 need_lib_prefix=no
24557 library_names_spec='$libname${shared_ext} $libname.a'
24558 dynamic_linker='OS/2 ld.exe'
24559 shlibpath_var=LIBPATH
24562 osf3* | osf4* | osf5*)
24563 version_type=osf
24564 need_lib_prefix=no
24565 need_version=no
24566 soname_spec='${libname}${release}${shared_ext}$major'
24567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24568 shlibpath_var=LD_LIBRARY_PATH
24569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24573 rdos*)
24574 dynamic_linker=no
24577 solaris*)
24578 version_type=linux
24579 need_lib_prefix=no
24580 need_version=no
24581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24582 soname_spec='${libname}${release}${shared_ext}$major'
24583 shlibpath_var=LD_LIBRARY_PATH
24584 shlibpath_overrides_runpath=yes
24585 hardcode_into_libs=yes
24586 # ldd complains unless libraries are executable
24587 postinstall_cmds='chmod +x $lib'
24590 sunos4*)
24591 version_type=sunos
24592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24594 shlibpath_var=LD_LIBRARY_PATH
24595 shlibpath_overrides_runpath=yes
24596 if test "$with_gnu_ld" = yes; then
24597 need_lib_prefix=no
24599 need_version=yes
24602 sysv4 | sysv4.3*)
24603 version_type=linux
24604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24605 soname_spec='${libname}${release}${shared_ext}$major'
24606 shlibpath_var=LD_LIBRARY_PATH
24607 case $host_vendor in
24608 sni)
24609 shlibpath_overrides_runpath=no
24610 need_lib_prefix=no
24611 runpath_var=LD_RUN_PATH
24613 siemens)
24614 need_lib_prefix=no
24616 motorola)
24617 need_lib_prefix=no
24618 need_version=no
24619 shlibpath_overrides_runpath=no
24620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24622 esac
24625 sysv4*MP*)
24626 if test -d /usr/nec ;then
24627 version_type=linux
24628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24629 soname_spec='$libname${shared_ext}.$major'
24630 shlibpath_var=LD_LIBRARY_PATH
24634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24635 version_type=freebsd-elf
24636 need_lib_prefix=no
24637 need_version=no
24638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24639 soname_spec='${libname}${release}${shared_ext}$major'
24640 shlibpath_var=LD_LIBRARY_PATH
24641 shlibpath_overrides_runpath=yes
24642 hardcode_into_libs=yes
24643 if test "$with_gnu_ld" = yes; then
24644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24645 else
24646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24647 case $host_os in
24648 sco3.2v5*)
24649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24651 esac
24653 sys_lib_dlsearch_path_spec='/usr/lib'
24656 tpf*)
24657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24658 version_type=linux
24659 need_lib_prefix=no
24660 need_version=no
24661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24662 shlibpath_var=LD_LIBRARY_PATH
24663 shlibpath_overrides_runpath=no
24664 hardcode_into_libs=yes
24667 uts4*)
24668 version_type=linux
24669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24670 soname_spec='${libname}${release}${shared_ext}$major'
24671 shlibpath_var=LD_LIBRARY_PATH
24674 # Shared libraries for VwWorks, >= 7 only at this stage
24675 # and (fpic) still incompatible with "large" code models
24676 # in a few configurations. Only for RTP mode in any case,
24677 # and upon explicit request at configure time.
24678 vxworks7*)
24679 dynamic_linker=no
24680 case ${with_multisubdir}-${enable_shared} in
24681 *large*)
24683 *mrtp*-yes)
24684 version_type=linux
24685 need_lib_prefix=no
24686 need_version=no
24687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24688 soname_spec='${libname}${release}${shared_ext}$major'
24689 dynamic_linker="$host_os module_loader"
24691 esac
24694 dynamic_linker=no
24696 esac
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24698 $as_echo "$dynamic_linker" >&6; }
24699 test "$dynamic_linker" = no && can_build_shared=no
24701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24702 if test "$GCC" = yes; then
24703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24706 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24707 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24709 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24710 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24751 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24752 hardcode_action_CXX=
24753 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24754 test -n "$runpath_var_CXX" ||
24755 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24757 # We can hardcode non-existent directories.
24758 if test "$hardcode_direct_CXX" != no &&
24759 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24760 # have to relink, otherwise we might link with an installed library
24761 # when we should be linking with a yet-to-be-installed one
24762 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24763 test "$hardcode_minus_L_CXX" != no; then
24764 # Linking always hardcodes the temporary library directory.
24765 hardcode_action_CXX=relink
24766 else
24767 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24768 hardcode_action_CXX=immediate
24770 else
24771 # We cannot hardcode anything, or else we can only hardcode existing
24772 # directories.
24773 hardcode_action_CXX=unsupported
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24776 $as_echo "$hardcode_action_CXX" >&6; }
24778 if test "$hardcode_action_CXX" = relink ||
24779 test "$inherit_rpath_CXX" = yes; then
24780 # Fast installation is not supported
24781 enable_fast_install=no
24782 elif test "$shlibpath_overrides_runpath" = yes ||
24783 test "$enable_shared" = no; then
24784 # Fast installation is not necessary
24785 enable_fast_install=needless
24794 fi # test -n "$compiler"
24796 CC=$lt_save_CC
24797 LDCXX=$LD
24798 LD=$lt_save_LD
24799 GCC=$lt_save_GCC
24800 with_gnu_ld=$lt_save_with_gnu_ld
24801 lt_cv_path_LDCXX=$lt_cv_path_LD
24802 lt_cv_path_LD=$lt_save_path_LD
24803 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24804 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24805 fi # test "$_lt_caught_CXX_error" != yes
24807 ac_ext=cpp
24808 ac_cpp='$CXXCPP $CPPFLAGS'
24809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24828 # Only expand once:
24834 if test x$enable_darwin_at_rpath = xyes; then
24835 ENABLE_DARWIN_AT_RPATH_TRUE=
24836 ENABLE_DARWIN_AT_RPATH_FALSE='#'
24837 else
24838 ENABLE_DARWIN_AT_RPATH_TRUE='#'
24839 ENABLE_DARWIN_AT_RPATH_FALSE=
24842 DARWIN_DO_EXTRA_RPATH=0
24844 # Check whether --with-darwin-extra-rpath was given.
24845 if test "${with_darwin_extra_rpath+set}" = set; then :
24846 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
24847 DARWIN_ADD_RPATH="$withval"
24848 DARWIN_DO_EXTRA_RPATH=1
24853 cat >>confdefs.h <<_ACEOF
24854 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
24855 _ACEOF
24858 cat >>confdefs.h <<_ACEOF
24859 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
24860 _ACEOF
24863 # Identify the assembler which will work hand-in-glove with the newly
24864 # built GCC, so that we can examine its features. This is the assembler
24865 # which will be driven by the driver program.
24867 # If build != host, and we aren't building gas in-tree, we identify a
24868 # build->target assembler and hope that it will have the same features
24869 # as the host->target assembler we'll be using.
24870 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24872 if ${gcc_cv_as+:} false; then :
24874 else
24876 if test -x "$DEFAULT_ASSEMBLER"; then
24877 gcc_cv_as="$DEFAULT_ASSEMBLER"
24878 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
24879 && test -f ../gas/Makefile \
24880 && test x$build = x$host; then
24881 gcc_cv_as=../gas/as-new$build_exeext
24882 elif test -x as$build_exeext; then
24883 # Build using assembler in the current directory.
24884 gcc_cv_as=./as$build_exeext
24885 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
24886 gcc_cv_as="$AS_FOR_TARGET"
24887 else
24888 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24889 set dummy $AS_FOR_TARGET; ac_word=$2
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24891 $as_echo_n "checking for $ac_word... " >&6; }
24892 if ${ac_cv_path_gcc_cv_as+:} false; then :
24893 $as_echo_n "(cached) " >&6
24894 else
24895 case $gcc_cv_as in
24896 [\\/]* | ?:[\\/]*)
24897 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
24900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24901 for as_dir in $PATH
24903 IFS=$as_save_IFS
24904 test -z "$as_dir" && as_dir=.
24905 for ac_exec_ext in '' $ac_executable_extensions; do
24906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24907 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
24908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24909 break 2
24911 done
24912 done
24913 IFS=$as_save_IFS
24916 esac
24918 gcc_cv_as=$ac_cv_path_gcc_cv_as
24919 if test -n "$gcc_cv_as"; then
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
24921 $as_echo "$gcc_cv_as" >&6; }
24922 else
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24924 $as_echo "no" >&6; }
24931 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
24933 case "$ORIGINAL_AS_FOR_TARGET" in
24934 ./as | ./as$build_exeext) ;;
24935 *) ac_config_files="$ac_config_files as:exec-tool.in"
24937 esac
24939 default_ld=
24940 # Check whether --enable-ld was given.
24941 if test "${enable_ld+set}" = set; then :
24942 enableval=$enable_ld; case "${enableval}" in
24944 default_ld=ld.gold
24946 esac
24950 install_gold_as_default=no
24951 # Check whether --enable-gold was given.
24952 if test "${enable_gold+set}" = set; then :
24953 enableval=$enable_gold; case "${enableval}" in
24954 default)
24955 install_gold_as_default=yes
24957 yes)
24958 if test x${default_ld} != x; then
24959 install_gold_as_default=yes
24965 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
24967 esac
24971 # Identify the linker which will work hand-in-glove with the newly
24972 # built GCC, so that we can examine its features. This is the linker
24973 # which will be driven by the driver program.
24975 # If build != host, and we aren't building gas in-tree, we identify a
24976 # build->target linker and hope that it will have the same features
24977 # as the host->target linker we'll be using.
24978 gcc_cv_gld_major_version=
24979 gcc_cv_gld_minor_version=
24980 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
24981 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
24982 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24984 if ${gcc_cv_ld+:} false; then :
24986 else
24988 if test -x "$DEFAULT_LINKER"; then
24989 gcc_cv_ld="$DEFAULT_LINKER"
24990 elif test $install_gold_as_default = yes \
24991 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
24992 && test -f ../gold/Makefile \
24993 && test x$build = x$host; then
24994 gcc_cv_ld=../gold/ld-new$build_exeext
24995 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
24996 && test -f ../ld/Makefile \
24997 && test x$build = x$host; then
24998 gcc_cv_ld=../ld/ld-new$build_exeext
24999 elif test -x collect-ld$build_exeext; then
25000 # Build using linker in the current directory.
25001 gcc_cv_ld=./collect-ld$build_exeext
25002 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25003 gcc_cv_ld="$LD_FOR_TARGET"
25004 else
25005 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25006 set dummy $LD_FOR_TARGET; ac_word=$2
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25008 $as_echo_n "checking for $ac_word... " >&6; }
25009 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 case $gcc_cv_ld in
25013 [\\/]* | ?:[\\/]*)
25014 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25018 for as_dir in $PATH
25020 IFS=$as_save_IFS
25021 test -z "$as_dir" && as_dir=.
25022 for ac_exec_ext in '' $ac_executable_extensions; do
25023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25024 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25026 break 2
25028 done
25029 done
25030 IFS=$as_save_IFS
25033 esac
25035 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25036 if test -n "$gcc_cv_ld"; then
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25038 $as_echo "$gcc_cv_ld" >&6; }
25039 else
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25041 $as_echo "no" >&6; }
25048 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25049 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25050 # if the PLUGIN_LD is set ld-new, just have it as ld
25051 # as that is the installed named.
25052 if test x$PLUGIN_LD_SUFFIX = xld-new \
25053 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25054 PLUGIN_LD_SUFFIX=ld
25057 # Check whether --with-plugin-ld was given.
25058 if test "${with_plugin_ld+set}" = set; then :
25059 withval=$with_plugin_ld; if test x"$withval" != x; then
25060 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25061 PLUGIN_LD_SUFFIX="$withval"
25067 cat >>confdefs.h <<_ACEOF
25068 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25069 _ACEOF
25072 # Check to see if we are using gold instead of ld
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25074 $as_echo_n "checking whether we are using gold... " >&6; }
25075 ld_is_gold=no
25076 if test x$gcc_cv_ld != x; then
25077 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25078 | grep "GNU gold" > /dev/null; then
25079 ld_is_gold=yes
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25083 $as_echo "$ld_is_gold" >&6; }
25085 # Check to see if we are using mold instead of ld
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25087 $as_echo_n "checking whether we are using mold... " >&6; }
25088 ld_is_mold=no
25089 if test x$gcc_cv_ld != x; then
25090 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25091 | grep "mold" > /dev/null; then
25092 ld_is_mold=yes
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25096 $as_echo "$ld_is_mold" >&6; }
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25100 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25101 # Check to see if default ld is not gold, but gold is
25102 # available and has support for split stack. If gcc was configured
25103 # with gold then no checking is done.
25105 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25107 # For platforms other than powerpc64*, enable as appropriate.
25109 gold_non_default=no
25110 ld_gold=`which ${gcc_cv_ld}.gold`
25111 # Make sure this gold has minimal split stack support
25112 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25113 ld_vers=`$ld_gold --version | sed 1q`
25114 gold_vers=`echo $ld_vers | sed -n \
25115 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25116 case $target in
25117 # check that the gold version contains the complete split stack support
25118 # on powerpc64 big and little endian
25119 powerpc64*-*-*)
25120 case "$gold_vers" in
25121 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25123 *) gold_non_default=no
25125 esac
25127 esac
25129 if test $gold_non_default = yes; then
25131 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25136 $as_echo "$gold_non_default" >&6; }
25138 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25140 case "$ORIGINAL_LD_FOR_TARGET" in
25141 ./collect-ld | ./collect-ld$build_exeext) ;;
25142 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25144 esac
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25147 $as_echo_n "checking what linker to use... " >&6; }
25148 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25149 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25150 # Single tree build which includes ld. We want to prefer it
25151 # over whatever linker top-level may have detected, since
25152 # we'll use what we're building after installation anyway.
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25154 $as_echo "newly built ld" >&6; }
25155 in_tree_ld=yes
25156 in_tree_ld_is_elf=no
25157 if (grep 'EMUL = .*elf' ../ld/Makefile \
25158 || grep 'EMUL = .*linux' ../ld/Makefile \
25159 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25160 in_tree_ld_is_elf=yes
25161 elif test "$ld_is_gold" = yes; then
25162 in_tree_ld_is_elf=yes
25164 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
25166 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25167 if test x$gcc_cv_gld_version != x; then
25168 break
25170 done
25171 case $gcc_cv_gld_version in
25172 VERSION=[0-9]*) ;;
25173 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25174 esac
25175 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25176 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25177 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25178 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25179 else
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25181 $as_echo "$gcc_cv_ld" >&6; }
25182 in_tree_ld=no
25183 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25184 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25185 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25191 # Figure out what nm we will be using.
25192 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25193 if ${gcc_cv_nm+:} false; then :
25195 else
25197 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25198 && test -f ../binutils/Makefile \
25199 && test x$build = x$host; then
25200 gcc_cv_nm=../binutils/nm-new$build_exeext
25201 elif test -x nm$build_exeext; then
25202 gcc_cv_nm=./nm$build_exeext
25203 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25204 gcc_cv_nm="$NM_FOR_TARGET"
25205 else
25206 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25207 set dummy $NM_FOR_TARGET; ac_word=$2
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25209 $as_echo_n "checking for $ac_word... " >&6; }
25210 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25211 $as_echo_n "(cached) " >&6
25212 else
25213 case $gcc_cv_nm in
25214 [\\/]* | ?:[\\/]*)
25215 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25219 for as_dir in $PATH
25221 IFS=$as_save_IFS
25222 test -z "$as_dir" && as_dir=.
25223 for ac_exec_ext in '' $ac_executable_extensions; do
25224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25225 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25227 break 2
25229 done
25230 done
25231 IFS=$as_save_IFS
25234 esac
25236 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25237 if test -n "$gcc_cv_nm"; then
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25239 $as_echo "$gcc_cv_nm" >&6; }
25240 else
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25242 $as_echo "no" >&6; }
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25250 $as_echo_n "checking what nm to use... " >&6; }
25251 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25252 # Single tree build which includes binutils.
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25254 $as_echo "newly built nm" >&6; }
25255 in_tree_nm=yes
25256 else
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25258 $as_echo "$gcc_cv_nm" >&6; }
25259 in_tree_nm=no
25262 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25264 case "$ORIGINAL_NM_FOR_TARGET" in
25265 ./nm | ./nm$build_exeext) ;;
25266 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25268 esac
25271 # Figure out what objdump we will be using.
25272 if ${gcc_cv_objdump+:} false; then :
25274 else
25276 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25277 && test -f ../binutils/Makefile \
25278 && test x$build = x$host; then
25279 # Single tree build which includes binutils.
25280 gcc_cv_objdump=../binutils/objdump$build_exeext
25281 elif test -x objdump$build_exeext; then
25282 gcc_cv_objdump=./objdump$build_exeext
25283 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25284 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25285 else
25286 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25287 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25289 $as_echo_n "checking for $ac_word... " >&6; }
25290 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25291 $as_echo_n "(cached) " >&6
25292 else
25293 case $gcc_cv_objdump in
25294 [\\/]* | ?:[\\/]*)
25295 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25299 for as_dir in $PATH
25301 IFS=$as_save_IFS
25302 test -z "$as_dir" && as_dir=.
25303 for ac_exec_ext in '' $ac_executable_extensions; do
25304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25305 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25307 break 2
25309 done
25310 done
25311 IFS=$as_save_IFS
25314 esac
25316 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25317 if test -n "$gcc_cv_objdump"; then
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25319 $as_echo "$gcc_cv_objdump" >&6; }
25320 else
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25322 $as_echo "no" >&6; }
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25330 $as_echo_n "checking what objdump to use... " >&6; }
25331 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25332 # Single tree build which includes binutils.
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25334 $as_echo "newly built objdump" >&6; }
25335 elif test x$gcc_cv_objdump = x; then
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25337 $as_echo "not found" >&6; }
25338 else
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25340 $as_echo "$gcc_cv_objdump" >&6; }
25343 # Figure out what readelf we will be using.
25344 if ${gcc_cv_readelf+:} false; then :
25346 else
25348 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25349 && test -f ../binutils/Makefile \
25350 && test x$build = x$host; then
25351 # Single tree build which includes binutils.
25352 gcc_cv_readelf=../binutils/readelf$build_exeext
25353 elif test -x readelf$build_exeext; then
25354 gcc_cv_readelf=./readelf$build_exeext
25355 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25356 gcc_cv_readelf="$READELF_FOR_TARGET"
25357 else
25358 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25359 set dummy $READELF_FOR_TARGET; ac_word=$2
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25361 $as_echo_n "checking for $ac_word... " >&6; }
25362 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25363 $as_echo_n "(cached) " >&6
25364 else
25365 case $gcc_cv_readelf in
25366 [\\/]* | ?:[\\/]*)
25367 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25371 for as_dir in $PATH
25373 IFS=$as_save_IFS
25374 test -z "$as_dir" && as_dir=.
25375 for ac_exec_ext in '' $ac_executable_extensions; do
25376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25377 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25379 break 2
25381 done
25382 done
25383 IFS=$as_save_IFS
25386 esac
25388 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25389 if test -n "$gcc_cv_readelf"; then
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25391 $as_echo "$gcc_cv_readelf" >&6; }
25392 else
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25394 $as_echo "no" >&6; }
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25402 $as_echo_n "checking what readelf to use... " >&6; }
25403 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25404 # Single tree build which includes binutils.
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25406 $as_echo "newly built readelf" >&6; }
25407 elif test x$gcc_cv_readelf = x; then
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25409 $as_echo "not found" >&6; }
25410 else
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25412 $as_echo "$gcc_cv_readelf" >&6; }
25415 # Figure out what otool we will be using.
25416 if ${gcc_cv_otool+:} false; then :
25418 else
25420 if test -x otool$build_exeext; then
25421 gcc_cv_otool=./otool$build_exeext
25422 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25423 gcc_cv_otool="$OTOOL_FOR_TARGET"
25424 else
25425 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25426 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25428 $as_echo_n "checking for $ac_word... " >&6; }
25429 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25430 $as_echo_n "(cached) " >&6
25431 else
25432 case $gcc_cv_otool in
25433 [\\/]* | ?:[\\/]*)
25434 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25438 for as_dir in $PATH
25440 IFS=$as_save_IFS
25441 test -z "$as_dir" && as_dir=.
25442 for ac_exec_ext in '' $ac_executable_extensions; do
25443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25444 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25446 break 2
25448 done
25449 done
25450 IFS=$as_save_IFS
25453 esac
25455 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25456 if test -n "$gcc_cv_otool"; then
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25458 $as_echo "$gcc_cv_otool" >&6; }
25459 else
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25461 $as_echo "no" >&6; }
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25469 $as_echo_n "checking what otool to use... " >&6; }
25470 if test x$gcc_cv_otool = x; then
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25472 $as_echo "not found" >&6; }
25473 else
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25475 $as_echo "$gcc_cv_otool" >&6; }
25478 # Figure out the dsymutil we will use.
25479 if ${gcc_cv_dsymutil+:} false; then :
25481 else
25483 if test -x "$DEFAULT_DSYMUTIL"; then
25484 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25485 elif test -x dsymutil$build_exeext; then
25486 gcc_cv_dsymutil=./dsymutil$build_exeext
25487 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25488 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25489 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25490 gcc_cv_dsymutil=$DSYMUTIL
25491 else
25492 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25493 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25495 $as_echo_n "checking for $ac_word... " >&6; }
25496 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 case $gcc_cv_dsymutil in
25500 [\\/]* | ?:[\\/]*)
25501 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25505 for as_dir in $PATH
25507 IFS=$as_save_IFS
25508 test -z "$as_dir" && as_dir=.
25509 for ac_exec_ext in '' $ac_executable_extensions; do
25510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25511 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25513 break 2
25515 done
25516 done
25517 IFS=$as_save_IFS
25520 esac
25522 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25523 if test -n "$gcc_cv_dsymutil"; then
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25525 $as_echo "$gcc_cv_dsymutil" >&6; }
25526 else
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25528 $as_echo "no" >&6; }
25535 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25537 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25538 ./dsymutil | ./dsymutil$build_exeext) ;;
25539 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25541 esac
25543 # Figure out what assembler alignment features are present.
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25545 $as_echo_n "checking assembler flags... " >&6; }
25546 if ${gcc_cv_as_flags+:} false; then :
25547 $as_echo_n "(cached) " >&6
25548 else
25549 case "$target" in
25550 i[34567]86-*-linux*)
25551 gcc_cv_as_flags=--32
25553 x86_64-*-linux-gnux32)
25554 gcc_cv_as_flags=--x32
25556 x86_64-*-linux*)
25557 gcc_cv_as_flags=--64
25559 powerpc*-*-darwin*)
25560 gcc_cv_as_flags="-arch ppc"
25563 gcc_cv_as_flags=" "
25565 esac
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25568 $as_echo "$gcc_cv_as_flags" >&6; }
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25571 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25572 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25573 $as_echo_n "(cached) " >&6
25574 else
25575 gcc_cv_as_balign_and_p2align=no
25576 if test x$gcc_cv_as != x; then
25577 $as_echo '.balign 4
25578 .p2align 2' > conftest.s
25579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25585 then
25586 gcc_cv_as_balign_and_p2align=yes
25587 else
25588 echo "configure: failed program was" >&5
25589 cat conftest.s >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25595 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25596 if test $gcc_cv_as_balign_and_p2align = yes; then
25598 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25604 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25605 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_max_skip_p2align=no
25609 if test x$gcc_cv_as != x; then
25610 $as_echo '.p2align 4,,7' > conftest.s
25611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25617 then
25618 gcc_cv_as_max_skip_p2align=yes
25619 else
25620 echo "configure: failed program was" >&5
25621 cat conftest.s >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25627 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25628 if test $gcc_cv_as_max_skip_p2align = yes; then
25630 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25636 $as_echo_n "checking assembler for .literal16... " >&6; }
25637 if ${gcc_cv_as_literal16+:} false; then :
25638 $as_echo_n "(cached) " >&6
25639 else
25640 gcc_cv_as_literal16=no
25641 if test x$gcc_cv_as != x; then
25642 $as_echo '.literal16' > conftest.s
25643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25648 test $ac_status = 0; }; }
25649 then
25650 gcc_cv_as_literal16=yes
25651 else
25652 echo "configure: failed program was" >&5
25653 cat conftest.s >&5
25655 rm -f conftest.o conftest.s
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25659 $as_echo "$gcc_cv_as_literal16" >&6; }
25660 if test $gcc_cv_as_literal16 = yes; then
25662 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25668 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25669 if ${gcc_cv_as_subsection_m1+:} false; then :
25670 $as_echo_n "(cached) " >&6
25671 else
25672 gcc_cv_as_subsection_m1=no
25673 if test x$gcc_cv_as != x; then
25674 $as_echo 'conftest_label1: .word 0
25675 .subsection -1
25676 conftest_label2: .word 0
25677 .previous' > conftest.s
25678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25683 test $ac_status = 0; }; }
25684 then
25685 if test x$gcc_cv_nm != x; then
25686 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25687 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25688 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25689 then :
25690 else gcc_cv_as_subsection_m1=yes
25692 rm -f conftest.nm1 conftest.nm2
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25702 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25703 if test $gcc_cv_as_subsection_m1 = yes; then
25705 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25711 $as_echo_n "checking assembler for .weak... " >&6; }
25712 if ${gcc_cv_as_weak+:} false; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_weak=no
25716 if test x$gcc_cv_as != x; then
25717 $as_echo ' .weak foobar' > conftest.s
25718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25724 then
25725 gcc_cv_as_weak=yes
25726 else
25727 echo "configure: failed program was" >&5
25728 cat conftest.s >&5
25730 rm -f conftest.o conftest.s
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25734 $as_echo "$gcc_cv_as_weak" >&6; }
25735 if test $gcc_cv_as_weak = yes; then
25737 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25743 $as_echo_n "checking assembler for .weakref... " >&6; }
25744 if ${gcc_cv_as_weakref+:} false; then :
25745 $as_echo_n "(cached) " >&6
25746 else
25747 gcc_cv_as_weakref=no
25748 if test x$gcc_cv_as != x; then
25749 $as_echo ' .weakref foobar, barfnot' > conftest.s
25750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25756 then
25757 gcc_cv_as_weakref=yes
25758 else
25759 echo "configure: failed program was" >&5
25760 cat conftest.s >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25766 $as_echo "$gcc_cv_as_weakref" >&6; }
25767 if test $gcc_cv_as_weakref = yes; then
25769 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25775 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25776 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_nsubspa_comdat=no
25780 if test x$gcc_cv_as != x; then
25781 $as_echo ' .SPACE $TEXT$
25782 .NSUBSPA $CODE$,COMDAT' > conftest.s
25783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788 test $ac_status = 0; }; }
25789 then
25790 gcc_cv_as_nsubspa_comdat=yes
25791 else
25792 echo "configure: failed program was" >&5
25793 cat conftest.s >&5
25795 rm -f conftest.o conftest.s
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25799 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25800 if test $gcc_cv_as_nsubspa_comdat = yes; then
25802 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25807 # .hidden needs to be supported in both the assembler and the linker,
25808 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25809 # This is irritatingly difficult to feature test for; we have to check the
25810 # date string after the version number. If we've got an in-tree
25811 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25812 # to be safe.
25813 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25814 case "${target}" in
25815 *-*-aix*)
25816 conftest_s=' .globl foobar,hidden'
25819 conftest_s=' .hidden foobar
25820 foobar:'
25822 esac
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25824 $as_echo_n "checking assembler for .hidden... " >&6; }
25825 if ${gcc_cv_as_hidden+:} false; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_hidden=no
25829 if test x$gcc_cv_as != x; then
25830 $as_echo "$conftest_s" > conftest.s
25831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25837 then
25838 gcc_cv_as_hidden=yes
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25847 $as_echo "$gcc_cv_as_hidden" >&6; }
25850 case "${target}" in
25851 *-*-darwin*)
25852 # Darwin as has some visibility support, though with a different syntax.
25853 gcc_cv_as_hidden=yes
25855 esac
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .base64" >&5
25858 $as_echo_n "checking assembler for .base64... " >&6; }
25859 if ${gcc_cv_as_base64+:} false; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862 gcc_cv_as_base64=no
25863 if test x$gcc_cv_as != x; then
25864 $as_echo ' .section .rodata
25865 .base64 "Tm9uIHB1ZG9yIGVzdCBuaWwgc2NpcmUsIHB1ZG9yIG5pbCBkaXNjZXJlIHZlbGxlLgo="' > conftest.s
25866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25872 then
25873 gcc_cv_as_base64=yes
25874 else
25875 echo "configure: failed program was" >&5
25876 cat conftest.s >&5
25878 rm -f conftest.o conftest.s
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_base64" >&5
25882 $as_echo "$gcc_cv_as_base64" >&6; }
25883 if test $gcc_cv_as_base64 = yes; then
25885 $as_echo "#define HAVE_GAS_BASE64 1" >>confdefs.h
25890 # gnu_indirect_function type is an extension proposed at
25891 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
25892 # selection of function implementation
25893 # Check whether --enable-gnu-indirect-function was given.
25894 if test "${enable_gnu_indirect_function+set}" = set; then :
25895 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
25896 yes | no) ;;
25897 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
25898 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25899 esac
25900 else
25901 enable_gnu_indirect_function="$default_gnu_indirect_function"
25905 case "${target}" in
25906 riscv*-*-linux*)
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
25908 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
25909 cat > conftest.s <<EOF
25910 .text
25911 .type foo_resolver, @function
25912 foo_resolver:
25914 .size foo_resolver, .-foo_resolver
25916 .globl foo
25917 .type foo, %gnu_indirect_function
25918 .set foo, foo_resolver
25920 .globl bar
25921 .type bar, @function
25922 bar:
25923 call foo
25925 .size bar, .-bar
25927 if test x$gcc_cv_as != x \
25928 && test x$gcc_cv_ld != x \
25929 && test x$gcc_cv_readelf != x \
25930 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
25931 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
25932 && $gcc_cv_readelf --relocs --wide conftest \
25933 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
25934 enable_gnu_indirect_function=yes
25936 rm -f conftest conftest.o conftest.s
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
25938 $as_echo "$enable_gnu_indirect_function" >&6; }
25940 esac
25942 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
25944 cat >>confdefs.h <<_ACEOF
25945 #define HAVE_GNU_INDIRECT_FUNCTION $gif
25946 _ACEOF
25950 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
25951 if test $in_tree_ld != yes ; then
25952 if echo "$ld_ver" | grep GNU > /dev/null; then
25953 if test x"$ld_is_gold" = xyes; then
25954 # GNU gold --version looks like this:
25956 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
25958 # We extract the binutils version which is more familiar and specific
25959 # than the gold version.
25960 ld_vers=`echo $ld_ver | sed -n \
25961 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25962 else
25963 # GNU ld --version looks like this:
25965 # GNU ld (GNU Binutils) 2.21.51.20110225
25966 ld_vers=`echo $ld_ver | sed -n \
25967 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25969 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'`
25970 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25971 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25972 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
25973 else
25974 case "${target}" in
25975 *-*-solaris2*)
25976 # Solaris 2 ld -V output looks like this for a regular version:
25978 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
25980 # but test versions add stuff at the end:
25982 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
25984 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
25985 # numbers can be used in ld.so.1 feature checks even if a different
25986 # linker is configured.
25987 ld_ver=`$gcc_cv_ld -V 2>&1`
25988 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
25989 ld_vers=`echo $ld_ver | sed -n \
25990 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
25991 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25992 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25995 esac
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26000 $as_echo_n "checking linker for .hidden support... " >&6; }
26001 if ${gcc_cv_ld_hidden+:} false; then :
26002 $as_echo_n "(cached) " >&6
26003 else
26004 if test $in_tree_ld = yes ; then
26005 gcc_cv_ld_hidden=no
26006 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 \
26007 && test $in_tree_ld_is_elf = yes; then
26008 gcc_cv_ld_hidden=yes
26010 else
26011 gcc_cv_ld_hidden=yes
26012 if test x"$ld_is_gold" = xyes; then
26014 elif test x"$ld_is_mold" = xyes; then
26016 elif echo "$ld_ver" | grep GNU > /dev/null; then
26017 if test 0"$ld_date" -lt 20020404; then
26018 if test -n "$ld_date"; then
26019 # If there was date string, but was earlier than 2002-04-04, fail
26020 gcc_cv_ld_hidden=no
26021 elif test -z "$ld_vers"; then
26022 # If there was no date string nor ld version number, something is wrong
26023 gcc_cv_ld_hidden=no
26024 else
26025 test -z "$ld_vers_patch" && ld_vers_patch=0
26026 if test "$ld_vers_major" -lt 2; then
26027 gcc_cv_ld_hidden=no
26028 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26029 gcc_cv_ld_hidden="no"
26030 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26031 gcc_cv_ld_hidden=no
26035 else
26036 case "${target}" in
26037 *-*-aix[789]*)
26038 gcc_cv_ld_hidden=yes
26040 *-*-darwin*)
26041 # Darwin ld has some visibility support.
26042 gcc_cv_ld_hidden=yes
26044 hppa64*-*-hpux* | ia64*-*-hpux*)
26045 gcc_cv_ld_hidden=yes
26047 *-*-solaris2*)
26048 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26049 # .symbolic was only added in Solaris 9 12/02.
26050 gcc_cv_ld_hidden=yes
26053 gcc_cv_ld_hidden=no
26055 esac
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26060 $as_echo "$gcc_cv_ld_hidden" >&6; }
26061 libgcc_visibility=no
26064 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26065 libgcc_visibility=yes
26067 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26072 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26073 gcc_cv_ld_ro_rw_mix=unknown
26074 if test $in_tree_ld = yes ; then
26075 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 \
26076 && test $in_tree_ld_is_elf = yes; then
26077 gcc_cv_ld_ro_rw_mix=read-write
26079 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26080 echo '.section myfoosect, "a"' > conftest1.s
26081 echo '.section myfoosect, "aw"' > conftest2.s
26082 echo '.byte 1' >> conftest2.s
26083 echo '.section myfoosect, "a"' > conftest3.s
26084 echo '.byte 0' >> conftest3.s
26085 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26086 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26087 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26088 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26089 conftest2.o conftest3.o > /dev/null 2>&1 \
26090 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26091 conftest2.o conftest3.o > /dev/null 2>&1; then
26092 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26093 | sed -e '/myfoosect/!d' -e N`
26094 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26095 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26096 gcc_cv_ld_ro_rw_mix=read-only
26097 else
26098 gcc_cv_ld_ro_rw_mix=read-write
26103 rm -f conftest.* conftest[123].*
26105 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26107 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26111 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26113 # Check whether --enable-initfini-array was given.
26114 if test "${enable_initfini_array+set}" = set; then :
26115 enableval=$enable_initfini_array;
26116 else
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26119 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26120 if ${gcc_cv_initfini_array+:} false; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26124 case "${target}" in
26125 ia64-*)
26126 if test "$cross_compiling" = yes; then :
26127 gcc_cv_initfini_array=no
26128 else
26129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26130 /* end confdefs.h. */
26132 #ifndef __ELF__
26133 #error Not an ELF OS
26134 #endif
26135 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26136 if it can be used. */
26137 static int x = -1;
26138 int main (void) { return x; }
26139 int foo (void) { x = 0; }
26140 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26142 _ACEOF
26143 if ac_fn_cxx_try_run "$LINENO"; then :
26144 gcc_cv_initfini_array=yes
26145 else
26146 gcc_cv_initfini_array=no
26148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26149 conftest.$ac_objext conftest.beam conftest.$ac_ext
26153 gcc_cv_initfini_array=no
26154 if test $in_tree_ld = yes ; then
26155 if test "$gcc_cv_gld_major_version" -eq 2 \
26156 -a "$gcc_cv_gld_minor_version" -ge 22 \
26157 -o "$gcc_cv_gld_major_version" -gt 2 \
26158 && test $in_tree_ld_is_elf = yes; then
26159 gcc_cv_initfini_array=yes
26161 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26162 case $target:$gas in
26163 *:yes)
26164 sh_flags='"a"'
26165 sh_type='%progbits'
26167 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26168 sh_flags='"a"'
26169 sh_type='@progbits'
26171 sparc*-*-solaris2*:no)
26172 sh_flags='#alloc'
26173 sh_type='#progbits'
26174 sh_quote='"'
26176 esac
26177 case "$target:$gnu_ld" in
26178 *:yes)
26179 cat > conftest.s <<EOF
26180 .section .dtors,$sh_flags,$sh_type
26181 .balign 4
26182 .byte 'A', 'A', 'A', 'A'
26183 .section .ctors,$sh_flags,$sh_type
26184 .balign 4
26185 .byte 'B', 'B', 'B', 'B'
26186 .section .fini_array.65530,$sh_flags,$sh_type
26187 .balign 4
26188 .byte 'C', 'C', 'C', 'C'
26189 .section .init_array.65530,$sh_flags,$sh_type
26190 .balign 4
26191 .byte 'D', 'D', 'D', 'D'
26192 .section .dtors.64528,$sh_flags,$sh_type
26193 .balign 4
26194 .byte 'E', 'E', 'E', 'E'
26195 .section .ctors.64528,$sh_flags,$sh_type
26196 .balign 4
26197 .byte 'F', 'F', 'F', 'F'
26198 .section .fini_array.01005,$sh_flags,$sh_type
26199 .balign 4
26200 .byte 'G', 'G', 'G', 'G'
26201 .section .init_array.01005,$sh_flags,$sh_type
26202 .balign 4
26203 .byte 'H', 'H', 'H', 'H'
26204 .text
26205 .globl _start
26206 _start:
26208 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26209 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26210 && $gcc_cv_objdump -s -j .init_array conftest \
26211 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26212 && $gcc_cv_objdump -s -j .fini_array conftest \
26213 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26214 gcc_cv_initfini_array=yes
26217 *-*-solaris2*:no)
26218 # When Solaris ld added constructor priority support, it was
26219 # decided to only handle .init_array.N/.fini_array.N since
26220 # there was no need for backwards compatibility with
26221 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26222 # sections with correct execution order resp. to
26223 # .init_array/.fini_array, while gld merges them into
26224 # .init_array/.fini_array.
26225 cat > conftest.s <<EOF
26226 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26227 .align 4
26228 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26229 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26230 .align 4
26231 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26232 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26233 .align 4
26234 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26235 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26236 .align 4
26237 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26238 .text
26239 .globl _start
26240 _start:
26242 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26243 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26244 && $gcc_cv_objdump -s -j .init_array conftest \
26245 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26246 && $gcc_cv_objdump -s -j .fini_array conftest \
26247 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26248 gcc_cv_initfini_array=yes
26251 esac
26252 rm -f conftest conftest.*
26254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26255 /* end confdefs.h. */
26257 #ifndef __ELF__
26258 # error Not an ELF OS
26259 #endif
26260 #include <stdlib.h>
26261 #if defined __GLIBC_PREREQ
26262 # if __GLIBC_PREREQ (2, 4)
26263 # else
26264 # error GLIBC 2.4 required
26265 # endif
26266 #else
26267 # if defined __sun__ && defined __svr4__
26268 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26269 # else
26270 # error The C library not known to support .init_array/.fini_array
26271 # endif
26272 #endif
26274 _ACEOF
26275 if ac_fn_cxx_try_cpp "$LINENO"; then :
26277 else
26278 gcc_cv_initfini_array=no
26280 rm -f conftest.err conftest.i conftest.$ac_ext;;
26281 esac
26282 else
26283 case "${target}" in
26284 aarch64*-linux-gnu*)
26285 # AArch64 postdates glibc support for .init_array/.fini_array,
26286 # so we don't need the preprocessor test above.
26287 gcc_cv_initfini_array=yes
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26292 $as_echo_n "checking cross compile... guessing... " >&6; }
26293 gcc_cv_initfini_array=no
26295 esac
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26299 $as_echo "$gcc_cv_initfini_array" >&6; }
26300 enable_initfini_array=$gcc_cv_initfini_array
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26307 _ACEOF
26311 # Some assemblers (GNU as for LoongArch) generates relocations for
26312 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26313 # probing leb128 support then.
26314 case $target in
26315 loongarch*-*-*)
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26317 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26318 if ${gcc_cv_as_mno_relax+:} false; then :
26319 $as_echo_n "(cached) " >&6
26320 else
26321 gcc_cv_as_mno_relax=no
26322 if test x$gcc_cv_as != x; then
26323 $as_echo '.text' > conftest.s
26324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26326 (eval $ac_try) 2>&5
26327 ac_status=$?
26328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26329 test $ac_status = 0; }; }
26330 then
26331 gcc_cv_as_mno_relax=yes
26332 else
26333 echo "configure: failed program was" >&5
26334 cat conftest.s >&5
26336 rm -f conftest.o conftest.s
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26340 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26341 if test $gcc_cv_as_mno_relax = yes; then
26342 check_leb128_asflags=-mno-relax
26347 check_leb128_asflags=
26349 esac
26351 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26352 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26353 # these directives, even when they appear to accept them.
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26355 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26356 if ${gcc_cv_as_leb128+:} false; then :
26357 $as_echo_n "(cached) " >&6
26358 else
26359 gcc_cv_as_leb128=no
26360 if test x$gcc_cv_as != x; then
26361 $as_echo ' .data
26362 .uleb128 L2 - L1
26364 .uleb128 1280
26365 .sleb128 -1010
26367 .uleb128 0x8000000000000000
26368 ' > conftest.s
26369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374 test $ac_status = 0; }; }
26375 then
26377 if test "x$gcc_cv_objdump" != x; then
26378 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26379 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26380 gcc_cv_as_leb128=yes
26382 elif test "x$gcc_cv_otool" != x; then
26383 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26384 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26385 gcc_cv_as_leb128=yes
26387 else
26388 # play safe, assume the assembler is broken.
26392 else
26393 echo "configure: failed program was" >&5
26394 cat conftest.s >&5
26396 rm -f conftest.o conftest.s
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26400 $as_echo "$gcc_cv_as_leb128" >&6; }
26401 if test $gcc_cv_as_leb128 = yes; then
26403 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26406 if test $gcc_cv_as_leb128 != yes; then
26408 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26412 # Determine if an .eh_frame section is read-only.
26413 gcc_fn_eh_frame_ro () {
26414 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26415 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26416 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26419 # Check if we have assembler support for unwind directives.
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26421 $as_echo_n "checking assembler for cfi directives... " >&6; }
26422 if ${gcc_cv_as_cfi_directive+:} false; then :
26423 $as_echo_n "(cached) " >&6
26424 else
26425 gcc_cv_as_cfi_directive=no
26426 if test x$gcc_cv_as != x; then
26427 $as_echo ' .text
26428 .cfi_startproc
26429 .cfi_offset 0, 0
26430 .cfi_same_value 1
26431 .cfi_def_cfa 1, 2
26432 .cfi_escape 1, 2, 3, 4, 5
26433 .cfi_endproc' > conftest.s
26434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26436 (eval $ac_try) 2>&5
26437 ac_status=$?
26438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26439 test $ac_status = 0; }; }
26440 then
26441 case "$target" in
26442 *-*-solaris*)
26443 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26444 # read-only and read-write sections, we need to make sure that the
26445 # assembler used emits read-write .eh_frame sections.
26446 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26447 gcc_cv_as_cfi_directive=yes
26448 elif test "x$gcc_cv_objdump" = x; then
26449 # No objdump, err on the side of caution.
26450 gcc_cv_as_cfi_directive=no
26451 else
26452 if test x$gas = xyes; then
26453 as_32_opt="--32"
26454 as_64_opt="--64"
26455 else
26456 as_32_opt="-m32"
26457 as_64_opt="-m64"
26459 case "$target" in
26460 sparc*-*-solaris2.*)
26461 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26462 if gcc_fn_eh_frame_ro $as_32_opt \
26463 || gcc_fn_eh_frame_ro $as_64_opt; then
26464 gcc_cv_as_cfi_directive=no
26465 else
26466 gcc_cv_as_cfi_directive=yes
26469 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26470 # On Solaris/x86, make sure that GCC and assembler agree on using
26471 # read-only .eh_frame sections for 64-bit.
26472 if gcc_fn_eh_frame_ro $as_32_opt; then
26473 gcc_cv_as_cfi_directive=no
26474 elif gcc_fn_eh_frame_ro $as_64_opt; then
26475 gcc_cv_as_cfi_directive=yes
26476 else
26477 gcc_cv_as_cfi_directive=no
26480 esac
26483 *-*-*)
26484 gcc_cv_as_cfi_directive=yes
26486 esac
26487 else
26488 echo "configure: failed program was" >&5
26489 cat conftest.s >&5
26491 rm -f conftest.o conftest.s
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26495 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26498 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26500 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26501 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26502 $as_echo_n "(cached) " >&6
26503 else
26504 gcc_cv_as_cfi_advance_working=no
26505 if test x$gcc_cv_as != x; then
26506 $as_echo ' .text
26507 .cfi_startproc
26508 .cfi_adjust_cfa_offset 64
26509 .skip 75040, 0
26510 .cfi_adjust_cfa_offset 128
26511 .cfi_endproc' > conftest.s
26512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26517 test $ac_status = 0; }; }
26518 then
26520 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26521 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26522 gcc_cv_as_cfi_advance_working=yes
26525 else
26526 echo "configure: failed program was" >&5
26527 cat conftest.s >&5
26529 rm -f conftest.o conftest.s
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26533 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26536 else
26537 # no objdump, err on the side of caution
26538 gcc_cv_as_cfi_advance_working=no
26542 cat >>confdefs.h <<_ACEOF
26543 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26544 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26545 _ACEOF
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26550 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26551 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_cfi_personality_directive=no
26555 if test x$gcc_cv_as != x; then
26556 $as_echo ' .text
26557 .cfi_startproc
26558 .cfi_personality 0, symbol
26559 .cfi_endproc' > conftest.s
26560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26562 (eval $ac_try) 2>&5
26563 ac_status=$?
26564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26565 test $ac_status = 0; }; }
26566 then
26567 gcc_cv_as_cfi_personality_directive=yes
26568 else
26569 echo "configure: failed program was" >&5
26570 cat conftest.s >&5
26572 rm -f conftest.o conftest.s
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26576 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26580 cat >>confdefs.h <<_ACEOF
26581 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26582 _ACEOF
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26586 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26587 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_cfi_sections_directive=no
26591 if test x$gcc_cv_as != x; then
26592 $as_echo ' .text
26593 .cfi_sections .debug_frame, .eh_frame
26594 .cfi_startproc
26595 .cfi_endproc' > conftest.s
26596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26598 (eval $ac_try) 2>&5
26599 ac_status=$?
26600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26601 test $ac_status = 0; }; }
26602 then
26603 case $target_os in
26604 win32 | pe | cygwin* | mingw32*)
26605 # Need to check that we generated the correct relocation for the
26606 # .debug_frame section. This was fixed for binutils 2.21.
26607 gcc_cv_as_cfi_sections_directive=no
26608 if test "x$gcc_cv_objdump" != x; then
26609 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26610 grep -i secrel > /dev/null; then
26611 gcc_cv_as_cfi_sections_directive=yes
26616 gcc_cv_as_cfi_sections_directive=yes
26618 esac
26619 else
26620 echo "configure: failed program was" >&5
26621 cat conftest.s >&5
26623 rm -f conftest.o conftest.s
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26627 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26632 cat >>confdefs.h <<_ACEOF
26633 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26634 _ACEOF
26637 # GAS versions up to and including 2.11.0 may mis-optimize
26638 # .eh_frame data.
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26640 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26641 if ${gcc_cv_as_eh_frame+:} false; then :
26642 $as_echo_n "(cached) " >&6
26643 else
26644 gcc_cv_as_eh_frame=no
26645 if test x$gcc_cv_as != x; then
26646 $as_echo ' .text
26647 .LFB1:
26648 .4byte 0
26649 .L1:
26650 .4byte 0
26651 .LFE1:
26652 .section .eh_frame,"aw",@progbits
26653 __FRAME_BEGIN__:
26654 .4byte .LECIE1-.LSCIE1
26655 .LSCIE1:
26656 .4byte 0x0
26657 .byte 0x1
26658 .ascii "z\0"
26659 .byte 0x1
26660 .byte 0x78
26661 .byte 0x1a
26662 .byte 0x0
26663 .byte 0x4
26664 .4byte 1
26665 .p2align 1
26666 .LECIE1:
26667 .LSFDE1:
26668 .4byte .LEFDE1-.LASFDE1
26669 .LASFDE1:
26670 .4byte .LASFDE1-__FRAME_BEGIN__
26671 .4byte .LFB1
26672 .4byte .LFE1-.LFB1
26673 .byte 0x4
26674 .4byte .LFE1-.LFB1
26675 .byte 0x4
26676 .4byte .L1-.LFB1
26677 .LEFDE1:' > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 cat > conftest.lit <<EOF
26686 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26687 0010 01000000 12000000 18000000 00000000 ................
26688 0020 08000000 04080000 0044 .........D
26690 cat > conftest.big <<EOF
26691 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26692 0010 00000001 00000012 00000018 00000000 ................
26693 0020 00000008 04000000 0844 .........D
26695 # If the assembler didn't choke, and we can objdump,
26696 # and we got the correct data, then succeed.
26697 # The text in the here-document typically retains its unix-style line
26698 # endings, while the output of objdump will use host line endings.
26699 # Therefore, use diff -b for the comparisons.
26700 if test x$gcc_cv_objdump != x \
26701 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26702 | tail -3 > conftest.got \
26703 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26704 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26705 then
26706 gcc_cv_as_eh_frame=yes
26707 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26712 test $ac_status = 0; }; }; then
26713 gcc_cv_as_eh_frame=buggy
26714 else
26715 # Uh oh, what do we do now?
26716 gcc_cv_as_eh_frame=no
26718 else
26719 echo "configure: failed program was" >&5
26720 cat conftest.s >&5
26722 rm -f conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26726 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26730 if test $gcc_cv_as_eh_frame = buggy; then
26732 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26736 # Test if the assembler supports the section flag 'e' or #exclude for
26737 # specifying an excluded section.
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26739 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26740 if ${gcc_cv_as_section_exclude_e+:} false; then :
26741 $as_echo_n "(cached) " >&6
26742 else
26743 gcc_cv_as_section_exclude_e=no
26744 if test x$gcc_cv_as != x; then
26745 $as_echo '.section foo1,"e"
26746 .byte 0,0,0,0' > conftest.s
26747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; }
26753 then
26754 gcc_cv_as_section_exclude_e=yes
26755 else
26756 echo "configure: failed program was" >&5
26757 cat conftest.s >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26763 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26766 if test $gcc_cv_as_section_exclude_e = no; then
26767 case "${target}" in
26768 # Solaris as uses #exclude instead.
26769 *-*-solaris2*)
26770 case "${target}" in
26771 sparc*-*-solaris2*)
26772 conftest_s='.section "foo1", #exclude'
26774 i?86-*-solaris2* | x86_64-*-solaris2*)
26775 conftest_s='.section foo1, #exclude'
26777 esac
26779 esac
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26781 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26782 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26783 $as_echo_n "(cached) " >&6
26784 else
26785 gcc_cv_as_section_exclude_hash=no
26786 if test x$gcc_cv_as != x; then
26787 $as_echo "$conftest_s
26788 .byte 0,0,0,0" > conftest.s
26789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26791 (eval $ac_try) 2>&5
26792 ac_status=$?
26793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26794 test $ac_status = 0; }; }
26795 then
26796 gcc_cv_as_section_exclude_hash=yes
26797 else
26798 echo "configure: failed program was" >&5
26799 cat conftest.s >&5
26801 rm -f conftest.o conftest.s
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26805 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26810 cat >>confdefs.h <<_ACEOF
26811 #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`
26812 _ACEOF
26815 # Test if the assembler supports the section flag 'R' for specifying
26816 # section with SHF_GNU_RETAIN.
26817 case "${target}" in
26818 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26819 # assembler supports the section flag 'R', it doesn't mean that
26820 # Solairs ld supports it.
26821 *-*-solaris2*)
26822 gcc_cv_as_shf_gnu_retain=no
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26826 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26827 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26828 $as_echo_n "(cached) " >&6
26829 else
26830 gcc_cv_as_shf_gnu_retain=no
26831 if test x$gcc_cv_as != x; then
26832 $as_echo '.section .foo,"awR",%progbits
26833 .byte 0' > conftest.s
26834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26839 test $ac_status = 0; }; }
26840 then
26841 gcc_cv_as_shf_gnu_retain=yes
26842 else
26843 echo "configure: failed program was" >&5
26844 cat conftest.s >&5
26846 rm -f conftest.o conftest.s
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26850 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26854 esac
26856 cat >>confdefs.h <<_ACEOF
26857 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26858 _ACEOF
26861 # Test if the assembler supports the section flag 'o' for specifying
26862 # section with link-order.
26863 case "${target}" in
26864 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26865 # assembler supports the section flag 'o', it doesn't mean that
26866 # Solairs ld supports it.
26867 *-*-solaris2*)
26868 gcc_cv_as_section_link_order=no
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
26872 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
26873 if ${gcc_cv_as_section_link_order+:} false; then :
26874 $as_echo_n "(cached) " >&6
26875 else
26876 gcc_cv_as_section_link_order=no
26877 if test x$gcc_cv_as != x; then
26878 $as_echo '.section .foo,"a"
26879 .byte 0
26880 .section __patchable_function_entries,"awo",%progbits,.foo
26881 .byte 0' > conftest.s
26882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26887 test $ac_status = 0; }; }
26888 then
26889 gcc_cv_as_section_link_order=yes
26890 else
26891 echo "configure: failed program was" >&5
26892 cat conftest.s >&5
26894 rm -f conftest.o conftest.s
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
26898 $as_echo "$gcc_cv_as_section_link_order" >&6; }
26902 esac
26904 cat >>confdefs.h <<_ACEOF
26905 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
26906 _ACEOF
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26910 $as_echo_n "checking assembler for section merging support... " >&6; }
26911 if ${gcc_cv_as_shf_merge+:} false; then :
26912 $as_echo_n "(cached) " >&6
26913 else
26914 gcc_cv_as_shf_merge=no
26915 if test x$gcc_cv_as != x; then
26916 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
26917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26919 (eval $ac_try) 2>&5
26920 ac_status=$?
26921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26922 test $ac_status = 0; }; }
26923 then
26924 gcc_cv_as_shf_merge=yes
26925 else
26926 echo "configure: failed program was" >&5
26927 cat conftest.s >&5
26929 rm -f conftest.o conftest.s
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26933 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26936 if test $gcc_cv_as_shf_merge = no; then
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26938 $as_echo_n "checking assembler for section merging support... " >&6; }
26939 if ${gcc_cv_as_shf_merge+:} false; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26942 gcc_cv_as_shf_merge=no
26943 if test x$gcc_cv_as != x; then
26944 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
26945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26951 then
26952 gcc_cv_as_shf_merge=yes
26953 else
26954 echo "configure: failed program was" >&5
26955 cat conftest.s >&5
26957 rm -f conftest.o conftest.s
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26961 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26966 cat >>confdefs.h <<_ACEOF
26967 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
26968 _ACEOF
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
26972 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
26973 if ${gcc_cv_as_comdat_group+:} false; then :
26974 $as_echo_n "(cached) " >&6
26975 else
26976 gcc_cv_as_comdat_group=no
26977 if test x$gcc_cv_as != x; then
26978 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
26979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26985 then
26986 gcc_cv_as_comdat_group=yes
26987 else
26988 echo "configure: failed program was" >&5
26989 cat conftest.s >&5
26991 rm -f conftest.o conftest.s
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
26995 $as_echo "$gcc_cv_as_comdat_group" >&6; }
26998 if test $gcc_cv_as_comdat_group = yes; then
26999 gcc_cv_as_comdat_group_percent=no
27000 gcc_cv_as_comdat_group_group=no
27001 else
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27003 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27004 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27005 $as_echo_n "(cached) " >&6
27006 else
27007 gcc_cv_as_comdat_group_percent=no
27008 if test x$gcc_cv_as != x; then
27009 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }
27016 then
27017 gcc_cv_as_comdat_group_percent=yes
27018 else
27019 echo "configure: failed program was" >&5
27020 cat conftest.s >&5
27022 rm -f conftest.o conftest.s
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27026 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27029 if test $gcc_cv_as_comdat_group_percent = yes; then
27030 gcc_cv_as_comdat_group_group=no
27031 else
27032 case "${target}" in
27033 # Sun as uses a completely different syntax.
27034 *-*-solaris2*)
27035 case "${target}" in
27036 sparc*-*-solaris2*)
27037 conftest_s='
27038 .group foo,".text%foo",#comdat
27039 .section ".text%foo", #alloc,#execinstr,#progbits
27040 .globl foo
27041 foo:
27044 i?86-*-solaris2* | x86_64-*-solaris2*)
27045 conftest_s='
27046 .group foo,.text%foo,#comdat
27047 .section .text%foo, "ax", @progbits
27048 .globl foo
27049 foo:
27052 esac
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27054 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27055 if ${gcc_cv_as_comdat_group_group+:} false; then :
27056 $as_echo_n "(cached) " >&6
27057 else
27058 gcc_cv_as_comdat_group_group=no
27059 if test x$gcc_cv_as != x; then
27060 $as_echo "$conftest_s" > conftest.s
27061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27066 test $ac_status = 0; }; }
27067 then
27068 gcc_cv_as_comdat_group_group=yes
27069 else
27070 echo "configure: failed program was" >&5
27071 cat conftest.s >&5
27073 rm -f conftest.o conftest.s
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27077 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27081 esac
27082 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27083 gcc_cv_as_comdat_group_group=no
27087 if test x"$ld_is_gold" = xyes; then
27088 comdat_group=yes
27089 elif test x"$ld_is_mold" = xyes; then
27090 comdat_group=yes
27091 elif test $in_tree_ld = yes ; then
27092 comdat_group=no
27093 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 \
27094 && test $in_tree_ld_is_elf = yes; then
27095 comdat_group=yes
27097 elif echo "$ld_ver" | grep GNU > /dev/null; then
27098 comdat_group=yes
27099 if test 0"$ld_date" -lt 20050308; then
27100 if test -n "$ld_date"; then
27101 # If there was date string, but was earlier than 2005-03-08, fail
27102 comdat_group=no
27103 elif test "$ld_vers_major" -lt 2; then
27104 comdat_group=no
27105 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27106 comdat_group=no
27109 else
27110 case "${target}" in
27111 *-*-solaris2.1[1-9]*)
27112 comdat_group=no
27113 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27114 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27115 # version 1.688.
27117 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27118 # least ld version 1.2267.
27119 if test "$ld_vers_major" -gt 1; then
27120 comdat_group=yes
27121 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27122 comdat_group=yes
27123 elif test "$ld_vers_minor" -ge 2267; then
27124 comdat_group=yes
27128 # Assume linkers other than GNU ld don't support COMDAT group.
27129 comdat_group=no
27131 esac
27133 # Allow overriding the automatic COMDAT group tests above.
27134 # Check whether --enable-comdat was given.
27135 if test "${enable_comdat+set}" = set; then :
27136 enableval=$enable_comdat; comdat_group="$enable_comdat"
27139 if test $comdat_group = no; then
27140 gcc_cv_as_comdat_group=no
27141 gcc_cv_as_comdat_group_percent=no
27142 gcc_cv_as_comdat_group_group=no
27145 cat >>confdefs.h <<_ACEOF
27146 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27147 || test $gcc_cv_as_comdat_group_percent = yes \
27148 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27149 _ACEOF
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27153 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27154 if ${gcc_cv_as_is_stmt+:} false; then :
27155 $as_echo_n "(cached) " >&6
27156 else
27157 gcc_cv_as_is_stmt=no
27158 if test x$gcc_cv_as != x; then
27159 $as_echo ' .text
27160 .file 1 "conf.c"
27161 .loc 1 1 0 is_stmt 1' > conftest.s
27162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27164 (eval $ac_try) 2>&5
27165 ac_status=$?
27166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27167 test $ac_status = 0; }; }
27168 then
27169 gcc_cv_as_is_stmt=yes
27170 else
27171 echo "configure: failed program was" >&5
27172 cat conftest.s >&5
27174 rm -f conftest.o conftest.s
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27178 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27179 if test $gcc_cv_as_is_stmt = yes; then
27181 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27187 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27188 if ${gcc_cv_as_discriminator+:} false; then :
27189 $as_echo_n "(cached) " >&6
27190 else
27191 gcc_cv_as_discriminator=no
27192 if test x$gcc_cv_as != x; then
27193 $as_echo ' .text
27194 .file 1 "conf.c"
27195 .loc 1 1 0 discriminator 1' > conftest.s
27196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27198 (eval $ac_try) 2>&5
27199 ac_status=$?
27200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27201 test $ac_status = 0; }; }
27202 then
27203 gcc_cv_as_discriminator=yes
27204 else
27205 echo "configure: failed program was" >&5
27206 cat conftest.s >&5
27208 rm -f conftest.o conftest.s
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27212 $as_echo "$gcc_cv_as_discriminator" >&6; }
27213 if test $gcc_cv_as_discriminator = yes; then
27215 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27220 # Catch the newlib flag of the same name so we can gate GCC features on it.
27221 # Check whether --enable-newlib-nano-formatted-io was given.
27222 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27223 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27224 yes|no)
27227 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27229 esac
27233 # Thread-local storage - the check is heavily parameterized.
27234 conftest_s=
27235 tls_as_opt=
27236 case "$target" in
27237 alpha*-*-*)
27238 conftest_s='
27239 .section ".tdata","awT",@progbits
27240 foo: .long 25
27241 .text
27242 ldq $27,__tls_get_addr($29) !literal!1
27243 lda $16,foo($29) !tlsgd!1
27244 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27245 ldq $27,__tls_get_addr($29) !literal!2
27246 lda $16,foo($29) !tlsldm!2
27247 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27248 ldq $1,foo($29) !gotdtprel
27249 ldah $2,foo($29) !dtprelhi
27250 lda $3,foo($2) !dtprello
27251 lda $4,foo($29) !dtprel
27252 ldq $1,foo($29) !gottprel
27253 ldah $2,foo($29) !tprelhi
27254 lda $3,foo($2) !tprello
27255 lda $4,foo($29) !tprel'
27256 tls_as_opt=--fatal-warnings
27258 arc*-*-*)
27259 conftest_s='
27260 add_s r0,r0, @foo@tpoff'
27262 cris-*-*|crisv32-*-*)
27263 conftest_s='
27264 .section ".tdata","awT",@progbits
27265 x: .long 25
27266 .text
27267 move.d x:IE,$r10
27268 nop'
27269 tls_as_opt=--fatal-warnings
27271 frv*-*-*)
27272 conftest_s='
27273 .section ".tdata","awT",@progbits
27274 x: .long 25
27275 .text
27276 call #gettlsoff(x)'
27278 hppa*-*-linux*)
27279 conftest_s='
27280 t1: .reg %r20
27281 t2: .reg %r21
27282 gp: .reg %r19
27283 .section ".tdata","awT",@progbits
27284 foo: .long 25
27285 .text
27286 .align 4
27287 addil LT%foo-$tls_gdidx$,gp
27288 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27289 b __tls_get_addr
27291 addil LT%foo-$tls_ldidx$,gp
27292 b __tls_get_addr
27293 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27294 addil LR%foo-$tls_dtpoff$,%ret0
27295 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27296 mfctl %cr27,%t1
27297 addil LT%foo-$tls_ieoff$,gp
27298 ldw RT%foo-$tls_ieoff$(%r1),%t2
27299 add %t1,%t2,%t3
27300 mfctl %cr27,%t1
27301 addil LR%foo-$tls_leoff$,%t1
27302 ldo RR%foo-$tls_leoff$(%r1),%t2'
27303 tls_as_opt=--fatal-warnings
27305 arm*-*-*)
27306 conftest_s='
27307 .section ".tdata","awT",%progbits
27308 foo: .long 25
27309 .text
27310 .word foo(gottpoff)
27311 .word foo(tpoff)
27312 .word foo(tlsgd)
27313 .word foo(tlsldm)
27314 .word foo(tlsldo)'
27316 i[34567]86-*-* | x86_64-*-*)
27317 case "$target" in
27318 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27319 on_solaris=yes
27322 on_solaris=no
27324 esac
27325 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27326 conftest_s='
27327 .section .tdata,"awt",@progbits'
27328 tls_section_flag=t
27330 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27332 else
27333 conftest_s='
27334 .section ".tdata","awT",@progbits'
27335 tls_section_flag=T
27336 tls_as_opt="--fatal-warnings"
27338 case "$target" in
27339 i[34567]86-*-*)
27340 if test x$on_solaris = xyes; then
27341 case $gas_flag in
27342 yes) tls_as_opt="$tls_as_opt --32" ;;
27343 esac
27345 conftest_s="$conftest_s
27346 foo: .long 25
27347 .text
27348 movl %gs:0, %eax
27349 leal foo@tlsgd(,%ebx,1), %eax
27350 leal foo@tlsldm(%ebx), %eax
27351 leal foo@dtpoff(%eax), %edx
27352 movl foo@gottpoff(%ebx), %eax
27353 subl foo@gottpoff(%ebx), %eax
27354 addl foo@gotntpoff(%ebx), %eax
27355 movl foo@indntpoff, %eax
27356 movl \$foo@tpoff, %eax
27357 subl \$foo@tpoff, %eax
27358 leal foo@ntpoff(%ecx), %eax"
27360 x86_64-*-*)
27361 if test x$on_solaris = xyes; then
27362 case $gas_flag in
27363 yes) tls_as_opt="$tls_as_opt --64" ;;
27364 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27365 esac
27367 conftest_s="$conftest_s
27368 foo: .long 25
27369 .text
27370 movq %fs:0, %rax
27371 leaq foo@tlsgd(%rip), %rdi
27372 leaq foo@tlsld(%rip), %rdi
27373 leaq foo@dtpoff(%rax), %rdx
27374 movq foo@gottpoff(%rip), %rax
27375 movq \$foo@tpoff, %rax"
27377 esac
27379 ia64-*-*)
27380 conftest_s='
27381 .section ".tdata","awT",@progbits
27382 foo: data8 25
27383 .text
27384 addl r16 = @ltoff(@dtpmod(foo#)), gp
27385 addl r17 = @ltoff(@dtprel(foo#)), gp
27386 addl r18 = @ltoff(@tprel(foo#)), gp
27387 addl r19 = @dtprel(foo#), gp
27388 adds r21 = @dtprel(foo#), r13
27389 movl r23 = @dtprel(foo#)
27390 addl r20 = @tprel(foo#), gp
27391 adds r22 = @tprel(foo#), r13
27392 movl r24 = @tprel(foo#)'
27393 tls_as_opt=--fatal-warnings
27395 loongarch*-*-*)
27396 conftest_s='
27397 .section .tdata,"awT",@progbits
27398 x: .word 2
27399 .text
27400 la.tls.gd $a0,x
27401 bl __tls_get_addr'
27402 tls_first_major=0
27403 tls_first_minor=0
27404 tls_as_opt='--fatal-warnings'
27406 microblaze*-*-*)
27407 conftest_s='
27408 .section .tdata,"awT",@progbits
27410 .word 2
27411 .text
27412 addik r5,r20,x@TLSGD
27413 addik r5,r20,x@TLSLDM'
27414 tls_as_opt='--fatal-warnings'
27416 mips*-*-*)
27417 conftest_s='
27418 .section .tdata,"awT",@progbits
27420 .word 2
27421 .text
27422 addiu $4, $28, %tlsgd(x)
27423 addiu $4, $28, %tlsldm(x)
27424 lui $4, %dtprel_hi(x)
27425 addiu $4, $4, %dtprel_lo(x)
27426 lw $4, %gottprel(x)($28)
27427 lui $4, %tprel_hi(x)
27428 addiu $4, $4, %tprel_lo(x)'
27429 tls_as_opt='-32 --fatal-warnings'
27431 m68k-*-*)
27432 conftest_s='
27433 .section .tdata,"awT",@progbits
27435 .word 2
27436 .text
27437 foo:
27438 move.l x@TLSGD(%a5),%a0
27439 move.l x@TLSLDM(%a5),%a0
27440 move.l x@TLSLDO(%a5),%a0
27441 move.l x@TLSIE(%a5),%a0
27442 move.l x@TLSLE(%a5),%a0'
27443 tls_as_opt='--fatal-warnings'
27445 nios2-*-*)
27446 conftest_s='
27447 .section ".tdata","awT",@progbits'
27448 tls_as_opt="--fatal-warnings"
27450 aarch64*-*-*)
27451 conftest_s='
27452 .section ".tdata","awT",%progbits
27453 foo: .long 25
27454 .text
27455 adrp x0, :tlsgd:x
27456 add x0, x0, #:tlsgd_lo12:x
27457 bl __tls_get_addr
27458 nop'
27459 tls_as_opt='--fatal-warnings'
27461 or1k*-*-*)
27462 conftest_s='
27463 .section ".tdata","awT",@progbits
27464 foo: .long 25
27465 .text
27466 l.movhi r3, tpoffha(foo)
27467 l.add r3, r3, r10
27468 l.lwz r4, tpofflo(foo)(r3)'
27469 tls_as_opt=--fatal-warnings
27471 powerpc-ibm-aix*)
27472 conftest_s='
27473 .extern __get_tpointer
27474 .toc
27475 LC..1:
27476 .tc a[TC],a[TL]@le
27477 .csect .text[PR]
27478 .tlstest:
27479 lwz 9,LC..1(2)
27480 bla __get_tpointer
27481 lwzx 3,9,3
27482 .globl a
27483 .csect a[TL],4
27485 .space 4'
27487 powerpc64*-*-*)
27488 conftest_s='
27489 .section ".tdata","awT",@progbits
27490 .align 3
27491 ld0: .space 8
27492 ld1: .space 8
27493 x1: .space 8
27494 x2: .space 8
27495 x3: .space 8
27496 .text
27497 addi 3,2,ld0@got@tlsgd
27498 bl .__tls_get_addr
27500 addi 3,2,ld1@toc
27501 bl .__tls_get_addr
27503 addi 3,2,x1@got@tlsld
27504 bl .__tls_get_addr
27506 addi 9,3,x1@dtprel
27507 bl .__tls_get_addr
27509 addis 9,3,x2@dtprel@ha
27510 addi 9,9,x2@dtprel@l
27511 bl .__tls_get_addr
27513 ld 9,x3@got@dtprel(2)
27514 add 9,9,3
27515 bl .__tls_get_addr
27516 nop'
27517 tls_as_opt="-a64 --fatal-warnings"
27519 powerpc*-*-*)
27520 conftest_s='
27521 .section ".tdata","awT",@progbits
27522 .align 2
27523 ld0: .space 4
27524 ld1: .space 4
27525 x1: .space 4
27526 x2: .space 4
27527 x3: .space 4
27528 .text
27529 addi 3,31,ld0@got@tlsgd
27530 bl __tls_get_addr
27531 addi 3,31,x1@got@tlsld
27532 bl __tls_get_addr
27533 addi 9,3,x1@dtprel
27534 addis 9,3,x2@dtprel@ha
27535 addi 9,9,x2@dtprel@l
27536 lwz 9,x3@got@tprel(31)
27537 add 9,9,x@tls
27538 addi 9,2,x1@tprel
27539 addis 9,2,x2@tprel@ha
27540 addi 9,9,x2@tprel@l'
27541 tls_as_opt="-a32 --fatal-warnings"
27543 riscv*-*-*)
27544 conftest_s='
27545 .section .tdata,"awT",@progbits
27546 x: .word 2
27547 .text
27548 la.tls.gd a0,x
27549 call __tls_get_addr'
27550 tls_as_opt='--fatal-warnings'
27552 s390-*-*)
27553 conftest_s='
27554 .section ".tdata","awT",@progbits
27555 foo: .long 25
27556 .text
27557 .long foo@TLSGD
27558 .long foo@TLSLDM
27559 .long foo@DTPOFF
27560 .long foo@NTPOFF
27561 .long foo@GOTNTPOFF
27562 .long foo@INDNTPOFF
27563 l %r1,foo@GOTNTPOFF(%r12)
27564 l %r1,0(%r1):tls_load:foo
27565 bas %r14,0(%r1,%r13):tls_gdcall:foo
27566 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27567 tls_as_opt="-m31 --fatal-warnings"
27569 s390x-*-*)
27570 conftest_s='
27571 .section ".tdata","awT",@progbits
27572 foo: .long 25
27573 .text
27574 .quad foo@TLSGD
27575 .quad foo@TLSLDM
27576 .quad foo@DTPOFF
27577 .quad foo@NTPOFF
27578 .quad foo@GOTNTPOFF
27579 lg %r1,foo@GOTNTPOFF(%r12)
27580 larl %r1,foo@INDNTPOFF
27581 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27582 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27583 tls_as_opt="-m64 -Aesame --fatal-warnings"
27585 sh-*-* | sh[123456789lbe]*-*-*)
27586 conftest_s='
27587 .section ".tdata","awT",@progbits
27588 foo: .long 25
27589 .text
27590 .long foo@TLSGD
27591 .long foo@TLSLDM
27592 .long foo@DTPOFF
27593 .long foo@GOTTPOFF
27594 .long foo@TPOFF'
27595 tls_as_opt=--fatal-warnings
27597 sparc*-*-*)
27598 case "$target" in
27599 sparc*-sun-solaris2.*)
27600 on_solaris=yes
27603 on_solaris=no
27605 esac
27606 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27607 conftest_s='
27608 .section ".tdata",#alloc,#write,#tls'
27609 else
27610 conftest_s='
27611 .section ".tdata","awT",@progbits'
27612 tls_as_opt="-32 --fatal-warnings"
27614 conftest_s="$conftest_s
27615 foo: .long 25
27616 .text
27617 sethi %tgd_hi22(foo), %o0
27618 add %o0, %tgd_lo10(foo), %o1
27619 add %l7, %o1, %o0, %tgd_add(foo)
27620 call __tls_get_addr, %tgd_call(foo)
27621 sethi %tldm_hi22(foo), %l1
27622 add %l1, %tldm_lo10(foo), %l2
27623 add %l7, %l2, %o0, %tldm_add(foo)
27624 call __tls_get_addr, %tldm_call(foo)
27625 sethi %tldo_hix22(foo), %l3
27626 xor %l3, %tldo_lox10(foo), %l4
27627 add %o0, %l4, %l5, %tldo_add(foo)
27628 sethi %tie_hi22(foo), %o3
27629 add %o3, %tie_lo10(foo), %o3
27630 ld [%l7 + %o3], %o2, %tie_ld(foo)
27631 add %g7, %o2, %o4, %tie_add(foo)
27632 sethi %tle_hix22(foo), %l1
27633 xor %l1, %tle_lox10(foo), %o5
27634 ld [%g7 + %o5], %o1"
27636 xtensa*-*-*)
27637 conftest_s='
27638 .section ".tdata","awT",@progbits
27639 foo: .long 25
27640 .text
27641 movi a8, foo@TLSFUNC
27642 movi a10, foo@TLSARG
27643 callx8.tls a8, foo@TLSCALL'
27645 esac
27646 set_have_as_tls=no
27647 if test "x$enable_tls" = xno ; then
27648 : # TLS explicitly disabled.
27649 elif test "x$enable_tls" = xyes ; then
27650 set_have_as_tls=yes # TLS explicitly enabled.
27651 elif test -z "$conftest_s"; then
27652 : # If we don't have a check, assume no support.
27653 else
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27655 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27656 if ${gcc_cv_as_tls+:} false; then :
27657 $as_echo_n "(cached) " >&6
27658 else
27659 gcc_cv_as_tls=no
27660 if test x$gcc_cv_as != x; then
27661 $as_echo "$conftest_s" > conftest.s
27662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27664 (eval $ac_try) 2>&5
27665 ac_status=$?
27666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27667 test $ac_status = 0; }; }
27668 then
27669 gcc_cv_as_tls=yes
27670 else
27671 echo "configure: failed program was" >&5
27672 cat conftest.s >&5
27674 rm -f conftest.o conftest.s
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27678 $as_echo "$gcc_cv_as_tls" >&6; }
27679 if test $gcc_cv_as_tls = yes; then
27680 set_have_as_tls=yes
27684 if test $set_have_as_tls = yes ; then
27686 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27690 # Target-specific assembler checks.
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27693 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27694 gcc_cv_ld_static_dynamic=no
27695 gcc_cv_ld_static_option='-Bstatic'
27696 gcc_cv_ld_dynamic_option='-Bdynamic'
27697 if test $in_tree_ld = yes ; then
27698 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
27699 gcc_cv_ld_static_dynamic=yes
27701 elif test x$gcc_cv_ld != x; then
27702 # Check if linker supports -Bstatic/-Bdynamic option
27703 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27704 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27705 gcc_cv_ld_static_dynamic=yes
27706 else
27707 case "$target" in
27708 # AIX ld uses -b flags
27709 *-*-aix4.[23]* | *-*-aix[5-9]*)
27710 gcc_cv_ld_static_dynamic=yes
27711 gcc_cv_ld_static_option="-bstatic"
27712 gcc_cv_ld_dynamic_option="-bdynamic"
27714 # HP-UX ld uses -a flags to select between shared and archive.
27715 *-*-hpux*)
27716 if test x"$gnu_ld" = xno; then
27717 gcc_cv_ld_static_dynamic=yes
27718 gcc_cv_ld_static_option="-aarchive_shared"
27719 gcc_cv_ld_dynamic_option="-adefault"
27722 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27723 *-*-solaris2*)
27724 gcc_cv_ld_static_dynamic=yes
27726 esac
27729 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27731 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27734 cat >>confdefs.h <<_ACEOF
27735 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27736 _ACEOF
27739 cat >>confdefs.h <<_ACEOF
27740 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27741 _ACEOF
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27745 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27748 $as_echo_n "checking linker --version-script option... " >&6; }
27749 gcc_cv_ld_version_script=no
27750 ld_version_script_option=''
27751 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27752 gcc_cv_ld_version_script=yes
27753 ld_version_script_option='--version-script'
27754 elif test x$gcc_cv_ld != x; then
27755 case "$target" in
27756 # Solaris 2 ld always supports -M. It also supports a subset of
27757 # --version-script since Solaris 11.4, but requires
27758 # -z gnu-version-script-compat to activate.
27759 *-*-solaris2*)
27760 gcc_cv_ld_version_script=yes
27761 ld_version_script_option='-M'
27763 esac
27765 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27767 $as_echo "$gcc_cv_ld_version_script" >&6; }
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27771 $as_echo_n "checking linker soname option... " >&6; }
27772 gcc_cv_ld_soname=no
27773 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27774 gcc_cv_ld_soname=yes
27775 ld_soname_option='-soname'
27776 elif test x$gcc_cv_ld != x; then
27777 case "$target" in
27778 *-*-darwin*)
27779 gcc_cv_ld_soname=yes
27780 ld_soname_option='-install_name'
27782 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27783 # ld compatiblity since some Solaris 10 update.
27784 *-*-solaris2*)
27785 gcc_cv_ld_soname=yes
27786 ld_soname_option='-h'
27788 esac
27790 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27792 $as_echo "$gcc_cv_ld_soname" >&6; }
27795 if test x"$demangler_in_ld" = xyes; then
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27797 $as_echo_n "checking linker --demangle support... " >&6; }
27798 gcc_cv_ld_demangle=no
27799 if test $in_tree_ld = yes; then
27800 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 \
27801 gcc_cv_ld_demangle=yes
27803 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
27804 # Check if the GNU linker supports --demangle option
27805 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
27806 gcc_cv_ld_demangle=yes
27809 if test x"$gcc_cv_ld_demangle" = xyes; then
27811 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27815 $as_echo "$gcc_cv_ld_demangle" >&6; }
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27819 $as_echo_n "checking linker plugin support... " >&6; }
27820 gcc_cv_lto_plugin=0
27821 if test -f liblto_plugin.la; then
27822 save_ld_ver="$ld_ver"
27823 save_ld_vers_major="$ld_vers_major"
27824 save_ld_vers_minor="$ld_vers_minor"
27825 save_ld_is_gold="$ld_is_gold"
27827 ld_is_gold=no
27829 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
27830 ld_ver="GNU ld"
27831 # FIXME: ld_is_gold?
27832 ld_vers_major="$gcc_cv_gld_major_version"
27833 ld_vers_minor="$gcc_cv_gld_minor_version"
27834 else
27835 # Determine plugin linker version.
27836 # FIXME: Partial duplicate from above, generalize.
27837 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
27838 if echo "$ld_ver" | grep GNU > /dev/null; then
27839 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
27840 ld_is_gold=yes
27841 ld_vers=`echo $ld_ver | sed -n \
27842 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
27843 else
27844 ld_vers=`echo $ld_ver | sed -n \
27845 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
27847 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
27848 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27852 # Determine plugin support.
27853 if echo "$ld_ver" | grep GNU > /dev/null; then
27854 # Require GNU ld or gold 2.21+ for plugin support by default.
27855 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
27856 gcc_cv_lto_plugin=2
27857 elif test "$ld_is_mold" = yes; then
27858 gcc_cv_lto_plugin=2
27859 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
27860 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
27861 gcc_cv_lto_plugin=1
27865 ld_ver="$save_ld_ver"
27866 ld_vers_major="$save_ld_vers_major"
27867 ld_vers_minor="$save_ld_vers_minor"
27868 ld_is_gold="$save_ld_is_gold"
27871 cat >>confdefs.h <<_ACEOF
27872 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
27873 _ACEOF
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
27876 $as_echo "$gcc_cv_lto_plugin" >&6; }
27878 # Target OS-specific assembler checks.
27880 case "$target_os" in
27881 darwin*)
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
27883 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
27884 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
27885 $as_echo_n "(cached) " >&6
27886 else
27887 gcc_cv_as_mmacosx_version_min=no
27888 if test x$gcc_cv_as != x; then
27889 $as_echo '.text' > conftest.s
27890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
27891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27892 (eval $ac_try) 2>&5
27893 ac_status=$?
27894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27895 test $ac_status = 0; }; }
27896 then
27897 gcc_cv_as_mmacosx_version_min=yes
27898 else
27899 echo "configure: failed program was" >&5
27900 cat conftest.s >&5
27902 rm -f conftest.o conftest.s
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
27906 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
27907 if test $gcc_cv_as_mmacosx_version_min = yes; then
27909 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
27913 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
27915 $as_echo_n "checking assembler for .build_version... " >&6; }
27916 if ${gcc_cv_as_darwin_build_version+:} false; then :
27917 $as_echo_n "(cached) " >&6
27918 else
27919 gcc_cv_as_darwin_build_version=no
27920 if test x$gcc_cv_as != x; then
27921 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
27922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
27923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27924 (eval $ac_try) 2>&5
27925 ac_status=$?
27926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27927 test $ac_status = 0; }; }
27928 then
27929 gcc_cv_as_darwin_build_version=yes
27930 else
27931 echo "configure: failed program was" >&5
27932 cat conftest.s >&5
27934 rm -f conftest.o conftest.s
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
27938 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
27939 if test $gcc_cv_as_darwin_build_version = yes; then
27941 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
27947 esac
27949 # Target CPU-specific assembler checks.
27951 case "$target" in
27952 aarch64*-*-*)
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
27954 $as_echo_n "checking assembler for -mabi option... " >&6; }
27955 if ${gcc_cv_as_aarch64_mabi+:} false; then :
27956 $as_echo_n "(cached) " >&6
27957 else
27958 gcc_cv_as_aarch64_mabi=no
27959 if test x$gcc_cv_as != x; then
27960 $as_echo '.text' > conftest.s
27961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
27962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27966 test $ac_status = 0; }; }
27967 then
27968 gcc_cv_as_aarch64_mabi=yes
27969 else
27970 echo "configure: failed program was" >&5
27971 cat conftest.s >&5
27973 rm -f conftest.o conftest.s
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
27977 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
27980 if test x$gcc_cv_as_aarch64_mabi = xyes; then
27982 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
27984 else
27985 if test x$with_abi = xilp32; then
27986 as_fn_error $? "Assembler does not support -mabi=ilp32.\
27987 Upgrade the Assembler." "$LINENO" 5
27989 if test x"$with_multilib_list" = xdefault; then
27990 TM_MULTILIB_CONFIG=lp64
27991 else
27992 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
27993 for aarch64_multilib in ${aarch64_multilibs}; do
27994 case ${aarch64_multilib} in
27995 ilp32)
27996 as_fn_error $? "Assembler does not support -mabi=ilp32.\
27997 Upgrade the Assembler." "$LINENO" 5
28001 esac
28002 done
28005 # Check if we have binutils support for relocations types needed by -fpic
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28007 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28008 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28009 $as_echo_n "(cached) " >&6
28010 else
28011 gcc_cv_as_aarch64_picreloc=no
28012 if test x$gcc_cv_as != x; then
28013 $as_echo '
28014 .text
28015 ldr x0, [x2, #:gotpage_lo15:globalsym]
28016 ' > conftest.s
28017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28019 (eval $ac_try) 2>&5
28020 ac_status=$?
28021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28022 test $ac_status = 0; }; }
28023 then
28024 gcc_cv_as_aarch64_picreloc=yes
28025 else
28026 echo "configure: failed program was" >&5
28027 cat conftest.s >&5
28029 rm -f conftest.o conftest.s
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28033 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28034 if test $gcc_cv_as_aarch64_picreloc = yes; then
28036 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28040 # Enable Branch Target Identification Mechanism and Return Address
28041 # Signing by default.
28042 # Check whether --enable-standard-branch-protection was given.
28043 if test "${enable_standard_branch_protection+set}" = set; then :
28044 enableval=$enable_standard_branch_protection;
28045 case $enableval in
28046 yes)
28047 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28052 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28053 Valid choices are 'yes' and 'no'." "$LINENO" 5
28055 esac
28059 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28060 # Check whether --enable-fix-cortex-a53-835769 was given.
28061 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28062 enableval=$enable_fix_cortex_a53_835769;
28063 case $enableval in
28064 yes)
28065 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28070 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28071 Valid choices are 'yes' and 'no'." "$LINENO" 5
28074 esac
28078 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28079 # Check whether --enable-fix-cortex-a53-843419 was given.
28080 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28081 enableval=$enable_fix_cortex_a53_843419;
28082 case $enableval in
28083 yes)
28084 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28089 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28090 Valid choices are 'yes' and 'no'." "$LINENO" 5
28093 esac
28099 # All TARGET_ABI_OSF targets.
28100 alpha*-*-linux* | alpha*-*-*bsd*)
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28102 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28103 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28104 $as_echo_n "(cached) " >&6
28105 else
28106 gcc_cv_as_alpha_explicit_relocs=no
28107 if test x$gcc_cv_as != x; then
28108 $as_echo ' .set nomacro
28109 .text
28110 extbl $3, $2, $3 !lituse_bytoff!1
28111 ldq $2, a($29) !literal!1
28112 ldq $4, b($29) !literal!2
28113 ldq_u $3, 0($2) !lituse_base!1
28114 ldq $27, f($29) !literal!5
28115 jsr $26, ($27), f !lituse_jsr!5
28116 ldah $29, 0($26) !gpdisp!3
28117 lda $0, c($29) !gprel
28118 ldah $1, d($29) !gprelhigh
28119 lda $1, d($1) !gprellow
28120 lda $29, 0($29) !gpdisp!3' > conftest.s
28121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28123 (eval $ac_try) 2>&5
28124 ac_status=$?
28125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28126 test $ac_status = 0; }; }
28127 then
28128 gcc_cv_as_alpha_explicit_relocs=yes
28129 else
28130 echo "configure: failed program was" >&5
28131 cat conftest.s >&5
28133 rm -f conftest.o conftest.s
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28137 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28138 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28140 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28145 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28146 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28147 $as_echo_n "(cached) " >&6
28148 else
28149 gcc_cv_as_alpha_jsrdirect_relocs=no
28150 if test x$gcc_cv_as != x; then
28151 $as_echo ' .set nomacro
28152 .text
28153 ldq $27, a($29) !literal!1
28154 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160 test $ac_status = 0; }; }
28161 then
28162 gcc_cv_as_alpha_jsrdirect_relocs=yes
28163 else
28164 echo "configure: failed program was" >&5
28165 cat conftest.s >&5
28167 rm -f conftest.o conftest.s
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28171 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28172 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28174 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28180 avr-*-*)
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28182 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28183 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28184 $as_echo_n "(cached) " >&6
28185 else
28186 gcc_cv_as_avr_mlink_relax=no
28187 if test x$gcc_cv_as != x; then
28188 $as_echo '.text' > conftest.s
28189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28191 (eval $ac_try) 2>&5
28192 ac_status=$?
28193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28194 test $ac_status = 0; }; }
28195 then
28196 gcc_cv_as_avr_mlink_relax=yes
28197 else
28198 echo "configure: failed program was" >&5
28199 cat conftest.s >&5
28201 rm -f conftest.o conftest.s
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28205 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28206 if test $gcc_cv_as_avr_mlink_relax = yes; then
28208 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28214 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28215 if ${gcc_cv_as_avr_mrmw+:} false; then :
28216 $as_echo_n "(cached) " >&6
28217 else
28218 gcc_cv_as_avr_mrmw=no
28219 if test x$gcc_cv_as != x; then
28220 $as_echo '.text' > conftest.s
28221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28223 (eval $ac_try) 2>&5
28224 ac_status=$?
28225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28226 test $ac_status = 0; }; }
28227 then
28228 gcc_cv_as_avr_mrmw=yes
28229 else
28230 echo "configure: failed program was" >&5
28231 cat conftest.s >&5
28233 rm -f conftest.o conftest.s
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28237 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28238 if test $gcc_cv_as_avr_mrmw = yes; then
28240 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28246 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28247 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28248 $as_echo_n "(cached) " >&6
28249 else
28250 gcc_cv_as_avr_mgccisr=no
28251 if test x$gcc_cv_as != x; then
28252 $as_echo '.text
28253 __gcc_isr 1
28254 __gcc_isr 2
28255 __gcc_isr 0,r24
28256 ' > conftest.s
28257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28259 (eval $ac_try) 2>&5
28260 ac_status=$?
28261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28262 test $ac_status = 0; }; }
28263 then
28264 gcc_cv_as_avr_mgccisr=yes
28265 else
28266 echo "configure: failed program was" >&5
28267 cat conftest.s >&5
28269 rm -f conftest.o conftest.s
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28273 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28274 if test $gcc_cv_as_avr_mgccisr = yes; then
28276 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28281 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28282 # Check how default linker description file implements .rodata for
28283 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28284 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28286 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28287 cat > conftest.s <<EOF
28288 .section .rodata,"a",@progbits
28289 .global xxvaryy
28290 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28291 xxvaryy:
28292 .word 1
28294 rm -f conftest.nm
28295 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28297 (eval $ac_try) 2>&5
28298 ac_status=$?
28299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28300 test $ac_status = 0; }; }
28301 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28306 test $ac_status = 0; }; }
28307 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28312 test $ac_status = 0; }; }
28313 if test -s conftest.nm
28314 then
28315 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28317 $as_echo "yes" >&6; }
28319 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28321 else
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28323 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28324 echo "$as_me: nm output was" >&5
28325 cat conftest.nm >&5
28326 { $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
28327 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28329 else
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28331 $as_echo "test failed" >&6; }
28332 echo "$as_me: failed program was" >&5
28333 cat conftest.s >&5
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28335 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28337 rm -f conftest.s conftest.o conftest.elf conftest.nm
28339 # Check for emulation avrxmega2_flmap.
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28341 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28342 cat > conftest.s <<EOF
28343 .section .text,"ax",@progbits
28344 ldi r16, __flmap_value_with_lock
28346 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28348 (eval $ac_try) 2>&5
28349 ac_status=$?
28350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28351 test $ac_status = 0; }; }
28352 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28354 (eval $ac_try) 2>&5
28355 ac_status=$?
28356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28357 test $ac_status = 0; }; }
28358 if test -s conftest.elf
28359 then
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28361 $as_echo "yes" >&6; }
28363 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28365 else
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28367 $as_echo "no" >&6; }
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28369 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28371 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28373 rm -f conftest.o conftest.elf
28375 # Check for emulation avrxmega4_flmap.
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28377 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28378 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28380 (eval $ac_try) 2>&5
28381 ac_status=$?
28382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28383 test $ac_status = 0; }; }
28384 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28389 test $ac_status = 0; }; }
28390 if test -s conftest.elf
28391 then
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28393 $as_echo "yes" >&6; }
28395 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28397 else
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28399 $as_echo "no" >&6; }
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28401 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28403 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28405 rm -f conftest.s conftest.o conftest.elf
28408 cris-*-*)
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28410 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28411 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28412 $as_echo_n "(cached) " >&6
28413 else
28414 gcc_cv_as_cris_no_mul_bug=no
28415 if test x$gcc_cv_as != x; then
28416 $as_echo '.text' > conftest.s
28417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28422 test $ac_status = 0; }; }
28423 then
28424 gcc_cv_as_cris_no_mul_bug=yes
28425 else
28426 echo "configure: failed program was" >&5
28427 cat conftest.s >&5
28429 rm -f conftest.o conftest.s
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28433 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28434 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28436 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28442 sparc*-*-*)
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28444 $as_echo_n "checking assembler for -relax option... " >&6; }
28445 if ${gcc_cv_as_sparc_relax+:} false; then :
28446 $as_echo_n "(cached) " >&6
28447 else
28448 gcc_cv_as_sparc_relax=no
28449 if test x$gcc_cv_as != x; then
28450 $as_echo '.text' > conftest.s
28451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28456 test $ac_status = 0; }; }
28457 then
28458 gcc_cv_as_sparc_relax=yes
28459 else
28460 echo "configure: failed program was" >&5
28461 cat conftest.s >&5
28463 rm -f conftest.o conftest.s
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28467 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28468 if test $gcc_cv_as_sparc_relax = yes; then
28470 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28476 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28477 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28478 $as_echo_n "(cached) " >&6
28479 else
28480 gcc_cv_as_sparc_gotdata_op=no
28481 if test x$gcc_cv_as != x; then
28482 $as_echo '.text
28483 .align 4
28484 foo:
28486 bar:
28487 sethi %gdop_hix22(foo), %g1
28488 xor %g1, %gdop_lox10(foo), %g1
28489 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28496 then
28497 if test x$gcc_cv_ld != x \
28498 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28499 if test x$gcc_cv_objdump != x; then
28500 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28501 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28502 gcc_cv_as_sparc_gotdata_op=no
28503 else
28504 gcc_cv_as_sparc_gotdata_op=yes
28508 rm -f conftest
28509 else
28510 echo "configure: failed program was" >&5
28511 cat conftest.s >&5
28513 rm -f conftest.o conftest.s
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28517 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28518 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28520 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28526 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28527 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28528 $as_echo_n "(cached) " >&6
28529 else
28530 gcc_cv_as_sparc_ua_pcrel=no
28531 if test x$gcc_cv_as != x; then
28532 $as_echo '.text
28533 foo:
28535 .data
28536 .align 4
28537 .byte 0
28538 .uaword %r_disp32(foo)' > conftest.s
28539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28541 (eval $ac_try) 2>&5
28542 ac_status=$?
28543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28544 test $ac_status = 0; }; }
28545 then
28546 if test x$gcc_cv_ld != x \
28547 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28548 gcc_cv_as_sparc_ua_pcrel=yes
28550 rm -f conftest
28551 else
28552 echo "configure: failed program was" >&5
28553 cat conftest.s >&5
28555 rm -f conftest.o conftest.s
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28559 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28560 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28562 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28566 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28567 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28568 $as_echo_n "(cached) " >&6
28569 else
28570 gcc_cv_as_sparc_ua_pcrel_hidden=no
28571 if test x$gcc_cv_as != x; then
28572 $as_echo '.data
28573 .align 4
28574 .byte 0x31
28575 .uaword %r_disp32(foo)
28576 .byte 0x32, 0x33, 0x34
28577 .global foo
28578 .hidden foo
28579 foo:
28580 .skip 4' > conftest.s
28581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28583 (eval $ac_try) 2>&5
28584 ac_status=$?
28585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28586 test $ac_status = 0; }; }
28587 then
28588 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28589 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28590 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28591 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28592 if $gcc_cv_objdump -R conftest 2> /dev/null \
28593 | grep 'DISP32' > /dev/null 2>&1; then
28595 else
28596 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28599 rm -f conftest
28600 else
28601 echo "configure: failed program was" >&5
28602 cat conftest.s >&5
28604 rm -f conftest.o conftest.s
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28608 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28609 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28611 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28617 # unaligned pcrel relocs
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28620 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28621 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28622 $as_echo_n "(cached) " >&6
28623 else
28624 gcc_cv_as_sparc_offsetable_lo10=no
28625 if test x$gcc_cv_as != x; then
28626 $as_echo '.text
28627 or %g1, %lo(ab) + 12, %g1
28628 or %g1, %lo(ab + 12), %g1' > conftest.s
28629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28631 (eval $ac_try) 2>&5
28632 ac_status=$?
28633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28634 test $ac_status = 0; }; }
28635 then
28636 if test x$gcc_cv_objdump != x \
28637 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28638 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28639 gcc_cv_as_sparc_offsetable_lo10=yes
28641 else
28642 echo "configure: failed program was" >&5
28643 cat conftest.s >&5
28645 rm -f conftest.o conftest.s
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28649 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28650 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28652 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28658 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28659 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28660 $as_echo_n "(cached) " >&6
28661 else
28662 gcc_cv_as_sparc_fmaf=no
28663 if test x$gcc_cv_as != x; then
28664 $as_echo '.text
28665 .register %g2, #scratch
28666 .register %g3, #scratch
28667 .align 4
28668 fmaddd %f0, %f2, %f4, %f6
28669 addxccc %g1, %g2, %g3
28670 fsrl32 %f2, %f4, %f8
28671 fnaddd %f10, %f12, %f14' > conftest.s
28672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28674 (eval $ac_try) 2>&5
28675 ac_status=$?
28676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28677 test $ac_status = 0; }; }
28678 then
28679 gcc_cv_as_sparc_fmaf=yes
28680 else
28681 echo "configure: failed program was" >&5
28682 cat conftest.s >&5
28684 rm -f conftest.o conftest.s
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28688 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28689 if test $gcc_cv_as_sparc_fmaf = yes; then
28691 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28697 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28698 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28699 $as_echo_n "(cached) " >&6
28700 else
28701 gcc_cv_as_sparc_sparc4=no
28702 if test x$gcc_cv_as != x; then
28703 $as_echo '.text
28704 .register %g2, #scratch
28705 .register %g3, #scratch
28706 .align 4
28707 cxbe %g2, %g3, 1f
28708 1: cwbneg %g2, %g3, 1f
28709 1: sha1
28711 aes_kexpand0 %f4, %f6, %f8
28712 des_round %f38, %f40, %f42, %f44
28713 camellia_f %f54, %f56, %f58, %f60
28714 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28720 test $ac_status = 0; }; }
28721 then
28722 gcc_cv_as_sparc_sparc4=yes
28723 else
28724 echo "configure: failed program was" >&5
28725 cat conftest.s >&5
28727 rm -f conftest.o conftest.s
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28731 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28732 if test $gcc_cv_as_sparc_sparc4 = yes; then
28734 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28740 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28741 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28742 $as_echo_n "(cached) " >&6
28743 else
28744 gcc_cv_as_sparc_sparc5=no
28745 if test x$gcc_cv_as != x; then
28746 $as_echo '.text
28747 .register %g2, #scratch
28748 .register %g3, #scratch
28749 .align 4
28750 subxc %g1, %g2, %g3
28751 fpadd8 %f0, %f2, %f4' > conftest.s
28752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28754 (eval $ac_try) 2>&5
28755 ac_status=$?
28756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28757 test $ac_status = 0; }; }
28758 then
28759 gcc_cv_as_sparc_sparc5=yes
28760 else
28761 echo "configure: failed program was" >&5
28762 cat conftest.s >&5
28764 rm -f conftest.o conftest.s
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28768 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28769 if test $gcc_cv_as_sparc_sparc5 = yes; then
28771 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28777 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28778 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28779 $as_echo_n "(cached) " >&6
28780 else
28781 gcc_cv_as_sparc_sparc6=no
28782 if test x$gcc_cv_as != x; then
28783 $as_echo '.text
28784 .register %g2, #scratch
28785 .register %g3, #scratch
28786 .align 4
28787 rd %entropy, %g1
28788 fpsll64x %f0, %f2, %f4' > conftest.s
28789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28791 (eval $ac_try) 2>&5
28792 ac_status=$?
28793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28794 test $ac_status = 0; }; }
28795 then
28796 gcc_cv_as_sparc_sparc6=yes
28797 else
28798 echo "configure: failed program was" >&5
28799 cat conftest.s >&5
28801 rm -f conftest.o conftest.s
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28805 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28806 if test $gcc_cv_as_sparc_sparc6 = yes; then
28808 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28814 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28815 if ${gcc_cv_as_sparc_leon+:} false; then :
28816 $as_echo_n "(cached) " >&6
28817 else
28818 gcc_cv_as_sparc_leon=no
28819 if test x$gcc_cv_as != x; then
28820 $as_echo '.text
28821 .register %g2, #scratch
28822 .register %g3, #scratch
28823 .align 4
28824 smac %g2, %g3, %g1
28825 umac %g2, %g3, %g1
28826 casa [%g2] 0xb, %g3, %g1' > conftest.s
28827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28829 (eval $ac_try) 2>&5
28830 ac_status=$?
28831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28832 test $ac_status = 0; }; }
28833 then
28834 gcc_cv_as_sparc_leon=yes
28835 else
28836 echo "configure: failed program was" >&5
28837 cat conftest.s >&5
28839 rm -f conftest.o conftest.s
28842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28843 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28844 if test $gcc_cv_as_sparc_leon = yes; then
28846 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28852 i[34567]86-*-* | x86_64-*-*)
28853 case $target_os in
28854 cygwin*)
28855 # Full C++ conformance when using a shared libstdc++-v3 requires some
28856 # support from the Cygwin DLL, which in more recent versions exports
28857 # wrappers to aid in interposing and redirecting operators new, delete,
28858 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
28859 # are configuring for a version of Cygwin that exports the wrappers.
28860 if test x$host = x$target && test x$host_cpu = xi686; then
28861 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
28862 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
28863 gcc_ac_cygwin_dll_wrappers=yes
28864 else
28865 gcc_ac_cygwin_dll_wrappers=no
28868 else
28869 # Can't check presence of libc functions during cross-compile, so
28870 # we just have to assume we're building for an up-to-date target.
28871 gcc_ac_cygwin_dll_wrappers=yes
28874 cat >>confdefs.h <<_ACEOF
28875 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
28876 _ACEOF
28878 esac
28879 case $target_os in
28880 cygwin* | pe | mingw32*)
28881 # Recent binutils allows the three-operand form of ".comm" on PE. This
28882 # definition is used unconditionally to initialise the default state of
28883 # the target option variable that governs usage of the feature.
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
28885 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
28886 if ${gcc_cv_as_comm_has_align+:} false; then :
28887 $as_echo_n "(cached) " >&6
28888 else
28889 gcc_cv_as_comm_has_align=no
28890 if test x$gcc_cv_as != x; then
28891 $as_echo '.comm foo,1,32' > conftest.s
28892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_comm_has_align=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_comm_has_align" >&5
28908 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
28912 cat >>confdefs.h <<_ACEOF
28913 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
28914 _ACEOF
28916 # Used for DWARF 2 in PE
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
28918 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
28919 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
28920 $as_echo_n "(cached) " >&6
28921 else
28922 gcc_cv_as_ix86_pe_secrel32=no
28923 if test x$gcc_cv_as != x; then
28924 $as_echo '.text
28925 foo: nop
28926 .data
28927 .secrel32 foo' > conftest.s
28928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28933 test $ac_status = 0; }; }
28934 then
28935 if test x$gcc_cv_ld != x \
28936 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
28937 gcc_cv_as_ix86_pe_secrel32=yes
28939 rm -f conftest
28940 else
28941 echo "configure: failed program was" >&5
28942 cat conftest.s >&5
28944 rm -f conftest.o conftest.s
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
28948 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
28949 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
28951 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
28955 # Test if the assembler supports the extended form of the .section
28956 # directive that specifies section alignment. LTO support uses this,
28957 # but normally only after installation, so we warn but don't fail the
28958 # configure if LTO is enabled but the assembler does not support it.
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
28960 $as_echo_n "checking assembler for .section with alignment... " >&6; }
28961 if ${gcc_cv_as_section_has_align+:} false; then :
28962 $as_echo_n "(cached) " >&6
28963 else
28964 gcc_cv_as_section_has_align=no
28965 if test x$gcc_cv_as != x; then
28966 $as_echo '.section lto_test,"dr0"' > conftest.s
28967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
28968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28969 (eval $ac_try) 2>&5
28970 ac_status=$?
28971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28972 test $ac_status = 0; }; }
28973 then
28974 gcc_cv_as_section_has_align=yes
28975 else
28976 echo "configure: failed program was" >&5
28977 cat conftest.s >&5
28979 rm -f conftest.o conftest.s
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
28983 $as_echo "$gcc_cv_as_section_has_align" >&6; }
28986 if test x$gcc_cv_as_section_has_align != xyes; then
28987 case ",$enable_languages," in
28988 *,lto,*)
28989 { $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
28990 $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;}
28992 esac
28995 esac
28996 case $target_os in
28997 darwin2* | darwin19*)
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
28999 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29000 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29001 $as_echo_n "(cached) " >&6
29002 else
29003 gcc_cv_as_mllvm_x86_pad_for_align=no
29004 if test x$gcc_cv_as != x; then
29005 $as_echo '.text' > conftest.s
29006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29008 (eval $ac_try) 2>&5
29009 ac_status=$?
29010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29011 test $ac_status = 0; }; }
29012 then
29013 gcc_cv_as_mllvm_x86_pad_for_align=yes
29014 else
29015 echo "configure: failed program was" >&5
29016 cat conftest.s >&5
29018 rm -f conftest.o conftest.s
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29022 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29023 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29025 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29030 esac
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29033 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29034 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29035 $as_echo_n "(cached) " >&6
29036 else
29037 gcc_cv_as_ix86_xbrace_comment=no
29038 if test x$gcc_cv_as != x; then
29039 $as_echo '.text' > conftest.s
29040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29045 test $ac_status = 0; }; }
29046 then
29047 gcc_cv_as_ix86_xbrace_comment=yes
29048 else
29049 echo "configure: failed program was" >&5
29050 cat conftest.s >&5
29052 rm -f conftest.o conftest.s
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29056 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29057 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29059 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29065 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29066 if ${gcc_cv_as_ix86_filds+:} false; then :
29067 $as_echo_n "(cached) " >&6
29068 else
29069 gcc_cv_as_ix86_filds=no
29070 if test x$gcc_cv_as != x; then
29071 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29074 (eval $ac_try) 2>&5
29075 ac_status=$?
29076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29077 test $ac_status = 0; }; }
29078 then
29079 gcc_cv_as_ix86_filds=yes
29080 else
29081 echo "configure: failed program was" >&5
29082 cat conftest.s >&5
29084 rm -f conftest.o conftest.s
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29088 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29089 if test $gcc_cv_as_ix86_filds = yes; then
29091 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29097 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29098 if ${gcc_cv_as_ix86_fildq+:} false; then :
29099 $as_echo_n "(cached) " >&6
29100 else
29101 gcc_cv_as_ix86_fildq=no
29102 if test x$gcc_cv_as != x; then
29103 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29106 (eval $ac_try) 2>&5
29107 ac_status=$?
29108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29109 test $ac_status = 0; }; }
29110 then
29111 gcc_cv_as_ix86_fildq=yes
29112 else
29113 echo "configure: failed program was" >&5
29114 cat conftest.s >&5
29116 rm -f conftest.o conftest.s
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29120 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29121 if test $gcc_cv_as_ix86_fildq = yes; then
29123 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29129 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29130 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29131 $as_echo_n "(cached) " >&6
29132 else
29133 gcc_cv_as_ix86_cmov_sun_syntax=no
29134 if test x$gcc_cv_as != x; then
29135 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29138 (eval $ac_try) 2>&5
29139 ac_status=$?
29140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29141 test $ac_status = 0; }; }
29142 then
29143 gcc_cv_as_ix86_cmov_sun_syntax=yes
29144 else
29145 echo "configure: failed program was" >&5
29146 cat conftest.s >&5
29148 rm -f conftest.o conftest.s
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29152 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29153 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29155 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29161 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29162 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29163 $as_echo_n "(cached) " >&6
29164 else
29165 gcc_cv_as_ix86_ffreep=no
29166 if test x$gcc_cv_as != x; then
29167 $as_echo 'ffreep %st(1)' > conftest.s
29168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29173 test $ac_status = 0; }; }
29174 then
29175 gcc_cv_as_ix86_ffreep=yes
29176 else
29177 echo "configure: failed program was" >&5
29178 cat conftest.s >&5
29180 rm -f conftest.o conftest.s
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29184 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29185 if test $gcc_cv_as_ix86_ffreep = yes; then
29187 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29193 $as_echo_n "checking assembler for .quad directive... " >&6; }
29194 if ${gcc_cv_as_ix86_quad+:} false; then :
29195 $as_echo_n "(cached) " >&6
29196 else
29197 gcc_cv_as_ix86_quad=no
29198 if test x$gcc_cv_as != x; then
29199 $as_echo '.quad 0' > conftest.s
29200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29202 (eval $ac_try) 2>&5
29203 ac_status=$?
29204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29205 test $ac_status = 0; }; }
29206 then
29207 gcc_cv_as_ix86_quad=yes
29208 else
29209 echo "configure: failed program was" >&5
29210 cat conftest.s >&5
29212 rm -f conftest.o conftest.s
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29216 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29217 if test $gcc_cv_as_ix86_quad = yes; then
29219 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29225 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29226 if ${gcc_cv_as_ix86_sahf+:} false; then :
29227 $as_echo_n "(cached) " >&6
29228 else
29229 gcc_cv_as_ix86_sahf=no
29230 if test x$gcc_cv_as != x; then
29231 $as_echo '.code64
29232 sahf' > conftest.s
29233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29235 (eval $ac_try) 2>&5
29236 ac_status=$?
29237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29238 test $ac_status = 0; }; }
29239 then
29240 gcc_cv_as_ix86_sahf=yes
29241 else
29242 echo "configure: failed program was" >&5
29243 cat conftest.s >&5
29245 rm -f conftest.o conftest.s
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29249 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29250 if test $gcc_cv_as_ix86_sahf = yes; then
29252 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29258 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29259 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29260 $as_echo_n "(cached) " >&6
29261 else
29262 gcc_cv_as_ix86_interunit_movq=no
29263 if test x$gcc_cv_as != x; then
29264 $as_echo '.code64
29265 movq %mm0, %rax
29266 movq %rax, %xmm0' > conftest.s
29267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29269 (eval $ac_try) 2>&5
29270 ac_status=$?
29271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29272 test $ac_status = 0; }; }
29273 then
29274 gcc_cv_as_ix86_interunit_movq=yes
29275 else
29276 echo "configure: failed program was" >&5
29277 cat conftest.s >&5
29279 rm -f conftest.o conftest.s
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29283 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29287 cat >>confdefs.h <<_ACEOF
29288 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29289 _ACEOF
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29293 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29294 if ${gcc_cv_as_ix86_hle+:} false; then :
29295 $as_echo_n "(cached) " >&6
29296 else
29297 gcc_cv_as_ix86_hle=no
29298 if test x$gcc_cv_as != x; then
29299 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29305 test $ac_status = 0; }; }
29306 then
29307 gcc_cv_as_ix86_hle=yes
29308 else
29309 echo "configure: failed program was" >&5
29310 cat conftest.s >&5
29312 rm -f conftest.o conftest.s
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29316 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29317 if test $gcc_cv_as_ix86_hle = yes; then
29319 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29325 $as_echo_n "checking assembler for swap suffix... " >&6; }
29326 if ${gcc_cv_as_ix86_swap+:} false; then :
29327 $as_echo_n "(cached) " >&6
29328 else
29329 gcc_cv_as_ix86_swap=no
29330 if test x$gcc_cv_as != x; then
29331 $as_echo 'movl.s %esp, %ebp' > conftest.s
29332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29337 test $ac_status = 0; }; }
29338 then
29339 gcc_cv_as_ix86_swap=yes
29340 else
29341 echo "configure: failed program was" >&5
29342 cat conftest.s >&5
29344 rm -f conftest.o conftest.s
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29348 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29349 if test $gcc_cv_as_ix86_swap = yes; then
29351 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29357 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29358 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29359 $as_echo_n "(cached) " >&6
29360 else
29361 gcc_cv_as_ix86_diff_sect_delta=no
29362 if test x$gcc_cv_as != x; then
29363 $as_echo '.section .rodata
29364 .L1:
29365 .long .L2-.L1
29366 .long .L3-.L1
29367 .text
29368 .L3: nop
29369 .L2: nop' > conftest.s
29370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29372 (eval $ac_try) 2>&5
29373 ac_status=$?
29374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29375 test $ac_status = 0; }; }
29376 then
29377 gcc_cv_as_ix86_diff_sect_delta=yes
29378 else
29379 echo "configure: failed program was" >&5
29380 cat conftest.s >&5
29382 rm -f conftest.o conftest.s
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29386 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29387 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29389 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29395 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29396 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29397 $as_echo_n "(cached) " >&6
29398 else
29399 gcc_cv_as_ix86_rep_lock_prefix=no
29400 if test x$gcc_cv_as != x; then
29401 $as_echo 'rep movsl
29402 rep ret
29403 rep nop
29404 rep bsf %ecx, %eax
29405 rep bsr %ecx, %eax
29406 lock addl %edi, (%eax,%esi)
29407 lock orl $0, (%esp)' > conftest.s
29408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29410 (eval $ac_try) 2>&5
29411 ac_status=$?
29412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29413 test $ac_status = 0; }; }
29414 then
29415 gcc_cv_as_ix86_rep_lock_prefix=yes
29416 else
29417 echo "configure: failed program was" >&5
29418 cat conftest.s >&5
29420 rm -f conftest.o conftest.s
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29424 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29425 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29427 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29433 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29434 if ${gcc_cv_as_ix86_ud2+:} false; then :
29435 $as_echo_n "(cached) " >&6
29436 else
29437 gcc_cv_as_ix86_ud2=no
29438 if test x$gcc_cv_as != x; then
29439 $as_echo 'ud2' > conftest.s
29440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29442 (eval $ac_try) 2>&5
29443 ac_status=$?
29444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29445 test $ac_status = 0; }; }
29446 then
29447 gcc_cv_as_ix86_ud2=yes
29448 else
29449 echo "configure: failed program was" >&5
29450 cat conftest.s >&5
29452 rm -f conftest.o conftest.s
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29456 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29457 if test $gcc_cv_as_ix86_ud2 = yes; then
29459 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29464 # Enforce 32-bit output with gas and gld.
29465 if test x$gas = xyes; then
29466 as_ix86_gas_32_opt="--32"
29468 if echo "$ld_ver" | grep GNU > /dev/null; then
29469 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29470 ld_ix86_gld_32_opt="-melf_i386_sol2"
29471 else
29472 ld_ix86_gld_32_opt="-melf_i386"
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29477 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29478 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29479 $as_echo_n "(cached) " >&6
29480 else
29481 gcc_cv_as_ix86_tlsgdplt=no
29482 if test x$gcc_cv_as != x; then
29483 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29486 (eval $ac_try) 2>&5
29487 ac_status=$?
29488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29489 test $ac_status = 0; }; }
29490 then
29491 if test x$gcc_cv_ld != x \
29492 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29493 gcc_cv_as_ix86_tlsgdplt=yes
29495 rm -f conftest
29496 else
29497 echo "configure: failed program was" >&5
29498 cat conftest.s >&5
29500 rm -f conftest.o conftest.s
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29504 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29505 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29507 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29512 conftest_s='
29513 .section .tdata,"aw'$tls_section_flag'",@progbits
29514 tls_ld:
29515 .section .text,"ax",@progbits
29516 call tls_ld@tlsldmplt'
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29519 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29520 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29521 $as_echo_n "(cached) " >&6
29522 else
29523 gcc_cv_as_ix86_tlsldmplt=no
29524 if test x$gcc_cv_as != x; then
29525 $as_echo "$conftest_s" > conftest.s
29526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29528 (eval $ac_try) 2>&5
29529 ac_status=$?
29530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29531 test $ac_status = 0; }; }
29532 then
29533 if test x$gcc_cv_ld != x \
29534 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29535 gcc_cv_as_ix86_tlsldmplt=yes
29537 rm -f conftest
29538 else
29539 echo "configure: failed program was" >&5
29540 cat conftest.s >&5
29542 rm -f conftest.o conftest.s
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29546 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29550 cat >>confdefs.h <<_ACEOF
29551 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29552 _ACEOF
29555 conftest_s='
29556 .section .text,"ax",@progbits
29557 .globl _start
29558 .type _start, @function
29559 _start:
29560 leal value@tlsldm(%ebx), %eax
29561 call ___tls_get_addr@plt
29563 .section .tdata,"aw'$tls_section_flag'",@progbits
29564 .type value, @object
29565 value:'
29566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29567 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29568 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29569 $as_echo_n "(cached) " >&6
29570 else
29571 gcc_cv_as_ix86_tlsldm=no
29572 if test x$gcc_cv_as != x; then
29573 $as_echo "$conftest_s" > conftest.s
29574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29576 (eval $ac_try) 2>&5
29577 ac_status=$?
29578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29579 test $ac_status = 0; }; }
29580 then
29581 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29582 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29583 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29584 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29585 gcc_cv_as_ix86_tlsldm=yes
29588 rm -f conftest
29589 else
29590 echo "configure: failed program was" >&5
29591 cat conftest.s >&5
29593 rm -f conftest.o conftest.s
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29597 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29601 cat >>confdefs.h <<_ACEOF
29602 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29603 _ACEOF
29606 conftest_s='
29607 .data
29608 bar:
29609 .byte 1
29610 .text
29611 .global _start
29612 _start:
29613 cmpl $0, bar@GOT
29614 jmp *_start@GOT'
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29616 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29617 if ${gcc_cv_as_ix86_got32x+:} false; then :
29618 $as_echo_n "(cached) " >&6
29619 else
29620 gcc_cv_as_ix86_got32x=no
29621 if test x$gcc_cv_as != x; then
29622 $as_echo "$conftest_s" > conftest.s
29623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29625 (eval $ac_try) 2>&5
29626 ac_status=$?
29627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29628 test $ac_status = 0; }; }
29629 then
29630 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29631 && test x$gcc_cv_readelf != x \
29632 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29633 | grep R_386_GOT32X > /dev/null 2>&1 \
29634 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29635 if $gcc_cv_objdump -dw conftest 2>&1 \
29636 | grep 0xffffff > /dev/null 2>&1; then
29637 gcc_cv_as_ix86_got32x=no
29638 else
29639 gcc_cv_as_ix86_got32x=yes
29642 rm -f conftest
29643 else
29644 echo "configure: failed program was" >&5
29645 cat conftest.s >&5
29647 rm -f conftest.o conftest.s
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29651 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29655 cat >>confdefs.h <<_ACEOF
29656 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29657 _ACEOF
29660 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29661 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29662 if echo "$ld_ver" | grep GNU > /dev/null; then
29663 if $gcc_cv_ld -V 2>/dev/null | grep elf_x86_64_sol2 > /dev/null; then
29664 ld_ix86_gld_64_opt="-melf_x86_64_sol2"
29665 else
29666 ld_ix86_gld_64_opt="-melf_x86_64"
29669 # Enforce 64-bit output with gas and gld.
29670 if test x$gas = xyes; then
29671 as_ix86_gas_64_opt="--64"
29673 conftest_s='
29674 .text
29675 .globl _start
29676 .type _start, @function
29677 _start:
29678 addq %r23,foo@GOTTPOFF(%rip), %r15
29679 .section .tdata,"awT",@progbits
29680 .type foo, @object
29681 foo:
29682 .quad 0'
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29684 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29685 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false; then :
29686 $as_echo_n "(cached) " >&6
29687 else
29688 gcc_cv_as_x86_64_code_6_gottpoff=no
29689 if test x$gcc_cv_as != x; then
29690 $as_echo "$conftest_s" > conftest.s
29691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29696 test $ac_status = 0; }; }
29697 then
29698 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29699 && test x$gcc_cv_readelf != x \
29700 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29701 | grep R_X86_64_CODE_6_GOTTPOFF > /dev/null 2>&1 \
29702 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o > /dev/null 2>&1; then
29703 if $gcc_cv_objdump -dw conftest 2>&1 \
29704 | grep "add \+\$0xf\+8,%r23,%r15" > /dev/null 2>&1; then
29705 gcc_cv_as_x86_64_code_6_gottpoff=yes
29706 else
29707 gcc_cv_as_x86_64_code_6_gottpoff=no
29710 rm -f conftest
29711 else
29712 echo "configure: failed program was" >&5
29713 cat conftest.s >&5
29715 rm -f conftest.o conftest.s
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29719 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29723 cat >>confdefs.h <<_ACEOF
29724 #define HAVE_AS_R_X86_64_CODE_6_GOTTPOFF `if test x"$gcc_cv_as_x86_64_code_6_gottpoff" = xyes; then echo 1; else echo 0; fi`
29725 _ACEOF
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29729 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29730 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29731 $as_echo_n "(cached) " >&6
29732 else
29733 gcc_cv_as_ix86_gotoff_in_data=no
29734 if test x$gcc_cv_as != x; then
29735 $as_echo ' .text
29736 .L0:
29738 .data
29739 .long .L0@GOTOFF' > conftest.s
29740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29745 test $ac_status = 0; }; }
29746 then
29747 gcc_cv_as_ix86_gotoff_in_data=yes
29748 else
29749 echo "configure: failed program was" >&5
29750 cat conftest.s >&5
29752 rm -f conftest.o conftest.s
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29756 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29760 cat >>confdefs.h <<_ACEOF
29761 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29762 _ACEOF
29765 conftest_s='
29766 .section .text,"ax",@progbits
29767 .globl _start
29768 .type _start, @function
29769 _start:
29770 leal ld@tlsldm(%ecx), %eax
29771 call *___tls_get_addr@GOT(%ecx)
29772 leal gd@tlsgd(%ecx), %eax
29773 call *___tls_get_addr@GOT(%ecx)
29775 .section .tdata,"aw'$tls_section_flag'",@progbits
29776 .type ld, @object
29778 .byte 0
29779 .globl gd
29780 .type gd, @object
29782 .byte 0'
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29784 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29785 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29786 $as_echo_n "(cached) " >&6
29787 else
29788 gcc_cv_as_ix86_tls_get_addr_via_got=no
29789 if test x$gcc_cv_as != x; then
29790 $as_echo "$conftest_s" > conftest.s
29791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29793 (eval $ac_try) 2>&5
29794 ac_status=$?
29795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29796 test $ac_status = 0; }; }
29797 then
29798 if test x$gcc_cv_ld != x \
29799 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29800 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29802 rm -f conftest
29803 else
29804 echo "configure: failed program was" >&5
29805 cat conftest.s >&5
29807 rm -f conftest.o conftest.s
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29811 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29815 cat >>confdefs.h <<_ACEOF
29816 #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`
29817 _ACEOF
29821 ia64*-*-*)
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29823 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29824 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29825 $as_echo_n "(cached) " >&6
29826 else
29827 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29828 if test x$gcc_cv_as != x; then
29829 $as_echo ' .text
29830 addl r15 = @ltoffx(x#), gp
29832 ld8.mov r16 = [r15], x#
29833 ' > conftest.s
29834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29836 (eval $ac_try) 2>&5
29837 ac_status=$?
29838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29839 test $ac_status = 0; }; }
29840 then
29841 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29842 else
29843 echo "configure: failed program was" >&5
29844 cat conftest.s >&5
29846 rm -f conftest.o conftest.s
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29850 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29851 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29853 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29860 powerpc*-*-*)
29862 case $target in
29863 *-*-darwin*)
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29865 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29866 if ${gcc_cv_as_machine_directive+:} false; then :
29867 $as_echo_n "(cached) " >&6
29868 else
29869 gcc_cv_as_machine_directive=no
29870 if test x$gcc_cv_as != x; then
29871 $as_echo ' .machine ppc7400' > conftest.s
29872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29874 (eval $ac_try) 2>&5
29875 ac_status=$?
29876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29877 test $ac_status = 0; }; }
29878 then
29879 gcc_cv_as_machine_directive=yes
29880 else
29881 echo "configure: failed program was" >&5
29882 cat conftest.s >&5
29884 rm -f conftest.o conftest.s
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29888 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29891 if test x$gcc_cv_as_machine_directive != xyes; then
29892 echo "*** This target requires an assembler supporting \".machine\"" >&2
29893 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
29894 test x$build = x$target && exit 1
29897 esac
29899 case $target in
29900 *-*-aix*) conftest_s=' .machine "pwr5"
29901 .csect .text[PR]
29902 mfcr 3,128';;
29903 *-*-darwin*) conftest_s=' .text
29904 mfcr r3,128';;
29905 *) conftest_s=' .machine power4
29906 .text
29907 mfcr 3,128';;
29908 esac
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
29911 $as_echo_n "checking assembler for mfcr field support... " >&6; }
29912 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
29913 $as_echo_n "(cached) " >&6
29914 else
29915 gcc_cv_as_powerpc_mfcrf=no
29916 if test x$gcc_cv_as != x; then
29917 $as_echo "$conftest_s" > conftest.s
29918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29923 test $ac_status = 0; }; }
29924 then
29925 gcc_cv_as_powerpc_mfcrf=yes
29926 else
29927 echo "configure: failed program was" >&5
29928 cat conftest.s >&5
29930 rm -f conftest.o conftest.s
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
29934 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
29935 if test $gcc_cv_as_powerpc_mfcrf = yes; then
29937 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
29942 case $target in
29943 *-*-aix*) conftest_s=' .machine "pwr10"
29944 .csect .text[PR]
29945 tend. 0';;
29946 *-*-darwin*) conftest_s=' .text
29947 tend. 0';;
29948 *) conftest_s=' .machine power10
29949 .text
29950 tend. 0';;
29951 esac
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
29954 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
29955 if ${gcc_cv_as_power10_htm+:} false; then :
29956 $as_echo_n "(cached) " >&6
29957 else
29958 gcc_cv_as_power10_htm=no
29959 if test x$gcc_cv_as != x; then
29960 $as_echo "$conftest_s" > conftest.s
29961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29966 test $ac_status = 0; }; }
29967 then
29968 gcc_cv_as_power10_htm=yes
29969 else
29970 echo "configure: failed program was" >&5
29971 cat conftest.s >&5
29973 rm -f conftest.o conftest.s
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
29977 $as_echo "$gcc_cv_as_power10_htm" >&6; }
29978 if test $gcc_cv_as_power10_htm = yes; then
29980 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
29985 case $target in
29986 *-*-aix*) conftest_s=' .csect .text[PR]
29987 LCF..0:
29988 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
29989 *-*-darwin*)
29990 conftest_s=' .text
29991 LCF0:
29992 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
29993 *) conftest_s=' .text
29994 .LCF0:
29995 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
29996 esac
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
29999 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30000 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30001 $as_echo_n "(cached) " >&6
30002 else
30003 gcc_cv_as_powerpc_rel16=no
30004 if test x$gcc_cv_as != x; then
30005 $as_echo "$conftest_s" > conftest.s
30006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30011 test $ac_status = 0; }; }
30012 then
30013 gcc_cv_as_powerpc_rel16=yes
30014 else
30015 echo "configure: failed program was" >&5
30016 cat conftest.s >&5
30018 rm -f conftest.o conftest.s
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30022 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30023 if test $gcc_cv_as_powerpc_rel16 = yes; then
30025 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30030 case $target in
30031 *-*-aix*) conftest_s=' .machine "pwr7"
30032 .csect .text[PR]
30033 lxvd2x 1,2,3';;
30034 *) conftest_s=' .machine power7
30035 .text
30036 lxvd2x 1,2,3';;
30037 esac
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30040 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30041 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30042 $as_echo_n "(cached) " >&6
30043 else
30044 gcc_cv_as_powerpc_vsx=no
30045 if test x$gcc_cv_as != x; then
30046 $as_echo "$conftest_s" > conftest.s
30047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30049 (eval $ac_try) 2>&5
30050 ac_status=$?
30051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30052 test $ac_status = 0; }; }
30053 then
30054 gcc_cv_as_powerpc_vsx=yes
30055 else
30056 echo "configure: failed program was" >&5
30057 cat conftest.s >&5
30059 rm -f conftest.o conftest.s
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30063 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30064 if test $gcc_cv_as_powerpc_vsx = yes; then
30066 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30072 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30073 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30074 $as_echo_n "(cached) " >&6
30075 else
30076 gcc_cv_as_powerpc_gnu_attribute=no
30077 if test x$gcc_cv_as != x; then
30078 $as_echo '.gnu_attribute 4,1' > conftest.s
30079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30081 (eval $ac_try) 2>&5
30082 ac_status=$?
30083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30084 test $ac_status = 0; }; }
30085 then
30086 gcc_cv_as_powerpc_gnu_attribute=yes
30087 else
30088 echo "configure: failed program was" >&5
30089 cat conftest.s >&5
30091 rm -f conftest.o conftest.s
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30095 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30096 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30098 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30104 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30105 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30106 $as_echo_n "(cached) " >&6
30107 else
30108 gcc_cv_as_powerpc_entry_markers=no
30109 if test x$gcc_cv_as != x; then
30110 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30116 test $ac_status = 0; }; }
30117 then
30118 gcc_cv_as_powerpc_entry_markers=yes
30119 else
30120 echo "configure: failed program was" >&5
30121 cat conftest.s >&5
30123 rm -f conftest.o conftest.s
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30127 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30128 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30130 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30136 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30137 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30138 $as_echo_n "(cached) " >&6
30139 else
30140 gcc_cv_as_powerpc_pltseq_markers=no
30141 if test x$gcc_cv_as != x; then
30142 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30145 (eval $ac_try) 2>&5
30146 ac_status=$?
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; }
30149 then
30150 gcc_cv_as_powerpc_pltseq_markers=yes
30151 else
30152 echo "configure: failed program was" >&5
30153 cat conftest.s >&5
30155 rm -f conftest.o conftest.s
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30159 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30160 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30162 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30167 case $target in
30168 *-*-aix*)
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30170 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30171 if ${gcc_cv_as_aix_ref+:} false; then :
30172 $as_echo_n "(cached) " >&6
30173 else
30174 gcc_cv_as_aix_ref=no
30175 if test x$gcc_cv_as != x; then
30176 $as_echo ' .csect stuff[rw]
30177 stuff:
30178 .long 1
30179 .extern sym
30180 .ref sym
30181 ' > conftest.s
30182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30184 (eval $ac_try) 2>&5
30185 ac_status=$?
30186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30187 test $ac_status = 0; }; }
30188 then
30189 gcc_cv_as_aix_ref=yes
30190 else
30191 echo "configure: failed program was" >&5
30192 cat conftest.s >&5
30194 rm -f conftest.o conftest.s
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30198 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30199 if test $gcc_cv_as_aix_ref = yes; then
30201 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30207 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30208 if ${gcc_cv_as_aix_dwloc+:} false; then :
30209 $as_echo_n "(cached) " >&6
30210 else
30211 gcc_cv_as_aix_dwloc=no
30212 if test x$gcc_cv_as != x; then
30213 $as_echo ' .dwsect 0xA0000
30214 Lframe..0:
30215 .vbyte 4,Lframe..0
30216 ' > conftest.s
30217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30222 test $ac_status = 0; }; }
30223 then
30224 gcc_cv_as_aix_dwloc=yes
30225 else
30226 echo "configure: failed program was" >&5
30227 cat conftest.s >&5
30229 rm -f conftest.o conftest.s
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30233 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30234 if test $gcc_cv_as_aix_dwloc = yes; then
30236 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30241 esac
30244 mips*-*-*)
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30246 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30247 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false; then :
30248 $as_echo_n "(cached) " >&6
30249 else
30250 gcc_cv_as_mips_explicit_relocs_pcrel=no
30251 if test x$gcc_cv_as != x; then
30252 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30255 (eval $ac_try) 2>&5
30256 ac_status=$?
30257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30258 test $ac_status = 0; }; }
30259 then
30260 gcc_cv_as_mips_explicit_relocs_pcrel=yes
30261 else
30262 echo "configure: failed program was" >&5
30263 cat conftest.s >&5
30265 rm -f conftest.o conftest.s
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30269 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30270 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30272 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30277 if test x$gcc_cv_as_mips_explicit_relocs_pcrel = xno; then \
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30279 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30280 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30281 $as_echo_n "(cached) " >&6
30282 else
30283 gcc_cv_as_mips_explicit_relocs=no
30284 if test x$gcc_cv_as != x; then
30285 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30288 (eval $ac_try) 2>&5
30289 ac_status=$?
30290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30291 test $ac_status = 0; }; }
30292 then
30293 gcc_cv_as_mips_explicit_relocs=yes
30294 else
30295 echo "configure: failed program was" >&5
30296 cat conftest.s >&5
30298 rm -f conftest.o conftest.s
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30302 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30303 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30305 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30309 else
30310 gcc_cv_as_mips_explicit_relocs=yes
30313 if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
30315 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30320 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30321 if ${gcc_cv_as_mips_no_shared+:} false; then :
30322 $as_echo_n "(cached) " >&6
30323 else
30324 gcc_cv_as_mips_no_shared=no
30325 if test x$gcc_cv_as != x; then
30326 $as_echo 'nop' > conftest.s
30327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30329 (eval $ac_try) 2>&5
30330 ac_status=$?
30331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30332 test $ac_status = 0; }; }
30333 then
30334 gcc_cv_as_mips_no_shared=yes
30335 else
30336 echo "configure: failed program was" >&5
30337 cat conftest.s >&5
30339 rm -f conftest.o conftest.s
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30343 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30344 if test $gcc_cv_as_mips_no_shared = yes; then
30346 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30352 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30353 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30354 $as_echo_n "(cached) " >&6
30355 else
30356 gcc_cv_as_mips_gnu_attribute=no
30357 if test x$gcc_cv_as != x; then
30358 $as_echo '.gnu_attribute 4,1' > conftest.s
30359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30364 test $ac_status = 0; }; }
30365 then
30366 gcc_cv_as_mips_gnu_attribute=yes
30367 else
30368 echo "configure: failed program was" >&5
30369 cat conftest.s >&5
30371 rm -f conftest.o conftest.s
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30375 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30376 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30378 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30384 $as_echo_n "checking assembler for .module support... " >&6; }
30385 if ${gcc_cv_as_mips_dot_module+:} false; then :
30386 $as_echo_n "(cached) " >&6
30387 else
30388 gcc_cv_as_mips_dot_module=no
30389 if test x$gcc_cv_as != x; then
30390 $as_echo '.module mips2
30391 .module fp=xx' > conftest.s
30392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30394 (eval $ac_try) 2>&5
30395 ac_status=$?
30396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30397 test $ac_status = 0; }; }
30398 then
30399 gcc_cv_as_mips_dot_module=yes
30400 else
30401 echo "configure: failed program was" >&5
30402 cat conftest.s >&5
30404 rm -f conftest.o conftest.s
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30408 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30409 if test $gcc_cv_as_mips_dot_module = yes; then
30411 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30415 if test x$gcc_cv_as_mips_dot_module = xno \
30416 && test x$with_fp_32 != x; then
30417 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30421 $as_echo_n "checking assembler for .micromips support... " >&6; }
30422 if ${gcc_cv_as_micromips_support+:} false; then :
30423 $as_echo_n "(cached) " >&6
30424 else
30425 gcc_cv_as_micromips_support=no
30426 if test x$gcc_cv_as != x; then
30427 $as_echo '.set micromips' > conftest.s
30428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30430 (eval $ac_try) 2>&5
30431 ac_status=$?
30432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30433 test $ac_status = 0; }; }
30434 then
30435 gcc_cv_as_micromips_support=yes
30436 else
30437 echo "configure: failed program was" >&5
30438 cat conftest.s >&5
30440 rm -f conftest.o conftest.s
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30444 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30445 if test $gcc_cv_as_micromips_support = yes; then
30447 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30453 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30454 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30455 $as_echo_n "(cached) " >&6
30456 else
30457 gcc_cv_as_mips_dtprelword=no
30458 if test x$gcc_cv_as != x; then
30459 $as_echo '.section .tdata,"awT",@progbits
30461 .word 2
30462 .text
30463 .dtprelword x+0x8000' > conftest.s
30464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30466 (eval $ac_try) 2>&5
30467 ac_status=$?
30468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30469 test $ac_status = 0; }; }
30470 then
30471 gcc_cv_as_mips_dtprelword=yes
30472 else
30473 echo "configure: failed program was" >&5
30474 cat conftest.s >&5
30476 rm -f conftest.o conftest.s
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30480 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30481 if test $gcc_cv_as_mips_dtprelword = yes; then
30483 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30489 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30490 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30491 $as_echo_n "(cached) " >&6
30492 else
30493 gcc_cv_as_mips_dspr1_mult=no
30494 if test x$gcc_cv_as != x; then
30495 $as_echo ' .set mips32r2
30496 .set nodspr2
30497 .set dsp
30498 madd $ac3,$4,$5
30499 maddu $ac3,$4,$5
30500 msub $ac3,$4,$5
30501 msubu $ac3,$4,$5
30502 mult $ac3,$4,$5
30503 multu $ac3,$4,$5' > conftest.s
30504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30506 (eval $ac_try) 2>&5
30507 ac_status=$?
30508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30509 test $ac_status = 0; }; }
30510 then
30511 gcc_cv_as_mips_dspr1_mult=yes
30512 else
30513 echo "configure: failed program was" >&5
30514 cat conftest.s >&5
30516 rm -f conftest.o conftest.s
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30520 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30521 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30523 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30529 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30530 gcc_cv_as_ld_jalr_reloc=no
30531 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30532 if test $in_tree_ld = yes ; then
30533 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 \
30534 && test $in_tree_ld_is_elf = yes; then
30535 gcc_cv_as_ld_jalr_reloc=yes
30537 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30538 echo ' .ent x' > conftest.s
30539 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30540 echo ' lw $25,%call16(y)($28)' >> conftest.s
30541 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30542 echo '1: jalr $25' >> conftest.s
30543 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30544 echo '1: jalr $25' >> conftest.s
30545 echo ' .end x' >> conftest.s
30546 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30547 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30548 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30549 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30550 gcc_cv_as_ld_jalr_reloc=yes
30553 rm -f conftest.*
30556 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30557 if test x$target_cpu_default = x; then
30558 target_cpu_default=MASK_RELAX_PIC_CALLS
30559 else
30560 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30564 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30567 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30568 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30569 $as_echo_n "(cached) " >&6
30570 else
30571 gcc_cv_ld_mips_personality_relaxation=no
30572 if test $in_tree_ld = yes ; then
30573 if test "$gcc_cv_gld_major_version" -eq 2 \
30574 -a "$gcc_cv_gld_minor_version" -ge 21 \
30575 -o "$gcc_cv_gld_major_version" -gt 2; then
30576 gcc_cv_ld_mips_personality_relaxation=yes
30578 elif test x$gcc_cv_as != x \
30579 -a x$gcc_cv_ld != x \
30580 -a x$gcc_cv_readelf != x ; then
30581 cat > conftest.s <<EOF
30582 .cfi_startproc
30583 .cfi_personality 0x80,indirect_ptr
30584 .ent test
30585 test:
30587 .end test
30588 .cfi_endproc
30590 .section .data,"aw",@progbits
30591 indirect_ptr:
30592 .dc.a personality
30594 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30595 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30596 if $gcc_cv_readelf -d conftest 2>&1 \
30597 | grep TEXTREL > /dev/null 2>&1; then
30599 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30600 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30602 else
30603 gcc_cv_ld_mips_personality_relaxation=yes
30607 rm -f conftest.s conftest.o conftest
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30610 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30611 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30613 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30618 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30619 if ${gcc_cv_as_mips_nan+:} false; then :
30620 $as_echo_n "(cached) " >&6
30621 else
30622 gcc_cv_as_mips_nan=no
30623 if test x$gcc_cv_as != x; then
30624 $as_echo '' > conftest.s
30625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30627 (eval $ac_try) 2>&5
30628 ac_status=$?
30629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30630 test $ac_status = 0; }; }
30631 then
30632 gcc_cv_as_mips_nan=yes
30633 else
30634 echo "configure: failed program was" >&5
30635 cat conftest.s >&5
30637 rm -f conftest.o conftest.s
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30641 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30642 if test $gcc_cv_as_mips_nan = yes; then
30644 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30648 if test x$gcc_cv_as_mips_nan = xno \
30649 && test x$with_nan != x; then
30650 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30653 msp430-*-*)
30654 # Earlier GAS versions generically support .gnu_attribute, but the
30655 # msp430 assembler will not do anything with it.
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30657 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30658 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30659 $as_echo_n "(cached) " >&6
30660 else
30661 gcc_cv_as_msp430_gnu_attribute=no
30662 if test x$gcc_cv_as != x; then
30663 $as_echo '.gnu_attribute 4,1' > conftest.s
30664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30666 (eval $ac_try) 2>&5
30667 ac_status=$?
30668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30669 test $ac_status = 0; }; }
30670 then
30671 gcc_cv_as_msp430_gnu_attribute=yes
30672 else
30673 echo "configure: failed program was" >&5
30674 cat conftest.s >&5
30676 rm -f conftest.o conftest.s
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30680 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30681 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30683 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30688 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30689 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30690 $as_echo_n "(cached) " >&6
30691 else
30692 gcc_cv_as_msp430_mspabi_attribute=no
30693 if test x$gcc_cv_as != x; then
30694 $as_echo '.mspabi_attribute 4,2' > conftest.s
30695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30700 test $ac_status = 0; }; }
30701 then
30702 gcc_cv_as_msp430_mspabi_attribute=yes
30703 else
30704 echo "configure: failed program was" >&5
30705 cat conftest.s >&5
30707 rm -f conftest.o conftest.s
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30711 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30712 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30714 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30718 if test x$enable_newlib_nano_formatted_io = xyes; then
30720 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30724 nios2-*-*)
30725 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30726 # syntax that is documented in the ABI specification.
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30728 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30729 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30730 $as_echo_n "(cached) " >&6
30731 else
30732 gcc_cv_as_nios2_gotoff_relocation=no
30733 if test x$gcc_cv_as != x; then
30734 $as_echo ' .extern foo
30735 .data
30736 .long %gotoff(foo)' > conftest.s
30737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30739 (eval $ac_try) 2>&5
30740 ac_status=$?
30741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30742 test $ac_status = 0; }; }
30743 then
30744 gcc_cv_as_nios2_gotoff_relocation=yes
30745 else
30746 echo "configure: failed program was" >&5
30747 cat conftest.s >&5
30749 rm -f conftest.o conftest.s
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30753 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30754 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30756 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30761 riscv*-*-*)
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30763 $as_echo_n "checking assembler for .attribute support... " >&6; }
30764 if ${gcc_cv_as_riscv_attribute+:} false; then :
30765 $as_echo_n "(cached) " >&6
30766 else
30767 gcc_cv_as_riscv_attribute=no
30768 if test x$gcc_cv_as != x; then
30769 $as_echo '.attribute stack_align,4' > conftest.s
30770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30772 (eval $ac_try) 2>&5
30773 ac_status=$?
30774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30775 test $ac_status = 0; }; }
30776 then
30777 gcc_cv_as_riscv_attribute=yes
30778 else
30779 echo "configure: failed program was" >&5
30780 cat conftest.s >&5
30782 rm -f conftest.o conftest.s
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30786 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30787 if test $gcc_cv_as_riscv_attribute = yes; then
30789 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30794 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30795 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30796 $as_echo_n "(cached) " >&6
30797 else
30798 gcc_cv_as_riscv_isa_spec=no
30799 if test x$gcc_cv_as != x; then
30800 $as_echo '' > conftest.s
30801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30803 (eval $ac_try) 2>&5
30804 ac_status=$?
30805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30806 test $ac_status = 0; }; }
30807 then
30808 gcc_cv_as_riscv_isa_spec=yes
30809 else
30810 echo "configure: failed program was" >&5
30811 cat conftest.s >&5
30813 rm -f conftest.o conftest.s
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30817 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30818 if test $gcc_cv_as_riscv_isa_spec = yes; then
30820 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30825 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30826 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30827 $as_echo_n "(cached) " >&6
30828 else
30829 gcc_cv_as_riscv_march_zifencei=no
30830 if test x$gcc_cv_as != x; then
30831 $as_echo '' > conftest.s
30832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30834 (eval $ac_try) 2>&5
30835 ac_status=$?
30836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30837 test $ac_status = 0; }; }
30838 then
30839 gcc_cv_as_riscv_march_zifencei=yes
30840 else
30841 echo "configure: failed program was" >&5
30842 cat conftest.s >&5
30844 rm -f conftest.o conftest.s
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30848 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30849 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30851 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zaamo_zalrsc support" >&5
30856 $as_echo_n "checking assembler for -march=rv32i_zaamo_zalrsc support... " >&6; }
30857 if ${gcc_cv_as_riscv_march_zaamo_zalrsc+:} false; then :
30858 $as_echo_n "(cached) " >&6
30859 else
30860 gcc_cv_as_riscv_march_zaamo_zalrsc=no
30861 if test x$gcc_cv_as != x; then
30862 $as_echo '' > conftest.s
30863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zaamo_zalrsc -o conftest.o conftest.s >&5'
30864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30865 (eval $ac_try) 2>&5
30866 ac_status=$?
30867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30868 test $ac_status = 0; }; }
30869 then
30870 gcc_cv_as_riscv_march_zaamo_zalrsc=yes
30871 else
30872 echo "configure: failed program was" >&5
30873 cat conftest.s >&5
30875 rm -f conftest.o conftest.s
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zaamo_zalrsc" >&5
30879 $as_echo "$gcc_cv_as_riscv_march_zaamo_zalrsc" >&6; }
30880 if test $gcc_cv_as_riscv_march_zaamo_zalrsc = yes; then
30882 $as_echo "#define HAVE_AS_MARCH_ZAAMO_ZALRSC 1" >>confdefs.h
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_b support" >&5
30887 $as_echo_n "checking assembler for -march=rv32i_b support... " >&6; }
30888 if ${gcc_cv_as_riscv_march_b+:} false; then :
30889 $as_echo_n "(cached) " >&6
30890 else
30891 gcc_cv_as_riscv_march_b=no
30892 if test x$gcc_cv_as != x; then
30893 $as_echo '' > conftest.s
30894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_b -o conftest.o conftest.s >&5'
30895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30896 (eval $ac_try) 2>&5
30897 ac_status=$?
30898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30899 test $ac_status = 0; }; }
30900 then
30901 gcc_cv_as_riscv_march_b=yes
30902 else
30903 echo "configure: failed program was" >&5
30904 cat conftest.s >&5
30906 rm -f conftest.o conftest.s
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_b" >&5
30910 $as_echo "$gcc_cv_as_riscv_march_b" >&6; }
30911 if test $gcc_cv_as_riscv_march_b = yes; then
30913 $as_echo "#define HAVE_AS_MARCH_B 1" >>confdefs.h
30918 loongarch*-*-*)
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30920 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30921 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30922 $as_echo_n "(cached) " >&6
30923 else
30924 gcc_cv_as_loongarch_dtprelword=no
30925 if test x$gcc_cv_as != x; then
30926 $as_echo '' > conftest.s
30927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30929 (eval $ac_try) 2>&5
30930 ac_status=$?
30931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30932 test $ac_status = 0; }; }
30933 then
30934 .section .tdata,"awT",@progbits
30936 .word 2
30937 .text
30938 .dtprelword x+0x8000
30939 else
30940 echo "configure: failed program was" >&5
30941 cat conftest.s >&5
30943 rm -f conftest.o conftest.s
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30947 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30949 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30951 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30955 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30956 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
30957 $as_echo_n "(cached) " >&6
30958 else
30959 gcc_cv_as_loongarch_explicit_relocs=no
30960 if test x$gcc_cv_as != x; then
30961 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967 test $ac_status = 0; }; }
30968 then
30969 gcc_cv_as_loongarch_explicit_relocs=yes
30970 else
30971 echo "configure: failed program was" >&5
30972 cat conftest.s >&5
30974 rm -f conftest.o conftest.s
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30978 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30979 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30981 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30986 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30987 if ${gcc_cv_as_loongarch_call36+:} false; then :
30988 $as_echo_n "(cached) " >&6
30989 else
30990 gcc_cv_as_loongarch_call36=no
30991 if test x$gcc_cv_as != x; then
30992 $as_echo 'pcaddu18i $r1, %call36(a)
30993 jirl $r1, $r1, 0' > conftest.s
30994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30999 test $ac_status = 0; }; }
31000 then
31001 gcc_cv_as_loongarch_call36=yes
31002 else
31003 echo "configure: failed program was" >&5
31004 cat conftest.s >&5
31006 rm -f conftest.o conftest.s
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31010 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31011 if test $gcc_cv_as_loongarch_call36 = yes; then
31013 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31018 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31019 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31020 $as_echo_n "(cached) " >&6
31021 else
31022 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31023 if test x$gcc_cv_as != x; then
31024 $as_echo '.cfi_startproc
31025 .cfi_personality 0x9b,a
31026 .cfi_lsda 0x1b,b
31027 .cfi_endproc' > conftest.s
31028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31033 test $ac_status = 0; }; }
31034 then
31035 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31036 else
31037 echo "configure: failed program was" >&5
31038 cat conftest.s >&5
31040 rm -f conftest.o conftest.s
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31044 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31045 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31047 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31052 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31053 if ${gcc_cv_as_loongarch_relax+:} false; then :
31054 $as_echo_n "(cached) " >&6
31055 else
31056 gcc_cv_as_loongarch_relax=no
31057 if test x$gcc_cv_as != x; then
31058 $as_echo '.text' > conftest.s
31059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31061 (eval $ac_try) 2>&5
31062 ac_status=$?
31063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31064 test $ac_status = 0; }; }
31065 then
31066 gcc_cv_as_loongarch_relax=yes
31067 else
31068 echo "configure: failed program was" >&5
31069 cat conftest.s >&5
31071 rm -f conftest.o conftest.s
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31075 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31076 if test $gcc_cv_as_loongarch_relax = yes; then
31078 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31083 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31084 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31085 $as_echo_n "(cached) " >&6
31086 else
31087 gcc_cv_as_loongarch_cond_branch_relax=no
31088 if test x$gcc_cv_as != x; then
31089 $as_echo 'a:
31090 .rept 32769
31092 .endr
31093 beq $a0,$a1,a' > conftest.s
31094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31096 (eval $ac_try) 2>&5
31097 ac_status=$?
31098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31099 test $ac_status = 0; }; }
31100 then
31101 gcc_cv_as_loongarch_cond_branch_relax=yes
31102 else
31103 echo "configure: failed program was" >&5
31104 cat conftest.s >&5
31106 rm -f conftest.o conftest.s
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31110 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31111 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31113 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31118 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31119 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31120 $as_echo_n "(cached) " >&6
31121 else
31122 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31123 if test x$gcc_cv_as != x; then
31124 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31127 (eval $ac_try) 2>&5
31128 ac_status=$?
31129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31130 test $ac_status = 0; }; }
31131 then
31132 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31133 else
31134 echo "configure: failed program was" >&5
31135 cat conftest.s >&5
31137 rm -f conftest.o conftest.s
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31141 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31142 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31144 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31149 s390*-*-*)
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31151 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31152 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31153 $as_echo_n "(cached) " >&6
31154 else
31155 gcc_cv_as_s390_gnu_attribute=no
31156 if test x$gcc_cv_as != x; then
31157 $as_echo '.gnu_attribute 8,1' > conftest.s
31158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31160 (eval $ac_try) 2>&5
31161 ac_status=$?
31162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31163 test $ac_status = 0; }; }
31164 then
31165 gcc_cv_as_s390_gnu_attribute=yes
31166 else
31167 echo "configure: failed program was" >&5
31168 cat conftest.s >&5
31170 rm -f conftest.o conftest.s
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31174 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31175 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31177 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31182 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31183 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31184 $as_echo_n "(cached) " >&6
31185 else
31186 gcc_cv_as_s390_machine_machinemode=no
31187 if test x$gcc_cv_as != x; then
31188 $as_echo ' .machinemode push
31189 .machinemode pop
31190 .machine push
31191 .machine pop' > conftest.s
31192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31194 (eval $ac_try) 2>&5
31195 ac_status=$?
31196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31197 test $ac_status = 0; }; }
31198 then
31199 gcc_cv_as_s390_machine_machinemode=yes
31200 else
31201 echo "configure: failed program was" >&5
31202 cat conftest.s >&5
31204 rm -f conftest.o conftest.s
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31208 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31209 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31211 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31216 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31217 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31218 $as_echo_n "(cached) " >&6
31219 else
31220 gcc_cv_as_s390_architecture_modifiers=no
31221 if test x$gcc_cv_as != x; then
31222 $as_echo ' .machine z13+vx ' > conftest.s
31223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31225 (eval $ac_try) 2>&5
31226 ac_status=$?
31227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31228 test $ac_status = 0; }; }
31229 then
31230 gcc_cv_as_s390_architecture_modifiers=yes
31231 else
31232 echo "configure: failed program was" >&5
31233 cat conftest.s >&5
31235 rm -f conftest.o conftest.s
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31239 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31240 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31242 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31247 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31248 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31249 $as_echo_n "(cached) " >&6
31250 else
31251 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31252 if test x$gcc_cv_as != x; then
31253 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31256 (eval $ac_try) 2>&5
31257 ac_status=$?
31258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31259 test $ac_status = 0; }; }
31260 then
31261 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31262 else
31263 echo "configure: failed program was" >&5
31264 cat conftest.s >&5
31266 rm -f conftest.o conftest.s
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31270 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31271 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31273 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31278 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31279 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31280 $as_echo_n "(cached) " >&6
31281 else
31282 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31283 if test x$gcc_cv_as != x; then
31284 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31287 (eval $ac_try) 2>&5
31288 ac_status=$?
31289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31290 test $ac_status = 0; }; }
31291 then
31292 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31293 else
31294 echo "configure: failed program was" >&5
31295 cat conftest.s >&5
31297 rm -f conftest.o conftest.s
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31301 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31302 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31304 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31310 esac
31312 # Mips, LoongArch and HP-UX need the GNU assembler.
31313 # Linux on IA64 might be able to use the Intel assembler.
31315 case "$target" in
31316 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31317 if test x$gas_flag = xyes \
31318 || test x"$host" != x"$build" \
31319 || test ! -x "$gcc_cv_as" \
31320 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31322 else
31323 echo "*** This configuration requires the GNU assembler" >&2
31324 exit 1
31327 esac
31329 # AMD GCN needs the LLVM assembler and linker.
31330 # Test that LLVM is at least 13.0.1.
31331 case "$target" in
31332 amdgcn-* | gcn-*)
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31334 $as_echo_n "checking llvm assembler version... " >&6; }
31335 gcc_cv_as_version="unknown"
31336 if test x$gcc_cv_as != x; then
31337 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31338 case "$gcc_cv_as_version" in
31339 13.0.[1-9]*) ;; # 13.0.1+
31340 13.[1-9]*) ;; # 13.1+
31341 1[4-9]*) ;; # 14..19
31342 [2-9][0-9]*) ;; # 20..99
31343 [1-9][0-9][0-9]*) ;; # 100+
31344 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31345 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31346 esac
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31349 $as_echo "$gcc_cv_as_version, ok" >&6; }
31351 esac
31353 case "$target" in
31354 arm*)
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31356 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31357 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31358 $as_echo_n "(cached) " >&6
31359 else
31360 gcc_cv_as_arm_option_extensions=no
31361 if test x$gcc_cv_as != x; then
31362 $as_echo '.text
31363 .thumb
31364 .syntax unified
31365 vmov.f32 s0, s1' > conftest.s
31366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31368 (eval $ac_try) 2>&5
31369 ac_status=$?
31370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31371 test $ac_status = 0; }; }
31372 then
31373 gcc_cv_as_arm_option_extensions=yes
31374 else
31375 echo "configure: failed program was" >&5
31376 cat conftest.s >&5
31378 rm -f conftest.o conftest.s
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31382 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31383 if test $gcc_cv_as_arm_option_extensions = yes; then
31385 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31389 esac
31391 # ??? Not all targets support dwarf2 debug_line, even within a version
31392 # of gas. Moreover, we need to emit a valid instruction to trigger any
31393 # info to the output file. So, as supported targets are added to gas 2.11,
31394 # add some instruction here to (also) show we expect this might work.
31395 # ??? Once 2.11 is released, probably need to add first known working
31396 # version to the per-target configury.
31397 case "$cpu_type" in
31398 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31399 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31400 | visium | xstormy16 | xtensa | ft32)
31401 insn="nop"
31403 ia64 | s390)
31404 insn="nop 0"
31406 mmix)
31407 insn="swym 0"
31409 esac
31410 if test x"$insn" != x; then
31411 conftest_s="\
31412 .file 1 \"conftest.s\"
31413 .loc 1 3 0
31414 $insn"
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31416 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31417 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31418 $as_echo_n "(cached) " >&6
31419 else
31420 gcc_cv_as_dwarf2_debug_line=no
31421 if test x$gcc_cv_as != x; then
31422 $as_echo "$conftest_s" > conftest.s
31423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31425 (eval $ac_try) 2>&5
31426 ac_status=$?
31427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31428 test $ac_status = 0; }; }
31429 then
31430 if test x$gcc_cv_objdump != x \
31431 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31432 | grep debug_line > /dev/null 2>&1; then
31433 gcc_cv_as_dwarf2_debug_line=yes
31434 elif test x$gcc_cv_otool != x \
31435 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31436 | grep debug_line > /dev/null 2>&1; then
31437 gcc_cv_as_dwarf2_debug_line=yes
31439 else
31440 echo "configure: failed program was" >&5
31441 cat conftest.s >&5
31443 rm -f conftest.o conftest.s
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31447 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31451 # The .debug_line file table must be in the exact order that
31452 # we specified the files, since these indices are also used
31453 # by DW_AT_decl_file. Approximate this test by testing if
31454 # the assembler bitches if the same index is assigned twice.
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31456 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31457 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31458 $as_echo_n "(cached) " >&6
31459 else
31460 gcc_cv_as_dwarf2_file_buggy=no
31461 if test x$gcc_cv_as != x; then
31462 $as_echo ' .file 1 "foo.s"
31463 .file 1 "bar.s"' > conftest.s
31464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31466 (eval $ac_try) 2>&5
31467 ac_status=$?
31468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31469 test $ac_status = 0; }; }
31470 then
31471 gcc_cv_as_dwarf2_file_buggy=yes
31472 else
31473 echo "configure: failed program was" >&5
31474 cat conftest.s >&5
31476 rm -f conftest.o conftest.s
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31480 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31484 if test $gcc_cv_as_dwarf2_debug_line = yes \
31485 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31487 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31490 if test $gcc_cv_as_leb128 = yes; then
31491 conftest_s="\
31492 .file 1 \"conftest.s\"
31493 .loc 1 3 0 view .LVU1
31494 $insn
31495 .data
31496 .uleb128 .LVU1
31497 .uleb128 .LVU1
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31500 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31501 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31502 $as_echo_n "(cached) " >&6
31503 else
31504 gcc_cv_as_dwarf2_debug_view=no
31505 if test x$gcc_cv_as != x; then
31506 $as_echo "$conftest_s" > conftest.s
31507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31509 (eval $ac_try) 2>&5
31510 ac_status=$?
31511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31512 test $ac_status = 0; }; }
31513 then
31514 gcc_cv_as_dwarf2_debug_view=yes
31515 else
31516 echo "configure: failed program was" >&5
31517 cat conftest.s >&5
31519 rm -f conftest.o conftest.s
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31523 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31524 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31526 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31534 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31535 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31536 $as_echo_n "(cached) " >&6
31537 else
31538 gcc_cv_as_gdwarf2_flag=no
31539 if test x$gcc_cv_as != x; then
31540 $as_echo "$insn" > conftest.s
31541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31543 (eval $ac_try) 2>&5
31544 ac_status=$?
31545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31546 test $ac_status = 0; }; }
31547 then
31548 gcc_cv_as_gdwarf2_flag=yes
31549 else
31550 echo "configure: failed program was" >&5
31551 cat conftest.s >&5
31553 rm -f conftest.o conftest.s
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31557 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31558 if test $gcc_cv_as_gdwarf2_flag = yes; then
31560 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31566 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31567 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31568 $as_echo_n "(cached) " >&6
31569 else
31570 gcc_cv_as_gdwarf_5_flag=no
31571 if test x$gcc_cv_as != x; then
31572 $as_echo "$insn" > conftest.s
31573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31575 (eval $ac_try) 2>&5
31576 ac_status=$?
31577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31578 test $ac_status = 0; }; }
31579 then
31580 if test x$gcc_cv_objdump != x \
31581 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31582 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31583 gcc_cv_as_gdwarf_5_flag=yes;
31585 else
31586 echo "configure: failed program was" >&5
31587 cat conftest.s >&5
31589 rm -f conftest.o conftest.s
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31593 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31594 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31596 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31601 case $target_os in
31602 win32 | pe | cygwin* | mingw32*)
31603 section_flags=\"dr\"
31604 function_type=".def foo; .scl 2; .type 32; .endef"
31605 function_size="";;
31607 section_flags=\"\",%progbits
31608 function_type=".type foo, %function"
31609 function_size=".size foo, .-foo";;
31610 esac
31611 dwarf4_debug_info_size=0x46
31612 dwarf4_high_pc_form=7
31613 dwarf4_debug_aranges_size=0x2c
31614 dwarf4_line_sz=9
31615 for dwarf4_addr_size in 8 4; do
31616 conftest_s="\
31617 .file \"a.c\"
31618 .text
31619 .Ltext0:
31620 .p2align 4
31621 .globl foo
31622 $function_type
31623 foo:
31624 .LFB0:
31625 .LM1:
31626 $insn
31627 .LM2:
31628 .LFE0:
31629 $function_size
31630 .Letext0:
31631 .section .debug_info,$section_flags
31632 .Ldebug_info0:
31633 .4byte $dwarf4_debug_info_size
31634 .2byte 0x4
31635 .4byte .Ldebug_abbrev0
31636 .byte 0x$dwarf4_addr_size
31637 .byte 0x1
31638 .ascii \"GNU C17\\0\"
31639 .byte 0xc
31640 .ascii \"a.c\\0\"
31641 .ascii \"/\\0\"
31642 .${dwarf4_addr_size}byte .Ltext0
31643 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31644 .4byte .Ldebug_line0
31645 .byte 0x2
31646 .ascii \"foo\\0\"
31647 .byte 0x1
31648 .byte 0x2
31649 .byte 0x1
31650 .${dwarf4_addr_size}byte .LFB0
31651 .${dwarf4_addr_size}byte .LFE0-.LFB0
31652 .byte 0x1
31653 .byte 0x9c
31654 .byte 0
31655 .section .debug_abbrev,$section_flags
31656 .Ldebug_abbrev0:
31657 .byte 0x1
31658 .byte 0x11
31659 .byte 0x1
31660 .byte 0x25
31661 .byte 0x8
31662 .byte 0x13
31663 .byte 0xb
31664 .byte 0x3
31665 .byte 0x8
31666 .byte 0x1b
31667 .byte 0x8
31668 .byte 0x11
31669 .byte 0x1
31670 .byte 0x12
31671 .byte 0x$dwarf4_high_pc_form
31672 .byte 0x10
31673 .byte 0x17
31674 .byte 0
31675 .byte 0
31676 .byte 0x2
31677 .byte 0x2e
31678 .byte 0
31679 .byte 0x3f
31680 .byte 0x19
31681 .byte 0x3
31682 .byte 0x8
31683 .byte 0x3a
31684 .byte 0xb
31685 .byte 0x3b
31686 .byte 0xb
31687 .byte 0x39
31688 .byte 0xb
31689 .byte 0x11
31690 .byte 0x1
31691 .byte 0x12
31692 .byte 0x$dwarf4_high_pc_form
31693 .byte 0x40
31694 .byte 0x18
31695 .byte 0
31696 .byte 0
31697 .byte 0
31698 .section .debug_aranges,$section_flags
31699 .4byte $dwarf4_debug_aranges_size
31700 .2byte 0x2
31701 .4byte .Ldebug_info0
31702 .byte 0x8
31703 .byte 0
31704 .2byte 0
31705 .2byte 0
31706 .${dwarf4_addr_size}byte .Ltext0
31707 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31708 .${dwarf4_addr_size}byte 0
31709 .${dwarf4_addr_size}byte 0
31710 .section .debug_line,$section_flags
31711 .Ldebug_line0:
31712 .4byte .LELT0-.LSLT0
31713 .LSLT0:
31714 .2byte 0x4
31715 .4byte .LELTP0-.LASLTP0
31716 .LASLTP0:
31717 .byte 0x1
31718 .byte 0x1
31719 .byte 0x1
31720 .byte 0xf6
31721 .byte 0xf2
31722 .byte 0xd
31723 .byte 0
31724 .byte 0x1
31725 .byte 0x1
31726 .byte 0x1
31727 .byte 0x1
31728 .byte 0
31729 .byte 0
31730 .byte 0
31731 .byte 0x1
31732 .byte 0
31733 .byte 0
31734 .byte 0x1
31735 .byte 0
31736 .ascii \"a.c\\0\"
31737 .byte 0
31738 .byte 0
31739 .byte 0
31740 .byte 0
31741 .LELTP0:
31742 .byte 0
31743 .byte 0x$dwarf4_line_sz
31744 .byte 0x2
31745 .${dwarf4_addr_size}byte .LM1
31746 .byte 0x18
31747 .byte 0x5
31748 .byte 0x1
31749 .byte 0
31750 .byte 0x$dwarf4_line_sz
31751 .byte 0x2
31752 .${dwarf4_addr_size}byte .LM2
31753 .byte 0x1
31754 .byte 0x5
31755 .byte 0x1
31756 .byte 0
31757 .byte 0x$dwarf4_line_sz
31758 .byte 0x2
31759 .${dwarf4_addr_size}byte .Letext0
31760 .byte 0
31761 .byte 0x1
31762 .byte 0x1
31763 .LELT0:
31764 .section .debug_str,$section_flags
31765 .ident \"GCC\"
31767 dwarf4_success=no
31768 if test $dwarf4_addr_size = 4; then
31769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31770 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31771 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31772 $as_echo_n "(cached) " >&6
31773 else
31774 gcc_cv_as_debug_line_32_flag=no
31775 if test x$gcc_cv_as != x; then
31776 $as_echo "$conftest_s" > conftest.s
31777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31779 (eval $ac_try) 2>&5
31780 ac_status=$?
31781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31782 test $ac_status = 0; }; }
31783 then
31784 gcc_cv_as_debug_line_32_flag=yes
31785 else
31786 echo "configure: failed program was" >&5
31787 cat conftest.s >&5
31789 rm -f conftest.o conftest.s
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31793 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31794 if test $gcc_cv_as_debug_line_32_flag = yes; then
31795 dwarf4_success=yes
31798 else
31799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31800 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31801 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31802 $as_echo_n "(cached) " >&6
31803 else
31804 gcc_cv_as_debug_line_64_flag=no
31805 if test x$gcc_cv_as != x; then
31806 $as_echo "$conftest_s" > conftest.s
31807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31809 (eval $ac_try) 2>&5
31810 ac_status=$?
31811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31812 test $ac_status = 0; }; }
31813 then
31814 gcc_cv_as_debug_line_64_flag=yes
31815 else
31816 echo "configure: failed program was" >&5
31817 cat conftest.s >&5
31819 rm -f conftest.o conftest.s
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31823 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31824 if test $gcc_cv_as_debug_line_64_flag = yes; then
31825 dwarf4_success=yes
31829 if test $dwarf4_success = yes; then
31830 dwarf4_success=no
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31832 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31833 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31834 $as_echo_n "(cached) " >&6
31835 else
31836 gcc_cv_as_dwarf_4_debug_line_flag=no
31837 if test x$gcc_cv_as != x; then
31838 $as_echo "$conftest_s" > conftest.s
31839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31841 (eval $ac_try) 2>&5
31842 ac_status=$?
31843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31844 test $ac_status = 0; }; }
31845 then
31846 gcc_cv_as_dwarf_4_debug_line_flag=yes
31847 else
31848 echo "configure: failed program was" >&5
31849 cat conftest.s >&5
31851 rm -f conftest.o conftest.s
31854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31855 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31856 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31857 dwarf4_success=yes
31860 break
31862 dwarf4_debug_info_size=0x36
31863 dwarf4_high_pc_form=6
31864 dwarf4_debug_aranges_size=0x1c
31865 dwarf4_line_sz=5
31866 done
31868 if test $dwarf4_success = yes; then
31869 conftest_s="\
31870 .file \"foo.c\"
31871 .text
31872 bar:
31873 #APP
31874 # 82 \"xxx.h\" 1
31875 $insn
31876 # 0 \"\" 2
31877 #NO_APP
31878 $insn
31879 foo:
31880 .file 1 \"foo.c\"
31881 $insn
31882 .file 2 \"foo.h\"
31885 dwarf4_success=no
31886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31887 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31888 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31889 $as_echo_n "(cached) " >&6
31890 else
31891 gcc_cv_as_dwarf_4_app_flag=no
31892 if test x$gcc_cv_as != x; then
31893 $as_echo "$conftest_s" > conftest.s
31894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31896 (eval $ac_try) 2>&5
31897 ac_status=$?
31898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31899 test $ac_status = 0; }; }
31900 then
31901 gcc_cv_as_dwarf_4_app_flag=yes
31902 else
31903 echo "configure: failed program was" >&5
31904 cat conftest.s >&5
31906 rm -f conftest.o conftest.s
31909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31910 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31911 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31912 dwarf4_success=yes
31917 if test $dwarf4_success = yes; then
31918 conftest_s="\
31919 .text
31920 .globl foo
31921 $function_type
31922 foo:
31923 $insn
31924 $function_size
31925 .file 1 \"foo.c\"
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31928 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31929 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31930 $as_echo_n "(cached) " >&6
31931 else
31932 gcc_cv_as_working_gdwarf_n_flag=no
31933 if test x$gcc_cv_as != x; then
31934 $as_echo "$conftest_s" > conftest.s
31935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31937 (eval $ac_try) 2>&5
31938 ac_status=$?
31939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31940 test $ac_status = 0; }; }
31941 then
31942 if test x$gcc_cv_objdump != x \
31943 && $gcc_cv_objdump -W conftest.o 2>&1 \
31944 | grep conftest.s > /dev/null 2>&1; then
31945 gcc_cv_as_working_gdwarf_n_flag=no
31946 else
31947 gcc_cv_as_working_gdwarf_n_flag=yes
31949 else
31950 echo "configure: failed program was" >&5
31951 cat conftest.s >&5
31953 rm -f conftest.o conftest.s
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31957 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31960 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31962 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31968 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31969 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
31970 $as_echo_n "(cached) " >&6
31971 else
31972 gcc_cv_as_debug_prefix_map_flag=no
31973 if test x$gcc_cv_as != x; then
31974 $as_echo "$insn" > conftest.s
31975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31977 (eval $ac_try) 2>&5
31978 ac_status=$?
31979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31980 test $ac_status = 0; }; }
31981 then
31982 gcc_cv_as_debug_prefix_map_flag=yes
31983 else
31984 echo "configure: failed program was" >&5
31985 cat conftest.s >&5
31987 rm -f conftest.o conftest.s
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31991 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31992 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31994 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32001 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32002 if ${gcc_cv_as_compress_debug+:} false; then :
32003 $as_echo_n "(cached) " >&6
32004 else
32005 gcc_cv_as_compress_debug=no
32006 if test x$gcc_cv_as != x; then
32007 $as_echo '' > conftest.s
32008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32010 (eval $ac_try) 2>&5
32011 ac_status=$?
32012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32013 test $ac_status = 0; }; }
32014 then
32015 # gas compiled without zlib cannot compress debug sections and warns
32016 # about it, but still exits successfully. So check for this, too.
32017 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
32018 then
32019 gcc_cv_as_compress_debug=0
32020 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
32021 then
32022 gcc_cv_as_compress_debug=1
32023 gcc_cv_as_compress_debug_option="--compress-debug-sections"
32024 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
32025 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32026 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
32027 then
32028 gcc_cv_as_compress_debug=2
32030 else
32031 gcc_cv_as_compress_debug=0
32033 else
32034 echo "configure: failed program was" >&5
32035 cat conftest.s >&5
32037 rm -f conftest.o conftest.s
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32041 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32045 cat >>confdefs.h <<_ACEOF
32046 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32047 _ACEOF
32050 cat >>confdefs.h <<_ACEOF
32051 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32052 _ACEOF
32055 cat >>confdefs.h <<_ACEOF
32056 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32057 _ACEOF
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32061 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32062 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32063 $as_echo_n "(cached) " >&6
32064 else
32065 gcc_cv_as_lcomm_with_alignment=no
32066 if test x$gcc_cv_as != x; then
32067 $as_echo '.lcomm bar,4,16' > conftest.s
32068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32070 (eval $ac_try) 2>&5
32071 ac_status=$?
32072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32073 test $ac_status = 0; }; }
32074 then
32075 gcc_cv_as_lcomm_with_alignment=yes
32076 else
32077 echo "configure: failed program was" >&5
32078 cat conftest.s >&5
32080 rm -f conftest.o conftest.s
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32084 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32085 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32087 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32092 if test x$with_sysroot = x && test x$host = x$target \
32093 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32094 && test "$prefix" != "NONE"; then
32096 cat >>confdefs.h <<_ACEOF
32097 #define PREFIX_INCLUDE_DIR "$prefix/include"
32098 _ACEOF
32102 # Determine the version of glibc, if any, used on the target.
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32104 $as_echo_n "checking for target glibc version... " >&6; }
32106 # Check whether --with-glibc-version was given.
32107 if test "${with_glibc_version+set}" = set; then :
32108 withval=$with_glibc_version;
32109 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32110 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32111 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32112 else
32113 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32115 else
32117 glibc_version_major=0
32118 glibc_version_minor=0
32119 if test -f $target_header_dir/features.h \
32120 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32121 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32122 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32123 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32128 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32130 cat >>confdefs.h <<_ACEOF
32131 #define TARGET_GLIBC_MAJOR $glibc_version_major
32132 _ACEOF
32135 cat >>confdefs.h <<_ACEOF
32136 #define TARGET_GLIBC_MINOR $glibc_version_minor
32137 _ACEOF
32140 # Check whether --enable-gnu-unique-object was given.
32141 if test "${enable_gnu_unique_object+set}" = set; then :
32142 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32143 yes | no) ;;
32144 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32145 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32146 esac
32147 else
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32149 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32150 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32151 $as_echo_n "(cached) " >&6
32152 else
32153 gcc_cv_as_gnu_unique_object=no
32154 if test x$gcc_cv_as != x; then
32155 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32158 (eval $ac_try) 2>&5
32159 ac_status=$?
32160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32161 test $ac_status = 0; }; }
32162 then
32163 gcc_cv_as_gnu_unique_object=yes
32164 else
32165 echo "configure: failed program was" >&5
32166 cat conftest.s >&5
32168 rm -f conftest.o conftest.s
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32172 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32173 if test $gcc_cv_as_gnu_unique_object = yes; then
32174 # We need to unquote above to to use the definition from config.gcc.
32175 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32177 if test $glibc_version_major -gt 2 \
32178 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32179 enable_gnu_unique_object=yes
32186 if test x$enable_gnu_unique_object = xyes; then
32188 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32193 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32194 if ${gcc_cv_as_line_zero+:} false; then :
32195 $as_echo_n "(cached) " >&6
32196 else
32197 gcc_cv_as_line_zero=no
32198 if test "x$gcc_cv_as" != x; then
32199 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32200 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32202 (eval $ac_try) 2>&5
32203 ac_status=$?
32204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32205 test $ac_status = 0; }; } &&
32206 test "x`cat conftest.out`" = x
32207 then
32208 gcc_cv_as_line_zero=yes
32209 else
32210 echo "configure: failed program was" >&5
32211 cat conftest.s >&5
32212 echo "configure: error output was" >&5
32213 cat conftest.out >&5
32215 rm -f conftest.o conftest.s conftest.out
32218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32219 $as_echo "$gcc_cv_as_line_zero" >&6; }
32220 if test "x$gcc_cv_as_line_zero" = xyes; then
32222 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32227 $as_echo_n "checking support for thin archives... " >&6; }
32228 thin_archive_support=no
32229 echo 'int main (void) { return 0; }' > conftest.c
32230 if ($AR --version | sed 1q | grep "GNU ar" \
32231 && $CC $CFLAGS -c conftest.c \
32232 && $AR rcT conftest.a conftest.o \
32233 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32234 thin_archive_support=yes
32236 rm -f conftest.c conftest.o conftest.a conftest
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32238 $as_echo "$thin_archive_support" >&6; }
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32242 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32243 gcc_cv_ld_eh_frame_hdr=no
32244 if test $in_tree_ld = yes ; then
32245 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 \
32246 && test $in_tree_ld_is_elf = yes; then
32247 gcc_cv_ld_eh_frame_hdr=yes
32249 elif test x$gcc_cv_ld != x; then
32250 if echo "$ld_ver" | grep GNU > /dev/null; then
32251 # Check if linker supports --eh-frame-hdr option
32252 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32253 gcc_cv_ld_eh_frame_hdr=yes
32255 else
32256 case "$target" in
32257 *-*-solaris2*)
32258 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32259 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32260 gcc_cv_ld_eh_frame_hdr=yes
32263 esac
32267 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32269 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32273 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32276 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32277 gcc_cv_ld_eh_frame_ciev3=no
32278 if test $in_tree_ld = yes ; then
32279 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 \
32280 && test $in_tree_ld_is_elf = yes; then
32281 gcc_cv_ld_eh_frame_ciev3=yes
32283 elif test x$gcc_cv_ld != x; then
32284 if echo "$ld_ver" | grep GNU > /dev/null; then
32285 gcc_cv_ld_eh_frame_ciev3=yes
32286 if test 0"$ld_date" -lt 20040513; then
32287 if test -n "$ld_date"; then
32288 # If there was date string, but was earlier than 2004-05-13, fail
32289 gcc_cv_ld_eh_frame_ciev3=no
32290 elif test "$ld_vers_major" -lt 2; then
32291 gcc_cv_ld_eh_frame_ciev3=no
32292 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32293 gcc_cv_ld_eh_frame_ciev3=no
32296 else
32297 case "$target" in
32298 *-*-solaris2*)
32299 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32300 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32301 gcc_cv_ld_eh_frame_ciev3=yes
32304 esac
32308 cat >>confdefs.h <<_ACEOF
32309 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32310 _ACEOF
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32313 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32316 $as_echo_n "checking linker position independent executable support... " >&6; }
32317 gcc_cv_ld_pie=no
32318 if test $in_tree_ld = yes ; then
32319 case "$target" in
32320 # Full PIE support on Solaris was only introduced in gld 2.26.
32321 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32322 *) gcc_gld_pie_min_version=15 ;;
32323 esac
32324 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 \
32325 && test $in_tree_ld_is_elf = yes; then
32326 gcc_cv_ld_pie=yes
32328 elif test x$gcc_cv_ld != x; then
32329 # Check if linker supports -pie option
32330 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32331 gcc_cv_ld_pie=yes
32332 case "$target" in
32333 *-*-solaris2*)
32334 if echo "$ld_ver" | grep GNU > /dev/null \
32335 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32336 gcc_cv_ld_pie=no
32339 esac
32340 else
32341 case "$target" in
32342 *-*-solaris2.1[1-9]*)
32343 # Solaris 11.3 added PIE support.
32344 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32345 gcc_cv_ld_pie=yes
32348 esac
32351 if test x"$gcc_cv_ld_pie" = xyes; then
32353 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32357 $as_echo "$gcc_cv_ld_pie" >&6; }
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32360 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32361 gcc_cv_ld_pie_copyreloc=no
32362 if test $gcc_cv_ld_pie = yes ; then
32363 if test $in_tree_ld = yes ; then
32364 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
32365 gcc_cv_ld_pie_copyreloc=yes
32367 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32368 # Check if linker supports -pie option with copy reloc
32369 case "$target" in
32370 i?86-*-linux* | x86_64-*-linux*)
32371 cat > conftest1.s <<EOF
32372 .globl a_glob
32373 .data
32374 .type a_glob, @object
32375 .size a_glob, 4
32376 a_glob:
32377 .long 2
32379 cat > conftest2.s <<EOF
32380 .text
32381 .globl main
32382 .type main, @function
32383 main:
32384 movl %eax, a_glob(%rip)
32385 .size main, .-main
32386 .globl ptr
32387 .section .data.rel,"aw",@progbits
32388 .type ptr, @object
32389 ptr:
32390 .quad a_glob
32392 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32393 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32394 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32395 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32396 gcc_cv_ld_pie_copyreloc=yes
32398 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32400 esac
32404 cat >>confdefs.h <<_ACEOF
32405 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32406 _ACEOF
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32409 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32412 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32413 gcc_cv_ld_eh_gc_sections=no
32414 if test $in_tree_ld = yes ; then
32415 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 \
32416 && test $in_tree_ld_is_elf = yes; then
32417 gcc_cv_ld_eh_gc_sections=yes
32419 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32420 cat > conftest.s <<EOF
32421 .section .text
32422 .globl _start
32423 .type _start, @function
32424 _start:
32425 .long foo
32426 .size _start, .-_start
32427 .section .text.foo,"ax",@progbits
32428 .type foo, @function
32429 foo:
32430 .long 0
32431 .size foo, .-foo
32432 .section .gcc_except_table.foo,"a",@progbits
32433 .L0:
32434 .long 0
32435 .section .eh_frame,"a",@progbits
32436 .long .L0
32438 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32439 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32440 | grep "gc-sections option ignored" > /dev/null; then
32441 gcc_cv_ld_eh_gc_sections=no
32442 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32443 | grep gcc_except_table > /dev/null; then
32444 gcc_cv_ld_eh_gc_sections=yes
32445 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32446 if test x$gcc_cv_as_comdat_group != xyes; then
32447 gcc_cv_ld_eh_gc_sections=no
32448 cat > conftest.s <<EOF
32449 .section .text
32450 .globl _start
32451 .type _start, @function
32452 _start:
32453 .long foo
32454 .size _start, .-_start
32455 .section .gnu.linkonce.t.foo,"ax",@progbits
32456 .type foo, @function
32457 foo:
32458 .long 0
32459 .size foo, .-foo
32460 .section .gcc_except_table.foo,"a",@progbits
32461 .L0:
32462 .long 0
32463 .section .eh_frame,"a",@progbits
32464 .long .L0
32466 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32467 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32468 | grep "gc-sections option ignored" > /dev/null; then
32469 gcc_cv_ld_eh_gc_sections=no
32470 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32471 | grep gcc_except_table > /dev/null; then
32472 gcc_cv_ld_eh_gc_sections=yes
32478 rm -f conftest.s conftest.o conftest
32480 case "$target" in
32481 hppa*-*-linux*)
32482 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32483 gcc_cv_ld_eh_gc_sections=no
32485 esac
32486 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32488 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32492 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32495 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32496 gcc_cv_ld_eh_gc_sections_bug=no
32497 if test $in_tree_ld = yes ; then
32498 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 \
32499 && test $in_tree_ld_is_elf = yes; then
32500 gcc_cv_ld_eh_gc_sections_bug=yes
32502 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
32503 gcc_cv_ld_eh_gc_sections_bug=yes
32504 cat > conftest.s <<EOF
32505 .section .text
32506 .globl _start
32507 .type _start, @function
32508 _start:
32509 .long foo
32510 .size _start, .-_start
32511 .section .text.startup.foo,"ax",@progbits
32512 .type foo, @function
32513 foo:
32514 .long 0
32515 .size foo, .-foo
32516 .section .gcc_except_table.foo,"a",@progbits
32517 .L0:
32518 .long 0
32519 .section .eh_frame,"a",@progbits
32520 .long .L0
32522 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32523 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32524 | grep "gc-sections option ignored" > /dev/null; then
32526 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32527 | grep gcc_except_table > /dev/null; then
32528 gcc_cv_ld_eh_gc_sections_bug=no
32531 rm -f conftest.s conftest.o conftest
32533 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32535 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32539 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32542 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32543 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32544 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32545 gcc_cv_ld_compress_debug=1
32546 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32547 # Detect zstd debug section compression support
32548 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32549 gcc_cv_ld_compress_debug=2
32551 else
32552 case "${target}" in
32553 *-*-solaris2*)
32554 # Introduced in Solaris 11.2.
32555 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32556 gcc_cv_ld_compress_debug=1
32557 gcc_cv_ld_compress_debug_option="-z compress-sections"
32558 else
32559 gcc_cv_ld_compress_debug=0
32563 # Assume linkers other than GNU ld don't support compessed debug
32564 # sections.
32565 gcc_cv_ld_compress_debug=0
32567 esac
32570 cat >>confdefs.h <<_ACEOF
32571 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32572 _ACEOF
32575 cat >>confdefs.h <<_ACEOF
32576 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32577 _ACEOF
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32580 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32582 if test x"$ld64_flag" = x"yes"; then
32584 # Set defaults for possibly untestable items.
32585 gcc_cv_ld64_export_dynamic=0
32586 gcc_cv_ld64_platform_version=0
32587 gcc_cv_ld64_demangle=0
32589 if test "$build" = "$host"; then
32590 darwin_try_test=1
32591 else
32592 darwin_try_test=0
32595 # On Darwin, because of FAT library support, it is often possible to execute
32596 # exes from compatible archs even when the host differs from the build system.
32597 case "$build","$host" in
32598 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32599 darwin_try_test=1;;
32600 *) ;;
32601 esac
32603 # If the configurer specified a minimum ld64 version to be supported, then use
32604 # that to determine feature support.
32605 if test x"${gcc_cv_ld64_version}" != x; then
32606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32607 $as_echo_n "checking ld64 specified version... " >&6; }
32608 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32610 $as_echo "$gcc_cv_ld64_major" >&6; }
32611 if test "$gcc_cv_ld64_major" -ge 97; then
32612 gcc_cv_ld64_demangle=1
32614 if test "$gcc_cv_ld64_major" -ge 236; then
32615 gcc_cv_ld64_export_dynamic=1
32617 if test "$gcc_cv_ld64_major" -ge 512; then
32618 gcc_cv_ld64_platform_version=1
32620 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32621 # If the version was not specified, try to find it.
32622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32623 $as_echo_n "checking linker version... " >&6; }
32624 if test x"${gcc_cv_ld64_version}" = x; then
32625 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32626 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32629 $as_echo "$gcc_cv_ld64_version" >&6; }
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32632 $as_echo_n "checking linker for -demangle support... " >&6; }
32633 gcc_cv_ld64_demangle=1
32634 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32635 gcc_cv_ld64_demangle=0
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32638 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32641 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32642 gcc_cv_ld64_export_dynamic=1
32643 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32644 gcc_cv_ld64_export_dynamic=0
32646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32647 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32650 $as_echo_n "checking linker for -platform_version support... " >&6; }
32651 gcc_cv_ld64_platform_version=1
32652 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32653 gcc_cv_ld64_platform_version=0
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32656 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32659 if test x"${gcc_cv_ld64_version}" != x; then
32661 cat >>confdefs.h <<_ACEOF
32662 #define LD64_VERSION "${gcc_cv_ld64_version}"
32663 _ACEOF
32668 cat >>confdefs.h <<_ACEOF
32669 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32670 _ACEOF
32674 cat >>confdefs.h <<_ACEOF
32675 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32676 _ACEOF
32680 cat >>confdefs.h <<_ACEOF
32681 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32682 _ACEOF
32686 if test x"$dsymutil_flag" = x"yes"; then
32688 # If the user specified a dsymutil path, then we will already have the
32689 # version string, otherwise, pick it up.
32690 if test x"$gcc_cv_dsymutil" = x; then
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32692 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32693 dsymutil_vers="tool unspecified"
32694 elif test x"$dsymutil_vers" = x; then
32695 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32698 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32700 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32701 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32702 dsymutil_kind=DWARFUTILS
32703 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32704 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32705 dsymutil_kind=CLANG
32706 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32707 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32708 dsymutil_kind=LLVM
32709 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32710 else
32711 dsymutil_kind=DET_UNKNOWN
32712 dsymutil_vers="0.0"
32714 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32715 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32716 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32717 if test x"${dsymutil_minor}" = x; then
32718 dsymutil_minor=0
32720 if test x"${dsymutil_tiny}" = x; then
32721 dsymutil_tiny=0
32724 cat >>confdefs.h <<_ACEOF
32725 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32726 _ACEOF
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32729 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32732 case $target_os in
32733 win32 | pe | cygwin* | mingw32*)
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32735 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32736 gcc_cv_ld_broken_pe_dwarf5=yes
32737 if test $in_tree_ld = yes ; then
32738 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32739 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32740 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32741 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32742 gcc_cv_ld_broken_pe_dwarf5=no
32744 else
32745 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32746 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32747 gcc_cv_ld_broken_pe_dwarf5=no
32750 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32752 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32756 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32759 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32760 gcc_cv_ld_disable_dynamicbase=no
32761 if test $in_tree_ld = yes; then
32762 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 \
32763 gcc_cv_ld_disable_dynamicbase=yes
32765 else
32766 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32767 gcc_cv_ld_disable_dynamicbase=yes
32770 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32772 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32776 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32778 esac
32780 # --------
32781 # UNSORTED
32782 # --------
32784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32785 $as_echo_n "checking linker --as-needed support... " >&6; }
32786 if ${gcc_cv_ld_as_needed+:} false; then :
32787 $as_echo_n "(cached) " >&6
32788 else
32789 gcc_cv_ld_as_needed=no
32790 gcc_cv_ld_as_needed_option='--as-needed'
32791 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32792 if test $in_tree_ld = yes ; then
32793 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 \
32794 && test $in_tree_ld_is_elf = yes; then
32795 gcc_cv_ld_as_needed=yes
32796 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32797 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32798 gcc_cv_ld_no_as_needed_option='--pop-state'
32801 elif test x$gcc_cv_ld != x; then
32802 # Check if linker supports --as-needed and --no-as-needed options
32803 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32804 gcc_cv_ld_as_needed=yes
32805 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32806 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32807 && echo "$ld_ver" | grep GNU > /dev/null \
32808 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32809 # Use these options only when both ld.bfd and ld.gold support
32810 # --push-state/--pop-state, which unfortunately wasn't added
32811 # at the same time.
32812 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32813 gcc_cv_ld_no_as_needed_option='--pop-state'
32816 case "$target:$gnu_ld" in
32817 *-*-solaris2*:no)
32818 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32819 # forms.
32820 gcc_cv_ld_as_needed=yes
32821 gcc_cv_ld_as_needed_option="-z ignore"
32822 gcc_cv_ld_no_as_needed_option="-z record"
32824 esac
32826 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32827 # dl_iterate_phdr, i.e. since Solaris 11.
32828 case "$target" in
32829 *-*-solaris2.1[1-9]*)
32830 case "$target" in
32831 i?86-*-* | x86_64-*-*)
32832 if echo "$ld_ver" | grep GNU > /dev/null; then
32833 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32834 gcc_cv_ld_as_needed=no
32837 esac
32839 *-*-solaris2*)
32840 gcc_cv_ld_as_needed=no
32842 esac
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32846 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32847 if test x"$gcc_cv_ld_as_needed" = xyes; then
32849 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32852 cat >>confdefs.h <<_ACEOF
32853 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32854 _ACEOF
32857 cat >>confdefs.h <<_ACEOF
32858 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32859 _ACEOF
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32864 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32865 saved_LDFLAGS="$LDFLAGS"
32866 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32867 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32869 /* end confdefs.h. */
32870 int main(void) {return 0;}
32871 _ACEOF
32872 if ac_fn_cxx_try_link "$LINENO"; then :
32873 gcc_cv_ld_clearcap=yes; break
32874 else
32875 gcc_cv_ld_clearcap=no
32877 rm -f core conftest.err conftest.$ac_objext \
32878 conftest$ac_exeext conftest.$ac_ext
32879 done
32880 LDFLAGS="$saved_LDFLAGS"
32881 if test "x$gcc_cv_ld_clearcap" = xyes; then
32883 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32885 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32889 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32891 case "$target" in
32892 powerpc*-*-*)
32893 case "$target" in
32894 *le-*-linux*)
32895 emul_name="-melf32lppc"
32898 emul_name="-melf32ppc"
32900 esac
32901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32902 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32903 if ${gcc_cv_ld_ppc_attr+:} false; then :
32904 $as_echo_n "(cached) " >&6
32905 else
32906 gcc_cv_ld_ppc_attr=no
32907 if test x"$ld_is_gold" = xyes; then
32908 gcc_cv_ld_ppc_attr=yes
32909 elif test $in_tree_ld = yes ; then
32910 if test "$gcc_cv_gld_major_version" -eq 2 \
32911 -a "$gcc_cv_gld_minor_version" -ge 28 \
32912 -o "$gcc_cv_gld_major_version" -gt 2; then
32913 gcc_cv_ld_ppc_attr=yes
32915 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32916 # check that merging the long double .gnu_attribute doesn't warn
32917 cat > conftest1.s <<EOF
32918 .gnu_attribute 4,1
32920 cat > conftest2.s <<EOF
32921 .gnu_attribute 4,9
32923 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32924 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32925 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32926 && test ! -s conftest.err; then
32927 gcc_cv_ld_ppc_attr=yes
32929 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32934 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32935 if test x$gcc_cv_ld_ppc_attr = xyes; then
32937 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32941 esac
32943 case "$target:$tm_file" in
32944 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
32945 case "$target" in
32946 *le-*-linux*)
32947 emul_name="-melf64lppc"
32949 *-*-linux*)
32950 emul_name="-melf64ppc"
32952 *le-*-freebsd*)
32953 emul_name="-melf64lppc_fbsd"
32955 *-*-freebsd*)
32956 emul_name="-melf64ppc_fbsd"
32958 esac
32959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32960 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32961 if ${gcc_cv_ld_no_dot_syms+:} false; then :
32962 $as_echo_n "(cached) " >&6
32963 else
32964 gcc_cv_ld_no_dot_syms=no
32965 if test x"$ld_is_gold" = xyes; then
32966 gcc_cv_ld_no_dot_syms=yes
32967 elif test $in_tree_ld = yes ; then
32968 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
32969 gcc_cv_ld_no_dot_syms=yes
32971 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32972 cat > conftest1.s <<EOF
32973 .text
32974 bl .foo
32976 cat > conftest2.s <<EOF
32977 .section ".opd","aw"
32978 .align 3
32979 .globl foo
32980 .type foo,@function
32981 foo:
32982 .quad .LEfoo,.TOC.@tocbase,0
32983 .text
32984 .LEfoo:
32986 .size foo,.-.LEfoo
32988 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32989 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32990 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
32991 gcc_cv_ld_no_dot_syms=yes
32993 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32998 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
32999 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
33001 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33006 $as_echo_n "checking linker large toc support... " >&6; }
33007 if ${gcc_cv_ld_large_toc+:} false; then :
33008 $as_echo_n "(cached) " >&6
33009 else
33010 gcc_cv_ld_large_toc=no
33011 if test x"$ld_is_gold" = xyes; then
33012 gcc_cv_ld_large_toc=yes
33013 elif test $in_tree_ld = yes ; then
33014 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
33015 gcc_cv_ld_large_toc=yes
33017 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33018 cat > conftest.s <<EOF
33019 .section ".tbss","awT",@nobits
33020 .align 3
33021 ie0: .space 8
33022 .global _start
33023 .text
33024 _start:
33025 addis 9,13,ie0@got@tprel@ha
33026 ld 9,ie0@got@tprel@l(9)
33028 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33029 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
33030 gcc_cv_ld_large_toc=yes
33032 rm -f conftest conftest.o conftest.s
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33037 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33038 if test x"$gcc_cv_ld_large_toc" = xyes; then
33040 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33045 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33046 if ${gcc_cv_ld_toc_align+:} false; then :
33047 $as_echo_n "(cached) " >&6
33048 else
33049 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33050 cat > conftest.s <<EOF
33051 .global _start
33052 .text
33053 _start:
33054 addis 9,2,x@got@ha
33055 .section .data.rel.ro,"aw",@progbits
33056 .p2align 16
33057 .space 32768
33058 x: .quad .TOC.
33060 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33061 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33062 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)) }'`
33064 rm -f conftest conftest.o conftest.s
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33069 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33070 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33072 cat >>confdefs.h <<_ACEOF
33073 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33074 _ACEOF
33078 esac
33080 case "$target" in
33081 *-*-aix*)
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33083 $as_echo_n "checking linker large toc support... " >&6; }
33084 if ${gcc_cv_ld_large_toc+:} false; then :
33085 $as_echo_n "(cached) " >&6
33086 else
33087 gcc_cv_ld_large_toc=no
33088 if test x$gcc_cv_as != x ; then
33089 cat > conftest.s <<EOF
33090 .toc
33091 LC..1:
33092 .tc a[TC],a[RW]
33093 .extern a[RW]
33094 .csect .text[PR]
33095 .largetoctest:
33096 addis 9,LC..1@u(2)
33097 ld 3,LC..1@l(9)
33099 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33100 gcc_cv_ld_large_toc=yes
33102 rm -f conftest conftest.o conftest.s
33106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33107 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33108 if test x"$gcc_cv_ld_large_toc" = xyes; then
33110 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33114 esac
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33117 $as_echo_n "checking linker --build-id support... " >&6; }
33118 if ${gcc_cv_ld_buildid+:} false; then :
33119 $as_echo_n "(cached) " >&6
33120 else
33121 gcc_cv_ld_buildid=no
33122 if test $in_tree_ld = yes ; then
33123 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33124 "$gcc_cv_gld_minor_version" -ge 18 -o \
33125 "$gcc_cv_gld_major_version" -gt 2 \
33126 && test $in_tree_ld_is_elf = yes; then
33127 gcc_cv_ld_buildid=yes
33129 elif test x$gcc_cv_ld != x; then
33130 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33131 gcc_cv_ld_buildid=yes
33135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33136 $as_echo "$gcc_cv_ld_buildid" >&6; }
33137 if test x"$gcc_cv_ld_buildid" = xyes; then
33139 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33143 # Check whether --enable-linker-build-id was given.
33144 if test "${enable_linker_build_id+set}" = set; then :
33145 enableval=$enable_linker_build_id;
33146 else
33147 enable_linker_build_id=no
33151 if test x"$enable_linker_build_id" = xyes; then
33152 if test x"$gcc_cv_ld_buildid" = xyes; then
33154 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33156 else
33157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33158 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33162 # In binutils 2.21, GNU ld gained support for new emulations fully
33163 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33165 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33166 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33167 $as_echo_n "(cached) " >&6
33168 else
33169 gcc_cv_ld_sol2_emulation=no
33170 if test $in_tree_ld = yes ; then
33171 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33172 "$gcc_cv_gld_minor_version" -ge 21 -o \
33173 "$gcc_cv_gld_major_version" -gt 2 \
33174 && test $in_tree_ld_is_elf = yes; then
33175 gcc_cv_ld_sol2_emulation=yes
33177 elif test x$gcc_cv_ld != x; then
33178 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33179 grep _sol2 > /dev/null; then
33180 gcc_cv_ld_sol2_emulation=yes
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33185 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33186 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33188 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33193 $as_echo_n "checking linker --sysroot support... " >&6; }
33194 if ${gcc_cv_ld_sysroot+:} false; then :
33195 $as_echo_n "(cached) " >&6
33196 else
33197 gcc_cv_ld_sysroot=no
33198 if test $in_tree_ld = yes ; then
33199 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
33200 gcc_cv_ld_sysroot=yes
33202 elif test x$gcc_cv_ld != x; then
33203 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33204 gcc_cv_ld_sysroot=yes
33208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33209 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33210 if test x"$gcc_cv_ld_sysroot" = xyes; then
33212 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33216 case $target in
33217 *-*-solaris2*)
33218 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33220 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33221 if ${gcc_cv_solaris_crts+:} false; then :
33222 $as_echo_n "(cached) " >&6
33223 else
33224 gcc_cv_solaris_crts=no
33225 if test x$host != x$target; then
33226 if test "x$with_sysroot" = xyes; then
33227 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33228 else
33229 target_sysroot="${with_sysroot}"
33232 target_libdir="$target_sysroot/usr/lib"
33233 # At the time they were added, gcrt1.o became a symlink for backwards
33234 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33235 case $target in
33236 i?86-*-solaris2* | x86_64-*-solaris2*)
33237 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33239 sparc*-*-solaris2*)
33240 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33242 esac
33244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33245 $as_echo "$gcc_cv_solaris_crts" >&6; }
33247 esac
33248 if test x$gcc_cv_solaris_crts = xyes; then
33250 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33254 # Check whether --enable-libssp was given.
33255 if test "${enable_libssp+set}" = set; then :
33256 enableval=$enable_libssp; case "${enableval}" in
33257 yes|no)
33260 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33262 esac
33266 # Test for stack protector support in target C library.
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33268 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33269 if ${gcc_cv_libc_provides_ssp+:} false; then :
33270 $as_echo_n "(cached) " >&6
33271 else
33272 gcc_cv_libc_provides_ssp=no
33273 if test "x$enable_libssp" = "xno"; then
33274 gcc_cv_libc_provides_ssp=yes
33275 elif test "x$enable_libssp" = "xyes"; then
33276 gcc_cv_libc_provides_ssp=no
33277 else
33278 case "$target" in
33279 *-*-musl*)
33280 # All versions of musl provide stack protector
33281 gcc_cv_libc_provides_ssp=yes;;
33282 *-*-linux* | *-*-kfreebsd*-gnu)
33283 # glibc 2.4 and later provides __stack_chk_fail and
33284 # either __stack_chk_guard, or TLS access to stack guard canary.
33286 if test $glibc_version_major -gt 2 \
33287 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33288 gcc_cv_libc_provides_ssp=yes
33289 else
33291 if test -f $target_header_dir/features.h \
33292 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33293 $target_header_dir/features.h > /dev/null; then
33294 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33295 $target_header_dir/features.h > /dev/null && \
33296 test -f $target_header_dir/bits/uClibc_config.h && \
33297 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33298 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33299 gcc_cv_libc_provides_ssp=yes
33301 # all versions of Bionic support stack protector
33302 elif test -f $target_header_dir/sys/cdefs.h \
33303 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33304 $target_header_dir/sys/cdefs.h > /dev/null; then
33305 gcc_cv_libc_provides_ssp=yes
33309 *-*-gnu*)
33310 # Avoid complicated tests (see
33311 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33312 # simply assert that glibc does provide this, which is true for all
33313 # realistically usable GNU/Hurd configurations.
33314 # All supported versions of musl provide it as well
33315 gcc_cv_libc_provides_ssp=yes;;
33316 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33317 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33318 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33319 gcc_cv_libc_provides_ssp=yes
33320 else
33321 echo "no __stack_chk_fail on this target"
33325 *) gcc_cv_libc_provides_ssp=no ;;
33326 esac
33329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33330 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33332 if test x$gcc_cv_libc_provides_ssp = xyes; then
33334 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33338 # Check whether --enable-default-ssp was given.
33339 # Check whether --enable-default-ssp was given.
33340 if test "${enable_default_ssp+set}" = set; then :
33341 enableval=$enable_default_ssp;
33342 if test x$gcc_cv_libc_provides_ssp = xyes; then
33343 case "$target" in
33344 ia64*-*-*) enable_default_ssp=no ;;
33345 *) enable_default_ssp=$enableval ;;
33346 esac
33347 else
33348 enable_default_ssp=no
33350 else
33351 enable_default_ssp=no
33354 if test x$enable_default_ssp = xyes ; then
33356 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33361 # Test for <sys/sdt.h> on the target.
33363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33364 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33365 if ${gcc_cv_sys_sdt_h+:} false; then :
33366 $as_echo_n "(cached) " >&6
33367 else
33369 gcc_cv_sys_sdt_h=no
33370 if test -f $target_header_dir/sys/sdt.h; then
33371 gcc_cv_sys_sdt_h=yes
33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33376 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33377 if test x$gcc_cv_sys_sdt_h = xyes; then :
33380 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33385 # Check if TFmode long double should be used by default or not.
33386 # Some glibc targets used DFmode long double, but with glibc 2.4
33387 # and later they can use TFmode.
33388 case "$target" in
33389 powerpc*-*-linux* | \
33390 sparc*-*-linux* | \
33391 s390*-*-linux* | \
33392 alpha*-*-linux*)
33394 # Check whether --with-long-double-128 was given.
33395 if test "${with_long_double_128+set}" = set; then :
33396 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33397 else
33399 case "$target" in
33400 s390*-*-linux-musl*)
33401 gcc_cv_target_ldbl128=yes
33403 powerpc*-*-linux-musl*)
33404 gcc_cv_target_ldbl128=no
33408 if test $glibc_version_major -gt 2 \
33409 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33410 gcc_cv_target_ldbl128=yes
33411 else
33413 gcc_cv_target_ldbl128=no
33414 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33415 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33416 && gcc_cv_target_ldbl128=yes
33421 esac
33426 esac
33427 if test x$gcc_cv_target_ldbl128 = xyes; then
33429 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33433 # Check if TFmode long double target should use the IBM extended double or IEEE
33434 # 128-bit floating point formats if long doubles are 128-bits long. The long
33435 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33436 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33437 # libgcc.
33439 # Check whether --with-long-double-format was given.
33440 if test "${with_long_double_format+set}" = set; then :
33441 withval=$with_long_double_format;
33442 case "$target:$with_long_double_format" in
33443 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33446 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33447 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33448 case "$with_cpu" in
33449 power7 | power8 | power9 | power1*)
33453 as_fn_error $? "Configuration option --with-long-double-format is only \
33454 supported if the default cpu is power7 or newer" "$LINENO" 5
33455 with_long_double_format=""
33457 esac
33459 powerpc64*-*-linux*:*)
33460 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33461 with_long_double_format=""
33464 as_fn_error $? "Configure option --with-long-double-format is only supported \
33465 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33466 with_long_double_format=""
33468 esac
33472 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33473 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33474 gcc_cv_libc_provides_hwcap_in_tcb=no
33475 case "$target" in
33476 powerpc*-*-linux*)
33478 if test $glibc_version_major -gt 2 \
33479 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33480 gcc_cv_libc_provides_hwcap_in_tcb=yes
33483 esac
33484 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33486 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33490 # Check if the target LIBC handles PT_GNU_STACK.
33491 gcc_cv_libc_gnustack=unknown
33492 case "$target" in
33493 mips*-*-linux-musl*)
33494 gcc_cv_libc_gnustack=yes
33496 mips*-*-linux*)
33498 if test $glibc_version_major -gt 2 \
33499 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33500 gcc_cv_libc_gnustack=yes
33503 esac
33504 if test x$gcc_cv_libc_gnustack = xyes; then
33506 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33511 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33512 gcc_cv_target_dl_iterate_phdr=unknown
33513 case "$target" in
33514 *-*-solaris2*)
33515 gcc_cv_target_dl_iterate_phdr=yes
33517 *-*-dragonfly* | *-*-freebsd*)
33518 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33519 gcc_cv_target_dl_iterate_phdr=yes
33520 else
33521 gcc_cv_target_dl_iterate_phdr=no
33524 *-linux-musl*)
33525 gcc_cv_target_dl_iterate_phdr=yes
33527 esac
33529 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33531 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33535 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33537 # We no longer support different GC mechanisms. Emit an error if
33538 # the user configures with --with-gc.
33540 # Check whether --with-gc was given.
33541 if test "${with_gc+set}" = set; then :
33542 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33546 # Libraries to use on the host. This will normally be set by the top
33547 # level Makefile. Here we simply capture the value for our Makefile.
33548 if test -z "${HOST_LIBS+set}"; then
33549 HOST_LIBS=
33553 # Use the system's zlib library.
33555 # Use the system's zlib library.
33556 zlibdir="-L\$(top_builddir)/../zlib"
33557 zlibinc="-I\$(top_srcdir)/../zlib"
33559 # Check whether --with-system-zlib was given.
33560 if test "${with_system_zlib+set}" = set; then :
33561 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33562 zlibdir=
33563 zlibinc=
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33574 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33575 # Check whether --enable-maintainer-mode was given.
33576 if test "${enable_maintainer_mode+set}" = set; then :
33577 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33578 else
33579 maintainer_mode=no
33583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33584 $as_echo "$maintainer_mode" >&6; }
33586 if test "$maintainer_mode" = "yes"; then
33587 MAINT=''
33588 else
33589 MAINT='#'
33592 if test -z "$CTAGS"; then
33593 CTAGS=ctags
33596 if test -z "$ETAGS"; then
33597 ETAGS=etags
33600 if test -z "$CSCOPE"; then
33601 CSCOPE=cscope
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33607 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33608 # Check whether --enable-link-mutex was given.
33609 if test "${enable_link_mutex+set}" = set; then :
33610 enableval=$enable_link_mutex; do_link_mutex=$enableval
33611 else
33612 do_link_mutex=no
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33616 $as_echo "$do_link_mutex" >&6; }
33618 if test "$do_link_mutex" = "yes"; then
33619 DO_LINK_MUTEX=true
33620 { $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
33621 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33622 else
33623 DO_LINK_MUTEX=false
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33629 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33630 # Check whether --enable-link-serialization was given.
33631 if test "${enable_link_serialization+set}" = set; then :
33632 enableval=$enable_link_serialization; do_link_serialization=$enableval
33633 else
33634 do_link_serialization=no
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33638 $as_echo "$do_link_serialization" >&6; }
33640 case "$do_link_serialization" in
33641 yes)
33642 DO_LINK_SERIALIZATION=1;;
33643 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33644 DO_LINK_SERIALIZATION=$do_link_serialization;;
33646 DO_LINK_SERIALIZATION=;;
33648 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33649 esac
33652 # --------------
33653 # Language hooks
33654 # --------------
33656 # Make empty files to contain the specs and options for each language.
33657 # Then add #include lines to for a compiler that has specs and/or options.
33659 subdirs=
33660 lang_opt_files=
33661 lang_specs_files=
33662 lang_tree_files=
33663 # These (without "all_") are set in each config-lang.in.
33664 # `language' must be a single word so is spelled singularly.
33665 all_languages=
33666 all_compilers=
33667 all_outputs='Makefile'
33668 # List of language configure and makefile fragments.
33669 all_lang_configurefrags=
33670 all_lang_makefrags=
33671 # Additional files for gengtype
33672 all_gtfiles="$target_gtfiles"
33674 # These are the languages that are set in --enable-languages,
33675 # and are available in the GCC tree.
33676 all_selected_languages=
33678 # Add the language fragments.
33679 # Languages are added via two mechanisms. Some information must be
33680 # recorded in makefile variables, these are defined in config-lang.in.
33681 # We accumulate them and plug them into the main Makefile.
33682 # The other mechanism is a set of hooks for each of the main targets
33683 # like `clean', `install', etc.
33685 language_hooks="Make-hooks"
33687 for lang in ${srcdir}/*/config-lang.in
33689 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33691 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33692 if test "x$lang_alias" = x
33693 then
33694 echo "$lang doesn't set \$language." 1>&2
33695 exit 1
33697 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33698 subdirs="$subdirs $subdir"
33700 # $gcc_subdir is where the gcc integration files are to be found
33701 # for a language, both for internal compiler purposes (compiler
33702 # sources implementing front-end to GCC tree converters), and for
33703 # build infrastructure purposes (Make-lang.in, etc.)
33705 # This will be <subdir> (relative to $srcdir) if a line like
33706 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33707 # is found in <langdir>/config-lang.in, and will remain <langdir>
33708 # otherwise.
33710 # Except for the language alias (fetched above), the regular
33711 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33712 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33713 # only this and the language alias.
33715 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33716 if [ "$gcc_subdir" = "" ]; then
33717 gcc_subdir="$subdir"
33720 case ",$enable_languages," in
33721 *,$lang_alias,*)
33722 all_selected_languages="$all_selected_languages $lang_alias"
33723 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33724 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33727 esac
33729 language=
33730 boot_language=
33731 compilers=
33732 outputs=
33733 gtfiles=
33734 subdir_requires=
33735 . ${srcdir}/$gcc_subdir/config-lang.in
33736 if test "x$language" = x
33737 then
33738 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33739 exit 1
33742 ok=:
33743 case ",$enable_languages," in
33744 *,$lang_alias,*) ;;
33746 for i in $subdir_requires; do
33747 test -f "${srcdir}/$i/config-lang.in" && continue
33748 ok=false
33749 break
33750 done
33752 esac
33753 $ok || continue
33755 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33756 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33757 # Put c/Make-lang.in fragment first to match serialization languages order.
33758 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33759 else
33760 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33762 if test -f $srcdir/$gcc_subdir/lang.opt; then
33763 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33764 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33766 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33767 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33769 all_languages="$all_languages $language"
33770 all_compilers="$all_compilers $compilers"
33771 all_outputs="$all_outputs $outputs"
33772 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33773 case ",$enable_languages," in
33774 *,lto,*)
33776 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33778 enable_lto=yes
33781 *) ;;
33782 esac
33783 done
33785 check_languages=
33786 for language in $all_selected_languages
33788 check_languages="$check_languages check-$language"
33789 done
33791 selftest_languages=
33792 for language in $all_selected_languages
33794 selftest_languages="$selftest_languages selftest-$language"
33795 done
33797 # We link each language in with a set of hooks, reached indirectly via
33798 # lang.${target}. Only do so for selected languages.
33800 rm -f Make-hooks
33801 touch Make-hooks
33802 target_list="all.cross start.encap rest.encap tags \
33803 install-common install-man install-info install-dvi install-pdf \
33804 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33805 mostlyclean clean distclean maintainer-clean install-plugin"
33807 for t in $target_list
33810 for lang in $all_selected_languages
33812 x="$x $lang.$t"
33813 done
33814 echo "lang.$t: $x" >> Make-hooks
33815 done
33817 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33818 echo "SERIAL_LIST =" >> Make-hooks
33819 echo else >> Make-hooks
33820 lang_cnt=0
33821 lang_list=
33822 prev=c
33823 serialization_languages=c
33824 for lang in $all_selected_languages
33826 test $lang = c && continue
33827 if test $lang = lto; then
33828 serialization_languages="$serialization_languages lto1 lto2"
33829 else
33830 serialization_languages="$serialization_languages $lang"
33832 done
33833 for lang in $serialization_languages
33835 test $lang = c && continue
33836 lang_cnt=`expr $lang_cnt + 1`
33837 lang_list=" $prev$lang_list"
33838 prev=${lang}
33839 done
33840 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33841 echo endif >> Make-hooks
33842 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33843 echo "INDEX.c = 0" >> Make-hooks
33844 lang_idx=1
33845 for lang in $serialization_languages
33847 test $lang = c && continue
33848 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33849 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33850 lang_cnt=`expr $lang_cnt - 1`
33851 lang_idx=`expr $lang_idx + 1`
33852 done
33854 # --------
33855 # Option include files
33856 # --------
33858 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33859 option_includes="option-includes.mk"
33862 # --------
33863 # UNSORTED
33864 # --------
33866 # Create .gdbinit.
33868 echo "dir ." > .gdbinit
33869 echo "dir ${srcdir}" >> .gdbinit
33870 if test x$gdb_needs_out_file_path = xyes
33871 then
33872 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33874 if test "x$subdirs" != x; then
33875 for s in $subdirs
33877 echo "dir ${srcdir}/$s" >> .gdbinit
33878 done
33880 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33881 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33883 # Put a breakpoint on __asan_report_error to help with debugging buffer
33884 # overflow.
33885 case "$CFLAGS" in
33886 *-fsanitize=address*)
33887 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33889 esac
33891 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33895 # Find a directory in which to install a shared libgcc.
33897 # Check whether --enable-version-specific-runtime-libs was given.
33898 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33899 enableval=$enable_version_specific_runtime_libs;
33903 # Substitute configuration variables
33976 # Echo link setup.
33977 if test x${build} = x${host} ; then
33978 if test x${host} = x${target} ; then
33979 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33980 else
33981 echo "Links are now set up to build a cross-compiler" 1>&2
33982 echo " from ${host} to ${target}." 1>&2
33984 else
33985 if test x${host} = x${target} ; then
33986 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33987 echo " for ${target}." 1>&2
33988 else
33989 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33990 echo " from ${host} to ${target}." 1>&2
33999 if test "x${ISLLIBS}" != "x" ; then
34001 $as_echo "#define HAVE_isl 1" >>confdefs.h
34005 # Check for plugin support
34006 # Check whether --enable-plugin was given.
34007 if test "${enable_plugin+set}" = set; then :
34008 enableval=$enable_plugin; enable_plugin=$enableval
34009 else
34010 enable_plugin=yes; default_plugin=yes
34014 pluginlibs=
34015 plugin_check=yes
34017 case "${host}" in
34018 *-*-mingw*)
34019 # Since plugin support under MinGW is not as straightforward as on
34020 # other platforms (e.g., we have to link import library, etc), we
34021 # only enable it if explicitly requested.
34022 if test x"$default_plugin" = x"yes"; then
34023 enable_plugin=no
34024 elif test x"$enable_plugin" = x"yes"; then
34025 # Use make's target variable to derive import library name.
34026 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34027 plugin_check=no
34030 *-*-darwin*)
34031 if test x$build = x$host; then
34032 export_sym_check="nm${exeext} -g"
34033 elif test x$host = x$target; then
34034 export_sym_check="$gcc_cv_nm -g"
34035 else
34036 export_sym_check=
34040 if test x$build = x$host; then
34041 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34042 elif test x$host = x$target; then
34043 export_sym_check="$gcc_cv_objdump -T"
34044 else
34045 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34048 esac
34050 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34053 $as_echo_n "checking for exported symbols... " >&6; }
34054 if test "x$export_sym_check" != x; then
34055 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34056 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34057 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34058 : # No need to use a flag
34059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34060 $as_echo "yes" >&6; }
34061 else
34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34063 $as_echo "yes" >&6; }
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34065 $as_echo_n "checking for -rdynamic... " >&6; }
34066 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34067 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34068 plugin_rdynamic=yes
34069 pluginlibs="-rdynamic"
34070 else
34071 plugin_rdynamic=no
34072 enable_plugin=no
34074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34075 $as_echo "$plugin_rdynamic" >&6; }
34077 else
34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34079 $as_echo "unable to check" >&6; }
34082 # Check -ldl
34083 saved_LIBS="$LIBS"
34084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34085 $as_echo_n "checking for library containing dlopen... " >&6; }
34086 if ${ac_cv_search_dlopen+:} false; then :
34087 $as_echo_n "(cached) " >&6
34088 else
34089 ac_func_search_save_LIBS=$LIBS
34090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34091 /* end confdefs.h. */
34093 /* Override any GCC internal prototype to avoid an error.
34094 Use char because int might match the return type of a GCC
34095 builtin and then its argument prototype would still apply. */
34096 #ifdef __cplusplus
34097 extern "C"
34098 #endif
34099 char dlopen ();
34101 main ()
34103 return dlopen ();
34105 return 0;
34107 _ACEOF
34108 for ac_lib in '' dl; do
34109 if test -z "$ac_lib"; then
34110 ac_res="none required"
34111 else
34112 ac_res=-l$ac_lib
34113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34115 if ac_fn_cxx_try_link "$LINENO"; then :
34116 ac_cv_search_dlopen=$ac_res
34118 rm -f core conftest.err conftest.$ac_objext \
34119 conftest$ac_exeext
34120 if ${ac_cv_search_dlopen+:} false; then :
34121 break
34123 done
34124 if ${ac_cv_search_dlopen+:} false; then :
34126 else
34127 ac_cv_search_dlopen=no
34129 rm conftest.$ac_ext
34130 LIBS=$ac_func_search_save_LIBS
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34133 $as_echo "$ac_cv_search_dlopen" >&6; }
34134 ac_res=$ac_cv_search_dlopen
34135 if test "$ac_res" != no; then :
34136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34140 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34141 pluginlibs="$pluginlibs -ldl"
34143 LIBS="$saved_LIBS"
34145 # Check that we can build shared objects with -fPIC -shared
34146 saved_LDFLAGS="$LDFLAGS"
34147 saved_CFLAGS="$CFLAGS"
34148 saved_CXXFLAGS="$CXXFLAGS"
34149 case "${host}" in
34150 *-*-darwin*)
34151 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34152 CFLAGS="$CFLAGS -fPIC"
34153 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34154 CXXFLAGS="$CXXFLAGS -fPIC"
34155 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34158 CFLAGS="$CFLAGS -fPIC"
34159 CXXFLAGS="$CXXFLAGS -fPIC"
34160 LDFLAGS="$LDFLAGS -fPIC -shared"
34162 esac
34163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34164 $as_echo_n "checking for -fPIC -shared... " >&6; }
34165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34166 /* end confdefs.h. */
34167 extern int X;
34169 main ()
34171 return X == 0;
34173 return 0;
34175 _ACEOF
34176 if ac_fn_cxx_try_link "$LINENO"; then :
34177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34178 $as_echo "yes" >&6; }; have_pic_shared=yes
34179 else
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34181 $as_echo "no" >&6; }; have_pic_shared=no
34183 rm -f core conftest.err conftest.$ac_objext \
34184 conftest$ac_exeext conftest.$ac_ext
34185 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34186 pluginlibs=
34187 enable_plugin=no
34189 LDFLAGS="$saved_LDFLAGS"
34190 CFLAGS="$saved_CFLAGS"
34191 CXXFLAGS="$saved_CXXFLAGS"
34193 # If plugin support had been requested but not available, fail.
34194 if test x"$enable_plugin" = x"no" ; then
34195 if test x"$default_plugin" != x"yes"; then
34196 as_fn_error $? "
34197 Building GCC with plugin support requires a host that supports
34198 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34205 if test x"$enable_plugin" = x"yes"; then
34207 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34212 # Enable --enable-host-shared
34213 # Check whether --enable-host-shared was given.
34214 if test "${enable_host_shared+set}" = set; then :
34215 enableval=$enable_host_shared;
34220 # Enable --enable-host-pie
34221 # Check whether --enable-host-pie was given.
34222 if test "${enable_host_pie+set}" = set; then :
34223 enableval=$enable_host_pie;
34228 # Enable --enable-host-bind-now
34229 # Check whether --enable-host-bind-now was given.
34230 if test "${enable_host_bind_now+set}" = set; then :
34231 enableval=$enable_host_bind_now;
34236 # Check whether --enable-libquadmath-support was given.
34237 if test "${enable_libquadmath_support+set}" = set; then :
34238 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34239 else
34240 ENABLE_LIBQUADMATH_SUPPORT=yes
34243 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34245 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34250 # Specify what hash style to use by default.
34252 # Check whether --with-linker-hash-style was given.
34253 if test "${with_linker_hash_style+set}" = set; then :
34254 withval=$with_linker_hash_style; case x"$withval" in
34255 xsysv)
34256 LINKER_HASH_STYLE=sysv
34258 xgnu)
34259 LINKER_HASH_STYLE=gnu
34261 xboth)
34262 LINKER_HASH_STYLE=both
34265 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34267 esac
34268 else
34269 LINKER_HASH_STYLE=''
34272 if test x"${LINKER_HASH_STYLE}" != x; then
34274 cat >>confdefs.h <<_ACEOF
34275 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34276 _ACEOF
34280 # Specify what should be the default of -fdiagnostics-color option.
34282 # Check whether --with-diagnostics-color was given.
34283 if test "${with_diagnostics_color+set}" = set; then :
34284 withval=$with_diagnostics_color; case x"$withval" in
34285 xnever)
34286 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34288 xauto)
34289 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34291 xauto-if-env)
34292 DIAGNOSTICS_COLOR_DEFAULT=-1
34294 xalways)
34295 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34298 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34300 esac
34301 else
34302 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34306 cat >>confdefs.h <<_ACEOF
34307 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34308 _ACEOF
34311 # Specify what should be the default of -fdiagnostics-urls option.
34313 # Check whether --with-diagnostics-urls was given.
34314 if test "${with_diagnostics_urls+set}" = set; then :
34315 withval=$with_diagnostics_urls; case x"$withval" in
34316 xnever)
34317 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34319 xauto)
34320 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34322 xauto-if-env)
34323 DIAGNOSTICS_URLS_DEFAULT=-1
34325 xalways)
34326 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34329 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34331 esac
34332 else
34333 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34337 cat >>confdefs.h <<_ACEOF
34338 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34339 _ACEOF
34342 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34343 # of jit/jit-playback.cc.
34344 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34345 echo "gcc_driver_version: ${gcc_driver_version}"
34346 cat > gcc-driver-name.h <<EOF
34347 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34350 # Check whether --enable-default-pie was given.
34351 # Check whether --enable-default-pie was given.
34352 if test "${enable_default_pie+set}" = set; then :
34353 enableval=$enable_default_pie; enable_default_pie=$enableval
34354 else
34355 enable_default_pie=no
34358 if test x$enable_default_pie = xyes ; then
34360 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34365 # Check if -fno-PIE works.
34366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34367 $as_echo_n "checking for -fno-PIE option... " >&6; }
34368 if ${gcc_cv_c_no_fpie+:} false; then :
34369 $as_echo_n "(cached) " >&6
34370 else
34371 saved_CXXFLAGS="$CXXFLAGS"
34372 CXXFLAGS="$CXXFLAGS -fno-PIE"
34373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34374 /* end confdefs.h. */
34375 int main(void) {return 0;}
34376 _ACEOF
34377 if ac_fn_cxx_try_compile "$LINENO"; then :
34378 gcc_cv_c_no_fpie=yes
34379 else
34380 gcc_cv_c_no_fpie=no
34382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34383 CXXFLAGS="$saved_CXXFLAGS"
34385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34386 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34388 # Check if -no-pie works.
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34390 $as_echo_n "checking for -no-pie option... " >&6; }
34391 if ${gcc_cv_no_pie+:} false; then :
34392 $as_echo_n "(cached) " >&6
34393 else
34394 saved_LDFLAGS="$LDFLAGS"
34395 LDFLAGS="$LDFLAGS -no-pie"
34396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34397 /* end confdefs.h. */
34398 int main(void) {return 0;}
34399 _ACEOF
34400 if ac_fn_cxx_try_link "$LINENO"; then :
34401 gcc_cv_no_pie=yes
34402 else
34403 gcc_cv_no_pie=no
34405 rm -f core conftest.err conftest.$ac_objext \
34406 conftest$ac_exeext conftest.$ac_ext
34407 LDFLAGS="$saved_LDFLAGS"
34409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34410 $as_echo "$gcc_cv_no_pie" >&6; }
34412 if test x$enable_host_shared = xyes; then
34413 PICFLAG=-fPIC
34414 elif test x$enable_host_pie = xyes; then
34415 PICFLAG=-fPIE
34416 elif test x$gcc_cv_c_no_fpie = xyes; then
34417 PICFLAG=-fno-PIE
34418 else
34419 PICFLAG=
34424 if test x$enable_host_pie = xyes; then
34425 LD_PICFLAG=-pie
34426 elif test x$gcc_cv_no_pie = xyes; then
34427 LD_PICFLAG=-no-pie
34428 else
34429 LD_PICFLAG=
34432 if test x$enable_host_bind_now = xyes; then
34433 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34438 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34439 # Check whether --enable-cet was given.
34440 if test "${enable_cet+set}" = set; then :
34441 enableval=$enable_cet;
34442 case "$enableval" in
34443 yes|no|auto) ;;
34444 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34445 esac
34447 else
34448 enable_cet=auto
34452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34453 $as_echo_n "checking for CET support... " >&6; }
34455 case "$host" in
34456 i[34567]86-*-linux* | x86_64-*-linux*)
34457 may_have_cet=yes
34458 cet_save_CFLAGS="$CFLAGS"
34459 CFLAGS="$CFLAGS -fcf-protection"
34460 case "$enable_cet" in
34461 auto)
34462 # Check if target supports multi-byte NOPs
34463 # and if compiler and assembler support CET.
34464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34465 /* end confdefs.h. */
34468 main ()
34471 #if !defined(__SSE2__)
34472 #error target does not support multi-byte NOPs
34473 #else
34474 asm ("setssbsy");
34475 #endif
34478 return 0;
34480 _ACEOF
34481 if ac_fn_cxx_try_compile "$LINENO"; then :
34482 enable_cet=yes
34483 else
34484 enable_cet=no
34486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34488 yes)
34489 # Check if compiler and assembler support CET.
34490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34491 /* end confdefs.h. */
34494 main ()
34496 asm ("setssbsy");
34498 return 0;
34500 _ACEOF
34501 if ac_fn_cxx_try_compile "$LINENO"; then :
34502 support_cet=yes
34503 else
34504 support_cet=no
34506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34507 if test $support_cet = "no"; then
34508 if test x$enable_bootstrap != xno \
34509 && test -z "${with_build_subdir}" \
34510 && (test ! -f ../stage_current \
34511 || test `cat ../stage_current` != "stage1"); then
34512 # Require CET support only for the final GCC build.
34513 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34514 else
34515 # Don't enable CET without CET support for non-bootstrap
34516 # build, in stage1 nor for build support.
34517 enable_cet=no
34521 esac
34522 CFLAGS="$cet_save_CFLAGS"
34525 may_have_cet=no
34526 enable_cet=no
34528 esac
34530 cet_save_CFLAGS="$CFLAGS"
34531 CFLAGS="$CFLAGS -fcf-protection=none"
34532 cet_save_LDFLAGS="$LDFLAGS"
34533 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34534 if test x$may_have_cet = xyes; then
34535 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34537 /* end confdefs.h. */
34540 main ()
34542 return 0;
34544 return 0;
34546 _ACEOF
34547 if ac_fn_cxx_try_link "$LINENO"; then :
34548 may_have_cet=yes
34549 else
34550 may_have_cet=no
34552 rm -f core conftest.err conftest.$ac_objext \
34553 conftest$ac_exeext conftest.$ac_ext
34556 if test x$may_have_cet = xyes; then
34557 if test x$cross_compiling = xno; then
34558 if test "$cross_compiling" = yes; then :
34559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34561 as_fn_error $? "cannot run test program while cross compiling
34562 See \`config.log' for more details" "$LINENO" 5; }
34563 else
34564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34565 /* end confdefs.h. */
34568 main ()
34570 asm ("endbr32");
34571 return 0;
34574 _ACEOF
34575 if ac_fn_cxx_try_run "$LINENO"; then :
34576 have_multi_byte_nop=yes
34577 else
34578 have_multi_byte_nop=no
34580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34581 conftest.$ac_objext conftest.beam conftest.$ac_ext
34584 have_cet=no
34585 if test x$have_multi_byte_nop = xyes; then
34586 if test "$cross_compiling" = yes; then :
34587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34589 as_fn_error $? "cannot run test program while cross compiling
34590 See \`config.log' for more details" "$LINENO" 5; }
34591 else
34592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34593 /* end confdefs.h. */
34595 static void
34596 foo (void)
34600 static void
34601 __attribute__ ((noinline, noclone))
34602 xxx (void (*f) (void))
34604 f ();
34607 static void
34608 __attribute__ ((noinline, noclone))
34609 bar (void)
34611 xxx (foo);
34615 main ()
34617 bar ();
34618 return 0;
34621 _ACEOF
34622 if ac_fn_cxx_try_run "$LINENO"; then :
34623 have_cet=no
34624 else
34625 have_cet=yes
34627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34628 conftest.$ac_objext conftest.beam conftest.$ac_ext
34632 if test x$enable_cet = xno -a x$have_cet = xyes; then
34633 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34636 else
34637 # Enable CET in cross compiler if possible so that it will run on both
34638 # CET and non-CET hosts.
34639 have_cet=yes
34641 if test x$enable_cet = xyes; then
34642 CET_HOST_FLAGS="-fcf-protection"
34643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34644 $as_echo "yes" >&6; }
34645 else
34646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34647 $as_echo "no" >&6; }
34649 CFLAGS="$cet_save_CFLAGS"
34650 LDFLAGS="$cet_save_LDFLAGS"
34652 case x$enable_languages in
34653 *jit*)
34656 CET_HOST_FLAGS=
34658 esac
34661 # Check linker supports '-z bndplt'
34662 ld_bndplt_support=no
34663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34664 $as_echo_n "checking linker -z bndplt option... " >&6; }
34665 if test x"$ld_is_gold" = xno; then
34666 if test $in_tree_ld = yes ; then
34667 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
34668 ld_bndplt_support=yes
34670 elif test x$gcc_cv_ld != x; then
34671 # Check if linker supports -z bndplt option
34672 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34673 ld_bndplt_support=yes
34677 if test x"$ld_bndplt_support" = xyes; then
34679 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34683 $as_echo "$ld_bndplt_support" >&6; }
34685 # Check linker supports '--push-state'/'--pop-state'
34686 ld_pushpopstate_support=no
34687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34688 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34689 if test x"$ld_is_gold" = xno; then
34690 if test $in_tree_ld = yes ; then
34691 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
34692 ld_pushpopstate_support=yes
34694 elif test x$gcc_cv_ld != x; then
34695 # Check if linker supports --push-state/--pop-state options
34696 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34697 ld_pushpopstate_support=yes
34701 if test x"$ld_pushpopstate_support" = xyes; then
34703 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34707 $as_echo "$ld_pushpopstate_support" >&6; }
34709 # On s390, float_t has historically been statically defined as double for no
34710 # good reason. To comply with the C standard in the light of this definition,
34711 # gcc has evaluated float expressions in double precision when in
34712 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34713 # a smooth transition towards the new model used by most architectures, where
34714 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34715 # float_t from that, this behavior can be configured with
34716 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34717 # the old model. When omitted, native builds and cross compiles that have target
34718 # libc headers will detect whether libc clamps float_t to double and in that
34719 # case maintain the old model. Otherwise, they will default to the new model.
34720 # Check whether --enable-s390-excess-float-precision was given.
34721 if test "${enable_s390_excess_float_precision+set}" = set; then :
34722 enableval=$enable_s390_excess_float_precision;
34723 else
34724 enable_s390_excess_float_precision=auto
34728 case $target in
34729 s390*-linux*)
34730 if test x"$enable_s390_excess_float_precision" = xauto; then
34731 # Can we autodetect the behavior of the target libc?
34732 if test "$target" = "$host" -a "$host" = "$build"; then
34733 enable_s390_excess_float_precision=autodetect
34734 elif test "x$with_headers" != xno; then
34735 # cross build. are target headers available?
34736 # carefully coerce the build-system compiler to use target headers
34737 saved_CXXFLAGS="$CXXFLAGS"
34738 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34739 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34740 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34742 /* end confdefs.h. */
34744 #include <math.h>
34746 _ACEOF
34747 if ac_fn_cxx_try_compile "$LINENO"; then :
34748 enable_s390_excess_float_precision=autodetect
34750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34751 CXXFLAGS="$saved_CXXFLAGS"
34754 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34755 saved_CXXFLAGS="$CXXFLAGS"
34756 if ! test "$target" = "$host" -a "$host" = "$build"; then
34757 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34758 unset CROSS_TEST_CXXFLAGS
34760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34761 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34762 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34763 $as_echo_n "(cached) " >&6
34764 else
34766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34767 /* end confdefs.h. */
34769 #define __FLT_EVAL_METHOD__ 0
34770 #include <math.h>
34771 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34773 _ACEOF
34774 if ac_fn_cxx_try_compile "$LINENO"; then :
34775 gcc_cv_float_t_clamped_to_double=yes
34776 else
34777 gcc_cv_float_t_clamped_to_double=no
34779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34782 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34783 CXXFLAGS="$saved_CXXFLAGS"
34784 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34785 else
34786 # no way to detect behavior of target libc, default to new model
34787 enable_s390_excess_float_precision=no
34792 if test x"$enable_s390_excess_float_precision" = xyes; then
34794 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34798 esac
34800 # Check if the linker supports '-z now'
34801 ld_now_support=no
34802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34803 $as_echo_n "checking linker -z now option... " >&6; }
34804 if test x"$ld_is_gold" = xyes; then
34805 ld_now_support=yes
34806 elif test $in_tree_ld = yes ; then
34807 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
34808 ld_now_support=yes
34810 elif test x$gcc_cv_ld != x; then
34811 # Check if linker supports -z now
34812 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34813 ld_now_support=yes
34817 cat >>confdefs.h <<_ACEOF
34818 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34819 _ACEOF
34821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34822 $as_echo "$ld_now_support" >&6; }
34824 # Check if the linker supports '-z relro'
34825 ld_relro_support=no
34826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34827 $as_echo_n "checking linker -z relro option... " >&6; }
34828 if test x"$ld_is_gold" = xyes; then
34829 ld_relro_support=yes
34830 elif test $in_tree_ld = yes ; then
34831 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2; then
34832 ld_relro_support=yes
34834 elif test x$gcc_cv_ld != x; then
34835 # Check if linker supports -z relro
34836 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34837 ld_relro_support=yes
34841 cat >>confdefs.h <<_ACEOF
34842 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34843 _ACEOF
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34846 $as_echo "$ld_relro_support" >&6; }
34848 case $target_os in
34849 linux* | gnu*)
34850 # -fhardened is only supported on GNU/Linux.
34851 fhardened_support=yes
34854 fhardened_support=no
34856 esac
34859 cat >>confdefs.h <<_ACEOF
34860 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34861 _ACEOF
34863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34864 $as_echo "$fhardened_support" >&6; }
34866 # Configure the subdirectories
34867 # AC_CONFIG_SUBDIRS($subdirs)
34869 # Create the Makefile
34870 # and configure language subdirectories
34871 ac_config_files="$ac_config_files $all_outputs"
34874 ac_config_commands="$ac_config_commands default"
34876 cat >confcache <<\_ACEOF
34877 # This file is a shell script that caches the results of configure
34878 # tests run on this system so they can be shared between configure
34879 # scripts and configure runs, see configure's option --config-cache.
34880 # It is not useful on other systems. If it contains results you don't
34881 # want to keep, you may remove or edit it.
34883 # config.status only pays attention to the cache file if you give it
34884 # the --recheck option to rerun configure.
34886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34888 # following values.
34890 _ACEOF
34892 # The following way of writing the cache mishandles newlines in values,
34893 # but we know of no workaround that is simple, portable, and efficient.
34894 # So, we kill variables containing newlines.
34895 # Ultrix sh set writes to stderr and can't be redirected directly,
34896 # and sets the high bit in the cache file unless we assign to the vars.
34898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34899 eval ac_val=\$$ac_var
34900 case $ac_val in #(
34901 *${as_nl}*)
34902 case $ac_var in #(
34903 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34904 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34905 esac
34906 case $ac_var in #(
34907 _ | IFS | as_nl) ;; #(
34908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34909 *) { eval $ac_var=; unset $ac_var;} ;;
34910 esac ;;
34911 esac
34912 done
34914 (set) 2>&1 |
34915 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34916 *${as_nl}ac_space=\ *)
34917 # `set' does not quote correctly, so add quotes: double-quote
34918 # substitution turns \\\\ into \\, and sed turns \\ into \.
34919 sed -n \
34920 "s/'/'\\\\''/g;
34921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34922 ;; #(
34924 # `set' quotes correctly as required by POSIX, so do not add quotes.
34925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34927 esac |
34928 sort
34930 sed '
34931 /^ac_cv_env_/b end
34932 t clear
34933 :clear
34934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34935 t end
34936 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34937 :end' >>confcache
34938 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34939 if test -w "$cache_file"; then
34940 if test "x$cache_file" != "x/dev/null"; then
34941 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34942 $as_echo "$as_me: updating cache $cache_file" >&6;}
34943 if test ! -f "$cache_file" || test -h "$cache_file"; then
34944 cat confcache >"$cache_file"
34945 else
34946 case $cache_file in #(
34947 */* | ?:*)
34948 mv -f confcache "$cache_file"$$ &&
34949 mv -f "$cache_file"$$ "$cache_file" ;; #(
34951 mv -f confcache "$cache_file" ;;
34952 esac
34955 else
34956 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34957 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34960 rm -f confcache
34962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34963 # Let make expand exec_prefix.
34964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34966 DEFS=-DHAVE_CONFIG_H
34968 ac_libobjs=
34969 ac_ltlibobjs=
34971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34972 # 1. Remove the extension, and $U if already installed.
34973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34974 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34976 # will be set to the directory where LIBOBJS objects are built.
34977 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34978 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34979 done
34980 LIBOBJS=$ac_libobjs
34982 LTLIBOBJS=$ac_ltlibobjs
34986 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34987 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34991 : "${CONFIG_STATUS=./config.status}"
34992 ac_write_fail=0
34993 ac_clean_files_save=$ac_clean_files
34994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34996 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34997 as_write_fail=0
34998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34999 #! $SHELL
35000 # Generated by $as_me.
35001 # Run this file to recreate the current configuration.
35002 # Compiler output produced by configure, useful for debugging
35003 # configure, is in config.log if it exists.
35005 debug=false
35006 ac_cs_recheck=false
35007 ac_cs_silent=false
35009 SHELL=\${CONFIG_SHELL-$SHELL}
35010 export SHELL
35011 _ASEOF
35012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35013 ## -------------------- ##
35014 ## M4sh Initialization. ##
35015 ## -------------------- ##
35017 # Be more Bourne compatible
35018 DUALCASE=1; export DUALCASE # for MKS sh
35019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35020 emulate sh
35021 NULLCMD=:
35022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35023 # is contrary to our usage. Disable this feature.
35024 alias -g '${1+"$@"}'='"$@"'
35025 setopt NO_GLOB_SUBST
35026 else
35027 case `(set -o) 2>/dev/null` in #(
35028 *posix*) :
35029 set -o posix ;; #(
35030 *) :
35032 esac
35036 as_nl='
35038 export as_nl
35039 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35043 # Prefer a ksh shell builtin over an external printf program on Solaris,
35044 # but without wasting forks for bash or zsh.
35045 if test -z "$BASH_VERSION$ZSH_VERSION" \
35046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35047 as_echo='print -r --'
35048 as_echo_n='print -rn --'
35049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35050 as_echo='printf %s\n'
35051 as_echo_n='printf %s'
35052 else
35053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35055 as_echo_n='/usr/ucb/echo -n'
35056 else
35057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35058 as_echo_n_body='eval
35059 arg=$1;
35060 case $arg in #(
35061 *"$as_nl"*)
35062 expr "X$arg" : "X\\(.*\\)$as_nl";
35063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35064 esac;
35065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35067 export as_echo_n_body
35068 as_echo_n='sh -c $as_echo_n_body as_echo'
35070 export as_echo_body
35071 as_echo='sh -c $as_echo_body as_echo'
35074 # The user is always right.
35075 if test "${PATH_SEPARATOR+set}" != set; then
35076 PATH_SEPARATOR=:
35077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35079 PATH_SEPARATOR=';'
35084 # IFS
35085 # We need space, tab and new line, in precisely that order. Quoting is
35086 # there to prevent editors from complaining about space-tab.
35087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35088 # splitting by setting IFS to empty value.)
35089 IFS=" "" $as_nl"
35091 # Find who we are. Look in the path if we contain no directory separator.
35092 as_myself=
35093 case $0 in #((
35094 *[\\/]* ) as_myself=$0 ;;
35095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35096 for as_dir in $PATH
35098 IFS=$as_save_IFS
35099 test -z "$as_dir" && as_dir=.
35100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35101 done
35102 IFS=$as_save_IFS
35105 esac
35106 # We did not find ourselves, most probably we were run as `sh COMMAND'
35107 # in which case we are not to be found in the path.
35108 if test "x$as_myself" = x; then
35109 as_myself=$0
35111 if test ! -f "$as_myself"; then
35112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35113 exit 1
35116 # Unset variables that we do not need and which cause bugs (e.g. in
35117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35118 # suppresses any "Segmentation fault" message there. '((' could
35119 # trigger a bug in pdksh 5.2.14.
35120 for as_var in BASH_ENV ENV MAIL MAILPATH
35121 do eval test x\${$as_var+set} = xset \
35122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35123 done
35124 PS1='$ '
35125 PS2='> '
35126 PS4='+ '
35128 # NLS nuisances.
35129 LC_ALL=C
35130 export LC_ALL
35131 LANGUAGE=C
35132 export LANGUAGE
35134 # CDPATH.
35135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35138 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35139 # ----------------------------------------
35140 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35141 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35142 # script with STATUS, using 1 if that was 0.
35143 as_fn_error ()
35145 as_status=$1; test $as_status -eq 0 && as_status=1
35146 if test "$4"; then
35147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35150 $as_echo "$as_me: error: $2" >&2
35151 as_fn_exit $as_status
35152 } # as_fn_error
35155 # as_fn_set_status STATUS
35156 # -----------------------
35157 # Set $? to STATUS, without forking.
35158 as_fn_set_status ()
35160 return $1
35161 } # as_fn_set_status
35163 # as_fn_exit STATUS
35164 # -----------------
35165 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35166 as_fn_exit ()
35168 set +e
35169 as_fn_set_status $1
35170 exit $1
35171 } # as_fn_exit
35173 # as_fn_unset VAR
35174 # ---------------
35175 # Portably unset VAR.
35176 as_fn_unset ()
35178 { eval $1=; unset $1;}
35180 as_unset=as_fn_unset
35181 # as_fn_append VAR VALUE
35182 # ----------------------
35183 # Append the text in VALUE to the end of the definition contained in VAR. Take
35184 # advantage of any shell optimizations that allow amortized linear growth over
35185 # repeated appends, instead of the typical quadratic growth present in naive
35186 # implementations.
35187 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35188 eval 'as_fn_append ()
35190 eval $1+=\$2
35192 else
35193 as_fn_append ()
35195 eval $1=\$$1\$2
35197 fi # as_fn_append
35199 # as_fn_arith ARG...
35200 # ------------------
35201 # Perform arithmetic evaluation on the ARGs, and store the result in the
35202 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35203 # must be portable across $(()) and expr.
35204 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35205 eval 'as_fn_arith ()
35207 as_val=$(( $* ))
35209 else
35210 as_fn_arith ()
35212 as_val=`expr "$@" || test $? -eq 1`
35214 fi # as_fn_arith
35217 if expr a : '\(a\)' >/dev/null 2>&1 &&
35218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35219 as_expr=expr
35220 else
35221 as_expr=false
35224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35225 as_basename=basename
35226 else
35227 as_basename=false
35230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35231 as_dirname=dirname
35232 else
35233 as_dirname=false
35236 as_me=`$as_basename -- "$0" ||
35237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35238 X"$0" : 'X\(//\)$' \| \
35239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35240 $as_echo X/"$0" |
35241 sed '/^.*\/\([^/][^/]*\)\/*$/{
35242 s//\1/
35245 /^X\/\(\/\/\)$/{
35246 s//\1/
35249 /^X\/\(\/\).*/{
35250 s//\1/
35253 s/.*/./; q'`
35255 # Avoid depending upon Character Ranges.
35256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35259 as_cr_digits='0123456789'
35260 as_cr_alnum=$as_cr_Letters$as_cr_digits
35262 ECHO_C= ECHO_N= ECHO_T=
35263 case `echo -n x` in #(((((
35264 -n*)
35265 case `echo 'xy\c'` in
35266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35267 xy) ECHO_C='\c';;
35268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35269 ECHO_T=' ';;
35270 esac;;
35272 ECHO_N='-n';;
35273 esac
35275 rm -f conf$$ conf$$.exe conf$$.file
35276 if test -d conf$$.dir; then
35277 rm -f conf$$.dir/conf$$.file
35278 else
35279 rm -f conf$$.dir
35280 mkdir conf$$.dir 2>/dev/null
35282 if (echo >conf$$.file) 2>/dev/null; then
35283 if ln -s conf$$.file conf$$ 2>/dev/null; then
35284 as_ln_s='ln -s'
35285 # ... but there are two gotchas:
35286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35288 # In both cases, we have to default to `cp -pR'.
35289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35290 as_ln_s='cp -pR'
35291 elif ln conf$$.file conf$$ 2>/dev/null; then
35292 as_ln_s=ln
35293 else
35294 as_ln_s='cp -pR'
35296 else
35297 as_ln_s='cp -pR'
35299 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35300 rmdir conf$$.dir 2>/dev/null
35303 # as_fn_mkdir_p
35304 # -------------
35305 # Create "$as_dir" as a directory, including parents if necessary.
35306 as_fn_mkdir_p ()
35309 case $as_dir in #(
35310 -*) as_dir=./$as_dir;;
35311 esac
35312 test -d "$as_dir" || eval $as_mkdir_p || {
35313 as_dirs=
35314 while :; do
35315 case $as_dir in #(
35316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35317 *) as_qdir=$as_dir;;
35318 esac
35319 as_dirs="'$as_qdir' $as_dirs"
35320 as_dir=`$as_dirname -- "$as_dir" ||
35321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35322 X"$as_dir" : 'X\(//\)[^/]' \| \
35323 X"$as_dir" : 'X\(//\)$' \| \
35324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35325 $as_echo X"$as_dir" |
35326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35327 s//\1/
35330 /^X\(\/\/\)[^/].*/{
35331 s//\1/
35334 /^X\(\/\/\)$/{
35335 s//\1/
35338 /^X\(\/\).*/{
35339 s//\1/
35342 s/.*/./; q'`
35343 test -d "$as_dir" && break
35344 done
35345 test -z "$as_dirs" || eval "mkdir $as_dirs"
35346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35349 } # as_fn_mkdir_p
35350 if mkdir -p . 2>/dev/null; then
35351 as_mkdir_p='mkdir -p "$as_dir"'
35352 else
35353 test -d ./-p && rmdir ./-p
35354 as_mkdir_p=false
35358 # as_fn_executable_p FILE
35359 # -----------------------
35360 # Test if FILE is an executable regular file.
35361 as_fn_executable_p ()
35363 test -f "$1" && test -x "$1"
35364 } # as_fn_executable_p
35365 as_test_x='test -x'
35366 as_executable_p=as_fn_executable_p
35368 # Sed expression to map a string onto a valid CPP name.
35369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35371 # Sed expression to map a string onto a valid variable name.
35372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35375 exec 6>&1
35376 ## ----------------------------------- ##
35377 ## Main body of $CONFIG_STATUS script. ##
35378 ## ----------------------------------- ##
35379 _ASEOF
35380 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35383 # Save the log message, to keep $0 and so on meaningful, and to
35384 # report actual input values of CONFIG_FILES etc. instead of their
35385 # values after options handling.
35386 ac_log="
35387 This file was extended by $as_me, which was
35388 generated by GNU Autoconf 2.69. Invocation command line was
35390 CONFIG_FILES = $CONFIG_FILES
35391 CONFIG_HEADERS = $CONFIG_HEADERS
35392 CONFIG_LINKS = $CONFIG_LINKS
35393 CONFIG_COMMANDS = $CONFIG_COMMANDS
35394 $ $0 $@
35396 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35399 _ACEOF
35401 case $ac_config_files in *"
35402 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35403 esac
35405 case $ac_config_headers in *"
35406 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35407 esac
35410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35411 # Files that config.status was made for.
35412 config_files="$ac_config_files"
35413 config_headers="$ac_config_headers"
35414 config_links="$ac_config_links"
35415 config_commands="$ac_config_commands"
35417 _ACEOF
35419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35420 ac_cs_usage="\
35421 \`$as_me' instantiates files and other configuration actions
35422 from templates according to the current configuration. Unless the files
35423 and actions are specified as TAGs, all are instantiated by default.
35425 Usage: $0 [OPTION]... [TAG]...
35427 -h, --help print this help, then exit
35428 -V, --version print version number and configuration settings, then exit
35429 --config print configuration, then exit
35430 -q, --quiet, --silent
35431 do not print progress messages
35432 -d, --debug don't remove temporary files
35433 --recheck update $as_me by reconfiguring in the same conditions
35434 --file=FILE[:TEMPLATE]
35435 instantiate the configuration file FILE
35436 --header=FILE[:TEMPLATE]
35437 instantiate the configuration header FILE
35439 Configuration files:
35440 $config_files
35442 Configuration headers:
35443 $config_headers
35445 Configuration links:
35446 $config_links
35448 Configuration commands:
35449 $config_commands
35451 Report bugs to the package provider."
35453 _ACEOF
35454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35455 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35456 ac_cs_version="\\
35457 config.status
35458 configured by $0, generated by GNU Autoconf 2.69,
35459 with options \\"\$ac_cs_config\\"
35461 Copyright (C) 2012 Free Software Foundation, Inc.
35462 This config.status script is free software; the Free Software Foundation
35463 gives unlimited permission to copy, distribute and modify it."
35465 ac_pwd='$ac_pwd'
35466 srcdir='$srcdir'
35467 INSTALL='$INSTALL'
35468 AWK='$AWK'
35469 test -n "\$AWK" || AWK=awk
35470 _ACEOF
35472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35473 # The default lists apply if the user does not specify any file.
35474 ac_need_defaults=:
35475 while test $# != 0
35477 case $1 in
35478 --*=?*)
35479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35481 ac_shift=:
35483 --*=)
35484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35485 ac_optarg=
35486 ac_shift=:
35489 ac_option=$1
35490 ac_optarg=$2
35491 ac_shift=shift
35493 esac
35495 case $ac_option in
35496 # Handling of the options.
35497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35498 ac_cs_recheck=: ;;
35499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35500 $as_echo "$ac_cs_version"; exit ;;
35501 --config | --confi | --conf | --con | --co | --c )
35502 $as_echo "$ac_cs_config"; exit ;;
35503 --debug | --debu | --deb | --de | --d | -d )
35504 debug=: ;;
35505 --file | --fil | --fi | --f )
35506 $ac_shift
35507 case $ac_optarg in
35508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35509 '') as_fn_error $? "missing file argument" ;;
35510 esac
35511 as_fn_append CONFIG_FILES " '$ac_optarg'"
35512 ac_need_defaults=false;;
35513 --header | --heade | --head | --hea )
35514 $ac_shift
35515 case $ac_optarg in
35516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35517 esac
35518 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35519 ac_need_defaults=false;;
35520 --he | --h)
35521 # Conflict between --help and --header
35522 as_fn_error $? "ambiguous option: \`$1'
35523 Try \`$0 --help' for more information.";;
35524 --help | --hel | -h )
35525 $as_echo "$ac_cs_usage"; exit ;;
35526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35528 ac_cs_silent=: ;;
35530 # This is an error.
35531 -*) as_fn_error $? "unrecognized option: \`$1'
35532 Try \`$0 --help' for more information." ;;
35534 *) as_fn_append ac_config_targets " $1"
35535 ac_need_defaults=false ;;
35537 esac
35538 shift
35539 done
35541 ac_configure_extra_args=
35543 if $ac_cs_silent; then
35544 exec 6>/dev/null
35545 ac_configure_extra_args="$ac_configure_extra_args --silent"
35548 _ACEOF
35549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35550 if \$ac_cs_recheck; then
35551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35552 shift
35553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35554 CONFIG_SHELL='$SHELL'
35555 export CONFIG_SHELL
35556 exec "\$@"
35559 _ACEOF
35560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35561 exec 5>>config.log
35563 echo
35564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35565 ## Running $as_me. ##
35566 _ASBOX
35567 $as_echo "$ac_log"
35568 } >&5
35570 _ACEOF
35571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35573 # INIT-COMMANDS
35575 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35576 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35577 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35578 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35579 # from automake.
35580 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35581 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35582 LINGUAS="${LINGUAS-%UNSET%}"
35584 subdirs='$subdirs'
35586 _ACEOF
35588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35590 # Handling of arguments.
35591 for ac_config_target in $ac_config_targets
35593 case $ac_config_target in
35594 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35595 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35596 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35597 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35598 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35599 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35600 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35601 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35602 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35603 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35604 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35607 esac
35608 done
35611 # If the user did not use the arguments to specify the items to instantiate,
35612 # then the envvar interface is used. Set only those that are not.
35613 # We use the long form for the default assignment because of an extremely
35614 # bizarre bug on SunOS 4.1.3.
35615 if $ac_need_defaults; then
35616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35618 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35622 # Have a temporary directory for convenience. Make it in the build tree
35623 # simply because there is no reason against having it here, and in addition,
35624 # creating and moving files from /tmp can sometimes cause problems.
35625 # Hook for its removal unless debugging.
35626 # Note that there is a small window in which the directory will not be cleaned:
35627 # after its creation but before its name has been assigned to `$tmp'.
35628 $debug ||
35630 tmp= ac_tmp=
35631 trap 'exit_status=$?
35632 : "${ac_tmp:=$tmp}"
35633 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35635 trap 'as_fn_exit 1' 1 2 13 15
35637 # Create a (secure) tmp directory for tmp files.
35640 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35641 test -d "$tmp"
35642 } ||
35644 tmp=./conf$$-$RANDOM
35645 (umask 077 && mkdir "$tmp")
35646 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35647 ac_tmp=$tmp
35649 # Set up the scripts for CONFIG_FILES section.
35650 # No need to generate them if there are no CONFIG_FILES.
35651 # This happens for instance with `./config.status config.h'.
35652 if test -n "$CONFIG_FILES"; then
35654 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35655 ac_cs_awk_getline=:
35656 ac_cs_awk_pipe_init=
35657 ac_cs_awk_read_file='
35658 while ((getline aline < (F[key])) > 0)
35659 print(aline)
35660 close(F[key])'
35661 ac_cs_awk_pipe_fini=
35662 else
35663 ac_cs_awk_getline=false
35664 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35665 ac_cs_awk_read_file='
35666 print "|#_!!_#|"
35667 print "cat " F[key] " &&"
35668 '$ac_cs_awk_pipe_init
35669 # The final `:' finishes the AND list.
35670 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35672 ac_cr=`echo X | tr X '\015'`
35673 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35674 # But we know of no other shell where ac_cr would be empty at this
35675 # point, so we can use a bashism as a fallback.
35676 if test "x$ac_cr" = x; then
35677 eval ac_cr=\$\'\\r\'
35679 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35680 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35681 ac_cs_awk_cr='\\r'
35682 else
35683 ac_cs_awk_cr=$ac_cr
35686 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35687 _ACEOF
35689 # Create commands to substitute file output variables.
35691 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35692 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35693 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35694 echo "_ACAWK" &&
35695 echo "_ACEOF"
35696 } >conf$$files.sh &&
35697 . ./conf$$files.sh ||
35698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35699 rm -f conf$$files.sh
35702 echo "cat >conf$$subs.awk <<_ACEOF" &&
35703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35704 echo "_ACEOF"
35705 } >conf$$subs.sh ||
35706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35708 ac_delim='%!_!# '
35709 for ac_last_try in false false false false false :; do
35710 . ./conf$$subs.sh ||
35711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35714 if test $ac_delim_n = $ac_delim_num; then
35715 break
35716 elif $ac_last_try; then
35717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35718 else
35719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35721 done
35722 rm -f conf$$subs.sh
35724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35725 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35726 _ACEOF
35727 sed -n '
35729 s/^/S["/; s/!.*/"]=/
35732 s/^[^!]*!//
35733 :repl
35734 t repl
35735 s/'"$ac_delim"'$//
35736 t delim
35739 s/\(.\{148\}\)..*/\1/
35740 t more1
35741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35744 b repl
35745 :more1
35746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35749 s/.\{148\}//
35750 t nl
35751 :delim
35753 s/\(.\{148\}\)..*/\1/
35754 t more2
35755 s/["\\]/\\&/g; s/^/"/; s/$/"/
35758 :more2
35759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35762 s/.\{148\}//
35763 t delim
35764 ' <conf$$subs.awk | sed '
35765 /^[^""]/{
35767 s/\n//
35769 ' >>$CONFIG_STATUS || ac_write_fail=1
35770 rm -f conf$$subs.awk
35771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35772 _ACAWK
35773 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35774 for (key in S) S_is_set[key] = 1
35775 FS = "\a"
35776 \$ac_cs_awk_pipe_init
35779 line = $ 0
35780 nfields = split(line, field, "@")
35781 substed = 0
35782 len = length(field[1])
35783 for (i = 2; i < nfields; i++) {
35784 key = field[i]
35785 keylen = length(key)
35786 if (S_is_set[key]) {
35787 value = S[key]
35788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35789 len += length(value) + length(field[++i])
35790 substed = 1
35791 } else
35792 len += 1 + keylen
35794 if (nfields == 3 && !substed) {
35795 key = field[2]
35796 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35797 \$ac_cs_awk_read_file
35798 next
35801 print line
35803 \$ac_cs_awk_pipe_fini
35804 _ACAWK
35805 _ACEOF
35806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35807 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35808 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35809 else
35811 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35812 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35813 _ACEOF
35815 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35816 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35817 # trailing colons and then remove the whole line if VPATH becomes empty
35818 # (actually we leave an empty line to preserve line numbers).
35819 if test "x$srcdir" = x.; then
35820 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35822 s///
35823 s/^/:/
35824 s/[ ]*$/:/
35825 s/:\$(srcdir):/:/g
35826 s/:\${srcdir}:/:/g
35827 s/:@srcdir@:/:/g
35828 s/^:*//
35829 s/:*$//
35831 s/\(=[ ]*\).*/\1/
35833 s/\n//
35834 s/^[^=]*=[ ]*$//
35838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35839 fi # test -n "$CONFIG_FILES"
35841 # Set up the scripts for CONFIG_HEADERS section.
35842 # No need to generate them if there are no CONFIG_HEADERS.
35843 # This happens for instance with `./config.status Makefile'.
35844 if test -n "$CONFIG_HEADERS"; then
35845 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35846 BEGIN {
35847 _ACEOF
35849 # Transform confdefs.h into an awk script `defines.awk', embedded as
35850 # here-document in config.status, that substitutes the proper values into
35851 # config.h.in to produce config.h.
35853 # Create a delimiter string that does not exist in confdefs.h, to ease
35854 # handling of long lines.
35855 ac_delim='%!_!# '
35856 for ac_last_try in false false :; do
35857 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35858 if test -z "$ac_tt"; then
35859 break
35860 elif $ac_last_try; then
35861 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35862 else
35863 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35865 done
35867 # For the awk script, D is an array of macro values keyed by name,
35868 # likewise P contains macro parameters if any. Preserve backslash
35869 # newline sequences.
35871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35872 sed -n '
35873 s/.\{148\}/&'"$ac_delim"'/g
35874 t rset
35875 :rset
35876 s/^[ ]*#[ ]*define[ ][ ]*/ /
35877 t def
35879 :def
35880 s/\\$//
35881 t bsnl
35882 s/["\\]/\\&/g
35883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35884 D["\1"]=" \3"/p
35885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35887 :bsnl
35888 s/["\\]/\\&/g
35889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35890 D["\1"]=" \3\\\\\\n"\\/p
35891 t cont
35892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35893 t cont
35895 :cont
35897 s/.\{148\}/&'"$ac_delim"'/g
35898 t clear
35899 :clear
35900 s/\\$//
35901 t bsnlc
35902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35904 :bsnlc
35905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35906 b cont
35907 ' <confdefs.h | sed '
35908 s/'"$ac_delim"'/"\\\
35909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35912 for (key in D) D_is_set[key] = 1
35913 FS = "\a"
35915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35916 line = \$ 0
35917 split(line, arg, " ")
35918 if (arg[1] == "#") {
35919 defundef = arg[2]
35920 mac1 = arg[3]
35921 } else {
35922 defundef = substr(arg[1], 2)
35923 mac1 = arg[2]
35925 split(mac1, mac2, "(") #)
35926 macro = mac2[1]
35927 prefix = substr(line, 1, index(line, defundef) - 1)
35928 if (D_is_set[macro]) {
35929 # Preserve the white space surrounding the "#".
35930 print prefix "define", macro P[macro] D[macro]
35931 next
35932 } else {
35933 # Replace #undef with comments. This is necessary, for example,
35934 # in the case of _POSIX_SOURCE, which is predefined and required
35935 # on some systems where configure will not decide to define it.
35936 if (defundef == "undef") {
35937 print "/*", prefix defundef, macro, "*/"
35938 next
35942 { print }
35943 _ACAWK
35944 _ACEOF
35945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35946 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35947 fi # test -n "$CONFIG_HEADERS"
35950 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35951 shift
35952 for ac_tag
35954 case $ac_tag in
35955 :[FHLC]) ac_mode=$ac_tag; continue;;
35956 esac
35957 case $ac_mode$ac_tag in
35958 :[FHL]*:*);;
35959 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35960 :[FH]-) ac_tag=-:-;;
35961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35962 esac
35963 ac_save_IFS=$IFS
35964 IFS=:
35965 set x $ac_tag
35966 IFS=$ac_save_IFS
35967 shift
35968 ac_file=$1
35969 shift
35971 case $ac_mode in
35972 :L) ac_source=$1;;
35973 :[FH])
35974 ac_file_inputs=
35975 for ac_f
35977 case $ac_f in
35978 -) ac_f="$ac_tmp/stdin";;
35979 *) # Look for the file first in the build tree, then in the source tree
35980 # (if the path is not absolute). The absolute path cannot be DOS-style,
35981 # because $ac_f cannot contain `:'.
35982 test -f "$ac_f" ||
35983 case $ac_f in
35984 [\\/$]*) false;;
35985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35986 esac ||
35987 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35988 esac
35989 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35990 as_fn_append ac_file_inputs " '$ac_f'"
35991 done
35993 # Let's still pretend it is `configure' which instantiates (i.e., don't
35994 # use $as_me), people would be surprised to read:
35995 # /* config.h. Generated by config.status. */
35996 configure_input='Generated from '`
35997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35998 `' by configure.'
35999 if test x"$ac_file" != x-; then
36000 configure_input="$ac_file. $configure_input"
36001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36002 $as_echo "$as_me: creating $ac_file" >&6;}
36004 # Neutralize special characters interpreted by sed in replacement strings.
36005 case $configure_input in #(
36006 *\&* | *\|* | *\\* )
36007 ac_sed_conf_input=`$as_echo "$configure_input" |
36008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36009 *) ac_sed_conf_input=$configure_input;;
36010 esac
36012 case $ac_tag in
36013 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36015 esac
36017 esac
36019 ac_dir=`$as_dirname -- "$ac_file" ||
36020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36021 X"$ac_file" : 'X\(//\)[^/]' \| \
36022 X"$ac_file" : 'X\(//\)$' \| \
36023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36024 $as_echo X"$ac_file" |
36025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36026 s//\1/
36029 /^X\(\/\/\)[^/].*/{
36030 s//\1/
36033 /^X\(\/\/\)$/{
36034 s//\1/
36037 /^X\(\/\).*/{
36038 s//\1/
36041 s/.*/./; q'`
36042 as_dir="$ac_dir"; as_fn_mkdir_p
36043 ac_builddir=.
36045 case "$ac_dir" in
36046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36049 # A ".." for each directory in $ac_dir_suffix.
36050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36051 case $ac_top_builddir_sub in
36052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36054 esac ;;
36055 esac
36056 ac_abs_top_builddir=$ac_pwd
36057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36058 # for backward compatibility:
36059 ac_top_builddir=$ac_top_build_prefix
36061 case $srcdir in
36062 .) # We are building in place.
36063 ac_srcdir=.
36064 ac_top_srcdir=$ac_top_builddir_sub
36065 ac_abs_top_srcdir=$ac_pwd ;;
36066 [\\/]* | ?:[\\/]* ) # Absolute name.
36067 ac_srcdir=$srcdir$ac_dir_suffix;
36068 ac_top_srcdir=$srcdir
36069 ac_abs_top_srcdir=$srcdir ;;
36070 *) # Relative name.
36071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36072 ac_top_srcdir=$ac_top_build_prefix$srcdir
36073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36074 esac
36075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36078 case $ac_mode in
36081 # CONFIG_FILE
36084 case $INSTALL in
36085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36087 esac
36088 _ACEOF
36090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36091 # If the template does not know about datarootdir, expand it.
36092 # FIXME: This hack should be removed a few years after 2.60.
36093 ac_datarootdir_hack=; ac_datarootdir_seen=
36094 ac_sed_dataroot='
36095 /datarootdir/ {
36099 /@datadir@/p
36100 /@docdir@/p
36101 /@infodir@/p
36102 /@localedir@/p
36103 /@mandir@/p'
36104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36105 *datarootdir*) ac_datarootdir_seen=yes;;
36106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36109 _ACEOF
36110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36111 ac_datarootdir_hack='
36112 s&@datadir@&$datadir&g
36113 s&@docdir@&$docdir&g
36114 s&@infodir@&$infodir&g
36115 s&@localedir@&$localedir&g
36116 s&@mandir@&$mandir&g
36117 s&\\\${datarootdir}&$datarootdir&g' ;;
36118 esac
36119 _ACEOF
36121 # Neutralize VPATH when `$srcdir' = `.'.
36122 # Shell code in configure.ac might set extrasub.
36123 # FIXME: do we really want to maintain this feature?
36124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36125 ac_sed_extra="$ac_vpsub
36126 $extrasub
36127 _ACEOF
36128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36131 s|@configure_input@|$ac_sed_conf_input|;t t
36132 s&@top_builddir@&$ac_top_builddir_sub&;t t
36133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36134 s&@srcdir@&$ac_srcdir&;t t
36135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36136 s&@top_srcdir@&$ac_top_srcdir&;t t
36137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36138 s&@builddir@&$ac_builddir&;t t
36139 s&@abs_builddir@&$ac_abs_builddir&;t t
36140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36141 s&@INSTALL@&$ac_INSTALL&;t t
36142 $ac_datarootdir_hack
36144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36145 if $ac_cs_awk_getline; then
36146 $AWK -f "$ac_tmp/subs.awk"
36147 else
36148 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36149 fi \
36150 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36153 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36155 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36157 which seems to be undefined. Please make sure it is defined" >&5
36158 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36159 which seems to be undefined. Please make sure it is defined" >&2;}
36161 rm -f "$ac_tmp/stdin"
36162 case $ac_file in
36163 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36164 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36165 esac \
36166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36170 # CONFIG_HEADER
36172 if test x"$ac_file" != x-; then
36174 $as_echo "/* $configure_input */" \
36175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36176 } >"$ac_tmp/config.h" \
36177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36178 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36179 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36180 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36181 else
36182 rm -f "$ac_file"
36183 mv "$ac_tmp/config.h" "$ac_file" \
36184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36186 else
36187 $as_echo "/* $configure_input */" \
36188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36189 || as_fn_error $? "could not create -" "$LINENO" 5
36194 # CONFIG_LINK
36197 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36199 else
36200 # Prefer the file from the source tree if names are identical.
36201 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36202 ac_source=$srcdir/$ac_source
36205 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36206 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36208 if test ! -r "$ac_source"; then
36209 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36211 rm -f "$ac_file"
36213 # Try a relative symlink, then a hard link, then a copy.
36214 case $ac_source in
36215 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36216 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36217 esac
36218 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36219 ln "$ac_source" "$ac_file" 2>/dev/null ||
36220 cp -p "$ac_source" "$ac_file" ||
36221 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36224 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36225 $as_echo "$as_me: executing $ac_file commands" >&6;}
36227 esac
36230 case $ac_file$ac_mode in
36231 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36232 "gccdepdir":C)
36233 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36234 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36236 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36237 done ;;
36238 "default-1":C)
36239 for ac_file in $CONFIG_FILES; do
36240 # Support "outfile[:infile[:infile...]]"
36241 case "$ac_file" in
36242 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36243 esac
36244 # PO directories have a Makefile.in generated from Makefile.in.in.
36245 case "$ac_file" in */Makefile.in)
36246 # Adjust a relative srcdir.
36247 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36248 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36249 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36250 # In autoconf-2.13 it is called $ac_given_srcdir.
36251 # In autoconf-2.50 it is called $srcdir.
36252 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36253 case "$ac_given_srcdir" in
36254 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36255 /*) top_srcdir="$ac_given_srcdir" ;;
36256 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36257 esac
36258 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36259 rm -f "$ac_dir/POTFILES"
36260 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36261 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36262 POMAKEFILEDEPS="POTFILES.in"
36263 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36264 # on $ac_dir but don't depend on user-specified configuration
36265 # parameters.
36266 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36267 # The LINGUAS file contains the set of available languages.
36268 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36269 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36271 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36272 # Hide the ALL_LINGUAS assigment from automake.
36273 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36274 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36275 else
36276 # The set of available languages was given in configure.ac.
36277 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36279 case "$ac_given_srcdir" in
36280 .) srcdirpre= ;;
36281 *) srcdirpre='$(srcdir)/' ;;
36282 esac
36283 POFILES=
36284 GMOFILES=
36285 UPDATEPOFILES=
36286 DUMMYPOFILES=
36287 for lang in $ALL_LINGUAS; do
36288 POFILES="$POFILES $srcdirpre$lang.po"
36289 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36290 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36291 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36292 done
36293 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36294 # environment variable.
36295 INST_LINGUAS=
36296 if test -n "$ALL_LINGUAS"; then
36297 for presentlang in $ALL_LINGUAS; do
36298 useit=no
36299 if test "%UNSET%" != "$LINGUAS"; then
36300 desiredlanguages="$LINGUAS"
36301 else
36302 desiredlanguages="$ALL_LINGUAS"
36304 for desiredlang in $desiredlanguages; do
36305 # Use the presentlang catalog if desiredlang is
36306 # a. equal to presentlang, or
36307 # b. a variant of presentlang (because in this case,
36308 # presentlang can be used as a fallback for messages
36309 # which are not translated in the desiredlang catalog).
36310 case "$desiredlang" in
36311 "$presentlang"*) useit=yes;;
36312 esac
36313 done
36314 if test $useit = yes; then
36315 INST_LINGUAS="$INST_LINGUAS $presentlang"
36317 done
36319 CATALOGS=
36320 if test -n "$INST_LINGUAS"; then
36321 for lang in $INST_LINGUAS; do
36322 CATALOGS="$CATALOGS $lang.gmo"
36323 done
36325 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36326 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36327 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36328 if test -f "$f"; then
36329 case "$f" in
36330 *.orig | *.bak | *~) ;;
36331 *) cat "$f" >> "$ac_dir/Makefile" ;;
36332 esac
36334 done
36337 esac
36338 done ;;
36339 "as":F) chmod +x as ;;
36340 "collect-ld":F) chmod +x collect-ld ;;
36341 "nm":F) chmod +x nm ;;
36342 "dsymutil":F) chmod +x dsymutil ;;
36343 "default":C)
36344 case ${CONFIG_HEADERS} in
36345 *auto-host.h:config.in*)
36346 echo > cstamp-h ;;
36347 esac
36348 # Make sure all the subdirs exist.
36349 for d in $subdirs doc build common c-family
36351 test -d $d || mkdir $d
36352 done
36355 esac
36356 done # for ac_tag
36359 as_fn_exit 0
36360 _ACEOF
36361 ac_clean_files=$ac_clean_files_save
36363 test $ac_write_fail = 0 ||
36364 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36367 # configure is writing to config.log, and then calls config.status.
36368 # config.status does its own redirection, appending to config.log.
36369 # Unfortunately, on DOS this fails, as config.log is still kept open
36370 # by configure, so config.status won't be able to write to it; its
36371 # output is simply discarded. So we exec the FD to /dev/null,
36372 # effectively closing config.log, so it can be properly (re)opened and
36373 # appended to by config.status. When coming back to configure, we
36374 # need to make the FD available again.
36375 if test "$no_create" != yes; then
36376 ac_cs_success=:
36377 ac_config_status_args=
36378 test "$silent" = yes &&
36379 ac_config_status_args="$ac_config_status_args --quiet"
36380 exec 5>/dev/null
36381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36382 exec 5>>config.log
36383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36384 # would make configure fail if this is the last instruction.
36385 $ac_cs_success || as_fn_exit 1
36387 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36389 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}