Daily bump.
[official-gcc.git] / gcc / configure
blobde20e5d26293baeb9babe3a7e3f6449bab79c511
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.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 BISON
809 FLEX
810 GENERATED_MANPAGES
811 BUILD_INFO
812 MAKEINFO
813 have_mktemp_command
814 make_compare_target
815 INSTALL_DATA
816 INSTALL_PROGRAM
817 INSTALL
818 ranlib_flags
819 RANLIB
821 LN_S
823 SET_MAKE
824 omp_device_property_deps
825 omp_device_properties
826 accel_dir_suffix
827 real_target_noncanonical
828 enable_as_accelerator
829 gnat_install_lib
830 REPORT_BUGS_TEXI
831 REPORT_BUGS_TO
832 PKGVERSION
833 CONFIGURE_SPECS
834 enable_gcov
835 enable_shared
836 enable_fixed_point
837 enable_decimal_float
838 with_float
839 with_cpu
840 enable_multiarch
841 enable_multilib
842 coverage_flags
843 valgrind_command
844 valgrind_path_defines
845 valgrind_path
846 TREECHECKING
847 nocommon_flag
848 noexception_flags
849 warn_cxxflags
850 warn_cflags
851 c_strict_warn
852 strict_warn
853 c_loose_warn
854 loose_warn
855 aliasing_flags
857 EGREP
858 GREP
859 CXXCPP
860 PICFLAG_FOR_TARGET
861 GDCFLAGS
863 GNATMAKE
864 GNATBIND
865 ac_ct_CXX
866 CXXFLAGS
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
875 GENINSRC
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
878 TARGET_SYSTEM_ROOT
879 SYSROOT_CFLAGS_FOR_TARGET
880 target_subdir
881 host_subdir
882 build_subdir
883 build_libsubdir
884 target_noncanonical
885 host_noncanonical
886 target_os
887 target_vendor
888 target_cpu
889 target
890 host_os
891 host_vendor
892 host_cpu
893 host
894 build_os
895 build_vendor
896 build_cpu
897 build
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files='option_includes
937 language_hooks'
938 ac_user_opts='
939 enable_option_checking
940 with_build_libsubdir
941 with_local_prefix
942 with_native_system_header_dir
943 with_build_sysroot
944 with_sysroot
945 with_gxx_include_dir
946 with_gxx_libcxx_include_dir
947 with_cpp_install_dir
948 enable_generated_files_in_srcdir
949 with_gnu_ld
950 with_ld
951 with_demangler_in_ld
952 with_dsymutil
953 with_gnu_as
954 with_as
955 enable_largefile
956 enable_build_format_warnings
957 enable_werror_always
958 enable_checking
959 enable_coverage
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
962 enable_multilib
963 enable_multiarch
964 with_stack_clash_protection_guard_size
965 enable___cxa_atexit
966 enable_decimal_float
967 enable_fixed_point
968 enable_threads
969 enable_tls
970 enable_vtable_verify
971 enable_analyzer
972 enable_objc_gc
973 with_dwarf2
974 enable_shared
975 enable_gcov
976 with_specs
977 with_pkgversion
978 with_bugurl
979 with_documentation_root_url
980 with_changes_root_url
981 enable_languages
982 with_multilib_list
983 with_multilib_generator
984 with_zstd
985 with_zstd_include
986 with_zstd_lib
987 enable_rpath
988 with_libiconv_prefix
989 with_libiconv_type
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
992 enable_secureplt
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
996 enable_cld
997 enable_frame_pointer
998 enable_win32_registry
999 enable_static
1000 with_pic
1001 enable_fast_install
1002 enable_libtool_lock
1003 enable_ld
1004 enable_gold
1005 with_plugin_ld
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1008 enable_comdat
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1013 with_glibc_version
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1016 enable_libssp
1017 enable_default_ssp
1018 with_long_double_128
1019 with_long_double_format
1020 with_gc
1021 with_system_zlib
1022 enable_maintainer_mode
1023 enable_link_mutex
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1026 enable_plugin
1027 enable_host_shared
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1032 enable_default_pie
1033 enable_cet
1034 enable_s390_excess_float_precision
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1045 CXXFLAGS
1047 CXXCPP
1049 GMPLIBS
1050 GMPINC
1051 ISLLIBS
1052 ISLINC'
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1110 ac_prev=
1111 continue
1114 case $ac_option in
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 *=) ac_optarg= ;;
1117 *) ac_optarg=yes ;;
1118 esac
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1124 ac_dashdash=yes ;;
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127 ac_prev=bindir ;;
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1147 ac_prev=datadir ;;
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1211 with_gas=yes ;;
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 ac_prev=htmldir ;;
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 | --ht=*)
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 ac_prev=infodir ;;
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1244 ac_prev=libdir ;;
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 ac_prev=mandir ;;
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1274 with_fp=no ;;
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1278 no_create=yes ;;
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 no_recursion=yes ;;
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 ac_prev=prefix ;;
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 ac_prev=pdfdir ;;
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1335 ac_prev=psdir ;;
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 psdir=$ac_optarg ;;
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1341 silent=yes ;;
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 ac_prev=sbindir ;;
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 | --sbi=* | --sb=*)
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1352 | --sha | --sh)
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 | --sha=* | --sh=*)
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1361 ac_prev=site ;;
1362 -site=* | --site=* | --sit=*)
1363 site=$ac_optarg ;;
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 ac_prev=srcdir ;;
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 verbose=yes ;;
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1388 -with-* | --with-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1442 *=*)
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448 esac
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 esac
1461 done
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1470 no) ;;
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 esac
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1484 case $ac_val in
1485 */ )
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1488 esac
1489 # Be sure to have absolute directory names.
1490 case $ac_val in
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493 esac
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495 done
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1545 /^X\(\/\/\)$/{
1546 s//\1/
1549 /^X\(\/\).*/{
1550 s//\1/
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1558 else
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1648 cat <<\_ACEOF
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1659 _ACEOF
1662 if test -n "$ac_init_help"; then
1664 cat <<\_ACEOF
1666 Optional Features:
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1699 to use
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1702 package
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1726 on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1740 glibc systems
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1784 machine
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1820 pathname)
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1835 SH and x86-64 only)
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1848 --with-gcc-major-version-only
1849 use only GCC major number in filesystem paths
1850 --with-pic try to use only PIC/non-PIC objects [default=use
1851 both]
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-plugin-ld=[ARG] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use 128-bit long double by default
1857 --with-long-double-format={ieee,ibm}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page,zone} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1862 the compiler
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv,gnu,both}
1865 specify the linker hash style
1866 --with-diagnostics-color={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-color option
1868 auto-if-env stands for -fdiagnostics-color=auto if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never,auto,auto-if-env,always}
1872 specify the default of -fdiagnostics-urls option
1873 auto-if-env stands for -fdiagnostics-urls=auto if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and -fdiagnostics-urls=never otherwise
1877 Some influential environment variables:
1878 CC C compiler command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1881 nonstandard directory <lib dir>
1882 LIBS libraries to pass to the linker, e.g. -l<library>
1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884 you have headers in a nonstandard directory <include dir>
1885 CXX C++ compiler command
1886 CXXFLAGS C++ compiler flags
1887 CXXCPP C++ preprocessor
1888 CPP C preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to find isl include files
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1898 _ACEOF
1899 ac_status=$?
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1907 continue
1908 ac_builddir=.
1910 case "$ac_dir" in
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1919 esac ;;
1920 esac
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1926 case $srcdir in
1927 .) # We are building in place.
1928 ac_srcdir=.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1935 *) # Relative name.
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1939 esac
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1945 echo &&
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1948 echo &&
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1950 else
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1952 fi || ac_status=$?
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1954 done
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1959 cat <<\_ACEOF
1960 configure
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1966 _ACEOF
1967 exit
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=1
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 ac_retval=1
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=1
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_cxx_check_header_mongrel ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115 else
2116 ac_header_compiler=no
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131 else
2132 ac_header_preproc=no
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158 esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=\$ac_header_compiler"
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_link"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2189 ac_status=$?
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2202 ac_retval=0
2203 else
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2231 #include <$2>
2232 _ACEOF
2233 if ac_fn_cxx_try_compile "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_cpp ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 ac_retval=1
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_c_try_cpp
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2288 # computed
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2301 test_array [0] = 0;
2302 return test_array [0];
2305 return 0;
2307 _ACEOF
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2309 ac_lo=0 ac_mid=0
2310 while :; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2315 main ()
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2322 return 0;
2324 _ACEOF
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2327 else
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2330 ac_lo= ac_hi=
2331 break
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 static int test_array [1 - 2 * !(($2) < 0)];
2345 test_array [0] = 0;
2346 return test_array [0];
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=-1 ac_mid=-1
2354 while :; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362 test_array [0] = 0;
2363 return test_array [0];
2366 return 0;
2368 _ACEOF
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2371 else
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2374 ac_lo= ac_hi=
2375 break
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 else
2382 ac_lo= ac_hi=
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2401 return 0;
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405 ac_hi=$ac_mid
2406 else
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 done
2411 case $ac_lo in #((
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413 '') ac_retval=1 ;;
2414 esac
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2421 #include <stdio.h>
2422 #include <stdlib.h>
2424 main ()
2427 FILE *f = fopen ("conftest.val", "w");
2428 if (! f)
2429 return 1;
2430 if (($2) < 0)
2432 long int i = longval ();
2433 if (i != ($2))
2434 return 1;
2435 fprintf (f, "%ld", i);
2437 else
2439 unsigned long int i = ulongval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2449 return 0;
2451 _ACEOF
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454 else
2455 ac_retval=1
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2459 rm -f conftest.val
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 eval "$3=no"
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2484 main ()
2486 if (sizeof ($2))
2487 return 0;
2489 return 0;
2491 _ACEOF
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2497 main ()
2499 if (sizeof (($2)))
2500 return 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 else
2508 eval "$3=yes"
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2524 # accordingly.
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 eval "$3=no"
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2543 main ()
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2546 test_array [0] = 0;
2547 return test_array [0];
2550 return 0;
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2559 main ()
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2563 test_array [0] = 0;
2564 return test_array [0];
2567 return 0;
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2572 else
2573 case $ac_type in #(
2574 int$2_t) :
2575 eval "$3=yes" ;; #(
2576 *) :
2577 eval "$3=\$ac_type" ;;
2578 esac
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2585 else
2586 break
2588 done
2590 eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2612 ac_status=$?
2613 if test -s conftest.err; then
2614 grep -v '^ *+' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest$ac_exeext
2625 }; then :
2626 ac_retval=0
2627 else
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 ac_retval=1
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2646 # accordingly.
2647 ac_fn_c_find_uintX_t ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 eval "$3=no"
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2664 main ()
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2667 test_array [0] = 0;
2668 return test_array [0];
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 case $ac_type in #(
2676 uint$2_t) :
2677 eval "$3=yes" ;; #(
2678 *) :
2679 eval "$3=\$ac_type" ;;
2680 esac
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 if eval test \"x\$"$3"\" = x"no"; then :
2685 else
2686 break
2688 done
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 #include <$2>
2711 _ACEOF
2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
2713 eval "$3=yes"
2714 else
2715 eval "$3=no"
2717 rm -f conftest.err conftest.i conftest.$ac_ext
2719 eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2754 #undef $2
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2771 main ()
2773 return $2 ();
2775 return 0;
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779 eval "$3=yes"
2780 else
2781 eval "$3=no"
2783 rm -f core conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 # accordingly.
2797 ac_fn_cxx_check_decl ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2811 main ()
2813 #ifndef $as_decl_name
2814 #ifdef __cplusplus
2815 (void) $as_decl_use;
2816 #else
2817 (void) $as_decl_name;
2818 #endif
2819 #endif
2822 return 0;
2824 _ACEOF
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2826 eval "$3=yes"
2827 else
2828 eval "$3=no"
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2842 ac_fn_c_try_link ()
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { { ac_try="$ac_link"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2854 ac_status=$?
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2867 }; then :
2868 ac_retval=0
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_retval=1
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2898 #include <$2>
2899 _ACEOF
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2901 eval "$3=yes"
2902 else
2903 eval "$3=no"
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2936 #ifdef __STDC__
2937 # include <limits.h>
2938 #else
2939 # include <assert.h>
2940 #endif
2942 #undef $2
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2947 #ifdef __cplusplus
2948 extern "C"
2949 #endif
2950 char $2 ();
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2955 choke me
2956 #endif
2959 main ()
2961 return $2 ();
2963 return 0;
2965 _ACEOF
2966 if ac_fn_c_try_link "$LINENO"; then :
2967 eval "$3=yes"
2968 else
2969 eval "$3=no"
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2974 eval ac_res=\$$3
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2987 $ $0 $@
2989 _ACEOF
2990 exec 5>>config.log
2992 cat <<_ASUNAME
2993 ## --------- ##
2994 ## Platform. ##
2995 ## --------- ##
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3014 _ASUNAME
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3022 done
3023 IFS=$as_save_IFS
3025 } >&5
3027 cat >&5 <<_ACEOF
3030 ## ----------- ##
3031 ## Core tests. ##
3032 ## ----------- ##
3034 _ACEOF
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3042 ac_configure_args=
3043 ac_configure_args0=
3044 ac_configure_args1=
3045 ac_must_keep_next=false
3046 for ac_pass in 1 2
3048 for ac_arg
3050 case $ac_arg in
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3054 continue ;;
3055 *\'*)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3057 esac
3058 case $ac_pass in
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3064 else
3065 case $ac_arg in
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3072 esac
3074 -* ) ac_must_keep_next=true ;;
3075 esac
3077 as_fn_append ac_configure_args " '$ac_arg'"
3079 esac
3080 done
3081 done
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3093 echo
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3098 echo
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3103 case $ac_val in #(
3104 *${as_nl}*)
3105 case $ac_var in #(
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3108 esac
3109 case $ac_var in #(
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3113 esac ;;
3114 esac
3115 done
3116 (set) 2>&1 |
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3119 sed -n \
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3122 ;; #(
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3126 esac |
3127 sort
3129 echo
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3134 echo
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3149 echo
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3153 case $ac_val in
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 esac
3156 $as_echo "$ac_var='\''$ac_val'\''"
3157 done | sort
3158 echo
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3163 ## confdefs.h. ##
3164 ## ----------- ##"
3165 echo
3166 cat confdefs.h
3167 echo
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179 done
3180 ac_signal=0
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3191 _ACEOF
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195 _ACEOF
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3199 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3203 _ACEOF
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207 _ACEOF
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3211 _ACEOF
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3216 ac_site_file1=NONE
3217 ac_site_file2=NONE
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3224 esac
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3228 else
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3239 . "$ac_site_file" \
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 done
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3253 case $cache_file in
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3256 esac
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3261 >$cache_file
3264 # Check that the precious variables saved in the cache have kept the same
3265 # value.
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3273 set,)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3277 ,set)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,);;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x $ac_old_val`
3286 ac_new_val_w=`echo x $ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290 ac_cache_corrupted=:
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3300 fi;;
3301 esac
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3304 case $ac_new_val in
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3307 esac
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3311 esac
3313 done
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER`
3341 # Determine the host, build, and target systems
3342 ac_aux_dir=
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3345 ac_aux_dir=$ac_dir
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3347 break
3348 elif test -f "$ac_dir/install.sh"; then
3349 ac_aux_dir=$ac_dir
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3351 break
3352 elif test -f "$ac_dir/shtool"; then
3353 ac_aux_dir=$ac_dir
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3355 break
3357 done
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3392 *-*-*) ;;
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3394 esac
3395 build=$ac_cv_build
3396 ac_save_IFS=$IFS; IFS='-'
3397 set x $ac_cv_build
3398 shift
3399 build_cpu=$1
3400 build_vendor=$2
3401 shift; shift
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3404 build_os=$*
3405 IFS=$ac_save_IFS
3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3416 else
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3424 case $ac_cv_host in
3425 *-*-*) ;;
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3427 esac
3428 host=$ac_cv_host
3429 ac_save_IFS=$IFS; IFS='-'
3430 set x $ac_cv_host
3431 shift
3432 host_cpu=$1
3433 host_vendor=$2
3434 shift; shift
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3437 host_os=$*
3438 IFS=$ac_save_IFS
3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3449 else
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3458 *-*-*) ;;
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3460 esac
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3463 set x $ac_cv_target
3464 shift
3465 target_cpu=$1
3466 target_vendor=$2
3467 shift; shift
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3470 target_os=$*
3471 IFS=$ac_save_IFS
3472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3479 NONENONEs,x,x, &&
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3486 esac
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3491 esac
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3500 esac
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3507 accel_dir_suffix=
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3516 # finishes. So:
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3526 else
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3534 else
3535 host_subdir=.
3537 # No prefix.
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s,x,x', remove it if useless.
3549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3557 # is true:
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3570 esac
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3574 as_fn_error $? "
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again." "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3583 # is true:
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory"
3594 gcc_exec_prefix_setting="ok"
3596 esac
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok"; then
3600 as_fn_error $? "
3601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3606 # -----------
3607 # Directories
3608 # -----------
3610 # Specify the local prefix
3611 local_prefix=
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3617 no) ;;
3618 *) local_prefix=$with_local_prefix ;;
3619 esac
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3636 esac
3637 configured_native_system_header_dir="${withval}"
3639 else
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3650 else
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3658 else
3659 test_prefix=$prefix
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3663 else
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3672 /) ;;
3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3674 esac
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3678 esac
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3691 esac
3693 else
3695 TARGET_SYSTEM_ROOT=
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3705 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3715 no) ;;
3716 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3717 esac
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x${gcc_gxx_include_dir} = x; then
3728 if test x${enable_version_specific_runtime_libs} = xyes; then
3729 gcc_gxx_include_dir='${libsubdir}/include/c++'
3730 else
3731 libstdcxx_incdir='include/c++/$(version)'
3732 if test x$host != x$target; then
3733 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3753 no) ;;
3754 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3755 esac
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot=0
3764 if test x${gcc_gxx_libcxx_include_dir} != x; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3768 else
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x${gcc_gxx_libcxx_include_dir} = x; then
3774 if test x${enable_version_specific_runtime_libs} = xyes; then
3775 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3776 else
3777 libcxx_incdir='libc++_include/c++/$(version)/v1'
3778 if test x$host != x$target; then
3779 libcxx_incdir="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3795 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x$withval != xno; then
3797 cpp_install_dir=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3806 # just that.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3813 else
3814 generated_files_in_srcdir=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3822 GENINSRC=''
3823 else
3824 GENINSRC='#'
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3832 # With GNU ld
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3837 else
3838 gnu_ld_flag=no
3842 case $target in
3843 *darwin*)
3844 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3848 ld64_flag=no
3849 dsymutil_flag=no
3851 esac
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3860 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3864 gnu_ld_flag=yes
3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3866 ld64_flag=yes
3869 cat >>confdefs.h <<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3871 _ACEOF
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3878 if test x"$gnu_ld_flag" = x"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3895 else
3896 demangler_in_ld=yes
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3908 dsymutil_vers=
3909 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3912 else
3913 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3914 dsymutil_flag=yes
3918 cat >>confdefs.h <<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3920 _ACEOF
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3938 # With GNU as
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3943 else
3944 gas_flag=no
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3954 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3958 gas_flag=yes
3961 cat >>confdefs.h <<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3963 _ACEOF
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test x"$gas_flag" = x"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3982 # ---------------
3983 # Find C compiler
3984 # ---------------
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4025 IFS=$as_save_IFS
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4041 ac_ct_CC=$CC
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4065 IFS=$as_save_IFS
4069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x; then
4079 CC=""
4080 else
4081 case $cross_compiling:$ac_tool_warned in
4082 yes:)
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4086 esac
4087 CC=$ac_ct_CC
4089 else
4090 CC="$ac_cv_prog_CC"
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}cc; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4118 IFS=$as_save_IFS
4122 CC=$ac_cv_prog_CC
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 else
4145 ac_prog_rejected=no
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected=yes
4155 continue
4157 ac_cv_prog_CC="cc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4163 IFS=$as_save_IFS
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy $ac_cv_prog_CC
4168 shift
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4173 shift
4174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4232 done
4234 if test -z "$CC"; then
4235 ac_ct_CC=$CC
4236 for ac_prog in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4276 done
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $? "no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 for ac_option in --version -v -V -qversion; do
4304 { { ac_try="$ac_compiler $ac_option >&5"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4312 ac_status=$?
4313 if test -s conftest.err; then
4314 sed '10a\
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4322 done
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4328 main ()
4332 return 0;
4334 _ACEOF
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4339 # of exeext.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4347 ac_rmfiles=
4348 for ac_file in $ac_files
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353 esac
4354 done
4355 rm -f $ac_rmfiles
4357 if { { ac_try="$ac_link_default"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4372 # Autoconf.
4373 for ac_file in $ac_files ''
4375 test -f "$ac_file" || continue
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4379 [ab].out )
4380 # We found the default executable, but exeext='' is most
4381 # certainly right.
4382 break;;
4383 *.* )
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385 then :; else
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4392 # actually working.
4393 break;;
4395 break;;
4396 esac
4397 done
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4400 else
4401 ac_file=''
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4424 ac_clean_files=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try="$ac_link"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4435 ac_status=$?
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4441 # `rm'.
4442 for ac_file in conftest.exe conftest conftest.*; do
4443 test -f "$ac_file" || continue
4444 case $ac_file in
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4447 break;;
4448 * ) break;;
4449 esac
4450 done
4451 else
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.$ac_ext
4462 EXEEXT=$ac_cv_exeext
4463 ac_exeext=$EXEEXT
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <stdio.h>
4468 main ()
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4474 return 0;
4476 _ACEOF
4477 ac_clean_files="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try="$ac_link"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4505 cross_compiling=no
4506 else
4507 if test "$cross_compiling" = maybe; then
4508 cross_compiling=yes
4509 else
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522 ac_clean_files=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4532 main ()
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try="$ac_compile"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556 break;;
4557 esac
4558 done
4559 else
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files: cannot compile
4566 See \`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4573 ac_objext=$OBJEXT
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 main ()
4585 #ifndef __GNUC__
4586 choke me
4587 #endif
4590 return 0;
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_compiler_gnu=yes
4595 else
4596 ac_compiler_gnu=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4605 GCC=yes
4606 else
4607 GCC=
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4618 ac_cv_prog_cc_g=no
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 main ()
4628 return 0;
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633 else
4634 CFLAGS=""
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4639 main ()
4643 return 0;
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4648 else
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4650 CFLAGS="-g"
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4655 main ()
4659 return 0;
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_g=yes
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4678 CFLAGS="-g -O2"
4679 else
4680 CFLAGS="-g"
4682 else
4683 if test "$GCC" = yes; then
4684 CFLAGS="-O2"
4685 else
4686 CFLAGS=
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_cv_prog_cc_c89=no
4695 ac_save_CC=$CC
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <stdarg.h>
4699 #include <stdio.h>
4700 struct stat;
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4705 char **p;
4706 int i;
4708 return p[i];
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731 #define FOO(x) 'x'
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738 int argc;
4739 char **argv;
4741 main ()
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4745 return 0;
4747 _ACEOF
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 done
4758 rm -f conftest.$ac_ext
4759 CC=$ac_save_CC
4762 # AC_CACHE_VAL
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4774 esac
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 ac_ext=cpp
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4792 CXX=$CCC
4793 else
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CXX=$ac_cv_prog_CXX
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4835 done
4837 if test -z "$CXX"; then
4838 ac_ct_CXX=$CXX
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4879 done
4881 if test "x$ac_ct_CXX" = x; then
4882 CXX="g++"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CXX=$ac_ct_CXX
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898 set X $ac_compile
4899 ac_compiler=$2
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909 ac_status=$?
4910 if test -s conftest.err; then
4911 sed '10a\
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919 done
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4930 main ()
4932 #ifndef __GNUC__
4933 choke me
4934 #endif
4937 return 0;
4939 _ACEOF
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 ac_compiler_gnu=yes
4942 else
4943 ac_compiler_gnu=no
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4952 GXX=yes
4953 else
4954 GXX=
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4965 ac_cv_prog_cxx_g=no
4966 CXXFLAGS="-g"
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 main ()
4975 return 0;
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4980 else
4981 CXXFLAGS=""
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 else
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997 CXXFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 main ()
5006 return 0;
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-g -O2"
5026 else
5027 CXXFLAGS="-g"
5029 else
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-O2"
5032 else
5033 CXXFLAGS=
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 GNATBIND=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x; then
5123 GNATBIND="no"
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 GNATBIND=$ac_ct_GNATBIND
5133 else
5134 GNATBIND="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 GNATMAKE=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x; then
5215 GNATMAKE="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 GNATMAKE=$ac_ct_GNATMAKE
5225 else
5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat >conftest.adb <<EOF
5235 procedure conftest is begin null; end conftest;
5237 acx_cv_cc_gcc_supports_ada=no
5238 # There is a bug in old released versions of GCC which causes the
5239 # driver to exit successfully when the appropriate language module
5240 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241 # Therefore we must check for the error message as well as an
5242 # unsuccessful exit.
5243 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244 # given a .adb file, but produce no object file. So we must check
5245 # if an object file was really produced to guard against this.
5246 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5247 if test x"$errors" = x && test -f conftest.$ac_objext; then
5248 acx_cv_cc_gcc_supports_ada=yes
5250 rm -f conftest.*
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5255 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5256 have_gnat=yes
5257 else
5258 have_gnat=no
5263 if test -n "$ac_tool_prefix"; then
5264 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5265 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_GDC+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$GDC"; then
5272 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5285 done
5286 done
5287 IFS=$as_save_IFS
5291 GDC=$ac_cv_prog_GDC
5292 if test -n "$GDC"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5294 $as_echo "$GDC" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5302 if test -z "$ac_cv_prog_GDC"; then
5303 ac_ct_GDC=$GDC
5304 # Extract the first word of "gdc", so it can be a program name with args.
5305 set dummy gdc; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$ac_ct_GDC"; then
5312 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_GDC="gdc"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5325 done
5326 done
5327 IFS=$as_save_IFS
5331 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5332 if test -n "$ac_ct_GDC"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5334 $as_echo "$ac_ct_GDC" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5340 if test "x$ac_ct_GDC" = x; then
5341 GDC="no"
5342 else
5343 case $cross_compiling:$ac_tool_warned in
5344 yes:)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349 GDC=$ac_ct_GDC
5351 else
5352 GDC="$ac_cv_prog_GDC"
5355 if test "x$GDC" != xno; then
5356 have_gdc=yes
5357 else
5358 have_gdc=no
5362 # Do configure tests with the C++ compiler, since that's what we build with.
5363 ac_ext=cpp
5364 ac_cpp='$CXXCPP $CPPFLAGS'
5365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5370 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5371 # optimizations to be activated explicitly by the toplevel.
5372 case "$CC" in
5373 */prev-gcc/xgcc*) ;;
5374 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5375 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5376 esac
5381 # Determine PICFLAG for target gnatlib.
5386 case "${target}" in
5387 # PIC is the default on some targets or must not be used.
5388 *-*-darwin*)
5389 # For darwin, common symbols are not allowed in MH_DYLIB files
5390 case "${CFLAGS}" in
5391 # If we are using a compiler supporting mdynamic-no-pic
5392 # and the option has been tested as safe to add, then cancel
5393 # it here, since the code generated is incompatible with shared
5394 # libs.
5395 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5396 *) PICFLAG_FOR_TARGET=-fno-common ;;
5397 esac
5399 alpha*-dec-osf5*)
5400 # PIC is the default.
5402 hppa*64*-*-hpux*)
5403 # PIC is the default for 64-bit PA HP-UX.
5405 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5407 i[34567]86-*-mingw* | x86_64-*-mingw*)
5409 i[34567]86-*-interix[3-9]*)
5410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5411 # Instead, we relocate shared libraries at runtime.
5413 i[34567]86-*-nto-qnx*)
5414 # QNX uses GNU C++, but need to define -shared option too, otherwise
5415 # it will coredump.
5416 PICFLAG_FOR_TARGET='-fPIC -shared'
5418 i[34567]86-pc-msdosdjgpp*)
5419 # DJGPP does not support shared libraries at all.
5421 ia64*-*-hpux*)
5422 # On IA64 HP-UX, PIC is the default but the pic flag
5423 # sets the default TLS model and affects inlining.
5424 PICFLAG_FOR_TARGET=-fPIC
5426 mips-sgi-irix6*)
5427 # PIC is the default.
5429 rs6000-ibm-aix* | powerpc-ibm-aix*)
5430 # All AIX code is PIC.
5433 # Some targets support both -fPIC and -fpic, but prefer the latter.
5434 # FIXME: Why?
5435 i[34567]86-*-* | x86_64-*-*)
5436 PICFLAG_FOR_TARGET=-fpic
5438 # FIXME: Override -fPIC default in libgcc only?
5439 sh-*-linux* | sh[2346lbe]*-*-linux*)
5440 PICFLAG_FOR_TARGET=-fpic
5442 # FIXME: Simplify to sh*-*-netbsd*?
5443 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5444 sh64-*-netbsd* | sh64l*-*-netbsd*)
5445 PICFLAG_FOR_TARGET=-fpic
5447 # Default to -fPIC unless specified otherwise.
5449 PICFLAG_FOR_TARGET=-fPIC
5451 esac
5453 # If the user explicitly uses -fpic/-fPIC, keep that.
5454 case "${CFLAGS_FOR_TARGET}" in
5455 *-fpic*)
5456 PICFLAG_FOR_TARGET=-fpic
5458 *-fPIC*)
5459 PICFLAG_FOR_TARGET=-fPIC
5461 esac
5465 # -------------------------
5466 # Check C compiler features
5467 # -------------------------
5470 ac_ext=cpp
5471 ac_cpp='$CXXCPP $CPPFLAGS'
5472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5476 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5477 if test -z "$CXXCPP"; then
5478 if ${ac_cv_prog_CXXCPP+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 # Double quotes because CXXCPP needs to be expanded
5482 for CXXCPP in "$CXX -E" "/lib/cpp"
5484 ac_preproc_ok=false
5485 for ac_cxx_preproc_warn_flag in '' yes
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #ifdef __STDC__
5496 # include <limits.h>
5497 #else
5498 # include <assert.h>
5499 #endif
5500 Syntax error
5501 _ACEOF
5502 if ac_fn_cxx_try_cpp "$LINENO"; then :
5504 else
5505 # Broken: fails on valid input.
5506 continue
5508 rm -f conftest.err conftest.i conftest.$ac_ext
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <ac_nonexistent.h>
5515 _ACEOF
5516 if ac_fn_cxx_try_cpp "$LINENO"; then :
5517 # Broken: success on invalid input.
5518 continue
5519 else
5520 # Passes both tests.
5521 ac_preproc_ok=:
5522 break
5524 rm -f conftest.err conftest.i conftest.$ac_ext
5526 done
5527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5528 rm -f conftest.i conftest.err conftest.$ac_ext
5529 if $ac_preproc_ok; then :
5530 break
5533 done
5534 ac_cv_prog_CXXCPP=$CXXCPP
5537 CXXCPP=$ac_cv_prog_CXXCPP
5538 else
5539 ac_cv_prog_CXXCPP=$CXXCPP
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5542 $as_echo "$CXXCPP" >&6; }
5543 ac_preproc_ok=false
5544 for ac_cxx_preproc_warn_flag in '' yes
5546 # Use a header file that comes with gcc, so configuring glibc
5547 # with a fresh cross-compiler works.
5548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5549 # <limits.h> exists even on freestanding compilers.
5550 # On the NeXT, cc -E runs the code through the compiler's parser,
5551 # not just through cpp. "Syntax error" is here to catch this case.
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #ifdef __STDC__
5555 # include <limits.h>
5556 #else
5557 # include <assert.h>
5558 #endif
5559 Syntax error
5560 _ACEOF
5561 if ac_fn_cxx_try_cpp "$LINENO"; then :
5563 else
5564 # Broken: fails on valid input.
5565 continue
5567 rm -f conftest.err conftest.i conftest.$ac_ext
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <ac_nonexistent.h>
5574 _ACEOF
5575 if ac_fn_cxx_try_cpp "$LINENO"; then :
5576 # Broken: success on invalid input.
5577 continue
5578 else
5579 # Passes both tests.
5580 ac_preproc_ok=:
5581 break
5583 rm -f conftest.err conftest.i conftest.$ac_ext
5585 done
5586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5587 rm -f conftest.i conftest.err conftest.$ac_ext
5588 if $ac_preproc_ok; then :
5590 else
5591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5593 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5594 See \`config.log' for more details" "$LINENO" 5; }
5597 ac_ext=cpp
5598 ac_cpp='$CXXCPP $CPPFLAGS'
5599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5606 if ${ac_cv_path_GREP+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -z "$GREP"; then
5610 ac_path_GREP_found=false
5611 # Loop through the user's path and test for each of PROGNAME-LIST
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_prog in grep ggrep; do
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5620 as_fn_executable_p "$ac_path_GREP" || continue
5621 # Check for GNU ac_path_GREP and select it if it is found.
5622 # Check for GNU $ac_path_GREP
5623 case `"$ac_path_GREP" --version 2>&1` in
5624 *GNU*)
5625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5627 ac_count=0
5628 $as_echo_n 0123456789 >"conftest.in"
5629 while :
5631 cat "conftest.in" "conftest.in" >"conftest.tmp"
5632 mv "conftest.tmp" "conftest.in"
5633 cp "conftest.in" "conftest.nl"
5634 $as_echo 'GREP' >> "conftest.nl"
5635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5637 as_fn_arith $ac_count + 1 && ac_count=$as_val
5638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5639 # Best one so far, save it but keep looking for a better one
5640 ac_cv_path_GREP="$ac_path_GREP"
5641 ac_path_GREP_max=$ac_count
5643 # 10*(2^10) chars as input seems more than enough
5644 test $ac_count -gt 10 && break
5645 done
5646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5647 esac
5649 $ac_path_GREP_found && break 3
5650 done
5651 done
5652 done
5653 IFS=$as_save_IFS
5654 if test -z "$ac_cv_path_GREP"; then
5655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5657 else
5658 ac_cv_path_GREP=$GREP
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5663 $as_echo "$ac_cv_path_GREP" >&6; }
5664 GREP="$ac_cv_path_GREP"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5668 $as_echo_n "checking for egrep... " >&6; }
5669 if ${ac_cv_path_EGREP+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5673 then ac_cv_path_EGREP="$GREP -E"
5674 else
5675 if test -z "$EGREP"; then
5676 ac_path_EGREP_found=false
5677 # Loop through the user's path and test for each of PROGNAME-LIST
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_prog in egrep; do
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5686 as_fn_executable_p "$ac_path_EGREP" || continue
5687 # Check for GNU ac_path_EGREP and select it if it is found.
5688 # Check for GNU $ac_path_EGREP
5689 case `"$ac_path_EGREP" --version 2>&1` in
5690 *GNU*)
5691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5693 ac_count=0
5694 $as_echo_n 0123456789 >"conftest.in"
5695 while :
5697 cat "conftest.in" "conftest.in" >"conftest.tmp"
5698 mv "conftest.tmp" "conftest.in"
5699 cp "conftest.in" "conftest.nl"
5700 $as_echo 'EGREP' >> "conftest.nl"
5701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5703 as_fn_arith $ac_count + 1 && ac_count=$as_val
5704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5705 # Best one so far, save it but keep looking for a better one
5706 ac_cv_path_EGREP="$ac_path_EGREP"
5707 ac_path_EGREP_max=$ac_count
5709 # 10*(2^10) chars as input seems more than enough
5710 test $ac_count -gt 10 && break
5711 done
5712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5713 esac
5715 $ac_path_EGREP_found && break 3
5716 done
5717 done
5718 done
5719 IFS=$as_save_IFS
5720 if test -z "$ac_cv_path_EGREP"; then
5721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5723 else
5724 ac_cv_path_EGREP=$EGREP
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5730 $as_echo "$ac_cv_path_EGREP" >&6; }
5731 EGREP="$ac_cv_path_EGREP"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5735 $as_echo_n "checking for ANSI C header files... " >&6; }
5736 if ${ac_cv_header_stdc+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <stdlib.h>
5742 #include <stdarg.h>
5743 #include <string.h>
5744 #include <float.h>
5747 main ()
5751 return 0;
5753 _ACEOF
5754 if ac_fn_cxx_try_compile "$LINENO"; then :
5755 ac_cv_header_stdc=yes
5756 else
5757 ac_cv_header_stdc=no
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 if test $ac_cv_header_stdc = yes; then
5762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <string.h>
5767 _ACEOF
5768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769 $EGREP "memchr" >/dev/null 2>&1; then :
5771 else
5772 ac_cv_header_stdc=no
5774 rm -f conftest*
5778 if test $ac_cv_header_stdc = yes; then
5779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #include <stdlib.h>
5784 _ACEOF
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786 $EGREP "free" >/dev/null 2>&1; then :
5788 else
5789 ac_cv_header_stdc=no
5791 rm -f conftest*
5795 if test $ac_cv_header_stdc = yes; then
5796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5797 if test "$cross_compiling" = yes; then :
5799 else
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <ctype.h>
5803 #include <stdlib.h>
5804 #if ((' ' & 0x0FF) == 0x020)
5805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5807 #else
5808 # define ISLOWER(c) \
5809 (('a' <= (c) && (c) <= 'i') \
5810 || ('j' <= (c) && (c) <= 'r') \
5811 || ('s' <= (c) && (c) <= 'z'))
5812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5813 #endif
5815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5817 main ()
5819 int i;
5820 for (i = 0; i < 256; i++)
5821 if (XOR (islower (i), ISLOWER (i))
5822 || toupper (i) != TOUPPER (i))
5823 return 2;
5824 return 0;
5826 _ACEOF
5827 if ac_fn_cxx_try_run "$LINENO"; then :
5829 else
5830 ac_cv_header_stdc=no
5832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5833 conftest.$ac_objext conftest.beam conftest.$ac_ext
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5839 $as_echo "$ac_cv_header_stdc" >&6; }
5840 if test $ac_cv_header_stdc = yes; then
5842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5848 inttypes.h stdint.h unistd.h
5849 do :
5850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5854 cat >>confdefs.h <<_ACEOF
5855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856 _ACEOF
5860 done
5864 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5865 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5866 MINIX=yes
5867 else
5868 MINIX=
5872 if test "$MINIX" = yes; then
5874 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5877 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5880 $as_echo "#define _MINIX 1" >>confdefs.h
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5886 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5887 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5893 # define __EXTENSIONS__ 1
5894 $ac_includes_default
5896 main ()
5900 return 0;
5902 _ACEOF
5903 if ac_fn_cxx_try_compile "$LINENO"; then :
5904 ac_cv_safe_to_define___extensions__=yes
5905 else
5906 ac_cv_safe_to_define___extensions__=no
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5911 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5912 test $ac_cv_safe_to_define___extensions__ = yes &&
5913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5931 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5932 # On Suns, sometimes $CPP names a directory.
5933 if test -n "$CPP" && test -d "$CPP"; then
5934 CPP=
5936 if test -z "$CPP"; then
5937 if ${ac_cv_prog_CPP+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 # Double quotes because CPP needs to be expanded
5941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5943 ac_preproc_ok=false
5944 for ac_c_preproc_warn_flag in '' yes
5946 # Use a header file that comes with gcc, so configuring glibc
5947 # with a fresh cross-compiler works.
5948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949 # <limits.h> exists even on freestanding compilers.
5950 # On the NeXT, cc -E runs the code through the compiler's parser,
5951 # not just through cpp. "Syntax error" is here to catch this case.
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #ifdef __STDC__
5955 # include <limits.h>
5956 #else
5957 # include <assert.h>
5958 #endif
5959 Syntax error
5960 _ACEOF
5961 if ac_fn_c_try_cpp "$LINENO"; then :
5963 else
5964 # Broken: fails on valid input.
5965 continue
5967 rm -f conftest.err conftest.i conftest.$ac_ext
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5974 _ACEOF
5975 if ac_fn_c_try_cpp "$LINENO"; then :
5976 # Broken: success on invalid input.
5977 continue
5978 else
5979 # Passes both tests.
5980 ac_preproc_ok=:
5981 break
5983 rm -f conftest.err conftest.i conftest.$ac_ext
5985 done
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.i conftest.err conftest.$ac_ext
5988 if $ac_preproc_ok; then :
5989 break
5992 done
5993 ac_cv_prog_CPP=$CPP
5996 CPP=$ac_cv_prog_CPP
5997 else
5998 ac_cv_prog_CPP=$CPP
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6001 $as_echo "$CPP" >&6; }
6002 ac_preproc_ok=false
6003 for ac_c_preproc_warn_flag in '' yes
6005 # Use a header file that comes with gcc, so configuring glibc
6006 # with a fresh cross-compiler works.
6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008 # <limits.h> exists even on freestanding compilers.
6009 # On the NeXT, cc -E runs the code through the compiler's parser,
6010 # not just through cpp. "Syntax error" is here to catch this case.
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018 Syntax error
6019 _ACEOF
6020 if ac_fn_c_try_cpp "$LINENO"; then :
6022 else
6023 # Broken: fails on valid input.
6024 continue
6026 rm -f conftest.err conftest.i conftest.$ac_ext
6028 # OK, works on sane cases. Now check whether nonexistent headers
6029 # can be detected and how.
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <ac_nonexistent.h>
6033 _ACEOF
6034 if ac_fn_c_try_cpp "$LINENO"; then :
6035 # Broken: success on invalid input.
6036 continue
6037 else
6038 # Passes both tests.
6039 ac_preproc_ok=:
6040 break
6042 rm -f conftest.err conftest.i conftest.$ac_ext
6044 done
6045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6046 rm -f conftest.i conftest.err conftest.$ac_ext
6047 if $ac_preproc_ok; then :
6049 else
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details" "$LINENO" 5; }
6056 ac_ext=cpp
6057 ac_cpp='$CXXCPP $CPPFLAGS'
6058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6063 $as_echo_n "checking for inline... " >&6; }
6064 if ${ac_cv_c_inline+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 ac_cv_c_inline=no
6068 for ac_kw in inline __inline__ __inline; do
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #ifndef __cplusplus
6072 typedef int foo_t;
6073 static $ac_kw foo_t static_foo () {return 0; }
6074 $ac_kw foo_t foo () {return 0; }
6075 #endif
6077 _ACEOF
6078 if ac_fn_cxx_try_compile "$LINENO"; then :
6079 ac_cv_c_inline=$ac_kw
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 test "$ac_cv_c_inline" != no && break
6083 done
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6087 $as_echo "$ac_cv_c_inline" >&6; }
6089 case $ac_cv_c_inline in
6090 inline | yes) ;;
6092 case $ac_cv_c_inline in
6093 no) ac_val=;;
6094 *) ac_val=$ac_cv_c_inline;;
6095 esac
6096 cat >>confdefs.h <<_ACEOF
6097 #ifndef __cplusplus
6098 #define inline $ac_val
6099 #endif
6100 _ACEOF
6102 esac
6105 # Check whether --enable-largefile was given.
6106 if test "${enable_largefile+set}" = set; then :
6107 enableval=$enable_largefile;
6110 if test "$enable_largefile" != no; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6113 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6114 if ${ac_cv_sys_largefile_CC+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 ac_cv_sys_largefile_CC=no
6118 if test "$GCC" != yes; then
6119 ac_save_CC=$CC
6120 while :; do
6121 # IRIX 6.2 and later do not support large files by default,
6122 # so use the C compiler's -n32 option if that helps.
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 /* Check that off_t can represent 2**63 - 1 correctly.
6127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6128 since some C++ compilers masquerading as C compilers
6129 incorrectly reject 9223372036854775807. */
6130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6132 && LARGE_OFF_T % 2147483647 == 1)
6133 ? 1 : -1];
6135 main ()
6139 return 0;
6141 _ACEOF
6142 if ac_fn_cxx_try_compile "$LINENO"; then :
6143 break
6145 rm -f core conftest.err conftest.$ac_objext
6146 CC="$CC -n32"
6147 if ac_fn_cxx_try_compile "$LINENO"; then :
6148 ac_cv_sys_largefile_CC=' -n32'; break
6150 rm -f core conftest.err conftest.$ac_objext
6151 break
6152 done
6153 CC=$ac_save_CC
6154 rm -f conftest.$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6158 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6159 if test "$ac_cv_sys_largefile_CC" != no; then
6160 CC=$CC$ac_cv_sys_largefile_CC
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6164 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6165 if ${ac_cv_sys_file_offset_bits+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 while :; do
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <sys/types.h>
6172 /* Check that off_t can represent 2**63 - 1 correctly.
6173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6174 since some C++ compilers masquerading as C compilers
6175 incorrectly reject 9223372036854775807. */
6176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6178 && LARGE_OFF_T % 2147483647 == 1)
6179 ? 1 : -1];
6181 main ()
6185 return 0;
6187 _ACEOF
6188 if ac_fn_cxx_try_compile "$LINENO"; then :
6189 ac_cv_sys_file_offset_bits=no; break
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #define _FILE_OFFSET_BITS 64
6195 #include <sys/types.h>
6196 /* Check that off_t can represent 2**63 - 1 correctly.
6197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6198 since some C++ compilers masquerading as C compilers
6199 incorrectly reject 9223372036854775807. */
6200 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6202 && LARGE_OFF_T % 2147483647 == 1)
6203 ? 1 : -1];
6205 main ()
6209 return 0;
6211 _ACEOF
6212 if ac_fn_cxx_try_compile "$LINENO"; then :
6213 ac_cv_sys_file_offset_bits=64; break
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 ac_cv_sys_file_offset_bits=unknown
6217 break
6218 done
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6221 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6222 case $ac_cv_sys_file_offset_bits in #(
6223 no | unknown) ;;
6225 cat >>confdefs.h <<_ACEOF
6226 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6227 _ACEOF
6229 esac
6230 rm -rf conftest*
6231 if test $ac_cv_sys_file_offset_bits = unknown; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6233 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6234 if ${ac_cv_sys_large_files+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 while :; do
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <sys/types.h>
6241 /* Check that off_t can represent 2**63 - 1 correctly.
6242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6243 since some C++ compilers masquerading as C compilers
6244 incorrectly reject 9223372036854775807. */
6245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6247 && LARGE_OFF_T % 2147483647 == 1)
6248 ? 1 : -1];
6250 main ()
6254 return 0;
6256 _ACEOF
6257 if ac_fn_cxx_try_compile "$LINENO"; then :
6258 ac_cv_sys_large_files=no; break
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #define _LARGE_FILES 1
6264 #include <sys/types.h>
6265 /* Check that off_t can represent 2**63 - 1 correctly.
6266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6267 since some C++ compilers masquerading as C compilers
6268 incorrectly reject 9223372036854775807. */
6269 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6271 && LARGE_OFF_T % 2147483647 == 1)
6272 ? 1 : -1];
6274 main ()
6278 return 0;
6280 _ACEOF
6281 if ac_fn_cxx_try_compile "$LINENO"; then :
6282 ac_cv_sys_large_files=1; break
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 ac_cv_sys_large_files=unknown
6286 break
6287 done
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6290 $as_echo "$ac_cv_sys_large_files" >&6; }
6291 case $ac_cv_sys_large_files in #(
6292 no | unknown) ;;
6294 cat >>confdefs.h <<_ACEOF
6295 #define _LARGE_FILES $ac_cv_sys_large_files
6296 _ACEOF
6298 esac
6299 rm -rf conftest*
6306 # sizeof(char) is 1 by definition.
6307 # The cast to long int works around a bug in the HP C Compiler
6308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6310 # This bug is HP SR number 8606223364.
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6312 $as_echo_n "checking size of void *... " >&6; }
6313 if ${ac_cv_sizeof_void_p+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6318 else
6319 if test "$ac_cv_type_void_p" = yes; then
6320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6322 as_fn_error 77 "cannot compute sizeof (void *)
6323 See \`config.log' for more details" "$LINENO" 5; }
6324 else
6325 ac_cv_sizeof_void_p=0
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6331 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6335 cat >>confdefs.h <<_ACEOF
6336 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6337 _ACEOF
6340 # The cast to long int works around a bug in the HP C Compiler
6341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343 # This bug is HP SR number 8606223364.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6345 $as_echo_n "checking size of short... " >&6; }
6346 if ${ac_cv_sizeof_short+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6351 else
6352 if test "$ac_cv_type_short" = yes; then
6353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6355 as_fn_error 77 "cannot compute sizeof (short)
6356 See \`config.log' for more details" "$LINENO" 5; }
6357 else
6358 ac_cv_sizeof_short=0
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6364 $as_echo "$ac_cv_sizeof_short" >&6; }
6368 cat >>confdefs.h <<_ACEOF
6369 #define SIZEOF_SHORT $ac_cv_sizeof_short
6370 _ACEOF
6373 # The cast to long int works around a bug in the HP C Compiler
6374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6376 # This bug is HP SR number 8606223364.
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6378 $as_echo_n "checking size of int... " >&6; }
6379 if ${ac_cv_sizeof_int+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6384 else
6385 if test "$ac_cv_type_int" = yes; then
6386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6388 as_fn_error 77 "cannot compute sizeof (int)
6389 See \`config.log' for more details" "$LINENO" 5; }
6390 else
6391 ac_cv_sizeof_int=0
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6397 $as_echo "$ac_cv_sizeof_int" >&6; }
6401 cat >>confdefs.h <<_ACEOF
6402 #define SIZEOF_INT $ac_cv_sizeof_int
6403 _ACEOF
6406 # The cast to long int works around a bug in the HP C Compiler
6407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6409 # This bug is HP SR number 8606223364.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6411 $as_echo_n "checking size of long... " >&6; }
6412 if ${ac_cv_sizeof_long+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6417 else
6418 if test "$ac_cv_type_long" = yes; then
6419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6421 as_fn_error 77 "cannot compute sizeof (long)
6422 See \`config.log' for more details" "$LINENO" 5; }
6423 else
6424 ac_cv_sizeof_long=0
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6430 $as_echo "$ac_cv_sizeof_long" >&6; }
6434 cat >>confdefs.h <<_ACEOF
6435 #define SIZEOF_LONG $ac_cv_sizeof_long
6436 _ACEOF
6439 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6440 if test "x$ac_cv_type_long_long" = xyes; then :
6442 cat >>confdefs.h <<_ACEOF
6443 #define HAVE_LONG_LONG 1
6444 _ACEOF
6446 # The cast to long int works around a bug in the HP C Compiler
6447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6449 # This bug is HP SR number 8606223364.
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6451 $as_echo_n "checking size of long long... " >&6; }
6452 if ${ac_cv_sizeof_long_long+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6457 else
6458 if test "$ac_cv_type_long_long" = yes; then
6459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461 as_fn_error 77 "cannot compute sizeof (long long)
6462 See \`config.log' for more details" "$LINENO" 5; }
6463 else
6464 ac_cv_sizeof_long_long=0
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6470 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6474 cat >>confdefs.h <<_ACEOF
6475 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6476 _ACEOF
6481 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6482 case $ac_cv_c_int8_t in #(
6483 no|yes) ;; #(
6486 cat >>confdefs.h <<_ACEOF
6487 #define int8_t $ac_cv_c_int8_t
6488 _ACEOF
6490 esac
6492 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6493 case $ac_cv_c_int16_t in #(
6494 no|yes) ;; #(
6497 cat >>confdefs.h <<_ACEOF
6498 #define int16_t $ac_cv_c_int16_t
6499 _ACEOF
6501 esac
6503 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6504 case $ac_cv_c_int32_t in #(
6505 no|yes) ;; #(
6508 cat >>confdefs.h <<_ACEOF
6509 #define int32_t $ac_cv_c_int32_t
6510 _ACEOF
6512 esac
6514 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6515 case $ac_cv_c_int64_t in #(
6516 no|yes) ;; #(
6519 cat >>confdefs.h <<_ACEOF
6520 #define int64_t $ac_cv_c_int64_t
6521 _ACEOF
6523 esac
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6527 $as_echo_n "checking for unsigned long long int... " >&6; }
6528 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 ac_cv_type_unsigned_long_long_int=yes
6532 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6536 /* For now, do not test the preprocessor; as of 2007 there are too many
6537 implementations with broken preprocessors. Perhaps this can
6538 be revisited in 2012. In the meantime, code should not expect
6539 #if to work with literals wider than 32 bits. */
6540 /* Test literals. */
6541 long long int ll = 9223372036854775807ll;
6542 long long int nll = -9223372036854775807LL;
6543 unsigned long long int ull = 18446744073709551615ULL;
6544 /* Test constant expressions. */
6545 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6546 ? 1 : -1)];
6547 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6548 ? 1 : -1)];
6549 int i = 63;
6551 main ()
6553 /* Test availability of runtime routines for shift and division. */
6554 long long int llmax = 9223372036854775807ll;
6555 unsigned long long int ullmax = 18446744073709551615ull;
6556 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6557 | (llmax / ll) | (llmax % ll)
6558 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6559 | (ullmax / ull) | (ullmax % ull));
6561 return 0;
6564 _ACEOF
6565 if ac_fn_cxx_try_link "$LINENO"; then :
6567 else
6568 ac_cv_type_unsigned_long_long_int=no
6570 rm -f core conftest.err conftest.$ac_objext \
6571 conftest$ac_exeext conftest.$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6575 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6576 if test $ac_cv_type_unsigned_long_long_int = yes; then
6578 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6585 $as_echo_n "checking for long long int... " >&6; }
6586 if ${ac_cv_type_long_long_int+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 ac_cv_type_long_long_int=yes
6590 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6591 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6592 if test $ac_cv_type_long_long_int = yes; then
6593 if test "$cross_compiling" = yes; then :
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #include <limits.h>
6599 #ifndef LLONG_MAX
6600 # define HALF \
6601 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6602 # define LLONG_MAX (HALF - 1 + HALF)
6603 #endif
6605 main ()
6607 long long int n = 1;
6608 int i;
6609 for (i = 0; ; i++)
6611 long long int m = n << i;
6612 if (m >> i != n)
6613 return 1;
6614 if (LLONG_MAX / 2 < m)
6615 break;
6617 return 0;
6619 return 0;
6621 _ACEOF
6622 if ac_fn_cxx_try_run "$LINENO"; then :
6624 else
6625 ac_cv_type_long_long_int=no
6627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6628 conftest.$ac_objext conftest.beam conftest.$ac_ext
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6635 $as_echo "$ac_cv_type_long_long_int" >&6; }
6636 if test $ac_cv_type_long_long_int = yes; then
6638 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6644 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6645 if test "x$ac_cv_type_intmax_t" = xyes; then :
6647 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6649 else
6650 test $ac_cv_type_long_long_int = yes \
6651 && ac_type='long long int' \
6652 || ac_type='long int'
6654 cat >>confdefs.h <<_ACEOF
6655 #define intmax_t $ac_type
6656 _ACEOF
6662 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6663 if test "x$ac_cv_type_intptr_t" = xyes; then :
6665 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6667 else
6668 for ac_type in 'int' 'long int' 'long long int'; do
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 $ac_includes_default
6673 main ()
6675 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6676 test_array [0] = 0;
6677 return test_array [0];
6680 return 0;
6682 _ACEOF
6683 if ac_fn_cxx_try_compile "$LINENO"; then :
6685 cat >>confdefs.h <<_ACEOF
6686 #define intptr_t $ac_type
6687 _ACEOF
6689 ac_type=
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 test -z "$ac_type" && break
6693 done
6697 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6698 case $ac_cv_c_uint8_t in #(
6699 no|yes) ;; #(
6702 $as_echo "#define _UINT8_T 1" >>confdefs.h
6705 cat >>confdefs.h <<_ACEOF
6706 #define uint8_t $ac_cv_c_uint8_t
6707 _ACEOF
6709 esac
6711 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6712 case $ac_cv_c_uint16_t in #(
6713 no|yes) ;; #(
6717 cat >>confdefs.h <<_ACEOF
6718 #define uint16_t $ac_cv_c_uint16_t
6719 _ACEOF
6721 esac
6723 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6724 case $ac_cv_c_uint32_t in #(
6725 no|yes) ;; #(
6728 $as_echo "#define _UINT32_T 1" >>confdefs.h
6731 cat >>confdefs.h <<_ACEOF
6732 #define uint32_t $ac_cv_c_uint32_t
6733 _ACEOF
6735 esac
6737 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6738 case $ac_cv_c_uint64_t in #(
6739 no|yes) ;; #(
6742 $as_echo "#define _UINT64_T 1" >>confdefs.h
6745 cat >>confdefs.h <<_ACEOF
6746 #define uint64_t $ac_cv_c_uint64_t
6747 _ACEOF
6749 esac
6753 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6754 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6756 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6758 else
6759 test $ac_cv_type_unsigned_long_long_int = yes \
6760 && ac_type='unsigned long long int' \
6761 || ac_type='unsigned long int'
6763 cat >>confdefs.h <<_ACEOF
6764 #define uintmax_t $ac_type
6765 _ACEOF
6771 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6772 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6774 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6776 else
6777 for ac_type in 'unsigned int' 'unsigned long int' \
6778 'unsigned long long int'; do
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 $ac_includes_default
6783 main ()
6785 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6786 test_array [0] = 0;
6787 return test_array [0];
6790 return 0;
6792 _ACEOF
6793 if ac_fn_cxx_try_compile "$LINENO"; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define uintptr_t $ac_type
6797 _ACEOF
6799 ac_type=
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 test -z "$ac_type" && break
6803 done
6819 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6820 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6823 # check what underlying integer type int64_t uses
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6825 $as_echo_n "checking for int64_t underlying type... " >&6; }
6826 if ${ac_cv_int64_t_type+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6833 #ifdef HAVE_STDINT_H
6834 #include <stdint.h>
6835 #endif
6836 template <typename T> struct X { };
6837 template <>
6838 struct X<long> { typedef long t; };
6841 main ()
6843 X<int64_t>::t x;
6845 return 0;
6847 _ACEOF
6848 if ac_fn_cxx_try_compile "$LINENO"; then :
6849 ac_cv_int64_t_type=long
6850 else
6851 ac_cv_int64_t_type="long long"
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6856 $as_echo "$ac_cv_int64_t_type" >&6; }
6857 if test "$ac_cv_int64_t_type" = "long"; then
6859 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6861 else
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6865 #ifdef HAVE_STDINT_H
6866 #include <stdint.h>
6867 #endif
6868 template <typename T> struct X { };
6869 template <>
6870 struct X<long long> { typedef long long t; };
6873 main ()
6875 X<int64_t>::t x;
6877 return 0;
6879 _ACEOF
6880 if ac_fn_cxx_try_compile "$LINENO"; then :
6882 else
6883 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6889 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6890 if ${ac_cv_std_swap_in_utility+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6897 #include <utility>
6900 main ()
6902 int a, b; std::swap(a,b);
6904 return 0;
6906 _ACEOF
6907 if ac_fn_cxx_try_compile "$LINENO"; then :
6908 ac_cv_std_swap_in_utility=yes
6909 else
6910 ac_cv_std_swap_in_utility=no
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6915 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6916 if test $ac_cv_std_swap_in_utility = yes; then
6918 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6922 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6923 # If the host compiler is affected by the bug, and we build with optimization
6924 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6925 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6926 # Since there is no reliable feature check for the presence of this bug,
6927 # we simply use a GCC version number check. (This should never trigger for
6928 # stages 2 or 3 of a native bootstrap.)
6929 aliasing_flags=
6930 if test "$GCC" = yes; then
6931 saved_CXXFLAGS="$CXXFLAGS"
6933 # The following test compilation will succeed if and only if $CXX accepts
6934 # -fno-strict-aliasing *and* is older than GCC 4.3.
6935 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6937 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6941 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6942 #error compiler not affected by placement new aliasing bug
6943 #endif
6945 _ACEOF
6946 if ac_fn_cxx_try_compile "$LINENO"; then :
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 CXXFLAGS="$saved_CXXFLAGS"
6961 # ---------------------
6962 # Warnings and checking
6963 # ---------------------
6965 # Check $CC warning features (if it's GCC).
6966 # We want to use -pedantic, but we don't want warnings about
6967 # * 'long long'
6968 # * variadic macros
6969 # * overlong strings
6970 # * C++11 narrowing conversions in { }
6971 # So, we only use -pedantic if we can disable those warnings.
6973 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6974 # Check whether --enable-build-format-warnings was given.
6975 if test "${enable_build_format_warnings+set}" = set; then :
6976 enableval=$enable_build_format_warnings;
6977 else
6978 enable_build_format_warnings=yes
6981 if test $enable_build_format_warnings = no; then :
6982 wf_opt=-Wno-format
6983 else
6984 wf_opt=
6986 ac_ext=cpp
6987 ac_cpp='$CXXCPP $CPPFLAGS'
6988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6992 loose_warn=
6993 save_CXXFLAGS="$CXXFLAGS"
6994 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6995 # Do the check with the no- prefix removed since gcc silently
6996 # accepts any -Wno-* option on purpose
6997 case $real_option in
6998 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6999 *) option=$real_option ;;
7000 esac
7001 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7004 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7005 if eval \${$as_acx_Woption+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 CXXFLAGS="$option"
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7013 main ()
7017 return 0;
7019 _ACEOF
7020 if ac_fn_cxx_try_compile "$LINENO"; then :
7021 eval "$as_acx_Woption=yes"
7022 else
7023 eval "$as_acx_Woption=no"
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 eval ac_res=\$$as_acx_Woption
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7030 $as_echo "$ac_res" >&6; }
7031 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7032 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7034 done
7035 CXXFLAGS="$save_CXXFLAGS"
7036 ac_ext=cpp
7037 ac_cpp='$CXXCPP $CPPFLAGS'
7038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7044 ac_ext=c
7045 ac_cpp='$CPP $CPPFLAGS'
7046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7050 c_loose_warn=
7051 save_CFLAGS="$CFLAGS"
7052 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
7053 # Do the check with the no- prefix removed since gcc silently
7054 # accepts any -Wno-* option on purpose
7055 case $real_option in
7056 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7057 *) option=$real_option ;;
7058 esac
7059 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7062 $as_echo_n "checking whether $CC supports $option... " >&6; }
7063 if eval \${$as_acx_Woption+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 CFLAGS="$option"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7071 main ()
7075 return 0;
7077 _ACEOF
7078 if ac_fn_c_try_compile "$LINENO"; then :
7079 eval "$as_acx_Woption=yes"
7080 else
7081 eval "$as_acx_Woption=no"
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 eval ac_res=\$$as_acx_Woption
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7088 $as_echo "$ac_res" >&6; }
7089 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7090 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7092 done
7093 CFLAGS="$save_CFLAGS"
7094 ac_ext=cpp
7095 ac_cpp='$CXXCPP $CPPFLAGS'
7096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7101 ac_ext=cpp
7102 ac_cpp='$CXXCPP $CPPFLAGS'
7103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7107 strict_warn=
7108 save_CXXFLAGS="$CXXFLAGS"
7109 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7110 # Do the check with the no- prefix removed since gcc silently
7111 # accepts any -Wno-* option on purpose
7112 case $real_option in
7113 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7114 *) option=$real_option ;;
7115 esac
7116 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7119 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7120 if eval \${$as_acx_Woption+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 CXXFLAGS="$option"
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7128 main ()
7132 return 0;
7134 _ACEOF
7135 if ac_fn_cxx_try_compile "$LINENO"; then :
7136 eval "$as_acx_Woption=yes"
7137 else
7138 eval "$as_acx_Woption=no"
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 eval ac_res=\$$as_acx_Woption
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7145 $as_echo "$ac_res" >&6; }
7146 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7147 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7149 done
7150 CXXFLAGS="$save_CXXFLAGS"
7151 ac_ext=cpp
7152 ac_cpp='$CXXCPP $CPPFLAGS'
7153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7158 ac_ext=c
7159 ac_cpp='$CPP $CPPFLAGS'
7160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164 c_strict_warn=
7165 save_CFLAGS="$CFLAGS"
7166 for real_option in -Wold-style-definition -Wc++-compat; do
7167 # Do the check with the no- prefix removed since gcc silently
7168 # accepts any -Wno-* option on purpose
7169 case $real_option in
7170 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7171 *) option=$real_option ;;
7172 esac
7173 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7176 $as_echo_n "checking whether $CC supports $option... " >&6; }
7177 if eval \${$as_acx_Woption+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 CFLAGS="$option"
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7185 main ()
7189 return 0;
7191 _ACEOF
7192 if ac_fn_c_try_compile "$LINENO"; then :
7193 eval "$as_acx_Woption=yes"
7194 else
7195 eval "$as_acx_Woption=no"
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 eval ac_res=\$$as_acx_Woption
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7202 $as_echo "$ac_res" >&6; }
7203 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7204 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7206 done
7207 CFLAGS="$save_CFLAGS"
7208 ac_ext=cpp
7209 ac_cpp='$CXXCPP $CPPFLAGS'
7210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7215 ac_ext=cpp
7216 ac_cpp='$CXXCPP $CPPFLAGS'
7217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7221 # Do the check with the no- prefix removed from the warning options
7222 # since gcc silently accepts any -Wno-* option on purpose
7223 if test "$GXX" = yes; then :
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7225 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7226 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 save_CXXFLAGS="$CXXFLAGS"
7230 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7235 main ()
7239 return 0;
7241 _ACEOF
7242 if ac_fn_cxx_try_compile "$LINENO"; then :
7243 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7244 else
7245 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 CXXFLAGS="$save_CXXFLAGS"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7251 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7252 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7253 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7257 ac_ext=cpp
7258 ac_cpp='$CXXCPP $CPPFLAGS'
7259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7264 ac_ext=cpp
7265 ac_cpp='$CXXCPP $CPPFLAGS'
7266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7270 # Check whether --enable-werror-always was given.
7271 if test "${enable_werror_always+set}" = set; then :
7272 enableval=$enable_werror_always;
7273 else
7274 enable_werror_always=no
7277 if test $enable_werror_always = yes; then :
7278 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7281 ac_ext=cpp
7282 ac_cpp='$CXXCPP $CPPFLAGS'
7283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7289 # The above macros do nothing if the compiler is not GCC. However, the
7290 # Makefile has more goo to add other flags, so these variables are used
7291 # to enable warnings only for GCC.
7292 warn_cflags=
7293 warn_cxxflags=
7294 if test "x$GCC" = "xyes"; then
7295 warn_cflags='$(GCC_WARN_CFLAGS)'
7296 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7301 # Disable exceptions and RTTI if building with g++
7302 ac_ext=c
7303 ac_cpp='$CPP $CPPFLAGS'
7304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308 noexception_flags=
7309 save_CFLAGS="$CFLAGS"
7310 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7311 # Do the check with the no- prefix removed since gcc silently
7312 # accepts any -Wno-* option on purpose
7313 case $real_option in
7314 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7315 *) option=$real_option ;;
7316 esac
7317 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7320 $as_echo_n "checking whether $CC supports $option... " >&6; }
7321 if eval \${$as_acx_Woption+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 CFLAGS="$option"
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7329 main ()
7333 return 0;
7335 _ACEOF
7336 if ac_fn_c_try_compile "$LINENO"; then :
7337 eval "$as_acx_Woption=yes"
7338 else
7339 eval "$as_acx_Woption=no"
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 eval ac_res=\$$as_acx_Woption
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7348 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7350 done
7351 CFLAGS="$save_CFLAGS"
7352 ac_ext=cpp
7353 ac_cpp='$CXXCPP $CPPFLAGS'
7354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7360 # Enable expensive internal checks
7361 is_release=
7362 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7363 is_release=yes
7366 # Check whether --enable-checking was given.
7367 if test "${enable_checking+set}" = set; then :
7368 enableval=$enable_checking; ac_checking_flags="${enableval}"
7369 else
7371 # Determine the default checks.
7372 if test x$is_release = x ; then
7373 ac_checking_flags=yes,extra
7374 else
7375 ac_checking_flags=release
7379 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7380 for check in release $ac_checking_flags
7382 case $check in
7383 # these set all the flags to specific states
7384 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7385 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7386 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7387 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7388 ac_tree_checking=1 ; ac_valgrind_checking= ;
7389 ac_types_checking=1 ;;
7390 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7391 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7392 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7393 ac_rtlflag_checking= ; ac_runtime_checking= ;
7394 ac_tree_checking= ; ac_valgrind_checking= ;
7395 ac_types_checking= ;;
7396 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7397 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7398 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7399 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7400 ac_tree_checking=1 ; ac_valgrind_checking= ;
7401 ac_types_checking=1 ;;
7402 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7403 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7404 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7405 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7406 ac_tree_checking= ; ac_valgrind_checking= ;
7407 ac_types_checking= ;;
7408 # these enable particular checks
7409 assert) ac_assert_checking=1 ;;
7410 df) ac_df_checking=1 ;;
7411 extra) ac_extra_checking=1 ;;
7412 fold) ac_fold_checking=1 ;;
7413 gc) ac_gc_checking=1 ;;
7414 gcac) ac_gc_always_collect=1 ;;
7415 gimple) ac_gimple_checking=1 ;;
7416 misc) ac_checking=1 ;;
7417 rtl) ac_rtl_checking=1 ;;
7418 rtlflag) ac_rtlflag_checking=1 ;;
7419 runtime) ac_runtime_checking=1 ;;
7420 tree) ac_tree_checking=1 ;;
7421 types) ac_types_checking=1 ;;
7422 valgrind) ac_valgrind_checking=1 ;;
7423 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7424 esac
7425 done
7426 IFS="$ac_save_IFS"
7428 nocommon_flag=""
7429 if test x$ac_checking != x ; then
7431 $as_echo "#define CHECKING_P 1" >>confdefs.h
7433 nocommon_flag=-fno-common
7434 else
7435 $as_echo "#define CHECKING_P 0" >>confdefs.h
7439 if test x$ac_extra_checking != x ; then
7441 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7443 else
7444 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7447 if test x$ac_df_checking != x ; then
7449 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7452 if test x$ac_assert_checking != x ; then
7454 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7457 if test x$ac_gimple_checking != x ; then
7459 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7463 if test x$ac_runtime_checking != x ; then
7465 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7468 if test x$ac_tree_checking != x ; then
7470 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7472 TREECHECKING=yes
7474 if test x$ac_types_checking != x ; then
7476 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7480 if test x$ac_rtl_checking != x ; then
7482 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7485 if test x$ac_rtlflag_checking != x ; then
7487 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7490 if test x$ac_gc_checking != x ; then
7492 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7495 if test x$ac_gc_always_collect != x ; then
7497 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7500 if test x$ac_fold_checking != x ; then
7502 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7505 valgrind_path_defines=
7506 valgrind_command=
7508 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7509 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7510 have_valgrind_h=yes
7511 else
7512 have_valgrind_h=no
7517 # It is certainly possible that there's valgrind but no valgrind.h.
7518 # GCC relies on making annotations so we must have both.
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7520 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 #include <valgrind/memcheck.h>
7524 #ifndef VALGRIND_DISCARD
7525 #error VALGRIND_DISCARD not defined
7526 #endif
7527 _ACEOF
7528 if ac_fn_cxx_try_cpp "$LINENO"; then :
7529 gcc_cv_header_valgrind_memcheck_h=yes
7530 else
7531 gcc_cv_header_valgrind_memcheck_h=no
7533 rm -f conftest.err conftest.i conftest.$ac_ext
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7535 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7537 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <memcheck.h>
7541 #ifndef VALGRIND_DISCARD
7542 #error VALGRIND_DISCARD not defined
7543 #endif
7544 _ACEOF
7545 if ac_fn_cxx_try_cpp "$LINENO"; then :
7546 gcc_cv_header_memcheck_h=yes
7547 else
7548 gcc_cv_header_memcheck_h=no
7550 rm -f conftest.err conftest.i conftest.$ac_ext
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7552 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7553 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7555 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7558 if test $gcc_cv_header_memcheck_h = yes; then
7560 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7564 if test x$ac_valgrind_checking != x ; then
7566 # Prepare PATH_SEPARATOR.
7567 # The user is always right.
7568 if test "${PATH_SEPARATOR+set}" != set; then
7569 echo "#! /bin/sh" >conf$$.sh
7570 echo "exit 0" >>conf$$.sh
7571 chmod +x conf$$.sh
7572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7573 PATH_SEPARATOR=';'
7574 else
7575 PATH_SEPARATOR=:
7577 rm -f conf$$.sh
7580 # Find out how to test for executable files. Don't use a zero-byte file,
7581 # as systems may use methods other than mode bits to determine executability.
7582 cat >conf$$.file <<_ASEOF
7583 #! /bin/sh
7584 exit 0
7585 _ASEOF
7586 chmod +x conf$$.file
7587 if test -x conf$$.file >/dev/null 2>&1; then
7588 ac_executable_p="test -x"
7589 else
7590 ac_executable_p="test -f"
7592 rm -f conf$$.file
7594 # Extract the first word of "valgrind", so it can be a program name with args.
7595 set dummy valgrind; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_path_valgrind_path+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 case "$valgrind_path" in
7602 [\\/]* | ?:[\\/]*)
7603 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7606 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7607 for ac_dir in $PATH; do
7608 IFS="$ac_save_IFS"
7609 test -z "$ac_dir" && ac_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7612 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7613 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7614 break 2
7617 done
7618 done
7619 IFS="$ac_save_IFS"
7621 esac
7623 valgrind_path="$ac_cv_path_valgrind_path"
7624 if test -n "$valgrind_path"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7626 $as_echo "$valgrind_path" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$valgrind_path" = "x" \
7633 || (test $have_valgrind_h = no \
7634 && test $gcc_cv_header_memcheck_h = no \
7635 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7636 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7638 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7639 valgrind_command="$valgrind_path -q"
7641 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7647 # Enable code coverage collection
7648 # Check whether --enable-coverage was given.
7649 if test "${enable_coverage+set}" = set; then :
7650 enableval=$enable_coverage; case "${enableval}" in
7651 yes|noopt)
7652 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7654 opt)
7655 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7658 # a.k.a. --disable-coverage
7659 coverage_flags=""
7662 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7664 esac
7665 else
7666 coverage_flags=""
7671 # Check whether --enable-gather-detailed-mem-stats was given.
7672 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7673 enableval=$enable_gather_detailed_mem_stats;
7674 else
7675 enable_gather_detailed_mem_stats=no
7678 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7680 cat >>confdefs.h <<_ACEOF
7681 #define GATHER_STATISTICS $gather_stats
7682 _ACEOF
7685 # Check whether --enable-valgrind-annotations was given.
7686 if test "${enable_valgrind_annotations+set}" = set; then :
7687 enableval=$enable_valgrind_annotations;
7688 else
7689 enable_valgrind_annotations=no
7692 if test x$enable_valgrind_annotations != xno \
7693 || test x$ac_valgrind_checking != x; then
7694 if (test $have_valgrind_h = no \
7695 && test $gcc_cv_header_memcheck_h = no \
7696 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7697 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7700 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7704 # -------------------------------
7705 # Miscenalleous configure options
7706 # -------------------------------
7708 # Determine whether or not multilibs are enabled.
7709 # Check whether --enable-multilib was given.
7710 if test "${enable_multilib+set}" = set; then :
7711 enableval=$enable_multilib;
7712 else
7713 enable_multilib=yes
7718 # Determine whether or not multiarch is enabled.
7719 # Check whether --enable-multiarch was given.
7720 if test "${enable_multiarch+set}" = set; then :
7721 enableval=$enable_multiarch; case "${enableval}" in
7722 yes|no|auto) enable_multiarch=$enableval;;
7723 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7724 esac
7725 else
7726 enable_multiarch=auto
7729 if test x${enable_multiarch} = xauto; then
7730 if test x${with_native_system_header_dir} != x; then
7731 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7732 enable_multiarch=no
7734 if test x$host != x$target && test "x$with_sysroot" = x; then
7735 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7736 enable_multiarch=no
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7740 $as_echo_n "checking for multiarch configuration... " >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7743 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7745 # needed for setting the multiarch name for soft-float/hard-float ABIs
7749 # default stack clash protection guard size as power of twos in bytes.
7750 # Please keep these in sync with params.def.
7751 stk_clash_min=12
7752 stk_clash_max=30
7754 # Keep the default value when the option is not used to 0, this allows us to
7755 # distinguish between the cases where the user specifially set a value via
7756 # configure and when the normal default value is used.
7758 # Check whether --with-stack-clash-protection-guard-size was given.
7759 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7760 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7761 else
7762 DEFAULT_STK_CLASH_GUARD_SIZE=0
7765 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7766 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7767 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7768 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
7772 cat >>confdefs.h <<_ACEOF
7773 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7774 _ACEOF
7777 # Enable __cxa_atexit for C++.
7778 # Check whether --enable-__cxa_atexit was given.
7779 if test "${enable___cxa_atexit+set}" = set; then :
7780 enableval=$enable___cxa_atexit;
7784 # Enable C extension for decimal float if target supports it.
7786 # Check whether --enable-decimal-float was given.
7787 if test "${enable_decimal_float+set}" = set; then :
7788 enableval=$enable_decimal_float;
7789 case $enable_decimal_float in
7790 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7791 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7792 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7793 esac
7795 else
7797 case $target in
7798 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7799 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7800 i?86*-*-mingw* | x86_64*-*-mingw* | \
7801 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7802 enable_decimal_float=yes
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7806 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7807 enable_decimal_float=no
7809 esac
7814 # x86's use BID format instead of DPD
7815 case x$enable_decimal_float in
7816 xyes)
7817 case $target in
7818 i?86*-*-* | x86_64*-*-*)
7819 enable_decimal_float=bid
7822 enable_decimal_float=dpd
7824 esac
7825 default_decimal_float=$enable_decimal_float
7827 xno)
7828 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7829 # dependency on libdecnumber.
7830 default_decimal_float=dpd
7832 esac
7837 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7839 cat >>confdefs.h <<_ACEOF
7840 #define ENABLE_DECIMAL_FLOAT $dfp
7841 _ACEOF
7844 # Use default_decimal_float for dependency.
7845 enable_decimal_float=$default_decimal_float
7847 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7849 cat >>confdefs.h <<_ACEOF
7850 #define ENABLE_DECIMAL_BID_FORMAT $bid
7851 _ACEOF
7854 # Enable C extension for fixed-point arithmetic.
7855 # Check whether --enable-fixed-point was given.
7856 if test "${enable_fixed_point+set}" = set; then :
7857 enableval=$enable_fixed_point;
7858 else
7860 case $target in
7861 arm*)
7862 enable_fixed_point=yes
7865 mips*-*-*)
7866 enable_fixed_point=yes
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7870 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7871 enable_fixed_point=no
7873 esac
7879 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7881 cat >>confdefs.h <<_ACEOF
7882 #define ENABLE_FIXED_POINT $fixedpoint
7883 _ACEOF
7886 # Enable threads
7887 # Pass with no value to take the default
7888 # Pass with a value to specify a thread package
7889 # Check whether --enable-threads was given.
7890 if test "${enable_threads+set}" = set; then :
7891 enableval=$enable_threads;
7892 else
7893 enable_threads=''
7897 # Check whether --enable-tls was given.
7898 if test "${enable_tls+set}" = set; then :
7899 enableval=$enable_tls;
7900 case $enable_tls in
7901 yes | no) ;;
7902 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7903 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7904 esac
7906 else
7907 enable_tls=''
7911 # Check whether --enable-vtable-verify was given.
7912 if test "${enable_vtable_verify+set}" = set; then :
7913 enableval=$enable_vtable_verify;
7914 else
7915 enable_vtable_verify=no
7918 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7920 cat >>confdefs.h <<_ACEOF
7921 #define ENABLE_VTABLE_VERIFY $vtable_verify
7922 _ACEOF
7925 # Check whether --enable-analyzer was given.
7926 if test "${enable_analyzer+set}" = set; then :
7927 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7928 analyzer=0
7929 else
7930 analyzer=1
7932 else
7933 analyzer=1
7937 cat >>confdefs.h <<_ACEOF
7938 #define ENABLE_ANALYZER $analyzer
7939 _ACEOF
7942 # Check whether --enable-objc-gc was given.
7943 if test "${enable_objc_gc+set}" = set; then :
7944 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7945 objc_boehm_gc=''
7946 else
7947 objc_boehm_gc=1
7949 else
7950 objc_boehm_gc=''
7955 # Check whether --with-dwarf2 was given.
7956 if test "${with_dwarf2+set}" = set; then :
7957 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7958 else
7959 dwarf2=no
7963 # Check whether --enable-shared was given.
7964 if test "${enable_shared+set}" = set; then :
7965 enableval=$enable_shared;
7966 case $enable_shared in
7967 yes | no) ;;
7969 enable_shared=no
7970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7971 for pkg in $enableval; do
7972 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7973 enable_shared=yes
7975 done
7976 IFS="$ac_save_ifs"
7978 esac
7980 else
7981 enable_shared=yes
7986 # Check whether --enable-gcov was given.
7987 if test "${enable_gcov+set}" = set; then :
7988 enableval=$enable_gcov;
7989 else
7990 enable_gcov=yes
7996 # Check whether --with-specs was given.
7997 if test "${with_specs+set}" = set; then :
7998 withval=$with_specs; CONFIGURE_SPECS=$withval
7999 else
8000 CONFIGURE_SPECS=
8008 # Check whether --with-pkgversion was given.
8009 if test "${with_pkgversion+set}" = set; then :
8010 withval=$with_pkgversion; case "$withval" in
8011 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8012 no) PKGVERSION= ;;
8013 *) PKGVERSION="($withval) " ;;
8014 esac
8015 else
8016 PKGVERSION="(GCC) "
8024 # Check whether --with-bugurl was given.
8025 if test "${with_bugurl+set}" = set; then :
8026 withval=$with_bugurl; case "$withval" in
8027 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8028 no) BUGURL=
8030 *) BUGURL="$withval"
8032 esac
8033 else
8034 BUGURL="https://gcc.gnu.org/bugs/"
8038 case ${BUGURL} in
8040 REPORT_BUGS_TO=
8041 REPORT_BUGS_TEXI=
8044 REPORT_BUGS_TO="<$BUGURL>"
8045 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8047 esac;
8052 # Allow overriding the default URL for documentation
8054 # Check whether --with-documentation-root-url was given.
8055 if test "${with_documentation_root_url+set}" = set; then :
8056 withval=$with_documentation_root_url; case "$withval" in
8057 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8058 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8059 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8060 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8061 esac
8062 else
8063 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8068 cat >>confdefs.h <<_ACEOF
8069 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8070 _ACEOF
8073 # Allow overriding the default URL for GCC changes
8075 # Check whether --with-changes-root-url was given.
8076 if test "${with_changes_root_url+set}" = set; then :
8077 withval=$with_changes_root_url; case "$withval" in
8078 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8079 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8080 */) CHANGES_ROOT_URL="$withval" ;;
8081 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8082 esac
8083 else
8084 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8089 cat >>confdefs.h <<_ACEOF
8090 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8091 _ACEOF
8094 # Sanity check enable_languages in case someone does not run the toplevel
8095 # configure # script.
8096 # Check whether --enable-languages was given.
8097 if test "${enable_languages+set}" = set; then :
8098 enableval=$enable_languages; case ,${enable_languages}, in
8099 ,,|,yes,)
8100 # go safe -- we cannot be much sure without the toplevel
8101 # configure's
8102 # analysis of which target libs are present and usable
8103 enable_languages=c
8105 *,all,*)
8106 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8108 *,c,*)
8111 enable_languages=c,${enable_languages}
8113 esac
8114 else
8115 enable_languages=c
8119 # If top-level libada has been disabled, then wire in install-gnatlib
8120 # invocation with `make install', so that one can build and install
8121 # the library manually with `make -C gcc all gnatlib gnattools install'.
8122 if test x"$enable_libada" = xno; then
8123 gnat_install_lib=gnat-install-lib
8124 else
8125 gnat_install_lib=
8129 if test x"$enable_as_accelerator_for" != x; then
8131 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8133 enable_as_accelerator=yes
8134 case "${target}" in
8135 *-intelmicemul-*)
8136 # In this case we expect offload compiler to be built as native, so we
8137 # need to rename the driver to avoid clashes with host's drivers.
8138 program_transform_name="s&^&${target}-&" ;;
8139 esac
8140 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8141 program_transform_name=`echo $program_transform_name | sed $sedscript`
8142 accel_dir_suffix=/accel/${target_noncanonical}
8143 real_target_noncanonical=${enable_as_accelerator_for}
8149 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8150 tgt=`echo $tgt | sed 's/=.*//'`
8152 enable_offloading=1
8153 case "$tgt" in
8154 *-intelmic-* | *-intelmicemul-*)
8155 omp_device_property=omp-device-properties-i386
8156 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8158 amdgcn*)
8159 omp_device_property=omp-device-properties-gcn
8160 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8162 nvptx*)
8163 omp_device_property=omp-device-properties-nvptx
8164 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8167 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8169 esac
8170 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8171 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8173 if test x"$offload_targets" = x; then
8174 offload_targets=$tgt
8175 else
8176 offload_targets="$offload_targets,$tgt"
8178 done
8183 cat >>confdefs.h <<_ACEOF
8184 #define OFFLOAD_TARGETS "$offload_targets"
8185 _ACEOF
8187 if test x"$enable_offloading" != x; then
8189 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8191 else
8193 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8197 if test "x$enable_offload_defaulted" = xyes; then
8199 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8204 # Check whether --with-multilib-list was given.
8205 if test "${with_multilib_list+set}" = set; then :
8206 withval=$with_multilib_list; :
8207 else
8208 with_multilib_list=default
8213 # Check whether --with-multilib-generator was given.
8214 if test "${with_multilib_generator+set}" = set; then :
8215 withval=$with_multilib_generator; :
8216 else
8217 with_multilib_generator=default
8221 # -------------------------
8222 # Checks for other programs
8223 # -------------------------
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8226 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8227 set x ${MAKE-make}
8228 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8229 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 cat >conftest.make <<\_ACEOF
8233 SHELL = /bin/sh
8234 all:
8235 @echo '@@@%%%=$(MAKE)=@@@%%%'
8236 _ACEOF
8237 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8239 *@@@%%%=?*=@@@%%%*)
8240 eval ac_cv_prog_make_${ac_make}_set=yes;;
8242 eval ac_cv_prog_make_${ac_make}_set=no;;
8243 esac
8244 rm -f conftest.make
8246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8248 $as_echo "yes" >&6; }
8249 SET_MAKE=
8250 else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8253 SET_MAKE="MAKE=${MAKE-make}"
8257 # Find some useful tools
8258 for ac_prog in gawk mawk nawk awk
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if ${ac_cv_prog_AWK+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$AWK"; then
8268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_AWK="$ac_prog"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8281 done
8282 done
8283 IFS=$as_save_IFS
8287 AWK=$ac_cv_prog_AWK
8288 if test -n "$AWK"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8290 $as_echo "$AWK" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 test -n "$AWK" && break
8298 done
8300 # We need awk to create options.c and options.h.
8301 # Bail out if it's missing.
8302 case ${AWK} in
8303 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8304 esac
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8307 $as_echo_n "checking whether ln -s works... " >&6; }
8308 if ${gcc_cv_prog_LN_S+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 rm -f conftestdata_t
8312 echo >conftestdata_f
8313 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8314 then
8315 gcc_cv_prog_LN_S="ln -s"
8316 else
8317 if ln conftestdata_f conftestdata_t 2>/dev/null
8318 then
8319 gcc_cv_prog_LN_S=ln
8320 else
8321 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8322 then
8323 gcc_cv_prog_LN_S="cp -p"
8324 else
8325 gcc_cv_prog_LN_S=cp
8329 rm -f conftestdata_f conftestdata_t
8332 LN_S="$gcc_cv_prog_LN_S"
8333 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335 $as_echo "yes" >&6; }
8336 else
8337 if test "$gcc_cv_prog_LN_S" = "ln"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8339 $as_echo "no, using ln" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8342 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8347 $as_echo_n "checking whether ln works... " >&6; }
8348 if ${acx_cv_prog_LN+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 rm -f conftestdata_t
8352 echo >conftestdata_f
8353 if ln conftestdata_f conftestdata_t 2>/dev/null
8354 then
8355 acx_cv_prog_LN=ln
8356 else
8357 acx_cv_prog_LN=no
8359 rm -f conftestdata_f conftestdata_t
8362 if test $acx_cv_prog_LN = no; then
8363 LN="$LN_S"
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8365 $as_echo "no, using $LN" >&6; }
8366 else
8367 LN="$acx_cv_prog_LN"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8369 $as_echo "yes" >&6; }
8372 if test -n "$ac_tool_prefix"; then
8373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_RANLIB+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$RANLIB"; then
8381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8394 done
8395 done
8396 IFS=$as_save_IFS
8400 RANLIB=$ac_cv_prog_RANLIB
8401 if test -n "$RANLIB"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8403 $as_echo "$RANLIB" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8411 if test -z "$ac_cv_prog_RANLIB"; then
8412 ac_ct_RANLIB=$RANLIB
8413 # Extract the first word of "ranlib", so it can be a program name with args.
8414 set dummy ranlib; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 if test -n "$ac_ct_RANLIB"; then
8421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430 ac_cv_prog_ac_ct_RANLIB="ranlib"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8434 done
8435 done
8436 IFS=$as_save_IFS
8440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8441 if test -n "$ac_ct_RANLIB"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8443 $as_echo "$ac_ct_RANLIB" >&6; }
8444 else
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8449 if test "x$ac_ct_RANLIB" = x; then
8450 RANLIB=":"
8451 else
8452 case $cross_compiling:$ac_tool_warned in
8453 yes:)
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8456 ac_tool_warned=yes ;;
8457 esac
8458 RANLIB=$ac_ct_RANLIB
8460 else
8461 RANLIB="$ac_cv_prog_RANLIB"
8464 ranlib_flags=""
8467 # Find a good install program. We prefer a C program (faster),
8468 # so one script is as good as another. But avoid the broken or
8469 # incompatible versions:
8470 # SysV /etc/install, /usr/sbin/install
8471 # SunOS /usr/etc/install
8472 # IRIX /sbin/install
8473 # AIX /bin/install
8474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8476 # ./install, which can be erroneously created by make from ./install.sh.
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8478 $as_echo_n "checking for a BSD compatible install... " >&6; }
8479 if test -z "$INSTALL"; then
8480 if ${ac_cv_path_install+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8484 for ac_dir in $PATH; do
8485 # Account for people who put trailing slashes in PATH elements.
8486 case "$ac_dir/" in
8487 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8489 # OSF1 and SCO ODT 3.0 have their own names for install.
8490 for ac_prog in ginstall scoinst install; do
8491 if test -f $ac_dir/$ac_prog; then
8492 if test $ac_prog = install &&
8493 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8494 # AIX install. It has an incompatible calling convention.
8495 # OSF/1 installbsd also uses dspmsg, but is usable.
8497 else
8498 ac_cv_path_install="$ac_dir/$ac_prog -c"
8499 break 2
8502 done
8504 esac
8505 done
8506 IFS="$ac_save_IFS"
8509 if test "${ac_cv_path_install+set}" = set; then
8510 INSTALL="$ac_cv_path_install"
8511 else
8512 # As a last resort, use the slow shell script. We don't cache a
8513 # path for INSTALL within a source directory, because that will
8514 # break other packages using the cache if that directory is
8515 # removed, or if the path is relative.
8516 INSTALL="$ac_install_sh"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8520 $as_echo "$INSTALL" >&6; }
8522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8523 # It thinks the first close brace ends the variable substitution.
8524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8529 # See if cmp has --ignore-initial.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8531 $as_echo_n "checking for cmp's capabilities... " >&6; }
8532 if ${gcc_cv_prog_cmp_skip+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 echo abfoo >t1
8536 echo cdfoo >t2
8537 gcc_cv_prog_cmp_skip=slowcompare
8538 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8539 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8541 else
8542 gcc_cv_prog_cmp_skip=gnucompare
8545 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8546 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8547 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8549 else
8550 gcc_cv_prog_cmp_skip=fastcompare
8554 rm t1 t2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8558 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8559 make_compare_target=$gcc_cv_prog_cmp_skip
8563 # See if we have the mktemp command.
8564 # Extract the first word of "mktemp", so it can be a program name with args.
8565 set dummy mktemp; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 if test -n "$have_mktemp_command"; then
8572 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_have_mktemp_command="yes"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8587 IFS=$as_save_IFS
8589 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8592 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8593 if test -n "$have_mktemp_command"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8595 $as_echo "$have_mktemp_command" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8603 # See if makeinfo has been installed and is modern enough
8604 # that we can use it.
8606 # Extract the first word of "makeinfo", so it can be a program name with args.
8607 set dummy makeinfo; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_prog_MAKEINFO+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 if test -n "$MAKEINFO"; then
8614 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8615 else
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 for as_dir in $PATH
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_MAKEINFO="makeinfo"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8627 done
8628 done
8629 IFS=$as_save_IFS
8633 MAKEINFO=$ac_cv_prog_MAKEINFO
8634 if test -n "$MAKEINFO"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8636 $as_echo "$MAKEINFO" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8643 if test -n "$MAKEINFO"; then
8644 # Found it, now check the version.
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8646 $as_echo_n "checking for modern makeinfo... " >&6; }
8647 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8651 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8653 case $ac_prog_version in
8654 '') gcc_cv_prog_makeinfo_modern=no;;
8655 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8656 *) gcc_cv_prog_makeinfo_modern=no;;
8657 esac
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8661 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8662 else
8663 gcc_cv_prog_makeinfo_modern=no
8665 if test $gcc_cv_prog_makeinfo_modern = no; then
8666 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8669 if test $gcc_cv_prog_makeinfo_modern = no; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8671 *** Makeinfo is missing or too old.
8672 *** Info documentation will not be built." >&5
8673 $as_echo "$as_me: WARNING:
8674 *** Makeinfo is missing or too old.
8675 *** Info documentation will not be built." >&2;}
8676 BUILD_INFO=
8677 else
8678 BUILD_INFO=info
8682 # Is pod2man recent enough to regenerate manpages?
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8684 $as_echo_n "checking for recent Pod::Man... " >&6; }
8685 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8687 $as_echo "yes" >&6; }
8688 GENERATED_MANPAGES=generated-manpages
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 GENERATED_MANPAGES=
8696 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8698 # How about lex?
8699 for ac_prog in flex
8701 # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy $ac_prog; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_FLEX+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 if test -n "$FLEX"; then
8709 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8710 else
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_FLEX="$ac_prog"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8722 done
8723 done
8724 IFS=$as_save_IFS
8728 FLEX=$ac_cv_prog_FLEX
8729 if test -n "$FLEX"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8731 $as_echo "$FLEX" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8738 test -n "$FLEX" && break
8739 done
8740 test -n "$FLEX" || FLEX="$MISSING flex"
8743 # Bison?
8744 for ac_prog in bison
8746 # Extract the first word of "$ac_prog", so it can be a program name with args.
8747 set dummy $ac_prog; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_BISON+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test -n "$BISON"; then
8754 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_BISON="$ac_prog"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8767 done
8768 done
8769 IFS=$as_save_IFS
8773 BISON=$ac_cv_prog_BISON
8774 if test -n "$BISON"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8776 $as_echo "$BISON" >&6; }
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 test -n "$BISON" && break
8784 done
8785 test -n "$BISON" || BISON="$MISSING bison"
8788 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8789 # check for build == host before using them.
8791 # NM
8792 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8793 && test -d ../binutils ; then
8794 NM='${objdir}/../binutils/nm-new'
8795 else
8796 # Extract the first word of "nm", so it can be a program name with args.
8797 set dummy nm; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_NM+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 if test -n "$NM"; then
8804 ac_cv_prog_NM="$NM" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_NM="nm"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8817 done
8818 done
8819 IFS=$as_save_IFS
8821 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8824 NM=$ac_cv_prog_NM
8825 if test -n "$NM"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8827 $as_echo "$NM" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8836 # AR
8837 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8838 && test -d ../binutils ; then
8839 AR='${objdir}/../binutils/ar'
8840 else
8841 # Extract the first word of "ar", so it can be a program name with args.
8842 set dummy ar; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_prog_AR+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 if test -n "$AR"; then
8849 ac_cv_prog_AR="$AR" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858 ac_cv_prog_AR="ar"
8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 break 2
8862 done
8863 done
8864 IFS=$as_save_IFS
8866 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8869 AR=$ac_cv_prog_AR
8870 if test -n "$AR"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8872 $as_echo "$AR" >&6; }
8873 else
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8881 # The jit documentation looks better if built with sphinx, but can be
8882 # built with texinfo if sphinx is not available.
8883 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8884 # Extract the first word of "sphinx-build", so it can be a program name with args.
8885 set dummy sphinx-build; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if ${ac_cv_prog_doc_build_sys+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 if test -n "$doc_build_sys"; then
8892 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8893 else
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901 ac_cv_prog_doc_build_sys="sphinx"
8902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 break 2
8905 done
8906 done
8907 IFS=$as_save_IFS
8909 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8912 doc_build_sys=$ac_cv_prog_doc_build_sys
8913 if test -n "$doc_build_sys"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8915 $as_echo "$doc_build_sys" >&6; }
8916 else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8923 # --------------------
8924 # Checks for C headers
8925 # --------------------
8927 # Need to reject headers which give warnings, so that the -Werror bootstrap
8928 # works later. *sigh* This needs to come before all header checks.
8930 ac_c_preproc_warn_flag=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8933 $as_echo_n "checking for ANSI C header files... " >&6; }
8934 if ${ac_cv_header_stdc+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 #include <stdlib.h>
8940 #include <stdarg.h>
8941 #include <string.h>
8942 #include <float.h>
8945 main ()
8949 return 0;
8951 _ACEOF
8952 if ac_fn_cxx_try_compile "$LINENO"; then :
8953 ac_cv_header_stdc=yes
8954 else
8955 ac_cv_header_stdc=no
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 if test $ac_cv_header_stdc = yes; then
8960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 #include <string.h>
8965 _ACEOF
8966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8967 $EGREP "memchr" >/dev/null 2>&1; then :
8969 else
8970 ac_cv_header_stdc=no
8972 rm -f conftest*
8976 if test $ac_cv_header_stdc = yes; then
8977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 #include <stdlib.h>
8982 _ACEOF
8983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8984 $EGREP "free" >/dev/null 2>&1; then :
8986 else
8987 ac_cv_header_stdc=no
8989 rm -f conftest*
8993 if test $ac_cv_header_stdc = yes; then
8994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8995 if test "$cross_compiling" = yes; then :
8997 else
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 #include <ctype.h>
9001 #include <stdlib.h>
9002 #if ((' ' & 0x0FF) == 0x020)
9003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9005 #else
9006 # define ISLOWER(c) \
9007 (('a' <= (c) && (c) <= 'i') \
9008 || ('j' <= (c) && (c) <= 'r') \
9009 || ('s' <= (c) && (c) <= 'z'))
9010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9011 #endif
9013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9015 main ()
9017 int i;
9018 for (i = 0; i < 256; i++)
9019 if (XOR (islower (i), ISLOWER (i))
9020 || toupper (i) != TOUPPER (i))
9021 return 2;
9022 return 0;
9024 _ACEOF
9025 if ac_fn_cxx_try_run "$LINENO"; then :
9027 else
9028 ac_cv_header_stdc=no
9030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9031 conftest.$ac_objext conftest.beam conftest.$ac_ext
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9037 $as_echo "$ac_cv_header_stdc" >&6; }
9038 if test $ac_cv_header_stdc = yes; then
9040 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9045 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9046 if ${ac_cv_header_time+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 #include <sys/types.h>
9052 #include <sys/time.h>
9053 #include <time.h>
9056 main ()
9058 if ((struct tm *) 0)
9059 return 0;
9061 return 0;
9063 _ACEOF
9064 if ac_fn_cxx_try_compile "$LINENO"; then :
9065 ac_cv_header_time=yes
9066 else
9067 ac_cv_header_time=no
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9072 $as_echo "$ac_cv_header_time" >&6; }
9073 if test $ac_cv_header_time = yes; then
9075 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9080 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9081 if ${gcc_cv_header_string+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 #include <string.h>
9087 #include <strings.h>
9089 main ()
9093 return 0;
9095 _ACEOF
9096 if ac_fn_cxx_try_compile "$LINENO"; then :
9097 gcc_cv_header_string=yes
9098 else
9099 gcc_cv_header_string=no
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9104 $as_echo "$gcc_cv_header_string" >&6; }
9105 if test $gcc_cv_header_string = yes; then
9107 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9112 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9113 if ${ac_cv_header_sys_wait_h+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <sys/types.h>
9119 #include <sys/wait.h>
9120 #ifndef WEXITSTATUS
9121 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9122 #endif
9123 #ifndef WIFEXITED
9124 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9125 #endif
9128 main ()
9130 int s;
9131 wait (&s);
9132 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9134 return 0;
9136 _ACEOF
9137 if ac_fn_cxx_try_compile "$LINENO"; then :
9138 ac_cv_header_sys_wait_h=yes
9139 else
9140 ac_cv_header_sys_wait_h=no
9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9145 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9146 if test $ac_cv_header_sys_wait_h = yes; then
9148 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9153 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9154 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 #include <sys/types.h>
9160 #include <termios.h>
9161 #ifdef TIOCGWINSZ
9163 #endif
9165 _ACEOF
9166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9167 $EGREP "yes" >/dev/null 2>&1; then :
9168 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9169 else
9170 ac_cv_sys_tiocgwinsz_in_termios_h=no
9172 rm -f conftest*
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9176 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9178 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9180 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9181 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 #include <sys/types.h>
9187 #include <sys/ioctl.h>
9188 #ifdef TIOCGWINSZ
9190 #endif
9192 _ACEOF
9193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9194 $EGREP "yes" >/dev/null 2>&1; then :
9195 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9196 else
9197 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9199 rm -f conftest*
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9203 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9205 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9207 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9212 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9213 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9214 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9215 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9216 do :
9217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9218 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9220 cat >>confdefs.h <<_ACEOF
9221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222 _ACEOF
9225 done
9228 # Check for thread headers.
9229 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9230 if test "x$ac_cv_header_thread_h" = xyes; then :
9231 have_thread_h=yes
9232 else
9233 have_thread_h=
9236 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9237 if test "x$ac_cv_header_pthread_h" = xyes; then :
9238 have_pthread_h=yes
9239 else
9240 have_pthread_h=
9244 # These tests can't be done till we know if we have limits.h.
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9246 $as_echo_n "checking for CHAR_BIT... " >&6; }
9247 if ${gcc_cv_decl_char_bit+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 #ifdef HAVE_LIMITS_H
9253 #include <limits.h>
9254 #endif
9255 #ifdef CHAR_BIT
9256 found
9257 #endif
9258 _ACEOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "found" >/dev/null 2>&1; then :
9261 gcc_cv_decl_char_bit=yes
9262 else
9263 gcc_cv_decl_char_bit=no
9265 rm -f conftest*
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9270 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9271 if test $gcc_cv_decl_char_bit = no; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9273 $as_echo_n "checking number of bits in a byte... " >&6; }
9274 if ${gcc_cv_c_nbby+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9278 gcc_cv_c_nbby=
9279 while test $i -lt 65; do
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9284 main ()
9286 switch(0) {
9287 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9288 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9291 return 0;
9293 _ACEOF
9294 if ac_fn_cxx_try_compile "$LINENO"; then :
9295 gcc_cv_c_nbby=$i; break
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 i=`expr $i + 1`
9299 done
9300 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9304 $as_echo "$gcc_cv_c_nbby" >&6; }
9305 if test $gcc_cv_c_nbby = failed; then
9306 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9307 else
9309 cat >>confdefs.h <<_ACEOF
9310 #define CHAR_BIT $gcc_cv_c_nbby
9311 _ACEOF
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9316 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9317 if ${ac_cv_c_bigendian+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_cv_c_bigendian=unknown
9321 # See if we're dealing with a universal compiler.
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 #ifndef __APPLE_CC__
9325 not a universal capable compiler
9326 #endif
9327 typedef int dummy;
9329 _ACEOF
9330 if ac_fn_cxx_try_compile "$LINENO"; then :
9332 # Check for potential -arch flags. It is not universal unless
9333 # there are at least two -arch flags with different values.
9334 ac_arch=
9335 ac_prev=
9336 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9337 if test -n "$ac_prev"; then
9338 case $ac_word in
9339 i?86 | x86_64 | ppc | ppc64)
9340 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9341 ac_arch=$ac_word
9342 else
9343 ac_cv_c_bigendian=universal
9344 break
9347 esac
9348 ac_prev=
9349 elif test "x$ac_word" = "x-arch"; then
9350 ac_prev=arch
9352 done
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 if test $ac_cv_c_bigendian = unknown; then
9356 # See if sys/param.h defines the BYTE_ORDER macro.
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 #include <sys/types.h>
9360 #include <sys/param.h>
9363 main ()
9365 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9366 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9367 && LITTLE_ENDIAN)
9368 bogus endian macros
9369 #endif
9372 return 0;
9374 _ACEOF
9375 if ac_fn_cxx_try_compile "$LINENO"; then :
9376 # It does; now see whether it defined to BIG_ENDIAN or not.
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include <sys/types.h>
9380 #include <sys/param.h>
9383 main ()
9385 #if BYTE_ORDER != BIG_ENDIAN
9386 not big endian
9387 #endif
9390 return 0;
9392 _ACEOF
9393 if ac_fn_cxx_try_compile "$LINENO"; then :
9394 ac_cv_c_bigendian=yes
9395 else
9396 ac_cv_c_bigendian=no
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 if test $ac_cv_c_bigendian = unknown; then
9403 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <limits.h>
9409 main ()
9411 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9412 bogus endian macros
9413 #endif
9416 return 0;
9418 _ACEOF
9419 if ac_fn_cxx_try_compile "$LINENO"; then :
9420 # It does; now see whether it defined to _BIG_ENDIAN or not.
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 #include <limits.h>
9426 main ()
9428 #ifndef _BIG_ENDIAN
9429 not big endian
9430 #endif
9433 return 0;
9435 _ACEOF
9436 if ac_fn_cxx_try_compile "$LINENO"; then :
9437 ac_cv_c_bigendian=yes
9438 else
9439 ac_cv_c_bigendian=no
9441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 if test $ac_cv_c_bigendian = unknown; then
9446 # Compile a test program.
9447 if test "$cross_compiling" = yes; then :
9448 # Try to guess by grepping values from an object file.
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 short int ascii_mm[] =
9452 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9453 short int ascii_ii[] =
9454 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9455 int use_ascii (int i) {
9456 return ascii_mm[i] + ascii_ii[i];
9458 short int ebcdic_ii[] =
9459 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9460 short int ebcdic_mm[] =
9461 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9462 int use_ebcdic (int i) {
9463 return ebcdic_mm[i] + ebcdic_ii[i];
9465 extern int foo;
9468 main ()
9470 return use_ascii (foo) == use_ebcdic (foo);
9472 return 0;
9474 _ACEOF
9475 if ac_fn_cxx_try_compile "$LINENO"; then :
9476 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9477 ac_cv_c_bigendian=yes
9479 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9480 if test "$ac_cv_c_bigendian" = unknown; then
9481 ac_cv_c_bigendian=no
9482 else
9483 # finding both strings is unlikely to happen, but who knows?
9484 ac_cv_c_bigendian=unknown
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 else
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 $ac_includes_default
9494 main ()
9497 /* Are we little or big endian? From Harbison&Steele. */
9498 union
9500 long int l;
9501 char c[sizeof (long int)];
9502 } u;
9503 u.l = 1;
9504 return u.c[sizeof (long int) - 1] == 1;
9507 return 0;
9509 _ACEOF
9510 if ac_fn_cxx_try_run "$LINENO"; then :
9511 ac_cv_c_bigendian=no
9512 else
9513 ac_cv_c_bigendian=yes
9515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9516 conftest.$ac_objext conftest.beam conftest.$ac_ext
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9522 $as_echo "$ac_cv_c_bigendian" >&6; }
9523 case $ac_cv_c_bigendian in #(
9524 yes)
9525 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9526 ;; #(
9528 ;; #(
9529 universal)
9531 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9533 ;; #(
9535 as_fn_error $? "unknown endianness
9536 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9537 esac
9540 # ----------------------
9541 # Checks for C++ headers
9542 # ----------------------
9544 ac_ext=cpp
9545 ac_cpp='$CXXCPP $CPPFLAGS'
9546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9550 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9551 if test -z "$CXXCPP"; then
9552 if ${ac_cv_prog_CXXCPP+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 # Double quotes because CXXCPP needs to be expanded
9556 for CXXCPP in "$CXX -E" "/lib/cpp"
9558 ac_preproc_ok=false
9559 for ac_cxx_preproc_warn_flag in '' yes
9561 # Use a header file that comes with gcc, so configuring glibc
9562 # with a fresh cross-compiler works.
9563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 # <limits.h> exists even on freestanding compilers.
9565 # On the NeXT, cc -E runs the code through the compiler's parser,
9566 # not just through cpp. "Syntax error" is here to catch this case.
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9569 #ifdef __STDC__
9570 # include <limits.h>
9571 #else
9572 # include <assert.h>
9573 #endif
9574 Syntax error
9575 _ACEOF
9576 if ac_fn_cxx_try_cpp "$LINENO"; then :
9578 else
9579 # Broken: fails on valid input.
9580 continue
9582 rm -f conftest.err conftest.i conftest.$ac_ext
9584 # OK, works on sane cases. Now check whether nonexistent headers
9585 # can be detected and how.
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #include <ac_nonexistent.h>
9589 _ACEOF
9590 if ac_fn_cxx_try_cpp "$LINENO"; then :
9591 # Broken: success on invalid input.
9592 continue
9593 else
9594 # Passes both tests.
9595 ac_preproc_ok=:
9596 break
9598 rm -f conftest.err conftest.i conftest.$ac_ext
9600 done
9601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9602 rm -f conftest.i conftest.err conftest.$ac_ext
9603 if $ac_preproc_ok; then :
9604 break
9607 done
9608 ac_cv_prog_CXXCPP=$CXXCPP
9611 CXXCPP=$ac_cv_prog_CXXCPP
9612 else
9613 ac_cv_prog_CXXCPP=$CXXCPP
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9616 $as_echo "$CXXCPP" >&6; }
9617 ac_preproc_ok=false
9618 for ac_cxx_preproc_warn_flag in '' yes
9620 # Use a header file that comes with gcc, so configuring glibc
9621 # with a fresh cross-compiler works.
9622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 # <limits.h> exists even on freestanding compilers.
9624 # On the NeXT, cc -E runs the code through the compiler's parser,
9625 # not just through cpp. "Syntax error" is here to catch this case.
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #ifdef __STDC__
9629 # include <limits.h>
9630 #else
9631 # include <assert.h>
9632 #endif
9633 Syntax error
9634 _ACEOF
9635 if ac_fn_cxx_try_cpp "$LINENO"; then :
9637 else
9638 # Broken: fails on valid input.
9639 continue
9641 rm -f conftest.err conftest.i conftest.$ac_ext
9643 # OK, works on sane cases. Now check whether nonexistent headers
9644 # can be detected and how.
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <ac_nonexistent.h>
9648 _ACEOF
9649 if ac_fn_cxx_try_cpp "$LINENO"; then :
9650 # Broken: success on invalid input.
9651 continue
9652 else
9653 # Passes both tests.
9654 ac_preproc_ok=:
9655 break
9657 rm -f conftest.err conftest.i conftest.$ac_ext
9659 done
9660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9661 rm -f conftest.i conftest.err conftest.$ac_ext
9662 if $ac_preproc_ok; then :
9664 else
9665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9668 See \`config.log' for more details" >&5
9669 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9670 See \`config.log' for more details" >&2;}; }
9673 ac_ext=cpp
9674 ac_cpp='$CXXCPP $CPPFLAGS'
9675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9680 for ac_header in unordered_map
9681 do :
9682 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9683 if test "x$ac_cv_header_unordered_map" = xyes; then :
9684 cat >>confdefs.h <<_ACEOF
9685 #define HAVE_UNORDERED_MAP 1
9686 _ACEOF
9689 done
9691 for ac_header in tr1/unordered_map
9692 do :
9693 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9694 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_TR1_UNORDERED_MAP 1
9697 _ACEOF
9700 done
9702 for ac_header in ext/hash_map
9703 do :
9704 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9705 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9706 cat >>confdefs.h <<_ACEOF
9707 #define HAVE_EXT_HASH_MAP 1
9708 _ACEOF
9711 done
9714 # --------
9715 # Dependency checking.
9716 # --------
9718 rm -rf .tst 2>/dev/null
9719 mkdir .tst 2>/dev/null
9720 if test -d .tst; then
9721 am__leading_dot=.
9722 else
9723 am__leading_dot=_
9725 rmdir .tst 2>/dev/null
9727 DEPDIR="${am__leading_dot}deps"
9729 ac_config_commands="$ac_config_commands depdir"
9732 ac_config_commands="$ac_config_commands gccdepdir"
9735 depcc="$CXX" am_compiler_list=
9737 am_depcomp=$ac_aux_dir/depcomp
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9739 $as_echo_n "checking dependency style of $depcc... " >&6; }
9740 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 if test -f "$am_depcomp"; then
9744 # We make a subdir and do the tests there. Otherwise we can end up
9745 # making bogus files that we don't know about and never remove. For
9746 # instance it was reported that on HP-UX the gcc test will end up
9747 # making a dummy file named `D' -- because `-MD' means `put the output
9748 # in D'.
9749 mkdir conftest.dir
9750 # Copy depcomp to subdir because otherwise we won't find it if we're
9751 # using a relative directory.
9752 cp "$am_depcomp" conftest.dir
9753 cd conftest.dir
9754 # We will build objects and dependencies in a subdirectory because
9755 # it helps to detect inapplicable dependency modes. For instance
9756 # both Tru64's cc and ICC support -MD to output dependencies as a
9757 # side effect of compilation, but ICC will put the dependencies in
9758 # the current directory while Tru64 will put them in the object
9759 # directory.
9760 mkdir sub
9762 am_cv_CXX_dependencies_compiler_type=none
9763 if test "$am_compiler_list" = ""; then
9764 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9766 for depmode in $am_compiler_list; do
9767 if test $depmode = none; then break; fi
9769 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9770 # Setup a source with many dependencies, because some compilers
9771 # like to wrap large dependency lists on column 80 (with \), and
9772 # we should not choose a depcomp mode which is confused by this.
9774 # We need to recreate these files for each test, as the compiler may
9775 # overwrite some of them when testing with obscure command lines.
9776 # This happens at least with the AIX C compiler.
9777 : > sub/conftest.c
9778 for i in 1 2 3 4 5 6; do
9779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9780 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9781 # Solaris 8's {/usr,}/bin/sh.
9782 touch sub/conftst$i.h
9783 done
9784 echo "include sub/conftest.Po" > confmf
9786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9787 # mode. It turns out that the SunPro C++ compiler does not properly
9788 # handle `-M -o', and we need to detect this.
9789 depcmd="depmode=$depmode \
9790 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9792 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9793 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9794 if env $depcmd > conftest.err 2>&1 &&
9795 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9796 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9797 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9798 # icc doesn't choke on unknown options, it will just issue warnings
9799 # or remarks (even with -Werror). So we grep stderr for any message
9800 # that says an option was ignored or not supported.
9801 # When given -MP, icc 7.0 and 7.1 complain thusly:
9802 # icc: Command line warning: ignoring option '-M'; no argument required
9803 # The diagnosis changed in icc 8.0:
9804 # icc: Command line remark: option '-MP' not supported
9805 if (grep 'ignoring option' conftest.err ||
9806 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9807 am_cv_CXX_dependencies_compiler_type=$depmode
9808 $as_echo "$as_me:$LINENO: success" >&5
9809 break
9812 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9813 sed -e 's/^/| /' < conftest.err >&5
9814 done
9816 cd ..
9817 rm -rf conftest.dir
9818 else
9819 am_cv_CXX_dependencies_compiler_type=none
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9824 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9825 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9826 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9827 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9832 # --------
9833 # UNSORTED
9834 # --------
9837 # These libraries may be used by collect2.
9838 # We may need a special search path to get them linked.
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9840 $as_echo_n "checking for collect2 libraries... " >&6; }
9841 if ${gcc_cv_collect2_libs+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 save_LIBS="$LIBS"
9845 for libs in '' -lld -lmld \
9846 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9847 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9849 LIBS="$libs"
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char ldopen ();
9861 main ()
9863 return ldopen ();
9865 return 0;
9867 _ACEOF
9868 if ac_fn_cxx_try_link "$LINENO"; then :
9869 gcc_cv_collect2_libs="$libs"; break
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 done
9874 LIBS="$save_LIBS"
9875 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9878 $as_echo "$gcc_cv_collect2_libs" >&6; }
9879 case $gcc_cv_collect2_libs in
9880 "none required") ;;
9881 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9882 esac
9885 # When building Ada code on Alpha, we need exc_resume which is usually in
9886 # -lexc. So test for it.
9887 save_LIBS="$LIBS"
9888 LIBS=
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9890 $as_echo_n "checking for library containing exc_resume... " >&6; }
9891 if ${ac_cv_search_exc_resume+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 ac_func_search_save_LIBS=$LIBS
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char exc_resume ();
9906 main ()
9908 return exc_resume ();
9910 return 0;
9912 _ACEOF
9913 for ac_lib in '' exc; do
9914 if test -z "$ac_lib"; then
9915 ac_res="none required"
9916 else
9917 ac_res=-l$ac_lib
9918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9920 if ac_fn_cxx_try_link "$LINENO"; then :
9921 ac_cv_search_exc_resume=$ac_res
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext
9925 if ${ac_cv_search_exc_resume+:} false; then :
9926 break
9928 done
9929 if ${ac_cv_search_exc_resume+:} false; then :
9931 else
9932 ac_cv_search_exc_resume=no
9934 rm conftest.$ac_ext
9935 LIBS=$ac_func_search_save_LIBS
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9938 $as_echo "$ac_cv_search_exc_resume" >&6; }
9939 ac_res=$ac_cv_search_exc_resume
9940 if test "$ac_res" != no; then :
9941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9945 GNAT_LIBEXC="$LIBS"
9946 LIBS="$save_LIBS"
9949 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9950 save_LIBS="$LIBS"
9951 LIBS=
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9953 $as_echo_n "checking for library containing kstat_open... " >&6; }
9954 if ${ac_cv_search_kstat_open+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 ac_func_search_save_LIBS=$LIBS
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 char kstat_open ();
9969 main ()
9971 return kstat_open ();
9973 return 0;
9975 _ACEOF
9976 for ac_lib in '' kstat; do
9977 if test -z "$ac_lib"; then
9978 ac_res="none required"
9979 else
9980 ac_res=-l$ac_lib
9981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9983 if ac_fn_cxx_try_link "$LINENO"; then :
9984 ac_cv_search_kstat_open=$ac_res
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext
9988 if ${ac_cv_search_kstat_open+:} false; then :
9989 break
9991 done
9992 if ${ac_cv_search_kstat_open+:} false; then :
9994 else
9995 ac_cv_search_kstat_open=no
9997 rm conftest.$ac_ext
9998 LIBS=$ac_func_search_save_LIBS
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10001 $as_echo "$ac_cv_search_kstat_open" >&6; }
10002 ac_res=$ac_cv_search_kstat_open
10003 if test "$ac_res" != no; then :
10004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10008 EXTRA_GCC_LIBS="$LIBS"
10009 LIBS="$save_LIBS"
10012 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10013 # C++ needs those for libcody.
10014 save_LIBS="$LIBS"
10015 LIBS=
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10018 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10019 if ${ac_cv_search_gethostbyname+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 ac_func_search_save_LIBS=$LIBS
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10029 #ifdef __cplusplus
10030 extern "C"
10031 #endif
10032 char gethostbyname ();
10034 main ()
10036 return gethostbyname ();
10038 return 0;
10040 _ACEOF
10041 for ac_lib in '' nsl; do
10042 if test -z "$ac_lib"; then
10043 ac_res="none required"
10044 else
10045 ac_res=-l$ac_lib
10046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10048 if ac_fn_cxx_try_link "$LINENO"; then :
10049 ac_cv_search_gethostbyname=$ac_res
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext
10053 if ${ac_cv_search_gethostbyname+:} false; then :
10054 break
10056 done
10057 if ${ac_cv_search_gethostbyname+:} false; then :
10059 else
10060 ac_cv_search_gethostbyname=no
10062 rm conftest.$ac_ext
10063 LIBS=$ac_func_search_save_LIBS
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10066 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10067 ac_res=$ac_cv_search_gethostbyname
10068 if test "$ac_res" != no; then :
10069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10074 $as_echo_n "checking for library containing socket... " >&6; }
10075 if ${ac_cv_search_socket+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 ac_func_search_save_LIBS=$LIBS
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10082 /* Override any GCC internal prototype to avoid an error.
10083 Use char because int might match the return type of a GCC
10084 builtin and then its argument prototype would still apply. */
10085 #ifdef __cplusplus
10086 extern "C"
10087 #endif
10088 char socket ();
10090 main ()
10092 return socket ();
10094 return 0;
10096 _ACEOF
10097 for ac_lib in '' socket; do
10098 if test -z "$ac_lib"; then
10099 ac_res="none required"
10100 else
10101 ac_res=-l$ac_lib
10102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10104 if ac_fn_cxx_try_link "$LINENO"; then :
10105 ac_cv_search_socket=$ac_res
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext
10109 if ${ac_cv_search_socket+:} false; then :
10110 break
10112 done
10113 if ${ac_cv_search_socket+:} false; then :
10115 else
10116 ac_cv_search_socket=no
10118 rm conftest.$ac_ext
10119 LIBS=$ac_func_search_save_LIBS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10122 $as_echo "$ac_cv_search_socket" >&6; }
10123 ac_res=$ac_cv_search_socket
10124 if test "$ac_res" != no; then :
10125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10127 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10130 $as_echo_n "checking for socket in -lsocket... " >&6; }
10131 if ${ac_cv_lib_socket_socket+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsocket -lnsl $LIBS"
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char socket ();
10147 main ()
10149 return socket ();
10151 return 0;
10153 _ACEOF
10154 if ac_fn_cxx_try_link "$LINENO"; then :
10155 ac_cv_lib_socket_socket=yes
10156 else
10157 ac_cv_lib_socket_socket=no
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10164 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10165 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10166 LIBS="-lsocket -lnsl $LIBS"
10172 NETLIBS="$LIBS"
10173 LIBS="$save_LIBS"
10176 # Some systems put ldexp and frexp in libm instead of libc; assume
10177 # they're both in the same place. jcf-dump needs them.
10178 save_LIBS="$LIBS"
10179 LIBS=
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10181 $as_echo_n "checking for library containing ldexp... " >&6; }
10182 if ${ac_cv_search_ldexp+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 ac_func_search_save_LIBS=$LIBS
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char ldexp ();
10197 main ()
10199 return ldexp ();
10201 return 0;
10203 _ACEOF
10204 for ac_lib in '' m; do
10205 if test -z "$ac_lib"; then
10206 ac_res="none required"
10207 else
10208 ac_res=-l$ac_lib
10209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10211 if ac_fn_cxx_try_link "$LINENO"; then :
10212 ac_cv_search_ldexp=$ac_res
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext
10216 if ${ac_cv_search_ldexp+:} false; then :
10217 break
10219 done
10220 if ${ac_cv_search_ldexp+:} false; then :
10222 else
10223 ac_cv_search_ldexp=no
10225 rm conftest.$ac_ext
10226 LIBS=$ac_func_search_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10229 $as_echo "$ac_cv_search_ldexp" >&6; }
10230 ac_res=$ac_cv_search_ldexp
10231 if test "$ac_res" != no; then :
10232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10236 LDEXP_LIB="$LIBS"
10237 LIBS="$save_LIBS"
10240 # Some systems need dlopen
10241 save_LIBS="$LIBS"
10242 LIBS=
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10244 $as_echo_n "checking for library containing dlopen... " >&6; }
10245 if ${ac_cv_search_dlopen+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_func_search_save_LIBS=$LIBS
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char dlopen ();
10260 main ()
10262 return dlopen ();
10264 return 0;
10266 _ACEOF
10267 for ac_lib in '' dl; do
10268 if test -z "$ac_lib"; then
10269 ac_res="none required"
10270 else
10271 ac_res=-l$ac_lib
10272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10274 if ac_fn_cxx_try_link "$LINENO"; then :
10275 ac_cv_search_dlopen=$ac_res
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext
10279 if ${ac_cv_search_dlopen+:} false; then :
10280 break
10282 done
10283 if ${ac_cv_search_dlopen+:} false; then :
10285 else
10286 ac_cv_search_dlopen=no
10288 rm conftest.$ac_ext
10289 LIBS=$ac_func_search_save_LIBS
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10292 $as_echo "$ac_cv_search_dlopen" >&6; }
10293 ac_res=$ac_cv_search_dlopen
10294 if test "$ac_res" != no; then :
10295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10299 DL_LIB="$LIBS"
10300 LIBS="$save_LIBS"
10303 # Use <inttypes.h> only if it exists,
10304 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10305 # PRId64
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10307 $as_echo_n "checking for inttypes.h... " >&6; }
10308 if ${gcc_cv_header_inttypes_h+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 #define __STDC_FORMAT_MACROS
10314 #include <sys/types.h>
10315 #include <inttypes.h>
10317 main ()
10319 intmax_t i = -1;
10320 #ifndef PRId64
10321 choke me
10322 #endif
10324 return 0;
10326 _ACEOF
10327 if ac_fn_cxx_try_compile "$LINENO"; then :
10328 gcc_cv_header_inttypes_h=yes
10329 else
10330 gcc_cv_header_inttypes_h=no
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10336 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10337 if test $gcc_cv_header_inttypes_h = yes; then
10339 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10343 # Look for the ZSTD package.
10344 ZSTD_INCLUDE=
10345 ZSTD_LIB=
10348 ZSTD_CPPFLAGS=
10349 ZSTD_LDFLAGS=
10353 # Check whether --with-zstd was given.
10354 if test "${with_zstd+set}" = set; then :
10355 withval=$with_zstd;
10359 # Check whether --with-zstd-include was given.
10360 if test "${with_zstd_include+set}" = set; then :
10361 withval=$with_zstd_include;
10365 # Check whether --with-zstd-lib was given.
10366 if test "${with_zstd_lib+set}" = set; then :
10367 withval=$with_zstd_lib;
10370 case "x$with_zstd" in
10371 x) ;;
10372 xno)
10373 ZSTD_INCLUDE=
10374 ZSTD_LIB=
10376 *) ZSTD_INCLUDE=$with_zstd/include
10377 ZSTD_LIB=$with_zstd/lib
10379 esac
10381 if test "x$with_zstd" != xno; then
10382 if test "x$with_zstd_include" != x; then
10383 ZSTD_INCLUDE=$with_zstd_include
10385 if test "x$with_zstd_lib" != x; then
10386 ZSTD_LIB=$with_zstd_lib
10388 if test "x$ZSTD_INCLUDE" != x \
10389 && test "x$ZSTD_INCLUDE" != xno; then
10390 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10392 if test "x$ZSTD_LIB" != x \
10393 && test "x$ZSTD_LIB" != xno; then
10394 ZSTD_LDFLAGS=-L$ZSTD_LIB
10397 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10398 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10401 $as_echo_n "checking for zstd.h... " >&6; }
10402 if ${gcc_cv_header_zstd_h+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 # We require version 1.3.0 or later. This is the first version that has
10406 # ZSTD_getFrameContentSize.
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409 #include <zstd.h>
10410 #if ZSTD_VERSION_NUMBER < 10300
10411 #error "need zstd 1.3.0 or better"
10412 #endif
10414 main ()
10418 return 0;
10420 _ACEOF
10421 if ac_fn_cxx_try_compile "$LINENO"; then :
10422 gcc_cv_header_zstd_h=yes
10423 else
10424 gcc_cv_header_zstd_h=no
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10430 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10431 if test $gcc_cv_header_zstd_h = yes; then
10433 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10435 elif test "x$with_zstd" != x; then
10436 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10439 # LTO can use zstd compression algorithm
10440 save_LIBS="$LIBS"
10441 LIBS=
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10443 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10444 if ${ac_cv_search_ZSTD_compress+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 ac_func_search_save_LIBS=$LIBS
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char ZSTD_compress ();
10459 main ()
10461 return ZSTD_compress ();
10463 return 0;
10465 _ACEOF
10466 for ac_lib in '' zstd; do
10467 if test -z "$ac_lib"; then
10468 ac_res="none required"
10469 else
10470 ac_res=-l$ac_lib
10471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10473 if ac_fn_cxx_try_link "$LINENO"; then :
10474 ac_cv_search_ZSTD_compress=$ac_res
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext
10478 if ${ac_cv_search_ZSTD_compress+:} false; then :
10479 break
10481 done
10482 if ${ac_cv_search_ZSTD_compress+:} false; then :
10484 else
10485 ac_cv_search_ZSTD_compress=no
10487 rm conftest.$ac_ext
10488 LIBS=$ac_func_search_save_LIBS
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10491 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10492 ac_res=$ac_cv_search_ZSTD_compress
10493 if test "$ac_res" != no; then :
10494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10498 ZSTD_LIB="$LIBS"
10499 LIBS="$save_LIBS"
10505 for ac_func in times clock kill getrlimit setrlimit atoq \
10506 popen sysconf strsignal getrusage nl_langinfo \
10507 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10508 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
10509 do :
10510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10511 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10512 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10513 cat >>confdefs.h <<_ACEOF
10514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10515 _ACEOF
10518 done
10521 if test x$ac_cv_func_mbstowcs = xyes; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10523 $as_echo_n "checking whether mbstowcs works... " >&6; }
10524 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if test "$cross_compiling" = yes; then :
10528 gcc_cv_func_mbstowcs_works=yes
10529 else
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 #include <stdlib.h>
10533 int main()
10535 mbstowcs(0, "", 0);
10536 return 0;
10538 _ACEOF
10539 if ac_fn_cxx_try_run "$LINENO"; then :
10540 gcc_cv_func_mbstowcs_works=yes
10541 else
10542 gcc_cv_func_mbstowcs_works=no
10544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10545 conftest.$ac_objext conftest.beam conftest.$ac_ext
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10550 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10551 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10553 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10558 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10559 if test "x$ac_cv_type_ssize_t" = xyes; then :
10561 else
10563 cat >>confdefs.h <<_ACEOF
10564 #define ssize_t int
10565 _ACEOF
10569 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10570 if test "x$ac_cv_type_caddr_t" = xyes; then :
10572 else
10574 cat >>confdefs.h <<_ACEOF
10575 #define caddr_t char *
10576 _ACEOF
10580 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10582 if test "x$ac_cv_type_sighander_t" = xyes; then :
10584 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10590 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10591 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10592 gcc_header_sys_mman_h=yes
10593 else
10594 gcc_header_sys_mman_h=no
10597 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10598 if test "x$ac_cv_func_mmap" = xyes; then :
10599 gcc_func_mmap=yes
10600 else
10601 gcc_func_mmap=no
10604 if test "$gcc_header_sys_mman_h" != yes \
10605 || test "$gcc_func_mmap" != yes; then
10606 gcc_cv_func_mmap_file=no
10607 gcc_cv_func_mmap_dev_zero=no
10608 gcc_cv_func_mmap_anon=no
10609 else
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10611 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10612 if ${gcc_cv_func_mmap_file+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 # Add a system to this blacklist if
10616 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10617 # memory area containing the same data that you'd get if you applied
10618 # read() to the same fd. The only system known to have a problem here
10619 # is VMS, where text files have record structure.
10620 case "$host_os" in
10621 *vms* | ultrix*)
10622 gcc_cv_func_mmap_file=no ;;
10624 gcc_cv_func_mmap_file=yes;;
10625 esac
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10628 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10630 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10631 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 # Add a system to this blacklist if it has mmap() but /dev/zero
10635 # does not exist, or if mmapping /dev/zero does not give anonymous
10636 # zeroed pages with both the following properties:
10637 # 1. If you map N consecutive pages in with one call, and then
10638 # unmap any subset of those pages, the pages that were not
10639 # explicitly unmapped remain accessible.
10640 # 2. If you map two adjacent blocks of memory and then unmap them
10641 # both at once, they must both go away.
10642 # Systems known to be in this category are Windows (all variants),
10643 # VMS, and Darwin.
10644 case "$host_os" in
10645 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10646 gcc_cv_func_mmap_dev_zero=no ;;
10648 gcc_cv_func_mmap_dev_zero=yes;;
10649 esac
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10652 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10654 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10656 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10657 if ${gcc_cv_decl_map_anon+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 #include <sys/types.h>
10663 #include <sys/mman.h>
10664 #include <unistd.h>
10666 #ifndef MAP_ANONYMOUS
10667 #define MAP_ANONYMOUS MAP_ANON
10668 #endif
10671 main ()
10673 int n = MAP_ANONYMOUS;
10675 return 0;
10677 _ACEOF
10678 if ac_fn_cxx_try_compile "$LINENO"; then :
10679 gcc_cv_decl_map_anon=yes
10680 else
10681 gcc_cv_decl_map_anon=no
10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10686 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10688 if test $gcc_cv_decl_map_anon = no; then
10689 gcc_cv_func_mmap_anon=no
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10692 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10693 if ${gcc_cv_func_mmap_anon+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10697 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10698 # doesn't give anonymous zeroed pages with the same properties listed
10699 # above for use of /dev/zero.
10700 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10701 case "$host_os" in
10702 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10703 gcc_cv_func_mmap_anon=no ;;
10705 gcc_cv_func_mmap_anon=yes;;
10706 esac
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10709 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10713 if test $gcc_cv_func_mmap_file = yes; then
10715 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10718 if test $gcc_cv_func_mmap_dev_zero = yes; then
10720 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10723 if test $gcc_cv_func_mmap_anon = yes; then
10725 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10730 case "${host}" in
10731 *-*-*vms*)
10732 # Under VMS, vfork works very differently than on Unix. The standard test
10733 # won't work, and it isn't easily adaptable. It makes more sense to
10734 # just force it.
10735 ac_cv_func_vfork_works=yes
10737 esac
10738 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10739 if test "x$ac_cv_type_pid_t" = xyes; then :
10741 else
10743 cat >>confdefs.h <<_ACEOF
10744 #define pid_t int
10745 _ACEOF
10749 for ac_header in vfork.h
10750 do :
10751 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10752 if test "x$ac_cv_header_vfork_h" = xyes; then :
10753 cat >>confdefs.h <<_ACEOF
10754 #define HAVE_VFORK_H 1
10755 _ACEOF
10758 done
10760 for ac_func in fork vfork
10761 do :
10762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10764 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10765 cat >>confdefs.h <<_ACEOF
10766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10767 _ACEOF
10770 done
10772 if test "x$ac_cv_func_fork" = xyes; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10774 $as_echo_n "checking for working fork... " >&6; }
10775 if ${ac_cv_func_fork_works+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 if test "$cross_compiling" = yes; then :
10779 ac_cv_func_fork_works=cross
10780 else
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 $ac_includes_default
10785 main ()
10788 /* By Ruediger Kuhlmann. */
10789 return fork () < 0;
10792 return 0;
10794 _ACEOF
10795 if ac_fn_cxx_try_run "$LINENO"; then :
10796 ac_cv_func_fork_works=yes
10797 else
10798 ac_cv_func_fork_works=no
10800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10801 conftest.$ac_objext conftest.beam conftest.$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10806 $as_echo "$ac_cv_func_fork_works" >&6; }
10808 else
10809 ac_cv_func_fork_works=$ac_cv_func_fork
10811 if test "x$ac_cv_func_fork_works" = xcross; then
10812 case $host in
10813 *-*-amigaos* | *-*-msdosdjgpp*)
10814 # Override, as these systems have only a dummy fork() stub
10815 ac_cv_func_fork_works=no
10818 ac_cv_func_fork_works=yes
10820 esac
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10822 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10824 ac_cv_func_vfork_works=$ac_cv_func_vfork
10825 if test "x$ac_cv_func_vfork" = xyes; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10827 $as_echo_n "checking for working vfork... " >&6; }
10828 if ${ac_cv_func_vfork_works+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 if test "$cross_compiling" = yes; then :
10832 ac_cv_func_vfork_works=cross
10833 else
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 /* Thanks to Paul Eggert for this test. */
10837 $ac_includes_default
10838 #include <sys/wait.h>
10839 #ifdef HAVE_VFORK_H
10840 # include <vfork.h>
10841 #endif
10842 /* On some sparc systems, changes by the child to local and incoming
10843 argument registers are propagated back to the parent. The compiler
10844 is told about this with #include <vfork.h>, but some compilers
10845 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10846 static variable whose address is put into a register that is
10847 clobbered by the vfork. */
10848 static void
10849 #ifdef __cplusplus
10850 sparc_address_test (int arg)
10851 # else
10852 sparc_address_test (arg) int arg;
10853 #endif
10855 static pid_t child;
10856 if (!child) {
10857 child = vfork ();
10858 if (child < 0) {
10859 perror ("vfork");
10860 _exit(2);
10862 if (!child) {
10863 arg = getpid();
10864 write(-1, "", 0);
10865 _exit (arg);
10871 main ()
10873 pid_t parent = getpid ();
10874 pid_t child;
10876 sparc_address_test (0);
10878 child = vfork ();
10880 if (child == 0) {
10881 /* Here is another test for sparc vfork register problems. This
10882 test uses lots of local variables, at least as many local
10883 variables as main has allocated so far including compiler
10884 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10885 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10886 reuse the register of parent for one of the local variables,
10887 since it will think that parent can't possibly be used any more
10888 in this routine. Assigning to the local variable will thus
10889 munge parent in the parent process. */
10890 pid_t
10891 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10892 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10893 /* Convince the compiler that p..p7 are live; otherwise, it might
10894 use the same hardware register for all 8 local variables. */
10895 if (p != p1 || p != p2 || p != p3 || p != p4
10896 || p != p5 || p != p6 || p != p7)
10897 _exit(1);
10899 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10900 from child file descriptors. If the child closes a descriptor
10901 before it execs or exits, this munges the parent's descriptor
10902 as well. Test for this by closing stdout in the child. */
10903 _exit(close(fileno(stdout)) != 0);
10904 } else {
10905 int status;
10906 struct stat st;
10908 while (wait(&status) != child)
10910 return (
10911 /* Was there some problem with vforking? */
10912 child < 0
10914 /* Did the child fail? (This shouldn't happen.) */
10915 || status
10917 /* Did the vfork/compiler bug occur? */
10918 || parent != getpid()
10920 /* Did the file descriptor bug occur? */
10921 || fstat(fileno(stdout), &st) != 0
10925 _ACEOF
10926 if ac_fn_cxx_try_run "$LINENO"; then :
10927 ac_cv_func_vfork_works=yes
10928 else
10929 ac_cv_func_vfork_works=no
10931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10932 conftest.$ac_objext conftest.beam conftest.$ac_ext
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10937 $as_echo "$ac_cv_func_vfork_works" >&6; }
10940 if test "x$ac_cv_func_fork_works" = xcross; then
10941 ac_cv_func_vfork_works=$ac_cv_func_vfork
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10943 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10946 if test "x$ac_cv_func_vfork_works" = xyes; then
10948 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10950 else
10952 $as_echo "#define vfork fork" >>confdefs.h
10955 if test "x$ac_cv_func_fork_works" = xyes; then
10957 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10963 if test "X$prefix" = "XNONE"; then
10964 acl_final_prefix="$ac_default_prefix"
10965 else
10966 acl_final_prefix="$prefix"
10968 if test "X$exec_prefix" = "XNONE"; then
10969 acl_final_exec_prefix='${prefix}'
10970 else
10971 acl_final_exec_prefix="$exec_prefix"
10973 acl_save_prefix="$prefix"
10974 prefix="$acl_final_prefix"
10975 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10976 prefix="$acl_save_prefix"
10979 # Check whether --with-gnu-ld was given.
10980 if test "${with_gnu_ld+set}" = set; then :
10981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10982 else
10983 with_gnu_ld=no
10986 # Prepare PATH_SEPARATOR.
10987 # The user is always right.
10988 if test "${PATH_SEPARATOR+set}" != set; then
10989 echo "#! /bin/sh" >conf$$.sh
10990 echo "exit 0" >>conf$$.sh
10991 chmod +x conf$$.sh
10992 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10993 PATH_SEPARATOR=';'
10994 else
10995 PATH_SEPARATOR=:
10997 rm -f conf$$.sh
10999 ac_prog=ld
11000 if test "$GCC" = yes; then
11001 # Check if gcc -print-prog-name=ld gives a path.
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11003 $as_echo_n "checking for ld used by GCC... " >&6; }
11004 case $host in
11005 *-*-mingw*)
11006 # gcc leaves a trailing carriage return which upsets mingw
11007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11010 esac
11011 case $ac_prog in
11012 # Accept absolute paths.
11013 [\\/]* | [A-Za-z]:[\\/]*)
11014 re_direlt='/[^/][^/]*/\.\./'
11015 # Canonicalize the path of ld
11016 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11017 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11018 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11019 done
11020 test -z "$LD" && LD="$ac_prog"
11023 # If it fails, then pretend we aren't using GCC.
11024 ac_prog=ld
11027 # If it is relative, then search for the first ld in PATH.
11028 with_gnu_ld=unknown
11030 esac
11031 elif test "$with_gnu_ld" = yes; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11033 $as_echo_n "checking for GNU ld... " >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11036 $as_echo_n "checking for non-GNU ld... " >&6; }
11038 if ${acl_cv_path_LD+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 if test -z "$LD"; then
11042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11043 for ac_dir in $PATH; do
11044 test -z "$ac_dir" && ac_dir=.
11045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11046 acl_cv_path_LD="$ac_dir/$ac_prog"
11047 # Check to see if the program is GNU ld. I'd rather use --version,
11048 # but apparently some GNU ld's only accept -v.
11049 # Break only if it was the GNU/non-GNU ld that we prefer.
11050 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11051 test "$with_gnu_ld" != no && break
11052 else
11053 test "$with_gnu_ld" != yes && break
11056 done
11057 IFS="$ac_save_ifs"
11058 else
11059 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11063 LD="$acl_cv_path_LD"
11064 if test -n "$LD"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11066 $as_echo "$LD" >&6; }
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069 $as_echo "no" >&6; }
11071 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11073 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11074 if ${acl_cv_prog_gnu_ld+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11078 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11079 acl_cv_prog_gnu_ld=yes
11080 else
11081 acl_cv_prog_gnu_ld=no
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11085 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11086 with_gnu_ld=$acl_cv_prog_gnu_ld
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11091 $as_echo_n "checking for shared library run path origin... " >&6; }
11092 if ${acl_cv_rpath+:} false; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11096 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11097 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11098 . ./conftest.sh
11099 rm -f ./conftest.sh
11100 acl_cv_rpath=done
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11104 $as_echo "$acl_cv_rpath" >&6; }
11105 wl="$acl_cv_wl"
11106 libext="$acl_cv_libext"
11107 shlibext="$acl_cv_shlibext"
11108 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11109 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11110 hardcode_direct="$acl_cv_hardcode_direct"
11111 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11112 # Check whether --enable-rpath was given.
11113 if test "${enable_rpath+set}" = set; then :
11114 enableval=$enable_rpath; :
11115 else
11116 enable_rpath=yes
11126 use_additional=yes
11128 acl_save_prefix="$prefix"
11129 prefix="$acl_final_prefix"
11130 acl_save_exec_prefix="$exec_prefix"
11131 exec_prefix="$acl_final_exec_prefix"
11133 eval additional_includedir=\"$includedir\"
11134 eval additional_libdir=\"$libdir\"
11136 exec_prefix="$acl_save_exec_prefix"
11137 prefix="$acl_save_prefix"
11140 # Check whether --with-libiconv-prefix was given.
11141 if test "${with_libiconv_prefix+set}" = set; then :
11142 withval=$with_libiconv_prefix;
11143 if test "X$withval" = "Xno"; then
11144 use_additional=no
11145 else
11146 if test "X$withval" = "X"; then
11148 acl_save_prefix="$prefix"
11149 prefix="$acl_final_prefix"
11150 acl_save_exec_prefix="$exec_prefix"
11151 exec_prefix="$acl_final_exec_prefix"
11153 eval additional_includedir=\"$includedir\"
11154 eval additional_libdir=\"$libdir\"
11156 exec_prefix="$acl_save_exec_prefix"
11157 prefix="$acl_save_prefix"
11159 else
11160 additional_includedir="$withval/include"
11161 additional_libdir="$withval/lib"
11168 # Check whether --with-libiconv-type was given.
11169 if test "${with_libiconv_type+set}" = set; then :
11170 withval=$with_libiconv_type; with_libiconv_type=$withval
11171 else
11172 with_libiconv_type=auto
11175 lib_type=`eval echo \$with_libiconv_type`
11177 LIBICONV=
11178 LTLIBICONV=
11179 INCICONV=
11180 rpathdirs=
11181 ltrpathdirs=
11182 names_already_handled=
11183 names_next_round='iconv '
11184 while test -n "$names_next_round"; do
11185 names_this_round="$names_next_round"
11186 names_next_round=
11187 for name in $names_this_round; do
11188 already_handled=
11189 for n in $names_already_handled; do
11190 if test "$n" = "$name"; then
11191 already_handled=yes
11192 break
11194 done
11195 if test -z "$already_handled"; then
11196 names_already_handled="$names_already_handled $name"
11197 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11198 eval value=\"\$HAVE_LIB$uppername\"
11199 if test -n "$value"; then
11200 if test "$value" = yes; then
11201 eval value=\"\$LIB$uppername\"
11202 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11203 eval value=\"\$LTLIB$uppername\"
11204 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11205 else
11208 else
11209 found_dir=
11210 found_la=
11211 found_so=
11212 found_a=
11213 if test $use_additional = yes; then
11214 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11215 found_dir="$additional_libdir"
11216 found_so="$additional_libdir/lib$name.$shlibext"
11217 if test -f "$additional_libdir/lib$name.la"; then
11218 found_la="$additional_libdir/lib$name.la"
11220 elif test x$lib_type != xshared; then
11221 if test -f "$additional_libdir/lib$name.$libext"; then
11222 found_dir="$additional_libdir"
11223 found_a="$additional_libdir/lib$name.$libext"
11224 if test -f "$additional_libdir/lib$name.la"; then
11225 found_la="$additional_libdir/lib$name.la"
11230 if test "X$found_dir" = "X"; then
11231 for x in $LDFLAGS $LTLIBICONV; do
11233 acl_save_prefix="$prefix"
11234 prefix="$acl_final_prefix"
11235 acl_save_exec_prefix="$exec_prefix"
11236 exec_prefix="$acl_final_exec_prefix"
11237 eval x=\"$x\"
11238 exec_prefix="$acl_save_exec_prefix"
11239 prefix="$acl_save_prefix"
11241 case "$x" in
11242 -L*)
11243 dir=`echo "X$x" | sed -e 's/^X-L//'`
11244 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11245 found_dir="$dir"
11246 found_so="$dir/lib$name.$shlibext"
11247 if test -f "$dir/lib$name.la"; then
11248 found_la="$dir/lib$name.la"
11250 elif test x$lib_type != xshared; then
11251 if test -f "$dir/lib$name.$libext"; then
11252 found_dir="$dir"
11253 found_a="$dir/lib$name.$libext"
11254 if test -f "$dir/lib$name.la"; then
11255 found_la="$dir/lib$name.la"
11260 esac
11261 if test "X$found_dir" != "X"; then
11262 break
11264 done
11266 if test "X$found_dir" != "X"; then
11267 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11268 if test "X$found_so" != "X"; then
11269 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11270 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11271 else
11272 haveit=
11273 for x in $ltrpathdirs; do
11274 if test "X$x" = "X$found_dir"; then
11275 haveit=yes
11276 break
11278 done
11279 if test -z "$haveit"; then
11280 ltrpathdirs="$ltrpathdirs $found_dir"
11282 if test "$hardcode_direct" = yes; then
11283 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11284 else
11285 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11286 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11287 haveit=
11288 for x in $rpathdirs; do
11289 if test "X$x" = "X$found_dir"; then
11290 haveit=yes
11291 break
11293 done
11294 if test -z "$haveit"; then
11295 rpathdirs="$rpathdirs $found_dir"
11297 else
11298 haveit=
11299 for x in $LDFLAGS $LIBICONV; do
11301 acl_save_prefix="$prefix"
11302 prefix="$acl_final_prefix"
11303 acl_save_exec_prefix="$exec_prefix"
11304 exec_prefix="$acl_final_exec_prefix"
11305 eval x=\"$x\"
11306 exec_prefix="$acl_save_exec_prefix"
11307 prefix="$acl_save_prefix"
11309 if test "X$x" = "X-L$found_dir"; then
11310 haveit=yes
11311 break
11313 done
11314 if test -z "$haveit"; then
11315 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11317 if test "$hardcode_minus_L" != no; then
11318 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11319 else
11320 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11325 else
11326 if test "X$found_a" != "X"; then
11327 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11328 else
11329 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11332 additional_includedir=
11333 case "$found_dir" in
11334 */lib | */lib/)
11335 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11336 additional_includedir="$basedir/include"
11338 esac
11339 if test "X$additional_includedir" != "X"; then
11340 if test "X$additional_includedir" != "X/usr/include"; then
11341 haveit=
11342 if test "X$additional_includedir" = "X/usr/local/include"; then
11343 if test -n "$GCC"; then
11344 case $host_os in
11345 linux*) haveit=yes;;
11346 esac
11349 if test -z "$haveit"; then
11350 for x in $CPPFLAGS $INCICONV; do
11352 acl_save_prefix="$prefix"
11353 prefix="$acl_final_prefix"
11354 acl_save_exec_prefix="$exec_prefix"
11355 exec_prefix="$acl_final_exec_prefix"
11356 eval x=\"$x\"
11357 exec_prefix="$acl_save_exec_prefix"
11358 prefix="$acl_save_prefix"
11360 if test "X$x" = "X-I$additional_includedir"; then
11361 haveit=yes
11362 break
11364 done
11365 if test -z "$haveit"; then
11366 if test -d "$additional_includedir"; then
11367 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11373 if test -n "$found_la"; then
11374 save_libdir="$libdir"
11375 case "$found_la" in
11376 */* | *\\*) . "$found_la" ;;
11377 *) . "./$found_la" ;;
11378 esac
11379 libdir="$save_libdir"
11380 for dep in $dependency_libs; do
11381 case "$dep" in
11382 -L*)
11383 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11384 if test "X$additional_libdir" != "X/usr/lib"; then
11385 haveit=
11386 if test "X$additional_libdir" = "X/usr/local/lib"; then
11387 if test -n "$GCC"; then
11388 case $host_os in
11389 linux*) haveit=yes;;
11390 esac
11393 if test -z "$haveit"; then
11394 haveit=
11395 for x in $LDFLAGS $LIBICONV; do
11397 acl_save_prefix="$prefix"
11398 prefix="$acl_final_prefix"
11399 acl_save_exec_prefix="$exec_prefix"
11400 exec_prefix="$acl_final_exec_prefix"
11401 eval x=\"$x\"
11402 exec_prefix="$acl_save_exec_prefix"
11403 prefix="$acl_save_prefix"
11405 if test "X$x" = "X-L$additional_libdir"; then
11406 haveit=yes
11407 break
11409 done
11410 if test -z "$haveit"; then
11411 if test -d "$additional_libdir"; then
11412 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11415 haveit=
11416 for x in $LDFLAGS $LTLIBICONV; do
11418 acl_save_prefix="$prefix"
11419 prefix="$acl_final_prefix"
11420 acl_save_exec_prefix="$exec_prefix"
11421 exec_prefix="$acl_final_exec_prefix"
11422 eval x=\"$x\"
11423 exec_prefix="$acl_save_exec_prefix"
11424 prefix="$acl_save_prefix"
11426 if test "X$x" = "X-L$additional_libdir"; then
11427 haveit=yes
11428 break
11430 done
11431 if test -z "$haveit"; then
11432 if test -d "$additional_libdir"; then
11433 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11439 -R*)
11440 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11441 if test "$enable_rpath" != no; then
11442 haveit=
11443 for x in $rpathdirs; do
11444 if test "X$x" = "X$dir"; then
11445 haveit=yes
11446 break
11448 done
11449 if test -z "$haveit"; then
11450 rpathdirs="$rpathdirs $dir"
11452 haveit=
11453 for x in $ltrpathdirs; do
11454 if test "X$x" = "X$dir"; then
11455 haveit=yes
11456 break
11458 done
11459 if test -z "$haveit"; then
11460 ltrpathdirs="$ltrpathdirs $dir"
11464 -l*)
11465 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11467 *.la)
11468 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11471 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11472 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11474 esac
11475 done
11477 else
11478 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11479 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11480 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11481 else
11482 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11488 done
11489 done
11490 if test "X$rpathdirs" != "X"; then
11491 if test -n "$hardcode_libdir_separator"; then
11492 alldirs=
11493 for found_dir in $rpathdirs; do
11494 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11495 done
11496 acl_save_libdir="$libdir"
11497 libdir="$alldirs"
11498 eval flag=\"$hardcode_libdir_flag_spec\"
11499 libdir="$acl_save_libdir"
11500 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11501 else
11502 for found_dir in $rpathdirs; do
11503 acl_save_libdir="$libdir"
11504 libdir="$found_dir"
11505 eval flag=\"$hardcode_libdir_flag_spec\"
11506 libdir="$acl_save_libdir"
11507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11508 done
11511 if test "X$ltrpathdirs" != "X"; then
11512 for found_dir in $ltrpathdirs; do
11513 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11514 done
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11524 $as_echo_n "checking for iconv... " >&6; }
11525 if ${am_cv_func_iconv+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11529 am_cv_func_iconv="no, consider installing GNU libiconv"
11530 am_cv_lib_iconv=no
11531 am_save_CPPFLAGS="$CPPFLAGS"
11532 CPPFLAGS="$CPPFLAGS $INCICONV"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11535 #include <stdlib.h>
11536 #include <iconv.h>
11538 main ()
11540 iconv_t cd = iconv_open("","");
11541 iconv(cd,NULL,NULL,NULL,NULL);
11542 iconv_close(cd);
11544 return 0;
11546 _ACEOF
11547 if ac_fn_cxx_try_link "$LINENO"; then :
11548 am_cv_func_iconv=yes
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 CPPFLAGS="$am_save_CPPFLAGS"
11554 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11555 for _libs in .libs _libs; do
11556 am_save_CPPFLAGS="$CPPFLAGS"
11557 am_save_LIBS="$LIBS"
11558 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11559 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 #include <stdlib.h>
11563 #include <iconv.h>
11565 main ()
11567 iconv_t cd = iconv_open("","");
11568 iconv(cd,NULL,NULL,NULL,NULL);
11569 iconv_close(cd);
11571 return 0;
11573 _ACEOF
11574 if ac_fn_cxx_try_link "$LINENO"; then :
11575 INCICONV="-I../libiconv/include"
11576 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11577 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11578 am_cv_lib_iconv=yes
11579 am_cv_func_iconv=yes
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 CPPFLAGS="$am_save_CPPFLAGS"
11584 LIBS="$am_save_LIBS"
11585 if test "$am_cv_func_iconv" = "yes"; then
11586 break
11588 done
11591 if test "$am_cv_func_iconv" != yes; then
11592 am_save_CPPFLAGS="$CPPFLAGS"
11593 am_save_LIBS="$LIBS"
11594 CPPFLAGS="$CPPFLAGS $INCICONV"
11595 LIBS="$LIBS $LIBICONV"
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #include <stdlib.h>
11599 #include <iconv.h>
11601 main ()
11603 iconv_t cd = iconv_open("","");
11604 iconv(cd,NULL,NULL,NULL,NULL);
11605 iconv_close(cd);
11607 return 0;
11609 _ACEOF
11610 if ac_fn_cxx_try_link "$LINENO"; then :
11611 am_cv_lib_iconv=yes
11612 am_cv_func_iconv=yes
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 CPPFLAGS="$am_save_CPPFLAGS"
11617 LIBS="$am_save_LIBS"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11622 $as_echo "$am_cv_func_iconv" >&6; }
11623 if test "$am_cv_func_iconv" = yes; then
11625 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11628 if test "$am_cv_lib_iconv" = yes; then
11630 for element in $INCICONV; do
11631 haveit=
11632 for x in $CPPFLAGS; do
11634 acl_save_prefix="$prefix"
11635 prefix="$acl_final_prefix"
11636 acl_save_exec_prefix="$exec_prefix"
11637 exec_prefix="$acl_final_exec_prefix"
11638 eval x=\"$x\"
11639 exec_prefix="$acl_save_exec_prefix"
11640 prefix="$acl_save_prefix"
11642 if test "X$x" = "X$element"; then
11643 haveit=yes
11644 break
11646 done
11647 if test -z "$haveit"; then
11648 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11650 done
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11653 $as_echo_n "checking how to link with libiconv... " >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11655 $as_echo "$LIBICONV" >&6; }
11656 else
11657 LIBICONV=
11658 LTLIBICONV=
11663 if test "$am_cv_func_iconv" = yes; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11665 $as_echo_n "checking for iconv declaration... " >&6; }
11666 if ${am_cv_proto_iconv+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 #include <stdlib.h>
11674 #include <iconv.h>
11675 extern
11676 #ifdef __cplusplus
11678 #endif
11679 #if defined(__STDC__) || defined(__cplusplus)
11680 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11681 #else
11682 size_t iconv();
11683 #endif
11686 main ()
11690 return 0;
11692 _ACEOF
11693 if ac_fn_cxx_try_compile "$LINENO"; then :
11694 am_cv_proto_iconv_arg1=""
11695 else
11696 am_cv_proto_iconv_arg1="const"
11698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11702 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11704 }$am_cv_proto_iconv" >&5
11705 $as_echo "${ac_t:-
11706 }$am_cv_proto_iconv" >&6; }
11708 cat >>confdefs.h <<_ACEOF
11709 #define ICONV_CONST $am_cv_proto_iconv_arg1
11710 _ACEOF
11715 # Until we have in-tree GNU iconv:
11716 LIBICONV_DEP=
11717 if test -f "$LTLIBICONV"; then
11718 LIBICONV_DEP=$LTLIBICONV
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11724 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11725 if ${am_cv_val_LC_MESSAGES+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730 #include <locale.h>
11732 main ()
11734 return LC_MESSAGES
11736 return 0;
11738 _ACEOF
11739 if ac_fn_cxx_try_link "$LINENO"; then :
11740 am_cv_val_LC_MESSAGES=yes
11741 else
11742 am_cv_val_LC_MESSAGES=no
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11748 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11749 if test $am_cv_val_LC_MESSAGES = yes; then
11751 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11758 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11759 if ${am_cv_langinfo_codeset+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #include <langinfo.h>
11766 main ()
11768 char* cs = nl_langinfo(CODESET);
11770 return 0;
11772 _ACEOF
11773 if ac_fn_cxx_try_link "$LINENO"; then :
11774 am_cv_langinfo_codeset=yes
11775 else
11776 am_cv_langinfo_codeset=no
11778 rm -f core conftest.err conftest.$ac_objext \
11779 conftest$ac_exeext conftest.$ac_ext
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11783 $as_echo "$am_cv_langinfo_codeset" >&6; }
11784 if test $am_cv_langinfo_codeset = yes; then
11786 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11791 # We will need to find libiberty.h and ansidecl.h
11792 saved_CFLAGS="$CFLAGS"
11793 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11794 saved_CXXFLAGS="$CXXFLAGS"
11795 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11797 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11798 # normal autoconf function for these. But force definition of
11799 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11800 # basename handling in libiberty.h.
11801 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11802 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11803 #undef HAVE_DECL_BASENAME
11804 #define HAVE_DECL_BASENAME 1
11805 #include \"ansidecl.h\"
11806 #include \"system.h\"
11808 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11809 ac_have_decl=1
11810 else
11811 ac_have_decl=0
11814 cat >>confdefs.h <<_ACEOF
11815 #define HAVE_DECL_BASENAME $ac_have_decl
11816 _ACEOF
11817 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11818 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11819 #undef HAVE_DECL_BASENAME
11820 #define HAVE_DECL_BASENAME 1
11821 #include \"ansidecl.h\"
11822 #include \"system.h\"
11824 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11825 ac_have_decl=1
11826 else
11827 ac_have_decl=0
11830 cat >>confdefs.h <<_ACEOF
11831 #define HAVE_DECL_STRSTR $ac_have_decl
11832 _ACEOF
11835 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11836 madvise stpcpy strnlen strsignal strverscmp \
11837 strtol strtoul strtoll strtoull setenv unsetenv \
11838 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11839 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
11841 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11843 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11844 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849 #undef $ac_tr_decl
11850 #define $ac_tr_decl 1
11852 #include "ansidecl.h"
11853 #include "system.h"
11856 main ()
11858 #ifndef $ac_func
11859 char *(*pfn) = (char *(*)) $ac_func ;
11860 #endif
11862 return 0;
11864 _ACEOF
11865 if ac_fn_cxx_try_compile "$LINENO"; then :
11866 eval "gcc_cv_have_decl_$ac_func=yes"
11867 else
11868 eval "gcc_cv_have_decl_$ac_func=no"
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11876 #define $ac_tr_decl 1
11877 _ACEOF
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11882 #define $ac_tr_decl 0
11883 _ACEOF
11887 done
11890 for ac_func in getrlimit setrlimit getrusage
11892 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11895 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 #undef $ac_tr_decl
11901 #define $ac_tr_decl 1
11903 #include "ansidecl.h"
11904 #include "system.h"
11905 #ifdef HAVE_SYS_RESOURCE_H
11906 #include <sys/resource.h>
11907 #endif
11911 main ()
11913 #ifndef $ac_func
11914 char *(*pfn) = (char *(*)) $ac_func ;
11915 #endif
11917 return 0;
11919 _ACEOF
11920 if ac_fn_cxx_try_compile "$LINENO"; then :
11921 eval "gcc_cv_have_decl_$ac_func=yes"
11922 else
11923 eval "gcc_cv_have_decl_$ac_func=no"
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11931 #define $ac_tr_decl 1
11932 _ACEOF
11934 else
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11937 #define $ac_tr_decl 0
11938 _ACEOF
11942 done
11945 for ac_func in mallinfo mallinfo2
11947 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11949 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11950 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #undef $ac_tr_decl
11956 #define $ac_tr_decl 1
11958 #include "ansidecl.h"
11959 #include "system.h"
11960 #ifdef HAVE_MALLOC_H
11961 #include <malloc.h>
11962 #endif
11966 main ()
11968 #ifndef $ac_func
11969 char *(*pfn) = (char *(*)) $ac_func ;
11970 #endif
11972 return 0;
11974 _ACEOF
11975 if ac_fn_cxx_try_compile "$LINENO"; then :
11976 eval "gcc_cv_have_decl_$ac_func=yes"
11977 else
11978 eval "gcc_cv_have_decl_$ac_func=no"
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11986 #define $ac_tr_decl 1
11987 _ACEOF
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11992 #define $ac_tr_decl 0
11993 _ACEOF
11997 done
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12003 #include "ansidecl.h"
12004 #include "system.h"
12005 #ifdef HAVE_SYS_RESOURCE_H
12006 #include <sys/resource.h>
12007 #endif
12010 main ()
12012 rlim_t l = 0;
12014 return 0;
12016 _ACEOF
12017 if ac_fn_cxx_try_compile "$LINENO"; then :
12019 else
12021 $as_echo "#define rlim_t long" >>confdefs.h
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12027 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12028 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12029 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12030 for ac_func in ldgetname
12032 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12035 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #undef $ac_tr_decl
12041 #define $ac_tr_decl 1
12043 #include "ansidecl.h"
12044 #include "system.h"
12045 #ifdef HAVE_LDFCN_H
12046 #undef FREAD
12047 #undef FWRITE
12048 #include <ldfcn.h>
12049 #endif
12053 main ()
12055 #ifndef $ac_func
12056 char *(*pfn) = (char *(*)) $ac_func ;
12057 #endif
12059 return 0;
12061 _ACEOF
12062 if ac_fn_cxx_try_compile "$LINENO"; then :
12063 eval "gcc_cv_have_decl_$ac_func=yes"
12064 else
12065 eval "gcc_cv_have_decl_$ac_func=no"
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12073 #define $ac_tr_decl 1
12074 _ACEOF
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12079 #define $ac_tr_decl 0
12080 _ACEOF
12084 done
12087 for ac_func in times
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"
12102 #ifdef HAVE_SYS_TIMES_H
12103 #include <sys/times.h>
12104 #endif
12108 main ()
12110 #ifndef $ac_func
12111 char *(*pfn) = (char *(*)) $ac_func ;
12112 #endif
12114 return 0;
12116 _ACEOF
12117 if ac_fn_cxx_try_compile "$LINENO"; then :
12118 eval "gcc_cv_have_decl_$ac_func=yes"
12119 else
12120 eval "gcc_cv_have_decl_$ac_func=no"
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12128 #define $ac_tr_decl 1
12129 _ACEOF
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12134 #define $ac_tr_decl 0
12135 _ACEOF
12139 done
12142 for ac_func in sigaltstack
12144 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12146 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12147 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #undef $ac_tr_decl
12153 #define $ac_tr_decl 1
12155 #include "ansidecl.h"
12156 #include "system.h"
12157 #include <signal.h>
12161 main ()
12163 #ifndef $ac_func
12164 char *(*pfn) = (char *(*)) $ac_func ;
12165 #endif
12167 return 0;
12169 _ACEOF
12170 if ac_fn_cxx_try_compile "$LINENO"; then :
12171 eval "gcc_cv_have_decl_$ac_func=yes"
12172 else
12173 eval "gcc_cv_have_decl_$ac_func=no"
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12181 #define $ac_tr_decl 1
12182 _ACEOF
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12187 #define $ac_tr_decl 0
12188 _ACEOF
12192 done
12195 # More time-related stuff.
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12197 $as_echo_n "checking for struct tms... " >&6; }
12198 if ${ac_cv_struct_tms+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 #include "ansidecl.h"
12206 #include "system.h"
12207 #ifdef HAVE_SYS_TIMES_H
12208 #include <sys/times.h>
12209 #endif
12212 main ()
12214 struct tms tms;
12216 return 0;
12218 _ACEOF
12219 if ac_fn_cxx_try_compile "$LINENO"; then :
12220 ac_cv_struct_tms=yes
12221 else
12222 ac_cv_struct_tms=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12227 $as_echo "$ac_cv_struct_tms" >&6; }
12228 if test $ac_cv_struct_tms = yes; then
12230 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12234 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12235 # revisit after autoconf 2.50.
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12237 $as_echo_n "checking for clock_t... " >&6; }
12238 if ${gcc_cv_type_clock_t+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12245 #include "ansidecl.h"
12246 #include "system.h"
12249 main ()
12251 clock_t x;
12253 return 0;
12255 _ACEOF
12256 if ac_fn_cxx_try_compile "$LINENO"; then :
12257 gcc_cv_type_clock_t=yes
12258 else
12259 gcc_cv_type_clock_t=no
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12264 $as_echo "$gcc_cv_type_clock_t" >&6; }
12265 if test $gcc_cv_type_clock_t = yes; then
12267 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12271 # Check if F_SETLKW is supported by fcntl.
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12273 $as_echo_n "checking for F_SETLKW... " >&6; }
12274 if ${ac_cv_f_setlkw+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 #include <fcntl.h>
12283 main ()
12286 struct flock fl;
12287 fl.l_whence = 0;
12288 fl.l_start = 0;
12289 fl.l_len = 0;
12290 fl.l_pid = 0;
12291 return fcntl (1, F_SETLKW, &fl);
12293 return 0;
12295 _ACEOF
12296 if ac_fn_cxx_try_compile "$LINENO"; then :
12297 ac_cv_f_setlkw=yes
12298 else
12299 ac_cv_f_setlkw=no
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12304 $as_echo "$ac_cv_f_setlkw" >&6; }
12305 if test $ac_cv_f_setlkw = yes; then
12307 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12311 # Check if O_CLOEXEC is defined by fcntl
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12313 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12314 if ${ac_cv_o_cloexec+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 #include <fcntl.h>
12323 main ()
12326 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12328 return 0;
12330 _ACEOF
12331 if ac_fn_cxx_try_compile "$LINENO"; then :
12332 ac_cv_o_cloexec=yes
12333 else
12334 ac_cv_o_cloexec=no
12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12339 $as_echo "$ac_cv_o_cloexec" >&6; }
12340 if test $ac_cv_o_cloexec = yes; then
12342 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12346 # C++ Modules would like some networking features to provide the mapping
12347 # server. You can still use modules without them though.
12348 # The following network-related checks could probably do with some
12349 # Windows and other non-linux defenses and checking.
12351 # Local socket connectivity wants AF_UNIX networking
12352 # Check for AF_UNIX networking
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12354 $as_echo_n "checking for AF_UNIX... " >&6; }
12355 if ${ac_cv_af_unix+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 #include <sys/types.h>
12363 #include <sys/socket.h>
12364 #include <sys/un.h>
12365 #include <netinet/in.h>
12367 main ()
12370 sockaddr_un un;
12371 un.sun_family = AF_UNSPEC;
12372 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12373 connect (fd, (sockaddr *)&un, sizeof (un));
12375 return 0;
12377 _ACEOF
12378 if ac_fn_cxx_try_compile "$LINENO"; then :
12379 ac_cv_af_unix=yes
12380 else
12381 ac_cv_af_unix=no
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12386 $as_echo "$ac_cv_af_unix" >&6; }
12387 if test $ac_cv_af_unix = yes; then
12389 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12393 # Remote socket connectivity wants AF_INET6 networking
12394 # Check for AF_INET6 networking
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12396 $as_echo_n "checking for AF_INET6... " >&6; }
12397 if ${ac_cv_af_inet6+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 #include <sys/types.h>
12405 #include <sys/socket.h>
12406 #include <netinet/in.h>
12407 #include <netdb.h>
12409 main ()
12412 sockaddr_in6 in6;
12413 in6.sin6_family = AF_UNSPEC;
12414 struct addrinfo *addrs = 0;
12415 struct addrinfo hints;
12416 hints.ai_flags = 0;
12417 hints.ai_family = AF_INET6;
12418 hints.ai_socktype = SOCK_STREAM;
12419 hints.ai_protocol = 0;
12420 hints.ai_canonname = 0;
12421 hints.ai_addr = 0;
12422 hints.ai_next = 0;
12423 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12424 const char *str = gai_strerror (e);
12425 freeaddrinfo (addrs);
12426 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12427 connect (fd, (sockaddr *)&in6, sizeof (in6));
12429 return 0;
12431 _ACEOF
12432 if ac_fn_cxx_try_compile "$LINENO"; then :
12433 ac_cv_af_inet6=yes
12434 else
12435 ac_cv_af_inet6=no
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12440 $as_echo "$ac_cv_af_inet6" >&6; }
12441 if test $ac_cv_af_inet6 = yes; then
12443 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12447 # Check if _LK_LOCK is supported by _locking
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12449 $as_echo_n "checking for _LK_LOCK... " >&6; }
12450 if ${ac_cv_lk_lock+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12457 #include <io.h>
12458 #include <sys/locking.h>
12460 main ()
12463 int fd;
12464 return _locking (fd, _LK_LOCK, 0);
12466 return 0;
12468 _ACEOF
12469 if ac_fn_cxx_try_compile "$LINENO"; then :
12470 ac_cv_lk_lock=yes
12471 else
12472 ac_cv_lk_lock=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12477 $as_echo "$ac_cv_lk_lock" >&6; }
12478 if test $ac_cv_lk_lock = yes; then
12480 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12484 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12485 CFLAGS="$saved_CFLAGS"
12486 CXXFLAGS="$saved_CXXFLAGS"
12488 # mkdir takes a single argument on some systems.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12490 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12491 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 #include <sys/types.h>
12498 #ifdef HAVE_SYS_STAT_H
12499 # include <sys/stat.h>
12500 #endif
12501 #ifdef HAVE_UNISTD_H
12502 # include <unistd.h>
12503 #endif
12504 #ifdef HAVE_DIRECT_H
12505 # include <direct.h>
12506 #endif
12508 main ()
12510 mkdir ("foo", 0);
12512 return 0;
12514 _ACEOF
12515 if ac_fn_cxx_try_compile "$LINENO"; then :
12516 gcc_cv_mkdir_takes_one_arg=no
12517 else
12518 gcc_cv_mkdir_takes_one_arg=yes
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12523 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12524 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12526 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12531 # File extensions
12532 manext='.1'
12533 objext='.o'
12537 # With Setjmp/Longjmp based exception handling.
12538 # Check whether --enable-sjlj-exceptions was given.
12539 if test "${enable_sjlj_exceptions+set}" = set; then :
12540 enableval=$enable_sjlj_exceptions; case $target in
12541 *-*-hpux10*)
12542 if test $enableval != yes; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12544 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12545 enableval=yes
12548 esac
12549 force_sjlj_exceptions=yes
12550 else
12551 case $target in
12552 *-*-hpux10*)
12553 force_sjlj_exceptions=yes
12554 enableval=yes
12556 lm32*-*-*)
12557 force_sjlj_exceptions=yes
12558 enableval=yes
12561 force_sjlj_exceptions=no
12563 esac
12566 if test $force_sjlj_exceptions = yes; then
12567 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12569 cat >>confdefs.h <<_ACEOF
12570 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12571 _ACEOF
12575 # --------------------------------------------------------
12576 # Build, host, and target specific configuration fragments
12577 # --------------------------------------------------------
12579 # Collect build-machine-specific information.
12580 . ${srcdir}/config.build || exit 1
12582 # Collect host-machine-specific information.
12583 . ${srcdir}/config.host || exit 1
12585 target_gtfiles=
12587 # Collect target-machine-specific information.
12588 . ${srcdir}/config.gcc || exit 1
12590 extra_objs="${host_extra_objs} ${extra_objs}"
12591 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12593 # Default the target-machine variables that were not explicitly set.
12594 if test x"$tm_file" = x
12595 then tm_file=$cpu_type/$cpu_type.h; fi
12597 if test x"$extra_headers" = x
12598 then extra_headers=; fi
12600 if test x$md_file = x
12601 then md_file=$cpu_type/$cpu_type.md; fi
12603 if test x$out_file = x
12604 then out_file=$cpu_type/$cpu_type.c; fi
12606 if test x"$tmake_file" = x
12607 then tmake_file=$cpu_type/t-$cpu_type
12610 # Support --enable-initfini-array.
12611 if test x$enable_initfini_array != xno; then
12612 tm_file="${tm_file} initfini-array.h"
12615 if test x"$dwarf2" = xyes
12616 then tm_file="$tm_file tm-dwarf2.h"
12619 # Say what files are being used for the output code and MD file.
12620 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12621 echo "Using \`$srcdir/config/$md_file' as machine description file."
12623 # If any of the xm_file variables contain nonexistent files, warn
12624 # about them and drop them.
12627 for x in $build_xm_file; do
12628 if test -f $srcdir/config/$x
12629 then bx="$bx $x"
12630 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12631 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12633 done
12634 build_xm_file="$bx"
12637 for x in $host_xm_file; do
12638 if test -f $srcdir/config/$x
12639 then hx="$hx $x"
12640 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12641 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12643 done
12644 host_xm_file="$hx"
12647 for x in $xm_file; do
12648 if test -f $srcdir/config/$x
12649 then tx="$tx $x"
12650 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12651 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12653 done
12654 xm_file="$tx"
12656 count=a
12657 for f in $tm_file; do
12658 count=${count}x
12659 done
12660 if test $count = ax; then
12661 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12662 else
12663 echo "Using the following target machine macro files:"
12664 for f in $tm_file; do
12665 echo " $srcdir/config/$f"
12666 done
12669 if test x$use_long_long_for_widest_fast_int = xyes; then
12671 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12675 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_GNU_LD $gnu_ld_bool
12679 _ACEOF
12682 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12684 cat >>confdefs.h <<_ACEOF
12685 #define HAVE_GNU_AS $gnu_as_bool
12686 _ACEOF
12689 count=a
12690 for f in $host_xm_file; do
12691 count=${count}x
12692 done
12693 if test $count = a; then
12695 elif test $count = ax; then
12696 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12697 else
12698 echo "Using the following host machine macro files:"
12699 for f in $host_xm_file; do
12700 echo " $srcdir/config/$f"
12701 done
12703 echo "Using ${out_host_hook_obj} for host machine hooks."
12705 if test "$host_xm_file" != "$build_xm_file"; then
12706 count=a
12707 for f in $build_xm_file; do
12708 count=${count}x
12709 done
12710 if test $count = a; then
12712 elif test $count = ax; then
12713 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12714 else
12715 echo "Using the following build machine macro files:"
12716 for f in $build_xm_file; do
12717 echo " $srcdir/config/$f"
12718 done
12722 if test -n "$configured_native_system_header_dir"; then
12723 native_system_header_dir=$configured_native_system_header_dir
12725 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12728 case ${host} in
12729 powerpc*-*-darwin*)
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12731 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12732 if ${gcc_cv_mcontext_underscores+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 #include <sys/cdefs.h>
12739 #include <sys/signal.h>
12740 #include <ucontext.h>
12741 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12743 _ACEOF
12744 if ac_fn_cxx_try_compile "$LINENO"; then :
12745 gcc_cv_mcontext_underscores=no
12746 else
12747 gcc_cv_mcontext_underscores=yes
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12752 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12753 if test $gcc_cv_mcontext_underscores = yes; then
12755 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12759 esac
12761 # ---------
12762 # Threading
12763 # ---------
12765 # Check if a valid thread package
12766 case ${enable_threads} in
12767 "" | no)
12768 # No threads
12769 target_thread_file='single'
12771 yes)
12772 # default
12773 target_thread_file='single'
12775 aix | dce | lynx | mipssde | posix | rtems | \
12776 single | tpf | vxworks | win32)
12777 target_thread_file=${enable_threads}
12780 echo "${enable_threads} is an unknown thread package" 1>&2
12781 exit 1
12783 esac
12785 if test x${thread_file} = x; then
12786 # No thread file set by target-specific clauses in config.gcc,
12787 # so use file chosen by default logic above
12788 thread_file=${target_thread_file}
12791 # --------
12792 # UNSORTED
12793 # --------
12795 use_cxa_atexit=no
12796 if test x$enable___cxa_atexit = xyes || \
12797 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12798 if test x$host = x$target; then
12799 case $host in
12800 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12801 # keyed to flag_use_cxa_atexit
12802 *-*-mingw32*)
12803 use_cxa_atexit=yes
12805 powerpc-ibm-aix*)
12806 use_cxa_atexit=yes
12809 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12810 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12811 use_cxa_atexit=yes
12812 else
12813 echo "__cxa_atexit can't be enabled on this target"
12817 esac
12818 else
12819 # We can't check for __cxa_atexit when building a cross, so assume
12820 # it is available
12821 use_cxa_atexit=yes
12823 if test x$use_cxa_atexit = xyes; then
12825 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12830 # Look for a file containing extra machine modes.
12831 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12832 extra_modes_file='$(srcdir)'/config/${extra_modes}
12835 cat >>confdefs.h <<_ACEOF
12836 #define EXTRA_MODES_FILE "config/$extra_modes"
12837 _ACEOF
12841 # Convert extra_options into a form suitable for Makefile use.
12842 extra_opt_files=
12843 all_opt_files=
12844 for f in $extra_options; do
12845 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12846 all_opt_files="$all_opt_files $srcdir/config/$f"
12847 done
12850 # auto-host.h is the file containing items generated by autoconf and is
12851 # the first file included by config.h.
12852 # If host=build, it is correct to have bconfig include auto-host.h
12853 # as well. If host!=build, we are in error and need to do more
12854 # work to find out the build config parameters.
12855 if test x$host = x$build
12856 then
12857 build_auto=auto-host.h
12858 HAVE_AUTO_BUILD='# '
12859 else
12860 # We create a subdir, then run autoconf in the subdir.
12861 # To prevent recursion we set host and build for the new
12862 # invocation of configure to the build for this invocation
12863 # of configure.
12864 tempdir=build.$$
12865 rm -rf $tempdir
12866 mkdir $tempdir
12867 cd $tempdir
12868 case ${srcdir} in
12869 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12870 *) realsrcdir=../${srcdir};;
12871 esac
12872 # Clearing GMPINC is necessary to prevent host headers being
12873 # used by the build compiler. Defining GENERATOR_FILE stops
12874 # system.h from including gmp.h.
12875 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12876 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12877 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12878 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12879 ${realsrcdir}/configure \
12880 --enable-languages=${enable_languages-all} \
12881 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12882 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12883 --target=$target_alias --host=$build_alias \
12884 --build=$build_alias || exit # retaining $tempdir
12886 # We just finished tests for the build machine, so rename
12887 # the file auto-build.h in the gcc directory.
12888 mv auto-host.h ../auto-build.h
12889 cd ..
12890 rm -rf $tempdir
12891 build_auto=auto-build.h
12892 HAVE_AUTO_BUILD=
12897 tm_file="${tm_file} defaults.h"
12898 tm_p_file="${tm_p_file} tm-preds.h"
12899 tm_d_file="${tm_d_file} defaults.h"
12900 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12901 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12902 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12903 # put this back in temporarily.
12904 xm_file="auto-host.h ansidecl.h ${xm_file}"
12906 # --------
12907 # UNSORTED
12908 # --------
12910 # Compile in configure arguments.
12911 if test -f configargs.h ; then
12912 # Being re-configured.
12913 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12914 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12915 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12916 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12918 else
12919 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12922 # Double all backslashes and backslash all quotes to turn
12923 # gcc_config_arguments into a C string.
12924 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12925 $gcc_config_arguments
12927 gcc_config_arguments_str=`cat conftest.out`
12928 rm -f conftest.out
12930 cat > configargs.h <<EOF
12931 /* Generated automatically. */
12932 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12933 static const char thread_model[] = "$thread_file";
12935 static const struct {
12936 const char *name, *value;
12937 } configure_default_options[] = $configure_default_options;
12940 gcc_BASEVER=`cat $srcdir/BASE-VER`
12941 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12942 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12943 if test -f $srcdir/REVISION ; then
12944 gcc_REVISION=`cat $srcdir/REVISION`
12945 else
12946 gcc_REVISION=""
12948 cat > plugin-version.h <<EOF
12949 #include "configargs.h"
12951 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12952 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12953 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12954 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12956 static char basever[] = "$gcc_BASEVER";
12957 static char datestamp[] = "$gcc_DATESTAMP";
12958 static char devphase[] = "$gcc_DEVPHASE";
12959 static char revision[] = "$gcc_REVISION";
12961 /* FIXME plugins: We should make the version information more precise.
12962 One way to do is to add a checksum. */
12964 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12965 devphase, revision,
12966 configuration_arguments};
12969 # Determine what GCC version number to use in filesystem paths.
12971 get_gcc_base_ver="cat"
12973 # Check whether --with-gcc-major-version-only was given.
12974 if test "${with_gcc_major_version_only+set}" = set; then :
12975 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12976 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12984 # Internationalization
12985 # If we haven't got the data from the intl directory,
12986 # assume NLS is disabled.
12987 USE_NLS=no
12988 LIBINTL=
12989 LIBINTL_DEP=
12990 INCINTL=
12991 XGETTEXT=
12992 GMSGFMT=
12993 POSUB=
12995 if test -f ../intl/config.intl; then
12996 . ../intl/config.intl
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12999 $as_echo_n "checking whether NLS is requested... " >&6; }
13000 if test x"$USE_NLS" != xyes; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13005 $as_echo "yes" >&6; }
13007 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13011 $as_echo_n "checking for catalogs to be installed... " >&6; }
13012 # Look for .po and .gmo files in the source directory.
13013 CATALOGS=
13014 XLINGUAS=
13015 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13016 # If there aren't any .gmo files the shell will give us the
13017 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13018 # weeded out.
13019 case "$cat" in *\**)
13020 continue;;
13021 esac
13022 # The quadruple backslash is collapsed to a double backslash
13023 # by the backticks, then collapsed again by the double quotes,
13024 # leaving us with one backslash in the sed expression (right
13025 # before the dot that mustn't act as a wildcard).
13026 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13027 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13028 # The user is allowed to set LINGUAS to a list of languages to
13029 # install catalogs for. If it's empty that means "all of them."
13030 if test "x$LINGUAS" = x; then
13031 CATALOGS="$CATALOGS $cat"
13032 XLINGUAS="$XLINGUAS $lang"
13033 else
13034 case "$LINGUAS" in *$lang*)
13035 CATALOGS="$CATALOGS $cat"
13036 XLINGUAS="$XLINGUAS $lang"
13038 esac
13040 done
13041 LINGUAS="$XLINGUAS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13043 $as_echo "$LINGUAS" >&6; }
13046 DATADIRNAME=share
13048 INSTOBJEXT=.mo
13050 GENCAT=gencat
13052 CATOBJEXT=.gmo
13056 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13057 # -liconv on the link line twice.
13058 case "$LIBINTL" in *$LIBICONV*)
13059 LIBICONV= ;;
13060 esac
13062 # Check whether --enable-secureplt was given.
13063 if test "${enable_secureplt+set}" = set; then :
13064 enableval=$enable_secureplt;
13068 # Check whether --enable-mingw-wildcard was given.
13069 if test "${enable_mingw_wildcard+set}" = set; then :
13070 enableval=$enable_mingw_wildcard;
13071 else
13072 enable_mingw_wildcard=platform
13075 if test x"$enable_mingw_wildcard" != xplatform ; then :
13077 cat >>confdefs.h <<_ACEOF
13078 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13079 _ACEOF
13083 # Check whether --enable-large-address-aware was given.
13084 if test "${enable_large_address_aware+set}" = set; then :
13085 enableval=$enable_large_address_aware;
13088 if test x"$enable_large_address_aware" = xyes; then :
13090 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13094 # Check whether --enable-leading-mingw64-underscores was given.
13095 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13096 enableval=$enable_leading_mingw64_underscores;
13099 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13101 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13105 # Check whether --enable-cld was given.
13106 if test "${enable_cld+set}" = set; then :
13107 enableval=$enable_cld;
13108 else
13109 enable_cld=no
13113 # Check whether --enable-frame-pointer was given.
13114 if test "${enable_frame_pointer+set}" = set; then :
13115 enableval=$enable_frame_pointer;
13116 else
13118 case $target_os in
13119 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13120 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13121 enable_frame_pointer=no
13124 enable_frame_pointer=yes
13126 esac
13131 case $target in
13132 i[34567]86-*-* | x86_64-*-*)
13133 if test "x$enable_cld" = xyes; then
13134 tm_defines="${tm_defines} USE_IX86_CLD=1"
13136 if test "x$enable_frame_pointer" = xyes; then
13137 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13140 esac
13142 # Windows32 Registry support for specifying GCC installation paths.
13143 # Check whether --enable-win32-registry was given.
13144 if test "${enable_win32_registry+set}" = set; then :
13145 enableval=$enable_win32_registry;
13149 case $host_os in
13150 win32 | pe | cygwin* | mingw32*)
13151 if test "x$enable_win32_registry" != xno; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13153 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13154 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 ac_func_search_save_LIBS=$LIBS
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13164 #ifdef __cplusplus
13165 extern "C"
13166 #endif
13167 char RegOpenKeyExA ();
13169 main ()
13171 return RegOpenKeyExA ();
13173 return 0;
13175 _ACEOF
13176 for ac_lib in '' advapi32; do
13177 if test -z "$ac_lib"; then
13178 ac_res="none required"
13179 else
13180 ac_res=-l$ac_lib
13181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13183 if ac_fn_cxx_try_link "$LINENO"; then :
13184 ac_cv_search_RegOpenKeyExA=$ac_res
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext
13188 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13189 break
13191 done
13192 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13194 else
13195 ac_cv_search_RegOpenKeyExA=no
13197 rm conftest.$ac_ext
13198 LIBS=$ac_func_search_save_LIBS
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13201 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13202 ac_res=$ac_cv_search_RegOpenKeyExA
13203 if test "$ac_res" != no; then :
13204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13206 else
13207 enable_win32_registry=no
13212 if test "x$enable_win32_registry" != xno; then
13214 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13217 if test "x$enable_win32_registry" != xyes \
13218 && test "x$enable_win32_registry" != x; then
13220 cat >>confdefs.h <<_ACEOF
13221 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13222 _ACEOF
13227 esac
13229 # Get an absolute path to the GCC top-level source directory
13230 holddir=`${PWDCMD-pwd}`
13231 cd $srcdir
13232 topdir=`${PWDCMD-pwd}`
13233 cd $holddir
13235 # Conditionalize the makefile for this host machine.
13236 xmake_file=
13237 for f in ${host_xmake_file}
13239 if test -f ${srcdir}/config/$f
13240 then
13241 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13243 done
13245 # Conditionalize the makefile for this target machine.
13246 tmake_file_=
13247 for f in ${tmake_file}
13249 if test -f ${srcdir}/config/$f
13250 then
13251 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13253 done
13254 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13256 out_object_file=`basename $out_file .c`.o
13257 common_out_object_file=`basename $common_out_file .c`.o
13259 tm_file_list="options.h"
13260 tm_include_list="options.h insn-constants.h"
13261 for f in $tm_file; do
13262 case $f in
13263 ./* )
13264 f=`echo $f | sed 's/^..//'`
13265 tm_file_list="${tm_file_list} $f"
13266 tm_include_list="${tm_include_list} $f"
13268 defaults.h )
13269 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13270 tm_include_list="${tm_include_list} $f"
13273 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13274 tm_include_list="${tm_include_list} config/$f"
13276 esac
13277 done
13279 tm_p_file_list=
13280 tm_p_include_list=
13281 for f in $tm_p_file; do
13282 case $f in
13283 tm-preds.h )
13284 tm_p_file_list="${tm_p_file_list} $f"
13285 tm_p_include_list="${tm_p_include_list} $f"
13288 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13289 tm_p_include_list="${tm_p_include_list} config/$f"
13290 esac
13291 done
13293 tm_d_file_list=
13294 tm_d_include_list="options.h insn-constants.h"
13295 for f in $tm_d_file; do
13296 case $f in
13297 defaults.h )
13298 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13299 tm_d_include_list="${tm_d_include_list} $f"
13302 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13303 tm_d_include_list="${tm_d_include_list} config/$f"
13305 esac
13306 done
13308 xm_file_list=
13309 xm_include_list=
13310 for f in $xm_file; do
13311 case $f in
13312 ansidecl.h )
13313 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13314 xm_include_list="${xm_include_list} $f"
13316 auto-host.h )
13317 xm_file_list="${xm_file_list} $f"
13318 xm_include_list="${xm_include_list} $f"
13321 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13322 xm_include_list="${xm_include_list} config/$f"
13324 esac
13325 done
13327 host_xm_file_list=
13328 host_xm_include_list=
13329 for f in $host_xm_file; do
13330 case $f in
13331 ansidecl.h )
13332 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13333 host_xm_include_list="${host_xm_include_list} $f"
13335 auto-host.h )
13336 host_xm_file_list="${host_xm_file_list} $f"
13337 host_xm_include_list="${host_xm_include_list} $f"
13340 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13341 host_xm_include_list="${host_xm_include_list} config/$f"
13343 esac
13344 done
13346 build_xm_file_list=
13347 for f in $build_xm_file; do
13348 case $f in
13349 ansidecl.h )
13350 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13351 build_xm_include_list="${build_xm_include_list} $f"
13353 auto-build.h | auto-host.h )
13354 build_xm_file_list="${build_xm_file_list} $f"
13355 build_xm_include_list="${build_xm_include_list} $f"
13358 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13359 build_xm_include_list="${build_xm_include_list} config/$f"
13361 esac
13362 done
13364 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13365 # cross-compiler which does not use the native headers and libraries.
13366 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13367 CROSS=
13368 ALL=all.internal
13369 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13370 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13372 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13373 test x$build != x$host || test "x$with_build_sysroot" != x; then
13374 if test "x$with_build_sysroot" != x; then
13375 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13376 else
13377 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13380 if test x$host != x$target
13381 then
13382 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13383 ALL=all.cross
13384 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13385 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13386 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13389 if test "x$with_build_sysroot" != "x"; then
13390 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13391 elif test "x$with_sysroot" = x; then
13392 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13393 elif test "x$with_sysroot" = xyes; then
13394 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13395 else
13396 target_header_dir="${with_sysroot}${native_system_header_dir}"
13398 else
13399 target_header_dir=${native_system_header_dir}
13402 # If this is a cross-compiler that does not
13403 # have its own set of headers then define
13404 # inhibit_libc
13406 # If this is using newlib, without having the headers available now,
13407 # then define inhibit_libc in LIBGCC2_CFLAGS.
13408 # This prevents libgcc2 from containing any code which requires libc
13409 # support.
13410 : ${inhibit_libc=false}
13411 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13412 test x$with_newlib = xyes ; } &&
13413 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13414 inhibit_libc=true
13418 # When building gcc with a cross-compiler, we need to adjust things so
13419 # that the generator programs are still built with the native compiler.
13420 # Also, we cannot run fixincludes.
13422 # These are the normal (build=host) settings:
13423 CC_FOR_BUILD='$(CC)'
13424 CXX_FOR_BUILD='$(CXX)'
13425 BUILD_CFLAGS='$(ALL_CFLAGS)'
13426 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13427 BUILD_LDFLAGS='$(LDFLAGS)'
13428 STMP_FIXINC=stmp-fixinc
13430 # And these apply if build != host, or we are generating coverage data
13431 if test x$build != x$host || test "x$coverage_flags" != x
13432 then
13433 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13434 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13435 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13438 # Expand extra_headers to include complete path.
13439 # This substitutes for lots of t-* files.
13440 extra_headers_list=
13441 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13442 for file in ${extra_headers} ; do
13443 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13444 done
13446 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13447 if test x"$use_gcc_tgmath" = xyes
13448 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13451 # Define collect2 in Makefile.
13452 case $host_can_use_collect2 in
13453 no) collect2= ;;
13454 *) collect2='collect2$(exeext)' ;;
13455 esac
13458 # Add a definition of USE_COLLECT2 if system wants one.
13459 case $use_collect2 in
13460 no) use_collect2= ;;
13461 "") ;;
13463 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13464 xm_defines="${xm_defines} USE_COLLECT2"
13465 case $host_can_use_collect2 in
13467 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13469 esac
13471 esac
13474 cat >>confdefs.h <<_ACEOF
13475 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13476 _ACEOF
13479 # ---------------------------
13480 # Assembler & linker features
13481 # ---------------------------
13483 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13484 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13485 # However when ld-new is first executed from the build tree, libtool will
13486 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13487 # to the build tree. While doing this we need to use the previous-stage
13488 # linker, or we have an infinite loop. The presence of a shell script as
13489 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13490 # the gcc/collect-ld script. So we need to know how libtool works, or
13491 # exec-tool will fail.
13494 case `pwd` in
13495 *\ * | *\ *)
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13497 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13498 esac
13502 macro_version='2.2.7a'
13503 macro_revision='1.3134'
13517 ltmain="$ac_aux_dir/ltmain.sh"
13519 # Backslashify metacharacters that are still active within
13520 # double-quoted strings.
13521 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13523 # Same as above, but do not quote variable references.
13524 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13526 # Sed substitution to delay expansion of an escaped shell variable in a
13527 # double_quote_subst'ed string.
13528 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13530 # Sed substitution to delay expansion of an escaped single quote.
13531 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13533 # Sed substitution to avoid accidental globbing in evaled expressions
13534 no_glob_subst='s/\*/\\\*/g'
13536 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13538 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13541 $as_echo_n "checking how to print strings... " >&6; }
13542 # Test print first, because it will be a builtin if present.
13543 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13544 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13545 ECHO='print -r --'
13546 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13547 ECHO='printf %s\n'
13548 else
13549 # Use this function as a fallback that always works.
13550 func_fallback_echo ()
13552 eval 'cat <<_LTECHO_EOF
13554 _LTECHO_EOF'
13556 ECHO='func_fallback_echo'
13559 # func_echo_all arg...
13560 # Invoke $ECHO with all args, space-separated.
13561 func_echo_all ()
13563 $ECHO ""
13566 case "$ECHO" in
13567 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13568 $as_echo "printf" >&6; } ;;
13569 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13570 $as_echo "print -r" >&6; } ;;
13571 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13572 $as_echo "cat" >&6; } ;;
13573 esac
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13589 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13590 if ${ac_cv_path_SED+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13594 for ac_i in 1 2 3 4 5 6 7; do
13595 ac_script="$ac_script$as_nl$ac_script"
13596 done
13597 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13598 { ac_script=; unset ac_script;}
13599 if test -z "$SED"; then
13600 ac_path_SED_found=false
13601 # Loop through the user's path and test for each of PROGNAME-LIST
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_prog in sed gsed; do
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13610 as_fn_executable_p "$ac_path_SED" || continue
13611 # Check for GNU ac_path_SED and select it if it is found.
13612 # Check for GNU $ac_path_SED
13613 case `"$ac_path_SED" --version 2>&1` in
13614 *GNU*)
13615 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13617 ac_count=0
13618 $as_echo_n 0123456789 >"conftest.in"
13619 while :
13621 cat "conftest.in" "conftest.in" >"conftest.tmp"
13622 mv "conftest.tmp" "conftest.in"
13623 cp "conftest.in" "conftest.nl"
13624 $as_echo '' >> "conftest.nl"
13625 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13627 as_fn_arith $ac_count + 1 && ac_count=$as_val
13628 if test $ac_count -gt ${ac_path_SED_max-0}; then
13629 # Best one so far, save it but keep looking for a better one
13630 ac_cv_path_SED="$ac_path_SED"
13631 ac_path_SED_max=$ac_count
13633 # 10*(2^10) chars as input seems more than enough
13634 test $ac_count -gt 10 && break
13635 done
13636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13637 esac
13639 $ac_path_SED_found && break 3
13640 done
13641 done
13642 done
13643 IFS=$as_save_IFS
13644 if test -z "$ac_cv_path_SED"; then
13645 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13647 else
13648 ac_cv_path_SED=$SED
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13653 $as_echo "$ac_cv_path_SED" >&6; }
13654 SED="$ac_cv_path_SED"
13655 rm -f conftest.sed
13657 test -z "$SED" && SED=sed
13658 Xsed="$SED -e 1s/^X//"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13671 $as_echo_n "checking for fgrep... " >&6; }
13672 if ${ac_cv_path_FGREP+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13676 then ac_cv_path_FGREP="$GREP -F"
13677 else
13678 if test -z "$FGREP"; then
13679 ac_path_FGREP_found=false
13680 # Loop through the user's path and test for each of PROGNAME-LIST
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
13686 for ac_prog in fgrep; do
13687 for ac_exec_ext in '' $ac_executable_extensions; do
13688 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13689 as_fn_executable_p "$ac_path_FGREP" || continue
13690 # Check for GNU ac_path_FGREP and select it if it is found.
13691 # Check for GNU $ac_path_FGREP
13692 case `"$ac_path_FGREP" --version 2>&1` in
13693 *GNU*)
13694 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13696 ac_count=0
13697 $as_echo_n 0123456789 >"conftest.in"
13698 while :
13700 cat "conftest.in" "conftest.in" >"conftest.tmp"
13701 mv "conftest.tmp" "conftest.in"
13702 cp "conftest.in" "conftest.nl"
13703 $as_echo 'FGREP' >> "conftest.nl"
13704 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13706 as_fn_arith $ac_count + 1 && ac_count=$as_val
13707 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13708 # Best one so far, save it but keep looking for a better one
13709 ac_cv_path_FGREP="$ac_path_FGREP"
13710 ac_path_FGREP_max=$ac_count
13712 # 10*(2^10) chars as input seems more than enough
13713 test $ac_count -gt 10 && break
13714 done
13715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13716 esac
13718 $ac_path_FGREP_found && break 3
13719 done
13720 done
13721 done
13722 IFS=$as_save_IFS
13723 if test -z "$ac_cv_path_FGREP"; then
13724 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13726 else
13727 ac_cv_path_FGREP=$FGREP
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13733 $as_echo "$ac_cv_path_FGREP" >&6; }
13734 FGREP="$ac_cv_path_FGREP"
13737 test -z "$GREP" && GREP=grep
13757 # Check whether --with-gnu-ld was given.
13758 if test "${with_gnu_ld+set}" = set; then :
13759 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13760 else
13761 with_gnu_ld=no
13764 ac_prog=ld
13765 if test "$GCC" = yes; then
13766 # Check if gcc -print-prog-name=ld gives a path.
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13768 $as_echo_n "checking for ld used by $CC... " >&6; }
13769 case $host in
13770 *-*-mingw*)
13771 # gcc leaves a trailing carriage return which upsets mingw
13772 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13774 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13775 esac
13776 case $ac_prog in
13777 # Accept absolute paths.
13778 [\\/]* | ?:[\\/]*)
13779 re_direlt='/[^/][^/]*/\.\./'
13780 # Canonicalize the pathname of ld
13781 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13782 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13783 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13784 done
13785 test -z "$LD" && LD="$ac_prog"
13788 # If it fails, then pretend we aren't using GCC.
13789 ac_prog=ld
13792 # If it is relative, then search for the first ld in PATH.
13793 with_gnu_ld=unknown
13795 esac
13796 elif test "$with_gnu_ld" = yes; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13798 $as_echo_n "checking for GNU ld... " >&6; }
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13801 $as_echo_n "checking for non-GNU ld... " >&6; }
13803 if ${lt_cv_path_LD+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 if test -z "$LD"; then
13807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13808 for ac_dir in $PATH; do
13809 IFS="$lt_save_ifs"
13810 test -z "$ac_dir" && ac_dir=.
13811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13812 lt_cv_path_LD="$ac_dir/$ac_prog"
13813 # Check to see if the program is GNU ld. I'd rather use --version,
13814 # but apparently some variants of GNU ld only accept -v.
13815 # Break only if it was the GNU/non-GNU ld that we prefer.
13816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13817 *GNU* | *'with BFD'*)
13818 test "$with_gnu_ld" != no && break
13821 test "$with_gnu_ld" != yes && break
13823 esac
13825 done
13826 IFS="$lt_save_ifs"
13827 else
13828 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13832 LD="$lt_cv_path_LD"
13833 if test -n "$LD"; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13835 $as_echo "$LD" >&6; }
13836 else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13840 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13842 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13843 if ${lt_cv_prog_gnu_ld+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13847 case `$LD -v 2>&1 </dev/null` in
13848 *GNU* | *'with BFD'*)
13849 lt_cv_prog_gnu_ld=yes
13852 lt_cv_prog_gnu_ld=no
13854 esac
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13857 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13858 with_gnu_ld=$lt_cv_prog_gnu_ld
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13869 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13870 if ${lt_cv_path_NM+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 if test -n "$NM"; then
13874 # Let the user override the test.
13875 lt_cv_path_NM="$NM"
13876 else
13877 lt_nm_to_check="${ac_tool_prefix}nm"
13878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13879 lt_nm_to_check="$lt_nm_to_check nm"
13881 for lt_tmp_nm in $lt_nm_to_check; do
13882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13884 IFS="$lt_save_ifs"
13885 test -z "$ac_dir" && ac_dir=.
13886 tmp_nm="$ac_dir/$lt_tmp_nm"
13887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13888 # Check to see if the nm accepts a BSD-compat flag.
13889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13890 # nm: unknown option "B" ignored
13891 # Tru64's nm complains that /dev/null is an invalid object file
13892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13893 */dev/null* | *'Invalid file or object type'*)
13894 lt_cv_path_NM="$tmp_nm -B"
13895 break
13898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13899 */dev/null*)
13900 lt_cv_path_NM="$tmp_nm -p"
13901 break
13904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13905 continue # so that we can try to find one that supports BSD flags
13907 esac
13909 esac
13911 done
13912 IFS="$lt_save_ifs"
13913 done
13914 : ${lt_cv_path_NM=no}
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13918 $as_echo "$lt_cv_path_NM" >&6; }
13919 if test "$lt_cv_path_NM" != "no"; then
13920 NM="$lt_cv_path_NM"
13921 else
13922 # Didn't find any BSD compatible name lister, look for dumpbin.
13923 if test -n "$DUMPBIN"; then :
13924 # Let the user override the test.
13925 else
13926 if test -n "$ac_tool_prefix"; then
13927 for ac_prog in dumpbin "link -dump"
13929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if ${ac_cv_prog_DUMPBIN+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 if test -n "$DUMPBIN"; then
13937 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13938 else
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13946 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13950 done
13951 done
13952 IFS=$as_save_IFS
13956 DUMPBIN=$ac_cv_prog_DUMPBIN
13957 if test -n "$DUMPBIN"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13959 $as_echo "$DUMPBIN" >&6; }
13960 else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13966 test -n "$DUMPBIN" && break
13967 done
13969 if test -z "$DUMPBIN"; then
13970 ac_ct_DUMPBIN=$DUMPBIN
13971 for ac_prog in dumpbin "link -dump"
13973 # Extract the first word of "$ac_prog", so it can be a program name with args.
13974 set dummy $ac_prog; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 if test -n "$ac_ct_DUMPBIN"; then
13981 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13982 else
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13990 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13994 done
13995 done
13996 IFS=$as_save_IFS
14000 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14001 if test -n "$ac_ct_DUMPBIN"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14003 $as_echo "$ac_ct_DUMPBIN" >&6; }
14004 else
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14010 test -n "$ac_ct_DUMPBIN" && break
14011 done
14013 if test "x$ac_ct_DUMPBIN" = x; then
14014 DUMPBIN=":"
14015 else
14016 case $cross_compiling:$ac_tool_warned in
14017 yes:)
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14020 ac_tool_warned=yes ;;
14021 esac
14022 DUMPBIN=$ac_ct_DUMPBIN
14026 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14027 *COFF*)
14028 DUMPBIN="$DUMPBIN -symbols"
14031 DUMPBIN=:
14033 esac
14036 if test "$DUMPBIN" != ":"; then
14037 NM="$DUMPBIN"
14040 test -z "$NM" && NM=nm
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14048 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14049 if ${lt_cv_nm_interface+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 lt_cv_nm_interface="BSD nm"
14053 echo "int some_variable = 0;" > conftest.$ac_ext
14054 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14055 (eval "$ac_compile" 2>conftest.err)
14056 cat conftest.err >&5
14057 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14058 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14059 cat conftest.err >&5
14060 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14061 cat conftest.out >&5
14062 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14063 lt_cv_nm_interface="MS dumpbin"
14065 rm -f conftest*
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14068 $as_echo "$lt_cv_nm_interface" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14071 $as_echo_n "checking whether ln -s works... " >&6; }
14072 LN_S=$as_ln_s
14073 if test "$LN_S" = "ln -s"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14078 $as_echo "no, using $LN_S" >&6; }
14081 # find the maximum length of command line arguments
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14083 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14084 if ${lt_cv_sys_max_cmd_len+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14088 teststring="ABCD"
14090 case $build_os in
14091 msdosdjgpp*)
14092 # On DJGPP, this test can blow up pretty badly due to problems in libc
14093 # (any single argument exceeding 2000 bytes causes a buffer overrun
14094 # during glob expansion). Even if it were fixed, the result of this
14095 # check would be larger than it should be.
14096 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14099 gnu*)
14100 # Under GNU Hurd, this test is not required because there is
14101 # no limit to the length of command line arguments.
14102 # Libtool will interpret -1 as no limit whatsoever
14103 lt_cv_sys_max_cmd_len=-1;
14106 cygwin* | mingw* | cegcc*)
14107 # On Win9x/ME, this test blows up -- it succeeds, but takes
14108 # about 5 minutes as the teststring grows exponentially.
14109 # Worse, since 9x/ME are not pre-emptively multitasking,
14110 # you end up with a "frozen" computer, even though with patience
14111 # the test eventually succeeds (with a max line length of 256k).
14112 # Instead, let's just punt: use the minimum linelength reported by
14113 # all of the supported platforms: 8192 (on NT/2K/XP).
14114 lt_cv_sys_max_cmd_len=8192;
14117 mint*)
14118 # On MiNT this can take a long time and run out of memory.
14119 lt_cv_sys_max_cmd_len=8192;
14122 amigaos*)
14123 # On AmigaOS with pdksh, this test takes hours, literally.
14124 # So we just punt and use a minimum line length of 8192.
14125 lt_cv_sys_max_cmd_len=8192;
14128 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14129 # This has been around since 386BSD, at least. Likely further.
14130 if test -x /sbin/sysctl; then
14131 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14132 elif test -x /usr/sbin/sysctl; then
14133 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14134 else
14135 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14137 # And add a safety zone
14138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14142 interix*)
14143 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14144 lt_cv_sys_max_cmd_len=196608
14147 osf*)
14148 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14149 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14150 # nice to cause kernel panics so lets avoid the loop below.
14151 # First set a reasonable default.
14152 lt_cv_sys_max_cmd_len=16384
14154 if test -x /sbin/sysconfig; then
14155 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14156 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14157 esac
14160 sco3.2v5*)
14161 lt_cv_sys_max_cmd_len=102400
14163 sysv5* | sco5v6* | sysv4.2uw2*)
14164 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14165 if test -n "$kargmax"; then
14166 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14167 else
14168 lt_cv_sys_max_cmd_len=32768
14172 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14173 if test -n "$lt_cv_sys_max_cmd_len"; then
14174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14176 else
14177 # Make teststring a little bigger before we do anything with it.
14178 # a 1K string should be a reasonable start.
14179 for i in 1 2 3 4 5 6 7 8 ; do
14180 teststring=$teststring$teststring
14181 done
14182 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14183 # If test is not a shell built-in, we'll probably end up computing a
14184 # maximum length that is only half of the actual maximum length, but
14185 # we can't tell.
14186 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14187 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14188 test $i != 17 # 1/2 MB should be enough
14190 i=`expr $i + 1`
14191 teststring=$teststring$teststring
14192 done
14193 # Only check the string length outside the loop.
14194 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14195 teststring=
14196 # Add a significant safety factor because C++ compilers can tack on
14197 # massive amounts of additional arguments before passing them to the
14198 # linker. It appears as though 1/2 is a usable value.
14199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14202 esac
14206 if test -n $lt_cv_sys_max_cmd_len ; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14208 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14209 else
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14211 $as_echo "none" >&6; }
14213 max_cmd_len=$lt_cv_sys_max_cmd_len
14220 : ${CP="cp -f"}
14221 : ${MV="mv -f"}
14222 : ${RM="rm -f"}
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14225 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14226 # Try some XSI features
14227 xsi_shell=no
14228 ( _lt_dummy="a/b/c"
14229 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14230 = c,a/b,, \
14231 && eval 'test $(( 1 + 1 )) -eq 2 \
14232 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14233 && xsi_shell=yes
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14235 $as_echo "$xsi_shell" >&6; }
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14239 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14240 lt_shell_append=no
14241 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14242 >/dev/null 2>&1 \
14243 && lt_shell_append=yes
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14245 $as_echo "$lt_shell_append" >&6; }
14248 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14249 lt_unset=unset
14250 else
14251 lt_unset=false
14258 # test EBCDIC or ASCII
14259 case `echo X|tr X '\101'` in
14260 A) # ASCII based system
14261 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14262 lt_SP2NL='tr \040 \012'
14263 lt_NL2SP='tr \015\012 \040\040'
14265 *) # EBCDIC based system
14266 lt_SP2NL='tr \100 \n'
14267 lt_NL2SP='tr \r\n \100\100'
14269 esac
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14280 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14281 if ${lt_cv_ld_reload_flag+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 lt_cv_ld_reload_flag='-r'
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14287 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14288 reload_flag=$lt_cv_ld_reload_flag
14289 case $reload_flag in
14290 "" | " "*) ;;
14291 *) reload_flag=" $reload_flag" ;;
14292 esac
14293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14294 case $host_os in
14295 darwin*)
14296 if test "$GCC" = yes; then
14297 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14298 else
14299 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14302 esac
14312 if test -n "$ac_tool_prefix"; then
14313 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14314 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if ${ac_cv_prog_OBJDUMP+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 if test -n "$OBJDUMP"; then
14321 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14334 done
14335 done
14336 IFS=$as_save_IFS
14340 OBJDUMP=$ac_cv_prog_OBJDUMP
14341 if test -n "$OBJDUMP"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14343 $as_echo "$OBJDUMP" >&6; }
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14351 if test -z "$ac_cv_prog_OBJDUMP"; then
14352 ac_ct_OBJDUMP=$OBJDUMP
14353 # Extract the first word of "objdump", so it can be a program name with args.
14354 set dummy objdump; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356 $as_echo_n "checking for $ac_word... " >&6; }
14357 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 if test -n "$ac_ct_OBJDUMP"; then
14361 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14362 else
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14366 IFS=$as_save_IFS
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
14369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14370 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14372 break 2
14374 done
14375 done
14376 IFS=$as_save_IFS
14380 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14381 if test -n "$ac_ct_OBJDUMP"; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14383 $as_echo "$ac_ct_OBJDUMP" >&6; }
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14389 if test "x$ac_ct_OBJDUMP" = x; then
14390 OBJDUMP="false"
14391 else
14392 case $cross_compiling:$ac_tool_warned in
14393 yes:)
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14396 ac_tool_warned=yes ;;
14397 esac
14398 OBJDUMP=$ac_ct_OBJDUMP
14400 else
14401 OBJDUMP="$ac_cv_prog_OBJDUMP"
14404 test -z "$OBJDUMP" && OBJDUMP=objdump
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14415 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14416 if ${lt_cv_deplibs_check_method+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 lt_cv_file_magic_cmd='$MAGIC_CMD'
14420 lt_cv_file_magic_test_file=
14421 lt_cv_deplibs_check_method='unknown'
14422 # Need to set the preceding variable on all platforms that support
14423 # interlibrary dependencies.
14424 # 'none' -- dependencies not supported.
14425 # `unknown' -- same as none, but documents that we really don't know.
14426 # 'pass_all' -- all dependencies passed with no checks.
14427 # 'test_compile' -- check by making test program.
14428 # 'file_magic [[regex]]' -- check by looking for files in library path
14429 # which responds to the $file_magic_cmd with a given extended regex.
14430 # If you have `file' or equivalent on your system and you're not sure
14431 # whether `pass_all' will *always* work, you probably want this one.
14433 case $host_os in
14434 aix[4-9]*)
14435 lt_cv_deplibs_check_method=pass_all
14438 beos*)
14439 lt_cv_deplibs_check_method=pass_all
14442 bsdi[45]*)
14443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14444 lt_cv_file_magic_cmd='/usr/bin/file -L'
14445 lt_cv_file_magic_test_file=/shlib/libc.so
14448 cygwin*)
14449 # func_win32_libid is a shell function defined in ltmain.sh
14450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14451 lt_cv_file_magic_cmd='func_win32_libid'
14454 mingw* | pw32*)
14455 # Base MSYS/MinGW do not provide the 'file' command needed by
14456 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14457 # unless we find 'file', for example because we are cross-compiling.
14458 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14459 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14461 lt_cv_file_magic_cmd='func_win32_libid'
14462 else
14463 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14464 lt_cv_file_magic_cmd='$OBJDUMP -f'
14468 cegcc*)
14469 # use the weaker test based on 'objdump'. See mingw*.
14470 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14471 lt_cv_file_magic_cmd='$OBJDUMP -f'
14474 darwin* | rhapsody*)
14475 lt_cv_deplibs_check_method=pass_all
14478 freebsd* | dragonfly*)
14479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14480 case $host_cpu in
14481 i*86 )
14482 # Not sure whether the presence of OpenBSD here was a mistake.
14483 # Let's accept both of them until this is cleared up.
14484 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14485 lt_cv_file_magic_cmd=/usr/bin/file
14486 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14488 esac
14489 else
14490 lt_cv_deplibs_check_method=pass_all
14494 gnu*)
14495 lt_cv_deplibs_check_method=pass_all
14498 haiku*)
14499 lt_cv_deplibs_check_method=pass_all
14502 hpux10.20* | hpux11*)
14503 lt_cv_file_magic_cmd=/usr/bin/file
14504 case $host_cpu in
14505 ia64*)
14506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14507 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14509 hppa*64*)
14510 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]'
14511 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14515 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14517 esac
14520 interix[3-9]*)
14521 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14525 irix5* | irix6* | nonstopux*)
14526 case $LD in
14527 *-32|*"-32 ") libmagic=32-bit;;
14528 *-n32|*"-n32 ") libmagic=N32;;
14529 *-64|*"-64 ") libmagic=64-bit;;
14530 *) libmagic=never-match;;
14531 esac
14532 lt_cv_deplibs_check_method=pass_all
14535 # This must be Linux ELF.
14536 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14537 lt_cv_deplibs_check_method=pass_all
14540 netbsd*)
14541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14543 else
14544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14548 newos6*)
14549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14550 lt_cv_file_magic_cmd=/usr/bin/file
14551 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14554 *nto* | *qnx*)
14555 lt_cv_deplibs_check_method=pass_all
14558 openbsd*)
14559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14561 else
14562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14566 osf3* | osf4* | osf5*)
14567 lt_cv_deplibs_check_method=pass_all
14570 rdos*)
14571 lt_cv_deplibs_check_method=pass_all
14574 solaris*)
14575 lt_cv_deplibs_check_method=pass_all
14578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14579 lt_cv_deplibs_check_method=pass_all
14582 sysv4 | sysv4.3*)
14583 case $host_vendor in
14584 motorola)
14585 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]'
14586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14588 ncr)
14589 lt_cv_deplibs_check_method=pass_all
14591 sequent)
14592 lt_cv_file_magic_cmd='/bin/file'
14593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14595 sni)
14596 lt_cv_file_magic_cmd='/bin/file'
14597 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14598 lt_cv_file_magic_test_file=/lib/libc.so
14600 siemens)
14601 lt_cv_deplibs_check_method=pass_all
14604 lt_cv_deplibs_check_method=pass_all
14606 esac
14609 tpf*)
14610 lt_cv_deplibs_check_method=pass_all
14612 esac
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14616 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14617 file_magic_cmd=$lt_cv_file_magic_cmd
14618 deplibs_check_method=$lt_cv_deplibs_check_method
14619 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14632 if test -n "$ac_tool_prefix"; then
14633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14634 set dummy ${ac_tool_prefix}ar; ac_word=$2
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14636 $as_echo_n "checking for $ac_word... " >&6; }
14637 if ${ac_cv_prog_AR+:} false; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640 if test -n "$AR"; then
14641 ac_cv_prog_AR="$AR" # Let the user override the test.
14642 else
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 for as_dir in $PATH
14646 IFS=$as_save_IFS
14647 test -z "$as_dir" && as_dir=.
14648 for ac_exec_ext in '' $ac_executable_extensions; do
14649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14650 ac_cv_prog_AR="${ac_tool_prefix}ar"
14651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14652 break 2
14654 done
14655 done
14656 IFS=$as_save_IFS
14660 AR=$ac_cv_prog_AR
14661 if test -n "$AR"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14663 $as_echo "$AR" >&6; }
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14671 if test -z "$ac_cv_prog_AR"; then
14672 ac_ct_AR=$AR
14673 # Extract the first word of "ar", so it can be a program name with args.
14674 set dummy ar; ac_word=$2
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14676 $as_echo_n "checking for $ac_word... " >&6; }
14677 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 if test -n "$ac_ct_AR"; then
14681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14682 else
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14686 IFS=$as_save_IFS
14687 test -z "$as_dir" && as_dir=.
14688 for ac_exec_ext in '' $ac_executable_extensions; do
14689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690 ac_cv_prog_ac_ct_AR="ar"
14691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692 break 2
14694 done
14695 done
14696 IFS=$as_save_IFS
14700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14701 if test -n "$ac_ct_AR"; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14703 $as_echo "$ac_ct_AR" >&6; }
14704 else
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14709 if test "x$ac_ct_AR" = x; then
14710 AR="false"
14711 else
14712 case $cross_compiling:$ac_tool_warned in
14713 yes:)
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14716 ac_tool_warned=yes ;;
14717 esac
14718 AR=$ac_ct_AR
14720 else
14721 AR="$ac_cv_prog_AR"
14724 test -z "$AR" && AR=ar
14725 test -z "$AR_FLAGS" && AR_FLAGS=cru
14737 if test -n "$ac_tool_prefix"; then
14738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14739 set dummy ${ac_tool_prefix}strip; ac_word=$2
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14741 $as_echo_n "checking for $ac_word... " >&6; }
14742 if ${ac_cv_prog_STRIP+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 if test -n "$STRIP"; then
14746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14747 else
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14751 IFS=$as_save_IFS
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14757 break 2
14759 done
14760 done
14761 IFS=$as_save_IFS
14765 STRIP=$ac_cv_prog_STRIP
14766 if test -n "$STRIP"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14768 $as_echo "$STRIP" >&6; }
14769 else
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771 $as_echo "no" >&6; }
14776 if test -z "$ac_cv_prog_STRIP"; then
14777 ac_ct_STRIP=$STRIP
14778 # Extract the first word of "strip", so it can be a program name with args.
14779 set dummy strip; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781 $as_echo_n "checking for $ac_word... " >&6; }
14782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 if test -n "$ac_ct_STRIP"; then
14786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14787 else
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_ac_ct_STRIP="strip"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14797 break 2
14799 done
14800 done
14801 IFS=$as_save_IFS
14805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14806 if test -n "$ac_ct_STRIP"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14808 $as_echo "$ac_ct_STRIP" >&6; }
14809 else
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 $as_echo "no" >&6; }
14814 if test "x$ac_ct_STRIP" = x; then
14815 STRIP=":"
14816 else
14817 case $cross_compiling:$ac_tool_warned in
14818 yes:)
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14821 ac_tool_warned=yes ;;
14822 esac
14823 STRIP=$ac_ct_STRIP
14825 else
14826 STRIP="$ac_cv_prog_STRIP"
14829 test -z "$STRIP" && STRIP=:
14836 if test -n "$ac_tool_prefix"; then
14837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14840 $as_echo_n "checking for $ac_word... " >&6; }
14841 if ${ac_cv_prog_RANLIB+:} false; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 if test -n "$RANLIB"; then
14845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14846 else
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14850 IFS=$as_save_IFS
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856 break 2
14858 done
14859 done
14860 IFS=$as_save_IFS
14864 RANLIB=$ac_cv_prog_RANLIB
14865 if test -n "$RANLIB"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14867 $as_echo "$RANLIB" >&6; }
14868 else
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14870 $as_echo "no" >&6; }
14875 if test -z "$ac_cv_prog_RANLIB"; then
14876 ac_ct_RANLIB=$RANLIB
14877 # Extract the first word of "ranlib", so it can be a program name with args.
14878 set dummy ranlib; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880 $as_echo_n "checking for $ac_word... " >&6; }
14881 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 if test -n "$ac_ct_RANLIB"; then
14885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14886 else
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14890 IFS=$as_save_IFS
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894 ac_cv_prog_ac_ct_RANLIB="ranlib"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896 break 2
14898 done
14899 done
14900 IFS=$as_save_IFS
14904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14905 if test -n "$ac_ct_RANLIB"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14907 $as_echo "$ac_ct_RANLIB" >&6; }
14908 else
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 $as_echo "no" >&6; }
14913 if test "x$ac_ct_RANLIB" = x; then
14914 RANLIB=":"
14915 else
14916 case $cross_compiling:$ac_tool_warned in
14917 yes:)
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14920 ac_tool_warned=yes ;;
14921 esac
14922 RANLIB=$ac_ct_RANLIB
14924 else
14925 RANLIB="$ac_cv_prog_RANLIB"
14928 test -z "$RANLIB" && RANLIB=:
14935 # Determine commands to create old-style static archives.
14936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14937 old_postinstall_cmds='chmod 644 $oldlib'
14938 old_postuninstall_cmds=
14940 if test -n "$RANLIB"; then
14941 case $host_os in
14942 openbsd*)
14943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14948 esac
14949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14952 case $host_os in
14953 darwin*)
14954 lock_old_archive_extraction=yes ;;
14956 lock_old_archive_extraction=no ;;
14957 esac
14997 # If no C compiler was specified, use CC.
14998 LTCC=${LTCC-"$CC"}
15000 # If no C compiler flags were specified, use CFLAGS.
15001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15003 # Allow CC to be a program name with arguments.
15004 compiler=$CC
15007 # Check for command to grab the raw symbol name followed by C symbol from nm.
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15009 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15010 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15011 $as_echo_n "(cached) " >&6
15012 else
15014 # These are sane defaults that work on at least a few old systems.
15015 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15017 # Character class describing NM global symbol codes.
15018 symcode='[BCDEGRST]'
15020 # Regexp to match symbols that can be accessed directly from C.
15021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15023 # Define system-specific variables.
15024 case $host_os in
15025 aix*)
15026 symcode='[BCDT]'
15028 cygwin* | mingw* | pw32* | cegcc*)
15029 symcode='[ABCDGISTW]'
15031 hpux*)
15032 if test "$host_cpu" = ia64; then
15033 symcode='[ABCDEGRST]'
15036 irix* | nonstopux*)
15037 symcode='[BCDEGRST]'
15039 osf*)
15040 symcode='[BCDEGQRST]'
15042 solaris*)
15043 symcode='[BDRT]'
15045 sco3.2v5*)
15046 symcode='[DT]'
15048 sysv4.2uw2*)
15049 symcode='[DT]'
15051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15052 symcode='[ABDT]'
15054 sysv4)
15055 symcode='[DFNSTU]'
15057 esac
15059 # If we're using GNU nm, then use its standard symbol codes.
15060 case `$NM -V 2>&1` in
15061 *GNU* | *'with BFD'*)
15062 symcode='[ABCDGIRSTW]' ;;
15063 esac
15065 # Transform an extracted symbol line into a proper C declaration.
15066 # Some systems (esp. on ia64) link data and code symbols differently,
15067 # so use this general approach.
15068 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15070 # Transform an extracted symbol line into symbol name and symbol address
15071 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15072 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'"
15074 # Handle CRLF in mingw tool chain
15075 opt_cr=
15076 case $build_os in
15077 mingw*)
15078 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15080 esac
15082 # Try without a prefix underscore, then with it.
15083 for ac_symprfx in "" "_"; do
15085 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15086 symxfrm="\\1 $ac_symprfx\\2 \\2"
15088 # Write the raw and C identifiers.
15089 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15090 # Fake it for dumpbin and say T for any non-static function
15091 # and D for any global variable.
15092 # Also find C++ and __fastcall symbols from MSVC++,
15093 # which start with @ or ?.
15094 lt_cv_sys_global_symbol_pipe="$AWK '"\
15095 " {last_section=section; section=\$ 3};"\
15096 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15097 " \$ 0!~/External *\|/{next};"\
15098 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15099 " {if(hide[section]) next};"\
15100 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15101 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15102 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15103 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15104 " ' prfx=^$ac_symprfx"
15105 else
15106 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15109 # Check to see that the pipe works correctly.
15110 pipe_works=no
15112 rm -f conftest*
15113 cat > conftest.$ac_ext <<_LT_EOF
15114 #ifdef __cplusplus
15115 extern "C" {
15116 #endif
15117 char nm_test_var;
15118 void nm_test_func(void);
15119 void nm_test_func(void){}
15120 #ifdef __cplusplus
15122 #endif
15123 int main(){nm_test_var='a';nm_test_func();return(0);}
15124 _LT_EOF
15126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15127 (eval $ac_compile) 2>&5
15128 ac_status=$?
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130 test $ac_status = 0; }; then
15131 # Now try to grab the symbols.
15132 nlist=conftest.nm
15133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15134 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15135 ac_status=$?
15136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15137 test $ac_status = 0; } && test -s "$nlist"; then
15138 # Try sorting and uniquifying the output.
15139 if sort "$nlist" | uniq > "$nlist"T; then
15140 mv -f "$nlist"T "$nlist"
15141 else
15142 rm -f "$nlist"T
15145 # Make sure that we snagged all the symbols we need.
15146 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15147 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15148 cat <<_LT_EOF > conftest.$ac_ext
15149 #ifdef __cplusplus
15150 extern "C" {
15151 #endif
15153 _LT_EOF
15154 # Now generate the symbol file.
15155 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15157 cat <<_LT_EOF >> conftest.$ac_ext
15159 /* The mapping between symbol names and symbols. */
15160 const struct {
15161 const char *name;
15162 void *address;
15164 lt__PROGRAM__LTX_preloaded_symbols[] =
15166 { "@PROGRAM@", (void *) 0 },
15167 _LT_EOF
15168 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15169 cat <<\_LT_EOF >> conftest.$ac_ext
15170 {0, (void *) 0}
15173 /* This works around a problem in FreeBSD linker */
15174 #ifdef FREEBSD_WORKAROUND
15175 static const void *lt_preloaded_setup() {
15176 return lt__PROGRAM__LTX_preloaded_symbols;
15178 #endif
15180 #ifdef __cplusplus
15182 #endif
15183 _LT_EOF
15184 # Now try linking the two files.
15185 mv conftest.$ac_objext conftstm.$ac_objext
15186 lt_save_LIBS="$LIBS"
15187 lt_save_CFLAGS="$CFLAGS"
15188 LIBS="conftstm.$ac_objext"
15189 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15191 (eval $ac_link) 2>&5
15192 ac_status=$?
15193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15194 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15195 pipe_works=yes
15197 LIBS="$lt_save_LIBS"
15198 CFLAGS="$lt_save_CFLAGS"
15199 else
15200 echo "cannot find nm_test_func in $nlist" >&5
15202 else
15203 echo "cannot find nm_test_var in $nlist" >&5
15205 else
15206 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15208 else
15209 echo "$progname: failed program was:" >&5
15210 cat conftest.$ac_ext >&5
15212 rm -rf conftest* conftst*
15214 # Do not use the global_symbol_pipe unless it works.
15215 if test "$pipe_works" = yes; then
15216 break
15217 else
15218 lt_cv_sys_global_symbol_pipe=
15220 done
15224 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15225 lt_cv_sys_global_symbol_to_cdecl=
15227 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15229 $as_echo "failed" >&6; }
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15232 $as_echo "ok" >&6; }
15256 # Check whether --enable-libtool-lock was given.
15257 if test "${enable_libtool_lock+set}" = set; then :
15258 enableval=$enable_libtool_lock;
15261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15263 # Some flags need to be propagated to the compiler or linker for good
15264 # libtool support.
15265 case $host in
15266 ia64-*-hpux*)
15267 # Find out which ABI we are using.
15268 echo 'int i;' > conftest.$ac_ext
15269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15270 (eval $ac_compile) 2>&5
15271 ac_status=$?
15272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15273 test $ac_status = 0; }; then
15274 case `/usr/bin/file conftest.$ac_objext` in
15275 *ELF-32*)
15276 HPUX_IA64_MODE="32"
15278 *ELF-64*)
15279 HPUX_IA64_MODE="64"
15281 esac
15283 rm -rf conftest*
15285 *-*-irix6*)
15286 # Find out which ABI we are using.
15287 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15289 (eval $ac_compile) 2>&5
15290 ac_status=$?
15291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15292 test $ac_status = 0; }; then
15293 if test "$lt_cv_prog_gnu_ld" = yes; then
15294 case `/usr/bin/file conftest.$ac_objext` in
15295 *32-bit*)
15296 LD="${LD-ld} -melf32bsmip"
15298 *N32*)
15299 LD="${LD-ld} -melf32bmipn32"
15301 *64-bit*)
15302 LD="${LD-ld} -melf64bmip"
15304 esac
15305 else
15306 case `/usr/bin/file conftest.$ac_objext` in
15307 *32-bit*)
15308 LD="${LD-ld} -32"
15310 *N32*)
15311 LD="${LD-ld} -n32"
15313 *64-bit*)
15314 LD="${LD-ld} -64"
15316 esac
15319 rm -rf conftest*
15322 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15323 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15324 # Find out which ABI we are using.
15325 echo 'int i;' > conftest.$ac_ext
15326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15327 (eval $ac_compile) 2>&5
15328 ac_status=$?
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 test $ac_status = 0; }; then
15331 case `/usr/bin/file conftest.o` in
15332 *32-bit*)
15333 case $host in
15334 x86_64-*kfreebsd*-gnu)
15335 LD="${LD-ld} -m elf_i386_fbsd"
15337 x86_64-*linux*)
15338 case `/usr/bin/file conftest.o` in
15339 *x86-64*)
15340 LD="${LD-ld} -m elf32_x86_64"
15343 LD="${LD-ld} -m elf_i386"
15345 esac
15347 powerpc64le-*linux*)
15348 LD="${LD-ld} -m elf32lppclinux"
15350 powerpc64-*linux*)
15351 LD="${LD-ld} -m elf32ppclinux"
15353 s390x-*linux*)
15354 LD="${LD-ld} -m elf_s390"
15356 sparc64-*linux*)
15357 LD="${LD-ld} -m elf32_sparc"
15359 esac
15361 *64-bit*)
15362 case $host in
15363 x86_64-*kfreebsd*-gnu)
15364 LD="${LD-ld} -m elf_x86_64_fbsd"
15366 x86_64-*linux*)
15367 LD="${LD-ld} -m elf_x86_64"
15369 powerpcle-*linux*)
15370 LD="${LD-ld} -m elf64lppc"
15372 powerpc-*linux*)
15373 LD="${LD-ld} -m elf64ppc"
15375 s390*-*linux*|s390*-*tpf*)
15376 LD="${LD-ld} -m elf64_s390"
15378 sparc*-*linux*)
15379 LD="${LD-ld} -m elf64_sparc"
15381 esac
15383 esac
15385 rm -rf conftest*
15388 *-*-sco3.2v5*)
15389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15390 SAVE_CFLAGS="$CFLAGS"
15391 CFLAGS="$CFLAGS -belf"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15393 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15394 if ${lt_cv_cc_needs_belf+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 ac_ext=c
15398 ac_cpp='$CPP $CPPFLAGS'
15399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15407 main ()
15411 return 0;
15413 _ACEOF
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 lt_cv_cc_needs_belf=yes
15416 else
15417 lt_cv_cc_needs_belf=no
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 ac_ext=c
15422 ac_cpp='$CPP $CPPFLAGS'
15423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15429 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15430 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15432 CFLAGS="$SAVE_CFLAGS"
15435 sparc*-*solaris*)
15436 # Find out which ABI we are using.
15437 echo 'int i;' > conftest.$ac_ext
15438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15439 (eval $ac_compile) 2>&5
15440 ac_status=$?
15441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442 test $ac_status = 0; }; then
15443 case `/usr/bin/file conftest.o` in
15444 *64-bit*)
15445 case $lt_cv_prog_gnu_ld in
15446 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15448 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15449 LD="${LD-ld} -64"
15452 esac
15454 esac
15456 rm -rf conftest*
15458 esac
15460 need_locks="$enable_libtool_lock"
15463 case $host_os in
15464 rhapsody* | darwin*)
15465 if test -n "$ac_tool_prefix"; then
15466 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15467 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15469 $as_echo_n "checking for $ac_word... " >&6; }
15470 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 if test -n "$DSYMUTIL"; then
15474 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15475 else
15476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15477 for as_dir in $PATH
15479 IFS=$as_save_IFS
15480 test -z "$as_dir" && as_dir=.
15481 for ac_exec_ext in '' $ac_executable_extensions; do
15482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15483 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15485 break 2
15487 done
15488 done
15489 IFS=$as_save_IFS
15493 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15494 if test -n "$DSYMUTIL"; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15496 $as_echo "$DSYMUTIL" >&6; }
15497 else
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499 $as_echo "no" >&6; }
15504 if test -z "$ac_cv_prog_DSYMUTIL"; then
15505 ac_ct_DSYMUTIL=$DSYMUTIL
15506 # Extract the first word of "dsymutil", so it can be a program name with args.
15507 set dummy dsymutil; ac_word=$2
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15509 $as_echo_n "checking for $ac_word... " >&6; }
15510 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 if test -n "$ac_ct_DSYMUTIL"; then
15514 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15515 else
15516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517 for as_dir in $PATH
15519 IFS=$as_save_IFS
15520 test -z "$as_dir" && as_dir=.
15521 for ac_exec_ext in '' $ac_executable_extensions; do
15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15523 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15525 break 2
15527 done
15528 done
15529 IFS=$as_save_IFS
15533 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15534 if test -n "$ac_ct_DSYMUTIL"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15536 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15537 else
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15542 if test "x$ac_ct_DSYMUTIL" = x; then
15543 DSYMUTIL=":"
15544 else
15545 case $cross_compiling:$ac_tool_warned in
15546 yes:)
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15549 ac_tool_warned=yes ;;
15550 esac
15551 DSYMUTIL=$ac_ct_DSYMUTIL
15553 else
15554 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15557 if test -n "$ac_tool_prefix"; then
15558 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15559 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15561 $as_echo_n "checking for $ac_word... " >&6; }
15562 if ${ac_cv_prog_NMEDIT+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 if test -n "$NMEDIT"; then
15566 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15567 else
15568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15571 IFS=$as_save_IFS
15572 test -z "$as_dir" && as_dir=.
15573 for ac_exec_ext in '' $ac_executable_extensions; do
15574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15575 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15577 break 2
15579 done
15580 done
15581 IFS=$as_save_IFS
15585 NMEDIT=$ac_cv_prog_NMEDIT
15586 if test -n "$NMEDIT"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15588 $as_echo "$NMEDIT" >&6; }
15589 else
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15591 $as_echo "no" >&6; }
15596 if test -z "$ac_cv_prog_NMEDIT"; then
15597 ac_ct_NMEDIT=$NMEDIT
15598 # Extract the first word of "nmedit", so it can be a program name with args.
15599 set dummy nmedit; ac_word=$2
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15601 $as_echo_n "checking for $ac_word... " >&6; }
15602 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15603 $as_echo_n "(cached) " >&6
15604 else
15605 if test -n "$ac_ct_NMEDIT"; then
15606 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15607 else
15608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15609 for as_dir in $PATH
15611 IFS=$as_save_IFS
15612 test -z "$as_dir" && as_dir=.
15613 for ac_exec_ext in '' $ac_executable_extensions; do
15614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15615 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15617 break 2
15619 done
15620 done
15621 IFS=$as_save_IFS
15625 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15626 if test -n "$ac_ct_NMEDIT"; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15628 $as_echo "$ac_ct_NMEDIT" >&6; }
15629 else
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631 $as_echo "no" >&6; }
15634 if test "x$ac_ct_NMEDIT" = x; then
15635 NMEDIT=":"
15636 else
15637 case $cross_compiling:$ac_tool_warned in
15638 yes:)
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15641 ac_tool_warned=yes ;;
15642 esac
15643 NMEDIT=$ac_ct_NMEDIT
15645 else
15646 NMEDIT="$ac_cv_prog_NMEDIT"
15649 if test -n "$ac_tool_prefix"; then
15650 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15651 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15653 $as_echo_n "checking for $ac_word... " >&6; }
15654 if ${ac_cv_prog_LIPO+:} false; then :
15655 $as_echo_n "(cached) " >&6
15656 else
15657 if test -n "$LIPO"; then
15658 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15659 else
15660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661 for as_dir in $PATH
15663 IFS=$as_save_IFS
15664 test -z "$as_dir" && as_dir=.
15665 for ac_exec_ext in '' $ac_executable_extensions; do
15666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15667 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15669 break 2
15671 done
15672 done
15673 IFS=$as_save_IFS
15677 LIPO=$ac_cv_prog_LIPO
15678 if test -n "$LIPO"; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15680 $as_echo "$LIPO" >&6; }
15681 else
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683 $as_echo "no" >&6; }
15688 if test -z "$ac_cv_prog_LIPO"; then
15689 ac_ct_LIPO=$LIPO
15690 # Extract the first word of "lipo", so it can be a program name with args.
15691 set dummy lipo; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15693 $as_echo_n "checking for $ac_word... " >&6; }
15694 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15695 $as_echo_n "(cached) " >&6
15696 else
15697 if test -n "$ac_ct_LIPO"; then
15698 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15699 else
15700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701 for as_dir in $PATH
15703 IFS=$as_save_IFS
15704 test -z "$as_dir" && as_dir=.
15705 for ac_exec_ext in '' $ac_executable_extensions; do
15706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707 ac_cv_prog_ac_ct_LIPO="lipo"
15708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15709 break 2
15711 done
15712 done
15713 IFS=$as_save_IFS
15717 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15718 if test -n "$ac_ct_LIPO"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15720 $as_echo "$ac_ct_LIPO" >&6; }
15721 else
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15726 if test "x$ac_ct_LIPO" = x; then
15727 LIPO=":"
15728 else
15729 case $cross_compiling:$ac_tool_warned in
15730 yes:)
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15733 ac_tool_warned=yes ;;
15734 esac
15735 LIPO=$ac_ct_LIPO
15737 else
15738 LIPO="$ac_cv_prog_LIPO"
15741 if test -n "$ac_tool_prefix"; then
15742 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15743 set dummy ${ac_tool_prefix}otool; ac_word=$2
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15745 $as_echo_n "checking for $ac_word... " >&6; }
15746 if ${ac_cv_prog_OTOOL+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749 if test -n "$OTOOL"; then
15750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15751 else
15752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753 for as_dir in $PATH
15755 IFS=$as_save_IFS
15756 test -z "$as_dir" && as_dir=.
15757 for ac_exec_ext in '' $ac_executable_extensions; do
15758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15761 break 2
15763 done
15764 done
15765 IFS=$as_save_IFS
15769 OTOOL=$ac_cv_prog_OTOOL
15770 if test -n "$OTOOL"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15772 $as_echo "$OTOOL" >&6; }
15773 else
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15775 $as_echo "no" >&6; }
15780 if test -z "$ac_cv_prog_OTOOL"; then
15781 ac_ct_OTOOL=$OTOOL
15782 # Extract the first word of "otool", so it can be a program name with args.
15783 set dummy otool; ac_word=$2
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15785 $as_echo_n "checking for $ac_word... " >&6; }
15786 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 if test -n "$ac_ct_OTOOL"; then
15790 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15791 else
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15795 IFS=$as_save_IFS
15796 test -z "$as_dir" && as_dir=.
15797 for ac_exec_ext in '' $ac_executable_extensions; do
15798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799 ac_cv_prog_ac_ct_OTOOL="otool"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801 break 2
15803 done
15804 done
15805 IFS=$as_save_IFS
15809 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15810 if test -n "$ac_ct_OTOOL"; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15812 $as_echo "$ac_ct_OTOOL" >&6; }
15813 else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15818 if test "x$ac_ct_OTOOL" = x; then
15819 OTOOL=":"
15820 else
15821 case $cross_compiling:$ac_tool_warned in
15822 yes:)
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15825 ac_tool_warned=yes ;;
15826 esac
15827 OTOOL=$ac_ct_OTOOL
15829 else
15830 OTOOL="$ac_cv_prog_OTOOL"
15833 if test -n "$ac_tool_prefix"; then
15834 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15835 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837 $as_echo_n "checking for $ac_word... " >&6; }
15838 if ${ac_cv_prog_OTOOL64+:} false; then :
15839 $as_echo_n "(cached) " >&6
15840 else
15841 if test -n "$OTOOL64"; then
15842 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15843 else
15844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15847 IFS=$as_save_IFS
15848 test -z "$as_dir" && as_dir=.
15849 for ac_exec_ext in '' $ac_executable_extensions; do
15850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15853 break 2
15855 done
15856 done
15857 IFS=$as_save_IFS
15861 OTOOL64=$ac_cv_prog_OTOOL64
15862 if test -n "$OTOOL64"; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15864 $as_echo "$OTOOL64" >&6; }
15865 else
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867 $as_echo "no" >&6; }
15872 if test -z "$ac_cv_prog_OTOOL64"; then
15873 ac_ct_OTOOL64=$OTOOL64
15874 # Extract the first word of "otool64", so it can be a program name with args.
15875 set dummy otool64; ac_word=$2
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877 $as_echo_n "checking for $ac_word... " >&6; }
15878 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 if test -n "$ac_ct_OTOOL64"; then
15882 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15883 else
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15887 IFS=$as_save_IFS
15888 test -z "$as_dir" && as_dir=.
15889 for ac_exec_ext in '' $ac_executable_extensions; do
15890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891 ac_cv_prog_ac_ct_OTOOL64="otool64"
15892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15893 break 2
15895 done
15896 done
15897 IFS=$as_save_IFS
15901 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15902 if test -n "$ac_ct_OTOOL64"; then
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15904 $as_echo "$ac_ct_OTOOL64" >&6; }
15905 else
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907 $as_echo "no" >&6; }
15910 if test "x$ac_ct_OTOOL64" = x; then
15911 OTOOL64=":"
15912 else
15913 case $cross_compiling:$ac_tool_warned in
15914 yes:)
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15917 ac_tool_warned=yes ;;
15918 esac
15919 OTOOL64=$ac_ct_OTOOL64
15921 else
15922 OTOOL64="$ac_cv_prog_OTOOL64"
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15952 $as_echo_n "checking for -single_module linker flag... " >&6; }
15953 if ${lt_cv_apple_cc_single_mod+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 lt_cv_apple_cc_single_mod=no
15957 if test -z "${LT_MULTI_MODULE}"; then
15958 # By default we will add the -single_module flag. You can override
15959 # by either setting the environment variable LT_MULTI_MODULE
15960 # non-empty at configure time, or by adding -multi_module to the
15961 # link flags.
15962 rm -rf libconftest.dylib*
15963 echo "int foo(void){return 1;}" > conftest.c
15964 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15965 -dynamiclib -Wl,-single_module conftest.c" >&5
15966 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15967 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15968 _lt_result=$?
15969 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15970 lt_cv_apple_cc_single_mod=yes
15971 else
15972 cat conftest.err >&5
15974 rm -rf libconftest.dylib*
15975 rm -f conftest.*
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15979 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15981 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15982 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 lt_cv_ld_exported_symbols_list=no
15986 save_LDFLAGS=$LDFLAGS
15987 echo "_main" > conftest.sym
15988 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15993 main ()
15997 return 0;
15999 _ACEOF
16000 if ac_fn_c_try_link "$LINENO"; then :
16001 lt_cv_ld_exported_symbols_list=yes
16002 else
16003 lt_cv_ld_exported_symbols_list=no
16005 rm -f core conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16007 LDFLAGS="$save_LDFLAGS"
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16011 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16013 $as_echo_n "checking for -force_load linker flag... " >&6; }
16014 if ${lt_cv_ld_force_load+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 lt_cv_ld_force_load=no
16018 cat > conftest.c << _LT_EOF
16019 int forced_loaded() { return 2;}
16020 _LT_EOF
16021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16022 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16023 echo "$AR cru libconftest.a conftest.o" >&5
16024 $AR cru libconftest.a conftest.o 2>&5
16025 cat > conftest.c << _LT_EOF
16026 int main() { return 0;}
16027 _LT_EOF
16028 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16029 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16030 _lt_result=$?
16031 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16032 lt_cv_ld_force_load=yes
16033 else
16034 cat conftest.err >&5
16036 rm -f conftest.err libconftest.a conftest conftest.c
16037 rm -rf conftest.dSYM
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16041 $as_echo "$lt_cv_ld_force_load" >&6; }
16042 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16043 # build without first building modern cctools / linker.
16044 case $host_cpu-$host_os in
16045 *-rhapsody* | *-darwin1.[012])
16046 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16047 *-darwin1.*)
16048 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16049 *-darwin*)
16050 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16051 # deployment target is forced to an earlier version.
16052 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16053 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16055 10.[012][,.]*)
16056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16060 esac
16062 esac
16063 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16064 _lt_dar_single_mod='$single_module'
16066 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16067 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16068 else
16069 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16071 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16072 _lt_dsymutil='~$DSYMUTIL $lib || :'
16073 else
16074 _lt_dsymutil=
16077 esac
16080 for ac_header in dlfcn.h
16081 do :
16082 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16083 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_DLFCN_H 1
16086 _ACEOF
16089 done
16095 # Set options
16099 enable_dlopen=no
16102 enable_win32_dll=no
16105 # Check whether --enable-shared was given.
16106 if test "${enable_shared+set}" = set; then :
16107 enableval=$enable_shared; p=${PACKAGE-default}
16108 case $enableval in
16109 yes) enable_shared=yes ;;
16110 no) enable_shared=no ;;
16112 enable_shared=no
16113 # Look at the argument we got. We use all the common list separators.
16114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16115 for pkg in $enableval; do
16116 IFS="$lt_save_ifs"
16117 if test "X$pkg" = "X$p"; then
16118 enable_shared=yes
16120 done
16121 IFS="$lt_save_ifs"
16123 esac
16124 else
16125 enable_shared=yes
16136 # Check whether --enable-static was given.
16137 if test "${enable_static+set}" = set; then :
16138 enableval=$enable_static; p=${PACKAGE-default}
16139 case $enableval in
16140 yes) enable_static=yes ;;
16141 no) enable_static=no ;;
16143 enable_static=no
16144 # Look at the argument we got. We use all the common list separators.
16145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16146 for pkg in $enableval; do
16147 IFS="$lt_save_ifs"
16148 if test "X$pkg" = "X$p"; then
16149 enable_static=yes
16151 done
16152 IFS="$lt_save_ifs"
16154 esac
16155 else
16156 enable_static=yes
16168 # Check whether --with-pic was given.
16169 if test "${with_pic+set}" = set; then :
16170 withval=$with_pic; pic_mode="$withval"
16171 else
16172 pic_mode=default
16176 test -z "$pic_mode" && pic_mode=default
16184 # Check whether --enable-fast-install was given.
16185 if test "${enable_fast_install+set}" = set; then :
16186 enableval=$enable_fast_install; p=${PACKAGE-default}
16187 case $enableval in
16188 yes) enable_fast_install=yes ;;
16189 no) enable_fast_install=no ;;
16191 enable_fast_install=no
16192 # Look at the argument we got. We use all the common list separators.
16193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16194 for pkg in $enableval; do
16195 IFS="$lt_save_ifs"
16196 if test "X$pkg" = "X$p"; then
16197 enable_fast_install=yes
16199 done
16200 IFS="$lt_save_ifs"
16202 esac
16203 else
16204 enable_fast_install=yes
16217 # This can be used to rebuild libtool when needed
16218 LIBTOOL_DEPS="$ltmain"
16220 # Always use our own libtool.
16221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16248 test -z "$LN_S" && LN_S="ln -s"
16263 if test -n "${ZSH_VERSION+set}" ; then
16264 setopt NO_GLOB_SUBST
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16268 $as_echo_n "checking for objdir... " >&6; }
16269 if ${lt_cv_objdir+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 rm -f .libs 2>/dev/null
16273 mkdir .libs 2>/dev/null
16274 if test -d .libs; then
16275 lt_cv_objdir=.libs
16276 else
16277 # MS-DOS does not allow filenames that begin with a dot.
16278 lt_cv_objdir=_libs
16280 rmdir .libs 2>/dev/null
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16283 $as_echo "$lt_cv_objdir" >&6; }
16284 objdir=$lt_cv_objdir
16290 cat >>confdefs.h <<_ACEOF
16291 #define LT_OBJDIR "$lt_cv_objdir/"
16292 _ACEOF
16297 case $host_os in
16298 aix3*)
16299 # AIX sometimes has problems with the GCC collect2 program. For some
16300 # reason, if we set the COLLECT_NAMES environment variable, the problems
16301 # vanish in a puff of smoke.
16302 if test "X${COLLECT_NAMES+set}" != Xset; then
16303 COLLECT_NAMES=
16304 export COLLECT_NAMES
16307 esac
16309 # Global variables:
16310 ofile=libtool
16311 can_build_shared=yes
16313 # All known linkers require a `.a' archive for static linking (except MSVC,
16314 # which needs '.lib').
16315 libext=a
16317 with_gnu_ld="$lt_cv_prog_gnu_ld"
16319 old_CC="$CC"
16320 old_CFLAGS="$CFLAGS"
16322 # Set sane defaults for various variables
16323 test -z "$CC" && CC=cc
16324 test -z "$LTCC" && LTCC=$CC
16325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16326 test -z "$LD" && LD=ld
16327 test -z "$ac_objext" && ac_objext=o
16329 for cc_temp in $compiler""; do
16330 case $cc_temp in
16331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16333 \-*) ;;
16334 *) break;;
16335 esac
16336 done
16337 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16340 # Only perform the check for file, if the check method requires it
16341 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16342 case $deplibs_check_method in
16343 file_magic*)
16344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16347 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 case $MAGIC_CMD in
16351 [\\/*] | ?:[\\/]*)
16352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16355 lt_save_MAGIC_CMD="$MAGIC_CMD"
16356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16358 for ac_dir in $ac_dummy; do
16359 IFS="$lt_save_ifs"
16360 test -z "$ac_dir" && ac_dir=.
16361 if test -f $ac_dir/${ac_tool_prefix}file; then
16362 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16363 if test -n "$file_magic_test_file"; then
16364 case $deplibs_check_method in
16365 "file_magic "*)
16366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16369 $EGREP "$file_magic_regex" > /dev/null; then
16371 else
16372 cat <<_LT_EOF 1>&2
16374 *** Warning: the command libtool uses to detect shared libraries,
16375 *** $file_magic_cmd, produces output that libtool cannot recognize.
16376 *** The result is that libtool may fail to recognize shared libraries
16377 *** as such. This will affect the creation of libtool libraries that
16378 *** depend on shared libraries, but programs linked with such libtool
16379 *** libraries will work regardless of this problem. Nevertheless, you
16380 *** may want to report the problem to your system manager and/or to
16381 *** bug-libtool@gnu.org
16383 _LT_EOF
16384 fi ;;
16385 esac
16387 break
16389 done
16390 IFS="$lt_save_ifs"
16391 MAGIC_CMD="$lt_save_MAGIC_CMD"
16393 esac
16396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16397 if test -n "$MAGIC_CMD"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16399 $as_echo "$MAGIC_CMD" >&6; }
16400 else
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402 $as_echo "no" >&6; }
16409 if test -z "$lt_cv_path_MAGIC_CMD"; then
16410 if test -n "$ac_tool_prefix"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16412 $as_echo_n "checking for file... " >&6; }
16413 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 case $MAGIC_CMD in
16417 [\\/*] | ?:[\\/]*)
16418 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16421 lt_save_MAGIC_CMD="$MAGIC_CMD"
16422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16424 for ac_dir in $ac_dummy; do
16425 IFS="$lt_save_ifs"
16426 test -z "$ac_dir" && ac_dir=.
16427 if test -f $ac_dir/file; then
16428 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16429 if test -n "$file_magic_test_file"; then
16430 case $deplibs_check_method in
16431 "file_magic "*)
16432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16435 $EGREP "$file_magic_regex" > /dev/null; then
16437 else
16438 cat <<_LT_EOF 1>&2
16440 *** Warning: the command libtool uses to detect shared libraries,
16441 *** $file_magic_cmd, produces output that libtool cannot recognize.
16442 *** The result is that libtool may fail to recognize shared libraries
16443 *** as such. This will affect the creation of libtool libraries that
16444 *** depend on shared libraries, but programs linked with such libtool
16445 *** libraries will work regardless of this problem. Nevertheless, you
16446 *** may want to report the problem to your system manager and/or to
16447 *** bug-libtool@gnu.org
16449 _LT_EOF
16450 fi ;;
16451 esac
16453 break
16455 done
16456 IFS="$lt_save_ifs"
16457 MAGIC_CMD="$lt_save_MAGIC_CMD"
16459 esac
16462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16463 if test -n "$MAGIC_CMD"; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16465 $as_echo "$MAGIC_CMD" >&6; }
16466 else
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16472 else
16473 MAGIC_CMD=:
16479 esac
16481 # Use C for the default configuration in the libtool script
16483 lt_save_CC="$CC"
16484 ac_ext=c
16485 ac_cpp='$CPP $CPPFLAGS'
16486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16491 # Source file extension for C test sources.
16492 ac_ext=c
16494 # Object file extension for compiled C test sources.
16495 objext=o
16496 objext=$objext
16498 # Code to be used in simple compile tests
16499 lt_simple_compile_test_code="int some_variable = 0;"
16501 # Code to be used in simple link tests
16502 lt_simple_link_test_code='int main(){return(0);}'
16510 # If no C compiler was specified, use CC.
16511 LTCC=${LTCC-"$CC"}
16513 # If no C compiler flags were specified, use CFLAGS.
16514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16516 # Allow CC to be a program name with arguments.
16517 compiler=$CC
16519 # Save the default compiler, since it gets overwritten when the other
16520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16521 compiler_DEFAULT=$CC
16523 # save warnings/boilerplate of simple test code
16524 ac_outfile=conftest.$ac_objext
16525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16527 _lt_compiler_boilerplate=`cat conftest.err`
16528 $RM conftest*
16530 ac_outfile=conftest.$ac_objext
16531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16533 _lt_linker_boilerplate=`cat conftest.err`
16534 $RM -r conftest*
16537 ## CAVEAT EMPTOR:
16538 ## There is no encapsulation within the following macros, do not change
16539 ## the running order or otherwise move them around unless you know exactly
16540 ## what you are doing...
16541 if test -n "$compiler"; then
16543 lt_prog_compiler_no_builtin_flag=
16545 if test "$GCC" = yes; then
16546 case $cc_basename in
16547 nvcc*)
16548 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16550 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16551 esac
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16554 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16555 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 lt_cv_prog_compiler_rtti_exceptions=no
16559 ac_outfile=conftest.$ac_objext
16560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16561 lt_compiler_flag="-fno-rtti -fno-exceptions"
16562 # Insert the option either (1) after the last *FLAGS variable, or
16563 # (2) before a word containing "conftest.", or (3) at the end.
16564 # Note that $ac_compile itself does not contain backslashes and begins
16565 # with a dollar sign (not a hyphen), so the echo should work correctly.
16566 # The option is referenced via a variable to avoid confusing sed.
16567 lt_compile=`echo "$ac_compile" | $SED \
16568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16570 -e 's:$: $lt_compiler_flag:'`
16571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16572 (eval "$lt_compile" 2>conftest.err)
16573 ac_status=$?
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 if (exit $ac_status) && test -s "$ac_outfile"; then
16577 # The compiler can only warn and ignore the option if not recognized
16578 # So say no if there are warnings other than the usual output.
16579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16582 lt_cv_prog_compiler_rtti_exceptions=yes
16585 $RM conftest*
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16589 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16591 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16593 else
16604 lt_prog_compiler_wl=
16605 lt_prog_compiler_pic=
16606 lt_prog_compiler_static=
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16609 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16611 if test "$GCC" = yes; then
16612 lt_prog_compiler_wl='-Wl,'
16613 lt_prog_compiler_static='-static'
16615 case $host_os in
16616 aix*)
16617 # All AIX code is PIC.
16618 if test "$host_cpu" = ia64; then
16619 # AIX 5 now supports IA64 processor
16620 lt_prog_compiler_static='-Bstatic'
16622 lt_prog_compiler_pic='-fPIC'
16625 amigaos*)
16626 case $host_cpu in
16627 powerpc)
16628 # see comment about AmigaOS4 .so support
16629 lt_prog_compiler_pic='-fPIC'
16631 m68k)
16632 # FIXME: we need at least 68020 code to build shared libraries, but
16633 # adding the `-m68020' flag to GCC prevents building anything better,
16634 # like `-m68040'.
16635 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16637 esac
16640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16641 # PIC is the default for these OSes.
16644 mingw* | cygwin* | pw32* | os2* | cegcc*)
16645 # This hack is so that the source file can tell whether it is being
16646 # built for inclusion in a dll (and should export symbols for example).
16647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16648 # (--disable-auto-import) libraries
16649 lt_prog_compiler_pic='-DDLL_EXPORT'
16652 darwin* | rhapsody*)
16653 # PIC is the default on this platform
16654 # Common symbols not allowed in MH_DYLIB files
16655 lt_prog_compiler_pic='-fno-common'
16658 haiku*)
16659 # PIC is the default for Haiku.
16660 # The "-static" flag exists, but is broken.
16661 lt_prog_compiler_static=
16664 hpux*)
16665 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16666 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16667 # sets the default TLS model and affects inlining.
16668 case $host_cpu in
16669 hppa*64*)
16670 # +Z the default
16673 lt_prog_compiler_pic='-fPIC'
16675 esac
16678 interix[3-9]*)
16679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16680 # Instead, we relocate shared libraries at runtime.
16683 msdosdjgpp*)
16684 # Just because we use GCC doesn't mean we suddenly get shared libraries
16685 # on systems that don't support them.
16686 lt_prog_compiler_can_build_shared=no
16687 enable_shared=no
16690 *nto* | *qnx*)
16691 # QNX uses GNU C++, but need to define -shared option too, otherwise
16692 # it will coredump.
16693 lt_prog_compiler_pic='-fPIC -shared'
16696 sysv4*MP*)
16697 if test -d /usr/nec; then
16698 lt_prog_compiler_pic=-Kconform_pic
16703 lt_prog_compiler_pic='-fPIC'
16705 esac
16707 case $cc_basename in
16708 nvcc*) # Cuda Compiler Driver 2.2
16709 lt_prog_compiler_wl='-Xlinker '
16710 lt_prog_compiler_pic='-Xcompiler -fPIC'
16712 esac
16713 else
16714 # PORTME Check for flag to pass linker flags through the system compiler.
16715 case $host_os in
16716 aix*)
16717 lt_prog_compiler_wl='-Wl,'
16718 if test "$host_cpu" = ia64; then
16719 # AIX 5 now supports IA64 processor
16720 lt_prog_compiler_static='-Bstatic'
16721 else
16722 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16726 mingw* | cygwin* | pw32* | os2* | cegcc*)
16727 # This hack is so that the source file can tell whether it is being
16728 # built for inclusion in a dll (and should export symbols for example).
16729 lt_prog_compiler_pic='-DDLL_EXPORT'
16732 hpux9* | hpux10* | hpux11*)
16733 lt_prog_compiler_wl='-Wl,'
16734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16735 # not for PA HP-UX.
16736 case $host_cpu in
16737 hppa*64*|ia64*)
16738 # +Z the default
16741 lt_prog_compiler_pic='+Z'
16743 esac
16744 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16745 lt_prog_compiler_static='${wl}-a ${wl}archive'
16748 irix5* | irix6* | nonstopux*)
16749 lt_prog_compiler_wl='-Wl,'
16750 # PIC (with -KPIC) is the default.
16751 lt_prog_compiler_static='-non_shared'
16754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16755 case $cc_basename in
16756 # old Intel for x86_64 which still supported -KPIC.
16757 ecc*)
16758 lt_prog_compiler_wl='-Wl,'
16759 lt_prog_compiler_pic='-KPIC'
16760 lt_prog_compiler_static='-static'
16762 # icc used to be incompatible with GCC.
16763 # ICC 10 doesn't accept -KPIC any more.
16764 icc* | ifort*)
16765 lt_prog_compiler_wl='-Wl,'
16766 lt_prog_compiler_pic='-fPIC'
16767 lt_prog_compiler_static='-static'
16769 # Lahey Fortran 8.1.
16770 lf95*)
16771 lt_prog_compiler_wl='-Wl,'
16772 lt_prog_compiler_pic='--shared'
16773 lt_prog_compiler_static='--static'
16775 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16776 # Portland Group compilers (*not* the Pentium gcc compiler,
16777 # which looks to be a dead project)
16778 lt_prog_compiler_wl='-Wl,'
16779 lt_prog_compiler_pic='-fpic'
16780 lt_prog_compiler_static='-Bstatic'
16782 ccc*)
16783 lt_prog_compiler_wl='-Wl,'
16784 # All Alpha code is PIC.
16785 lt_prog_compiler_static='-non_shared'
16787 xl* | bgxl* | bgf* | mpixl*)
16788 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16789 lt_prog_compiler_wl='-Wl,'
16790 lt_prog_compiler_pic='-qpic'
16791 lt_prog_compiler_static='-qstaticlink'
16794 case `$CC -V 2>&1 | sed 5q` in
16795 *Sun\ F* | *Sun*Fortran*)
16796 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16797 lt_prog_compiler_pic='-KPIC'
16798 lt_prog_compiler_static='-Bstatic'
16799 lt_prog_compiler_wl=''
16801 *Sun\ C*)
16802 # Sun C 5.9
16803 lt_prog_compiler_pic='-KPIC'
16804 lt_prog_compiler_static='-Bstatic'
16805 lt_prog_compiler_wl='-Wl,'
16807 esac
16809 esac
16812 newsos6)
16813 lt_prog_compiler_pic='-KPIC'
16814 lt_prog_compiler_static='-Bstatic'
16817 *nto* | *qnx*)
16818 # QNX uses GNU C++, but need to define -shared option too, otherwise
16819 # it will coredump.
16820 lt_prog_compiler_pic='-fPIC -shared'
16823 osf3* | osf4* | osf5*)
16824 lt_prog_compiler_wl='-Wl,'
16825 # All OSF/1 code is PIC.
16826 lt_prog_compiler_static='-non_shared'
16829 rdos*)
16830 lt_prog_compiler_static='-non_shared'
16833 solaris*)
16834 lt_prog_compiler_pic='-KPIC'
16835 lt_prog_compiler_static='-Bstatic'
16836 case $cc_basename in
16837 f77* | f90* | f95*)
16838 lt_prog_compiler_wl='-Qoption ld ';;
16840 lt_prog_compiler_wl='-Wl,';;
16841 esac
16844 sunos4*)
16845 lt_prog_compiler_wl='-Qoption ld '
16846 lt_prog_compiler_pic='-PIC'
16847 lt_prog_compiler_static='-Bstatic'
16850 sysv4 | sysv4.2uw2* | sysv4.3*)
16851 lt_prog_compiler_wl='-Wl,'
16852 lt_prog_compiler_pic='-KPIC'
16853 lt_prog_compiler_static='-Bstatic'
16856 sysv4*MP*)
16857 if test -d /usr/nec ;then
16858 lt_prog_compiler_pic='-Kconform_pic'
16859 lt_prog_compiler_static='-Bstatic'
16863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16864 lt_prog_compiler_wl='-Wl,'
16865 lt_prog_compiler_pic='-KPIC'
16866 lt_prog_compiler_static='-Bstatic'
16869 unicos*)
16870 lt_prog_compiler_wl='-Wl,'
16871 lt_prog_compiler_can_build_shared=no
16874 uts4*)
16875 lt_prog_compiler_pic='-pic'
16876 lt_prog_compiler_static='-Bstatic'
16880 lt_prog_compiler_can_build_shared=no
16882 esac
16885 case $host_os in
16886 # For platforms which do not support PIC, -DPIC is meaningless:
16887 *djgpp*)
16888 lt_prog_compiler_pic=
16891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16893 esac
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16895 $as_echo "$lt_prog_compiler_pic" >&6; }
16903 # Check to make sure the PIC flag actually works.
16905 if test -n "$lt_prog_compiler_pic"; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16907 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16908 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16909 $as_echo_n "(cached) " >&6
16910 else
16911 lt_cv_prog_compiler_pic_works=no
16912 ac_outfile=conftest.$ac_objext
16913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16914 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16915 # Insert the option either (1) after the last *FLAGS variable, or
16916 # (2) before a word containing "conftest.", or (3) at the end.
16917 # Note that $ac_compile itself does not contain backslashes and begins
16918 # with a dollar sign (not a hyphen), so the echo should work correctly.
16919 # The option is referenced via a variable to avoid confusing sed.
16920 lt_compile=`echo "$ac_compile" | $SED \
16921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923 -e 's:$: $lt_compiler_flag:'`
16924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16925 (eval "$lt_compile" 2>conftest.err)
16926 ac_status=$?
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 if (exit $ac_status) && test -s "$ac_outfile"; then
16930 # The compiler can only warn and ignore the option if not recognized
16931 # So say no if there are warnings other than the usual output.
16932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935 lt_cv_prog_compiler_pic_works=yes
16938 $RM conftest*
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16942 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16944 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16945 case $lt_prog_compiler_pic in
16946 "" | " "*) ;;
16947 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16948 esac
16949 else
16950 lt_prog_compiler_pic=
16951 lt_prog_compiler_can_build_shared=no
16962 # Check to make sure the static flag actually works.
16964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16966 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16967 if ${lt_cv_prog_compiler_static_works+:} false; then :
16968 $as_echo_n "(cached) " >&6
16969 else
16970 lt_cv_prog_compiler_static_works=no
16971 save_LDFLAGS="$LDFLAGS"
16972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16975 # The linker can only warn and ignore the option if not recognized
16976 # So say no if there are warnings
16977 if test -s conftest.err; then
16978 # Append any errors to the config.log.
16979 cat conftest.err 1>&5
16980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16982 if diff conftest.exp conftest.er2 >/dev/null; then
16983 lt_cv_prog_compiler_static_works=yes
16985 else
16986 lt_cv_prog_compiler_static_works=yes
16989 $RM -r conftest*
16990 LDFLAGS="$save_LDFLAGS"
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16996 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16998 else
16999 lt_prog_compiler_static=
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17010 if ${lt_cv_prog_compiler_c_o+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 lt_cv_prog_compiler_c_o=no
17014 $RM -r conftest 2>/dev/null
17015 mkdir conftest
17016 cd conftest
17017 mkdir out
17018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17020 lt_compiler_flag="-o out/conftest2.$ac_objext"
17021 # Insert the option either (1) after the last *FLAGS variable, or
17022 # (2) before a word containing "conftest.", or (3) at the end.
17023 # Note that $ac_compile itself does not contain backslashes and begins
17024 # with a dollar sign (not a hyphen), so the echo should work correctly.
17025 lt_compile=`echo "$ac_compile" | $SED \
17026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17028 -e 's:$: $lt_compiler_flag:'`
17029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17030 (eval "$lt_compile" 2>out/conftest.err)
17031 ac_status=$?
17032 cat out/conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17035 then
17036 # The compiler can only warn and ignore the option if not recognized
17037 # So say no if there are warnings
17038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17041 lt_cv_prog_compiler_c_o=yes
17044 chmod u+w . 2>&5
17045 $RM conftest*
17046 # SGI C++ compiler will create directory out/ii_files/ for
17047 # template instantiation
17048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17049 $RM out/* && rmdir out
17050 cd ..
17051 $RM -r conftest
17052 $RM conftest*
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17065 if ${lt_cv_prog_compiler_c_o+:} false; then :
17066 $as_echo_n "(cached) " >&6
17067 else
17068 lt_cv_prog_compiler_c_o=no
17069 $RM -r conftest 2>/dev/null
17070 mkdir conftest
17071 cd conftest
17072 mkdir out
17073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17075 lt_compiler_flag="-o out/conftest2.$ac_objext"
17076 # Insert the option either (1) after the last *FLAGS variable, or
17077 # (2) before a word containing "conftest.", or (3) at the end.
17078 # Note that $ac_compile itself does not contain backslashes and begins
17079 # with a dollar sign (not a hyphen), so the echo should work correctly.
17080 lt_compile=`echo "$ac_compile" | $SED \
17081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17083 -e 's:$: $lt_compiler_flag:'`
17084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17085 (eval "$lt_compile" 2>out/conftest.err)
17086 ac_status=$?
17087 cat out/conftest.err >&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17090 then
17091 # The compiler can only warn and ignore the option if not recognized
17092 # So say no if there are warnings
17093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17096 lt_cv_prog_compiler_c_o=yes
17099 chmod u+w . 2>&5
17100 $RM conftest*
17101 # SGI C++ compiler will create directory out/ii_files/ for
17102 # template instantiation
17103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17104 $RM out/* && rmdir out
17105 cd ..
17106 $RM -r conftest
17107 $RM conftest*
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17116 hard_links="nottested"
17117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17118 # do not overwrite the value of need_locks provided by the user
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17120 $as_echo_n "checking if we can lock with hard links... " >&6; }
17121 hard_links=yes
17122 $RM conftest*
17123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17124 touch conftest.a
17125 ln conftest.a conftest.b 2>&5 || hard_links=no
17126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17128 $as_echo "$hard_links" >&6; }
17129 if test "$hard_links" = no; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17131 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17132 need_locks=warn
17134 else
17135 need_locks=no
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17144 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17146 runpath_var=
17147 allow_undefined_flag=
17148 always_export_symbols=no
17149 archive_cmds=
17150 archive_expsym_cmds=
17151 compiler_needs_object=no
17152 enable_shared_with_static_runtimes=no
17153 export_dynamic_flag_spec=
17154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17155 hardcode_automatic=no
17156 hardcode_direct=no
17157 hardcode_direct_absolute=no
17158 hardcode_libdir_flag_spec=
17159 hardcode_libdir_flag_spec_ld=
17160 hardcode_libdir_separator=
17161 hardcode_minus_L=no
17162 hardcode_shlibpath_var=unsupported
17163 inherit_rpath=no
17164 link_all_deplibs=unknown
17165 module_cmds=
17166 module_expsym_cmds=
17167 old_archive_from_new_cmds=
17168 old_archive_from_expsyms_cmds=
17169 thread_safe_flag_spec=
17170 whole_archive_flag_spec=
17171 # include_expsyms should be a list of space-separated symbols to be *always*
17172 # included in the symbol list
17173 include_expsyms=
17174 # exclude_expsyms can be an extended regexp of symbols to exclude
17175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17177 # as well as any symbol that contains `d'.
17178 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17180 # platforms (ab)use it in PIC code, but their linkers get confused if
17181 # the symbol is explicitly referenced. Since portable code cannot
17182 # rely on this symbol name, it's probably fine to never include it in
17183 # preloaded symbol tables.
17184 # Exclude shared library initialization/finalization symbols.
17185 extract_expsyms_cmds=
17187 case $host_os in
17188 cygwin* | mingw* | pw32* | cegcc*)
17189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17190 # When not using gcc, we currently assume that we are using
17191 # Microsoft Visual C++.
17192 if test "$GCC" != yes; then
17193 with_gnu_ld=no
17196 interix*)
17197 # we just hope/assume this is gcc and not c89 (= MSVC++)
17198 with_gnu_ld=yes
17200 openbsd*)
17201 with_gnu_ld=no
17203 esac
17205 ld_shlibs=yes
17207 # On some targets, GNU ld is compatible enough with the native linker
17208 # that we're better off using the native interface for both.
17209 lt_use_gnu_ld_interface=no
17210 if test "$with_gnu_ld" = yes; then
17211 case $host_os in
17212 aix*)
17213 # The AIX port of GNU ld has always aspired to compatibility
17214 # with the native linker. However, as the warning in the GNU ld
17215 # block says, versions before 2.19.5* couldn't really create working
17216 # shared libraries, regardless of the interface used.
17217 case `$LD -v 2>&1` in
17218 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17219 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17220 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17222 lt_use_gnu_ld_interface=yes
17224 esac
17227 lt_use_gnu_ld_interface=yes
17229 esac
17232 if test "$lt_use_gnu_ld_interface" = yes; then
17233 # If archive_cmds runs LD, not CC, wlarc should be empty
17234 wlarc='${wl}'
17236 # Set some defaults for GNU ld with shared library support. These
17237 # are reset later if shared libraries are not supported. Putting them
17238 # here allows them to be overridden if necessary.
17239 runpath_var=LD_RUN_PATH
17240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17241 export_dynamic_flag_spec='${wl}--export-dynamic'
17242 # ancient GNU ld didn't support --whole-archive et. al.
17243 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17244 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17245 else
17246 whole_archive_flag_spec=
17248 supports_anon_versioning=no
17249 case `$LD -v 2>&1` in
17250 *GNU\ gold*) supports_anon_versioning=yes ;;
17251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17254 *\ 2.11.*) ;; # other 2.11 versions
17255 *) supports_anon_versioning=yes ;;
17256 esac
17258 # See if GNU ld supports shared libraries.
17259 case $host_os in
17260 aix[3-9]*)
17261 # On AIX/PPC, the GNU linker is very broken
17262 if test "$host_cpu" != ia64; then
17263 ld_shlibs=no
17264 cat <<_LT_EOF 1>&2
17266 *** Warning: the GNU linker, at least up to release 2.19, is reported
17267 *** to be unable to reliably create shared libraries on AIX.
17268 *** Therefore, libtool is disabling shared libraries support. If you
17269 *** really care for shared libraries, you may want to install binutils
17270 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17271 *** You will then need to restart the configuration process.
17273 _LT_EOF
17277 amigaos*)
17278 case $host_cpu in
17279 powerpc)
17280 # see comment about AmigaOS4 .so support
17281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17282 archive_expsym_cmds=''
17284 m68k)
17285 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)'
17286 hardcode_libdir_flag_spec='-L$libdir'
17287 hardcode_minus_L=yes
17289 esac
17292 beos*)
17293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17294 allow_undefined_flag=unsupported
17295 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17296 # support --undefined. This deserves some investigation. FIXME
17297 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17298 else
17299 ld_shlibs=no
17303 cygwin* | mingw* | pw32* | cegcc*)
17304 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17305 # as there is no search path for DLLs.
17306 hardcode_libdir_flag_spec='-L$libdir'
17307 export_dynamic_flag_spec='${wl}--export-all-symbols'
17308 allow_undefined_flag=unsupported
17309 always_export_symbols=no
17310 enable_shared_with_static_runtimes=yes
17311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17315 # If the export-symbols file already is a .def file (1st line
17316 # is EXPORTS), use it as is; otherwise, prepend...
17317 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17318 cp $export_symbols $output_objdir/$soname.def;
17319 else
17320 echo EXPORTS > $output_objdir/$soname.def;
17321 cat $export_symbols >> $output_objdir/$soname.def;
17323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17324 else
17325 ld_shlibs=no
17329 haiku*)
17330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331 link_all_deplibs=yes
17334 interix[3-9]*)
17335 hardcode_direct=no
17336 hardcode_shlibpath_var=no
17337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17338 export_dynamic_flag_spec='${wl}-E'
17339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17340 # Instead, shared libraries are loaded at an image base (0x10000000 by
17341 # default) and relocated if they conflict, which is a slow very memory
17342 # consuming and fragmenting process. To avoid this, we pick a random,
17343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17346 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'
17349 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17350 tmp_diet=no
17351 if test "$host_os" = linux-dietlibc; then
17352 case $cc_basename in
17353 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17354 esac
17356 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17357 && test "$tmp_diet" = no
17358 then
17359 tmp_addflag=' $pic_flag'
17360 tmp_sharedflag='-shared'
17361 case $cc_basename,$host_cpu in
17362 pgcc*) # Portland Group C compiler
17363 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'
17364 tmp_addflag=' $pic_flag'
17366 pgf77* | pgf90* | pgf95* | pgfortran*)
17367 # Portland Group f77 and f90 compilers
17368 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'
17369 tmp_addflag=' $pic_flag -Mnomain' ;;
17370 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17371 tmp_addflag=' -i_dynamic' ;;
17372 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17373 tmp_addflag=' -i_dynamic -nofor_main' ;;
17374 ifc* | ifort*) # Intel Fortran compiler
17375 tmp_addflag=' -nofor_main' ;;
17376 lf95*) # Lahey Fortran 8.1
17377 whole_archive_flag_spec=
17378 tmp_sharedflag='--shared' ;;
17379 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17380 tmp_sharedflag='-qmkshrobj'
17381 tmp_addflag= ;;
17382 nvcc*) # Cuda Compiler Driver 2.2
17383 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'
17384 compiler_needs_object=yes
17386 esac
17387 case `$CC -V 2>&1 | sed 5q` in
17388 *Sun\ C*) # Sun C 5.9
17389 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'
17390 compiler_needs_object=yes
17391 tmp_sharedflag='-G' ;;
17392 *Sun\ F*) # Sun Fortran 8.3
17393 tmp_sharedflag='-G' ;;
17394 esac
17395 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17397 if test "x$supports_anon_versioning" = xyes; then
17398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17400 echo "local: *; };" >> $output_objdir/$libname.ver~
17401 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17404 case $cc_basename in
17405 xlf* | bgf* | bgxlf* | mpixlf*)
17406 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17407 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17408 hardcode_libdir_flag_spec=
17409 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17410 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17411 if test "x$supports_anon_versioning" = xyes; then
17412 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17413 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17414 echo "local: *; };" >> $output_objdir/$libname.ver~
17415 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17418 esac
17419 else
17420 ld_shlibs=no
17424 netbsd*)
17425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17426 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17427 wlarc=
17428 else
17429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17434 solaris*)
17435 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17436 ld_shlibs=no
17437 cat <<_LT_EOF 1>&2
17439 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17440 *** create shared libraries on Solaris systems. Therefore, libtool
17441 *** is disabling shared libraries support. We urge you to upgrade GNU
17442 *** binutils to release 2.9.1 or newer. Another option is to modify
17443 *** your PATH or compiler configuration so that the native linker is
17444 *** used, and then restart.
17446 _LT_EOF
17447 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17450 else
17451 ld_shlibs=no
17455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17456 case `$LD -v 2>&1` in
17457 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17458 ld_shlibs=no
17459 cat <<_LT_EOF 1>&2
17461 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17462 *** reliably create shared libraries on SCO systems. Therefore, libtool
17463 *** is disabling shared libraries support. We urge you to upgrade GNU
17464 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17465 *** your PATH or compiler configuration so that the native linker is
17466 *** used, and then restart.
17468 _LT_EOF
17471 # For security reasons, it is highly recommended that you always
17472 # use absolute paths for naming shared libraries, and exclude the
17473 # DT_RUNPATH tag from executables and libraries. But doing so
17474 # requires that you compile everything twice, which is a pain.
17475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17479 else
17480 ld_shlibs=no
17483 esac
17486 sunos4*)
17487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17488 wlarc=
17489 hardcode_direct=yes
17490 hardcode_shlibpath_var=no
17494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17497 else
17498 ld_shlibs=no
17501 esac
17503 if test "$ld_shlibs" = no; then
17504 runpath_var=
17505 hardcode_libdir_flag_spec=
17506 export_dynamic_flag_spec=
17507 whole_archive_flag_spec=
17509 else
17510 # PORTME fill in a description of your system's linker (not GNU ld)
17511 case $host_os in
17512 aix3*)
17513 allow_undefined_flag=unsupported
17514 always_export_symbols=yes
17515 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'
17516 # Note: this linker hardcodes the directories in LIBPATH if there
17517 # are no directories specified by -L.
17518 hardcode_minus_L=yes
17519 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17520 # Neither direct hardcoding nor static linking is supported with a
17521 # broken collect2.
17522 hardcode_direct=unsupported
17526 aix[4-9]*)
17527 if test "$host_cpu" = ia64; then
17528 # On IA64, the linker does run time linking by default, so we don't
17529 # have to do anything special.
17530 aix_use_runtimelinking=no
17531 exp_sym_flag='-Bexport'
17532 no_entry_flag=""
17533 else
17534 # If we're using GNU nm, then we don't want the "-C" option.
17535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17536 # Also, AIX nm treats weak defined symbols like other global
17537 # defined symbols, whereas GNU nm marks them as "W".
17538 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17539 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'
17540 else
17541 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'
17543 aix_use_runtimelinking=no
17545 # Test if we are trying to use run time linking or normal
17546 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17547 # need to do runtime linking.
17548 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17549 for ld_flag in $LDFLAGS; do
17550 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17551 aix_use_runtimelinking=yes
17552 break
17554 done
17556 esac
17558 exp_sym_flag='-bexport'
17559 no_entry_flag='-bnoentry'
17562 # When large executables or shared objects are built, AIX ld can
17563 # have problems creating the table of contents. If linking a library
17564 # or program results in "error TOC overflow" add -mminimal-toc to
17565 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17566 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17568 archive_cmds=''
17569 hardcode_direct=yes
17570 hardcode_direct_absolute=yes
17571 hardcode_libdir_separator=':'
17572 link_all_deplibs=yes
17573 file_list_spec='${wl}-f,'
17575 if test "$GCC" = yes; then
17576 case $host_os in aix4.[012]|aix4.[012].*)
17577 # We only want to do this on AIX 4.2 and lower, the check
17578 # below for broken collect2 doesn't work under 4.3+
17579 collect2name=`${CC} -print-prog-name=collect2`
17580 if test -f "$collect2name" &&
17581 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17582 then
17583 # We have reworked collect2
17585 else
17586 # We have old collect2
17587 hardcode_direct=unsupported
17588 # It fails to find uninstalled libraries when the uninstalled
17589 # path is not listed in the libpath. Setting hardcode_minus_L
17590 # to unsupported forces relinking
17591 hardcode_minus_L=yes
17592 hardcode_libdir_flag_spec='-L$libdir'
17593 hardcode_libdir_separator=
17596 esac
17597 shared_flag='-shared'
17598 if test "$aix_use_runtimelinking" = yes; then
17599 shared_flag="$shared_flag "'${wl}-G'
17601 else
17602 # not using gcc
17603 if test "$host_cpu" = ia64; then
17604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17605 # chokes on -Wl,-G. The following line is correct:
17606 shared_flag='-G'
17607 else
17608 if test "$aix_use_runtimelinking" = yes; then
17609 shared_flag='${wl}-G'
17610 else
17611 shared_flag='${wl}-bM:SRE'
17616 export_dynamic_flag_spec='${wl}-bexpall'
17617 # It seems that -bexpall does not export symbols beginning with
17618 # underscore (_), so it is better to generate a list of symbols to export.
17619 always_export_symbols=yes
17620 if test "$aix_use_runtimelinking" = yes; then
17621 # Warning - without using the other runtime loading flags (-brtl),
17622 # -berok will link without error, but may produce a broken library.
17623 allow_undefined_flag='-berok'
17624 # Determine the default libpath from the value encoded in an
17625 # empty executable.
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17630 main ()
17634 return 0;
17636 _ACEOF
17637 if ac_fn_c_try_link "$LINENO"; then :
17639 lt_aix_libpath_sed='
17640 /Import File Strings/,/^$/ {
17641 /^0/ {
17642 s/^0 *\(.*\)$/\1/
17646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17647 # Check for a 64-bit object if we didn't find anything.
17648 if test -z "$aix_libpath"; then
17649 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17656 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17657 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"
17658 else
17659 if test "$host_cpu" = ia64; then
17660 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17661 allow_undefined_flag="-z nodefs"
17662 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"
17663 else
17664 # Determine the default libpath from the value encoded in an
17665 # empty executable.
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17670 main ()
17674 return 0;
17676 _ACEOF
17677 if ac_fn_c_try_link "$LINENO"; then :
17679 lt_aix_libpath_sed='
17680 /Import File Strings/,/^$/ {
17681 /^0/ {
17682 s/^0 *\(.*\)$/\1/
17686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687 # Check for a 64-bit object if we didn't find anything.
17688 if test -z "$aix_libpath"; then
17689 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17692 rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17696 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17697 # Warning - without using the other run time loading flags,
17698 # -berok will link without error, but may produce a broken library.
17699 no_undefined_flag=' ${wl}-bernotok'
17700 allow_undefined_flag=' ${wl}-berok'
17701 if test "$with_gnu_ld" = yes; then
17702 # We only use this code for GNU lds that support --whole-archive.
17703 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17704 else
17705 # Exported symbols can be pulled into shared objects from archives
17706 whole_archive_flag_spec='$convenience'
17708 archive_cmds_need_lc=yes
17709 # This is similar to how AIX traditionally builds its shared libraries.
17710 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'
17715 amigaos*)
17716 case $host_cpu in
17717 powerpc)
17718 # see comment about AmigaOS4 .so support
17719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17720 archive_expsym_cmds=''
17722 m68k)
17723 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)'
17724 hardcode_libdir_flag_spec='-L$libdir'
17725 hardcode_minus_L=yes
17727 esac
17730 bsdi[45]*)
17731 export_dynamic_flag_spec=-rdynamic
17734 cygwin* | mingw* | pw32* | cegcc*)
17735 # When not using gcc, we currently assume that we are using
17736 # Microsoft Visual C++.
17737 # hardcode_libdir_flag_spec is actually meaningless, as there is
17738 # no search path for DLLs.
17739 hardcode_libdir_flag_spec=' '
17740 allow_undefined_flag=unsupported
17741 # Tell ltmain to make .lib files, not .a files.
17742 libext=lib
17743 # Tell ltmain to make .dll files, not .so files.
17744 shrext_cmds=".dll"
17745 # FIXME: Setting linknames here is a bad hack.
17746 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17747 # The linker will automatically build a .lib file if we build a DLL.
17748 old_archive_from_new_cmds='true'
17749 # FIXME: Should let the user specify the lib program.
17750 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17751 fix_srcfile_path='`cygpath -w "$srcfile"`'
17752 enable_shared_with_static_runtimes=yes
17755 darwin* | rhapsody*)
17758 archive_cmds_need_lc=no
17759 hardcode_direct=no
17760 hardcode_automatic=yes
17761 hardcode_shlibpath_var=unsupported
17762 if test "$lt_cv_ld_force_load" = "yes"; then
17763 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\"`'
17764 else
17765 whole_archive_flag_spec=''
17767 link_all_deplibs=yes
17768 allow_undefined_flag="$_lt_dar_allow_undefined"
17769 case $cc_basename in
17770 ifort*) _lt_dar_can_shared=yes ;;
17771 *) _lt_dar_can_shared=$GCC ;;
17772 esac
17773 if test "$_lt_dar_can_shared" = "yes"; then
17774 output_verbose_link_cmd=func_echo_all
17775 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17776 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17777 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17778 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}"
17780 else
17781 ld_shlibs=no
17786 dgux*)
17787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec='-L$libdir'
17789 hardcode_shlibpath_var=no
17792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17793 # support. Future versions do this automatically, but an explicit c++rt0.o
17794 # does not break anything, and helps significantly (at the cost of a little
17795 # extra space).
17796 freebsd2.2*)
17797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17798 hardcode_libdir_flag_spec='-R$libdir'
17799 hardcode_direct=yes
17800 hardcode_shlibpath_var=no
17803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17804 freebsd2.*)
17805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17806 hardcode_direct=yes
17807 hardcode_minus_L=yes
17808 hardcode_shlibpath_var=no
17811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17812 freebsd* | dragonfly*)
17813 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17814 hardcode_libdir_flag_spec='-R$libdir'
17815 hardcode_direct=yes
17816 hardcode_shlibpath_var=no
17819 hpux9*)
17820 if test "$GCC" = yes; then
17821 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'
17822 else
17823 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'
17825 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17826 hardcode_libdir_separator=:
17827 hardcode_direct=yes
17829 # hardcode_minus_L: Not really in the search PATH,
17830 # but as the default location of the library.
17831 hardcode_minus_L=yes
17832 export_dynamic_flag_spec='${wl}-E'
17835 hpux10*)
17836 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17837 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17838 else
17839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17841 if test "$with_gnu_ld" = no; then
17842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17843 hardcode_libdir_flag_spec_ld='+b $libdir'
17844 hardcode_libdir_separator=:
17845 hardcode_direct=yes
17846 hardcode_direct_absolute=yes
17847 export_dynamic_flag_spec='${wl}-E'
17848 # hardcode_minus_L: Not really in the search PATH,
17849 # but as the default location of the library.
17850 hardcode_minus_L=yes
17854 hpux11*)
17855 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17856 case $host_cpu in
17857 hppa*64*)
17858 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17860 ia64*)
17861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17864 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17866 esac
17867 else
17868 case $host_cpu in
17869 hppa*64*)
17870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17872 ia64*)
17873 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17877 # Older versions of the 11.00 compiler do not understand -b yet
17878 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17880 $as_echo_n "checking if $CC understands -b... " >&6; }
17881 if ${lt_cv_prog_compiler__b+:} false; then :
17882 $as_echo_n "(cached) " >&6
17883 else
17884 lt_cv_prog_compiler__b=no
17885 save_LDFLAGS="$LDFLAGS"
17886 LDFLAGS="$LDFLAGS -b"
17887 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17889 # The linker can only warn and ignore the option if not recognized
17890 # So say no if there are warnings
17891 if test -s conftest.err; then
17892 # Append any errors to the config.log.
17893 cat conftest.err 1>&5
17894 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17896 if diff conftest.exp conftest.er2 >/dev/null; then
17897 lt_cv_prog_compiler__b=yes
17899 else
17900 lt_cv_prog_compiler__b=yes
17903 $RM -r conftest*
17904 LDFLAGS="$save_LDFLAGS"
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17908 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17910 if test x"$lt_cv_prog_compiler__b" = xyes; then
17911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17912 else
17913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17917 esac
17919 if test "$with_gnu_ld" = no; then
17920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17921 hardcode_libdir_separator=:
17923 case $host_cpu in
17924 hppa*64*|ia64*)
17925 hardcode_direct=no
17926 hardcode_shlibpath_var=no
17929 hardcode_direct=yes
17930 hardcode_direct_absolute=yes
17931 export_dynamic_flag_spec='${wl}-E'
17933 # hardcode_minus_L: Not really in the search PATH,
17934 # but as the default location of the library.
17935 hardcode_minus_L=yes
17937 esac
17941 irix5* | irix6* | nonstopux*)
17942 if test "$GCC" = yes; then
17943 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'
17944 # Try to use the -exported_symbol ld option, if it does not
17945 # work, assume that -exports_file does not work either and
17946 # implicitly export all symbols.
17947 save_LDFLAGS="$LDFLAGS"
17948 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951 int foo(void) {}
17952 _ACEOF
17953 if ac_fn_c_try_link "$LINENO"; then :
17954 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'
17957 rm -f core conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LDFLAGS="$save_LDFLAGS"
17960 else
17961 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'
17962 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'
17964 archive_cmds_need_lc='no'
17965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17966 hardcode_libdir_separator=:
17967 inherit_rpath=yes
17968 link_all_deplibs=yes
17971 netbsd*)
17972 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17974 else
17975 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17977 hardcode_libdir_flag_spec='-R$libdir'
17978 hardcode_direct=yes
17979 hardcode_shlibpath_var=no
17982 newsos6)
17983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17984 hardcode_direct=yes
17985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17986 hardcode_libdir_separator=:
17987 hardcode_shlibpath_var=no
17990 *nto* | *qnx*)
17993 openbsd*)
17994 if test -f /usr/libexec/ld.so; then
17995 hardcode_direct=yes
17996 hardcode_shlibpath_var=no
17997 hardcode_direct_absolute=yes
17998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18000 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18002 export_dynamic_flag_spec='${wl}-E'
18003 else
18004 case $host_os in
18005 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_libdir_flag_spec='-R$libdir'
18010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18013 esac
18015 else
18016 ld_shlibs=no
18020 os2*)
18021 hardcode_libdir_flag_spec='-L$libdir'
18022 hardcode_minus_L=yes
18023 allow_undefined_flag=unsupported
18024 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'
18025 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18028 osf3*)
18029 if test "$GCC" = yes; then
18030 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18031 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'
18032 else
18033 allow_undefined_flag=' -expect_unresolved \*'
18034 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'
18036 archive_cmds_need_lc='no'
18037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18038 hardcode_libdir_separator=:
18041 osf4* | osf5*) # as osf3* with the addition of -msym flag
18042 if test "$GCC" = yes; then
18043 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18044 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'
18045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18046 else
18047 allow_undefined_flag=' -expect_unresolved \*'
18048 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'
18049 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~
18050 $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'
18052 # Both c and cxx compiler support -rpath directly
18053 hardcode_libdir_flag_spec='-rpath $libdir'
18055 archive_cmds_need_lc='no'
18056 hardcode_libdir_separator=:
18059 solaris*)
18060 no_undefined_flag=' -z defs'
18061 if test "$GCC" = yes; then
18062 wlarc='${wl}'
18063 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18065 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18066 else
18067 case `$CC -V 2>&1` in
18068 *"Compilers 5.0"*)
18069 wlarc=''
18070 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18072 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18075 wlarc='${wl}'
18076 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18078 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18080 esac
18082 hardcode_libdir_flag_spec='-R$libdir'
18083 hardcode_shlibpath_var=no
18084 case $host_os in
18085 solaris2.[0-5] | solaris2.[0-5].*) ;;
18087 # The compiler driver will combine and reorder linker options,
18088 # but understands `-z linker_flag'. GCC discards it without `$wl',
18089 # but is careful enough not to reorder.
18090 # Supported since Solaris 2.6 (maybe 2.5.1?)
18091 if test "$GCC" = yes; then
18092 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18093 else
18094 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18097 esac
18098 link_all_deplibs=yes
18101 sunos4*)
18102 if test "x$host_vendor" = xsequent; then
18103 # Use $CC to link under sequent, because it throws in some extra .o
18104 # files that make .init and .fini sections work.
18105 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18106 else
18107 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18109 hardcode_libdir_flag_spec='-L$libdir'
18110 hardcode_direct=yes
18111 hardcode_minus_L=yes
18112 hardcode_shlibpath_var=no
18115 sysv4)
18116 case $host_vendor in
18117 sni)
18118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18119 hardcode_direct=yes # is this really true???
18121 siemens)
18122 ## LD is ld it makes a PLAMLIB
18123 ## CC just makes a GrossModule.
18124 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18125 reload_cmds='$CC -r -o $output$reload_objs'
18126 hardcode_direct=no
18128 motorola)
18129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18130 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18132 esac
18133 runpath_var='LD_RUN_PATH'
18134 hardcode_shlibpath_var=no
18137 sysv4.3*)
18138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139 hardcode_shlibpath_var=no
18140 export_dynamic_flag_spec='-Bexport'
18143 sysv4*MP*)
18144 if test -d /usr/nec; then
18145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18146 hardcode_shlibpath_var=no
18147 runpath_var=LD_RUN_PATH
18148 hardcode_runpath_var=yes
18149 ld_shlibs=yes
18153 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18154 no_undefined_flag='${wl}-z,text'
18155 archive_cmds_need_lc=no
18156 hardcode_shlibpath_var=no
18157 runpath_var='LD_RUN_PATH'
18159 if test "$GCC" = yes; then
18160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18162 else
18163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18168 sysv5* | sco3.2v5* | sco5v6*)
18169 # Note: We can NOT use -z defs as we might desire, because we do not
18170 # link with -lc, and that would cause any symbols used from libc to
18171 # always be unresolved, which means just about no library would
18172 # ever link correctly. If we're not using GNU ld we use -z text
18173 # though, which does catch some bad symbols but isn't as heavy-handed
18174 # as -z defs.
18175 no_undefined_flag='${wl}-z,text'
18176 allow_undefined_flag='${wl}-z,nodefs'
18177 archive_cmds_need_lc=no
18178 hardcode_shlibpath_var=no
18179 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18180 hardcode_libdir_separator=':'
18181 link_all_deplibs=yes
18182 export_dynamic_flag_spec='${wl}-Bexport'
18183 runpath_var='LD_RUN_PATH'
18185 if test "$GCC" = yes; then
18186 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18188 else
18189 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18190 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18194 uts4*)
18195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_libdir_flag_spec='-L$libdir'
18197 hardcode_shlibpath_var=no
18201 ld_shlibs=no
18203 esac
18205 if test x$host_vendor = xsni; then
18206 case $host in
18207 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18208 export_dynamic_flag_spec='${wl}-Blargedynsym'
18210 esac
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18215 $as_echo "$ld_shlibs" >&6; }
18216 test "$ld_shlibs" = no && can_build_shared=no
18218 with_gnu_ld=$with_gnu_ld
18235 # Do we need to explicitly link libc?
18237 case "x$archive_cmds_need_lc" in
18238 x|xyes)
18239 # Assume -lc should be added
18240 archive_cmds_need_lc=yes
18242 if test "$enable_shared" = yes && test "$GCC" = yes; then
18243 case $archive_cmds in
18244 *'~'*)
18245 # FIXME: we may have to deal with multi-command sequences.
18247 '$CC '*)
18248 # Test whether the compiler implicitly links with -lc since on some
18249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18250 # to ld, don't add -lc before -lgcc.
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18252 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18253 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18254 $as_echo_n "(cached) " >&6
18255 else
18256 $RM conftest*
18257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18260 (eval $ac_compile) 2>&5
18261 ac_status=$?
18262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18263 test $ac_status = 0; } 2>conftest.err; then
18264 soname=conftest
18265 lib=conftest
18266 libobjs=conftest.$ac_objext
18267 deplibs=
18268 wl=$lt_prog_compiler_wl
18269 pic_flag=$lt_prog_compiler_pic
18270 compiler_flags=-v
18271 linker_flags=-v
18272 verstring=
18273 output_objdir=.
18274 libname=conftest
18275 lt_save_allow_undefined_flag=$allow_undefined_flag
18276 allow_undefined_flag=
18277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18278 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18279 ac_status=$?
18280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18281 test $ac_status = 0; }
18282 then
18283 lt_cv_archive_cmds_need_lc=no
18284 else
18285 lt_cv_archive_cmds_need_lc=yes
18287 allow_undefined_flag=$lt_save_allow_undefined_flag
18288 else
18289 cat conftest.err 1>&5
18291 $RM conftest*
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18295 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18296 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18298 esac
18301 esac
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18460 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18462 if test "$GCC" = yes; then
18463 case $host_os in
18464 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18465 *) lt_awk_arg="/^libraries:/" ;;
18466 esac
18467 case $host_os in
18468 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18469 *) lt_sed_strip_eq="s,=/,/,g" ;;
18470 esac
18471 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18472 case $lt_search_path_spec in
18473 *\;*)
18474 # if the path contains ";" then we assume it to be the separator
18475 # otherwise default to the standard path separator (i.e. ":") - it is
18476 # assumed that no part of a normal pathname contains ";" but that should
18477 # okay in the real world where ";" in dirpaths is itself problematic.
18478 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18481 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18483 esac
18484 # Ok, now we have the path, separated by spaces, we can step through it
18485 # and add multilib dir if necessary.
18486 lt_tmp_lt_search_path_spec=
18487 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18488 for lt_sys_path in $lt_search_path_spec; do
18489 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18491 else
18492 test -d "$lt_sys_path" && \
18493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18495 done
18496 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18497 BEGIN {RS=" "; FS="/|\n";} {
18498 lt_foo="";
18499 lt_count=0;
18500 for (lt_i = NF; lt_i > 0; lt_i--) {
18501 if ($lt_i != "" && $lt_i != ".") {
18502 if ($lt_i == "..") {
18503 lt_count++;
18504 } else {
18505 if (lt_count == 0) {
18506 lt_foo="/" $lt_i lt_foo;
18507 } else {
18508 lt_count--;
18513 if (lt_foo != "") { lt_freq[lt_foo]++; }
18514 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18516 # AWK program above erroneously prepends '/' to C:/dos/paths
18517 # for these hosts.
18518 case $host_os in
18519 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18520 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18521 esac
18522 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18523 else
18524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18526 library_names_spec=
18527 libname_spec='lib$name'
18528 soname_spec=
18529 shrext_cmds=".so"
18530 postinstall_cmds=
18531 postuninstall_cmds=
18532 finish_cmds=
18533 finish_eval=
18534 shlibpath_var=
18535 shlibpath_overrides_runpath=unknown
18536 version_type=none
18537 dynamic_linker="$host_os ld.so"
18538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18539 need_lib_prefix=unknown
18540 hardcode_into_libs=no
18542 # when you set need_version to no, make sure it does not cause -set_version
18543 # flags to be left without arguments
18544 need_version=unknown
18546 case $host_os in
18547 aix3*)
18548 version_type=linux
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18550 shlibpath_var=LIBPATH
18552 # AIX 3 has no versioning support, so we append a major version to the name.
18553 soname_spec='${libname}${release}${shared_ext}$major'
18556 aix[4-9]*)
18557 version_type=linux
18558 need_lib_prefix=no
18559 need_version=no
18560 hardcode_into_libs=yes
18561 if test "$host_cpu" = ia64; then
18562 # AIX 5 supports IA64
18563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 else
18566 # With GCC up to 2.95.x, collect2 would create an import file
18567 # for dependence libraries. The import file would start with
18568 # the line `#! .'. This would cause the generated library to
18569 # depend on `.', always an invalid library. This was fixed in
18570 # development snapshots of GCC prior to 3.0.
18571 case $host_os in
18572 aix4 | aix4.[01] | aix4.[01].*)
18573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18574 echo ' yes '
18575 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18577 else
18578 can_build_shared=no
18581 esac
18582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18583 # soname into executable. Probably we can add versioning support to
18584 # collect2, so additional links can be useful in future.
18585 if test "$aix_use_runtimelinking" = yes; then
18586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18587 # instead of lib<name>.a to let people know that these are not
18588 # typical AIX shared libraries.
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 else
18591 # We preserve .a as extension for shared libraries through AIX4.2
18592 # and later when we are not doing run time linking.
18593 library_names_spec='${libname}${release}.a $libname.a'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18596 shlibpath_var=LIBPATH
18600 amigaos*)
18601 case $host_cpu in
18602 powerpc)
18603 # Since July 2007 AmigaOS4 officially supports .so libraries.
18604 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607 m68k)
18608 library_names_spec='$libname.ixlibrary $libname.a'
18609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18610 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'
18612 esac
18615 beos*)
18616 library_names_spec='${libname}${shared_ext}'
18617 dynamic_linker="$host_os ld.so"
18618 shlibpath_var=LIBRARY_PATH
18621 bsdi[45]*)
18622 version_type=linux
18623 need_version=no
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18630 # the default ld.so.conf also contains /usr/contrib/lib and
18631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18632 # libtool to hard-code these into programs
18635 cygwin* | mingw* | pw32* | cegcc*)
18636 version_type=windows
18637 shrext_cmds=".dll"
18638 need_version=no
18639 need_lib_prefix=no
18641 case $GCC,$host_os in
18642 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18643 library_names_spec='$libname.dll.a'
18644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18645 postinstall_cmds='base_file=`basename \${file}`~
18646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18647 dldir=$destdir/`dirname \$dlpath`~
18648 test -d \$dldir || mkdir -p \$dldir~
18649 $install_prog $dir/$dlname \$dldir/$dlname~
18650 chmod a+x \$dldir/$dlname~
18651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18655 dlpath=$dir/\$dldll~
18656 $RM \$dlpath'
18657 shlibpath_overrides_runpath=yes
18659 case $host_os in
18660 cygwin*)
18661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18664 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18666 mingw* | cegcc*)
18667 # MinGW DLLs use traditional 'lib' prefix
18668 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18670 pw32*)
18671 # pw32 DLLs use 'pw' prefix rather than 'lib'
18672 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18674 esac
18678 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18680 esac
18681 dynamic_linker='Win32 ld.exe'
18682 # FIXME: first we should search . and the directory the executable is in
18683 shlibpath_var=PATH
18686 darwin* | rhapsody*)
18687 dynamic_linker="$host_os dyld"
18688 version_type=darwin
18689 need_lib_prefix=no
18690 need_version=no
18691 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18692 soname_spec='${libname}${release}${major}$shared_ext'
18693 shlibpath_overrides_runpath=yes
18694 shlibpath_var=DYLD_LIBRARY_PATH
18695 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18697 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18701 dgux*)
18702 version_type=linux
18703 need_lib_prefix=no
18704 need_version=no
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18706 soname_spec='${libname}${release}${shared_ext}$major'
18707 shlibpath_var=LD_LIBRARY_PATH
18710 freebsd* | dragonfly*)
18711 # DragonFly does not have aout. When/if they implement a new
18712 # versioning mechanism, adjust this.
18713 if test -x /usr/bin/objformat; then
18714 objformat=`/usr/bin/objformat`
18715 else
18716 case $host_os in
18717 freebsd[23].*) objformat=aout ;;
18718 *) objformat=elf ;;
18719 esac
18721 version_type=freebsd-$objformat
18722 case $version_type in
18723 freebsd-elf*)
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18725 need_version=no
18726 need_lib_prefix=no
18728 freebsd-*)
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18730 need_version=yes
18732 esac
18733 shlibpath_var=LD_LIBRARY_PATH
18734 case $host_os in
18735 freebsd2.*)
18736 shlibpath_overrides_runpath=yes
18738 freebsd3.[01]* | freebsdelf3.[01]*)
18739 shlibpath_overrides_runpath=yes
18740 hardcode_into_libs=yes
18742 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18743 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18744 shlibpath_overrides_runpath=no
18745 hardcode_into_libs=yes
18747 *) # from 4.6 on, and DragonFly
18748 shlibpath_overrides_runpath=yes
18749 hardcode_into_libs=yes
18751 esac
18754 haiku*)
18755 version_type=linux
18756 need_lib_prefix=no
18757 need_version=no
18758 dynamic_linker="$host_os runtime_loader"
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 shlibpath_var=LIBRARY_PATH
18762 shlibpath_overrides_runpath=yes
18763 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18764 hardcode_into_libs=yes
18767 hpux9* | hpux10* | hpux11*)
18768 # Give a soname corresponding to the major version so that dld.sl refuses to
18769 # link against other versions.
18770 version_type=sunos
18771 need_lib_prefix=no
18772 need_version=no
18773 case $host_cpu in
18774 ia64*)
18775 shrext_cmds='.so'
18776 hardcode_into_libs=yes
18777 dynamic_linker="$host_os dld.so"
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781 soname_spec='${libname}${release}${shared_ext}$major'
18782 if test "X$HPUX_IA64_MODE" = X32; then
18783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18784 else
18785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18789 hppa*64*)
18790 shrext_cmds='.sl'
18791 hardcode_into_libs=yes
18792 dynamic_linker="$host_os dld.sl"
18793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18796 soname_spec='${libname}${release}${shared_ext}$major'
18797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18801 shrext_cmds='.sl'
18802 dynamic_linker="$host_os dld.sl"
18803 shlibpath_var=SHLIB_PATH
18804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18808 esac
18809 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18810 postinstall_cmds='chmod 555 $lib'
18811 # or fails outright, so override atomically:
18812 install_override_mode=555
18815 interix[3-9]*)
18816 version_type=linux
18817 need_lib_prefix=no
18818 need_version=no
18819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18820 soname_spec='${libname}${release}${shared_ext}$major'
18821 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath=no
18824 hardcode_into_libs=yes
18827 irix5* | irix6* | nonstopux*)
18828 case $host_os in
18829 nonstopux*) version_type=nonstopux ;;
18831 if test "$lt_cv_prog_gnu_ld" = yes; then
18832 version_type=linux
18833 else
18834 version_type=irix
18835 fi ;;
18836 esac
18837 need_lib_prefix=no
18838 need_version=no
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18841 case $host_os in
18842 irix5* | nonstopux*)
18843 libsuff= shlibsuff=
18846 case $LD in # libtool.m4 will add one of these switches to LD
18847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18848 libsuff= shlibsuff= libmagic=32-bit;;
18849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18850 libsuff=32 shlibsuff=N32 libmagic=N32;;
18851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18853 *) libsuff= shlibsuff= libmagic=never-match;;
18854 esac
18856 esac
18857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18858 shlibpath_overrides_runpath=no
18859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18861 hardcode_into_libs=yes
18864 # No shared lib support for Linux oldld, aout, or coff.
18865 linux*oldld* | linux*aout* | linux*coff*)
18866 dynamic_linker=no
18869 # This must be Linux ELF.
18871 # uclinux* changes (here and below) have been submitted to the libtool
18872 # project, but have not yet been accepted: they are GCC-local changes
18873 # for the time being. (See
18874 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18876 version_type=linux
18877 need_lib_prefix=no
18878 need_version=no
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18880 soname_spec='${libname}${release}${shared_ext}$major'
18881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18882 shlibpath_var=LD_LIBRARY_PATH
18883 shlibpath_overrides_runpath=no
18885 # Some binutils ld are patched to set DT_RUNPATH
18886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18887 $as_echo_n "(cached) " >&6
18888 else
18889 lt_cv_shlibpath_overrides_runpath=no
18890 save_LDFLAGS=$LDFLAGS
18891 save_libdir=$libdir
18892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18898 main ()
18902 return 0;
18904 _ACEOF
18905 if ac_fn_c_try_link "$LINENO"; then :
18906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18907 lt_cv_shlibpath_overrides_runpath=yes
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LDFLAGS=$save_LDFLAGS
18913 libdir=$save_libdir
18917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18919 # This implies no fast_install, which is unacceptable.
18920 # Some rework will be needed to allow for fast_install
18921 # before this can be enabled.
18922 hardcode_into_libs=yes
18924 # Append ld.so.conf contents to the search path
18925 if test -f /etc/ld.so.conf; then
18926 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' ' '`
18927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18930 # We used to test for /lib/ld.so.1 and disable shared libraries on
18931 # powerpc, because MkLinux only supported shared libraries with the
18932 # GNU dynamic linker. Since this was broken with cross compilers,
18933 # most powerpc-linux boxes support dynamic linking these days and
18934 # people can always --disable-shared, the test was removed, and we
18935 # assume the GNU/Linux dynamic linker is in use.
18936 dynamic_linker='GNU/Linux ld.so'
18939 netbsd*)
18940 version_type=sunos
18941 need_lib_prefix=no
18942 need_version=no
18943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18946 dynamic_linker='NetBSD (a.out) ld.so'
18947 else
18948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18949 soname_spec='${libname}${release}${shared_ext}$major'
18950 dynamic_linker='NetBSD ld.elf_so'
18952 shlibpath_var=LD_LIBRARY_PATH
18953 shlibpath_overrides_runpath=yes
18954 hardcode_into_libs=yes
18957 newsos6)
18958 version_type=linux
18959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960 shlibpath_var=LD_LIBRARY_PATH
18961 shlibpath_overrides_runpath=yes
18964 *nto* | *qnx*)
18965 version_type=qnx
18966 need_lib_prefix=no
18967 need_version=no
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 soname_spec='${libname}${release}${shared_ext}$major'
18970 shlibpath_var=LD_LIBRARY_PATH
18971 shlibpath_overrides_runpath=no
18972 hardcode_into_libs=yes
18973 dynamic_linker='ldqnx.so'
18976 openbsd*)
18977 version_type=sunos
18978 sys_lib_dlsearch_path_spec="/usr/lib"
18979 need_lib_prefix=no
18980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18981 case $host_os in
18982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18983 *) need_version=no ;;
18984 esac
18985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18987 shlibpath_var=LD_LIBRARY_PATH
18988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18989 case $host_os in
18990 openbsd2.[89] | openbsd2.[89].*)
18991 shlibpath_overrides_runpath=no
18994 shlibpath_overrides_runpath=yes
18996 esac
18997 else
18998 shlibpath_overrides_runpath=yes
19002 os2*)
19003 libname_spec='$name'
19004 shrext_cmds=".dll"
19005 need_lib_prefix=no
19006 library_names_spec='$libname${shared_ext} $libname.a'
19007 dynamic_linker='OS/2 ld.exe'
19008 shlibpath_var=LIBPATH
19011 osf3* | osf4* | osf5*)
19012 version_type=osf
19013 need_lib_prefix=no
19014 need_version=no
19015 soname_spec='${libname}${release}${shared_ext}$major'
19016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19017 shlibpath_var=LD_LIBRARY_PATH
19018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19022 rdos*)
19023 dynamic_linker=no
19026 solaris*)
19027 version_type=linux
19028 need_lib_prefix=no
19029 need_version=no
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19031 soname_spec='${libname}${release}${shared_ext}$major'
19032 shlibpath_var=LD_LIBRARY_PATH
19033 shlibpath_overrides_runpath=yes
19034 hardcode_into_libs=yes
19035 # ldd complains unless libraries are executable
19036 postinstall_cmds='chmod +x $lib'
19039 sunos4*)
19040 version_type=sunos
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19043 shlibpath_var=LD_LIBRARY_PATH
19044 shlibpath_overrides_runpath=yes
19045 if test "$with_gnu_ld" = yes; then
19046 need_lib_prefix=no
19048 need_version=yes
19051 sysv4 | sysv4.3*)
19052 version_type=linux
19053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054 soname_spec='${libname}${release}${shared_ext}$major'
19055 shlibpath_var=LD_LIBRARY_PATH
19056 case $host_vendor in
19057 sni)
19058 shlibpath_overrides_runpath=no
19059 need_lib_prefix=no
19060 runpath_var=LD_RUN_PATH
19062 siemens)
19063 need_lib_prefix=no
19065 motorola)
19066 need_lib_prefix=no
19067 need_version=no
19068 shlibpath_overrides_runpath=no
19069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19071 esac
19074 sysv4*MP*)
19075 if test -d /usr/nec ;then
19076 version_type=linux
19077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19078 soname_spec='$libname${shared_ext}.$major'
19079 shlibpath_var=LD_LIBRARY_PATH
19083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19084 version_type=freebsd-elf
19085 need_lib_prefix=no
19086 need_version=no
19087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19088 soname_spec='${libname}${release}${shared_ext}$major'
19089 shlibpath_var=LD_LIBRARY_PATH
19090 shlibpath_overrides_runpath=yes
19091 hardcode_into_libs=yes
19092 if test "$with_gnu_ld" = yes; then
19093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19094 else
19095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19096 case $host_os in
19097 sco3.2v5*)
19098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19100 esac
19102 sys_lib_dlsearch_path_spec='/usr/lib'
19105 tpf*)
19106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19107 version_type=linux
19108 need_lib_prefix=no
19109 need_version=no
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 shlibpath_var=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath=no
19113 hardcode_into_libs=yes
19116 uts4*)
19117 version_type=linux
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19119 soname_spec='${libname}${release}${shared_ext}$major'
19120 shlibpath_var=LD_LIBRARY_PATH
19124 dynamic_linker=no
19126 esac
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19128 $as_echo "$dynamic_linker" >&6; }
19129 test "$dynamic_linker" = no && can_build_shared=no
19131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19132 if test "$GCC" = yes; then
19133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19236 hardcode_action=
19237 if test -n "$hardcode_libdir_flag_spec" ||
19238 test -n "$runpath_var" ||
19239 test "X$hardcode_automatic" = "Xyes" ; then
19241 # We can hardcode non-existent directories.
19242 if test "$hardcode_direct" != no &&
19243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19244 # have to relink, otherwise we might link with an installed library
19245 # when we should be linking with a yet-to-be-installed one
19246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19247 test "$hardcode_minus_L" != no; then
19248 # Linking always hardcodes the temporary library directory.
19249 hardcode_action=relink
19250 else
19251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19252 hardcode_action=immediate
19254 else
19255 # We cannot hardcode anything, or else we can only hardcode existing
19256 # directories.
19257 hardcode_action=unsupported
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19260 $as_echo "$hardcode_action" >&6; }
19262 if test "$hardcode_action" = relink ||
19263 test "$inherit_rpath" = yes; then
19264 # Fast installation is not supported
19265 enable_fast_install=no
19266 elif test "$shlibpath_overrides_runpath" = yes ||
19267 test "$enable_shared" = no; then
19268 # Fast installation is not necessary
19269 enable_fast_install=needless
19277 if test "x$enable_dlopen" != xyes; then
19278 enable_dlopen=unknown
19279 enable_dlopen_self=unknown
19280 enable_dlopen_self_static=unknown
19281 else
19282 lt_cv_dlopen=no
19283 lt_cv_dlopen_libs=
19285 case $host_os in
19286 beos*)
19287 lt_cv_dlopen="load_add_on"
19288 lt_cv_dlopen_libs=
19289 lt_cv_dlopen_self=yes
19292 mingw* | pw32* | cegcc*)
19293 lt_cv_dlopen="LoadLibrary"
19294 lt_cv_dlopen_libs=
19297 cygwin*)
19298 lt_cv_dlopen="dlopen"
19299 lt_cv_dlopen_libs=
19302 darwin*)
19303 # if libdl is installed we need to link against it
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19306 if ${ac_cv_lib_dl_dlopen+:} false; then :
19307 $as_echo_n "(cached) " >&6
19308 else
19309 ac_check_lib_save_LIBS=$LIBS
19310 LIBS="-ldl $LIBS"
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19317 #ifdef __cplusplus
19318 extern "C"
19319 #endif
19320 char dlopen ();
19322 main ()
19324 return dlopen ();
19326 return 0;
19328 _ACEOF
19329 if ac_fn_c_try_link "$LINENO"; then :
19330 ac_cv_lib_dl_dlopen=yes
19331 else
19332 ac_cv_lib_dl_dlopen=no
19334 rm -f core conftest.err conftest.$ac_objext \
19335 conftest$ac_exeext conftest.$ac_ext
19336 LIBS=$ac_check_lib_save_LIBS
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19342 else
19344 lt_cv_dlopen="dyld"
19345 lt_cv_dlopen_libs=
19346 lt_cv_dlopen_self=yes
19353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19354 if test "x$ac_cv_func_shl_load" = xyes; then :
19355 lt_cv_dlopen="shl_load"
19356 else
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19359 if ${ac_cv_lib_dld_shl_load+:} false; then :
19360 $as_echo_n "(cached) " >&6
19361 else
19362 ac_check_lib_save_LIBS=$LIBS
19363 LIBS="-ldld $LIBS"
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19367 /* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19370 #ifdef __cplusplus
19371 extern "C"
19372 #endif
19373 char shl_load ();
19375 main ()
19377 return shl_load ();
19379 return 0;
19381 _ACEOF
19382 if ac_fn_c_try_link "$LINENO"; then :
19383 ac_cv_lib_dld_shl_load=yes
19384 else
19385 ac_cv_lib_dld_shl_load=no
19387 rm -f core conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19394 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19395 else
19396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19397 if test "x$ac_cv_func_dlopen" = xyes; then :
19398 lt_cv_dlopen="dlopen"
19399 else
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19402 if ${ac_cv_lib_dl_dlopen+:} false; then :
19403 $as_echo_n "(cached) " >&6
19404 else
19405 ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-ldl $LIBS"
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19410 /* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19413 #ifdef __cplusplus
19414 extern "C"
19415 #endif
19416 char dlopen ();
19418 main ()
19420 return dlopen ();
19422 return 0;
19424 _ACEOF
19425 if ac_fn_c_try_link "$LINENO"; then :
19426 ac_cv_lib_dl_dlopen=yes
19427 else
19428 ac_cv_lib_dl_dlopen=no
19430 rm -f core conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19438 else
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19441 if ${ac_cv_lib_svld_dlopen+:} false; then :
19442 $as_echo_n "(cached) " >&6
19443 else
19444 ac_check_lib_save_LIBS=$LIBS
19445 LIBS="-lsvld $LIBS"
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19452 #ifdef __cplusplus
19453 extern "C"
19454 #endif
19455 char dlopen ();
19457 main ()
19459 return dlopen ();
19461 return 0;
19463 _ACEOF
19464 if ac_fn_c_try_link "$LINENO"; then :
19465 ac_cv_lib_svld_dlopen=yes
19466 else
19467 ac_cv_lib_svld_dlopen=no
19469 rm -f core conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19477 else
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19480 if ${ac_cv_lib_dld_dld_link+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 ac_check_lib_save_LIBS=$LIBS
19484 LIBS="-ldld $LIBS"
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19491 #ifdef __cplusplus
19492 extern "C"
19493 #endif
19494 char dld_link ();
19496 main ()
19498 return dld_link ();
19500 return 0;
19502 _ACEOF
19503 if ac_fn_c_try_link "$LINENO"; then :
19504 ac_cv_lib_dld_dld_link=yes
19505 else
19506 ac_cv_lib_dld_dld_link=no
19508 rm -f core conftest.err conftest.$ac_objext \
19509 conftest$ac_exeext conftest.$ac_ext
19510 LIBS=$ac_check_lib_save_LIBS
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19534 esac
19536 if test "x$lt_cv_dlopen" != xno; then
19537 enable_dlopen=yes
19538 else
19539 enable_dlopen=no
19542 case $lt_cv_dlopen in
19543 dlopen)
19544 save_CPPFLAGS="$CPPFLAGS"
19545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19547 save_LDFLAGS="$LDFLAGS"
19548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19550 save_LIBS="$LIBS"
19551 LIBS="$lt_cv_dlopen_libs $LIBS"
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19555 if ${lt_cv_dlopen_self+:} false; then :
19556 $as_echo_n "(cached) " >&6
19557 else
19558 if test "$cross_compiling" = yes; then :
19559 lt_cv_dlopen_self=cross
19560 else
19561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19562 lt_status=$lt_dlunknown
19563 cat > conftest.$ac_ext <<_LT_EOF
19564 #line 19564 "configure"
19565 #include "confdefs.h"
19567 #if HAVE_DLFCN_H
19568 #include <dlfcn.h>
19569 #endif
19571 #include <stdio.h>
19573 #ifdef RTLD_GLOBAL
19574 # define LT_DLGLOBAL RTLD_GLOBAL
19575 #else
19576 # ifdef DL_GLOBAL
19577 # define LT_DLGLOBAL DL_GLOBAL
19578 # else
19579 # define LT_DLGLOBAL 0
19580 # endif
19581 #endif
19583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19584 find out it does not work in some platform. */
19585 #ifndef LT_DLLAZY_OR_NOW
19586 # ifdef RTLD_LAZY
19587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19588 # else
19589 # ifdef DL_LAZY
19590 # define LT_DLLAZY_OR_NOW DL_LAZY
19591 # else
19592 # ifdef RTLD_NOW
19593 # define LT_DLLAZY_OR_NOW RTLD_NOW
19594 # else
19595 # ifdef DL_NOW
19596 # define LT_DLLAZY_OR_NOW DL_NOW
19597 # else
19598 # define LT_DLLAZY_OR_NOW 0
19599 # endif
19600 # endif
19601 # endif
19602 # endif
19603 #endif
19605 /* When -fvisbility=hidden is used, assume the code has been annotated
19606 correspondingly for the symbols needed. */
19607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19608 void fnord () __attribute__((visibility("default")));
19609 #endif
19611 void fnord () { int i=42; }
19612 int main ()
19614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19615 int status = $lt_dlunknown;
19617 if (self)
19619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19620 else
19622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19623 else puts (dlerror ());
19625 /* dlclose (self); */
19627 else
19628 puts (dlerror ());
19630 return status;
19632 _LT_EOF
19633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19634 (eval $ac_link) 2>&5
19635 ac_status=$?
19636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19638 (./conftest; exit; ) >&5 2>/dev/null
19639 lt_status=$?
19640 case x$lt_status in
19641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19643 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19644 esac
19645 else :
19646 # compilation failed
19647 lt_cv_dlopen_self=no
19650 rm -fr conftest*
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19655 $as_echo "$lt_cv_dlopen_self" >&6; }
19657 if test "x$lt_cv_dlopen_self" = xyes; then
19658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19661 if ${lt_cv_dlopen_self_static+:} false; then :
19662 $as_echo_n "(cached) " >&6
19663 else
19664 if test "$cross_compiling" = yes; then :
19665 lt_cv_dlopen_self_static=cross
19666 else
19667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19668 lt_status=$lt_dlunknown
19669 cat > conftest.$ac_ext <<_LT_EOF
19670 #line 19670 "configure"
19671 #include "confdefs.h"
19673 #if HAVE_DLFCN_H
19674 #include <dlfcn.h>
19675 #endif
19677 #include <stdio.h>
19679 #ifdef RTLD_GLOBAL
19680 # define LT_DLGLOBAL RTLD_GLOBAL
19681 #else
19682 # ifdef DL_GLOBAL
19683 # define LT_DLGLOBAL DL_GLOBAL
19684 # else
19685 # define LT_DLGLOBAL 0
19686 # endif
19687 #endif
19689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19690 find out it does not work in some platform. */
19691 #ifndef LT_DLLAZY_OR_NOW
19692 # ifdef RTLD_LAZY
19693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19694 # else
19695 # ifdef DL_LAZY
19696 # define LT_DLLAZY_OR_NOW DL_LAZY
19697 # else
19698 # ifdef RTLD_NOW
19699 # define LT_DLLAZY_OR_NOW RTLD_NOW
19700 # else
19701 # ifdef DL_NOW
19702 # define LT_DLLAZY_OR_NOW DL_NOW
19703 # else
19704 # define LT_DLLAZY_OR_NOW 0
19705 # endif
19706 # endif
19707 # endif
19708 # endif
19709 #endif
19711 /* When -fvisbility=hidden is used, assume the code has been annotated
19712 correspondingly for the symbols needed. */
19713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19714 void fnord () __attribute__((visibility("default")));
19715 #endif
19717 void fnord () { int i=42; }
19718 int main ()
19720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19721 int status = $lt_dlunknown;
19723 if (self)
19725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19726 else
19728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19729 else puts (dlerror ());
19731 /* dlclose (self); */
19733 else
19734 puts (dlerror ());
19736 return status;
19738 _LT_EOF
19739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19740 (eval $ac_link) 2>&5
19741 ac_status=$?
19742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19743 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19744 (./conftest; exit; ) >&5 2>/dev/null
19745 lt_status=$?
19746 case x$lt_status in
19747 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19748 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19749 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19750 esac
19751 else :
19752 # compilation failed
19753 lt_cv_dlopen_self_static=no
19756 rm -fr conftest*
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19764 CPPFLAGS="$save_CPPFLAGS"
19765 LDFLAGS="$save_LDFLAGS"
19766 LIBS="$save_LIBS"
19768 esac
19770 case $lt_cv_dlopen_self in
19771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19772 *) enable_dlopen_self=unknown ;;
19773 esac
19775 case $lt_cv_dlopen_self_static in
19776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19777 *) enable_dlopen_self_static=unknown ;;
19778 esac
19797 striplib=
19798 old_striplib=
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19801 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19805 $as_echo "yes" >&6; }
19806 else
19807 # FIXME - insert some real tests, host_os isn't really good enough
19808 case $host_os in
19809 darwin*)
19810 if test -n "$STRIP" ; then
19811 striplib="$STRIP -x"
19812 old_striplib="$STRIP -S"
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19815 else
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19817 $as_echo "no" >&6; }
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19822 $as_echo "no" >&6; }
19824 esac
19838 # Report which library types will actually be built
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19842 $as_echo "$can_build_shared" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19845 $as_echo_n "checking whether to build shared libraries... " >&6; }
19846 test "$can_build_shared" = "no" && enable_shared=no
19848 # On AIX, shared libraries and static libraries use the same namespace, and
19849 # are all built from PIC.
19850 case $host_os in
19851 aix3*)
19852 test "$enable_shared" = yes && enable_static=no
19853 if test -n "$RANLIB"; then
19854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19855 postinstall_cmds='$RANLIB $lib'
19859 aix[4-9]*)
19860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19861 test "$enable_shared" = yes && enable_static=no
19864 esac
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19866 $as_echo "$enable_shared" >&6; }
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19869 $as_echo_n "checking whether to build static libraries... " >&6; }
19870 # Make sure either enable_shared or enable_static is yes.
19871 test "$enable_shared" = yes || enable_static=yes
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19873 $as_echo "$enable_static" >&6; }
19879 ac_ext=cpp
19880 ac_cpp='$CXXCPP $CPPFLAGS'
19881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19885 CC="$lt_save_CC"
19887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19889 (test "X$CXX" != "Xg++"))) ; then
19890 ac_ext=cpp
19891 ac_cpp='$CXXCPP $CPPFLAGS'
19892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19896 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19897 if test -z "$CXXCPP"; then
19898 if ${ac_cv_prog_CXXCPP+:} false; then :
19899 $as_echo_n "(cached) " >&6
19900 else
19901 # Double quotes because CXXCPP needs to be expanded
19902 for CXXCPP in "$CXX -E" "/lib/cpp"
19904 ac_preproc_ok=false
19905 for ac_cxx_preproc_warn_flag in '' yes
19907 # Use a header file that comes with gcc, so configuring glibc
19908 # with a fresh cross-compiler works.
19909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19910 # <limits.h> exists even on freestanding compilers.
19911 # On the NeXT, cc -E runs the code through the compiler's parser,
19912 # not just through cpp. "Syntax error" is here to catch this case.
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19915 #ifdef __STDC__
19916 # include <limits.h>
19917 #else
19918 # include <assert.h>
19919 #endif
19920 Syntax error
19921 _ACEOF
19922 if ac_fn_cxx_try_cpp "$LINENO"; then :
19924 else
19925 # Broken: fails on valid input.
19926 continue
19928 rm -f conftest.err conftest.i conftest.$ac_ext
19930 # OK, works on sane cases. Now check whether nonexistent headers
19931 # can be detected and how.
19932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h. */
19934 #include <ac_nonexistent.h>
19935 _ACEOF
19936 if ac_fn_cxx_try_cpp "$LINENO"; then :
19937 # Broken: success on invalid input.
19938 continue
19939 else
19940 # Passes both tests.
19941 ac_preproc_ok=:
19942 break
19944 rm -f conftest.err conftest.i conftest.$ac_ext
19946 done
19947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19948 rm -f conftest.i conftest.err conftest.$ac_ext
19949 if $ac_preproc_ok; then :
19950 break
19953 done
19954 ac_cv_prog_CXXCPP=$CXXCPP
19957 CXXCPP=$ac_cv_prog_CXXCPP
19958 else
19959 ac_cv_prog_CXXCPP=$CXXCPP
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19962 $as_echo "$CXXCPP" >&6; }
19963 ac_preproc_ok=false
19964 for ac_cxx_preproc_warn_flag in '' yes
19966 # Use a header file that comes with gcc, so configuring glibc
19967 # with a fresh cross-compiler works.
19968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19969 # <limits.h> exists even on freestanding compilers.
19970 # On the NeXT, cc -E runs the code through the compiler's parser,
19971 # not just through cpp. "Syntax error" is here to catch this case.
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19974 #ifdef __STDC__
19975 # include <limits.h>
19976 #else
19977 # include <assert.h>
19978 #endif
19979 Syntax error
19980 _ACEOF
19981 if ac_fn_cxx_try_cpp "$LINENO"; then :
19983 else
19984 # Broken: fails on valid input.
19985 continue
19987 rm -f conftest.err conftest.i conftest.$ac_ext
19989 # OK, works on sane cases. Now check whether nonexistent headers
19990 # can be detected and how.
19991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
19993 #include <ac_nonexistent.h>
19994 _ACEOF
19995 if ac_fn_cxx_try_cpp "$LINENO"; then :
19996 # Broken: success on invalid input.
19997 continue
19998 else
19999 # Passes both tests.
20000 ac_preproc_ok=:
20001 break
20003 rm -f conftest.err conftest.i conftest.$ac_ext
20005 done
20006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20007 rm -f conftest.i conftest.err conftest.$ac_ext
20008 if $ac_preproc_ok; then :
20010 else
20011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20013 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20014 See \`config.log' for more details" "$LINENO" 5; }
20017 ac_ext=cpp
20018 ac_cpp='$CXXCPP $CPPFLAGS'
20019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20023 else
20024 _lt_caught_CXX_error=yes
20027 ac_ext=cpp
20028 ac_cpp='$CXXCPP $CPPFLAGS'
20029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20033 archive_cmds_need_lc_CXX=no
20034 allow_undefined_flag_CXX=
20035 always_export_symbols_CXX=no
20036 archive_expsym_cmds_CXX=
20037 compiler_needs_object_CXX=no
20038 export_dynamic_flag_spec_CXX=
20039 hardcode_direct_CXX=no
20040 hardcode_direct_absolute_CXX=no
20041 hardcode_libdir_flag_spec_CXX=
20042 hardcode_libdir_flag_spec_ld_CXX=
20043 hardcode_libdir_separator_CXX=
20044 hardcode_minus_L_CXX=no
20045 hardcode_shlibpath_var_CXX=unsupported
20046 hardcode_automatic_CXX=no
20047 inherit_rpath_CXX=no
20048 module_cmds_CXX=
20049 module_expsym_cmds_CXX=
20050 link_all_deplibs_CXX=unknown
20051 old_archive_cmds_CXX=$old_archive_cmds
20052 reload_flag_CXX=$reload_flag
20053 reload_cmds_CXX=$reload_cmds
20054 no_undefined_flag_CXX=
20055 whole_archive_flag_spec_CXX=
20056 enable_shared_with_static_runtimes_CXX=no
20058 # Source file extension for C++ test sources.
20059 ac_ext=cpp
20061 # Object file extension for compiled C++ test sources.
20062 objext=o
20063 objext_CXX=$objext
20065 # No sense in running all these tests if we already determined that
20066 # the CXX compiler isn't working. Some variables (like enable_shared)
20067 # are currently assumed to apply to all compilers on this platform,
20068 # and will be corrupted by setting them based on a non-working compiler.
20069 if test "$_lt_caught_CXX_error" != yes; then
20070 # Code to be used in simple compile tests
20071 lt_simple_compile_test_code="int some_variable = 0;"
20073 # Code to be used in simple link tests
20074 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20083 # If no C compiler was specified, use CC.
20084 LTCC=${LTCC-"$CC"}
20086 # If no C compiler flags were specified, use CFLAGS.
20087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20089 # Allow CC to be a program name with arguments.
20090 compiler=$CC
20093 # save warnings/boilerplate of simple test code
20094 ac_outfile=conftest.$ac_objext
20095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20097 _lt_compiler_boilerplate=`cat conftest.err`
20098 $RM conftest*
20100 ac_outfile=conftest.$ac_objext
20101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20103 _lt_linker_boilerplate=`cat conftest.err`
20104 $RM -r conftest*
20107 # Allow CC to be a program name with arguments.
20108 lt_save_CC=$CC
20109 lt_save_LD=$LD
20110 lt_save_GCC=$GCC
20111 GCC=$GXX
20112 lt_save_with_gnu_ld=$with_gnu_ld
20113 lt_save_path_LD=$lt_cv_path_LD
20114 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20115 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20116 else
20117 $as_unset lt_cv_prog_gnu_ld
20119 if test -n "${lt_cv_path_LDCXX+set}"; then
20120 lt_cv_path_LD=$lt_cv_path_LDCXX
20121 else
20122 $as_unset lt_cv_path_LD
20124 test -z "${LDCXX+set}" || LD=$LDCXX
20125 CC=${CXX-"c++"}
20126 compiler=$CC
20127 compiler_CXX=$CC
20128 for cc_temp in $compiler""; do
20129 case $cc_temp in
20130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20132 \-*) ;;
20133 *) break;;
20134 esac
20135 done
20136 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20139 if test -n "$compiler"; then
20140 # We don't want -fno-exception when compiling C++ code, so set the
20141 # no_builtin_flag separately
20142 if test "$GXX" = yes; then
20143 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20144 else
20145 lt_prog_compiler_no_builtin_flag_CXX=
20148 if test "$GXX" = yes; then
20149 # Set up default GNU C++ configuration
20153 # Check whether --with-gnu-ld was given.
20154 if test "${with_gnu_ld+set}" = set; then :
20155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20156 else
20157 with_gnu_ld=no
20160 ac_prog=ld
20161 if test "$GCC" = yes; then
20162 # Check if gcc -print-prog-name=ld gives a path.
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20164 $as_echo_n "checking for ld used by $CC... " >&6; }
20165 case $host in
20166 *-*-mingw*)
20167 # gcc leaves a trailing carriage return which upsets mingw
20168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20171 esac
20172 case $ac_prog in
20173 # Accept absolute paths.
20174 [\\/]* | ?:[\\/]*)
20175 re_direlt='/[^/][^/]*/\.\./'
20176 # Canonicalize the pathname of ld
20177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20180 done
20181 test -z "$LD" && LD="$ac_prog"
20184 # If it fails, then pretend we aren't using GCC.
20185 ac_prog=ld
20188 # If it is relative, then search for the first ld in PATH.
20189 with_gnu_ld=unknown
20191 esac
20192 elif test "$with_gnu_ld" = yes; then
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20194 $as_echo_n "checking for GNU ld... " >&6; }
20195 else
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20197 $as_echo_n "checking for non-GNU ld... " >&6; }
20199 if ${lt_cv_path_LD+:} false; then :
20200 $as_echo_n "(cached) " >&6
20201 else
20202 if test -z "$LD"; then
20203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20204 for ac_dir in $PATH; do
20205 IFS="$lt_save_ifs"
20206 test -z "$ac_dir" && ac_dir=.
20207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20208 lt_cv_path_LD="$ac_dir/$ac_prog"
20209 # Check to see if the program is GNU ld. I'd rather use --version,
20210 # but apparently some variants of GNU ld only accept -v.
20211 # Break only if it was the GNU/non-GNU ld that we prefer.
20212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20213 *GNU* | *'with BFD'*)
20214 test "$with_gnu_ld" != no && break
20217 test "$with_gnu_ld" != yes && break
20219 esac
20221 done
20222 IFS="$lt_save_ifs"
20223 else
20224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20228 LD="$lt_cv_path_LD"
20229 if test -n "$LD"; then
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20231 $as_echo "$LD" >&6; }
20232 else
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20234 $as_echo "no" >&6; }
20236 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20238 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20239 if ${lt_cv_prog_gnu_ld+:} false; then :
20240 $as_echo_n "(cached) " >&6
20241 else
20242 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20243 case `$LD -v 2>&1 </dev/null` in
20244 *GNU* | *'with BFD'*)
20245 lt_cv_prog_gnu_ld=yes
20248 lt_cv_prog_gnu_ld=no
20250 esac
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20253 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20254 with_gnu_ld=$lt_cv_prog_gnu_ld
20262 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20263 # archiving commands below assume that GNU ld is being used.
20264 if test "$with_gnu_ld" = yes; then
20265 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20266 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'
20268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20271 # If archive_cmds runs LD, not CC, wlarc should be empty
20272 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20273 # investigate it a little bit more. (MM)
20274 wlarc='${wl}'
20276 # ancient GNU ld didn't support --whole-archive et. al.
20277 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20278 $GREP 'no-whole-archive' > /dev/null; then
20279 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20280 else
20281 whole_archive_flag_spec_CXX=
20283 else
20284 with_gnu_ld=no
20285 wlarc=
20287 # A generic and very simple default shared library creation
20288 # command for GNU C++ for the case where it uses the native
20289 # linker, instead of GNU ld. If possible, this setting should
20290 # overridden to take advantage of the native linker features on
20291 # the platform it is being used on.
20292 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20295 # Commands to make compiler produce verbose output that lists
20296 # what "hidden" libraries, object files and flags are used when
20297 # linking a shared library.
20298 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20300 else
20301 GXX=no
20302 with_gnu_ld=no
20303 wlarc=
20306 # PORTME: fill in a description of your system's C++ link characteristics
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20309 ld_shlibs_CXX=yes
20310 case $host_os in
20311 aix3*)
20312 # FIXME: insert proper C++ library support
20313 ld_shlibs_CXX=no
20315 aix[4-9]*)
20316 if test "$host_cpu" = ia64; then
20317 # On IA64, the linker does run time linking by default, so we don't
20318 # have to do anything special.
20319 aix_use_runtimelinking=no
20320 exp_sym_flag='-Bexport'
20321 no_entry_flag=""
20322 else
20323 aix_use_runtimelinking=no
20325 # Test if we are trying to use run time linking or normal
20326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20327 # need to do runtime linking.
20328 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20329 for ld_flag in $LDFLAGS; do
20330 case $ld_flag in
20331 *-brtl*)
20332 aix_use_runtimelinking=yes
20333 break
20335 esac
20336 done
20338 esac
20340 exp_sym_flag='-bexport'
20341 no_entry_flag='-bnoentry'
20344 # When large executables or shared objects are built, AIX ld can
20345 # have problems creating the table of contents. If linking a library
20346 # or program results in "error TOC overflow" add -mminimal-toc to
20347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20350 archive_cmds_CXX=''
20351 hardcode_direct_CXX=yes
20352 hardcode_direct_absolute_CXX=yes
20353 hardcode_libdir_separator_CXX=':'
20354 link_all_deplibs_CXX=yes
20355 file_list_spec_CXX='${wl}-f,'
20357 if test "$GXX" = yes; then
20358 case $host_os in aix4.[012]|aix4.[012].*)
20359 # We only want to do this on AIX 4.2 and lower, the check
20360 # below for broken collect2 doesn't work under 4.3+
20361 collect2name=`${CC} -print-prog-name=collect2`
20362 if test -f "$collect2name" &&
20363 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20364 then
20365 # We have reworked collect2
20367 else
20368 # We have old collect2
20369 hardcode_direct_CXX=unsupported
20370 # It fails to find uninstalled libraries when the uninstalled
20371 # path is not listed in the libpath. Setting hardcode_minus_L
20372 # to unsupported forces relinking
20373 hardcode_minus_L_CXX=yes
20374 hardcode_libdir_flag_spec_CXX='-L$libdir'
20375 hardcode_libdir_separator_CXX=
20377 esac
20378 shared_flag='-shared'
20379 if test "$aix_use_runtimelinking" = yes; then
20380 shared_flag="$shared_flag "'${wl}-G'
20382 else
20383 # not using gcc
20384 if test "$host_cpu" = ia64; then
20385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20386 # chokes on -Wl,-G. The following line is correct:
20387 shared_flag='-G'
20388 else
20389 if test "$aix_use_runtimelinking" = yes; then
20390 shared_flag='${wl}-G'
20391 else
20392 shared_flag='${wl}-bM:SRE'
20397 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20398 # It seems that -bexpall does not export symbols beginning with
20399 # underscore (_), so it is better to generate a list of symbols to
20400 # export.
20401 always_export_symbols_CXX=yes
20402 if test "$aix_use_runtimelinking" = yes; then
20403 # Warning - without using the other runtime loading flags (-brtl),
20404 # -berok will link without error, but may produce a broken library.
20405 allow_undefined_flag_CXX='-berok'
20406 # Determine the default libpath from the value encoded in an empty
20407 # executable.
20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20412 main ()
20416 return 0;
20418 _ACEOF
20419 if ac_fn_cxx_try_link "$LINENO"; then :
20421 lt_aix_libpath_sed='
20422 /Import File Strings/,/^$/ {
20423 /^0/ {
20424 s/^0 *\(.*\)$/\1/
20428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20429 # Check for a 64-bit object if we didn't find anything.
20430 if test -z "$aix_libpath"; then
20431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20434 rm -f core conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext conftest.$ac_ext
20436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20440 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"
20441 else
20442 if test "$host_cpu" = ia64; then
20443 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20444 allow_undefined_flag_CXX="-z nodefs"
20445 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"
20446 else
20447 # Determine the default libpath from the value encoded in an
20448 # empty executable.
20449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h. */
20453 main ()
20457 return 0;
20459 _ACEOF
20460 if ac_fn_cxx_try_link "$LINENO"; then :
20462 lt_aix_libpath_sed='
20463 /Import File Strings/,/^$/ {
20464 /^0/ {
20465 s/^0 *\(.*\)$/\1/
20469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20470 # Check for a 64-bit object if we didn't find anything.
20471 if test -z "$aix_libpath"; then
20472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20475 rm -f core conftest.err conftest.$ac_objext \
20476 conftest$ac_exeext conftest.$ac_ext
20477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20479 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20480 # Warning - without using the other run time loading flags,
20481 # -berok will link without error, but may produce a broken library.
20482 no_undefined_flag_CXX=' ${wl}-bernotok'
20483 allow_undefined_flag_CXX=' ${wl}-berok'
20484 if test "$with_gnu_ld" = yes; then
20485 # We only use this code for GNU lds that support --whole-archive.
20486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20487 else
20488 # Exported symbols can be pulled into shared objects from archives
20489 whole_archive_flag_spec_CXX='$convenience'
20491 archive_cmds_need_lc_CXX=yes
20492 # This is similar to how AIX traditionally builds its shared
20493 # libraries.
20494 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'
20499 beos*)
20500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20501 allow_undefined_flag_CXX=unsupported
20502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20503 # support --undefined. This deserves some investigation. FIXME
20504 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20505 else
20506 ld_shlibs_CXX=no
20510 chorus*)
20511 case $cc_basename in
20513 # FIXME: insert proper C++ library support
20514 ld_shlibs_CXX=no
20516 esac
20519 cygwin* | mingw* | pw32* | cegcc*)
20520 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20521 # as there is no search path for DLLs.
20522 hardcode_libdir_flag_spec_CXX='-L$libdir'
20523 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20524 allow_undefined_flag_CXX=unsupported
20525 always_export_symbols_CXX=no
20526 enable_shared_with_static_runtimes_CXX=yes
20528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20529 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'
20530 # If the export-symbols file already is a .def file (1st line
20531 # is EXPORTS), use it as is; otherwise, prepend...
20532 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20533 cp $export_symbols $output_objdir/$soname.def;
20534 else
20535 echo EXPORTS > $output_objdir/$soname.def;
20536 cat $export_symbols >> $output_objdir/$soname.def;
20538 $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'
20539 else
20540 ld_shlibs_CXX=no
20543 darwin* | rhapsody*)
20546 archive_cmds_need_lc_CXX=no
20547 hardcode_direct_CXX=no
20548 hardcode_automatic_CXX=yes
20549 hardcode_shlibpath_var_CXX=unsupported
20550 if test "$lt_cv_ld_force_load" = "yes"; then
20551 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\"`'
20552 else
20553 whole_archive_flag_spec_CXX=''
20555 link_all_deplibs_CXX=yes
20556 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20557 case $cc_basename in
20558 ifort*) _lt_dar_can_shared=yes ;;
20559 *) _lt_dar_can_shared=$GCC ;;
20560 esac
20561 if test "$_lt_dar_can_shared" = "yes"; then
20562 output_verbose_link_cmd=func_echo_all
20563 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20564 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20565 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20566 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}"
20567 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20568 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20569 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}"
20572 else
20573 ld_shlibs_CXX=no
20578 dgux*)
20579 case $cc_basename in
20580 ec++*)
20581 # FIXME: insert proper C++ library support
20582 ld_shlibs_CXX=no
20584 ghcx*)
20585 # Green Hills C++ Compiler
20586 # FIXME: insert proper C++ library support
20587 ld_shlibs_CXX=no
20590 # FIXME: insert proper C++ library support
20591 ld_shlibs_CXX=no
20593 esac
20596 freebsd2.*)
20597 # C++ shared libraries reported to be fairly broken before
20598 # switch to ELF
20599 ld_shlibs_CXX=no
20602 freebsd-elf*)
20603 archive_cmds_need_lc_CXX=no
20606 freebsd* | dragonfly*)
20607 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20608 # conventions
20609 ld_shlibs_CXX=yes
20612 gnu*)
20615 haiku*)
20616 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20617 link_all_deplibs_CXX=yes
20620 hpux9*)
20621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20622 hardcode_libdir_separator_CXX=:
20623 export_dynamic_flag_spec_CXX='${wl}-E'
20624 hardcode_direct_CXX=yes
20625 hardcode_minus_L_CXX=yes # Not in the search PATH,
20626 # but as the default
20627 # location of the library.
20629 case $cc_basename in
20630 CC*)
20631 # FIXME: insert proper C++ library support
20632 ld_shlibs_CXX=no
20634 aCC*)
20635 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'
20636 # Commands to make compiler produce verbose output that lists
20637 # what "hidden" libraries, object files and flags are used when
20638 # linking a shared library.
20640 # There doesn't appear to be a way to prevent this compiler from
20641 # explicitly linking system object files so we need to strip them
20642 # from the output so that they don't get included in the library
20643 # dependencies.
20644 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"'
20647 if test "$GXX" = yes; then
20648 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'
20649 else
20650 # FIXME: insert proper C++ library support
20651 ld_shlibs_CXX=no
20654 esac
20657 hpux10*|hpux11*)
20658 if test $with_gnu_ld = no; then
20659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20660 hardcode_libdir_separator_CXX=:
20662 case $host_cpu in
20663 hppa*64*|ia64*)
20666 export_dynamic_flag_spec_CXX='${wl}-E'
20668 esac
20670 case $host_cpu in
20671 hppa*64*|ia64*)
20672 hardcode_direct_CXX=no
20673 hardcode_shlibpath_var_CXX=no
20676 hardcode_direct_CXX=yes
20677 hardcode_direct_absolute_CXX=yes
20678 hardcode_minus_L_CXX=yes # Not in the search PATH,
20679 # but as the default
20680 # location of the library.
20682 esac
20684 case $cc_basename in
20685 CC*)
20686 # FIXME: insert proper C++ library support
20687 ld_shlibs_CXX=no
20689 aCC*)
20690 case $host_cpu in
20691 hppa*64*)
20692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20694 ia64*)
20695 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20700 esac
20701 # Commands to make compiler produce verbose output that lists
20702 # what "hidden" libraries, object files and flags are used when
20703 # linking a shared library.
20705 # There doesn't appear to be a way to prevent this compiler from
20706 # explicitly linking system object files so we need to strip them
20707 # from the output so that they don't get included in the library
20708 # dependencies.
20709 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"'
20712 if test "$GXX" = yes; then
20713 if test $with_gnu_ld = no; then
20714 case $host_cpu in
20715 hppa*64*)
20716 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20718 ia64*)
20719 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20722 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'
20724 esac
20726 else
20727 # FIXME: insert proper C++ library support
20728 ld_shlibs_CXX=no
20731 esac
20734 interix[3-9]*)
20735 hardcode_direct_CXX=no
20736 hardcode_shlibpath_var_CXX=no
20737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20738 export_dynamic_flag_spec_CXX='${wl}-E'
20739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20740 # Instead, shared libraries are loaded at an image base (0x10000000 by
20741 # default) and relocated if they conflict, which is a slow very memory
20742 # consuming and fragmenting process. To avoid this, we pick a random,
20743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20745 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'
20746 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'
20748 irix5* | irix6*)
20749 case $cc_basename in
20750 CC*)
20751 # SGI C++
20752 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'
20754 # Archives containing C++ object files must be created using
20755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20756 # necessary to make sure instantiated templates are included
20757 # in the archive.
20758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20761 if test "$GXX" = yes; then
20762 if test "$with_gnu_ld" = no; then
20763 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'
20764 else
20765 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'
20768 link_all_deplibs_CXX=yes
20770 esac
20771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20772 hardcode_libdir_separator_CXX=:
20773 inherit_rpath_CXX=yes
20776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20777 case $cc_basename in
20778 KCC*)
20779 # Kuck and Associates, Inc. (KAI) C++ Compiler
20781 # KCC will only create a shared library if the output file
20782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20783 # to its proper name (with version) after linking.
20784 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'
20785 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'
20786 # Commands to make compiler produce verbose output that lists
20787 # what "hidden" libraries, object files and flags are used when
20788 # linking a shared library.
20790 # There doesn't appear to be a way to prevent this compiler from
20791 # explicitly linking system object files so we need to strip them
20792 # from the output so that they don't get included in the library
20793 # dependencies.
20794 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"'
20796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20799 # Archives containing C++ object files must be created using
20800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20803 icpc* | ecpc* )
20804 # Intel C++
20805 with_gnu_ld=yes
20806 # version 8.0 and above of icpc choke on multiply defined symbols
20807 # if we add $predep_objects and $postdep_objects, however 7.1 and
20808 # earlier do not add the objects themselves.
20809 case `$CC -V 2>&1` in
20810 *"Version 7."*)
20811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20812 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'
20814 *) # Version 8.0 or newer
20815 tmp_idyn=
20816 case $host_cpu in
20817 ia64*) tmp_idyn=' -i_dynamic';;
20818 esac
20819 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20820 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'
20822 esac
20823 archive_cmds_need_lc_CXX=no
20824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20825 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20826 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20828 pgCC* | pgcpp*)
20829 # Portland Group C++ compiler
20830 case `$CC -V` in
20831 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20832 prelink_cmds_CXX='tpldir=Template.dir~
20833 rm -rf $tpldir~
20834 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20835 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20836 old_archive_cmds_CXX='tpldir=Template.dir~
20837 rm -rf $tpldir~
20838 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20839 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20840 $RANLIB $oldlib'
20841 archive_cmds_CXX='tpldir=Template.dir~
20842 rm -rf $tpldir~
20843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20845 archive_expsym_cmds_CXX='tpldir=Template.dir~
20846 rm -rf $tpldir~
20847 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20848 $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'
20850 *) # Version 6 and above use weak symbols
20851 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20852 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'
20854 esac
20856 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20858 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'
20860 cxx*)
20861 # Compaq C++
20862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20863 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'
20865 runpath_var=LD_RUN_PATH
20866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20867 hardcode_libdir_separator_CXX=:
20869 # Commands to make compiler produce verbose output that lists
20870 # what "hidden" libraries, object files and flags are used when
20871 # linking a shared library.
20873 # There doesn't appear to be a way to prevent this compiler from
20874 # explicitly linking system object files so we need to strip them
20875 # from the output so that they don't get included in the library
20876 # dependencies.
20877 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'
20879 xl* | mpixl* | bgxl*)
20880 # IBM XL 8.0 on PPC, with GNU ld
20881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20883 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20884 if test "x$supports_anon_versioning" = xyes; then
20885 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20887 echo "local: *; };" >> $output_objdir/$libname.ver~
20888 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20892 case `$CC -V 2>&1 | sed 5q` in
20893 *Sun\ C*)
20894 # Sun C++ 5.9
20895 no_undefined_flag_CXX=' -zdefs'
20896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20897 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'
20898 hardcode_libdir_flag_spec_CXX='-R$libdir'
20899 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'
20900 compiler_needs_object_CXX=yes
20902 # Not sure whether something based on
20903 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20904 # would be better.
20905 output_verbose_link_cmd='func_echo_all'
20907 # Archives containing C++ object files must be created using
20908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20909 # necessary to make sure instantiated templates are included
20910 # in the archive.
20911 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20913 esac
20915 esac
20918 lynxos*)
20919 # FIXME: insert proper C++ library support
20920 ld_shlibs_CXX=no
20923 m88k*)
20924 # FIXME: insert proper C++ library support
20925 ld_shlibs_CXX=no
20928 mvs*)
20929 case $cc_basename in
20930 cxx*)
20931 # FIXME: insert proper C++ library support
20932 ld_shlibs_CXX=no
20935 # FIXME: insert proper C++ library support
20936 ld_shlibs_CXX=no
20938 esac
20941 netbsd*)
20942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20943 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20944 wlarc=
20945 hardcode_libdir_flag_spec_CXX='-R$libdir'
20946 hardcode_direct_CXX=yes
20947 hardcode_shlibpath_var_CXX=no
20949 # Workaround some broken pre-1.5 toolchains
20950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20953 *nto* | *qnx*)
20954 ld_shlibs_CXX=yes
20957 openbsd2*)
20958 # C++ shared libraries are fairly broken
20959 ld_shlibs_CXX=no
20962 openbsd*)
20963 if test -f /usr/libexec/ld.so; then
20964 hardcode_direct_CXX=yes
20965 hardcode_shlibpath_var_CXX=no
20966 hardcode_direct_absolute_CXX=yes
20967 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20970 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20971 export_dynamic_flag_spec_CXX='${wl}-E'
20972 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20974 output_verbose_link_cmd=func_echo_all
20975 else
20976 ld_shlibs_CXX=no
20980 osf3* | osf4* | osf5*)
20981 case $cc_basename in
20982 KCC*)
20983 # Kuck and Associates, Inc. (KAI) C++ Compiler
20985 # KCC will only create a shared library if the output file
20986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20987 # to its proper name (with version) after linking.
20988 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'
20990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20991 hardcode_libdir_separator_CXX=:
20993 # Archives containing C++ object files must be created using
20994 # the KAI C++ compiler.
20995 case $host in
20996 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20997 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20998 esac
21000 RCC*)
21001 # Rational C++ 2.4.1
21002 # FIXME: insert proper C++ library support
21003 ld_shlibs_CXX=no
21005 cxx*)
21006 case $host in
21007 osf3*)
21008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21009 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'
21010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21013 allow_undefined_flag_CXX=' -expect_unresolved \*'
21014 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'
21015 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21016 echo "-hidden">> $lib.exp~
21017 $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~
21018 $RM $lib.exp'
21019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21021 esac
21023 hardcode_libdir_separator_CXX=:
21025 # Commands to make compiler produce verbose output that lists
21026 # what "hidden" libraries, object files and flags are used when
21027 # linking a shared library.
21029 # There doesn't appear to be a way to prevent this compiler from
21030 # explicitly linking system object files so we need to strip them
21031 # from the output so that they don't get included in the library
21032 # dependencies.
21033 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"'
21036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21037 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21038 case $host in
21039 osf3*)
21040 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'
21043 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'
21045 esac
21047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21048 hardcode_libdir_separator_CXX=:
21050 # Commands to make compiler produce verbose output that lists
21051 # what "hidden" libraries, object files and flags are used when
21052 # linking a shared library.
21053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21055 else
21056 # FIXME: insert proper C++ library support
21057 ld_shlibs_CXX=no
21060 esac
21063 psos*)
21064 # FIXME: insert proper C++ library support
21065 ld_shlibs_CXX=no
21068 sunos4*)
21069 case $cc_basename in
21070 CC*)
21071 # Sun C++ 4.x
21072 # FIXME: insert proper C++ library support
21073 ld_shlibs_CXX=no
21075 lcc*)
21076 # Lucid
21077 # FIXME: insert proper C++ library support
21078 ld_shlibs_CXX=no
21081 # FIXME: insert proper C++ library support
21082 ld_shlibs_CXX=no
21084 esac
21087 solaris*)
21088 case $cc_basename in
21089 CC*)
21090 # Sun C++ 4.2, 5.x and Centerline C++
21091 archive_cmds_need_lc_CXX=yes
21092 no_undefined_flag_CXX=' -zdefs'
21093 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21094 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21095 $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'
21097 hardcode_libdir_flag_spec_CXX='-R$libdir'
21098 hardcode_shlibpath_var_CXX=no
21099 case $host_os in
21100 solaris2.[0-5] | solaris2.[0-5].*) ;;
21102 # The compiler driver will combine and reorder linker options,
21103 # but understands `-z linker_flag'.
21104 # Supported since Solaris 2.6 (maybe 2.5.1?)
21105 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21107 esac
21108 link_all_deplibs_CXX=yes
21110 output_verbose_link_cmd='func_echo_all'
21112 # Archives containing C++ object files must be created using
21113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21114 # necessary to make sure instantiated templates are included
21115 # in the archive.
21116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21118 gcx*)
21119 # Green Hills C++ Compiler
21120 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21122 # The C++ compiler must be used to create the archive.
21123 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21126 # GNU C++ compiler with Solaris linker
21127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21128 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21129 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21130 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21131 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21132 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21134 # Commands to make compiler produce verbose output that lists
21135 # what "hidden" libraries, object files and flags are used when
21136 # linking a shared library.
21137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21138 else
21139 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21140 # platform.
21141 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21143 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21145 # Commands to make compiler produce verbose output that lists
21146 # what "hidden" libraries, object files and flags are used when
21147 # linking a shared library.
21148 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21151 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21152 case $host_os in
21153 solaris2.[0-5] | solaris2.[0-5].*) ;;
21155 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21157 esac
21160 esac
21163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21164 no_undefined_flag_CXX='${wl}-z,text'
21165 archive_cmds_need_lc_CXX=no
21166 hardcode_shlibpath_var_CXX=no
21167 runpath_var='LD_RUN_PATH'
21169 case $cc_basename in
21170 CC*)
21171 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21172 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21175 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21176 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21178 esac
21181 sysv5* | sco3.2v5* | sco5v6*)
21182 # Note: We can NOT use -z defs as we might desire, because we do not
21183 # link with -lc, and that would cause any symbols used from libc to
21184 # always be unresolved, which means just about no library would
21185 # ever link correctly. If we're not using GNU ld we use -z text
21186 # though, which does catch some bad symbols but isn't as heavy-handed
21187 # as -z defs.
21188 no_undefined_flag_CXX='${wl}-z,text'
21189 allow_undefined_flag_CXX='${wl}-z,nodefs'
21190 archive_cmds_need_lc_CXX=no
21191 hardcode_shlibpath_var_CXX=no
21192 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21193 hardcode_libdir_separator_CXX=':'
21194 link_all_deplibs_CXX=yes
21195 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21196 runpath_var='LD_RUN_PATH'
21198 case $cc_basename in
21199 CC*)
21200 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21201 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21202 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21203 '"$old_archive_cmds_CXX"
21204 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21205 '"$reload_cmds_CXX"
21208 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21209 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21211 esac
21214 tandem*)
21215 case $cc_basename in
21216 NCC*)
21217 # NonStop-UX NCC 3.20
21218 # FIXME: insert proper C++ library support
21219 ld_shlibs_CXX=no
21222 # FIXME: insert proper C++ library support
21223 ld_shlibs_CXX=no
21225 esac
21228 vxworks*)
21229 # FIXME: insert proper C++ library support
21230 ld_shlibs_CXX=no
21234 # FIXME: insert proper C++ library support
21235 ld_shlibs_CXX=no
21237 esac
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21240 $as_echo "$ld_shlibs_CXX" >&6; }
21241 test "$ld_shlibs_CXX" = no && can_build_shared=no
21243 GCC_CXX="$GXX"
21244 LD_CXX="$LD"
21246 ## CAVEAT EMPTOR:
21247 ## There is no encapsulation within the following macros, do not change
21248 ## the running order or otherwise move them around unless you know exactly
21249 ## what you are doing...
21250 # Dependencies to place before and after the object being linked:
21251 predep_objects_CXX=
21252 postdep_objects_CXX=
21253 predeps_CXX=
21254 postdeps_CXX=
21255 compiler_lib_search_path_CXX=
21257 cat > conftest.$ac_ext <<_LT_EOF
21258 class Foo
21260 public:
21261 Foo (void) { a = 0; }
21262 private:
21263 int a;
21265 _LT_EOF
21267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21268 (eval $ac_compile) 2>&5
21269 ac_status=$?
21270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21271 test $ac_status = 0; }; then
21272 # Parse the compiler output and extract the necessary
21273 # objects, libraries and library flags.
21275 # Sentinel used to keep track of whether or not we are before
21276 # the conftest object file.
21277 pre_test_object_deps_done=no
21279 for p in `eval "$output_verbose_link_cmd"`; do
21280 case $p in
21282 -L* | -R* | -l*)
21283 # Some compilers place space between "-{L,R}" and the path.
21284 # Remove the space.
21285 if test $p = "-L" ||
21286 test $p = "-R"; then
21287 prev=$p
21288 continue
21289 else
21290 prev=
21293 if test "$pre_test_object_deps_done" = no; then
21294 case $p in
21295 -L* | -R*)
21296 # Internal compiler library paths should come after those
21297 # provided the user. The postdeps already come after the
21298 # user supplied libs so there is no need to process them.
21299 if test -z "$compiler_lib_search_path_CXX"; then
21300 compiler_lib_search_path_CXX="${prev}${p}"
21301 else
21302 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21305 # The "-l" case would never come before the object being
21306 # linked, so don't bother handling this case.
21307 esac
21308 else
21309 if test -z "$postdeps_CXX"; then
21310 postdeps_CXX="${prev}${p}"
21311 else
21312 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21317 *.$objext)
21318 # This assumes that the test object file only shows up
21319 # once in the compiler output.
21320 if test "$p" = "conftest.$objext"; then
21321 pre_test_object_deps_done=yes
21322 continue
21325 if test "$pre_test_object_deps_done" = no; then
21326 if test -z "$predep_objects_CXX"; then
21327 predep_objects_CXX="$p"
21328 else
21329 predep_objects_CXX="$predep_objects_CXX $p"
21331 else
21332 if test -z "$postdep_objects_CXX"; then
21333 postdep_objects_CXX="$p"
21334 else
21335 postdep_objects_CXX="$postdep_objects_CXX $p"
21340 *) ;; # Ignore the rest.
21342 esac
21343 done
21345 # Clean up.
21346 rm -f a.out a.exe
21347 else
21348 echo "libtool.m4: error: problem compiling CXX test program"
21351 $RM -f confest.$objext
21353 # PORTME: override above test on systems where it is broken
21354 case $host_os in
21355 interix[3-9]*)
21356 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21357 # hack all around it, let's just trust "g++" to DTRT.
21358 predep_objects_CXX=
21359 postdep_objects_CXX=
21360 postdeps_CXX=
21363 linux*)
21364 case `$CC -V 2>&1 | sed 5q` in
21365 *Sun\ C*)
21366 # Sun C++ 5.9
21368 # The more standards-conforming stlport4 library is
21369 # incompatible with the Cstd library. Avoid specifying
21370 # it if it's in CXXFLAGS. Ignore libCrun as
21371 # -library=stlport4 depends on it.
21372 case " $CXX $CXXFLAGS " in
21373 *" -library=stlport4 "*)
21374 solaris_use_stlport4=yes
21376 esac
21378 if test "$solaris_use_stlport4" != yes; then
21379 postdeps_CXX='-library=Cstd -library=Crun'
21382 esac
21385 solaris*)
21386 case $cc_basename in
21387 CC*)
21388 # The more standards-conforming stlport4 library is
21389 # incompatible with the Cstd library. Avoid specifying
21390 # it if it's in CXXFLAGS. Ignore libCrun as
21391 # -library=stlport4 depends on it.
21392 case " $CXX $CXXFLAGS " in
21393 *" -library=stlport4 "*)
21394 solaris_use_stlport4=yes
21396 esac
21398 # Adding this requires a known-good setup of shared libraries for
21399 # Sun compiler versions before 5.6, else PIC objects from an old
21400 # archive will be linked into the output, leading to subtle bugs.
21401 if test "$solaris_use_stlport4" != yes; then
21402 postdeps_CXX='-library=Cstd -library=Crun'
21405 esac
21407 esac
21410 case " $postdeps_CXX " in
21411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21412 esac
21413 compiler_lib_search_dirs_CXX=
21414 if test -n "${compiler_lib_search_path_CXX}"; then
21415 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21448 lt_prog_compiler_wl_CXX=
21449 lt_prog_compiler_pic_CXX=
21450 lt_prog_compiler_static_CXX=
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21453 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21455 # C++ specific cases for pic, static, wl, etc.
21456 if test "$GXX" = yes; then
21457 lt_prog_compiler_wl_CXX='-Wl,'
21458 lt_prog_compiler_static_CXX='-static'
21460 case $host_os in
21461 aix*)
21462 # All AIX code is PIC.
21463 if test "$host_cpu" = ia64; then
21464 # AIX 5 now supports IA64 processor
21465 lt_prog_compiler_static_CXX='-Bstatic'
21467 lt_prog_compiler_pic_CXX='-fPIC'
21470 amigaos*)
21471 case $host_cpu in
21472 powerpc)
21473 # see comment about AmigaOS4 .so support
21474 lt_prog_compiler_pic_CXX='-fPIC'
21476 m68k)
21477 # FIXME: we need at least 68020 code to build shared libraries, but
21478 # adding the `-m68020' flag to GCC prevents building anything better,
21479 # like `-m68040'.
21480 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21482 esac
21485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21486 # PIC is the default for these OSes.
21488 mingw* | cygwin* | os2* | pw32* | cegcc*)
21489 # This hack is so that the source file can tell whether it is being
21490 # built for inclusion in a dll (and should export symbols for example).
21491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21492 # (--disable-auto-import) libraries
21493 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21495 darwin* | rhapsody*)
21496 # PIC is the default on this platform
21497 # Common symbols not allowed in MH_DYLIB files
21498 lt_prog_compiler_pic_CXX='-fno-common'
21500 *djgpp*)
21501 # DJGPP does not support shared libraries at all
21502 lt_prog_compiler_pic_CXX=
21504 haiku*)
21505 # PIC is the default for Haiku.
21506 # The "-static" flag exists, but is broken.
21507 lt_prog_compiler_static_CXX=
21509 interix[3-9]*)
21510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21511 # Instead, we relocate shared libraries at runtime.
21513 sysv4*MP*)
21514 if test -d /usr/nec; then
21515 lt_prog_compiler_pic_CXX=-Kconform_pic
21518 hpux*)
21519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21521 # sets the default TLS model and affects inlining.
21522 case $host_cpu in
21523 hppa*64*)
21526 lt_prog_compiler_pic_CXX='-fPIC'
21528 esac
21530 *qnx* | *nto*)
21531 # QNX uses GNU C++, but need to define -shared option too, otherwise
21532 # it will coredump.
21533 lt_prog_compiler_pic_CXX='-fPIC -shared'
21536 lt_prog_compiler_pic_CXX='-fPIC'
21538 esac
21539 else
21540 case $host_os in
21541 aix[4-9]*)
21542 # All AIX code is PIC.
21543 if test "$host_cpu" = ia64; then
21544 # AIX 5 now supports IA64 processor
21545 lt_prog_compiler_static_CXX='-Bstatic'
21546 else
21547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21550 chorus*)
21551 case $cc_basename in
21552 cxch68*)
21553 # Green Hills C++ Compiler
21554 # _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"
21556 esac
21558 dgux*)
21559 case $cc_basename in
21560 ec++*)
21561 lt_prog_compiler_pic_CXX='-KPIC'
21563 ghcx*)
21564 # Green Hills C++ Compiler
21565 lt_prog_compiler_pic_CXX='-pic'
21569 esac
21571 freebsd* | dragonfly*)
21572 # FreeBSD uses GNU C++
21574 hpux9* | hpux10* | hpux11*)
21575 case $cc_basename in
21576 CC*)
21577 lt_prog_compiler_wl_CXX='-Wl,'
21578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21579 if test "$host_cpu" != ia64; then
21580 lt_prog_compiler_pic_CXX='+Z'
21583 aCC*)
21584 lt_prog_compiler_wl_CXX='-Wl,'
21585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21586 case $host_cpu in
21587 hppa*64*|ia64*)
21588 # +Z the default
21591 lt_prog_compiler_pic_CXX='+Z'
21593 esac
21597 esac
21599 interix*)
21600 # This is c89, which is MS Visual C++ (no shared libs)
21601 # Anyone wants to do a port?
21603 irix5* | irix6* | nonstopux*)
21604 case $cc_basename in
21605 CC*)
21606 lt_prog_compiler_wl_CXX='-Wl,'
21607 lt_prog_compiler_static_CXX='-non_shared'
21608 # CC pic flag -KPIC is the default.
21612 esac
21614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21615 case $cc_basename in
21616 KCC*)
21617 # KAI C++ Compiler
21618 lt_prog_compiler_wl_CXX='--backend -Wl,'
21619 lt_prog_compiler_pic_CXX='-fPIC'
21621 ecpc* )
21622 # old Intel C++ for x86_64 which still supported -KPIC.
21623 lt_prog_compiler_wl_CXX='-Wl,'
21624 lt_prog_compiler_pic_CXX='-KPIC'
21625 lt_prog_compiler_static_CXX='-static'
21627 icpc* )
21628 # Intel C++, used to be incompatible with GCC.
21629 # ICC 10 doesn't accept -KPIC any more.
21630 lt_prog_compiler_wl_CXX='-Wl,'
21631 lt_prog_compiler_pic_CXX='-fPIC'
21632 lt_prog_compiler_static_CXX='-static'
21634 pgCC* | pgcpp*)
21635 # Portland Group C++ compiler
21636 lt_prog_compiler_wl_CXX='-Wl,'
21637 lt_prog_compiler_pic_CXX='-fpic'
21638 lt_prog_compiler_static_CXX='-Bstatic'
21640 cxx*)
21641 # Compaq C++
21642 # Make sure the PIC flag is empty. It appears that all Alpha
21643 # Linux and Compaq Tru64 Unix objects are PIC.
21644 lt_prog_compiler_pic_CXX=
21645 lt_prog_compiler_static_CXX='-non_shared'
21647 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21648 # IBM XL 8.0, 9.0 on PPC and BlueGene
21649 lt_prog_compiler_wl_CXX='-Wl,'
21650 lt_prog_compiler_pic_CXX='-qpic'
21651 lt_prog_compiler_static_CXX='-qstaticlink'
21654 case `$CC -V 2>&1 | sed 5q` in
21655 *Sun\ C*)
21656 # Sun C++ 5.9
21657 lt_prog_compiler_pic_CXX='-KPIC'
21658 lt_prog_compiler_static_CXX='-Bstatic'
21659 lt_prog_compiler_wl_CXX='-Qoption ld '
21661 esac
21663 esac
21665 lynxos*)
21667 m88k*)
21669 mvs*)
21670 case $cc_basename in
21671 cxx*)
21672 lt_prog_compiler_pic_CXX='-W c,exportall'
21676 esac
21678 netbsd*)
21680 *qnx* | *nto*)
21681 # QNX uses GNU C++, but need to define -shared option too, otherwise
21682 # it will coredump.
21683 lt_prog_compiler_pic_CXX='-fPIC -shared'
21685 osf3* | osf4* | osf5*)
21686 case $cc_basename in
21687 KCC*)
21688 lt_prog_compiler_wl_CXX='--backend -Wl,'
21690 RCC*)
21691 # Rational C++ 2.4.1
21692 lt_prog_compiler_pic_CXX='-pic'
21694 cxx*)
21695 # Digital/Compaq C++
21696 lt_prog_compiler_wl_CXX='-Wl,'
21697 # Make sure the PIC flag is empty. It appears that all Alpha
21698 # Linux and Compaq Tru64 Unix objects are PIC.
21699 lt_prog_compiler_pic_CXX=
21700 lt_prog_compiler_static_CXX='-non_shared'
21704 esac
21706 psos*)
21708 solaris*)
21709 case $cc_basename in
21710 CC*)
21711 # Sun C++ 4.2, 5.x and Centerline C++
21712 lt_prog_compiler_pic_CXX='-KPIC'
21713 lt_prog_compiler_static_CXX='-Bstatic'
21714 lt_prog_compiler_wl_CXX='-Qoption ld '
21716 gcx*)
21717 # Green Hills C++ Compiler
21718 lt_prog_compiler_pic_CXX='-PIC'
21722 esac
21724 sunos4*)
21725 case $cc_basename in
21726 CC*)
21727 # Sun C++ 4.x
21728 lt_prog_compiler_pic_CXX='-pic'
21729 lt_prog_compiler_static_CXX='-Bstatic'
21731 lcc*)
21732 # Lucid
21733 lt_prog_compiler_pic_CXX='-pic'
21737 esac
21739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21740 case $cc_basename in
21741 CC*)
21742 lt_prog_compiler_wl_CXX='-Wl,'
21743 lt_prog_compiler_pic_CXX='-KPIC'
21744 lt_prog_compiler_static_CXX='-Bstatic'
21746 esac
21748 tandem*)
21749 case $cc_basename in
21750 NCC*)
21751 # NonStop-UX NCC 3.20
21752 lt_prog_compiler_pic_CXX='-KPIC'
21756 esac
21758 vxworks*)
21761 lt_prog_compiler_can_build_shared_CXX=no
21763 esac
21766 case $host_os in
21767 # For platforms which do not support PIC, -DPIC is meaningless:
21768 *djgpp*)
21769 lt_prog_compiler_pic_CXX=
21772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21774 esac
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21776 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21781 # Check to make sure the PIC flag actually works.
21783 if test -n "$lt_prog_compiler_pic_CXX"; then
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21786 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21787 $as_echo_n "(cached) " >&6
21788 else
21789 lt_cv_prog_compiler_pic_works_CXX=no
21790 ac_outfile=conftest.$ac_objext
21791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21793 # Insert the option either (1) after the last *FLAGS variable, or
21794 # (2) before a word containing "conftest.", or (3) at the end.
21795 # Note that $ac_compile itself does not contain backslashes and begins
21796 # with a dollar sign (not a hyphen), so the echo should work correctly.
21797 # The option is referenced via a variable to avoid confusing sed.
21798 lt_compile=`echo "$ac_compile" | $SED \
21799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21801 -e 's:$: $lt_compiler_flag:'`
21802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21803 (eval "$lt_compile" 2>conftest.err)
21804 ac_status=$?
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 if (exit $ac_status) && test -s "$ac_outfile"; then
21808 # The compiler can only warn and ignore the option if not recognized
21809 # So say no if there are warnings other than the usual output.
21810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21813 lt_cv_prog_compiler_pic_works_CXX=yes
21816 $RM conftest*
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21820 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21823 case $lt_prog_compiler_pic_CXX in
21824 "" | " "*) ;;
21825 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21826 esac
21827 else
21828 lt_prog_compiler_pic_CXX=
21829 lt_prog_compiler_can_build_shared_CXX=no
21837 # Check to make sure the static flag actually works.
21839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21841 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21842 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21845 lt_cv_prog_compiler_static_works_CXX=no
21846 save_LDFLAGS="$LDFLAGS"
21847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21850 # The linker can only warn and ignore the option if not recognized
21851 # So say no if there are warnings
21852 if test -s conftest.err; then
21853 # Append any errors to the config.log.
21854 cat conftest.err 1>&5
21855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21857 if diff conftest.exp conftest.er2 >/dev/null; then
21858 lt_cv_prog_compiler_static_works_CXX=yes
21860 else
21861 lt_cv_prog_compiler_static_works_CXX=yes
21864 $RM -r conftest*
21865 LDFLAGS="$save_LDFLAGS"
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21869 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21873 else
21874 lt_prog_compiler_static_CXX=
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21882 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 lt_cv_prog_compiler_c_o_CXX=no
21886 $RM -r conftest 2>/dev/null
21887 mkdir conftest
21888 cd conftest
21889 mkdir out
21890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21892 lt_compiler_flag="-o out/conftest2.$ac_objext"
21893 # Insert the option either (1) after the last *FLAGS variable, or
21894 # (2) before a word containing "conftest.", or (3) at the end.
21895 # Note that $ac_compile itself does not contain backslashes and begins
21896 # with a dollar sign (not a hyphen), so the echo should work correctly.
21897 lt_compile=`echo "$ac_compile" | $SED \
21898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21900 -e 's:$: $lt_compiler_flag:'`
21901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21902 (eval "$lt_compile" 2>out/conftest.err)
21903 ac_status=$?
21904 cat out/conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21907 then
21908 # The compiler can only warn and ignore the option if not recognized
21909 # So say no if there are warnings
21910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21913 lt_cv_prog_compiler_c_o_CXX=yes
21916 chmod u+w . 2>&5
21917 $RM conftest*
21918 # SGI C++ compiler will create directory out/ii_files/ for
21919 # template instantiation
21920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21921 $RM out/* && rmdir out
21922 cd ..
21923 $RM -r conftest
21924 $RM conftest*
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21928 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21933 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21934 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21935 $as_echo_n "(cached) " >&6
21936 else
21937 lt_cv_prog_compiler_c_o_CXX=no
21938 $RM -r conftest 2>/dev/null
21939 mkdir conftest
21940 cd conftest
21941 mkdir out
21942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21944 lt_compiler_flag="-o out/conftest2.$ac_objext"
21945 # Insert the option either (1) after the last *FLAGS variable, or
21946 # (2) before a word containing "conftest.", or (3) at the end.
21947 # Note that $ac_compile itself does not contain backslashes and begins
21948 # with a dollar sign (not a hyphen), so the echo should work correctly.
21949 lt_compile=`echo "$ac_compile" | $SED \
21950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21952 -e 's:$: $lt_compiler_flag:'`
21953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21954 (eval "$lt_compile" 2>out/conftest.err)
21955 ac_status=$?
21956 cat out/conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21959 then
21960 # The compiler can only warn and ignore the option if not recognized
21961 # So say no if there are warnings
21962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21965 lt_cv_prog_compiler_c_o_CXX=yes
21968 chmod u+w . 2>&5
21969 $RM conftest*
21970 # SGI C++ compiler will create directory out/ii_files/ for
21971 # template instantiation
21972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21973 $RM out/* && rmdir out
21974 cd ..
21975 $RM -r conftest
21976 $RM conftest*
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21980 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21985 hard_links="nottested"
21986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21987 # do not overwrite the value of need_locks provided by the user
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21989 $as_echo_n "checking if we can lock with hard links... " >&6; }
21990 hard_links=yes
21991 $RM conftest*
21992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21993 touch conftest.a
21994 ln conftest.a conftest.b 2>&5 || hard_links=no
21995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21997 $as_echo "$hard_links" >&6; }
21998 if test "$hard_links" = no; then
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22000 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22001 need_locks=warn
22003 else
22004 need_locks=no
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22013 case $host_os in
22014 aix[4-9]*)
22015 # If we're using GNU nm, then we don't want the "-C" option.
22016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22017 # Also, AIX nm treats weak defined symbols like other global defined
22018 # symbols, whereas GNU nm marks them as "W".
22019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22020 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'
22021 else
22022 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'
22025 pw32*)
22026 export_symbols_cmds_CXX="$ltdll_cmds"
22028 cygwin* | mingw* | cegcc*)
22029 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'
22032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22034 esac
22035 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22038 $as_echo "$ld_shlibs_CXX" >&6; }
22039 test "$ld_shlibs_CXX" = no && can_build_shared=no
22041 with_gnu_ld_CXX=$with_gnu_ld
22049 # Do we need to explicitly link libc?
22051 case "x$archive_cmds_need_lc_CXX" in
22052 x|xyes)
22053 # Assume -lc should be added
22054 archive_cmds_need_lc_CXX=yes
22056 if test "$enable_shared" = yes && test "$GCC" = yes; then
22057 case $archive_cmds_CXX in
22058 *'~'*)
22059 # FIXME: we may have to deal with multi-command sequences.
22061 '$CC '*)
22062 # Test whether the compiler implicitly links with -lc since on some
22063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22064 # to ld, don't add -lc before -lgcc.
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22066 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22067 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22068 $as_echo_n "(cached) " >&6
22069 else
22070 $RM conftest*
22071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22074 (eval $ac_compile) 2>&5
22075 ac_status=$?
22076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22077 test $ac_status = 0; } 2>conftest.err; then
22078 soname=conftest
22079 lib=conftest
22080 libobjs=conftest.$ac_objext
22081 deplibs=
22082 wl=$lt_prog_compiler_wl_CXX
22083 pic_flag=$lt_prog_compiler_pic_CXX
22084 compiler_flags=-v
22085 linker_flags=-v
22086 verstring=
22087 output_objdir=.
22088 libname=conftest
22089 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22090 allow_undefined_flag_CXX=
22091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22092 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22093 ac_status=$?
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }
22096 then
22097 lt_cv_archive_cmds_need_lc_CXX=no
22098 else
22099 lt_cv_archive_cmds_need_lc_CXX=yes
22101 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22102 else
22103 cat conftest.err 1>&5
22105 $RM conftest*
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22109 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22110 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22112 esac
22115 esac
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22181 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22183 library_names_spec=
22184 libname_spec='lib$name'
22185 soname_spec=
22186 shrext_cmds=".so"
22187 postinstall_cmds=
22188 postuninstall_cmds=
22189 finish_cmds=
22190 finish_eval=
22191 shlibpath_var=
22192 shlibpath_overrides_runpath=unknown
22193 version_type=none
22194 dynamic_linker="$host_os ld.so"
22195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22196 need_lib_prefix=unknown
22197 hardcode_into_libs=no
22199 # when you set need_version to no, make sure it does not cause -set_version
22200 # flags to be left without arguments
22201 need_version=unknown
22203 case $host_os in
22204 aix3*)
22205 version_type=linux
22206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22207 shlibpath_var=LIBPATH
22209 # AIX 3 has no versioning support, so we append a major version to the name.
22210 soname_spec='${libname}${release}${shared_ext}$major'
22213 aix[4-9]*)
22214 version_type=linux
22215 need_lib_prefix=no
22216 need_version=no
22217 hardcode_into_libs=yes
22218 if test "$host_cpu" = ia64; then
22219 # AIX 5 supports IA64
22220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22221 shlibpath_var=LD_LIBRARY_PATH
22222 else
22223 # With GCC up to 2.95.x, collect2 would create an import file
22224 # for dependence libraries. The import file would start with
22225 # the line `#! .'. This would cause the generated library to
22226 # depend on `.', always an invalid library. This was fixed in
22227 # development snapshots of GCC prior to 3.0.
22228 case $host_os in
22229 aix4 | aix4.[01] | aix4.[01].*)
22230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22231 echo ' yes '
22232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22234 else
22235 can_build_shared=no
22238 esac
22239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22240 # soname into executable. Probably we can add versioning support to
22241 # collect2, so additional links can be useful in future.
22242 if test "$aix_use_runtimelinking" = yes; then
22243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22244 # instead of lib<name>.a to let people know that these are not
22245 # typical AIX shared libraries.
22246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22247 else
22248 # We preserve .a as extension for shared libraries through AIX4.2
22249 # and later when we are not doing run time linking.
22250 library_names_spec='${libname}${release}.a $libname.a'
22251 soname_spec='${libname}${release}${shared_ext}$major'
22253 shlibpath_var=LIBPATH
22257 amigaos*)
22258 case $host_cpu in
22259 powerpc)
22260 # Since July 2007 AmigaOS4 officially supports .so libraries.
22261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22264 m68k)
22265 library_names_spec='$libname.ixlibrary $libname.a'
22266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22267 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'
22269 esac
22272 beos*)
22273 library_names_spec='${libname}${shared_ext}'
22274 dynamic_linker="$host_os ld.so"
22275 shlibpath_var=LIBRARY_PATH
22278 bsdi[45]*)
22279 version_type=linux
22280 need_version=no
22281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22282 soname_spec='${libname}${release}${shared_ext}$major'
22283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22284 shlibpath_var=LD_LIBRARY_PATH
22285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22287 # the default ld.so.conf also contains /usr/contrib/lib and
22288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22289 # libtool to hard-code these into programs
22292 cygwin* | mingw* | pw32* | cegcc*)
22293 version_type=windows
22294 shrext_cmds=".dll"
22295 need_version=no
22296 need_lib_prefix=no
22298 case $GCC,$host_os in
22299 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22300 library_names_spec='$libname.dll.a'
22301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22302 postinstall_cmds='base_file=`basename \${file}`~
22303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22304 dldir=$destdir/`dirname \$dlpath`~
22305 test -d \$dldir || mkdir -p \$dldir~
22306 $install_prog $dir/$dlname \$dldir/$dlname~
22307 chmod a+x \$dldir/$dlname~
22308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22312 dlpath=$dir/\$dldll~
22313 $RM \$dlpath'
22314 shlibpath_overrides_runpath=yes
22316 case $host_os in
22317 cygwin*)
22318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22322 mingw* | cegcc*)
22323 # MinGW DLLs use traditional 'lib' prefix
22324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22326 pw32*)
22327 # pw32 DLLs use 'pw' prefix rather than 'lib'
22328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22330 esac
22334 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22336 esac
22337 dynamic_linker='Win32 ld.exe'
22338 # FIXME: first we should search . and the directory the executable is in
22339 shlibpath_var=PATH
22342 darwin* | rhapsody*)
22343 dynamic_linker="$host_os dyld"
22344 version_type=darwin
22345 need_lib_prefix=no
22346 need_version=no
22347 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22348 soname_spec='${libname}${release}${major}$shared_ext'
22349 shlibpath_overrides_runpath=yes
22350 shlibpath_var=DYLD_LIBRARY_PATH
22351 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22356 dgux*)
22357 version_type=linux
22358 need_lib_prefix=no
22359 need_version=no
22360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22361 soname_spec='${libname}${release}${shared_ext}$major'
22362 shlibpath_var=LD_LIBRARY_PATH
22365 freebsd* | dragonfly*)
22366 # DragonFly does not have aout. When/if they implement a new
22367 # versioning mechanism, adjust this.
22368 if test -x /usr/bin/objformat; then
22369 objformat=`/usr/bin/objformat`
22370 else
22371 case $host_os in
22372 freebsd[23].*) objformat=aout ;;
22373 *) objformat=elf ;;
22374 esac
22376 version_type=freebsd-$objformat
22377 case $version_type in
22378 freebsd-elf*)
22379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22380 need_version=no
22381 need_lib_prefix=no
22383 freebsd-*)
22384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22385 need_version=yes
22387 esac
22388 shlibpath_var=LD_LIBRARY_PATH
22389 case $host_os in
22390 freebsd2.*)
22391 shlibpath_overrides_runpath=yes
22393 freebsd3.[01]* | freebsdelf3.[01]*)
22394 shlibpath_overrides_runpath=yes
22395 hardcode_into_libs=yes
22397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22399 shlibpath_overrides_runpath=no
22400 hardcode_into_libs=yes
22402 *) # from 4.6 on, and DragonFly
22403 shlibpath_overrides_runpath=yes
22404 hardcode_into_libs=yes
22406 esac
22409 haiku*)
22410 version_type=linux
22411 need_lib_prefix=no
22412 need_version=no
22413 dynamic_linker="$host_os runtime_loader"
22414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22415 soname_spec='${libname}${release}${shared_ext}$major'
22416 shlibpath_var=LIBRARY_PATH
22417 shlibpath_overrides_runpath=yes
22418 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22419 hardcode_into_libs=yes
22422 hpux9* | hpux10* | hpux11*)
22423 # Give a soname corresponding to the major version so that dld.sl refuses to
22424 # link against other versions.
22425 version_type=sunos
22426 need_lib_prefix=no
22427 need_version=no
22428 case $host_cpu in
22429 ia64*)
22430 shrext_cmds='.so'
22431 hardcode_into_libs=yes
22432 dynamic_linker="$host_os dld.so"
22433 shlibpath_var=LD_LIBRARY_PATH
22434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22436 soname_spec='${libname}${release}${shared_ext}$major'
22437 if test "X$HPUX_IA64_MODE" = X32; then
22438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22439 else
22440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22444 hppa*64*)
22445 shrext_cmds='.sl'
22446 hardcode_into_libs=yes
22447 dynamic_linker="$host_os dld.sl"
22448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22451 soname_spec='${libname}${release}${shared_ext}$major'
22452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22456 shrext_cmds='.sl'
22457 dynamic_linker="$host_os dld.sl"
22458 shlibpath_var=SHLIB_PATH
22459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22461 soname_spec='${libname}${release}${shared_ext}$major'
22463 esac
22464 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22465 postinstall_cmds='chmod 555 $lib'
22466 # or fails outright, so override atomically:
22467 install_override_mode=555
22470 interix[3-9]*)
22471 version_type=linux
22472 need_lib_prefix=no
22473 need_version=no
22474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22475 soname_spec='${libname}${release}${shared_ext}$major'
22476 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22477 shlibpath_var=LD_LIBRARY_PATH
22478 shlibpath_overrides_runpath=no
22479 hardcode_into_libs=yes
22482 irix5* | irix6* | nonstopux*)
22483 case $host_os in
22484 nonstopux*) version_type=nonstopux ;;
22486 if test "$lt_cv_prog_gnu_ld" = yes; then
22487 version_type=linux
22488 else
22489 version_type=irix
22490 fi ;;
22491 esac
22492 need_lib_prefix=no
22493 need_version=no
22494 soname_spec='${libname}${release}${shared_ext}$major'
22495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22496 case $host_os in
22497 irix5* | nonstopux*)
22498 libsuff= shlibsuff=
22501 case $LD in # libtool.m4 will add one of these switches to LD
22502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22503 libsuff= shlibsuff= libmagic=32-bit;;
22504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22505 libsuff=32 shlibsuff=N32 libmagic=N32;;
22506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22507 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22508 *) libsuff= shlibsuff= libmagic=never-match;;
22509 esac
22511 esac
22512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22513 shlibpath_overrides_runpath=no
22514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22516 hardcode_into_libs=yes
22519 # No shared lib support for Linux oldld, aout, or coff.
22520 linux*oldld* | linux*aout* | linux*coff*)
22521 dynamic_linker=no
22524 # This must be Linux ELF.
22526 # uclinux* changes (here and below) have been submitted to the libtool
22527 # project, but have not yet been accepted: they are GCC-local changes
22528 # for the time being. (See
22529 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22530 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22531 version_type=linux
22532 need_lib_prefix=no
22533 need_version=no
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535 soname_spec='${libname}${release}${shared_ext}$major'
22536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22537 shlibpath_var=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath=no
22540 # Some binutils ld are patched to set DT_RUNPATH
22541 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 lt_cv_shlibpath_overrides_runpath=no
22545 save_LDFLAGS=$LDFLAGS
22546 save_libdir=$libdir
22547 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22548 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550 /* end confdefs.h. */
22553 main ()
22557 return 0;
22559 _ACEOF
22560 if ac_fn_cxx_try_link "$LINENO"; then :
22561 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22562 lt_cv_shlibpath_overrides_runpath=yes
22565 rm -f core conftest.err conftest.$ac_objext \
22566 conftest$ac_exeext conftest.$ac_ext
22567 LDFLAGS=$save_LDFLAGS
22568 libdir=$save_libdir
22572 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22574 # This implies no fast_install, which is unacceptable.
22575 # Some rework will be needed to allow for fast_install
22576 # before this can be enabled.
22577 hardcode_into_libs=yes
22579 # Append ld.so.conf contents to the search path
22580 if test -f /etc/ld.so.conf; then
22581 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' ' '`
22582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22585 # We used to test for /lib/ld.so.1 and disable shared libraries on
22586 # powerpc, because MkLinux only supported shared libraries with the
22587 # GNU dynamic linker. Since this was broken with cross compilers,
22588 # most powerpc-linux boxes support dynamic linking these days and
22589 # people can always --disable-shared, the test was removed, and we
22590 # assume the GNU/Linux dynamic linker is in use.
22591 dynamic_linker='GNU/Linux ld.so'
22594 netbsd*)
22595 version_type=sunos
22596 need_lib_prefix=no
22597 need_version=no
22598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22601 dynamic_linker='NetBSD (a.out) ld.so'
22602 else
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22604 soname_spec='${libname}${release}${shared_ext}$major'
22605 dynamic_linker='NetBSD ld.elf_so'
22607 shlibpath_var=LD_LIBRARY_PATH
22608 shlibpath_overrides_runpath=yes
22609 hardcode_into_libs=yes
22612 newsos6)
22613 version_type=linux
22614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22615 shlibpath_var=LD_LIBRARY_PATH
22616 shlibpath_overrides_runpath=yes
22619 *nto* | *qnx*)
22620 version_type=qnx
22621 need_lib_prefix=no
22622 need_version=no
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624 soname_spec='${libname}${release}${shared_ext}$major'
22625 shlibpath_var=LD_LIBRARY_PATH
22626 shlibpath_overrides_runpath=no
22627 hardcode_into_libs=yes
22628 dynamic_linker='ldqnx.so'
22631 openbsd*)
22632 version_type=sunos
22633 sys_lib_dlsearch_path_spec="/usr/lib"
22634 need_lib_prefix=no
22635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22636 case $host_os in
22637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22638 *) need_version=no ;;
22639 esac
22640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22644 case $host_os in
22645 openbsd2.[89] | openbsd2.[89].*)
22646 shlibpath_overrides_runpath=no
22649 shlibpath_overrides_runpath=yes
22651 esac
22652 else
22653 shlibpath_overrides_runpath=yes
22657 os2*)
22658 libname_spec='$name'
22659 shrext_cmds=".dll"
22660 need_lib_prefix=no
22661 library_names_spec='$libname${shared_ext} $libname.a'
22662 dynamic_linker='OS/2 ld.exe'
22663 shlibpath_var=LIBPATH
22666 osf3* | osf4* | osf5*)
22667 version_type=osf
22668 need_lib_prefix=no
22669 need_version=no
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22677 rdos*)
22678 dynamic_linker=no
22681 solaris*)
22682 version_type=linux
22683 need_lib_prefix=no
22684 need_version=no
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 shlibpath_var=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath=yes
22689 hardcode_into_libs=yes
22690 # ldd complains unless libraries are executable
22691 postinstall_cmds='chmod +x $lib'
22694 sunos4*)
22695 version_type=sunos
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22697 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 shlibpath_overrides_runpath=yes
22700 if test "$with_gnu_ld" = yes; then
22701 need_lib_prefix=no
22703 need_version=yes
22706 sysv4 | sysv4.3*)
22707 version_type=linux
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709 soname_spec='${libname}${release}${shared_ext}$major'
22710 shlibpath_var=LD_LIBRARY_PATH
22711 case $host_vendor in
22712 sni)
22713 shlibpath_overrides_runpath=no
22714 need_lib_prefix=no
22715 runpath_var=LD_RUN_PATH
22717 siemens)
22718 need_lib_prefix=no
22720 motorola)
22721 need_lib_prefix=no
22722 need_version=no
22723 shlibpath_overrides_runpath=no
22724 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22726 esac
22729 sysv4*MP*)
22730 if test -d /usr/nec ;then
22731 version_type=linux
22732 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22733 soname_spec='$libname${shared_ext}.$major'
22734 shlibpath_var=LD_LIBRARY_PATH
22738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22739 version_type=freebsd-elf
22740 need_lib_prefix=no
22741 need_version=no
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22744 shlibpath_var=LD_LIBRARY_PATH
22745 shlibpath_overrides_runpath=yes
22746 hardcode_into_libs=yes
22747 if test "$with_gnu_ld" = yes; then
22748 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22749 else
22750 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22751 case $host_os in
22752 sco3.2v5*)
22753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22755 esac
22757 sys_lib_dlsearch_path_spec='/usr/lib'
22760 tpf*)
22761 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22762 version_type=linux
22763 need_lib_prefix=no
22764 need_version=no
22765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22766 shlibpath_var=LD_LIBRARY_PATH
22767 shlibpath_overrides_runpath=no
22768 hardcode_into_libs=yes
22771 uts4*)
22772 version_type=linux
22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774 soname_spec='${libname}${release}${shared_ext}$major'
22775 shlibpath_var=LD_LIBRARY_PATH
22779 dynamic_linker=no
22781 esac
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22783 $as_echo "$dynamic_linker" >&6; }
22784 test "$dynamic_linker" = no && can_build_shared=no
22786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22787 if test "$GCC" = yes; then
22788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22791 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22792 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22794 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22795 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22836 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22837 hardcode_action_CXX=
22838 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22839 test -n "$runpath_var_CXX" ||
22840 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22842 # We can hardcode non-existent directories.
22843 if test "$hardcode_direct_CXX" != no &&
22844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22845 # have to relink, otherwise we might link with an installed library
22846 # when we should be linking with a yet-to-be-installed one
22847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22848 test "$hardcode_minus_L_CXX" != no; then
22849 # Linking always hardcodes the temporary library directory.
22850 hardcode_action_CXX=relink
22851 else
22852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22853 hardcode_action_CXX=immediate
22855 else
22856 # We cannot hardcode anything, or else we can only hardcode existing
22857 # directories.
22858 hardcode_action_CXX=unsupported
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22861 $as_echo "$hardcode_action_CXX" >&6; }
22863 if test "$hardcode_action_CXX" = relink ||
22864 test "$inherit_rpath_CXX" = yes; then
22865 # Fast installation is not supported
22866 enable_fast_install=no
22867 elif test "$shlibpath_overrides_runpath" = yes ||
22868 test "$enable_shared" = no; then
22869 # Fast installation is not necessary
22870 enable_fast_install=needless
22879 fi # test -n "$compiler"
22881 CC=$lt_save_CC
22882 LDCXX=$LD
22883 LD=$lt_save_LD
22884 GCC=$lt_save_GCC
22885 with_gnu_ld=$lt_save_with_gnu_ld
22886 lt_cv_path_LDCXX=$lt_cv_path_LD
22887 lt_cv_path_LD=$lt_save_path_LD
22888 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22889 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22890 fi # test "$_lt_caught_CXX_error" != yes
22892 ac_ext=cpp
22893 ac_cpp='$CXXCPP $CPPFLAGS'
22894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22913 # Only expand once:
22919 # Identify the assembler which will work hand-in-glove with the newly
22920 # built GCC, so that we can examine its features. This is the assembler
22921 # which will be driven by the driver program.
22923 # If build != host, and we aren't building gas in-tree, we identify a
22924 # build->target assembler and hope that it will have the same features
22925 # as the host->target assembler we'll be using.
22926 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22928 if ${gcc_cv_as+:} false; then :
22930 else
22932 if test -x "$DEFAULT_ASSEMBLER"; then
22933 gcc_cv_as="$DEFAULT_ASSEMBLER"
22934 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22935 && test -f ../gas/Makefile \
22936 && test x$build = x$host; then
22937 gcc_cv_as=../gas/as-new$build_exeext
22938 elif test -x as$build_exeext; then
22939 # Build using assembler in the current directory.
22940 gcc_cv_as=./as$build_exeext
22941 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22942 gcc_cv_as="$AS_FOR_TARGET"
22943 else
22944 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22945 set dummy $AS_FOR_TARGET; ac_word=$2
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if ${ac_cv_path_gcc_cv_as+:} false; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 case $gcc_cv_as in
22952 [\\/]* | ?:[\\/]*)
22953 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22957 for as_dir in $PATH
22959 IFS=$as_save_IFS
22960 test -z "$as_dir" && as_dir=.
22961 for ac_exec_ext in '' $ac_executable_extensions; do
22962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22963 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22965 break 2
22967 done
22968 done
22969 IFS=$as_save_IFS
22972 esac
22974 gcc_cv_as=$ac_cv_path_gcc_cv_as
22975 if test -n "$gcc_cv_as"; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22977 $as_echo "$gcc_cv_as" >&6; }
22978 else
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980 $as_echo "no" >&6; }
22987 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22989 case "$ORIGINAL_AS_FOR_TARGET" in
22990 ./as | ./as$build_exeext) ;;
22991 *) ac_config_files="$ac_config_files as:exec-tool.in"
22993 esac
22995 default_ld=
22996 # Check whether --enable-ld was given.
22997 if test "${enable_ld+set}" = set; then :
22998 enableval=$enable_ld; case "${enableval}" in
23000 default_ld=ld.gold
23002 esac
23006 install_gold_as_default=no
23007 # Check whether --enable-gold was given.
23008 if test "${enable_gold+set}" = set; then :
23009 enableval=$enable_gold; case "${enableval}" in
23010 default)
23011 install_gold_as_default=yes
23013 yes)
23014 if test x${default_ld} != x; then
23015 install_gold_as_default=yes
23021 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23023 esac
23027 # Identify the linker which will work hand-in-glove with the newly
23028 # built GCC, so that we can examine its features. This is the linker
23029 # which will be driven by the driver program.
23031 # If build != host, and we aren't building gas in-tree, we identify a
23032 # build->target linker and hope that it will have the same features
23033 # as the host->target linker we'll be using.
23034 gcc_cv_gld_major_version=
23035 gcc_cv_gld_minor_version=
23036 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23037 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23038 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23040 if ${gcc_cv_ld+:} false; then :
23042 else
23044 if test -x "$DEFAULT_LINKER"; then
23045 gcc_cv_ld="$DEFAULT_LINKER"
23046 elif test $install_gold_as_default = yes \
23047 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23048 && test -f ../gold/Makefile \
23049 && test x$build = x$host; then
23050 gcc_cv_ld=../gold/ld-new$build_exeext
23051 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23052 && test -f ../ld/Makefile \
23053 && test x$build = x$host; then
23054 gcc_cv_ld=../ld/ld-new$build_exeext
23055 elif test -x collect-ld$build_exeext; then
23056 # Build using linker in the current directory.
23057 gcc_cv_ld=./collect-ld$build_exeext
23058 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23059 gcc_cv_ld="$LD_FOR_TARGET"
23060 else
23061 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23062 set dummy $LD_FOR_TARGET; ac_word=$2
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23064 $as_echo_n "checking for $ac_word... " >&6; }
23065 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23066 $as_echo_n "(cached) " >&6
23067 else
23068 case $gcc_cv_ld in
23069 [\\/]* | ?:[\\/]*)
23070 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23074 for as_dir in $PATH
23076 IFS=$as_save_IFS
23077 test -z "$as_dir" && as_dir=.
23078 for ac_exec_ext in '' $ac_executable_extensions; do
23079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23080 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23082 break 2
23084 done
23085 done
23086 IFS=$as_save_IFS
23089 esac
23091 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23092 if test -n "$gcc_cv_ld"; then
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23094 $as_echo "$gcc_cv_ld" >&6; }
23095 else
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23097 $as_echo "no" >&6; }
23104 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23105 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23106 # if the PLUGIN_LD is set ld-new, just have it as ld
23107 # as that is the installed named.
23108 if test x$PLUGIN_LD_SUFFIX = xld-new \
23109 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23110 PLUGIN_LD_SUFFIX=ld
23113 # Check whether --with-plugin-ld was given.
23114 if test "${with_plugin_ld+set}" = set; then :
23115 withval=$with_plugin_ld; if test x"$withval" != x; then
23116 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23117 PLUGIN_LD_SUFFIX="$withval"
23123 cat >>confdefs.h <<_ACEOF
23124 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23125 _ACEOF
23128 # Check to see if we are using gold instead of ld
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23130 $as_echo_n "checking whether we are using gold... " >&6; }
23131 ld_is_gold=no
23132 if test x$gcc_cv_ld != x; then
23133 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23134 | grep "GNU gold" > /dev/null; then
23135 ld_is_gold=yes
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23139 $as_echo "$ld_is_gold" >&6; }
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23142 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23143 # Check to see if default ld is not gold, but gold is
23144 # available and has support for split stack. If gcc was configured
23145 # with gold then no checking is done.
23147 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23149 # For platforms other than powerpc64*, enable as appropriate.
23151 gold_non_default=no
23152 ld_gold=`which ${gcc_cv_ld}.gold`
23153 # Make sure this gold has minimal split stack support
23154 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23155 ld_vers=`$ld_gold --version | sed 1q`
23156 gold_vers=`echo $ld_vers | sed -n \
23157 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23158 case $target in
23159 # check that the gold version contains the complete split stack support
23160 # on powerpc64 big and little endian
23161 powerpc64*-*-*)
23162 case "$gold_vers" in
23163 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23165 *) gold_non_default=no
23167 esac
23169 esac
23171 if test $gold_non_default = yes; then
23173 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23178 $as_echo "$gold_non_default" >&6; }
23180 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23182 case "$ORIGINAL_LD_FOR_TARGET" in
23183 ./collect-ld | ./collect-ld$build_exeext) ;;
23184 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23186 esac
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23189 $as_echo_n "checking what linker to use... " >&6; }
23190 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23191 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23192 # Single tree build which includes ld. We want to prefer it
23193 # over whatever linker top-level may have detected, since
23194 # we'll use what we're building after installation anyway.
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23196 $as_echo "newly built ld" >&6; }
23197 in_tree_ld=yes
23198 in_tree_ld_is_elf=no
23199 if (grep 'EMUL = .*elf' ../ld/Makefile \
23200 || grep 'EMUL = .*linux' ../ld/Makefile \
23201 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23202 in_tree_ld_is_elf=yes
23203 elif test "$ld_is_gold" = yes; then
23204 in_tree_ld_is_elf=yes
23206 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
23208 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23209 if test x$gcc_cv_gld_version != x; then
23210 break
23212 done
23213 case $gcc_cv_gld_version in
23214 VERSION=[0-9]*) ;;
23215 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23216 esac
23217 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23218 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23219 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23220 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23221 else
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23223 $as_echo "$gcc_cv_ld" >&6; }
23224 in_tree_ld=no
23225 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23226 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23227 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23233 # Figure out what nm we will be using.
23234 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23235 if ${gcc_cv_nm+:} false; then :
23237 else
23239 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23240 && test -f ../binutils/Makefile \
23241 && test x$build = x$host; then
23242 gcc_cv_nm=../binutils/nm-new$build_exeext
23243 elif test -x nm$build_exeext; then
23244 gcc_cv_nm=./nm$build_exeext
23245 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23246 gcc_cv_nm="$NM_FOR_TARGET"
23247 else
23248 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23249 set dummy $NM_FOR_TARGET; ac_word=$2
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23251 $as_echo_n "checking for $ac_word... " >&6; }
23252 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23253 $as_echo_n "(cached) " >&6
23254 else
23255 case $gcc_cv_nm in
23256 [\\/]* | ?:[\\/]*)
23257 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23261 for as_dir in $PATH
23263 IFS=$as_save_IFS
23264 test -z "$as_dir" && as_dir=.
23265 for ac_exec_ext in '' $ac_executable_extensions; do
23266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23267 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23269 break 2
23271 done
23272 done
23273 IFS=$as_save_IFS
23276 esac
23278 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23279 if test -n "$gcc_cv_nm"; then
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23281 $as_echo "$gcc_cv_nm" >&6; }
23282 else
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23284 $as_echo "no" >&6; }
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23292 $as_echo_n "checking what nm to use... " >&6; }
23293 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23294 # Single tree build which includes binutils.
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23296 $as_echo "newly built nm" >&6; }
23297 in_tree_nm=yes
23298 else
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23300 $as_echo "$gcc_cv_nm" >&6; }
23301 in_tree_nm=no
23304 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23306 case "$ORIGINAL_NM_FOR_TARGET" in
23307 ./nm | ./nm$build_exeext) ;;
23308 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23310 esac
23313 # Figure out what objdump we will be using.
23314 if ${gcc_cv_objdump+:} false; then :
23316 else
23318 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23319 && test -f ../binutils/Makefile \
23320 && test x$build = x$host; then
23321 # Single tree build which includes binutils.
23322 gcc_cv_objdump=../binutils/objdump$build_exeext
23323 elif test -x objdump$build_exeext; then
23324 gcc_cv_objdump=./objdump$build_exeext
23325 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23326 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23327 else
23328 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23329 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23331 $as_echo_n "checking for $ac_word... " >&6; }
23332 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23333 $as_echo_n "(cached) " >&6
23334 else
23335 case $gcc_cv_objdump in
23336 [\\/]* | ?:[\\/]*)
23337 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23341 for as_dir in $PATH
23343 IFS=$as_save_IFS
23344 test -z "$as_dir" && as_dir=.
23345 for ac_exec_ext in '' $ac_executable_extensions; do
23346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23347 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23349 break 2
23351 done
23352 done
23353 IFS=$as_save_IFS
23356 esac
23358 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23359 if test -n "$gcc_cv_objdump"; then
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23361 $as_echo "$gcc_cv_objdump" >&6; }
23362 else
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23372 $as_echo_n "checking what objdump to use... " >&6; }
23373 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23374 # Single tree build which includes binutils.
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23376 $as_echo "newly built objdump" >&6; }
23377 elif test x$gcc_cv_objdump = x; then
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23379 $as_echo "not found" >&6; }
23380 else
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23382 $as_echo "$gcc_cv_objdump" >&6; }
23385 # Figure out what readelf we will be using.
23386 if ${gcc_cv_readelf+:} false; then :
23388 else
23390 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23391 && test -f ../binutils/Makefile \
23392 && test x$build = x$host; then
23393 # Single tree build which includes binutils.
23394 gcc_cv_readelf=../binutils/readelf$build_exeext
23395 elif test -x readelf$build_exeext; then
23396 gcc_cv_readelf=./readelf$build_exeext
23397 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23398 gcc_cv_readelf="$READELF_FOR_TARGET"
23399 else
23400 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23401 set dummy $READELF_FOR_TARGET; ac_word=$2
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23403 $as_echo_n "checking for $ac_word... " >&6; }
23404 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23405 $as_echo_n "(cached) " >&6
23406 else
23407 case $gcc_cv_readelf in
23408 [\\/]* | ?:[\\/]*)
23409 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23413 for as_dir in $PATH
23415 IFS=$as_save_IFS
23416 test -z "$as_dir" && as_dir=.
23417 for ac_exec_ext in '' $ac_executable_extensions; do
23418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23419 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23421 break 2
23423 done
23424 done
23425 IFS=$as_save_IFS
23428 esac
23430 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23431 if test -n "$gcc_cv_readelf"; then
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23433 $as_echo "$gcc_cv_readelf" >&6; }
23434 else
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436 $as_echo "no" >&6; }
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23444 $as_echo_n "checking what readelf to use... " >&6; }
23445 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23446 # Single tree build which includes binutils.
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23448 $as_echo "newly built readelf" >&6; }
23449 elif test x$gcc_cv_readelf = x; then
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23451 $as_echo "not found" >&6; }
23452 else
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23454 $as_echo "$gcc_cv_readelf" >&6; }
23457 # Figure out what otool we will be using.
23458 if ${gcc_cv_otool+:} false; then :
23460 else
23462 if test -x otool$build_exeext; then
23463 gcc_cv_otool=./otool$build_exeext
23464 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23465 gcc_cv_otool="$OTOOL_FOR_TARGET"
23466 else
23467 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23468 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23470 $as_echo_n "checking for $ac_word... " >&6; }
23471 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23472 $as_echo_n "(cached) " >&6
23473 else
23474 case $gcc_cv_otool in
23475 [\\/]* | ?:[\\/]*)
23476 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23480 for as_dir in $PATH
23482 IFS=$as_save_IFS
23483 test -z "$as_dir" && as_dir=.
23484 for ac_exec_ext in '' $ac_executable_extensions; do
23485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23486 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23488 break 2
23490 done
23491 done
23492 IFS=$as_save_IFS
23495 esac
23497 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23498 if test -n "$gcc_cv_otool"; then
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23500 $as_echo "$gcc_cv_otool" >&6; }
23501 else
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23503 $as_echo "no" >&6; }
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23511 $as_echo_n "checking what otool to use... " >&6; }
23512 if test x$gcc_cv_otool = x; then
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23514 $as_echo "not found" >&6; }
23515 else
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23517 $as_echo "$gcc_cv_otool" >&6; }
23520 # Figure out the dsymutil we will use.
23521 if ${gcc_cv_dsymutil+:} false; then :
23523 else
23525 if test -x "$DEFAULT_DSYMUTIL"; then
23526 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23527 elif test -x dsymutil$build_exeext; then
23528 gcc_cv_dsymutil=./dsymutil$build_exeext
23529 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23530 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23531 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23532 gcc_cv_dsymutil=$DSYMUTIL
23533 else
23534 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23535 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23537 $as_echo_n "checking for $ac_word... " >&6; }
23538 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23539 $as_echo_n "(cached) " >&6
23540 else
23541 case $gcc_cv_dsymutil in
23542 [\\/]* | ?:[\\/]*)
23543 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23547 for as_dir in $PATH
23549 IFS=$as_save_IFS
23550 test -z "$as_dir" && as_dir=.
23551 for ac_exec_ext in '' $ac_executable_extensions; do
23552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23553 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23555 break 2
23557 done
23558 done
23559 IFS=$as_save_IFS
23562 esac
23564 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23565 if test -n "$gcc_cv_dsymutil"; then
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23567 $as_echo "$gcc_cv_dsymutil" >&6; }
23568 else
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570 $as_echo "no" >&6; }
23577 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23579 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23580 ./dsymutil | ./dsymutil$build_exeext) ;;
23581 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23583 esac
23585 # Figure out what assembler alignment features are present.
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23587 $as_echo_n "checking assembler flags... " >&6; }
23588 if ${gcc_cv_as_flags+:} false; then :
23589 $as_echo_n "(cached) " >&6
23590 else
23591 case "$target" in
23592 i[34567]86-*-linux*)
23593 gcc_cv_as_flags=--32
23595 x86_64-*-linux-gnux32)
23596 gcc_cv_as_flags=--x32
23598 x86_64-*-linux*)
23599 gcc_cv_as_flags=--64
23601 powerpc*-*-darwin*)
23602 gcc_cv_as_flags="-arch ppc"
23605 gcc_cv_as_flags=" "
23607 esac
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23610 $as_echo "$gcc_cv_as_flags" >&6; }
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23613 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23614 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 gcc_cv_as_balign_and_p2align=no
23618 if test x$gcc_cv_as != x; then
23619 $as_echo '.balign 4
23620 .p2align 2' > conftest.s
23621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }
23627 then
23628 gcc_cv_as_balign_and_p2align=yes
23629 else
23630 echo "configure: failed program was" >&5
23631 cat conftest.s >&5
23633 rm -f conftest.o conftest.s
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23637 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23638 if test $gcc_cv_as_balign_and_p2align = yes; then
23640 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23646 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23647 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23648 $as_echo_n "(cached) " >&6
23649 else
23650 gcc_cv_as_max_skip_p2align=no
23651 if test x$gcc_cv_as != x; then
23652 $as_echo '.p2align 4,,7' > conftest.s
23653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }; }
23659 then
23660 gcc_cv_as_max_skip_p2align=yes
23661 else
23662 echo "configure: failed program was" >&5
23663 cat conftest.s >&5
23665 rm -f conftest.o conftest.s
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23669 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23670 if test $gcc_cv_as_max_skip_p2align = yes; then
23672 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23678 $as_echo_n "checking assembler for .literal16... " >&6; }
23679 if ${gcc_cv_as_literal16+:} false; then :
23680 $as_echo_n "(cached) " >&6
23681 else
23682 gcc_cv_as_literal16=no
23683 if test x$gcc_cv_as != x; then
23684 $as_echo '.literal16' > conftest.s
23685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23690 test $ac_status = 0; }; }
23691 then
23692 gcc_cv_as_literal16=yes
23693 else
23694 echo "configure: failed program was" >&5
23695 cat conftest.s >&5
23697 rm -f conftest.o conftest.s
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23701 $as_echo "$gcc_cv_as_literal16" >&6; }
23702 if test $gcc_cv_as_literal16 = yes; then
23704 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23710 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23711 if ${gcc_cv_as_subsection_m1+:} false; then :
23712 $as_echo_n "(cached) " >&6
23713 else
23714 gcc_cv_as_subsection_m1=no
23715 if test x$gcc_cv_as != x; then
23716 $as_echo 'conftest_label1: .word 0
23717 .subsection -1
23718 conftest_label2: .word 0
23719 .previous' > conftest.s
23720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23726 then
23727 if test x$gcc_cv_nm != x; then
23728 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23729 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23730 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23731 then :
23732 else gcc_cv_as_subsection_m1=yes
23734 rm -f conftest.nm1 conftest.nm2
23736 else
23737 echo "configure: failed program was" >&5
23738 cat conftest.s >&5
23740 rm -f conftest.o conftest.s
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23744 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23745 if test $gcc_cv_as_subsection_m1 = yes; then
23747 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23753 $as_echo_n "checking assembler for .weak... " >&6; }
23754 if ${gcc_cv_as_weak+:} false; then :
23755 $as_echo_n "(cached) " >&6
23756 else
23757 gcc_cv_as_weak=no
23758 if test x$gcc_cv_as != x; then
23759 $as_echo ' .weak foobar' > conftest.s
23760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23765 test $ac_status = 0; }; }
23766 then
23767 gcc_cv_as_weak=yes
23768 else
23769 echo "configure: failed program was" >&5
23770 cat conftest.s >&5
23772 rm -f conftest.o conftest.s
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23776 $as_echo "$gcc_cv_as_weak" >&6; }
23777 if test $gcc_cv_as_weak = yes; then
23779 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23785 $as_echo_n "checking assembler for .weakref... " >&6; }
23786 if ${gcc_cv_as_weakref+:} false; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 gcc_cv_as_weakref=no
23790 if test x$gcc_cv_as != x; then
23791 $as_echo ' .weakref foobar, barfnot' > conftest.s
23792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794 (eval $ac_try) 2>&5
23795 ac_status=$?
23796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797 test $ac_status = 0; }; }
23798 then
23799 gcc_cv_as_weakref=yes
23800 else
23801 echo "configure: failed program was" >&5
23802 cat conftest.s >&5
23804 rm -f conftest.o conftest.s
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23808 $as_echo "$gcc_cv_as_weakref" >&6; }
23809 if test $gcc_cv_as_weakref = yes; then
23811 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23817 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23818 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23819 $as_echo_n "(cached) " >&6
23820 else
23821 gcc_cv_as_nsubspa_comdat=no
23822 if test x$gcc_cv_as != x; then
23823 $as_echo ' .SPACE $TEXT$
23824 .NSUBSPA $CODE$,COMDAT' > conftest.s
23825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23830 test $ac_status = 0; }; }
23831 then
23832 gcc_cv_as_nsubspa_comdat=yes
23833 else
23834 echo "configure: failed program was" >&5
23835 cat conftest.s >&5
23837 rm -f conftest.o conftest.s
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23841 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23842 if test $gcc_cv_as_nsubspa_comdat = yes; then
23844 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23849 # .hidden needs to be supported in both the assembler and the linker,
23850 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23851 # This is irritatingly difficult to feature test for; we have to check the
23852 # date string after the version number. If we've got an in-tree
23853 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23854 # to be safe.
23855 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23856 case "${target}" in
23857 *-*-aix*)
23858 conftest_s=' .globl foobar,hidden'
23861 conftest_s=' .hidden foobar
23862 foobar:'
23864 esac
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23866 $as_echo_n "checking assembler for .hidden... " >&6; }
23867 if ${gcc_cv_as_hidden+:} false; then :
23868 $as_echo_n "(cached) " >&6
23869 else
23870 gcc_cv_as_hidden=no
23871 if test x$gcc_cv_as != x; then
23872 $as_echo "$conftest_s" > conftest.s
23873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23878 test $ac_status = 0; }; }
23879 then
23880 gcc_cv_as_hidden=yes
23881 else
23882 echo "configure: failed program was" >&5
23883 cat conftest.s >&5
23885 rm -f conftest.o conftest.s
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23889 $as_echo "$gcc_cv_as_hidden" >&6; }
23892 case "${target}" in
23893 *-*-darwin*)
23894 # Darwin as has some visibility support, though with a different syntax.
23895 gcc_cv_as_hidden=yes
23897 esac
23899 # gnu_indirect_function type is an extension proposed at
23900 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23901 # selection of function implementation
23902 # Check whether --enable-gnu-indirect-function was given.
23903 if test "${enable_gnu_indirect_function+set}" = set; then :
23904 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23905 yes | no) ;;
23906 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23907 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23908 esac
23909 else
23910 enable_gnu_indirect_function="$default_gnu_indirect_function"
23914 case "${target}" in
23915 riscv*-*-linux*)
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23917 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23918 cat > conftest.s <<EOF
23919 .text
23920 .type foo_resolver, @function
23921 foo_resolver:
23923 .size foo_resolver, .-foo_resolver
23925 .globl foo
23926 .type foo, %gnu_indirect_function
23927 .set foo, foo_resolver
23929 .globl bar
23930 .type bar, @function
23931 bar:
23932 call foo
23934 .size bar, .-bar
23936 if test x$gcc_cv_as != x \
23937 && test x$gcc_cv_ld != x \
23938 && test x$gcc_cv_readelf != x \
23939 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23940 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23941 && $gcc_cv_readelf --relocs --wide conftest \
23942 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23943 enable_gnu_indirect_function=yes
23945 rm -f conftest conftest.o conftest.s
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23947 $as_echo "$enable_gnu_indirect_function" >&6; }
23949 esac
23951 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23953 cat >>confdefs.h <<_ACEOF
23954 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23955 _ACEOF
23959 if test $in_tree_ld != yes ; then
23960 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23961 if echo "$ld_ver" | grep GNU > /dev/null; then
23962 if test x"$ld_is_gold" = xyes; then
23963 # GNU gold --version looks like this:
23965 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23967 # We extract the binutils version which is more familiar and specific
23968 # than the gold version.
23969 ld_vers=`echo $ld_ver | sed -n \
23970 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23971 else
23972 # GNU ld --version looks like this:
23974 # GNU ld (GNU Binutils) 2.21.51.20110225
23975 ld_vers=`echo $ld_ver | sed -n \
23976 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23978 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'`
23979 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23980 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23981 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23982 else
23983 case "${target}" in
23984 *-*-solaris2*)
23985 # Solaris 2 ld -V output looks like this for a regular version:
23987 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23989 # but test versions add stuff at the end:
23991 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23993 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23994 # numbers can be used in ld.so.1 feature checks even if a different
23995 # linker is configured.
23996 ld_ver=`$gcc_cv_ld -V 2>&1`
23997 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23998 ld_vers=`echo $ld_ver | sed -n \
23999 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24000 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24001 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24004 esac
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24009 $as_echo_n "checking linker for .hidden support... " >&6; }
24010 if ${gcc_cv_ld_hidden+:} false; then :
24011 $as_echo_n "(cached) " >&6
24012 else
24013 if test $in_tree_ld = yes ; then
24014 gcc_cv_ld_hidden=no
24015 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 \
24016 && test $in_tree_ld_is_elf = yes; then
24017 gcc_cv_ld_hidden=yes
24019 else
24020 gcc_cv_ld_hidden=yes
24021 if test x"$ld_is_gold" = xyes; then
24023 elif echo "$ld_ver" | grep GNU > /dev/null; then
24024 if test 0"$ld_date" -lt 20020404; then
24025 if test -n "$ld_date"; then
24026 # If there was date string, but was earlier than 2002-04-04, fail
24027 gcc_cv_ld_hidden=no
24028 elif test -z "$ld_vers"; then
24029 # If there was no date string nor ld version number, something is wrong
24030 gcc_cv_ld_hidden=no
24031 else
24032 test -z "$ld_vers_patch" && ld_vers_patch=0
24033 if test "$ld_vers_major" -lt 2; then
24034 gcc_cv_ld_hidden=no
24035 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24036 gcc_cv_ld_hidden="no"
24037 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24038 gcc_cv_ld_hidden=no
24042 else
24043 case "${target}" in
24044 *-*-aix[789]*)
24045 gcc_cv_ld_hidden=yes
24047 *-*-darwin*)
24048 # Darwin ld has some visibility support.
24049 gcc_cv_ld_hidden=yes
24051 hppa64*-*-hpux* | ia64*-*-hpux*)
24052 gcc_cv_ld_hidden=yes
24054 *-*-solaris2*)
24055 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24056 # .symbolic was only added in Solaris 9 12/02.
24057 gcc_cv_ld_hidden=yes
24060 gcc_cv_ld_hidden=no
24062 esac
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24067 $as_echo "$gcc_cv_ld_hidden" >&6; }
24068 libgcc_visibility=no
24071 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24072 libgcc_visibility=yes
24074 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24079 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24080 gcc_cv_ld_ro_rw_mix=unknown
24081 if test $in_tree_ld = yes ; then
24082 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 \
24083 && test $in_tree_ld_is_elf = yes; then
24084 gcc_cv_ld_ro_rw_mix=read-write
24086 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24087 echo '.section myfoosect, "a"' > conftest1.s
24088 echo '.section myfoosect, "aw"' > conftest2.s
24089 echo '.byte 1' >> conftest2.s
24090 echo '.section myfoosect, "a"' > conftest3.s
24091 echo '.byte 0' >> conftest3.s
24092 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24093 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24094 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24095 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24096 conftest2.o conftest3.o > /dev/null 2>&1; then
24097 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24098 | sed -e '/myfoosect/!d' -e N`
24099 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24100 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24101 gcc_cv_ld_ro_rw_mix=read-only
24102 else
24103 gcc_cv_ld_ro_rw_mix=read-write
24107 rm -f conftest.* conftest[123].*
24109 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24111 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24115 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24117 # Check whether --enable-initfini-array was given.
24118 if test "${enable_initfini_array+set}" = set; then :
24119 enableval=$enable_initfini_array;
24120 else
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24123 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24124 if ${gcc_cv_initfini_array+:} false; then :
24125 $as_echo_n "(cached) " >&6
24126 else
24127 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24128 case "${target}" in
24129 ia64-*)
24130 if test "$cross_compiling" = yes; then :
24131 gcc_cv_initfini_array=no
24132 else
24133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24136 #ifndef __ELF__
24137 #error Not an ELF OS
24138 #endif
24139 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24140 if it can be used. */
24141 static int x = -1;
24142 int main (void) { return x; }
24143 int foo (void) { x = 0; }
24144 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24146 _ACEOF
24147 if ac_fn_cxx_try_run "$LINENO"; then :
24148 gcc_cv_initfini_array=yes
24149 else
24150 gcc_cv_initfini_array=no
24152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24153 conftest.$ac_objext conftest.beam conftest.$ac_ext
24157 gcc_cv_initfini_array=no
24158 if test $in_tree_ld = yes ; then
24159 if test "$gcc_cv_gld_major_version" -eq 2 \
24160 -a "$gcc_cv_gld_minor_version" -ge 22 \
24161 -o "$gcc_cv_gld_major_version" -gt 2 \
24162 && test $in_tree_ld_is_elf = yes; then
24163 gcc_cv_initfini_array=yes
24165 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24166 case $target:$gas in
24167 *:yes)
24168 sh_flags='"a"'
24169 sh_type='%progbits'
24171 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24172 sh_flags='"a"'
24173 sh_type='@progbits'
24175 sparc*-*-solaris2*:no)
24176 sh_flags='#alloc'
24177 sh_type='#progbits'
24178 sh_quote='"'
24180 esac
24181 case "$target:$gnu_ld" in
24182 *:yes)
24183 cat > conftest.s <<EOF
24184 .section .dtors,$sh_flags,$sh_type
24185 .balign 4
24186 .byte 'A', 'A', 'A', 'A'
24187 .section .ctors,$sh_flags,$sh_type
24188 .balign 4
24189 .byte 'B', 'B', 'B', 'B'
24190 .section .fini_array.65530,$sh_flags,$sh_type
24191 .balign 4
24192 .byte 'C', 'C', 'C', 'C'
24193 .section .init_array.65530,$sh_flags,$sh_type
24194 .balign 4
24195 .byte 'D', 'D', 'D', 'D'
24196 .section .dtors.64528,$sh_flags,$sh_type
24197 .balign 4
24198 .byte 'E', 'E', 'E', 'E'
24199 .section .ctors.64528,$sh_flags,$sh_type
24200 .balign 4
24201 .byte 'F', 'F', 'F', 'F'
24202 .section .fini_array.01005,$sh_flags,$sh_type
24203 .balign 4
24204 .byte 'G', 'G', 'G', 'G'
24205 .section .init_array.01005,$sh_flags,$sh_type
24206 .balign 4
24207 .byte 'H', 'H', 'H', 'H'
24208 .text
24209 .globl _start
24210 _start:
24212 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24213 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24214 && $gcc_cv_objdump -s -j .init_array conftest \
24215 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24216 && $gcc_cv_objdump -s -j .fini_array conftest \
24217 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24218 gcc_cv_initfini_array=yes
24221 *-*-solaris2*:no)
24222 # When Solaris ld added constructor priority support, it was
24223 # decided to only handle .init_array.N/.fini_array.N since
24224 # there was no need for backwards compatibility with
24225 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24226 # sections with correct execution order resp. to
24227 # .init_array/.fini_array, while gld merges them into
24228 # .init_array/.fini_array.
24229 cat > conftest.s <<EOF
24230 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24231 .align 4
24232 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24233 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24234 .align 4
24235 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24236 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24237 .align 4
24238 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24239 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24240 .align 4
24241 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24242 .text
24243 .globl _start
24244 _start:
24246 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24247 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24248 && $gcc_cv_objdump -s -j .init_array conftest \
24249 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24250 && $gcc_cv_objdump -s -j .fini_array conftest \
24251 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24252 gcc_cv_initfini_array=yes
24255 esac
24256 rm -f conftest conftest.*
24258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24259 /* end confdefs.h. */
24261 #ifndef __ELF__
24262 # error Not an ELF OS
24263 #endif
24264 #include <stdlib.h>
24265 #if defined __GLIBC_PREREQ
24266 # if __GLIBC_PREREQ (2, 4)
24267 # else
24268 # error GLIBC 2.4 required
24269 # endif
24270 #else
24271 # if defined __sun__ && defined __svr4__
24272 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24273 # else
24274 # error The C library not known to support .init_array/.fini_array
24275 # endif
24276 #endif
24278 _ACEOF
24279 if ac_fn_cxx_try_cpp "$LINENO"; then :
24281 else
24282 gcc_cv_initfini_array=no
24284 rm -f conftest.err conftest.i conftest.$ac_ext;;
24285 esac
24286 else
24287 case "${target}" in
24288 aarch64*-linux-gnu*)
24289 # AArch64 postdates glibc support for .init_array/.fini_array,
24290 # so we don't need the preprocessor test above.
24291 gcc_cv_initfini_array=yes
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24296 $as_echo_n "checking cross compile... guessing... " >&6; }
24297 gcc_cv_initfini_array=no
24299 esac
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24303 $as_echo "$gcc_cv_initfini_array" >&6; }
24304 enable_initfini_array=$gcc_cv_initfini_array
24309 cat >>confdefs.h <<_ACEOF
24310 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24311 _ACEOF
24315 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24316 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24317 # these directives, even when they appear to accept them.
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24319 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24320 if ${gcc_cv_as_leb128+:} false; then :
24321 $as_echo_n "(cached) " >&6
24322 else
24323 gcc_cv_as_leb128=no
24324 if test x$gcc_cv_as != x; then
24325 $as_echo ' .data
24326 .uleb128 L2 - L1
24328 .uleb128 1280
24329 .sleb128 -1010
24331 .uleb128 0x8000000000000000
24332 ' > conftest.s
24333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335 (eval $ac_try) 2>&5
24336 ac_status=$?
24337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338 test $ac_status = 0; }; }
24339 then
24341 if test "x$gcc_cv_objdump" != x; then
24342 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24343 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24344 gcc_cv_as_leb128=yes
24346 elif test "x$gcc_cv_otool" != x; then
24347 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24348 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24349 gcc_cv_as_leb128=yes
24351 else
24352 # play safe, assume the assembler is broken.
24356 else
24357 echo "configure: failed program was" >&5
24358 cat conftest.s >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24364 $as_echo "$gcc_cv_as_leb128" >&6; }
24365 if test $gcc_cv_as_leb128 = yes; then
24367 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24370 if test $gcc_cv_as_leb128 != yes; then
24372 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24376 # Determine if an .eh_frame section is read-only.
24377 gcc_fn_eh_frame_ro () {
24378 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24379 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24380 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24383 # Check if we have assembler support for unwind directives.
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24385 $as_echo_n "checking assembler for cfi directives... " >&6; }
24386 if ${gcc_cv_as_cfi_directive+:} false; then :
24387 $as_echo_n "(cached) " >&6
24388 else
24389 gcc_cv_as_cfi_directive=no
24390 if test x$gcc_cv_as != x; then
24391 $as_echo ' .text
24392 .cfi_startproc
24393 .cfi_offset 0, 0
24394 .cfi_same_value 1
24395 .cfi_def_cfa 1, 2
24396 .cfi_escape 1, 2, 3, 4, 5
24397 .cfi_endproc' > conftest.s
24398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24404 then
24405 case "$target" in
24406 *-*-solaris*)
24407 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24408 # read-only and read-write sections, we need to make sure that the
24409 # assembler used emits read-write .eh_frame sections.
24410 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24411 gcc_cv_as_cfi_directive=yes
24412 elif test "x$gcc_cv_objdump" = x; then
24413 # No objdump, err on the side of caution.
24414 gcc_cv_as_cfi_directive=no
24415 else
24416 if test x$gas = xyes; then
24417 as_32_opt="--32"
24418 as_64_opt="--64"
24419 else
24420 as_32_opt="-m32"
24421 as_64_opt="-m64"
24423 case "$target" in
24424 sparc*-*-solaris2.*)
24425 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24426 if gcc_fn_eh_frame_ro $as_32_opt \
24427 || gcc_fn_eh_frame_ro $as_64_opt; then
24428 gcc_cv_as_cfi_directive=no
24429 else
24430 gcc_cv_as_cfi_directive=yes
24433 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24434 # On Solaris/x86, make sure that GCC and assembler agree on using
24435 # read-only .eh_frame sections for 64-bit.
24436 if gcc_fn_eh_frame_ro $as_32_opt; then
24437 gcc_cv_as_cfi_directive=no
24438 elif gcc_fn_eh_frame_ro $as_64_opt; then
24439 gcc_cv_as_cfi_directive=yes
24440 else
24441 gcc_cv_as_cfi_directive=no
24444 esac
24447 *-*-*)
24448 gcc_cv_as_cfi_directive=yes
24450 esac
24451 else
24452 echo "configure: failed program was" >&5
24453 cat conftest.s >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24459 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24462 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24464 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24465 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24466 $as_echo_n "(cached) " >&6
24467 else
24468 gcc_cv_as_cfi_advance_working=no
24469 if test x$gcc_cv_as != x; then
24470 $as_echo ' .text
24471 .cfi_startproc
24472 .cfi_adjust_cfa_offset 64
24473 .skip 75040, 0
24474 .cfi_adjust_cfa_offset 128
24475 .cfi_endproc' > conftest.s
24476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24482 then
24484 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24485 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24486 gcc_cv_as_cfi_advance_working=yes
24489 else
24490 echo "configure: failed program was" >&5
24491 cat conftest.s >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24497 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24500 else
24501 # no objdump, err on the side of caution
24502 gcc_cv_as_cfi_advance_working=no
24506 cat >>confdefs.h <<_ACEOF
24507 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24508 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24509 _ACEOF
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24514 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24515 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24516 $as_echo_n "(cached) " >&6
24517 else
24518 gcc_cv_as_cfi_personality_directive=no
24519 if test x$gcc_cv_as != x; then
24520 $as_echo ' .text
24521 .cfi_startproc
24522 .cfi_personality 0, symbol
24523 .cfi_endproc' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 gcc_cv_as_cfi_personality_directive=yes
24532 else
24533 echo "configure: failed program was" >&5
24534 cat conftest.s >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24540 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24544 cat >>confdefs.h <<_ACEOF
24545 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24546 _ACEOF
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24550 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24551 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24552 $as_echo_n "(cached) " >&6
24553 else
24554 gcc_cv_as_cfi_sections_directive=no
24555 if test x$gcc_cv_as != x; then
24556 $as_echo ' .text
24557 .cfi_sections .debug_frame, .eh_frame
24558 .cfi_startproc
24559 .cfi_endproc' > conftest.s
24560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565 test $ac_status = 0; }; }
24566 then
24567 case $target_os in
24568 win32 | pe | cygwin* | mingw32*)
24569 # Need to check that we generated the correct relocation for the
24570 # .debug_frame section. This was fixed for binutils 2.21.
24571 gcc_cv_as_cfi_sections_directive=no
24572 if test "x$gcc_cv_objdump" != x; then
24573 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24574 grep secrel > /dev/null; then
24575 gcc_cv_as_cfi_sections_directive=yes
24580 gcc_cv_as_cfi_sections_directive=yes
24582 esac
24583 else
24584 echo "configure: failed program was" >&5
24585 cat conftest.s >&5
24587 rm -f conftest.o conftest.s
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24591 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24596 cat >>confdefs.h <<_ACEOF
24597 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24598 _ACEOF
24601 # GAS versions up to and including 2.11.0 may mis-optimize
24602 # .eh_frame data.
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24604 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24605 if ${gcc_cv_as_eh_frame+:} false; then :
24606 $as_echo_n "(cached) " >&6
24607 else
24608 gcc_cv_as_eh_frame=no
24609 if test x$gcc_cv_as != x; then
24610 $as_echo ' .text
24611 .LFB1:
24612 .4byte 0
24613 .L1:
24614 .4byte 0
24615 .LFE1:
24616 .section .eh_frame,"aw",@progbits
24617 __FRAME_BEGIN__:
24618 .4byte .LECIE1-.LSCIE1
24619 .LSCIE1:
24620 .4byte 0x0
24621 .byte 0x1
24622 .ascii "z\0"
24623 .byte 0x1
24624 .byte 0x78
24625 .byte 0x1a
24626 .byte 0x0
24627 .byte 0x4
24628 .4byte 1
24629 .p2align 1
24630 .LECIE1:
24631 .LSFDE1:
24632 .4byte .LEFDE1-.LASFDE1
24633 .LASFDE1:
24634 .4byte .LASFDE1-__FRAME_BEGIN__
24635 .4byte .LFB1
24636 .4byte .LFE1-.LFB1
24637 .byte 0x4
24638 .4byte .LFE1-.LFB1
24639 .byte 0x4
24640 .4byte .L1-.LFB1
24641 .LEFDE1:' > conftest.s
24642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24645 ac_status=$?
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24648 then
24649 cat > conftest.lit <<EOF
24650 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24651 0010 01000000 12000000 18000000 00000000 ................
24652 0020 08000000 04080000 0044 .........D
24654 cat > conftest.big <<EOF
24655 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24656 0010 00000001 00000012 00000018 00000000 ................
24657 0020 00000008 04000000 0844 .........D
24659 # If the assembler didn't choke, and we can objdump,
24660 # and we got the correct data, then succeed.
24661 # The text in the here-document typically retains its unix-style line
24662 # endings, while the output of objdump will use host line endings.
24663 # Therefore, use diff -b for the comparisons.
24664 if test x$gcc_cv_objdump != x \
24665 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24666 | tail -3 > conftest.got \
24667 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24668 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24669 then
24670 gcc_cv_as_eh_frame=yes
24671 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }; then
24677 gcc_cv_as_eh_frame=buggy
24678 else
24679 # Uh oh, what do we do now?
24680 gcc_cv_as_eh_frame=no
24682 else
24683 echo "configure: failed program was" >&5
24684 cat conftest.s >&5
24686 rm -f conftest.o conftest.s
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24690 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24694 if test $gcc_cv_as_eh_frame = buggy; then
24696 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24700 # Test if the assembler supports the section flag 'e' or #exclude for
24701 # specifying an excluded section.
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24703 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24704 if ${gcc_cv_as_section_exclude_e+:} false; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 gcc_cv_as_section_exclude_e=no
24708 if test x$gcc_cv_as != x; then
24709 $as_echo '.section foo1,"e"
24710 .byte 0,0,0,0' > conftest.s
24711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24717 then
24718 gcc_cv_as_section_exclude_e=yes
24719 else
24720 echo "configure: failed program was" >&5
24721 cat conftest.s >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24727 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24730 if test $gcc_cv_as_section_exclude_e = no; then
24731 case "${target}" in
24732 # Solaris as uses #exclude instead.
24733 *-*-solaris2*)
24734 case "${target}" in
24735 sparc*-*-solaris2*)
24736 conftest_s='.section "foo1", #exclude'
24738 i?86-*-solaris2* | x86_64-*-solaris2*)
24739 conftest_s='.section foo1, #exclude'
24741 esac
24743 esac
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24745 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24746 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24747 $as_echo_n "(cached) " >&6
24748 else
24749 gcc_cv_as_section_exclude_hash=no
24750 if test x$gcc_cv_as != x; then
24751 $as_echo "$conftest_s
24752 .byte 0,0,0,0" > conftest.s
24753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755 (eval $ac_try) 2>&5
24756 ac_status=$?
24757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758 test $ac_status = 0; }; }
24759 then
24760 gcc_cv_as_section_exclude_hash=yes
24761 else
24762 echo "configure: failed program was" >&5
24763 cat conftest.s >&5
24765 rm -f conftest.o conftest.s
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24769 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24774 cat >>confdefs.h <<_ACEOF
24775 #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`
24776 _ACEOF
24779 # Test if the assembler supports the section flag 'R' for specifying
24780 # section with SHF_GNU_RETAIN.
24781 case "${target}" in
24782 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24783 # assembler supports the section flag 'R', it doesn't mean that
24784 # Solairs ld supports it.
24785 *-*-solaris2*)
24786 gcc_cv_as_shf_gnu_retain=no
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24790 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24791 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24792 $as_echo_n "(cached) " >&6
24793 else
24794 gcc_cv_as_shf_gnu_retain=no
24795 if test x$gcc_cv_as != x; then
24796 $as_echo '.section .foo,"awR",%progbits
24797 .byte 0' > conftest.s
24798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; }
24804 then
24805 gcc_cv_as_shf_gnu_retain=yes
24806 else
24807 echo "configure: failed program was" >&5
24808 cat conftest.s >&5
24810 rm -f conftest.o conftest.s
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24814 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24818 esac
24820 cat >>confdefs.h <<_ACEOF
24821 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24822 _ACEOF
24825 # Test if the assembler supports the section flag 'o' for specifying
24826 # section with link-order.
24827 case "${target}" in
24828 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24829 # assembler supports the section flag 'o', it doesn't mean that
24830 # Solairs ld supports it.
24831 *-*-solaris2*)
24832 gcc_cv_as_section_link_order=no
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24836 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24837 if ${gcc_cv_as_section_link_order+:} false; then :
24838 $as_echo_n "(cached) " >&6
24839 else
24840 gcc_cv_as_section_link_order=no
24841 if test x$gcc_cv_as != x; then
24842 $as_echo '.section .foo,"a"
24843 .byte 0
24844 .section __patchable_function_entries,"awo",%progbits,.foo
24845 .byte 0' > conftest.s
24846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24852 then
24853 gcc_cv_as_section_link_order=yes
24854 else
24855 echo "configure: failed program was" >&5
24856 cat conftest.s >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24862 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24866 esac
24868 cat >>confdefs.h <<_ACEOF
24869 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24870 _ACEOF
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24874 $as_echo_n "checking assembler for section merging support... " >&6; }
24875 if ${gcc_cv_as_shf_merge+:} false; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878 gcc_cv_as_shf_merge=no
24879 if test x$gcc_cv_as != x; then
24880 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24887 then
24888 gcc_cv_as_shf_merge=yes
24889 else
24890 echo "configure: failed program was" >&5
24891 cat conftest.s >&5
24893 rm -f conftest.o conftest.s
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24897 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24900 if test $gcc_cv_as_shf_merge = no; then
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24902 $as_echo_n "checking assembler for section merging support... " >&6; }
24903 if ${gcc_cv_as_shf_merge+:} false; then :
24904 $as_echo_n "(cached) " >&6
24905 else
24906 gcc_cv_as_shf_merge=no
24907 if test x$gcc_cv_as != x; then
24908 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24915 then
24916 gcc_cv_as_shf_merge=yes
24917 else
24918 echo "configure: failed program was" >&5
24919 cat conftest.s >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24925 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24930 cat >>confdefs.h <<_ACEOF
24931 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24932 _ACEOF
24935 gcc_cv_ld_aligned_shf_merge=yes
24936 case "$target" in
24937 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24938 # alignment > 1.
24939 sparc*-*-solaris2.11*)
24940 if test x"$gnu_ld" = xno \
24941 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24942 gcc_cv_ld_aligned_shf_merge=no
24945 esac
24947 cat >>confdefs.h <<_ACEOF
24948 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24949 _ACEOF
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24953 $as_echo_n "checking assembler for stabs directive... " >&6; }
24954 if ${gcc_cv_as_stabs_directive+:} false; then :
24955 $as_echo_n "(cached) " >&6
24956 else
24957 gcc_cv_as_stabs_directive=no
24958 if test x$gcc_cv_as != x; then
24959 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24966 then
24967 gcc_cv_as_stabs_directive=yes
24968 else
24969 echo "configure: failed program was" >&5
24970 cat conftest.s >&5
24972 rm -f conftest.o conftest.s
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24976 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24977 if test $gcc_cv_as_stabs_directive = yes; then
24979 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24985 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24986 if ${gcc_cv_as_comdat_group+:} false; then :
24987 $as_echo_n "(cached) " >&6
24988 else
24989 gcc_cv_as_comdat_group=no
24990 if test x$gcc_cv_as != x; then
24991 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; }
24998 then
24999 gcc_cv_as_comdat_group=yes
25000 else
25001 echo "configure: failed program was" >&5
25002 cat conftest.s >&5
25004 rm -f conftest.o conftest.s
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25008 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25011 if test $gcc_cv_as_comdat_group = yes; then
25012 gcc_cv_as_comdat_group_percent=no
25013 gcc_cv_as_comdat_group_group=no
25014 else
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25016 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25017 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25018 $as_echo_n "(cached) " >&6
25019 else
25020 gcc_cv_as_comdat_group_percent=no
25021 if test x$gcc_cv_as != x; then
25022 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25025 (eval $ac_try) 2>&5
25026 ac_status=$?
25027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25028 test $ac_status = 0; }; }
25029 then
25030 gcc_cv_as_comdat_group_percent=yes
25031 else
25032 echo "configure: failed program was" >&5
25033 cat conftest.s >&5
25035 rm -f conftest.o conftest.s
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25039 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25042 if test $gcc_cv_as_comdat_group_percent = yes; then
25043 gcc_cv_as_comdat_group_group=no
25044 else
25045 case "${target}" in
25046 # Sun as uses a completely different syntax.
25047 *-*-solaris2*)
25048 case "${target}" in
25049 sparc*-*-solaris2*)
25050 conftest_s='
25051 .group foo,".text%foo",#comdat
25052 .section ".text%foo", #alloc,#execinstr,#progbits
25053 .globl foo
25054 foo:
25057 i?86-*-solaris2* | x86_64-*-solaris2*)
25058 conftest_s='
25059 .group foo,.text%foo,#comdat
25060 .section .text%foo, "ax", @progbits
25061 .globl foo
25062 foo:
25065 esac
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25067 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25068 if ${gcc_cv_as_comdat_group_group+:} false; then :
25069 $as_echo_n "(cached) " >&6
25070 else
25071 gcc_cv_as_comdat_group_group=no
25072 if test x$gcc_cv_as != x; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25080 then
25081 gcc_cv_as_comdat_group_group=yes
25082 else
25083 echo "configure: failed program was" >&5
25084 cat conftest.s >&5
25086 rm -f conftest.o conftest.s
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25090 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25094 esac
25095 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25096 gcc_cv_as_comdat_group_group=no
25100 if test x"$ld_is_gold" = xyes; then
25101 comdat_group=yes
25102 elif test $in_tree_ld = yes ; then
25103 comdat_group=no
25104 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 \
25105 && test $in_tree_ld_is_elf = yes; then
25106 comdat_group=yes
25108 elif echo "$ld_ver" | grep GNU > /dev/null; then
25109 comdat_group=yes
25110 if test 0"$ld_date" -lt 20050308; then
25111 if test -n "$ld_date"; then
25112 # If there was date string, but was earlier than 2005-03-08, fail
25113 comdat_group=no
25114 elif test "$ld_vers_major" -lt 2; then
25115 comdat_group=no
25116 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25117 comdat_group=no
25120 else
25121 case "${target}" in
25122 *-*-solaris2.1[1-9]*)
25123 comdat_group=no
25124 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25125 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25126 # version 1.688.
25128 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25129 # least ld version 1.2267.
25130 if test "$ld_vers_major" -gt 1; then
25131 comdat_group=yes
25132 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25133 comdat_group=yes
25134 elif test "$ld_vers_minor" -ge 2267; then
25135 comdat_group=yes
25139 # Assume linkers other than GNU ld don't support COMDAT group.
25140 comdat_group=no
25142 esac
25144 # Allow overriding the automatic COMDAT group tests above.
25145 # Check whether --enable-comdat was given.
25146 if test "${enable_comdat+set}" = set; then :
25147 enableval=$enable_comdat; comdat_group="$enable_comdat"
25150 if test $comdat_group = no; then
25151 gcc_cv_as_comdat_group=no
25152 gcc_cv_as_comdat_group_percent=no
25153 gcc_cv_as_comdat_group_group=no
25156 cat >>confdefs.h <<_ACEOF
25157 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25158 || test $gcc_cv_as_comdat_group_percent = yes \
25159 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25160 _ACEOF
25163 # Restrict this test to Solaris/x86: other targets define this statically.
25164 case "${target}" in
25165 i?86-*-solaris2* | x86_64-*-solaris2*)
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25167 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25168 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25169 hidden_linkonce=yes
25170 else
25171 case "${target}" in
25172 # Full support for hidden thunks in linkonce sections only appeared in
25173 # Solaris 11/OpenSolaris.
25174 *-*-solaris2.1[1-9]*)
25175 hidden_linkonce=yes
25178 hidden_linkonce=no
25180 esac
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25183 $as_echo "$hidden_linkonce" >&6; }
25185 cat >>confdefs.h <<_ACEOF
25186 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25187 _ACEOF
25190 esac
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25193 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25194 if ${gcc_cv_as_is_stmt+:} false; then :
25195 $as_echo_n "(cached) " >&6
25196 else
25197 gcc_cv_as_is_stmt=no
25198 if test x$gcc_cv_as != x; then
25199 $as_echo ' .text
25200 .file 1 "conf.c"
25201 .loc 1 1 0 is_stmt 1' > conftest.s
25202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }
25208 then
25209 gcc_cv_as_is_stmt=yes
25210 else
25211 echo "configure: failed program was" >&5
25212 cat conftest.s >&5
25214 rm -f conftest.o conftest.s
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25218 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25219 if test $gcc_cv_as_is_stmt = yes; then
25221 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25227 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25228 if ${gcc_cv_as_discriminator+:} false; then :
25229 $as_echo_n "(cached) " >&6
25230 else
25231 gcc_cv_as_discriminator=no
25232 if test x$gcc_cv_as != x; then
25233 $as_echo ' .text
25234 .file 1 "conf.c"
25235 .loc 1 1 0 discriminator 1' > conftest.s
25236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238 (eval $ac_try) 2>&5
25239 ac_status=$?
25240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241 test $ac_status = 0; }; }
25242 then
25243 gcc_cv_as_discriminator=yes
25244 else
25245 echo "configure: failed program was" >&5
25246 cat conftest.s >&5
25248 rm -f conftest.o conftest.s
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25252 $as_echo "$gcc_cv_as_discriminator" >&6; }
25253 if test $gcc_cv_as_discriminator = yes; then
25255 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25260 # Catch the newlib flag of the same name so we can gate GCC features on it.
25261 # Check whether --enable-newlib-nano-formatted-io was given.
25262 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25263 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25264 yes|no)
25267 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25269 esac
25273 # Thread-local storage - the check is heavily parameterized.
25274 conftest_s=
25275 tls_as_opt=
25276 case "$target" in
25277 alpha*-*-*)
25278 conftest_s='
25279 .section ".tdata","awT",@progbits
25280 foo: .long 25
25281 .text
25282 ldq $27,__tls_get_addr($29) !literal!1
25283 lda $16,foo($29) !tlsgd!1
25284 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25285 ldq $27,__tls_get_addr($29) !literal!2
25286 lda $16,foo($29) !tlsldm!2
25287 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25288 ldq $1,foo($29) !gotdtprel
25289 ldah $2,foo($29) !dtprelhi
25290 lda $3,foo($2) !dtprello
25291 lda $4,foo($29) !dtprel
25292 ldq $1,foo($29) !gottprel
25293 ldah $2,foo($29) !tprelhi
25294 lda $3,foo($2) !tprello
25295 lda $4,foo($29) !tprel'
25296 tls_as_opt=--fatal-warnings
25298 arc*-*-*)
25299 conftest_s='
25300 add_s r0,r0, @foo@tpoff'
25302 cris-*-*|crisv32-*-*)
25303 conftest_s='
25304 .section ".tdata","awT",@progbits
25305 x: .long 25
25306 .text
25307 move.d x:IE,$r10
25308 nop'
25309 tls_as_opt=--fatal-warnings
25311 frv*-*-*)
25312 conftest_s='
25313 .section ".tdata","awT",@progbits
25314 x: .long 25
25315 .text
25316 call #gettlsoff(x)'
25318 hppa*-*-linux*)
25319 conftest_s='
25320 t1: .reg %r20
25321 t2: .reg %r21
25322 gp: .reg %r19
25323 .section ".tdata","awT",@progbits
25324 foo: .long 25
25325 .text
25326 .align 4
25327 addil LT%foo-$tls_gdidx$,gp
25328 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25329 b __tls_get_addr
25331 addil LT%foo-$tls_ldidx$,gp
25332 b __tls_get_addr
25333 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25334 addil LR%foo-$tls_dtpoff$,%ret0
25335 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25336 mfctl %cr27,%t1
25337 addil LT%foo-$tls_ieoff$,gp
25338 ldw RT%foo-$tls_ieoff$(%r1),%t2
25339 add %t1,%t2,%t3
25340 mfctl %cr27,%t1
25341 addil LR%foo-$tls_leoff$,%t1
25342 ldo RR%foo-$tls_leoff$(%r1),%t2'
25343 tls_as_opt=--fatal-warnings
25345 arm*-*-*)
25346 conftest_s='
25347 .section ".tdata","awT",%progbits
25348 foo: .long 25
25349 .text
25350 .word foo(gottpoff)
25351 .word foo(tpoff)
25352 .word foo(tlsgd)
25353 .word foo(tlsldm)
25354 .word foo(tlsldo)'
25356 i[34567]86-*-* | x86_64-*-*)
25357 case "$target" in
25358 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25359 on_solaris=yes
25362 on_solaris=no
25364 esac
25365 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25366 conftest_s='
25367 .section .tdata,"awt",@progbits'
25368 tls_section_flag=t
25370 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25372 else
25373 conftest_s='
25374 .section ".tdata","awT",@progbits'
25375 tls_section_flag=T
25376 tls_as_opt="--fatal-warnings"
25378 case "$target" in
25379 i[34567]86-*-*)
25380 if test x$on_solaris = xyes; then
25381 case $gas_flag in
25382 yes) tls_as_opt="$tls_as_opt --32" ;;
25383 esac
25385 conftest_s="$conftest_s
25386 foo: .long 25
25387 .text
25388 movl %gs:0, %eax
25389 leal foo@tlsgd(,%ebx,1), %eax
25390 leal foo@tlsldm(%ebx), %eax
25391 leal foo@dtpoff(%eax), %edx
25392 movl foo@gottpoff(%ebx), %eax
25393 subl foo@gottpoff(%ebx), %eax
25394 addl foo@gotntpoff(%ebx), %eax
25395 movl foo@indntpoff, %eax
25396 movl \$foo@tpoff, %eax
25397 subl \$foo@tpoff, %eax
25398 leal foo@ntpoff(%ecx), %eax"
25400 x86_64-*-*)
25401 if test x$on_solaris = xyes; then
25402 case $gas_flag in
25403 yes) tls_as_opt="$tls_as_opt --64" ;;
25404 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25405 esac
25407 conftest_s="$conftest_s
25408 foo: .long 25
25409 .text
25410 movq %fs:0, %rax
25411 leaq foo@tlsgd(%rip), %rdi
25412 leaq foo@tlsld(%rip), %rdi
25413 leaq foo@dtpoff(%rax), %rdx
25414 movq foo@gottpoff(%rip), %rax
25415 movq \$foo@tpoff, %rax"
25417 esac
25419 ia64-*-*)
25420 conftest_s='
25421 .section ".tdata","awT",@progbits
25422 foo: data8 25
25423 .text
25424 addl r16 = @ltoff(@dtpmod(foo#)), gp
25425 addl r17 = @ltoff(@dtprel(foo#)), gp
25426 addl r18 = @ltoff(@tprel(foo#)), gp
25427 addl r19 = @dtprel(foo#), gp
25428 adds r21 = @dtprel(foo#), r13
25429 movl r23 = @dtprel(foo#)
25430 addl r20 = @tprel(foo#), gp
25431 adds r22 = @tprel(foo#), r13
25432 movl r24 = @tprel(foo#)'
25433 tls_as_opt=--fatal-warnings
25435 microblaze*-*-*)
25436 conftest_s='
25437 .section .tdata,"awT",@progbits
25439 .word 2
25440 .text
25441 addik r5,r20,x@TLSGD
25442 addik r5,r20,x@TLSLDM'
25443 tls_as_opt='--fatal-warnings'
25445 mips*-*-*)
25446 conftest_s='
25447 .section .tdata,"awT",@progbits
25449 .word 2
25450 .text
25451 addiu $4, $28, %tlsgd(x)
25452 addiu $4, $28, %tlsldm(x)
25453 lui $4, %dtprel_hi(x)
25454 addiu $4, $4, %dtprel_lo(x)
25455 lw $4, %gottprel(x)($28)
25456 lui $4, %tprel_hi(x)
25457 addiu $4, $4, %tprel_lo(x)'
25458 tls_as_opt='-32 --fatal-warnings'
25460 m68k-*-*)
25461 conftest_s='
25462 .section .tdata,"awT",@progbits
25464 .word 2
25465 .text
25466 foo:
25467 move.l x@TLSGD(%a5),%a0
25468 move.l x@TLSLDM(%a5),%a0
25469 move.l x@TLSLDO(%a5),%a0
25470 move.l x@TLSIE(%a5),%a0
25471 move.l x@TLSLE(%a5),%a0'
25472 tls_as_opt='--fatal-warnings'
25474 nios2-*-*)
25475 conftest_s='
25476 .section ".tdata","awT",@progbits'
25477 tls_as_opt="--fatal-warnings"
25479 aarch64*-*-*)
25480 conftest_s='
25481 .section ".tdata","awT",%progbits
25482 foo: .long 25
25483 .text
25484 adrp x0, :tlsgd:x
25485 add x0, x0, #:tlsgd_lo12:x
25486 bl __tls_get_addr
25487 nop'
25488 tls_as_opt='--fatal-warnings'
25490 or1k*-*-*)
25491 conftest_s='
25492 .section ".tdata","awT",@progbits
25493 foo: .long 25
25494 .text
25495 l.movhi r3, tpoffha(foo)
25496 l.add r3, r3, r10
25497 l.lwz r4, tpofflo(foo)(r3)'
25498 tls_as_opt=--fatal-warnings
25500 powerpc-ibm-aix*)
25501 conftest_s='
25502 .extern __get_tpointer
25503 .toc
25504 LC..1:
25505 .tc a[TC],a[TL]@le
25506 .csect .text[PR]
25507 .tlstest:
25508 lwz 9,LC..1(2)
25509 bla __get_tpointer
25510 lwzx 3,9,3
25511 .globl a
25512 .csect a[TL],4
25514 .space 4'
25516 powerpc64*-*-*)
25517 conftest_s='
25518 .section ".tdata","awT",@progbits
25519 .align 3
25520 ld0: .space 8
25521 ld1: .space 8
25522 x1: .space 8
25523 x2: .space 8
25524 x3: .space 8
25525 .text
25526 addi 3,2,ld0@got@tlsgd
25527 bl .__tls_get_addr
25529 addi 3,2,ld1@toc
25530 bl .__tls_get_addr
25532 addi 3,2,x1@got@tlsld
25533 bl .__tls_get_addr
25535 addi 9,3,x1@dtprel
25536 bl .__tls_get_addr
25538 addis 9,3,x2@dtprel@ha
25539 addi 9,9,x2@dtprel@l
25540 bl .__tls_get_addr
25542 ld 9,x3@got@dtprel(2)
25543 add 9,9,3
25544 bl .__tls_get_addr
25545 nop'
25546 tls_as_opt="-a64 --fatal-warnings"
25548 powerpc*-*-*)
25549 conftest_s='
25550 .section ".tdata","awT",@progbits
25551 .align 2
25552 ld0: .space 4
25553 ld1: .space 4
25554 x1: .space 4
25555 x2: .space 4
25556 x3: .space 4
25557 .text
25558 addi 3,31,ld0@got@tlsgd
25559 bl __tls_get_addr
25560 addi 3,31,x1@got@tlsld
25561 bl __tls_get_addr
25562 addi 9,3,x1@dtprel
25563 addis 9,3,x2@dtprel@ha
25564 addi 9,9,x2@dtprel@l
25565 lwz 9,x3@got@tprel(31)
25566 add 9,9,x@tls
25567 addi 9,2,x1@tprel
25568 addis 9,2,x2@tprel@ha
25569 addi 9,9,x2@tprel@l'
25570 tls_as_opt="-a32 --fatal-warnings"
25572 riscv*-*-*)
25573 conftest_s='
25574 .section .tdata,"awT",@progbits
25575 x: .word 2
25576 .text
25577 la.tls.gd a0,x
25578 call __tls_get_addr'
25579 tls_as_opt='--fatal-warnings'
25581 s390-*-*)
25582 conftest_s='
25583 .section ".tdata","awT",@progbits
25584 foo: .long 25
25585 .text
25586 .long foo@TLSGD
25587 .long foo@TLSLDM
25588 .long foo@DTPOFF
25589 .long foo@NTPOFF
25590 .long foo@GOTNTPOFF
25591 .long foo@INDNTPOFF
25592 l %r1,foo@GOTNTPOFF(%r12)
25593 l %r1,0(%r1):tls_load:foo
25594 bas %r14,0(%r1,%r13):tls_gdcall:foo
25595 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25596 tls_as_opt="-m31 --fatal-warnings"
25598 s390x-*-*)
25599 conftest_s='
25600 .section ".tdata","awT",@progbits
25601 foo: .long 25
25602 .text
25603 .quad foo@TLSGD
25604 .quad foo@TLSLDM
25605 .quad foo@DTPOFF
25606 .quad foo@NTPOFF
25607 .quad foo@GOTNTPOFF
25608 lg %r1,foo@GOTNTPOFF(%r12)
25609 larl %r1,foo@INDNTPOFF
25610 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25611 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25612 tls_as_opt="-m64 -Aesame --fatal-warnings"
25614 sh-*-* | sh[123456789lbe]*-*-*)
25615 conftest_s='
25616 .section ".tdata","awT",@progbits
25617 foo: .long 25
25618 .text
25619 .long foo@TLSGD
25620 .long foo@TLSLDM
25621 .long foo@DTPOFF
25622 .long foo@GOTTPOFF
25623 .long foo@TPOFF'
25624 tls_as_opt=--fatal-warnings
25626 sparc*-*-*)
25627 case "$target" in
25628 sparc*-sun-solaris2.*)
25629 on_solaris=yes
25632 on_solaris=no
25634 esac
25635 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25636 conftest_s='
25637 .section ".tdata",#alloc,#write,#tls'
25638 else
25639 conftest_s='
25640 .section ".tdata","awT",@progbits'
25641 tls_as_opt="-32 --fatal-warnings"
25643 conftest_s="$conftest_s
25644 foo: .long 25
25645 .text
25646 sethi %tgd_hi22(foo), %o0
25647 add %o0, %tgd_lo10(foo), %o1
25648 add %l7, %o1, %o0, %tgd_add(foo)
25649 call __tls_get_addr, %tgd_call(foo)
25650 sethi %tldm_hi22(foo), %l1
25651 add %l1, %tldm_lo10(foo), %l2
25652 add %l7, %l2, %o0, %tldm_add(foo)
25653 call __tls_get_addr, %tldm_call(foo)
25654 sethi %tldo_hix22(foo), %l3
25655 xor %l3, %tldo_lox10(foo), %l4
25656 add %o0, %l4, %l5, %tldo_add(foo)
25657 sethi %tie_hi22(foo), %o3
25658 add %o3, %tie_lo10(foo), %o3
25659 ld [%l7 + %o3], %o2, %tie_ld(foo)
25660 add %g7, %o2, %o4, %tie_add(foo)
25661 sethi %tle_hix22(foo), %l1
25662 xor %l1, %tle_lox10(foo), %o5
25663 ld [%g7 + %o5], %o1"
25665 tilepro*-*-*)
25666 conftest_s='
25667 .section ".tdata","awT",@progbits
25668 foo: .long 25
25669 .text
25670 addli r0, zero, tls_gd(foo)
25671 auli r0, zero, tls_gd_ha16(foo)
25672 addli r0, r0, tls_gd_lo16(foo)
25673 jal __tls_get_addr
25674 addli r0, zero, tls_ie(foo)
25675 auli r0, r0, tls_ie_ha16(foo)
25676 addli r0, r0, tls_ie_lo16(foo)'
25677 tls_as_opt="--fatal-warnings"
25679 tilegx*-*-*)
25680 conftest_s='
25681 .section ".tdata","awT",@progbits
25682 foo: .long 25
25683 .text
25684 shl16insli r0, zero, hw0_last_tls_gd(foo)
25685 shl16insli r0, zero, hw1_last_tls_gd(foo)
25686 shl16insli r0, r0, hw0_tls_gd(foo)
25687 jal __tls_get_addr
25688 shl16insli r0, zero, hw1_last_tls_ie(foo)
25689 shl16insli r0, r0, hw0_tls_ie(foo)'
25690 tls_as_opt="--fatal-warnings"
25692 xtensa*-*-*)
25693 conftest_s='
25694 .section ".tdata","awT",@progbits
25695 foo: .long 25
25696 .text
25697 movi a8, foo@TLSFUNC
25698 movi a10, foo@TLSARG
25699 callx8.tls a8, foo@TLSCALL'
25701 esac
25702 set_have_as_tls=no
25703 if test "x$enable_tls" = xno ; then
25704 : # TLS explicitly disabled.
25705 elif test "x$enable_tls" = xyes ; then
25706 set_have_as_tls=yes # TLS explicitly enabled.
25707 elif test -z "$conftest_s"; then
25708 : # If we don't have a check, assume no support.
25709 else
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25711 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25712 if ${gcc_cv_as_tls+:} false; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_tls=no
25716 if test x$gcc_cv_as != x; then
25717 $as_echo "$conftest_s" > conftest.s
25718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -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_tls=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_tls" >&5
25734 $as_echo "$gcc_cv_as_tls" >&6; }
25735 if test $gcc_cv_as_tls = yes; then
25736 set_have_as_tls=yes
25740 if test $set_have_as_tls = yes ; then
25742 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25746 # Target-specific assembler checks.
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25749 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25750 gcc_cv_ld_static_dynamic=no
25751 gcc_cv_ld_static_option='-Bstatic'
25752 gcc_cv_ld_dynamic_option='-Bdynamic'
25753 if test $in_tree_ld = yes ; then
25754 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
25755 gcc_cv_ld_static_dynamic=yes
25757 elif test x$gcc_cv_ld != x; then
25758 # Check if linker supports -Bstatic/-Bdynamic option
25759 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25760 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25761 gcc_cv_ld_static_dynamic=yes
25762 else
25763 case "$target" in
25764 # AIX ld uses -b flags
25765 *-*-aix4.[23]* | *-*-aix[5-9]*)
25766 gcc_cv_ld_static_dynamic=yes
25767 gcc_cv_ld_static_option="-bstatic"
25768 gcc_cv_ld_dynamic_option="-bdynamic"
25770 # HP-UX ld uses -a flags to select between shared and archive.
25771 *-*-hpux*)
25772 if test x"$gnu_ld" = xno; then
25773 gcc_cv_ld_static_dynamic=yes
25774 gcc_cv_ld_static_option="-aarchive_shared"
25775 gcc_cv_ld_dynamic_option="-adefault"
25778 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25779 *-*-solaris2*)
25780 gcc_cv_ld_static_dynamic=yes
25782 esac
25785 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25787 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25790 cat >>confdefs.h <<_ACEOF
25791 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25792 _ACEOF
25795 cat >>confdefs.h <<_ACEOF
25796 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25797 _ACEOF
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25801 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25804 $as_echo_n "checking linker --version-script option... " >&6; }
25805 gcc_cv_ld_version_script=no
25806 ld_version_script_option=''
25807 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25808 gcc_cv_ld_version_script=yes
25809 ld_version_script_option='--version-script'
25810 elif test x$gcc_cv_ld != x; then
25811 case "$target" in
25812 # Solaris 2 ld always supports -M. It also supports a subset of
25813 # --version-script since Solaris 11.4, but requires
25814 # -z gnu-version-script-compat to activate.
25815 *-*-solaris2*)
25816 gcc_cv_ld_version_script=yes
25817 ld_version_script_option='-M'
25819 esac
25821 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25823 $as_echo "$gcc_cv_ld_version_script" >&6; }
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25827 $as_echo_n "checking linker soname option... " >&6; }
25828 gcc_cv_ld_soname=no
25829 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25830 gcc_cv_ld_soname=yes
25831 ld_soname_option='-soname'
25832 elif test x$gcc_cv_ld != x; then
25833 case "$target" in
25834 *-*-darwin*)
25835 gcc_cv_ld_soname=yes
25836 ld_soname_option='-install_name'
25838 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25839 # ld compatiblity since some Solaris 10 update.
25840 *-*-solaris2*)
25841 gcc_cv_ld_soname=yes
25842 ld_soname_option='-h'
25844 esac
25846 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25848 $as_echo "$gcc_cv_ld_soname" >&6; }
25851 if test x"$demangler_in_ld" = xyes; then
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25853 $as_echo_n "checking linker --demangle support... " >&6; }
25854 gcc_cv_ld_demangle=no
25855 if test $in_tree_ld = yes; then
25856 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 \
25857 gcc_cv_ld_demangle=yes
25859 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25860 # Check if the GNU linker supports --demangle option
25861 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25862 gcc_cv_ld_demangle=yes
25865 if test x"$gcc_cv_ld_demangle" = xyes; then
25867 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25871 $as_echo "$gcc_cv_ld_demangle" >&6; }
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25875 $as_echo_n "checking linker plugin support... " >&6; }
25876 gcc_cv_lto_plugin=0
25877 if test -f liblto_plugin.la; then
25878 save_ld_ver="$ld_ver"
25879 save_ld_vers_major="$ld_vers_major"
25880 save_ld_vers_minor="$ld_vers_minor"
25881 save_ld_is_gold="$ld_is_gold"
25883 ld_is_gold=no
25885 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25886 ld_ver="GNU ld"
25887 # FIXME: ld_is_gold?
25888 ld_vers_major="$gcc_cv_gld_major_version"
25889 ld_vers_minor="$gcc_cv_gld_minor_version"
25890 else
25891 # Determine plugin linker version.
25892 # FIXME: Partial duplicate from above, generalize.
25893 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25894 if echo "$ld_ver" | grep GNU > /dev/null; then
25895 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25896 ld_is_gold=yes
25897 ld_vers=`echo $ld_ver | sed -n \
25898 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25899 else
25900 ld_vers=`echo $ld_ver | sed -n \
25901 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25903 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25904 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25908 # Determine plugin support.
25909 if echo "$ld_ver" | grep GNU > /dev/null; then
25910 # Require GNU ld or gold 2.21+ for plugin support by default.
25911 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25912 gcc_cv_lto_plugin=2
25913 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25914 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25915 gcc_cv_lto_plugin=1
25919 ld_ver="$save_ld_ver"
25920 ld_vers_major="$save_ld_vers_major"
25921 ld_vers_minor="$save_ld_vers_minor"
25922 ld_is_gold="$save_ld_is_gold"
25925 cat >>confdefs.h <<_ACEOF
25926 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25927 _ACEOF
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25930 $as_echo "$gcc_cv_lto_plugin" >&6; }
25932 # Target OS-specific assembler checks.
25934 case "$target_os" in
25935 darwin*)
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25937 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25938 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25939 $as_echo_n "(cached) " >&6
25940 else
25941 gcc_cv_as_mmacosx_version_min=no
25942 if test x$gcc_cv_as != x; then
25943 $as_echo '.text' > conftest.s
25944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25950 then
25951 gcc_cv_as_mmacosx_version_min=yes
25952 else
25953 echo "configure: failed program was" >&5
25954 cat conftest.s >&5
25956 rm -f conftest.o conftest.s
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25960 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25961 if test $gcc_cv_as_mmacosx_version_min = yes; then
25963 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25968 esac
25970 # Target CPU-specific assembler checks.
25972 case "$target" in
25973 aarch64*-*-*)
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25975 $as_echo_n "checking assembler for -mabi option... " >&6; }
25976 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25977 $as_echo_n "(cached) " >&6
25978 else
25979 gcc_cv_as_aarch64_mabi=no
25980 if test x$gcc_cv_as != x; then
25981 $as_echo '.text' > conftest.s
25982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25984 (eval $ac_try) 2>&5
25985 ac_status=$?
25986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25987 test $ac_status = 0; }; }
25988 then
25989 gcc_cv_as_aarch64_mabi=yes
25990 else
25991 echo "configure: failed program was" >&5
25992 cat conftest.s >&5
25994 rm -f conftest.o conftest.s
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25998 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26001 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26003 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26005 else
26006 if test x$with_abi = xilp32; then
26007 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26008 Upgrade the Assembler." "$LINENO" 5
26010 if test x"$with_multilib_list" = xdefault; then
26011 TM_MULTILIB_CONFIG=lp64
26012 else
26013 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26014 for aarch64_multilib in ${aarch64_multilibs}; do
26015 case ${aarch64_multilib} in
26016 ilp32)
26017 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26018 Upgrade the Assembler." "$LINENO" 5
26022 esac
26023 done
26026 # Check if we have binutils support for relocations types needed by -fpic
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26028 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26029 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26030 $as_echo_n "(cached) " >&6
26031 else
26032 gcc_cv_as_aarch64_picreloc=no
26033 if test x$gcc_cv_as != x; then
26034 $as_echo '
26035 .text
26036 ldr x0, [x2, #:gotpage_lo15:globalsym]
26037 ' > conftest.s
26038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26040 (eval $ac_try) 2>&5
26041 ac_status=$?
26042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26043 test $ac_status = 0; }; }
26044 then
26045 gcc_cv_as_aarch64_picreloc=yes
26046 else
26047 echo "configure: failed program was" >&5
26048 cat conftest.s >&5
26050 rm -f conftest.o conftest.s
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26054 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26055 if test $gcc_cv_as_aarch64_picreloc = yes; then
26057 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26061 # Enable Branch Target Identification Mechanism and Return Address
26062 # Signing by default.
26063 # Check whether --enable-standard-branch-protection was given.
26064 if test "${enable_standard_branch_protection+set}" = set; then :
26065 enableval=$enable_standard_branch_protection;
26066 case $enableval in
26067 yes)
26068 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26073 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26074 Valid choices are 'yes' and 'no'." "$LINENO" 5
26076 esac
26080 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26081 # Check whether --enable-fix-cortex-a53-835769 was given.
26082 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26083 enableval=$enable_fix_cortex_a53_835769;
26084 case $enableval in
26085 yes)
26086 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26091 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26092 Valid choices are 'yes' and 'no'." "$LINENO" 5
26095 esac
26099 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26100 # Check whether --enable-fix-cortex-a53-843419 was given.
26101 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26102 enableval=$enable_fix_cortex_a53_843419;
26103 case $enableval in
26104 yes)
26105 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26110 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26111 Valid choices are 'yes' and 'no'." "$LINENO" 5
26114 esac
26120 # All TARGET_ABI_OSF targets.
26121 alpha*-*-linux* | alpha*-*-*bsd*)
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26123 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26124 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26125 $as_echo_n "(cached) " >&6
26126 else
26127 gcc_cv_as_alpha_explicit_relocs=no
26128 if test x$gcc_cv_as != x; then
26129 $as_echo ' .set nomacro
26130 .text
26131 extbl $3, $2, $3 !lituse_bytoff!1
26132 ldq $2, a($29) !literal!1
26133 ldq $4, b($29) !literal!2
26134 ldq_u $3, 0($2) !lituse_base!1
26135 ldq $27, f($29) !literal!5
26136 jsr $26, ($27), f !lituse_jsr!5
26137 ldah $29, 0($26) !gpdisp!3
26138 lda $0, c($29) !gprel
26139 ldah $1, d($29) !gprelhigh
26140 lda $1, d($1) !gprellow
26141 lda $29, 0($29) !gpdisp!3' > conftest.s
26142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26147 test $ac_status = 0; }; }
26148 then
26149 gcc_cv_as_alpha_explicit_relocs=yes
26150 else
26151 echo "configure: failed program was" >&5
26152 cat conftest.s >&5
26154 rm -f conftest.o conftest.s
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26158 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26159 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26161 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26166 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26167 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26168 $as_echo_n "(cached) " >&6
26169 else
26170 gcc_cv_as_alpha_jsrdirect_relocs=no
26171 if test x$gcc_cv_as != x; then
26172 $as_echo ' .set nomacro
26173 .text
26174 ldq $27, a($29) !literal!1
26175 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26182 then
26183 gcc_cv_as_alpha_jsrdirect_relocs=yes
26184 else
26185 echo "configure: failed program was" >&5
26186 cat conftest.s >&5
26188 rm -f conftest.o conftest.s
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26192 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26193 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26195 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26201 avr-*-*)
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26203 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26204 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26205 $as_echo_n "(cached) " >&6
26206 else
26207 gcc_cv_as_avr_mlink_relax=no
26208 if test x$gcc_cv_as != x; then
26209 $as_echo '.text' > conftest.s
26210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212 (eval $ac_try) 2>&5
26213 ac_status=$?
26214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215 test $ac_status = 0; }; }
26216 then
26217 gcc_cv_as_avr_mlink_relax=yes
26218 else
26219 echo "configure: failed program was" >&5
26220 cat conftest.s >&5
26222 rm -f conftest.o conftest.s
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26226 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26227 if test $gcc_cv_as_avr_mlink_relax = yes; then
26229 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26235 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26236 if ${gcc_cv_as_avr_mrmw+:} false; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26239 gcc_cv_as_avr_mrmw=no
26240 if test x$gcc_cv_as != x; then
26241 $as_echo '.text' > conftest.s
26242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26248 then
26249 gcc_cv_as_avr_mrmw=yes
26250 else
26251 echo "configure: failed program was" >&5
26252 cat conftest.s >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26258 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26259 if test $gcc_cv_as_avr_mrmw = yes; then
26261 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26267 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26268 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26271 gcc_cv_as_avr_mgccisr=no
26272 if test x$gcc_cv_as != x; then
26273 $as_echo '.text
26274 __gcc_isr 1
26275 __gcc_isr 2
26276 __gcc_isr 0,r24
26277 ' > conftest.s
26278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283 test $ac_status = 0; }; }
26284 then
26285 gcc_cv_as_avr_mgccisr=yes
26286 else
26287 echo "configure: failed program was" >&5
26288 cat conftest.s >&5
26290 rm -f conftest.o conftest.s
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26294 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26295 if test $gcc_cv_as_avr_mgccisr = yes; then
26297 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26302 # Check how default linker description file implements .rodata for
26303 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26304 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26306 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26307 cat > conftest.s <<EOF
26308 .section .rodata,"a",@progbits
26309 .global xxvaryy
26310 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26311 xxvaryy:
26312 .word 1
26314 rm -f conftest.nm
26315 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }
26321 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26324 ac_status=$?
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26327 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329 (eval $ac_try) 2>&5
26330 ac_status=$?
26331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332 test $ac_status = 0; }; }
26333 if test -s conftest.nm
26334 then
26335 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26337 $as_echo "yes" >&6; }
26339 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26341 else
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26343 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26344 echo "$as_me: nm output was" >&5
26345 cat conftest.nm >&5
26346 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26347 { $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
26348 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26350 else
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26352 $as_echo "test failed" >&6; }
26353 echo "$as_me: failed program was" >&5
26354 cat conftest.s >&5
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26356 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26358 rm -f conftest.s conftest.o conftest.elf conftest.nm
26361 cris-*-*)
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26363 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26364 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26365 $as_echo_n "(cached) " >&6
26366 else
26367 gcc_cv_as_cris_no_mul_bug=no
26368 if test x$gcc_cv_as != x; then
26369 $as_echo '.text' > conftest.s
26370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26372 (eval $ac_try) 2>&5
26373 ac_status=$?
26374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26375 test $ac_status = 0; }; }
26376 then
26377 gcc_cv_as_cris_no_mul_bug=yes
26378 else
26379 echo "configure: failed program was" >&5
26380 cat conftest.s >&5
26382 rm -f conftest.o conftest.s
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26386 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26387 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26389 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26395 sparc*-*-*)
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26397 $as_echo_n "checking assembler for -relax option... " >&6; }
26398 if ${gcc_cv_as_sparc_relax+:} false; then :
26399 $as_echo_n "(cached) " >&6
26400 else
26401 gcc_cv_as_sparc_relax=no
26402 if test x$gcc_cv_as != x; then
26403 $as_echo '.text' > conftest.s
26404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409 test $ac_status = 0; }; }
26410 then
26411 gcc_cv_as_sparc_relax=yes
26412 else
26413 echo "configure: failed program was" >&5
26414 cat conftest.s >&5
26416 rm -f conftest.o conftest.s
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26420 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26421 if test $gcc_cv_as_sparc_relax = yes; then
26423 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26429 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26430 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26431 $as_echo_n "(cached) " >&6
26432 else
26433 gcc_cv_as_sparc_gotdata_op=no
26434 if test x$gcc_cv_as != x; then
26435 $as_echo '.text
26436 .align 4
26437 foo:
26439 bar:
26440 sethi %gdop_hix22(foo), %g1
26441 xor %g1, %gdop_lox10(foo), %g1
26442 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26445 (eval $ac_try) 2>&5
26446 ac_status=$?
26447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26448 test $ac_status = 0; }; }
26449 then
26450 if test x$gcc_cv_ld != x \
26451 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26452 if test x$gcc_cv_objdump != x; then
26453 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26454 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26455 gcc_cv_as_sparc_gotdata_op=no
26456 else
26457 gcc_cv_as_sparc_gotdata_op=yes
26461 rm -f conftest
26462 else
26463 echo "configure: failed program was" >&5
26464 cat conftest.s >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26470 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26471 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26473 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26479 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26480 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26481 $as_echo_n "(cached) " >&6
26482 else
26483 gcc_cv_as_sparc_ua_pcrel=no
26484 if test x$gcc_cv_as != x; then
26485 $as_echo '.text
26486 foo:
26488 .data
26489 .align 4
26490 .byte 0
26491 .uaword %r_disp32(foo)' > conftest.s
26492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26497 test $ac_status = 0; }; }
26498 then
26499 if test x$gcc_cv_ld != x \
26500 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26501 gcc_cv_as_sparc_ua_pcrel=yes
26503 rm -f conftest
26504 else
26505 echo "configure: failed program was" >&5
26506 cat conftest.s >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26512 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26513 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26515 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26519 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26520 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26521 $as_echo_n "(cached) " >&6
26522 else
26523 gcc_cv_as_sparc_ua_pcrel_hidden=no
26524 if test x$gcc_cv_as != x; then
26525 $as_echo '.data
26526 .align 4
26527 .byte 0x31
26528 .uaword %r_disp32(foo)
26529 .byte 0x32, 0x33, 0x34
26530 .global foo
26531 .hidden foo
26532 foo:
26533 .skip 4' > conftest.s
26534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26539 test $ac_status = 0; }; }
26540 then
26541 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26542 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26543 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26544 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26545 if $gcc_cv_objdump -R conftest 2> /dev/null \
26546 | grep 'DISP32' > /dev/null 2>&1; then
26548 else
26549 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26552 rm -f conftest
26553 else
26554 echo "configure: failed program was" >&5
26555 cat conftest.s >&5
26557 rm -f conftest.o conftest.s
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26561 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26562 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26564 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26570 # unaligned pcrel relocs
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26573 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26574 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26575 $as_echo_n "(cached) " >&6
26576 else
26577 gcc_cv_as_sparc_offsetable_lo10=no
26578 if test x$gcc_cv_as != x; then
26579 $as_echo '.text
26580 or %g1, %lo(ab) + 12, %g1
26581 or %g1, %lo(ab + 12), %g1' > conftest.s
26582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26584 (eval $ac_try) 2>&5
26585 ac_status=$?
26586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26587 test $ac_status = 0; }; }
26588 then
26589 if test x$gcc_cv_objdump != x \
26590 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26591 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26592 gcc_cv_as_sparc_offsetable_lo10=yes
26594 else
26595 echo "configure: failed program was" >&5
26596 cat conftest.s >&5
26598 rm -f conftest.o conftest.s
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26602 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26603 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26605 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26611 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26612 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26613 $as_echo_n "(cached) " >&6
26614 else
26615 gcc_cv_as_sparc_fmaf=no
26616 if test x$gcc_cv_as != x; then
26617 $as_echo '.text
26618 .register %g2, #scratch
26619 .register %g3, #scratch
26620 .align 4
26621 fmaddd %f0, %f2, %f4, %f6
26622 addxccc %g1, %g2, %g3
26623 fsrl32 %f2, %f4, %f8
26624 fnaddd %f10, %f12, %f14' > conftest.s
26625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26631 then
26632 gcc_cv_as_sparc_fmaf=yes
26633 else
26634 echo "configure: failed program was" >&5
26635 cat conftest.s >&5
26637 rm -f conftest.o conftest.s
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26641 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26642 if test $gcc_cv_as_sparc_fmaf = yes; then
26644 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26650 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26651 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26652 $as_echo_n "(cached) " >&6
26653 else
26654 gcc_cv_as_sparc_sparc4=no
26655 if test x$gcc_cv_as != x; then
26656 $as_echo '.text
26657 .register %g2, #scratch
26658 .register %g3, #scratch
26659 .align 4
26660 cxbe %g2, %g3, 1f
26661 1: cwbneg %g2, %g3, 1f
26662 1: sha1
26664 aes_kexpand0 %f4, %f6, %f8
26665 des_round %f38, %f40, %f42, %f44
26666 camellia_f %f54, %f56, %f58, %f60
26667 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26670 (eval $ac_try) 2>&5
26671 ac_status=$?
26672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26673 test $ac_status = 0; }; }
26674 then
26675 gcc_cv_as_sparc_sparc4=yes
26676 else
26677 echo "configure: failed program was" >&5
26678 cat conftest.s >&5
26680 rm -f conftest.o conftest.s
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26684 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26685 if test $gcc_cv_as_sparc_sparc4 = yes; then
26687 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26693 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26694 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26695 $as_echo_n "(cached) " >&6
26696 else
26697 gcc_cv_as_sparc_sparc5=no
26698 if test x$gcc_cv_as != x; then
26699 $as_echo '.text
26700 .register %g2, #scratch
26701 .register %g3, #scratch
26702 .align 4
26703 subxc %g1, %g2, %g3
26704 fpadd8 %f0, %f2, %f4' > conftest.s
26705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26707 (eval $ac_try) 2>&5
26708 ac_status=$?
26709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26710 test $ac_status = 0; }; }
26711 then
26712 gcc_cv_as_sparc_sparc5=yes
26713 else
26714 echo "configure: failed program was" >&5
26715 cat conftest.s >&5
26717 rm -f conftest.o conftest.s
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26721 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26722 if test $gcc_cv_as_sparc_sparc5 = yes; then
26724 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26730 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26731 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26732 $as_echo_n "(cached) " >&6
26733 else
26734 gcc_cv_as_sparc_sparc6=no
26735 if test x$gcc_cv_as != x; then
26736 $as_echo '.text
26737 .register %g2, #scratch
26738 .register %g3, #scratch
26739 .align 4
26740 rd %entropy, %g1
26741 fpsll64x %f0, %f2, %f4' > conftest.s
26742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }
26748 then
26749 gcc_cv_as_sparc_sparc6=yes
26750 else
26751 echo "configure: failed program was" >&5
26752 cat conftest.s >&5
26754 rm -f conftest.o conftest.s
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26758 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26759 if test $gcc_cv_as_sparc_sparc6 = yes; then
26761 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26767 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26768 if ${gcc_cv_as_sparc_leon+:} false; then :
26769 $as_echo_n "(cached) " >&6
26770 else
26771 gcc_cv_as_sparc_leon=no
26772 if test x$gcc_cv_as != x; then
26773 $as_echo '.text
26774 .register %g2, #scratch
26775 .register %g3, #scratch
26776 .align 4
26777 smac %g2, %g3, %g1
26778 umac %g2, %g3, %g1
26779 casa [%g2] 0xb, %g3, %g1' > conftest.s
26780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26786 then
26787 gcc_cv_as_sparc_leon=yes
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26796 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26797 if test $gcc_cv_as_sparc_leon = yes; then
26799 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26805 i[34567]86-*-* | x86_64-*-*)
26806 case $target_os in
26807 cygwin*)
26808 # Full C++ conformance when using a shared libstdc++-v3 requires some
26809 # support from the Cygwin DLL, which in more recent versions exports
26810 # wrappers to aid in interposing and redirecting operators new, delete,
26811 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26812 # are configuring for a version of Cygwin that exports the wrappers.
26813 if test x$host = x$target && test x$host_cpu = xi686; then
26814 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26815 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26816 gcc_ac_cygwin_dll_wrappers=yes
26817 else
26818 gcc_ac_cygwin_dll_wrappers=no
26821 else
26822 # Can't check presence of libc functions during cross-compile, so
26823 # we just have to assume we're building for an up-to-date target.
26824 gcc_ac_cygwin_dll_wrappers=yes
26827 cat >>confdefs.h <<_ACEOF
26828 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26829 _ACEOF
26831 esac
26832 case $target_os in
26833 cygwin* | pe | mingw32*)
26834 # Recent binutils allows the three-operand form of ".comm" on PE. This
26835 # definition is used unconditionally to initialise the default state of
26836 # the target option variable that governs usage of the feature.
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26838 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26839 if ${gcc_cv_as_comm_has_align+:} false; then :
26840 $as_echo_n "(cached) " >&6
26841 else
26842 gcc_cv_as_comm_has_align=no
26843 if test x$gcc_cv_as != x; then
26844 $as_echo '.comm foo,1,32' > conftest.s
26845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850 test $ac_status = 0; }; }
26851 then
26852 gcc_cv_as_comm_has_align=yes
26853 else
26854 echo "configure: failed program was" >&5
26855 cat conftest.s >&5
26857 rm -f conftest.o conftest.s
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26861 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26865 cat >>confdefs.h <<_ACEOF
26866 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26867 _ACEOF
26869 # Used for DWARF 2 in PE
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26871 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26872 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26873 $as_echo_n "(cached) " >&6
26874 else
26875 gcc_cv_as_ix86_pe_secrel32=no
26876 if test x$gcc_cv_as != x; then
26877 $as_echo '.text
26878 foo: nop
26879 .data
26880 .secrel32 foo' > conftest.s
26881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26883 (eval $ac_try) 2>&5
26884 ac_status=$?
26885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26886 test $ac_status = 0; }; }
26887 then
26888 if test x$gcc_cv_ld != x \
26889 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26890 gcc_cv_as_ix86_pe_secrel32=yes
26892 rm -f conftest
26893 else
26894 echo "configure: failed program was" >&5
26895 cat conftest.s >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26901 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26902 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26904 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26908 # Test if the assembler supports the extended form of the .section
26909 # directive that specifies section alignment. LTO support uses this,
26910 # but normally only after installation, so we warn but don't fail the
26911 # configure if LTO is enabled but the assembler does not support it.
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26913 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26914 if ${gcc_cv_as_section_has_align+:} false; then :
26915 $as_echo_n "(cached) " >&6
26916 else
26917 gcc_cv_as_section_has_align=no
26918 if test x$gcc_cv_as != x; then
26919 $as_echo '.section lto_test,"dr0"' > conftest.s
26920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; }
26926 then
26927 gcc_cv_as_section_has_align=yes
26928 else
26929 echo "configure: failed program was" >&5
26930 cat conftest.s >&5
26932 rm -f conftest.o conftest.s
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26936 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26939 if test x$gcc_cv_as_section_has_align != xyes; then
26940 case ",$enable_languages," in
26941 *,lto,*)
26942 { $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
26943 $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;}
26945 esac
26948 esac
26949 case $target_os in
26950 darwin2[0-9]* | darwin19*)
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
26952 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
26953 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
26954 $as_echo_n "(cached) " >&6
26955 else
26956 gcc_cv_as_mllvm_x86_pad_for_align=no
26957 if test x$gcc_cv_as != x; then
26958 $as_echo '.text' > conftest.s
26959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
26960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26961 (eval $ac_try) 2>&5
26962 ac_status=$?
26963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }; }
26965 then
26966 gcc_cv_as_mllvm_x86_pad_for_align=yes
26967 else
26968 echo "configure: failed program was" >&5
26969 cat conftest.s >&5
26971 rm -f conftest.o conftest.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
26975 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
26976 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
26978 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
26983 esac
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26986 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26987 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26988 $as_echo_n "(cached) " >&6
26989 else
26990 gcc_cv_as_ix86_xbrace_comment=no
26991 if test x$gcc_cv_as != x; then
26992 $as_echo '.text' > conftest.s
26993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998 test $ac_status = 0; }; }
26999 then
27000 gcc_cv_as_ix86_xbrace_comment=yes
27001 else
27002 echo "configure: failed program was" >&5
27003 cat conftest.s >&5
27005 rm -f conftest.o conftest.s
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27009 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27010 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27012 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27018 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27019 if ${gcc_cv_as_ix86_filds+:} false; then :
27020 $as_echo_n "(cached) " >&6
27021 else
27022 gcc_cv_as_ix86_filds=no
27023 if test x$gcc_cv_as != x; then
27024 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27031 then
27032 gcc_cv_as_ix86_filds=yes
27033 else
27034 echo "configure: failed program was" >&5
27035 cat conftest.s >&5
27037 rm -f conftest.o conftest.s
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27041 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27042 if test $gcc_cv_as_ix86_filds = yes; then
27044 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27050 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27051 if ${gcc_cv_as_ix86_fildq+:} false; then :
27052 $as_echo_n "(cached) " >&6
27053 else
27054 gcc_cv_as_ix86_fildq=no
27055 if test x$gcc_cv_as != x; then
27056 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27062 test $ac_status = 0; }; }
27063 then
27064 gcc_cv_as_ix86_fildq=yes
27065 else
27066 echo "configure: failed program was" >&5
27067 cat conftest.s >&5
27069 rm -f conftest.o conftest.s
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27073 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27074 if test $gcc_cv_as_ix86_fildq = yes; then
27076 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27082 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27083 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27084 $as_echo_n "(cached) " >&6
27085 else
27086 gcc_cv_as_ix86_cmov_sun_syntax=no
27087 if test x$gcc_cv_as != x; then
27088 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27091 (eval $ac_try) 2>&5
27092 ac_status=$?
27093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094 test $ac_status = 0; }; }
27095 then
27096 gcc_cv_as_ix86_cmov_sun_syntax=yes
27097 else
27098 echo "configure: failed program was" >&5
27099 cat conftest.s >&5
27101 rm -f conftest.o conftest.s
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27105 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27106 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27108 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27114 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27115 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27116 $as_echo_n "(cached) " >&6
27117 else
27118 gcc_cv_as_ix86_ffreep=no
27119 if test x$gcc_cv_as != x; then
27120 $as_echo 'ffreep %st(1)' > conftest.s
27121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27123 (eval $ac_try) 2>&5
27124 ac_status=$?
27125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27126 test $ac_status = 0; }; }
27127 then
27128 gcc_cv_as_ix86_ffreep=yes
27129 else
27130 echo "configure: failed program was" >&5
27131 cat conftest.s >&5
27133 rm -f conftest.o conftest.s
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27137 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27138 if test $gcc_cv_as_ix86_ffreep = yes; then
27140 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27146 $as_echo_n "checking assembler for .quad directive... " >&6; }
27147 if ${gcc_cv_as_ix86_quad+:} false; then :
27148 $as_echo_n "(cached) " >&6
27149 else
27150 gcc_cv_as_ix86_quad=no
27151 if test x$gcc_cv_as != x; then
27152 $as_echo '.quad 0' > conftest.s
27153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27158 test $ac_status = 0; }; }
27159 then
27160 gcc_cv_as_ix86_quad=yes
27161 else
27162 echo "configure: failed program was" >&5
27163 cat conftest.s >&5
27165 rm -f conftest.o conftest.s
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27169 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27170 if test $gcc_cv_as_ix86_quad = yes; then
27172 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27178 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27179 if ${gcc_cv_as_ix86_sahf+:} false; then :
27180 $as_echo_n "(cached) " >&6
27181 else
27182 gcc_cv_as_ix86_sahf=no
27183 if test x$gcc_cv_as != x; then
27184 $as_echo '.code64
27185 sahf' > conftest.s
27186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27188 (eval $ac_try) 2>&5
27189 ac_status=$?
27190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27191 test $ac_status = 0; }; }
27192 then
27193 gcc_cv_as_ix86_sahf=yes
27194 else
27195 echo "configure: failed program was" >&5
27196 cat conftest.s >&5
27198 rm -f conftest.o conftest.s
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27202 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27203 if test $gcc_cv_as_ix86_sahf = yes; then
27205 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27211 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27212 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27213 $as_echo_n "(cached) " >&6
27214 else
27215 gcc_cv_as_ix86_interunit_movq=no
27216 if test x$gcc_cv_as != x; then
27217 $as_echo '.code64
27218 movq %mm0, %rax
27219 movq %rax, %xmm0' > conftest.s
27220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27225 test $ac_status = 0; }; }
27226 then
27227 gcc_cv_as_ix86_interunit_movq=yes
27228 else
27229 echo "configure: failed program was" >&5
27230 cat conftest.s >&5
27232 rm -f conftest.o conftest.s
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27236 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27240 cat >>confdefs.h <<_ACEOF
27241 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27242 _ACEOF
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27246 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27247 if ${gcc_cv_as_ix86_hle+:} false; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 gcc_cv_as_ix86_hle=no
27251 if test x$gcc_cv_as != x; then
27252 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }
27259 then
27260 gcc_cv_as_ix86_hle=yes
27261 else
27262 echo "configure: failed program was" >&5
27263 cat conftest.s >&5
27265 rm -f conftest.o conftest.s
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27269 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27270 if test $gcc_cv_as_ix86_hle = yes; then
27272 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27278 $as_echo_n "checking assembler for swap suffix... " >&6; }
27279 if ${gcc_cv_as_ix86_swap+:} false; then :
27280 $as_echo_n "(cached) " >&6
27281 else
27282 gcc_cv_as_ix86_swap=no
27283 if test x$gcc_cv_as != x; then
27284 $as_echo 'movl.s %esp, %ebp' > conftest.s
27285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27287 (eval $ac_try) 2>&5
27288 ac_status=$?
27289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27290 test $ac_status = 0; }; }
27291 then
27292 gcc_cv_as_ix86_swap=yes
27293 else
27294 echo "configure: failed program was" >&5
27295 cat conftest.s >&5
27297 rm -f conftest.o conftest.s
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27301 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27302 if test $gcc_cv_as_ix86_swap = yes; then
27304 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27310 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27311 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27312 $as_echo_n "(cached) " >&6
27313 else
27314 gcc_cv_as_ix86_diff_sect_delta=no
27315 if test x$gcc_cv_as != x; then
27316 $as_echo '.section .rodata
27317 .L1:
27318 .long .L2-.L1
27319 .long .L3-.L1
27320 .text
27321 .L3: nop
27322 .L2: nop' > conftest.s
27323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27325 (eval $ac_try) 2>&5
27326 ac_status=$?
27327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27328 test $ac_status = 0; }; }
27329 then
27330 gcc_cv_as_ix86_diff_sect_delta=yes
27331 else
27332 echo "configure: failed program was" >&5
27333 cat conftest.s >&5
27335 rm -f conftest.o conftest.s
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27339 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27340 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27342 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27348 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27349 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27350 $as_echo_n "(cached) " >&6
27351 else
27352 gcc_cv_as_ix86_rep_lock_prefix=no
27353 if test x$gcc_cv_as != x; then
27354 $as_echo 'rep movsl
27355 rep ret
27356 rep nop
27357 rep bsf %ecx, %eax
27358 rep bsr %ecx, %eax
27359 lock addl %edi, (%eax,%esi)
27360 lock orl $0, (%esp)' > conftest.s
27361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; }
27367 then
27368 gcc_cv_as_ix86_rep_lock_prefix=yes
27369 else
27370 echo "configure: failed program was" >&5
27371 cat conftest.s >&5
27373 rm -f conftest.o conftest.s
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27377 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27378 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27380 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27386 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27387 if ${gcc_cv_as_ix86_ud2+:} false; then :
27388 $as_echo_n "(cached) " >&6
27389 else
27390 gcc_cv_as_ix86_ud2=no
27391 if test x$gcc_cv_as != x; then
27392 $as_echo 'ud2' > conftest.s
27393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27395 (eval $ac_try) 2>&5
27396 ac_status=$?
27397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398 test $ac_status = 0; }; }
27399 then
27400 gcc_cv_as_ix86_ud2=yes
27401 else
27402 echo "configure: failed program was" >&5
27403 cat conftest.s >&5
27405 rm -f conftest.o conftest.s
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27409 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27410 if test $gcc_cv_as_ix86_ud2 = yes; then
27412 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27417 # Enforce 32-bit output with gas and gld.
27418 if test x$gas = xyes; then
27419 as_ix86_gas_32_opt="--32"
27421 if echo "$ld_ver" | grep GNU > /dev/null; then
27422 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27423 ld_ix86_gld_32_opt="-melf_i386_sol2"
27424 else
27425 ld_ix86_gld_32_opt="-melf_i386"
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27430 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27431 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27432 $as_echo_n "(cached) " >&6
27433 else
27434 gcc_cv_as_ix86_tlsgdplt=no
27435 if test x$gcc_cv_as != x; then
27436 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27439 (eval $ac_try) 2>&5
27440 ac_status=$?
27441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27442 test $ac_status = 0; }; }
27443 then
27444 if test x$gcc_cv_ld != x \
27445 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27446 gcc_cv_as_ix86_tlsgdplt=yes
27448 rm -f conftest
27449 else
27450 echo "configure: failed program was" >&5
27451 cat conftest.s >&5
27453 rm -f conftest.o conftest.s
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27457 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27458 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27460 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27465 conftest_s='
27466 .section .tdata,"aw'$tls_section_flag'",@progbits
27467 tls_ld:
27468 .section .text,"ax",@progbits
27469 call tls_ld@tlsldmplt'
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27472 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27473 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27474 $as_echo_n "(cached) " >&6
27475 else
27476 gcc_cv_as_ix86_tlsldmplt=no
27477 if test x$gcc_cv_as != x; then
27478 $as_echo "$conftest_s" > conftest.s
27479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27485 then
27486 if test x$gcc_cv_ld != x \
27487 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27488 gcc_cv_as_ix86_tlsldmplt=yes
27490 rm -f conftest
27491 else
27492 echo "configure: failed program was" >&5
27493 cat conftest.s >&5
27495 rm -f conftest.o conftest.s
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27499 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27503 cat >>confdefs.h <<_ACEOF
27504 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27505 _ACEOF
27508 conftest_s='
27509 .section .text,"ax",@progbits
27510 .globl _start
27511 .type _start, @function
27512 _start:
27513 leal value@tlsldm(%ebx), %eax
27514 call ___tls_get_addr@plt
27516 .section .tdata,"aw'$tls_section_flag'",@progbits
27517 .type value, @object
27518 value:'
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27520 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27521 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27522 $as_echo_n "(cached) " >&6
27523 else
27524 gcc_cv_as_ix86_tlsldm=no
27525 if test x$gcc_cv_as != x; then
27526 $as_echo "$conftest_s" > conftest.s
27527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27529 (eval $ac_try) 2>&5
27530 ac_status=$?
27531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27532 test $ac_status = 0; }; }
27533 then
27534 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27535 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27536 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27537 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27538 gcc_cv_as_ix86_tlsldm=yes
27541 rm -f conftest
27542 else
27543 echo "configure: failed program was" >&5
27544 cat conftest.s >&5
27546 rm -f conftest.o conftest.s
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27550 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27554 cat >>confdefs.h <<_ACEOF
27555 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27556 _ACEOF
27559 conftest_s='
27560 .data
27561 bar:
27562 .byte 1
27563 .text
27564 .global _start
27565 _start:
27566 cmpl $0, bar@GOT
27567 jmp *_start@GOT'
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27569 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27570 if ${gcc_cv_as_ix86_got32x+:} false; then :
27571 $as_echo_n "(cached) " >&6
27572 else
27573 gcc_cv_as_ix86_got32x=no
27574 if test x$gcc_cv_as != x; then
27575 $as_echo "$conftest_s" > conftest.s
27576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27578 (eval $ac_try) 2>&5
27579 ac_status=$?
27580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27581 test $ac_status = 0; }; }
27582 then
27583 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27584 && test x$gcc_cv_readelf != x \
27585 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27586 | grep R_386_GOT32X > /dev/null 2>&1 \
27587 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27588 if $gcc_cv_objdump -dw conftest 2>&1 \
27589 | grep 0xffffff > /dev/null 2>&1; then
27590 gcc_cv_as_ix86_got32x=no
27591 else
27592 gcc_cv_as_ix86_got32x=yes
27595 rm -f conftest
27596 else
27597 echo "configure: failed program was" >&5
27598 cat conftest.s >&5
27600 rm -f conftest.o conftest.s
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27604 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27610 _ACEOF
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27614 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27615 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27616 $as_echo_n "(cached) " >&6
27617 else
27618 gcc_cv_as_ix86_gotoff_in_data=no
27619 if test x$gcc_cv_as != x; then
27620 $as_echo ' .text
27621 .L0:
27623 .data
27624 .long .L0@GOTOFF' > conftest.s
27625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627 (eval $ac_try) 2>&5
27628 ac_status=$?
27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; }
27631 then
27632 gcc_cv_as_ix86_gotoff_in_data=yes
27633 else
27634 echo "configure: failed program was" >&5
27635 cat conftest.s >&5
27637 rm -f conftest.o conftest.s
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27641 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27645 cat >>confdefs.h <<_ACEOF
27646 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27647 _ACEOF
27650 conftest_s='
27651 .section .text,"ax",@progbits
27652 .globl _start
27653 .type _start, @function
27654 _start:
27655 leal ld@tlsldm(%ecx), %eax
27656 call *___tls_get_addr@GOT(%ecx)
27657 leal gd@tlsgd(%ecx), %eax
27658 call *___tls_get_addr@GOT(%ecx)
27660 .section .tdata,"aw'$tls_section_flag'",@progbits
27661 .type ld, @object
27663 .byte 0
27664 .globl gd
27665 .type gd, @object
27667 .byte 0'
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27669 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27670 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27671 $as_echo_n "(cached) " >&6
27672 else
27673 gcc_cv_as_ix86_tls_get_addr_via_got=no
27674 if test x$gcc_cv_as != x; then
27675 $as_echo "$conftest_s" > conftest.s
27676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27682 then
27683 if test x$gcc_cv_ld != x \
27684 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27685 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27687 rm -f conftest
27688 else
27689 echo "configure: failed program was" >&5
27690 cat conftest.s >&5
27692 rm -f conftest.o conftest.s
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27696 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27700 cat >>confdefs.h <<_ACEOF
27701 #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`
27702 _ACEOF
27706 ia64*-*-*)
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27708 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27709 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27710 $as_echo_n "(cached) " >&6
27711 else
27712 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27713 if test x$gcc_cv_as != x; then
27714 $as_echo ' .text
27715 addl r15 = @ltoffx(x#), gp
27717 ld8.mov r16 = [r15], x#
27718 ' > conftest.s
27719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27725 then
27726 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27727 else
27728 echo "configure: failed program was" >&5
27729 cat conftest.s >&5
27731 rm -f conftest.o conftest.s
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27735 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27736 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27738 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27745 powerpc*-*-*)
27747 case $target in
27748 *-*-darwin*)
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27750 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27751 if ${gcc_cv_as_machine_directive+:} false; then :
27752 $as_echo_n "(cached) " >&6
27753 else
27754 gcc_cv_as_machine_directive=no
27755 if test x$gcc_cv_as != x; then
27756 $as_echo ' .machine ppc7400' > conftest.s
27757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759 (eval $ac_try) 2>&5
27760 ac_status=$?
27761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762 test $ac_status = 0; }; }
27763 then
27764 gcc_cv_as_machine_directive=yes
27765 else
27766 echo "configure: failed program was" >&5
27767 cat conftest.s >&5
27769 rm -f conftest.o conftest.s
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27773 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27776 if test x$gcc_cv_as_machine_directive != xyes; then
27777 echo "*** This target requires an assembler supporting \".machine\"" >&2
27778 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27779 test x$build = x$target && exit 1
27782 esac
27784 case $target in
27785 *-*-aix*) conftest_s=' .machine "pwr5"
27786 .csect .text[PR]
27787 mfcr 3,128';;
27788 *-*-darwin*) conftest_s=' .text
27789 mfcr r3,128';;
27790 *) conftest_s=' .machine power4
27791 .text
27792 mfcr 3,128';;
27793 esac
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27796 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27797 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27798 $as_echo_n "(cached) " >&6
27799 else
27800 gcc_cv_as_powerpc_mfcrf=no
27801 if test x$gcc_cv_as != x; then
27802 $as_echo "$conftest_s" > conftest.s
27803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27805 (eval $ac_try) 2>&5
27806 ac_status=$?
27807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27808 test $ac_status = 0; }; }
27809 then
27810 gcc_cv_as_powerpc_mfcrf=yes
27811 else
27812 echo "configure: failed program was" >&5
27813 cat conftest.s >&5
27815 rm -f conftest.o conftest.s
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27819 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27820 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27822 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27827 case $target in
27828 *-*-aix*) conftest_s=' .csect .text[PR]
27829 LCF..0:
27830 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27831 *-*-darwin*)
27832 conftest_s=' .text
27833 LCF0:
27834 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27835 *) conftest_s=' .text
27836 .LCF0:
27837 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27838 esac
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27841 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27842 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27843 $as_echo_n "(cached) " >&6
27844 else
27845 gcc_cv_as_powerpc_rel16=no
27846 if test x$gcc_cv_as != x; then
27847 $as_echo "$conftest_s" > conftest.s
27848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853 test $ac_status = 0; }; }
27854 then
27855 gcc_cv_as_powerpc_rel16=yes
27856 else
27857 echo "configure: failed program was" >&5
27858 cat conftest.s >&5
27860 rm -f conftest.o conftest.s
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27864 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27865 if test $gcc_cv_as_powerpc_rel16 = yes; then
27867 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27872 case $target in
27873 *-*-aix*) conftest_s=' .machine "pwr7"
27874 .csect .text[PR]
27875 lxvd2x 1,2,3';;
27876 *) conftest_s=' .machine power7
27877 .text
27878 lxvd2x 1,2,3';;
27879 esac
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27882 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27883 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27884 $as_echo_n "(cached) " >&6
27885 else
27886 gcc_cv_as_powerpc_vsx=no
27887 if test x$gcc_cv_as != x; then
27888 $as_echo "$conftest_s" > conftest.s
27889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27891 (eval $ac_try) 2>&5
27892 ac_status=$?
27893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27894 test $ac_status = 0; }; }
27895 then
27896 gcc_cv_as_powerpc_vsx=yes
27897 else
27898 echo "configure: failed program was" >&5
27899 cat conftest.s >&5
27901 rm -f conftest.o conftest.s
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27905 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27906 if test $gcc_cv_as_powerpc_vsx = yes; then
27908 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27914 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27915 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27916 $as_echo_n "(cached) " >&6
27917 else
27918 gcc_cv_as_powerpc_gnu_attribute=no
27919 if test x$gcc_cv_as != x; then
27920 $as_echo '.gnu_attribute 4,1' > conftest.s
27921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27923 (eval $ac_try) 2>&5
27924 ac_status=$?
27925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27926 test $ac_status = 0; }; }
27927 then
27928 gcc_cv_as_powerpc_gnu_attribute=yes
27929 else
27930 echo "configure: failed program was" >&5
27931 cat conftest.s >&5
27933 rm -f conftest.o conftest.s
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27937 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27938 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27940 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27946 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27947 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27948 $as_echo_n "(cached) " >&6
27949 else
27950 gcc_cv_as_powerpc_entry_markers=no
27951 if test x$gcc_cv_as != x; then
27952 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27955 (eval $ac_try) 2>&5
27956 ac_status=$?
27957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958 test $ac_status = 0; }; }
27959 then
27960 gcc_cv_as_powerpc_entry_markers=yes
27961 else
27962 echo "configure: failed program was" >&5
27963 cat conftest.s >&5
27965 rm -f conftest.o conftest.s
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27969 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27970 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27972 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27978 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27979 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27980 $as_echo_n "(cached) " >&6
27981 else
27982 gcc_cv_as_powerpc_pltseq_markers=no
27983 if test x$gcc_cv_as != x; then
27984 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27990 test $ac_status = 0; }; }
27991 then
27992 gcc_cv_as_powerpc_pltseq_markers=yes
27993 else
27994 echo "configure: failed program was" >&5
27995 cat conftest.s >&5
27997 rm -f conftest.o conftest.s
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28001 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28002 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28004 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28009 case $target in
28010 *-*-aix*)
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28012 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28013 if ${gcc_cv_as_aix_ref+:} false; then :
28014 $as_echo_n "(cached) " >&6
28015 else
28016 gcc_cv_as_aix_ref=no
28017 if test x$gcc_cv_as != x; then
28018 $as_echo ' .csect stuff[rw]
28019 stuff:
28020 .long 1
28021 .extern sym
28022 .ref sym
28023 ' > conftest.s
28024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28026 (eval $ac_try) 2>&5
28027 ac_status=$?
28028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029 test $ac_status = 0; }; }
28030 then
28031 gcc_cv_as_aix_ref=yes
28032 else
28033 echo "configure: failed program was" >&5
28034 cat conftest.s >&5
28036 rm -f conftest.o conftest.s
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28040 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28041 if test $gcc_cv_as_aix_ref = yes; then
28043 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28049 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28050 if ${gcc_cv_as_aix_dwloc+:} false; then :
28051 $as_echo_n "(cached) " >&6
28052 else
28053 gcc_cv_as_aix_dwloc=no
28054 if test x$gcc_cv_as != x; then
28055 $as_echo ' .dwsect 0xA0000
28056 Lframe..0:
28057 .vbyte 4,Lframe..0
28058 ' > conftest.s
28059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28064 test $ac_status = 0; }; }
28065 then
28066 gcc_cv_as_aix_dwloc=yes
28067 else
28068 echo "configure: failed program was" >&5
28069 cat conftest.s >&5
28071 rm -f conftest.o conftest.s
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28075 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28076 if test $gcc_cv_as_aix_dwloc = yes; then
28078 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28083 esac
28086 mips*-*-*)
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28088 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28089 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28090 $as_echo_n "(cached) " >&6
28091 else
28092 gcc_cv_as_mips_explicit_relocs=no
28093 if test x$gcc_cv_as != x; then
28094 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28100 test $ac_status = 0; }; }
28101 then
28102 gcc_cv_as_mips_explicit_relocs=yes
28103 else
28104 echo "configure: failed program was" >&5
28105 cat conftest.s >&5
28107 rm -f conftest.o conftest.s
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28111 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28112 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28113 if test x$target_cpu_default = x
28114 then target_cpu_default=MASK_EXPLICIT_RELOCS
28115 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28121 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28122 if ${gcc_cv_as_mips_no_shared+:} false; then :
28123 $as_echo_n "(cached) " >&6
28124 else
28125 gcc_cv_as_mips_no_shared=no
28126 if test x$gcc_cv_as != x; then
28127 $as_echo 'nop' > conftest.s
28128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; }
28134 then
28135 gcc_cv_as_mips_no_shared=yes
28136 else
28137 echo "configure: failed program was" >&5
28138 cat conftest.s >&5
28140 rm -f conftest.o conftest.s
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28144 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28145 if test $gcc_cv_as_mips_no_shared = yes; then
28147 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28153 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28154 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28155 $as_echo_n "(cached) " >&6
28156 else
28157 gcc_cv_as_mips_gnu_attribute=no
28158 if test x$gcc_cv_as != x; then
28159 $as_echo '.gnu_attribute 4,1' > conftest.s
28160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28162 (eval $ac_try) 2>&5
28163 ac_status=$?
28164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28165 test $ac_status = 0; }; }
28166 then
28167 gcc_cv_as_mips_gnu_attribute=yes
28168 else
28169 echo "configure: failed program was" >&5
28170 cat conftest.s >&5
28172 rm -f conftest.o conftest.s
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28176 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28177 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28179 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28185 $as_echo_n "checking assembler for .module support... " >&6; }
28186 if ${gcc_cv_as_mips_dot_module+:} false; then :
28187 $as_echo_n "(cached) " >&6
28188 else
28189 gcc_cv_as_mips_dot_module=no
28190 if test x$gcc_cv_as != x; then
28191 $as_echo '.module mips2
28192 .module fp=xx' > conftest.s
28193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195 (eval $ac_try) 2>&5
28196 ac_status=$?
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; }
28199 then
28200 gcc_cv_as_mips_dot_module=yes
28201 else
28202 echo "configure: failed program was" >&5
28203 cat conftest.s >&5
28205 rm -f conftest.o conftest.s
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28209 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28210 if test $gcc_cv_as_mips_dot_module = yes; then
28212 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28216 if test x$gcc_cv_as_mips_dot_module = xno \
28217 && test x$with_fp_32 != x; then
28218 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28222 $as_echo_n "checking assembler for .micromips support... " >&6; }
28223 if ${gcc_cv_as_micromips_support+:} false; then :
28224 $as_echo_n "(cached) " >&6
28225 else
28226 gcc_cv_as_micromips_support=no
28227 if test x$gcc_cv_as != x; then
28228 $as_echo '.set micromips' > conftest.s
28229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28231 (eval $ac_try) 2>&5
28232 ac_status=$?
28233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234 test $ac_status = 0; }; }
28235 then
28236 gcc_cv_as_micromips_support=yes
28237 else
28238 echo "configure: failed program was" >&5
28239 cat conftest.s >&5
28241 rm -f conftest.o conftest.s
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28245 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28246 if test $gcc_cv_as_micromips_support = yes; then
28248 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28254 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28255 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28256 $as_echo_n "(cached) " >&6
28257 else
28258 gcc_cv_as_mips_dtprelword=no
28259 if test x$gcc_cv_as != x; then
28260 $as_echo '.section .tdata,"awT",@progbits
28262 .word 2
28263 .text
28264 .dtprelword x+0x8000' > conftest.s
28265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28267 (eval $ac_try) 2>&5
28268 ac_status=$?
28269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28270 test $ac_status = 0; }; }
28271 then
28272 gcc_cv_as_mips_dtprelword=yes
28273 else
28274 echo "configure: failed program was" >&5
28275 cat conftest.s >&5
28277 rm -f conftest.o conftest.s
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28281 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28282 if test $gcc_cv_as_mips_dtprelword = yes; then
28284 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28290 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28291 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28292 $as_echo_n "(cached) " >&6
28293 else
28294 gcc_cv_as_mips_dspr1_mult=no
28295 if test x$gcc_cv_as != x; then
28296 $as_echo ' .set mips32r2
28297 .set nodspr2
28298 .set dsp
28299 madd $ac3,$4,$5
28300 maddu $ac3,$4,$5
28301 msub $ac3,$4,$5
28302 msubu $ac3,$4,$5
28303 mult $ac3,$4,$5
28304 multu $ac3,$4,$5' > conftest.s
28305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; }
28311 then
28312 gcc_cv_as_mips_dspr1_mult=yes
28313 else
28314 echo "configure: failed program was" >&5
28315 cat conftest.s >&5
28317 rm -f conftest.o conftest.s
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28321 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28322 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28324 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28330 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28331 gcc_cv_as_ld_jalr_reloc=no
28332 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28333 if test $in_tree_ld = yes ; then
28334 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 \
28335 && test $in_tree_ld_is_elf = yes; then
28336 gcc_cv_as_ld_jalr_reloc=yes
28338 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28339 echo ' .ent x' > conftest.s
28340 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28341 echo ' lw $25,%call16(y)($28)' >> conftest.s
28342 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28343 echo '1: jalr $25' >> conftest.s
28344 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28345 echo '1: jalr $25' >> conftest.s
28346 echo ' .end x' >> conftest.s
28347 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28348 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28349 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28350 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28351 gcc_cv_as_ld_jalr_reloc=yes
28354 rm -f conftest.*
28357 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28358 if test x$target_cpu_default = x; then
28359 target_cpu_default=MASK_RELAX_PIC_CALLS
28360 else
28361 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28365 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28368 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28369 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28370 $as_echo_n "(cached) " >&6
28371 else
28372 gcc_cv_ld_mips_personality_relaxation=no
28373 if test $in_tree_ld = yes ; then
28374 if test "$gcc_cv_gld_major_version" -eq 2 \
28375 -a "$gcc_cv_gld_minor_version" -ge 21 \
28376 -o "$gcc_cv_gld_major_version" -gt 2; then
28377 gcc_cv_ld_mips_personality_relaxation=yes
28379 elif test x$gcc_cv_as != x \
28380 -a x$gcc_cv_ld != x \
28381 -a x$gcc_cv_readelf != x ; then
28382 cat > conftest.s <<EOF
28383 .cfi_startproc
28384 .cfi_personality 0x80,indirect_ptr
28385 .ent test
28386 test:
28388 .end test
28389 .cfi_endproc
28391 .section .data,"aw",@progbits
28392 indirect_ptr:
28393 .dc.a personality
28395 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28396 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28397 if $gcc_cv_readelf -d conftest 2>&1 \
28398 | grep TEXTREL > /dev/null 2>&1; then
28400 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28401 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28403 else
28404 gcc_cv_ld_mips_personality_relaxation=yes
28408 rm -f conftest.s conftest.o conftest
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28411 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28412 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28414 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28419 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28420 if ${gcc_cv_as_mips_nan+:} false; then :
28421 $as_echo_n "(cached) " >&6
28422 else
28423 gcc_cv_as_mips_nan=no
28424 if test x$gcc_cv_as != x; then
28425 $as_echo '' > conftest.s
28426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28428 (eval $ac_try) 2>&5
28429 ac_status=$?
28430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28431 test $ac_status = 0; }; }
28432 then
28433 gcc_cv_as_mips_nan=yes
28434 else
28435 echo "configure: failed program was" >&5
28436 cat conftest.s >&5
28438 rm -f conftest.o conftest.s
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28442 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28443 if test $gcc_cv_as_mips_nan = yes; then
28445 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28449 if test x$gcc_cv_as_mips_nan = xno \
28450 && test x$with_nan != x; then
28451 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28454 msp430-*-*)
28455 # Earlier GAS versions generically support .gnu_attribute, but the
28456 # msp430 assembler will not do anything with it.
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28458 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28459 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28460 $as_echo_n "(cached) " >&6
28461 else
28462 gcc_cv_as_msp430_gnu_attribute=no
28463 if test x$gcc_cv_as != x; then
28464 $as_echo '.gnu_attribute 4,1' > conftest.s
28465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28467 (eval $ac_try) 2>&5
28468 ac_status=$?
28469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28470 test $ac_status = 0; }; }
28471 then
28472 gcc_cv_as_msp430_gnu_attribute=yes
28473 else
28474 echo "configure: failed program was" >&5
28475 cat conftest.s >&5
28477 rm -f conftest.o conftest.s
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28481 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28482 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28484 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28489 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28490 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28491 $as_echo_n "(cached) " >&6
28492 else
28493 gcc_cv_as_msp430_mspabi_attribute=no
28494 if test x$gcc_cv_as != x; then
28495 $as_echo '.mspabi_attribute 4,2' > conftest.s
28496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28498 (eval $ac_try) 2>&5
28499 ac_status=$?
28500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28501 test $ac_status = 0; }; }
28502 then
28503 gcc_cv_as_msp430_mspabi_attribute=yes
28504 else
28505 echo "configure: failed program was" >&5
28506 cat conftest.s >&5
28508 rm -f conftest.o conftest.s
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28512 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28513 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28515 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28519 if test x$enable_newlib_nano_formatted_io = xyes; then
28521 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28525 nios2-*-*)
28526 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28527 # syntax that is documented in the ABI specification.
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28529 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28530 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28531 $as_echo_n "(cached) " >&6
28532 else
28533 gcc_cv_as_nios2_gotoff_relocation=no
28534 if test x$gcc_cv_as != x; then
28535 $as_echo ' .extern foo
28536 .data
28537 .long %gotoff(foo)' > conftest.s
28538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28543 test $ac_status = 0; }; }
28544 then
28545 gcc_cv_as_nios2_gotoff_relocation=yes
28546 else
28547 echo "configure: failed program was" >&5
28548 cat conftest.s >&5
28550 rm -f conftest.o conftest.s
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28554 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28555 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28557 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28562 riscv*-*-*)
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28564 $as_echo_n "checking assembler for .attribute support... " >&6; }
28565 if ${gcc_cv_as_riscv_attribute+:} false; then :
28566 $as_echo_n "(cached) " >&6
28567 else
28568 gcc_cv_as_riscv_attribute=no
28569 if test x$gcc_cv_as != x; then
28570 $as_echo '.attribute stack_align,4' > conftest.s
28571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28573 (eval $ac_try) 2>&5
28574 ac_status=$?
28575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28576 test $ac_status = 0; }; }
28577 then
28578 gcc_cv_as_riscv_attribute=yes
28579 else
28580 echo "configure: failed program was" >&5
28581 cat conftest.s >&5
28583 rm -f conftest.o conftest.s
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28587 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28588 if test $gcc_cv_as_riscv_attribute = yes; then
28590 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28595 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28596 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28597 $as_echo_n "(cached) " >&6
28598 else
28599 gcc_cv_as_riscv_isa_spec=no
28600 if test x$gcc_cv_as != x; then
28601 $as_echo '' > conftest.s
28602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28604 (eval $ac_try) 2>&5
28605 ac_status=$?
28606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28607 test $ac_status = 0; }; }
28608 then
28609 gcc_cv_as_riscv_isa_spec=yes
28610 else
28611 echo "configure: failed program was" >&5
28612 cat conftest.s >&5
28614 rm -f conftest.o conftest.s
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28618 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28619 if test $gcc_cv_as_riscv_isa_spec = yes; then
28621 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28626 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28627 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28628 $as_echo_n "(cached) " >&6
28629 else
28630 gcc_cv_as_riscv_march_zifencei=no
28631 if test x$gcc_cv_as != x; then
28632 $as_echo '' > conftest.s
28633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28638 test $ac_status = 0; }; }
28639 then
28640 gcc_cv_as_riscv_march_zifencei=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_riscv_march_zifencei" >&5
28649 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28650 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28652 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28657 s390*-*-*)
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28659 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28660 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28661 $as_echo_n "(cached) " >&6
28662 else
28663 gcc_cv_as_s390_gnu_attribute=no
28664 if test x$gcc_cv_as != x; then
28665 $as_echo '.gnu_attribute 8,1' > conftest.s
28666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28668 (eval $ac_try) 2>&5
28669 ac_status=$?
28670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28671 test $ac_status = 0; }; }
28672 then
28673 gcc_cv_as_s390_gnu_attribute=yes
28674 else
28675 echo "configure: failed program was" >&5
28676 cat conftest.s >&5
28678 rm -f conftest.o conftest.s
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28682 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28683 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28685 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28690 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28691 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28692 $as_echo_n "(cached) " >&6
28693 else
28694 gcc_cv_as_s390_machine_machinemode=no
28695 if test x$gcc_cv_as != x; then
28696 $as_echo ' .machinemode push
28697 .machinemode pop
28698 .machine push
28699 .machine pop' > conftest.s
28700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28702 (eval $ac_try) 2>&5
28703 ac_status=$?
28704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28705 test $ac_status = 0; }; }
28706 then
28707 gcc_cv_as_s390_machine_machinemode=yes
28708 else
28709 echo "configure: failed program was" >&5
28710 cat conftest.s >&5
28712 rm -f conftest.o conftest.s
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28716 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28717 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28719 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28724 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28725 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28726 $as_echo_n "(cached) " >&6
28727 else
28728 gcc_cv_as_s390_architecture_modifiers=no
28729 if test x$gcc_cv_as != x; then
28730 $as_echo ' .machine z13+vx ' > conftest.s
28731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736 test $ac_status = 0; }; }
28737 then
28738 gcc_cv_as_s390_architecture_modifiers=yes
28739 else
28740 echo "configure: failed program was" >&5
28741 cat conftest.s >&5
28743 rm -f conftest.o conftest.s
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28747 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28748 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28750 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28755 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28756 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28757 $as_echo_n "(cached) " >&6
28758 else
28759 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28760 if test x$gcc_cv_as != x; then
28761 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28764 (eval $ac_try) 2>&5
28765 ac_status=$?
28766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28767 test $ac_status = 0; }; }
28768 then
28769 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28770 else
28771 echo "configure: failed program was" >&5
28772 cat conftest.s >&5
28774 rm -f conftest.o conftest.s
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28778 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28779 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28781 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28786 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28787 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28788 $as_echo_n "(cached) " >&6
28789 else
28790 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28791 if test x$gcc_cv_as != x; then
28792 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28795 (eval $ac_try) 2>&5
28796 ac_status=$?
28797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798 test $ac_status = 0; }; }
28799 then
28800 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28801 else
28802 echo "configure: failed program was" >&5
28803 cat conftest.s >&5
28805 rm -f conftest.o conftest.s
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28809 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28810 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28812 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28818 esac
28820 # Mips and HP-UX need the GNU assembler.
28821 # Linux on IA64 might be able to use the Intel assembler.
28823 case "$target" in
28824 mips*-*-* | *-*-hpux* )
28825 if test x$gas_flag = xyes \
28826 || test x"$host" != x"$build" \
28827 || test ! -x "$gcc_cv_as" \
28828 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28830 else
28831 echo "*** This configuration requires the GNU assembler" >&2
28832 exit 1
28835 esac
28837 # This tests if the assembler supports two registers for global_load functions
28838 # (like in LLVM versions <12) or one register (like in LLVM 12).
28839 case "$target" in
28840 amdgcn-* | gcn-*)
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
28842 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
28843 gcc_cv_as_gcn_global_load_fixed=yes
28844 if test x$gcc_cv_as != x; then
28845 cat > conftest.s <<EOF
28846 global_store_dwordx2 v[1:2], v[4:5], s[14:15]
28848 if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
28849 gcc_cv_as_gcn_global_load_fixed=no
28851 rm -f conftest.s conftest.o conftest
28853 global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
28855 cat >>confdefs.h <<_ACEOF
28856 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
28857 _ACEOF
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
28860 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
28862 esac
28864 case "$target" in
28865 amdgcn-* | gcn-*)
28866 # Test the LLVM assembler syntax dialect; they have made a number of
28867 # changes between LLVM 12 & 13 without any backward compatibility.
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5
28869 $as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; }
28870 if ${gcc_cv_as_gcn_asm_v3_syntax+:} false; then :
28871 $as_echo_n "(cached) " >&6
28872 else
28873 gcc_cv_as_gcn_asm_v3_syntax=no
28874 if test x$gcc_cv_as != x; then
28875 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s
28876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5'
28877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28878 (eval $ac_try) 2>&5
28879 ac_status=$?
28880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28881 test $ac_status = 0; }; }
28882 then
28883 gcc_cv_as_gcn_asm_v3_syntax=yes
28884 else
28885 echo "configure: failed program was" >&5
28886 cat conftest.s >&5
28888 rm -f conftest.o conftest.s
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5
28892 $as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; }
28893 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28895 $as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5
28900 $as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; }
28901 if ${gcc_cv_as_gcn_asm_v4_syntax+:} false; then :
28902 $as_echo_n "(cached) " >&6
28903 else
28904 gcc_cv_as_gcn_asm_v4_syntax=no
28905 if test x$gcc_cv_as != x; then
28906 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s
28907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5'
28908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28909 (eval $ac_try) 2>&5
28910 ac_status=$?
28911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28912 test $ac_status = 0; }; }
28913 then
28914 gcc_cv_as_gcn_asm_v4_syntax=yes
28915 else
28916 echo "configure: failed program was" >&5
28917 cat conftest.s >&5
28919 rm -f conftest.o conftest.s
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5
28923 $as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; }
28924 if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28926 $as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h
28931 # Some attribute names changed in the move to v4 ...
28932 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28933 sramopt="+sram-ecc"
28934 sramattr="+sram-ecc"
28935 xnackattr="+xnack"
28936 elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28937 sramopt="+sramecc"
28938 sramattr=":sramecc+"
28939 xnackattr=":xnack+"
28940 else
28941 as_fn_error $? "Unrecognised assembler version" "$LINENO" 5
28944 # Test whether the LLVM assembler accepts -mattr=+xnack without any
28945 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
28946 # LLVM 12+ throws a warning for GPUs without support.
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5
28948 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; }
28949 if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false; then :
28950 $as_echo_n "(cached) " >&6
28951 else
28952 gcc_cv_as_gcn_xnack_ecc_fiji=no
28953 if test x$gcc_cv_as != x; then
28954 $as_echo '' > conftest.s
28955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28958 ac_status=$?
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }
28961 then
28962 grep "." conftest.err >&5 \
28963 || gcc_cv_as_gcn_xnack_ecc_fiji=yes
28964 else
28965 echo "configure: failed program was" >&5
28966 cat conftest.s >&5
28968 rm -f conftest.o conftest.s
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5
28972 $as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; }
28973 if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then
28975 $as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h
28979 rm -f conftest.err
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5
28981 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; }
28982 if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false; then :
28983 $as_echo_n "(cached) " >&6
28984 else
28985 gcc_cv_as_gcn_xnack_ecc_gfx900=no
28986 if test x$gcc_cv_as != x; then
28987 $as_echo '' > conftest.s
28988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28990 (eval $ac_try) 2>&5
28991 ac_status=$?
28992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28993 test $ac_status = 0; }; }
28994 then
28995 grep "." conftest.err >&5 \
28996 || gcc_cv_as_gcn_xnack_ecc_gfx900=yes
28997 else
28998 echo "configure: failed program was" >&5
28999 cat conftest.s >&5
29001 rm -f conftest.o conftest.s
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5
29005 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; }
29006 if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then
29008 $as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h
29012 rm -f conftest.err
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5
29014 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; }
29015 if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false; then :
29016 $as_echo_n "(cached) " >&6
29017 else
29018 gcc_cv_as_gcn_xnack_ecc_gfx906=no
29019 if test x$gcc_cv_as != x; then
29020 $as_echo '' > conftest.s
29021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; }
29027 then
29028 grep "." conftest.err >&5 \
29029 || gcc_cv_as_gcn_xnack_ecc_gfx906=yes
29030 else
29031 echo "configure: failed program was" >&5
29032 cat conftest.s >&5
29034 rm -f conftest.o conftest.s
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5
29038 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; }
29039 if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then
29041 $as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h
29045 rm -f conftest.err
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5
29047 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; }
29048 if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false; then :
29049 $as_echo_n "(cached) " >&6
29050 else
29051 gcc_cv_as_gcn_xnack_ecc_gfx908=no
29052 if test x$gcc_cv_as != x; then
29053 $as_echo '' > conftest.s
29054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
29055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29056 (eval $ac_try) 2>&5
29057 ac_status=$?
29058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29059 test $ac_status = 0; }; }
29060 then
29061 grep "." conftest.err >&5 \
29062 || gcc_cv_as_gcn_xnack_ecc_gfx908=yes
29063 else
29064 echo "configure: failed program was" >&5
29065 cat conftest.s >&5
29067 rm -f conftest.o conftest.s
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5
29071 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; }
29072 if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then
29074 $as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h
29078 rm -f conftest.err
29080 # Test whether the LLVM assembler accepts -mattr=+sramecc without any
29081 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
29082 # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
29083 # for GPUs without support.
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5
29085 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; }
29086 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then :
29087 $as_echo_n "(cached) " >&6
29088 else
29089 gcc_cv_as_gcn_sram_ecc_fiji=no
29090 if test x$gcc_cv_as != x; then
29091 $as_echo '' > conftest.s
29092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29094 (eval $ac_try) 2>&5
29095 ac_status=$?
29096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29097 test $ac_status = 0; }; }
29098 then
29099 grep "." conftest.err >&5 \
29100 || gcc_cv_as_gcn_sram_ecc_fiji=yes
29101 else
29102 echo "configure: failed program was" >&5
29103 cat conftest.s >&5
29105 rm -f conftest.o conftest.s
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
29109 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
29110 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
29112 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
29116 rm -f conftest.err
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5
29118 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; }
29119 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then :
29120 $as_echo_n "(cached) " >&6
29121 else
29122 gcc_cv_as_gcn_sram_ecc_gfx900=no
29123 if test x$gcc_cv_as != x; then
29124 $as_echo '' > conftest.s
29125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29130 test $ac_status = 0; }; }
29131 then
29132 grep "." conftest.err >&5 \
29133 || gcc_cv_as_gcn_sram_ecc_gfx900=yes
29134 else
29135 echo "configure: failed program was" >&5
29136 cat conftest.s >&5
29138 rm -f conftest.o conftest.s
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
29142 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
29143 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
29145 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
29149 rm -f conftest.err
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5
29151 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; }
29152 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then :
29153 $as_echo_n "(cached) " >&6
29154 else
29155 gcc_cv_as_gcn_sram_ecc_gfx906=no
29156 if test x$gcc_cv_as != x; then
29157 $as_echo '' > conftest.s
29158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29163 test $ac_status = 0; }; }
29164 then
29165 grep "." conftest.err >&5 \
29166 || gcc_cv_as_gcn_sram_ecc_gfx906=yes
29167 else
29168 echo "configure: failed program was" >&5
29169 cat conftest.s >&5
29171 rm -f conftest.o conftest.s
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
29175 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
29176 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
29178 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
29182 rm -f conftest.err
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5
29184 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; }
29185 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then :
29186 $as_echo_n "(cached) " >&6
29187 else
29188 gcc_cv_as_gcn_sram_ecc_gfx908=no
29189 if test x$gcc_cv_as != x; then
29190 $as_echo '' > conftest.s
29191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29193 (eval $ac_try) 2>&5
29194 ac_status=$?
29195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29196 test $ac_status = 0; }; }
29197 then
29198 grep "." conftest.err >&5 \
29199 || gcc_cv_as_gcn_sram_ecc_gfx908=yes
29200 else
29201 echo "configure: failed program was" >&5
29202 cat conftest.s >&5
29204 rm -f conftest.o conftest.s
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
29208 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
29209 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
29211 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
29215 rm -f conftest.err
29217 arm*)
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29219 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29220 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29221 $as_echo_n "(cached) " >&6
29222 else
29223 gcc_cv_as_arm_option_extensions=no
29224 if test x$gcc_cv_as != x; then
29225 $as_echo '.text
29226 .thumb
29227 .syntax unified
29228 vmov.f32 s0, s1' > conftest.s
29229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29231 (eval $ac_try) 2>&5
29232 ac_status=$?
29233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29234 test $ac_status = 0; }; }
29235 then
29236 gcc_cv_as_arm_option_extensions=yes
29237 else
29238 echo "configure: failed program was" >&5
29239 cat conftest.s >&5
29241 rm -f conftest.o conftest.s
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29245 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29246 if test $gcc_cv_as_arm_option_extensions = yes; then
29248 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29252 esac
29254 # ??? Not all targets support dwarf2 debug_line, even within a version
29255 # of gas. Moreover, we need to emit a valid instruction to trigger any
29256 # info to the output file. So, as supported targets are added to gas 2.11,
29257 # add some instruction here to (also) show we expect this might work.
29258 # ??? Once 2.11 is released, probably need to add first known working
29259 # version to the per-target configury.
29260 case "$cpu_type" in
29261 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29262 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29263 | tilegx | tilepro | visium | xstormy16 | xtensa)
29264 insn="nop"
29266 ia64 | s390)
29267 insn="nop 0"
29269 mmix)
29270 insn="swym 0"
29272 esac
29273 if test x"$insn" != x; then
29274 conftest_s="\
29275 .file 1 \"conftest.s\"
29276 .loc 1 3 0
29277 $insn"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29279 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29280 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29281 $as_echo_n "(cached) " >&6
29282 else
29283 gcc_cv_as_dwarf2_debug_line=no
29284 if test x$gcc_cv_as != x; then
29285 $as_echo "$conftest_s" > conftest.s
29286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29291 test $ac_status = 0; }; }
29292 then
29293 if test x$gcc_cv_objdump != x \
29294 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29295 | grep debug_line > /dev/null 2>&1; then
29296 gcc_cv_as_dwarf2_debug_line=yes
29297 elif test x$gcc_cv_otool != x \
29298 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29299 | grep debug_line > /dev/null 2>&1; then
29300 gcc_cv_as_dwarf2_debug_line=yes
29302 else
29303 echo "configure: failed program was" >&5
29304 cat conftest.s >&5
29306 rm -f conftest.o conftest.s
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29310 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29314 # The .debug_line file table must be in the exact order that
29315 # we specified the files, since these indices are also used
29316 # by DW_AT_decl_file. Approximate this test by testing if
29317 # the assembler bitches if the same index is assigned twice.
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29319 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29320 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29321 $as_echo_n "(cached) " >&6
29322 else
29323 gcc_cv_as_dwarf2_file_buggy=no
29324 if test x$gcc_cv_as != x; then
29325 $as_echo ' .file 1 "foo.s"
29326 .file 1 "bar.s"' > conftest.s
29327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332 test $ac_status = 0; }; }
29333 then
29334 gcc_cv_as_dwarf2_file_buggy=yes
29335 else
29336 echo "configure: failed program was" >&5
29337 cat conftest.s >&5
29339 rm -f conftest.o conftest.s
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29343 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29347 if test $gcc_cv_as_dwarf2_debug_line = yes \
29348 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29350 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29353 if test $gcc_cv_as_leb128 = yes; then
29354 conftest_s="\
29355 .file 1 \"conftest.s\"
29356 .loc 1 3 0 view .LVU1
29357 $insn
29358 .data
29359 .uleb128 .LVU1
29360 .uleb128 .LVU1
29362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29363 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29364 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29365 $as_echo_n "(cached) " >&6
29366 else
29367 gcc_cv_as_dwarf2_debug_view=no
29368 if test x$gcc_cv_as != x; then
29369 $as_echo "$conftest_s" > 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_dwarf2_debug_view=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_dwarf2_debug_view" >&5
29386 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29387 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29389 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29397 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29398 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29399 $as_echo_n "(cached) " >&6
29400 else
29401 gcc_cv_as_gdwarf2_flag=no
29402 if test x$gcc_cv_as != x; then
29403 $as_echo "$insn" > conftest.s
29404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29406 (eval $ac_try) 2>&5
29407 ac_status=$?
29408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29409 test $ac_status = 0; }; }
29410 then
29411 gcc_cv_as_gdwarf2_flag=yes
29412 else
29413 echo "configure: failed program was" >&5
29414 cat conftest.s >&5
29416 rm -f conftest.o conftest.s
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29420 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29421 if test $gcc_cv_as_gdwarf2_flag = yes; then
29423 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29429 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29430 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29431 $as_echo_n "(cached) " >&6
29432 else
29433 gcc_cv_as_gdwarf_5_flag=no
29434 if test x$gcc_cv_as != x; then
29435 $as_echo "$insn" > conftest.s
29436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29441 test $ac_status = 0; }; }
29442 then
29443 if test x$gcc_cv_objdump != x \
29444 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29445 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29446 gcc_cv_as_gdwarf_5_flag=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_gdwarf_5_flag" >&5
29456 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29457 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29459 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29464 case $target_os in
29465 win32 | pe | cygwin* | mingw32*)
29466 section_flags=\"dr\"
29467 function_type=".def foo; .scl 2; .type 32; .endef"
29468 function_size="";;
29470 section_flags=\"\",%progbits
29471 function_type=".type foo, %function"
29472 function_size=".size foo, .-foo";;
29473 esac
29474 dwarf4_debug_info_size=0x46
29475 dwarf4_high_pc_form=7
29476 dwarf4_debug_aranges_size=0x2c
29477 dwarf4_line_sz=9
29478 for dwarf4_addr_size in 8 4; do
29479 conftest_s="\
29480 .file \"a.c\"
29481 .text
29482 .Ltext0:
29483 .p2align 4
29484 .globl foo
29485 $function_type
29486 foo:
29487 .LFB0:
29488 .LM1:
29489 $insn
29490 .LM2:
29491 .LFE0:
29492 $function_size
29493 .Letext0:
29494 .section .debug_info,$section_flags
29495 .Ldebug_info0:
29496 .4byte $dwarf4_debug_info_size
29497 .2byte 0x4
29498 .4byte .Ldebug_abbrev0
29499 .byte 0x$dwarf4_addr_size
29500 .byte 0x1
29501 .ascii \"GNU C17\\0\"
29502 .byte 0xc
29503 .ascii \"a.c\\0\"
29504 .ascii \"/\\0\"
29505 .${dwarf4_addr_size}byte .Ltext0
29506 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29507 .4byte .Ldebug_line0
29508 .byte 0x2
29509 .ascii \"foo\\0\"
29510 .byte 0x1
29511 .byte 0x2
29512 .byte 0x1
29513 .${dwarf4_addr_size}byte .LFB0
29514 .${dwarf4_addr_size}byte .LFE0-.LFB0
29515 .byte 0x1
29516 .byte 0x9c
29517 .byte 0
29518 .section .debug_abbrev,$section_flags
29519 .Ldebug_abbrev0:
29520 .byte 0x1
29521 .byte 0x11
29522 .byte 0x1
29523 .byte 0x25
29524 .byte 0x8
29525 .byte 0x13
29526 .byte 0xb
29527 .byte 0x3
29528 .byte 0x8
29529 .byte 0x1b
29530 .byte 0x8
29531 .byte 0x11
29532 .byte 0x1
29533 .byte 0x12
29534 .byte 0x$dwarf4_high_pc_form
29535 .byte 0x10
29536 .byte 0x17
29537 .byte 0
29538 .byte 0
29539 .byte 0x2
29540 .byte 0x2e
29541 .byte 0
29542 .byte 0x3f
29543 .byte 0x19
29544 .byte 0x3
29545 .byte 0x8
29546 .byte 0x3a
29547 .byte 0xb
29548 .byte 0x3b
29549 .byte 0xb
29550 .byte 0x39
29551 .byte 0xb
29552 .byte 0x11
29553 .byte 0x1
29554 .byte 0x12
29555 .byte 0x$dwarf4_high_pc_form
29556 .byte 0x40
29557 .byte 0x18
29558 .byte 0
29559 .byte 0
29560 .byte 0
29561 .section .debug_aranges,$section_flags
29562 .4byte $dwarf4_debug_aranges_size
29563 .2byte 0x2
29564 .4byte .Ldebug_info0
29565 .byte 0x8
29566 .byte 0
29567 .2byte 0
29568 .2byte 0
29569 .${dwarf4_addr_size}byte .Ltext0
29570 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29571 .${dwarf4_addr_size}byte 0
29572 .${dwarf4_addr_size}byte 0
29573 .section .debug_line,$section_flags
29574 .Ldebug_line0:
29575 .4byte .LELT0-.LSLT0
29576 .LSLT0:
29577 .2byte 0x4
29578 .4byte .LELTP0-.LASLTP0
29579 .LASLTP0:
29580 .byte 0x1
29581 .byte 0x1
29582 .byte 0x1
29583 .byte 0xf6
29584 .byte 0xf2
29585 .byte 0xd
29586 .byte 0
29587 .byte 0x1
29588 .byte 0x1
29589 .byte 0x1
29590 .byte 0x1
29591 .byte 0
29592 .byte 0
29593 .byte 0
29594 .byte 0x1
29595 .byte 0
29596 .byte 0
29597 .byte 0x1
29598 .byte 0
29599 .ascii \"a.c\\0\"
29600 .byte 0
29601 .byte 0
29602 .byte 0
29603 .byte 0
29604 .LELTP0:
29605 .byte 0
29606 .byte 0x$dwarf4_line_sz
29607 .byte 0x2
29608 .${dwarf4_addr_size}byte .LM1
29609 .byte 0x18
29610 .byte 0x5
29611 .byte 0x1
29612 .byte 0
29613 .byte 0x$dwarf4_line_sz
29614 .byte 0x2
29615 .${dwarf4_addr_size}byte .LM2
29616 .byte 0x1
29617 .byte 0x5
29618 .byte 0x1
29619 .byte 0
29620 .byte 0x$dwarf4_line_sz
29621 .byte 0x2
29622 .${dwarf4_addr_size}byte .Letext0
29623 .byte 0
29624 .byte 0x1
29625 .byte 0x1
29626 .LELT0:
29627 .section .debug_str,$section_flags
29628 .ident \"GCC\"
29630 dwarf4_success=no
29631 if test $dwarf4_addr_size = 4; then
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29633 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29634 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29635 $as_echo_n "(cached) " >&6
29636 else
29637 gcc_cv_as_debug_line_32_flag=no
29638 if test x$gcc_cv_as != x; then
29639 $as_echo "$conftest_s" > conftest.s
29640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29645 test $ac_status = 0; }; }
29646 then
29647 gcc_cv_as_debug_line_32_flag=yes
29648 else
29649 echo "configure: failed program was" >&5
29650 cat conftest.s >&5
29652 rm -f conftest.o conftest.s
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29656 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29657 if test $gcc_cv_as_debug_line_32_flag = yes; then
29658 dwarf4_success=yes
29661 else
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29663 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29664 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29665 $as_echo_n "(cached) " >&6
29666 else
29667 gcc_cv_as_debug_line_64_flag=no
29668 if test x$gcc_cv_as != x; then
29669 $as_echo "$conftest_s" > conftest.s
29670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29672 (eval $ac_try) 2>&5
29673 ac_status=$?
29674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29675 test $ac_status = 0; }; }
29676 then
29677 gcc_cv_as_debug_line_64_flag=yes
29678 else
29679 echo "configure: failed program was" >&5
29680 cat conftest.s >&5
29682 rm -f conftest.o conftest.s
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29686 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29687 if test $gcc_cv_as_debug_line_64_flag = yes; then
29688 dwarf4_success=yes
29692 if test $dwarf4_success = yes; then
29693 dwarf4_success=no
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29695 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29696 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29697 $as_echo_n "(cached) " >&6
29698 else
29699 gcc_cv_as_dwarf_4_debug_line_flag=no
29700 if test x$gcc_cv_as != x; then
29701 $as_echo "$conftest_s" > conftest.s
29702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29707 test $ac_status = 0; }; }
29708 then
29709 gcc_cv_as_dwarf_4_debug_line_flag=yes
29710 else
29711 echo "configure: failed program was" >&5
29712 cat conftest.s >&5
29714 rm -f conftest.o conftest.s
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29718 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29719 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29720 dwarf4_success=yes
29723 break
29725 dwarf4_debug_info_size=0x36
29726 dwarf4_high_pc_form=6
29727 dwarf4_debug_aranges_size=0x1c
29728 dwarf4_line_sz=5
29729 done
29731 if test $dwarf4_success = yes; then
29732 conftest_s="\
29733 .file \"foo.c\"
29734 .text
29735 bar:
29736 #APP
29737 # 82 \"xxx.h\" 1
29738 $insn
29739 # 0 \"\" 2
29740 #NO_APP
29741 $insn
29742 foo:
29743 .file 1 \"foo.c\"
29744 $insn
29745 .file 2 \"foo.h\"
29748 dwarf4_success=no
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29750 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29751 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29752 $as_echo_n "(cached) " >&6
29753 else
29754 gcc_cv_as_dwarf_4_app_flag=no
29755 if test x$gcc_cv_as != x; then
29756 $as_echo "$conftest_s" > conftest.s
29757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29759 (eval $ac_try) 2>&5
29760 ac_status=$?
29761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29762 test $ac_status = 0; }; }
29763 then
29764 gcc_cv_as_dwarf_4_app_flag=yes
29765 else
29766 echo "configure: failed program was" >&5
29767 cat conftest.s >&5
29769 rm -f conftest.o conftest.s
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29773 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29774 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29775 dwarf4_success=yes
29780 if test $dwarf4_success = yes; then
29781 conftest_s="\
29782 .text
29783 .globl foo
29784 $function_type
29785 foo:
29786 $insn
29787 $function_size
29788 .file 1 \"foo.c\"
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29791 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29792 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29793 $as_echo_n "(cached) " >&6
29794 else
29795 gcc_cv_as_working_gdwarf_n_flag=no
29796 if test x$gcc_cv_as != x; then
29797 $as_echo "$conftest_s" > conftest.s
29798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29800 (eval $ac_try) 2>&5
29801 ac_status=$?
29802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803 test $ac_status = 0; }; }
29804 then
29805 if test x$gcc_cv_objdump != x \
29806 && $gcc_cv_objdump -W conftest.o 2>&1 \
29807 | grep conftest.s > /dev/null 2>&1; then
29808 gcc_cv_as_working_gdwarf_n_flag=no
29809 else
29810 gcc_cv_as_working_gdwarf_n_flag=yes
29812 else
29813 echo "configure: failed program was" >&5
29814 cat conftest.s >&5
29816 rm -f conftest.o conftest.s
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29820 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29823 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29825 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29831 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29832 if ${gcc_cv_as_gstabs_flag+:} false; then :
29833 $as_echo_n "(cached) " >&6
29834 else
29835 gcc_cv_as_gstabs_flag=no
29836 if test x$gcc_cv_as != x; then
29837 $as_echo "$insn" > conftest.s
29838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29840 (eval $ac_try) 2>&5
29841 ac_status=$?
29842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29843 test $ac_status = 0; }; }
29844 then
29845 gcc_cv_as_gstabs_flag=yes
29846 else
29847 echo "configure: failed program was" >&5
29848 cat conftest.s >&5
29850 rm -f conftest.o conftest.s
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29854 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29855 if test $gcc_cv_as_gstabs_flag = yes; then
29857 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29863 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29864 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29865 $as_echo_n "(cached) " >&6
29866 else
29867 gcc_cv_as_debug_prefix_map_flag=no
29868 if test x$gcc_cv_as != x; then
29869 $as_echo "$insn" > conftest.s
29870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29872 (eval $ac_try) 2>&5
29873 ac_status=$?
29874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29875 test $ac_status = 0; }; }
29876 then
29877 gcc_cv_as_debug_prefix_map_flag=yes
29878 else
29879 echo "configure: failed program was" >&5
29880 cat conftest.s >&5
29882 rm -f conftest.o conftest.s
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29886 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29887 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29889 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29896 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29897 if ${gcc_cv_as_compress_debug+:} false; then :
29898 $as_echo_n "(cached) " >&6
29899 else
29900 gcc_cv_as_compress_debug=no
29901 if test x$gcc_cv_as != x; then
29902 $as_echo '' > conftest.s
29903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29908 test $ac_status = 0; }; }
29909 then
29910 # gas compiled without zlib cannot compress debug sections and warns
29911 # about it, but still exits successfully. So check for this, too.
29912 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29913 then
29914 gcc_cv_as_compress_debug=0
29915 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29916 # defaulting to the ELF gABI format.
29917 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29918 then
29919 gcc_cv_as_compress_debug=2
29920 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29921 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29922 # Before binutils 2.26, gas only supported --compress-debug-options and
29923 # emitted the traditional GNU format.
29924 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29925 then
29926 gcc_cv_as_compress_debug=1
29927 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29928 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29929 else
29930 gcc_cv_as_compress_debug=0
29932 else
29933 echo "configure: failed program was" >&5
29934 cat conftest.s >&5
29936 rm -f conftest.o conftest.s
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29940 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29944 cat >>confdefs.h <<_ACEOF
29945 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29946 _ACEOF
29949 cat >>confdefs.h <<_ACEOF
29950 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29951 _ACEOF
29954 cat >>confdefs.h <<_ACEOF
29955 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29956 _ACEOF
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29960 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29961 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29962 $as_echo_n "(cached) " >&6
29963 else
29964 gcc_cv_as_lcomm_with_alignment=no
29965 if test x$gcc_cv_as != x; then
29966 $as_echo '.lcomm bar,4,16' > conftest.s
29967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29972 test $ac_status = 0; }; }
29973 then
29974 gcc_cv_as_lcomm_with_alignment=yes
29975 else
29976 echo "configure: failed program was" >&5
29977 cat conftest.s >&5
29979 rm -f conftest.o conftest.s
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29983 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29984 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29986 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29991 if test x$with_sysroot = x && test x$host = x$target \
29992 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29993 && test "$prefix" != "NONE"; then
29995 cat >>confdefs.h <<_ACEOF
29996 #define PREFIX_INCLUDE_DIR "$prefix/include"
29997 _ACEOF
30001 # Determine the version of glibc, if any, used on the target.
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30003 $as_echo_n "checking for target glibc version... " >&6; }
30005 # Check whether --with-glibc-version was given.
30006 if test "${with_glibc_version+set}" = set; then :
30007 withval=$with_glibc_version;
30008 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30009 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30010 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30011 else
30012 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30014 else
30016 glibc_version_major=0
30017 glibc_version_minor=0
30018 if test -f $target_header_dir/features.h \
30019 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30020 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30021 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30022 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30027 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30029 cat >>confdefs.h <<_ACEOF
30030 #define TARGET_GLIBC_MAJOR $glibc_version_major
30031 _ACEOF
30034 cat >>confdefs.h <<_ACEOF
30035 #define TARGET_GLIBC_MINOR $glibc_version_minor
30036 _ACEOF
30039 # Check whether --enable-gnu-unique-object was given.
30040 if test "${enable_gnu_unique_object+set}" = set; then :
30041 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30042 yes | no) ;;
30043 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30044 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30045 esac
30046 else
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30048 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30049 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30050 $as_echo_n "(cached) " >&6
30051 else
30052 gcc_cv_as_gnu_unique_object=no
30053 if test x$gcc_cv_as != x; then
30054 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30060 test $ac_status = 0; }; }
30061 then
30062 gcc_cv_as_gnu_unique_object=yes
30063 else
30064 echo "configure: failed program was" >&5
30065 cat conftest.s >&5
30067 rm -f conftest.o conftest.s
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30071 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30072 if test $gcc_cv_as_gnu_unique_object = yes; then
30073 # We need to unquote above to to use the definition from config.gcc.
30074 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30076 if test $glibc_version_major -gt 2 \
30077 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30078 enable_gnu_unique_object=yes
30085 if test x$enable_gnu_unique_object = xyes; then
30087 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30092 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30093 if ${gcc_cv_as_line_zero+:} false; then :
30094 $as_echo_n "(cached) " >&6
30095 else
30096 gcc_cv_as_line_zero=no
30097 if test "x$gcc_cv_as" != x; then
30098 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30099 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30101 (eval $ac_try) 2>&5
30102 ac_status=$?
30103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30104 test $ac_status = 0; }; } &&
30105 test "x`cat conftest.out`" = x
30106 then
30107 gcc_cv_as_line_zero=yes
30108 else
30109 echo "configure: failed program was" >&5
30110 cat conftest.s >&5
30111 echo "configure: error output was" >&5
30112 cat conftest.out >&5
30114 rm -f conftest.o conftest.s conftest.out
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30118 $as_echo "$gcc_cv_as_line_zero" >&6; }
30119 if test "x$gcc_cv_as_line_zero" = xyes; then
30121 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30126 $as_echo_n "checking support for thin archives... " >&6; }
30127 thin_archive_support=no
30128 echo 'int main (void) { return 0; }' > conftest.c
30129 if ($AR --version | sed 1q | grep "GNU ar" \
30130 && $CC $CFLAGS -c conftest.c \
30131 && $AR rcT conftest.a conftest.o \
30132 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30133 thin_archive_support=yes
30135 rm -f conftest.c conftest.o conftest.a conftest
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30137 $as_echo "$thin_archive_support" >&6; }
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30141 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30142 gcc_cv_ld_eh_frame_hdr=no
30143 if test $in_tree_ld = yes ; then
30144 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 \
30145 && test $in_tree_ld_is_elf = yes; then
30146 gcc_cv_ld_eh_frame_hdr=yes
30148 elif test x$gcc_cv_ld != x; then
30149 if echo "$ld_ver" | grep GNU > /dev/null; then
30150 # Check if linker supports --eh-frame-hdr option
30151 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30152 gcc_cv_ld_eh_frame_hdr=yes
30154 else
30155 case "$target" in
30156 *-*-solaris2*)
30157 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30158 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30159 gcc_cv_ld_eh_frame_hdr=yes
30162 esac
30166 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30168 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30172 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30175 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30176 gcc_cv_ld_eh_frame_ciev3=no
30177 if test $in_tree_ld = yes ; then
30178 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 \
30179 && test $in_tree_ld_is_elf = yes; then
30180 gcc_cv_ld_eh_frame_ciev3=yes
30182 elif test x$gcc_cv_ld != x; then
30183 if echo "$ld_ver" | grep GNU > /dev/null; then
30184 gcc_cv_ld_eh_frame_ciev3=yes
30185 if test 0"$ld_date" -lt 20040513; then
30186 if test -n "$ld_date"; then
30187 # If there was date string, but was earlier than 2004-05-13, fail
30188 gcc_cv_ld_eh_frame_ciev3=no
30189 elif test "$ld_vers_major" -lt 2; then
30190 gcc_cv_ld_eh_frame_ciev3=no
30191 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30192 gcc_cv_ld_eh_frame_ciev3=no
30195 else
30196 case "$target" in
30197 *-*-solaris2*)
30198 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30199 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30200 gcc_cv_ld_eh_frame_ciev3=yes
30203 esac
30207 cat >>confdefs.h <<_ACEOF
30208 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30209 _ACEOF
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30212 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30215 $as_echo_n "checking linker position independent executable support... " >&6; }
30216 gcc_cv_ld_pie=no
30217 if test $in_tree_ld = yes ; then
30218 case "$target" in
30219 # Full PIE support on Solaris was only introduced in gld 2.26.
30220 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30221 *) gcc_gld_pie_min_version=15 ;;
30222 esac
30223 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 \
30224 && test $in_tree_ld_is_elf = yes; then
30225 gcc_cv_ld_pie=yes
30227 elif test x$gcc_cv_ld != x; then
30228 # Check if linker supports -pie option
30229 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30230 gcc_cv_ld_pie=yes
30231 case "$target" in
30232 *-*-solaris2*)
30233 if echo "$ld_ver" | grep GNU > /dev/null \
30234 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30235 gcc_cv_ld_pie=no
30238 esac
30239 else
30240 case "$target" in
30241 *-*-solaris2.1[1-9]*)
30242 # Solaris 11.3 added PIE support.
30243 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30244 gcc_cv_ld_pie=yes
30247 esac
30250 if test x"$gcc_cv_ld_pie" = xyes; then
30252 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30256 $as_echo "$gcc_cv_ld_pie" >&6; }
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30259 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30260 gcc_cv_ld_pie_copyreloc=no
30261 if test $gcc_cv_ld_pie = yes ; then
30262 if test $in_tree_ld = yes ; then
30263 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
30264 gcc_cv_ld_pie_copyreloc=yes
30266 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30267 # Check if linker supports -pie option with copy reloc
30268 case "$target" in
30269 i?86-*-linux* | x86_64-*-linux*)
30270 cat > conftest1.s <<EOF
30271 .globl a_glob
30272 .data
30273 .type a_glob, @object
30274 .size a_glob, 4
30275 a_glob:
30276 .long 2
30278 cat > conftest2.s <<EOF
30279 .text
30280 .globl main
30281 .type main, @function
30282 main:
30283 movl %eax, a_glob(%rip)
30284 .size main, .-main
30285 .globl ptr
30286 .section .data.rel,"aw",@progbits
30287 .type ptr, @object
30288 ptr:
30289 .quad a_glob
30291 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30292 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30293 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30294 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30295 gcc_cv_ld_pie_copyreloc=yes
30297 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30299 esac
30303 cat >>confdefs.h <<_ACEOF
30304 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30305 _ACEOF
30307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30308 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30311 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30312 gcc_cv_ld_eh_gc_sections=no
30313 if test $in_tree_ld = yes ; then
30314 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 \
30315 && test $in_tree_ld_is_elf = yes; then
30316 gcc_cv_ld_eh_gc_sections=yes
30318 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30319 cat > conftest.s <<EOF
30320 .section .text
30321 .globl _start
30322 .type _start, @function
30323 _start:
30324 .long foo
30325 .size _start, .-_start
30326 .section .text.foo,"ax",@progbits
30327 .type foo, @function
30328 foo:
30329 .long 0
30330 .size foo, .-foo
30331 .section .gcc_except_table.foo,"a",@progbits
30332 .L0:
30333 .long 0
30334 .section .eh_frame,"a",@progbits
30335 .long .L0
30337 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30338 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30339 | grep "gc-sections option ignored" > /dev/null; then
30340 gcc_cv_ld_eh_gc_sections=no
30341 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30342 | grep gcc_except_table > /dev/null; then
30343 gcc_cv_ld_eh_gc_sections=yes
30344 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30345 if test x$gcc_cv_as_comdat_group != xyes; then
30346 gcc_cv_ld_eh_gc_sections=no
30347 cat > conftest.s <<EOF
30348 .section .text
30349 .globl _start
30350 .type _start, @function
30351 _start:
30352 .long foo
30353 .size _start, .-_start
30354 .section .gnu.linkonce.t.foo,"ax",@progbits
30355 .type foo, @function
30356 foo:
30357 .long 0
30358 .size foo, .-foo
30359 .section .gcc_except_table.foo,"a",@progbits
30360 .L0:
30361 .long 0
30362 .section .eh_frame,"a",@progbits
30363 .long .L0
30365 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30366 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30367 | grep "gc-sections option ignored" > /dev/null; then
30368 gcc_cv_ld_eh_gc_sections=no
30369 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30370 | grep gcc_except_table > /dev/null; then
30371 gcc_cv_ld_eh_gc_sections=yes
30377 rm -f conftest.s conftest.o conftest
30379 case "$target" in
30380 hppa*-*-linux*)
30381 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30382 gcc_cv_ld_eh_gc_sections=no
30384 esac
30385 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30387 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30391 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30394 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30395 gcc_cv_ld_eh_gc_sections_bug=no
30396 if test $in_tree_ld = yes ; then
30397 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 \
30398 && test $in_tree_ld_is_elf = yes; then
30399 gcc_cv_ld_eh_gc_sections_bug=yes
30401 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
30402 gcc_cv_ld_eh_gc_sections_bug=yes
30403 cat > conftest.s <<EOF
30404 .section .text
30405 .globl _start
30406 .type _start, @function
30407 _start:
30408 .long foo
30409 .size _start, .-_start
30410 .section .text.startup.foo,"ax",@progbits
30411 .type foo, @function
30412 foo:
30413 .long 0
30414 .size foo, .-foo
30415 .section .gcc_except_table.foo,"a",@progbits
30416 .L0:
30417 .long 0
30418 .section .eh_frame,"a",@progbits
30419 .long .L0
30421 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30422 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30423 | grep "gc-sections option ignored" > /dev/null; then
30425 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30426 | grep gcc_except_table > /dev/null; then
30427 gcc_cv_ld_eh_gc_sections_bug=no
30430 rm -f conftest.s conftest.o conftest
30432 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30434 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30438 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30441 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30442 # gold/gld support compressed debug sections since binutils 2.19/2.21
30443 # In binutils 2.26, gld gained support for the ELF gABI format.
30444 if test $in_tree_ld = yes ; then
30445 gcc_cv_ld_compress_debug=0
30446 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30447 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30448 gcc_cv_ld_compress_debug=2
30449 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30450 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30451 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30452 gcc_cv_ld_compress_debug=3
30453 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30454 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30455 && test $in_tree_ld_is_elf = yes; then
30456 gcc_cv_ld_compress_debug=1
30458 elif echo "$ld_ver" | grep GNU > /dev/null; then
30459 if test "$ld_vers_major" -lt 2 \
30460 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30461 gcc_cv_ld_compress_debug=0
30462 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30463 gcc_cv_ld_compress_debug=1
30464 else
30465 gcc_cv_ld_compress_debug=3
30466 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30468 if test $ld_is_gold = yes; then
30469 gcc_cv_ld_compress_debug=2
30470 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30472 else
30473 case "${target}" in
30474 *-*-solaris2*)
30475 # Introduced in Solaris 11.2.
30476 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30477 gcc_cv_ld_compress_debug=3
30478 gcc_cv_ld_compress_debug_option="-z compress-sections"
30479 else
30480 gcc_cv_ld_compress_debug=0
30484 # Assume linkers other than GNU ld don't support compessed debug
30485 # sections.
30486 gcc_cv_ld_compress_debug=0
30488 esac
30491 cat >>confdefs.h <<_ACEOF
30492 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30493 _ACEOF
30496 cat >>confdefs.h <<_ACEOF
30497 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30498 _ACEOF
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30501 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30503 if test x"$ld64_flag" = x"yes"; then
30505 # Set defaults for possibly untestable items.
30506 gcc_cv_ld64_export_dynamic=0
30507 gcc_cv_ld64_platform_version=0
30509 if test "$build" = "$host"; then
30510 darwin_try_test=1
30511 else
30512 darwin_try_test=0
30515 # On Darwin, because of FAT library support, it is often possible to execute
30516 # exes from compatible archs even when the host differs from the build system.
30517 case "$build","$host" in
30518 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30519 darwin_try_test=1;;
30520 *) ;;
30521 esac
30523 # If the configurer specified a minimum ld64 version to be supported, then use
30524 # that to determine feature support.
30525 if test x"${gcc_cv_ld64_version}" != x; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30527 $as_echo_n "checking ld64 specified version... " >&6; }
30528 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30530 $as_echo "$gcc_cv_ld64_major" >&6; }
30531 if test "$gcc_cv_ld64_major" -ge 236; then
30532 gcc_cv_ld64_export_dynamic=1
30534 if test "$gcc_cv_ld64_major" -ge 512; then
30535 gcc_cv_ld64_platform_version=1
30537 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30538 # If the version was not specified, try to find it.
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30540 $as_echo_n "checking linker version... " >&6; }
30541 if test x"${gcc_cv_ld64_version}" = x; then
30542 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30545 $as_echo "$gcc_cv_ld64_version" >&6; }
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30548 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30549 gcc_cv_ld64_export_dynamic=1
30550 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30551 gcc_cv_ld64_export_dynamic=0
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30554 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30557 $as_echo_n "checking linker for -platform_version support... " >&6; }
30558 gcc_cv_ld64_platform_version=1
30559 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30560 gcc_cv_ld64_platform_version=0
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30563 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30566 if test x"${gcc_cv_ld64_version}" != x; then
30568 cat >>confdefs.h <<_ACEOF
30569 #define LD64_VERSION "${gcc_cv_ld64_version}"
30570 _ACEOF
30575 cat >>confdefs.h <<_ACEOF
30576 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30577 _ACEOF
30581 cat >>confdefs.h <<_ACEOF
30582 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30583 _ACEOF
30587 if test x"$dsymutil_flag" = x"yes"; then
30589 # If the user specified a dsymutil path, then we will already have the
30590 # version string, otherwise, pick it up.
30591 if test x"$gcc_cv_dsymutil" = x; then
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30593 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30594 dsymutil_vers="tool unspecified"
30595 elif test x"$dsymutil_vers" = x; then
30596 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30599 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30601 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30602 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30603 dsymutil_kind=DWARFUTILS
30604 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30605 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30606 dsymutil_kind=CLANG
30607 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30608 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30609 dsymutil_kind=LLVM
30610 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30611 else
30612 dsymutil_kind=UNKNOWN
30613 dsymutil_vers="0.0"
30615 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30616 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30617 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30618 if test x"${dsymutil_minor}" = x; then
30619 dsymutil_minor=0
30621 if test x"${dsymutil_tiny}" = x; then
30622 dsymutil_tiny=0
30625 cat >>confdefs.h <<_ACEOF
30626 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30627 _ACEOF
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30630 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30633 case $target_os in
30634 win32 | pe | cygwin* | mingw32*)
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30636 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30637 gcc_cv_ld_broken_pe_dwarf5=yes
30638 if test $in_tree_ld = yes ; then
30639 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30640 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30641 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30642 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30643 gcc_cv_ld_broken_pe_dwarf5=no
30645 else
30646 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30647 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30648 gcc_cv_ld_broken_pe_dwarf5=no
30651 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30653 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30657 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30660 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30661 gcc_cv_ld_disable_dynamicbase=no
30662 if test $in_tree_ld = yes; then
30663 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 \
30664 gcc_cv_ld_disable_dynamicbase=yes
30666 else
30667 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30668 gcc_cv_ld_disable_dynamicbase=yes
30671 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30673 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30677 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30679 esac
30681 # --------
30682 # UNSORTED
30683 # --------
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30686 $as_echo_n "checking linker --as-needed support... " >&6; }
30687 if ${gcc_cv_ld_as_needed+:} false; then :
30688 $as_echo_n "(cached) " >&6
30689 else
30690 gcc_cv_ld_as_needed=no
30691 gcc_cv_ld_as_needed_option='--as-needed'
30692 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30693 if test $in_tree_ld = yes ; then
30694 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 \
30695 && test $in_tree_ld_is_elf = yes; then
30696 gcc_cv_ld_as_needed=yes
30697 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30698 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30699 gcc_cv_ld_no_as_needed_option='--pop-state'
30702 elif test x$gcc_cv_ld != x; then
30703 # Check if linker supports --as-needed and --no-as-needed options
30704 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30705 gcc_cv_ld_as_needed=yes
30706 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30707 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30708 && echo "$ld_ver" | grep GNU > /dev/null \
30709 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30710 # Use these options only when both ld.bfd and ld.gold support
30711 # --push-state/--pop-state, which unfortunately wasn't added
30712 # at the same time.
30713 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30714 gcc_cv_ld_no_as_needed_option='--pop-state'
30717 case "$target:$gnu_ld" in
30718 *-*-solaris2*:no)
30719 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30720 # forms.
30721 gcc_cv_ld_as_needed=yes
30722 gcc_cv_ld_as_needed_option="-z ignore"
30723 gcc_cv_ld_no_as_needed_option="-z record"
30725 esac
30727 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30728 # dl_iterate_phdr, i.e. since Solaris 11.
30729 case "$target" in
30730 *-*-solaris2.1[1-9]*)
30731 case "$target" in
30732 i?86-*-* | x86_64-*-*)
30733 if echo "$ld_ver" | grep GNU > /dev/null; then
30734 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30735 gcc_cv_ld_as_needed=no
30738 esac
30740 *-*-solaris2*)
30741 gcc_cv_ld_as_needed=no
30743 esac
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30747 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30748 if test x"$gcc_cv_ld_as_needed" = xyes; then
30750 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30753 cat >>confdefs.h <<_ACEOF
30754 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30755 _ACEOF
30758 cat >>confdefs.h <<_ACEOF
30759 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30760 _ACEOF
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30765 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30766 saved_LDFLAGS="$LDFLAGS"
30767 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30768 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30770 /* end confdefs.h. */
30771 int main(void) {return 0;}
30772 _ACEOF
30773 if ac_fn_cxx_try_link "$LINENO"; then :
30774 gcc_cv_ld_clearcap=yes; break
30775 else
30776 gcc_cv_ld_clearcap=no
30778 rm -f core conftest.err conftest.$ac_objext \
30779 conftest$ac_exeext conftest.$ac_ext
30780 done
30781 LDFLAGS="$saved_LDFLAGS"
30782 if test "x$gcc_cv_ld_clearcap" = xyes; then
30784 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30786 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30790 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30792 case "$target" in
30793 powerpc*-*-*)
30794 case "$target" in
30795 *le-*-linux*)
30796 emul_name="-melf32lppc"
30799 emul_name="-melf32ppc"
30801 esac
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30803 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30804 if ${gcc_cv_ld_ppc_attr+:} false; then :
30805 $as_echo_n "(cached) " >&6
30806 else
30807 gcc_cv_ld_ppc_attr=no
30808 if test x"$ld_is_gold" = xyes; then
30809 gcc_cv_ld_ppc_attr=yes
30810 elif test $in_tree_ld = yes ; then
30811 if test "$gcc_cv_gld_major_version" -eq 2 \
30812 -a "$gcc_cv_gld_minor_version" -ge 28 \
30813 -o "$gcc_cv_gld_major_version" -gt 2; then
30814 gcc_cv_ld_ppc_attr=yes
30816 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30817 # check that merging the long double .gnu_attribute doesn't warn
30818 cat > conftest1.s <<EOF
30819 .gnu_attribute 4,1
30821 cat > conftest2.s <<EOF
30822 .gnu_attribute 4,9
30824 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30825 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30826 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30827 && test ! -s conftest.err; then
30828 gcc_cv_ld_ppc_attr=yes
30830 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30835 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30836 if test x$gcc_cv_ld_ppc_attr = xyes; then
30838 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30842 esac
30844 case "$target:$tm_file" in
30845 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30846 case "$target" in
30847 *le-*-linux*)
30848 emul_name="-melf64lppc"
30850 *-*-linux*)
30851 emul_name="-melf64ppc"
30853 *le-*-freebsd*)
30854 emul_name="-melf64lppc_fbsd"
30856 *-*-freebsd*)
30857 emul_name="-melf64ppc_fbsd"
30859 esac
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30861 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30862 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30863 $as_echo_n "(cached) " >&6
30864 else
30865 gcc_cv_ld_no_dot_syms=no
30866 if test x"$ld_is_gold" = xyes; then
30867 gcc_cv_ld_no_dot_syms=yes
30868 elif test $in_tree_ld = yes ; then
30869 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
30870 gcc_cv_ld_no_dot_syms=yes
30872 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30873 cat > conftest1.s <<EOF
30874 .text
30875 bl .foo
30877 cat > conftest2.s <<EOF
30878 .section ".opd","aw"
30879 .align 3
30880 .globl foo
30881 .type foo,@function
30882 foo:
30883 .quad .LEfoo,.TOC.@tocbase,0
30884 .text
30885 .LEfoo:
30887 .size foo,.-.LEfoo
30889 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30890 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30891 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30892 gcc_cv_ld_no_dot_syms=yes
30894 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30899 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30900 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30902 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30907 $as_echo_n "checking linker large toc support... " >&6; }
30908 if ${gcc_cv_ld_large_toc+:} false; then :
30909 $as_echo_n "(cached) " >&6
30910 else
30911 gcc_cv_ld_large_toc=no
30912 if test x"$ld_is_gold" = xyes; then
30913 gcc_cv_ld_large_toc=yes
30914 elif test $in_tree_ld = yes ; then
30915 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
30916 gcc_cv_ld_large_toc=yes
30918 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30919 cat > conftest.s <<EOF
30920 .section ".tbss","awT",@nobits
30921 .align 3
30922 ie0: .space 8
30923 .global _start
30924 .text
30925 _start:
30926 addis 9,13,ie0@got@tprel@ha
30927 ld 9,ie0@got@tprel@l(9)
30929 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30930 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30931 gcc_cv_ld_large_toc=yes
30933 rm -f conftest conftest.o conftest.s
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30938 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30939 if test x"$gcc_cv_ld_large_toc" = xyes; then
30941 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30946 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30947 if ${gcc_cv_ld_toc_align+:} false; then :
30948 $as_echo_n "(cached) " >&6
30949 else
30950 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30951 cat > conftest.s <<EOF
30952 .global _start
30953 .text
30954 _start:
30955 addis 9,2,x@got@ha
30956 .section .data.rel.ro,"aw",@progbits
30957 .p2align 16
30958 .space 32768
30959 x: .quad .TOC.
30961 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30962 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30963 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)) }'`
30965 rm -f conftest conftest.o conftest.s
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30970 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30971 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30973 cat >>confdefs.h <<_ACEOF
30974 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30975 _ACEOF
30979 esac
30981 case "$target" in
30982 *-*-aix*)
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30984 $as_echo_n "checking linker large toc support... " >&6; }
30985 if ${gcc_cv_ld_large_toc+:} false; then :
30986 $as_echo_n "(cached) " >&6
30987 else
30988 gcc_cv_ld_large_toc=no
30989 if test x$gcc_cv_as != x ; then
30990 cat > conftest.s <<EOF
30991 .toc
30992 LC..1:
30993 .tc a[TC],a[RW]
30994 .extern a[RW]
30995 .csect .text[PR]
30996 .largetoctest:
30997 addis 9,LC..1@u(2)
30998 ld 3,LC..1@l(9)
31000 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
31001 gcc_cv_ld_large_toc=yes
31003 rm -f conftest conftest.o conftest.s
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31008 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31009 if test x"$gcc_cv_ld_large_toc" = xyes; then
31011 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31015 esac
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31018 $as_echo_n "checking linker --build-id support... " >&6; }
31019 if ${gcc_cv_ld_buildid+:} false; then :
31020 $as_echo_n "(cached) " >&6
31021 else
31022 gcc_cv_ld_buildid=no
31023 if test $in_tree_ld = yes ; then
31024 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31025 "$gcc_cv_gld_minor_version" -ge 18 -o \
31026 "$gcc_cv_gld_major_version" -gt 2 \
31027 && test $in_tree_ld_is_elf = yes; then
31028 gcc_cv_ld_buildid=yes
31030 elif test x$gcc_cv_ld != x; then
31031 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31032 gcc_cv_ld_buildid=yes
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31037 $as_echo "$gcc_cv_ld_buildid" >&6; }
31038 if test x"$gcc_cv_ld_buildid" = xyes; then
31040 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31044 # Check whether --enable-linker-build-id was given.
31045 if test "${enable_linker_build_id+set}" = set; then :
31046 enableval=$enable_linker_build_id;
31047 else
31048 enable_linker_build_id=no
31052 if test x"$enable_linker_build_id" = xyes; then
31053 if test x"$gcc_cv_ld_buildid" = xyes; then
31055 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31057 else
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31059 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31063 # In binutils 2.21, GNU ld gained support for new emulations fully
31064 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31066 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31067 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31068 $as_echo_n "(cached) " >&6
31069 else
31070 gcc_cv_ld_sol2_emulation=no
31071 if test $in_tree_ld = yes ; then
31072 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31073 "$gcc_cv_gld_minor_version" -ge 21 -o \
31074 "$gcc_cv_gld_major_version" -gt 2 \
31075 && test $in_tree_ld_is_elf = yes; then
31076 gcc_cv_ld_sol2_emulation=yes
31078 elif test x$gcc_cv_ld != x; then
31079 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31080 grep _sol2 > /dev/null; then
31081 gcc_cv_ld_sol2_emulation=yes
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31086 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31087 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31089 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31094 $as_echo_n "checking linker --sysroot support... " >&6; }
31095 if ${gcc_cv_ld_sysroot+:} false; then :
31096 $as_echo_n "(cached) " >&6
31097 else
31098 gcc_cv_ld_sysroot=no
31099 if test $in_tree_ld = yes ; then
31100 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
31101 gcc_cv_ld_sysroot=yes
31103 elif test x$gcc_cv_ld != x; then
31104 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31105 gcc_cv_ld_sysroot=yes
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31110 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31111 if test x"$gcc_cv_ld_sysroot" = xyes; then
31113 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31117 case $target in
31118 *-*-solaris2*)
31119 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31121 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31122 if ${gcc_cv_solaris_crts+:} false; then :
31123 $as_echo_n "(cached) " >&6
31124 else
31125 gcc_cv_solaris_crts=no
31126 if test x$host != x$target; then
31127 if test "x$with_sysroot" = xyes; then
31128 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31129 else
31130 target_sysroot="${with_sysroot}"
31133 target_libdir="$target_sysroot/usr/lib"
31134 # At the time they were added, gcrt1.o became a symlink for backwards
31135 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31136 case $target in
31137 i?86-*-solaris2* | x86_64-*-solaris2*)
31138 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31140 sparc*-*-solaris2*)
31141 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31143 esac
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31146 $as_echo "$gcc_cv_solaris_crts" >&6; }
31148 esac
31149 if test x$gcc_cv_solaris_crts = xyes; then
31151 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31155 # Check whether --enable-libssp was given.
31156 if test "${enable_libssp+set}" = set; then :
31157 enableval=$enable_libssp; case "${enableval}" in
31158 yes|no)
31161 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31163 esac
31167 # Test for stack protector support in target C library.
31168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31169 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31170 if ${gcc_cv_libc_provides_ssp+:} false; then :
31171 $as_echo_n "(cached) " >&6
31172 else
31173 gcc_cv_libc_provides_ssp=no
31174 if test "x$enable_libssp" = "xno"; then
31175 gcc_cv_libc_provides_ssp=yes
31176 elif test "x$enable_libssp" = "xyes"; then
31177 gcc_cv_libc_provides_ssp=no
31178 else
31179 case "$target" in
31180 *-*-musl*)
31181 # All versions of musl provide stack protector
31182 gcc_cv_libc_provides_ssp=yes;;
31183 *-*-linux* | *-*-kfreebsd*-gnu)
31184 # glibc 2.4 and later provides __stack_chk_fail and
31185 # either __stack_chk_guard, or TLS access to stack guard canary.
31187 if test $glibc_version_major -gt 2 \
31188 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31189 gcc_cv_libc_provides_ssp=yes
31190 else
31192 if test -f $target_header_dir/features.h \
31193 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31194 $target_header_dir/features.h > /dev/null; then
31195 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31196 $target_header_dir/features.h > /dev/null && \
31197 test -f $target_header_dir/bits/uClibc_config.h && \
31198 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31199 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31200 gcc_cv_libc_provides_ssp=yes
31202 # all versions of Bionic support stack protector
31203 elif test -f $target_header_dir/sys/cdefs.h \
31204 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31205 $target_header_dir/sys/cdefs.h > /dev/null; then
31206 gcc_cv_libc_provides_ssp=yes
31210 *-*-gnu*)
31211 # Avoid complicated tests (see
31212 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31213 # simply assert that glibc does provide this, which is true for all
31214 # realistically usable GNU/Hurd configurations.
31215 # All supported versions of musl provide it as well
31216 gcc_cv_libc_provides_ssp=yes;;
31217 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31218 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31219 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31220 gcc_cv_libc_provides_ssp=yes
31221 else
31222 echo "no __stack_chk_fail on this target"
31226 *) gcc_cv_libc_provides_ssp=no ;;
31227 esac
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31231 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31233 if test x$gcc_cv_libc_provides_ssp = xyes; then
31235 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31239 # Check whether --enable-default-ssp was given.
31240 # Check whether --enable-default-ssp was given.
31241 if test "${enable_default_ssp+set}" = set; then :
31242 enableval=$enable_default_ssp;
31243 if test x$gcc_cv_libc_provides_ssp = xyes; then
31244 case "$target" in
31245 ia64*-*-*) enable_default_ssp=no ;;
31246 *) enable_default_ssp=$enableval ;;
31247 esac
31248 else
31249 enable_default_ssp=no
31251 else
31252 enable_default_ssp=no
31255 if test x$enable_default_ssp = xyes ; then
31257 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31262 # Test for <sys/sdt.h> on the target.
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31265 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31266 have_sys_sdt_h=no
31267 if test -f $target_header_dir/sys/sdt.h; then
31268 have_sys_sdt_h=yes
31270 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31274 $as_echo "$have_sys_sdt_h" >&6; }
31276 # Check if TFmode long double should be used by default or not.
31277 # Some glibc targets used DFmode long double, but with glibc 2.4
31278 # and later they can use TFmode.
31279 case "$target" in
31280 powerpc*-*-linux* | \
31281 sparc*-*-linux* | \
31282 s390*-*-linux* | \
31283 alpha*-*-linux*)
31285 # Check whether --with-long-double-128 was given.
31286 if test "${with_long_double_128+set}" = set; then :
31287 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31288 else
31290 case "$target" in
31291 s390*-*-linux-musl*)
31292 gcc_cv_target_ldbl128=yes
31294 powerpc*-*-linux-musl*)
31295 gcc_cv_target_ldbl128=no
31299 if test $glibc_version_major -gt 2 \
31300 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31301 gcc_cv_target_ldbl128=yes
31302 else
31304 gcc_cv_target_ldbl128=no
31305 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31306 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31307 && gcc_cv_target_ldbl128=yes
31312 esac
31317 esac
31318 if test x$gcc_cv_target_ldbl128 = xyes; then
31320 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31324 # Check if TFmode long double target should use the IBM extended double or IEEE
31325 # 128-bit floating point formats if long doubles are 128-bits long. The long
31326 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31327 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31328 # libgcc.
31330 # Check whether --with-long-double-format was given.
31331 if test "${with_long_double_format+set}" = set; then :
31332 withval=$with_long_double_format;
31333 case "$target:$with_long_double_format" in
31334 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31337 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31338 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31339 case "$with_cpu" in
31340 power7 | power8 | power9 | power1*)
31344 as_fn_error $? "Configuration option --with-long-double-format is only \
31345 supported if the default cpu is power7 or newer" "$LINENO" 5
31346 with_long_double_format=""
31348 esac
31350 powerpc64*-*-linux*:*)
31351 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31352 with_long_double_format=""
31355 as_fn_error $? "Configure option --with-long-double-format is only supported \
31356 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31357 with_long_double_format=""
31359 esac
31363 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31364 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31365 gcc_cv_libc_provides_hwcap_in_tcb=no
31366 case "$target" in
31367 powerpc*-*-linux*)
31369 if test $glibc_version_major -gt 2 \
31370 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31371 gcc_cv_libc_provides_hwcap_in_tcb=yes
31374 esac
31375 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31377 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31381 # Check if the target LIBC handles PT_GNU_STACK.
31382 gcc_cv_libc_gnustack=unknown
31383 case "$target" in
31384 mips*-*-linux-musl*)
31385 gcc_cv_libc_gnustack=yes
31387 mips*-*-linux*)
31389 if test $glibc_version_major -gt 2 \
31390 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31391 gcc_cv_libc_gnustack=yes
31394 esac
31395 if test x$gcc_cv_libc_gnustack = xyes; then
31397 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31402 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31403 gcc_cv_target_dl_iterate_phdr=unknown
31404 case "$target" in
31405 *-*-solaris2*)
31406 # <link.h> needs both a dl_iterate_phdr declaration and support for
31407 # compilation with largefile support.
31408 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31409 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31410 gcc_cv_target_dl_iterate_phdr=yes
31411 else
31412 gcc_cv_target_dl_iterate_phdr=no
31415 *-*-dragonfly* | *-*-freebsd*)
31416 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31417 gcc_cv_target_dl_iterate_phdr=yes
31418 else
31419 gcc_cv_target_dl_iterate_phdr=no
31422 *-linux-musl*)
31423 gcc_cv_target_dl_iterate_phdr=yes
31425 esac
31427 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31429 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31433 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31435 # We no longer support different GC mechanisms. Emit an error if
31436 # the user configures with --with-gc.
31438 # Check whether --with-gc was given.
31439 if test "${with_gc+set}" = set; then :
31440 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31444 # Libraries to use on the host. This will normally be set by the top
31445 # level Makefile. Here we simply capture the value for our Makefile.
31446 if test -z "${HOST_LIBS+set}"; then
31447 HOST_LIBS=
31451 # Use the system's zlib library.
31453 # Use the system's zlib library.
31454 zlibdir="-L\$(top_builddir)/../zlib"
31455 zlibinc="-I\$(top_srcdir)/../zlib"
31457 # Check whether --with-system-zlib was given.
31458 if test "${with_system_zlib+set}" = set; then :
31459 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31460 zlibdir=
31461 zlibinc=
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31472 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31473 # Check whether --enable-maintainer-mode was given.
31474 if test "${enable_maintainer_mode+set}" = set; then :
31475 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31476 else
31477 maintainer_mode=no
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31482 $as_echo "$maintainer_mode" >&6; }
31484 if test "$maintainer_mode" = "yes"; then
31485 MAINT=''
31486 else
31487 MAINT='#'
31490 if test -z "$CTAGS"; then
31491 CTAGS=ctags
31494 if test -z "$ETAGS"; then
31495 ETAGS=etags
31498 if test -z "$CSCOPE"; then
31499 CSCOPE=cscope
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31505 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31506 # Check whether --enable-link-mutex was given.
31507 if test "${enable_link_mutex+set}" = set; then :
31508 enableval=$enable_link_mutex; do_link_mutex=$enableval
31509 else
31510 do_link_mutex=no
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31514 $as_echo "$do_link_mutex" >&6; }
31516 if test "$do_link_mutex" = "yes"; then
31517 DO_LINK_MUTEX=true
31518 else
31519 DO_LINK_MUTEX=false
31524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31525 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31526 # Check whether --enable-link-serialization was given.
31527 if test "${enable_link_serialization+set}" = set; then :
31528 enableval=$enable_link_serialization; do_link_serialization=$enableval
31529 else
31530 do_link_serialization=no
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31534 $as_echo "$do_link_serialization" >&6; }
31536 case "$do_link_serialization" in
31537 yes)
31538 DO_LINK_SERIALIZATION=1;;
31539 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31540 DO_LINK_SERIALIZATION=$do_link_serialization;;
31542 DO_LINK_SERIALIZATION=;;
31544 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31545 esac
31548 # --------------
31549 # Language hooks
31550 # --------------
31552 # Make empty files to contain the specs and options for each language.
31553 # Then add #include lines to for a compiler that has specs and/or options.
31555 subdirs=
31556 lang_opt_files=
31557 lang_specs_files=
31558 lang_tree_files=
31559 # These (without "all_") are set in each config-lang.in.
31560 # `language' must be a single word so is spelled singularly.
31561 all_languages=
31562 all_compilers=
31563 all_outputs='Makefile'
31564 # List of language configure and makefile fragments.
31565 all_lang_configurefrags=
31566 all_lang_makefrags=
31567 # Additional files for gengtype
31568 all_gtfiles="$target_gtfiles"
31570 # These are the languages that are set in --enable-languages,
31571 # and are available in the GCC tree.
31572 all_selected_languages=
31574 # Add the language fragments.
31575 # Languages are added via two mechanisms. Some information must be
31576 # recorded in makefile variables, these are defined in config-lang.in.
31577 # We accumulate them and plug them into the main Makefile.
31578 # The other mechanism is a set of hooks for each of the main targets
31579 # like `clean', `install', etc.
31581 language_hooks="Make-hooks"
31583 for lang in ${srcdir}/*/config-lang.in
31585 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31587 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31588 if test "x$lang_alias" = x
31589 then
31590 echo "$lang doesn't set \$language." 1>&2
31591 exit 1
31593 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31594 subdirs="$subdirs $subdir"
31596 # $gcc_subdir is where the gcc integration files are to be found
31597 # for a language, both for internal compiler purposes (compiler
31598 # sources implementing front-end to GCC tree converters), and for
31599 # build infrastructure purposes (Make-lang.in, etc.)
31601 # This will be <subdir> (relative to $srcdir) if a line like
31602 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31603 # is found in <langdir>/config-lang.in, and will remain <langdir>
31604 # otherwise.
31606 # Except for the language alias (fetched above), the regular
31607 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31608 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31609 # only this and the language alias.
31611 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31612 if [ "$gcc_subdir" = "" ]; then
31613 gcc_subdir="$subdir"
31616 case ",$enable_languages," in
31617 *,$lang_alias,*)
31618 all_selected_languages="$all_selected_languages $lang_alias"
31619 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31620 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31623 esac
31625 language=
31626 boot_language=
31627 compilers=
31628 outputs=
31629 gtfiles=
31630 subdir_requires=
31631 . ${srcdir}/$gcc_subdir/config-lang.in
31632 if test "x$language" = x
31633 then
31634 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31635 exit 1
31638 ok=:
31639 case ",$enable_languages," in
31640 *,$lang_alias,*) ;;
31642 for i in $subdir_requires; do
31643 test -f "${srcdir}/$i/config-lang.in" && continue
31644 ok=false
31645 break
31646 done
31648 esac
31649 $ok || continue
31651 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31652 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31653 # Put c/Make-lang.in fragment first to match serialization languages order.
31654 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31655 else
31656 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31658 if test -f $srcdir/$gcc_subdir/lang.opt; then
31659 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31660 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31662 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31663 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31665 all_languages="$all_languages $language"
31666 all_compilers="$all_compilers $compilers"
31667 all_outputs="$all_outputs $outputs"
31668 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31669 case ",$enable_languages," in
31670 *,lto,*)
31672 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31674 enable_lto=yes
31677 *) ;;
31678 esac
31679 done
31681 check_languages=
31682 for language in $all_selected_languages
31684 check_languages="$check_languages check-$language"
31685 done
31687 selftest_languages=
31688 for language in $all_selected_languages
31690 selftest_languages="$selftest_languages selftest-$language"
31691 done
31693 # We link each language in with a set of hooks, reached indirectly via
31694 # lang.${target}. Only do so for selected languages.
31696 rm -f Make-hooks
31697 touch Make-hooks
31698 target_list="all.cross start.encap rest.encap tags \
31699 install-common install-man install-info install-dvi install-pdf \
31700 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31701 mostlyclean clean distclean maintainer-clean install-plugin"
31703 for t in $target_list
31706 for lang in $all_selected_languages
31708 x="$x $lang.$t"
31709 done
31710 echo "lang.$t: $x" >> Make-hooks
31711 done
31713 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31714 echo "SERIAL_LIST =" >> Make-hooks
31715 echo else >> Make-hooks
31716 lang_cnt=0
31717 lang_list=
31718 prev=c
31719 serialization_languages=c
31720 for lang in $all_selected_languages
31722 test $lang = c && continue
31723 if test $lang = lto; then
31724 serialization_languages="$serialization_languages lto1 lto2"
31725 else
31726 serialization_languages="$serialization_languages $lang"
31728 done
31729 for lang in $serialization_languages
31731 test $lang = c && continue
31732 lang_cnt=`expr $lang_cnt + 1`
31733 lang_list=" $prev$lang_list"
31734 prev=${lang}
31735 done
31736 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31737 echo endif >> Make-hooks
31738 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31739 echo "INDEX.c = 0" >> Make-hooks
31740 lang_idx=1
31741 for lang in $serialization_languages
31743 test $lang = c && continue
31744 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31745 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31746 lang_cnt=`expr $lang_cnt - 1`
31747 lang_idx=`expr $lang_idx + 1`
31748 done
31750 # --------
31751 # Option include files
31752 # --------
31754 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31755 option_includes="option-includes.mk"
31758 # --------
31759 # UNSORTED
31760 # --------
31762 # Create .gdbinit.
31764 echo "dir ." > .gdbinit
31765 echo "dir ${srcdir}" >> .gdbinit
31766 if test x$gdb_needs_out_file_path = xyes
31767 then
31768 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31770 if test "x$subdirs" != x; then
31771 for s in $subdirs
31773 echo "dir ${srcdir}/$s" >> .gdbinit
31774 done
31776 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31777 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31779 # Put a breakpoint on __asan_report_error to help with debugging buffer
31780 # overflow.
31781 case "$CFLAGS" in
31782 *-fsanitize=address*)
31783 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31785 esac
31787 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31791 # Find a directory in which to install a shared libgcc.
31793 # Check whether --enable-version-specific-runtime-libs was given.
31794 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31795 enableval=$enable_version_specific_runtime_libs;
31799 # Substitute configuration variables
31869 # Echo link setup.
31870 if test x${build} = x${host} ; then
31871 if test x${host} = x${target} ; then
31872 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31873 else
31874 echo "Links are now set up to build a cross-compiler" 1>&2
31875 echo " from ${host} to ${target}." 1>&2
31877 else
31878 if test x${host} = x${target} ; then
31879 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31880 echo " for ${target}." 1>&2
31881 else
31882 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31883 echo " from ${host} to ${target}." 1>&2
31892 if test "x${ISLLIBS}" != "x" ; then
31894 $as_echo "#define HAVE_isl 1" >>confdefs.h
31898 # Check for plugin support
31899 # Check whether --enable-plugin was given.
31900 if test "${enable_plugin+set}" = set; then :
31901 enableval=$enable_plugin; enable_plugin=$enableval
31902 else
31903 enable_plugin=yes; default_plugin=yes
31907 pluginlibs=
31908 plugin_check=yes
31910 case "${host}" in
31911 *-*-mingw*)
31912 # Since plugin support under MinGW is not as straightforward as on
31913 # other platforms (e.g., we have to link import library, etc), we
31914 # only enable it if explicitly requested.
31915 if test x"$default_plugin" = x"yes"; then
31916 enable_plugin=no
31917 elif test x"$enable_plugin" = x"yes"; then
31918 # Use make's target variable to derive import library name.
31919 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31920 plugin_check=no
31923 *-*-darwin*)
31924 if test x$build = x$host; then
31925 export_sym_check="nm${exeext} -g"
31926 elif test x$host = x$target; then
31927 export_sym_check="$gcc_cv_nm -g"
31928 else
31929 export_sym_check=
31933 if test x$build = x$host; then
31934 export_sym_check="objdump${exeext} -T"
31935 elif test x$host = x$target; then
31936 export_sym_check="$gcc_cv_objdump -T"
31937 else
31938 export_sym_check=
31941 esac
31943 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31946 $as_echo_n "checking for exported symbols... " >&6; }
31947 if test "x$export_sym_check" != x; then
31948 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31949 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31950 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31951 : # No need to use a flag
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31953 $as_echo "yes" >&6; }
31954 else
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31956 $as_echo "yes" >&6; }
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31958 $as_echo_n "checking for -rdynamic... " >&6; }
31959 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31960 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31961 plugin_rdynamic=yes
31962 pluginlibs="-rdynamic"
31963 else
31964 plugin_rdynamic=no
31965 enable_plugin=no
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31968 $as_echo "$plugin_rdynamic" >&6; }
31970 else
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31972 $as_echo "unable to check" >&6; }
31975 # Check -ldl
31976 saved_LIBS="$LIBS"
31977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31978 $as_echo_n "checking for library containing dlopen... " >&6; }
31979 if ${ac_cv_search_dlopen+:} false; then :
31980 $as_echo_n "(cached) " >&6
31981 else
31982 ac_func_search_save_LIBS=$LIBS
31983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31984 /* end confdefs.h. */
31986 /* Override any GCC internal prototype to avoid an error.
31987 Use char because int might match the return type of a GCC
31988 builtin and then its argument prototype would still apply. */
31989 #ifdef __cplusplus
31990 extern "C"
31991 #endif
31992 char dlopen ();
31994 main ()
31996 return dlopen ();
31998 return 0;
32000 _ACEOF
32001 for ac_lib in '' dl; do
32002 if test -z "$ac_lib"; then
32003 ac_res="none required"
32004 else
32005 ac_res=-l$ac_lib
32006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32008 if ac_fn_cxx_try_link "$LINENO"; then :
32009 ac_cv_search_dlopen=$ac_res
32011 rm -f core conftest.err conftest.$ac_objext \
32012 conftest$ac_exeext
32013 if ${ac_cv_search_dlopen+:} false; then :
32014 break
32016 done
32017 if ${ac_cv_search_dlopen+:} false; then :
32019 else
32020 ac_cv_search_dlopen=no
32022 rm conftest.$ac_ext
32023 LIBS=$ac_func_search_save_LIBS
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32026 $as_echo "$ac_cv_search_dlopen" >&6; }
32027 ac_res=$ac_cv_search_dlopen
32028 if test "$ac_res" != no; then :
32029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32033 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32034 pluginlibs="$pluginlibs -ldl"
32036 LIBS="$saved_LIBS"
32038 # Check that we can build shared objects with -fPIC -shared
32039 saved_LDFLAGS="$LDFLAGS"
32040 saved_CFLAGS="$CFLAGS"
32041 case "${host}" in
32042 *-*-darwin*)
32043 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32044 CFLAGS="$CFLAGS -fPIC"
32045 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32048 CFLAGS="$CFLAGS -fPIC"
32049 LDFLAGS="$LDFLAGS -fPIC -shared"
32051 esac
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32053 $as_echo_n "checking for -fPIC -shared... " >&6; }
32054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32055 /* end confdefs.h. */
32056 extern int X;
32058 main ()
32060 return X == 0;
32062 return 0;
32064 _ACEOF
32065 if ac_fn_cxx_try_link "$LINENO"; then :
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32067 $as_echo "yes" >&6; }; have_pic_shared=yes
32068 else
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070 $as_echo "no" >&6; }; have_pic_shared=no
32072 rm -f core conftest.err conftest.$ac_objext \
32073 conftest$ac_exeext conftest.$ac_ext
32074 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32075 pluginlibs=
32076 enable_plugin=no
32078 LDFLAGS="$saved_LDFLAGS"
32079 CFLAGS="$saved_CFLAGS"
32081 # If plugin support had been requested but not available, fail.
32082 if test x"$enable_plugin" = x"no" ; then
32083 if test x"$default_plugin" != x"yes"; then
32084 as_fn_error $? "
32085 Building GCC with plugin support requires a host that supports
32086 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32093 if test x"$enable_plugin" = x"yes"; then
32095 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32100 # Enable --enable-host-shared
32101 # Check whether --enable-host-shared was given.
32102 if test "${enable_host_shared+set}" = set; then :
32103 enableval=$enable_host_shared; PICFLAG=-fPIC
32104 else
32105 PICFLAG=
32112 # Check whether --enable-libquadmath-support was given.
32113 if test "${enable_libquadmath_support+set}" = set; then :
32114 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32115 else
32116 ENABLE_LIBQUADMATH_SUPPORT=yes
32119 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32121 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32126 # Specify what hash style to use by default.
32128 # Check whether --with-linker-hash-style was given.
32129 if test "${with_linker_hash_style+set}" = set; then :
32130 withval=$with_linker_hash_style; case x"$withval" in
32131 xsysv)
32132 LINKER_HASH_STYLE=sysv
32134 xgnu)
32135 LINKER_HASH_STYLE=gnu
32137 xboth)
32138 LINKER_HASH_STYLE=both
32141 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32143 esac
32144 else
32145 LINKER_HASH_STYLE=''
32148 if test x"${LINKER_HASH_STYLE}" != x; then
32150 cat >>confdefs.h <<_ACEOF
32151 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32152 _ACEOF
32156 # Specify what should be the default of -fdiagnostics-color option.
32158 # Check whether --with-diagnostics-color was given.
32159 if test "${with_diagnostics_color+set}" = set; then :
32160 withval=$with_diagnostics_color; case x"$withval" in
32161 xnever)
32162 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32164 xauto)
32165 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32167 xauto-if-env)
32168 DIAGNOSTICS_COLOR_DEFAULT=-1
32170 xalways)
32171 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32174 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32176 esac
32177 else
32178 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32182 cat >>confdefs.h <<_ACEOF
32183 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32184 _ACEOF
32187 # Specify what should be the default of -fdiagnostics-urls option.
32189 # Check whether --with-diagnostics-urls was given.
32190 if test "${with_diagnostics_urls+set}" = set; then :
32191 withval=$with_diagnostics_urls; case x"$withval" in
32192 xnever)
32193 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32195 xauto)
32196 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32198 xauto-if-env)
32199 DIAGNOSTICS_URLS_DEFAULT=-1
32201 xalways)
32202 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32205 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32207 esac
32208 else
32209 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32213 cat >>confdefs.h <<_ACEOF
32214 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32215 _ACEOF
32218 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32219 # of jit/jit-playback.c.
32220 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32221 echo "gcc_driver_version: ${gcc_driver_version}"
32222 cat > gcc-driver-name.h <<EOF
32223 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32226 # Check whether --enable-default-pie was given.
32227 # Check whether --enable-default-pie was given.
32228 if test "${enable_default_pie+set}" = set; then :
32229 enableval=$enable_default_pie; enable_default_pie=$enableval
32230 else
32231 enable_default_pie=no
32234 if test x$enable_default_pie = xyes ; then
32236 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32241 # Check if -fno-PIE works.
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32243 $as_echo_n "checking for -fno-PIE option... " >&6; }
32244 if ${gcc_cv_c_no_fpie+:} false; then :
32245 $as_echo_n "(cached) " >&6
32246 else
32247 saved_CXXFLAGS="$CXXFLAGS"
32248 CXXFLAGS="$CXXFLAGS -fno-PIE"
32249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32250 /* end confdefs.h. */
32251 int main(void) {return 0;}
32252 _ACEOF
32253 if ac_fn_cxx_try_compile "$LINENO"; then :
32254 gcc_cv_c_no_fpie=yes
32255 else
32256 gcc_cv_c_no_fpie=no
32258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32259 CXXFLAGS="$saved_CXXFLAGS"
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32262 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32263 if test "$gcc_cv_c_no_fpie" = "yes"; then
32264 NO_PIE_CFLAGS="-fno-PIE"
32268 # Check if -no-pie works.
32269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32270 $as_echo_n "checking for -no-pie option... " >&6; }
32271 if ${gcc_cv_no_pie+:} false; then :
32272 $as_echo_n "(cached) " >&6
32273 else
32274 saved_LDFLAGS="$LDFLAGS"
32275 LDFLAGS="$LDFLAGS -no-pie"
32276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32277 /* end confdefs.h. */
32278 int main(void) {return 0;}
32279 _ACEOF
32280 if ac_fn_cxx_try_link "$LINENO"; then :
32281 gcc_cv_no_pie=yes
32282 else
32283 gcc_cv_no_pie=no
32285 rm -f core conftest.err conftest.$ac_objext \
32286 conftest$ac_exeext conftest.$ac_ext
32287 LDFLAGS="$saved_LDFLAGS"
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32290 $as_echo "$gcc_cv_no_pie" >&6; }
32291 if test "$gcc_cv_no_pie" = "yes"; then
32292 NO_PIE_FLAG="-no-pie"
32296 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32297 # Check whether --enable-cet was given.
32298 if test "${enable_cet+set}" = set; then :
32299 enableval=$enable_cet;
32300 case "$enableval" in
32301 yes|no|auto) ;;
32302 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32303 esac
32305 else
32306 enable_cet=auto
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32311 $as_echo_n "checking for CET support... " >&6; }
32313 case "$host" in
32314 i[34567]86-*-linux* | x86_64-*-linux*)
32315 may_have_cet=yes
32316 cet_save_CFLAGS="$CFLAGS"
32317 CFLAGS="$CFLAGS -fcf-protection"
32318 case "$enable_cet" in
32319 auto)
32320 # Check if target supports multi-byte NOPs
32321 # and if compiler and assembler support CET.
32322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32323 /* end confdefs.h. */
32326 main ()
32329 #if !defined(__SSE2__)
32330 #error target does not support multi-byte NOPs
32331 #else
32332 asm ("setssbsy");
32333 #endif
32336 return 0;
32338 _ACEOF
32339 if ac_fn_cxx_try_compile "$LINENO"; then :
32340 enable_cet=yes
32341 else
32342 enable_cet=no
32344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 yes)
32347 # Check if compiler and assembler support CET.
32348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349 /* end confdefs.h. */
32352 main ()
32354 asm ("setssbsy");
32356 return 0;
32358 _ACEOF
32359 if ac_fn_cxx_try_compile "$LINENO"; then :
32360 support_cet=yes
32361 else
32362 support_cet=no
32364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32365 if test $support_cet = "no"; then
32366 if test x$enable_bootstrap != xno \
32367 && test -z "${with_build_subdir}" \
32368 && (test ! -f ../stage_current \
32369 || test `cat ../stage_current` != "stage1"); then
32370 # Require CET support only for the final GCC build.
32371 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32372 else
32373 # Don't enable CET without CET support for non-bootstrap
32374 # build, in stage1 nor for build support.
32375 enable_cet=no
32379 esac
32380 CFLAGS="$cet_save_CFLAGS"
32383 may_have_cet=no
32384 enable_cet=no
32386 esac
32388 cet_save_CFLAGS="$CFLAGS"
32389 CFLAGS="$CFLAGS -fcf-protection=none"
32390 cet_save_LDFLAGS="$LDFLAGS"
32391 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32392 if test x$may_have_cet = xyes; then
32393 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32395 /* end confdefs.h. */
32398 main ()
32400 return 0;
32402 return 0;
32404 _ACEOF
32405 if ac_fn_cxx_try_link "$LINENO"; then :
32406 may_have_cet=yes
32407 else
32408 may_have_cet=no
32410 rm -f core conftest.err conftest.$ac_objext \
32411 conftest$ac_exeext conftest.$ac_ext
32414 if test x$may_have_cet = xyes; then
32415 if test x$cross_compiling = xno; then
32416 if test "$cross_compiling" = yes; then :
32417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32419 as_fn_error $? "cannot run test program while cross compiling
32420 See \`config.log' for more details" "$LINENO" 5; }
32421 else
32422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32423 /* end confdefs.h. */
32426 main ()
32428 asm ("endbr32");
32429 return 0;
32432 _ACEOF
32433 if ac_fn_cxx_try_run "$LINENO"; then :
32434 have_multi_byte_nop=yes
32435 else
32436 have_multi_byte_nop=no
32438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32439 conftest.$ac_objext conftest.beam conftest.$ac_ext
32442 have_cet=no
32443 if test x$have_multi_byte_nop = xyes; then
32444 if test "$cross_compiling" = yes; then :
32445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32447 as_fn_error $? "cannot run test program while cross compiling
32448 See \`config.log' for more details" "$LINENO" 5; }
32449 else
32450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32451 /* end confdefs.h. */
32453 static void
32454 foo (void)
32458 static void
32459 __attribute__ ((noinline, noclone))
32460 xxx (void (*f) (void))
32462 f ();
32465 static void
32466 __attribute__ ((noinline, noclone))
32467 bar (void)
32469 xxx (foo);
32473 main ()
32475 bar ();
32476 return 0;
32479 _ACEOF
32480 if ac_fn_cxx_try_run "$LINENO"; then :
32481 have_cet=no
32482 else
32483 have_cet=yes
32485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32486 conftest.$ac_objext conftest.beam conftest.$ac_ext
32490 if test x$enable_cet = xno -a x$have_cet = xyes; then
32491 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32494 else
32495 # Enable CET in cross compiler if possible so that it will run on both
32496 # CET and non-CET hosts.
32497 have_cet=yes
32499 if test x$enable_cet = xyes; then
32500 CET_HOST_FLAGS="-fcf-protection"
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32502 $as_echo "yes" >&6; }
32503 else
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32505 $as_echo "no" >&6; }
32507 CFLAGS="$cet_save_CFLAGS"
32508 LDFLAGS="$cet_save_LDFLAGS"
32510 case x$enable_languages in
32511 *jit*)
32514 CET_HOST_FLAGS=
32516 esac
32519 # Check linker supports '-z bndplt'
32520 ld_bndplt_support=no
32521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32522 $as_echo_n "checking linker -z bndplt option... " >&6; }
32523 if test x"$ld_is_gold" = xno; then
32524 if test $in_tree_ld = yes ; then
32525 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
32526 ld_bndplt_support=yes
32528 elif test x$gcc_cv_ld != x; then
32529 # Check if linker supports -a bndplt option
32530 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32531 ld_bndplt_support=yes
32535 if test x"$ld_bndplt_support" = xyes; then
32537 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32541 $as_echo "$ld_bndplt_support" >&6; }
32543 # Check linker supports '--push-state'/'--pop-state'
32544 ld_pushpopstate_support=no
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32546 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32547 if test x"$ld_is_gold" = xno; then
32548 if test $in_tree_ld = yes ; then
32549 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
32550 ld_pushpopstate_support=yes
32552 elif test x$gcc_cv_ld != x; then
32553 # Check if linker supports --push-state/--pop-state options
32554 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32555 ld_pushpopstate_support=yes
32559 if test x"$ld_pushpopstate_support" = xyes; then
32561 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32565 $as_echo "$ld_pushpopstate_support" >&6; }
32567 # On s390, float_t has historically been statically defined as double for no
32568 # good reason. To comply with the C standard in the light of this definition,
32569 # gcc has evaluated float expressions in double precision when in
32570 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32571 # a smooth transition towards the new model used by most architectures, where
32572 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32573 # float_t from that, this behavior can be configured with
32574 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32575 # the old model. When omitted, native builds and cross compiles that have target
32576 # libc headers will detect whether libc clamps float_t to double and in that
32577 # case maintain the old model. Otherwise, they will default to the new model.
32578 # Check whether --enable-s390-excess-float-precision was given.
32579 if test "${enable_s390_excess_float_precision+set}" = set; then :
32580 enableval=$enable_s390_excess_float_precision;
32581 else
32582 enable_s390_excess_float_precision=auto
32586 case $target in
32587 s390*-linux*)
32588 if test x"$enable_s390_excess_float_precision" = xauto; then
32589 # Can we autodetect the behavior of the target libc?
32590 if test "$target" = "$host" -a "$host" = "$build"; then
32591 enable_s390_excess_float_precision=autodetect
32592 elif test "x$with_headers" != xno; then
32593 # cross build. are target headers available?
32594 # carefully coerce the build-system compiler to use target headers
32595 saved_CXXFLAGS="$CXXFLAGS"
32596 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32597 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32598 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32600 /* end confdefs.h. */
32602 #include <math.h>
32604 _ACEOF
32605 if ac_fn_cxx_try_compile "$LINENO"; then :
32606 enable_s390_excess_float_precision=autodetect
32608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32609 CXXFLAGS="$saved_CXXFLAGS"
32612 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32613 saved_CXXFLAGS="$CXXFLAGS"
32614 if ! test "$target" = "$host" -a "$host" = "$build"; then
32615 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32616 unset CROSS_TEST_CXXFLAGS
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32619 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32620 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32621 $as_echo_n "(cached) " >&6
32622 else
32624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32625 /* end confdefs.h. */
32627 #define __FLT_EVAL_METHOD__ 0
32628 #include <math.h>
32629 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32631 _ACEOF
32632 if ac_fn_cxx_try_compile "$LINENO"; then :
32633 gcc_cv_float_t_clamped_to_double=yes
32634 else
32635 gcc_cv_float_t_clamped_to_double=no
32637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32640 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32641 CXXFLAGS="$saved_CXXFLAGS"
32642 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32643 else
32644 # no way to detect behavior of target libc, default to new model
32645 enable_s390_excess_float_precision=no
32650 if test x"$enable_s390_excess_float_precision" = xyes; then
32652 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32656 esac
32658 # Configure the subdirectories
32659 # AC_CONFIG_SUBDIRS($subdirs)
32661 # Create the Makefile
32662 # and configure language subdirectories
32663 ac_config_files="$ac_config_files $all_outputs"
32666 ac_config_commands="$ac_config_commands default"
32668 cat >confcache <<\_ACEOF
32669 # This file is a shell script that caches the results of configure
32670 # tests run on this system so they can be shared between configure
32671 # scripts and configure runs, see configure's option --config-cache.
32672 # It is not useful on other systems. If it contains results you don't
32673 # want to keep, you may remove or edit it.
32675 # config.status only pays attention to the cache file if you give it
32676 # the --recheck option to rerun configure.
32678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32680 # following values.
32682 _ACEOF
32684 # The following way of writing the cache mishandles newlines in values,
32685 # but we know of no workaround that is simple, portable, and efficient.
32686 # So, we kill variables containing newlines.
32687 # Ultrix sh set writes to stderr and can't be redirected directly,
32688 # and sets the high bit in the cache file unless we assign to the vars.
32690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32691 eval ac_val=\$$ac_var
32692 case $ac_val in #(
32693 *${as_nl}*)
32694 case $ac_var in #(
32695 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32697 esac
32698 case $ac_var in #(
32699 _ | IFS | as_nl) ;; #(
32700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32701 *) { eval $ac_var=; unset $ac_var;} ;;
32702 esac ;;
32703 esac
32704 done
32706 (set) 2>&1 |
32707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32708 *${as_nl}ac_space=\ *)
32709 # `set' does not quote correctly, so add quotes: double-quote
32710 # substitution turns \\\\ into \\, and sed turns \\ into \.
32711 sed -n \
32712 "s/'/'\\\\''/g;
32713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32714 ;; #(
32716 # `set' quotes correctly as required by POSIX, so do not add quotes.
32717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32719 esac |
32720 sort
32722 sed '
32723 /^ac_cv_env_/b end
32724 t clear
32725 :clear
32726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32727 t end
32728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32729 :end' >>confcache
32730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32731 if test -w "$cache_file"; then
32732 if test "x$cache_file" != "x/dev/null"; then
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32734 $as_echo "$as_me: updating cache $cache_file" >&6;}
32735 if test ! -f "$cache_file" || test -h "$cache_file"; then
32736 cat confcache >"$cache_file"
32737 else
32738 case $cache_file in #(
32739 */* | ?:*)
32740 mv -f confcache "$cache_file"$$ &&
32741 mv -f "$cache_file"$$ "$cache_file" ;; #(
32743 mv -f confcache "$cache_file" ;;
32744 esac
32747 else
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32752 rm -f confcache
32754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32755 # Let make expand exec_prefix.
32756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32758 DEFS=-DHAVE_CONFIG_H
32760 ac_libobjs=
32761 ac_ltlibobjs=
32763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32764 # 1. Remove the extension, and $U if already installed.
32765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32768 # will be set to the directory where LIBOBJS objects are built.
32769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32771 done
32772 LIBOBJS=$ac_libobjs
32774 LTLIBOBJS=$ac_ltlibobjs
32779 : "${CONFIG_STATUS=./config.status}"
32780 ac_write_fail=0
32781 ac_clean_files_save=$ac_clean_files
32782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32784 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32785 as_write_fail=0
32786 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32787 #! $SHELL
32788 # Generated by $as_me.
32789 # Run this file to recreate the current configuration.
32790 # Compiler output produced by configure, useful for debugging
32791 # configure, is in config.log if it exists.
32793 debug=false
32794 ac_cs_recheck=false
32795 ac_cs_silent=false
32797 SHELL=\${CONFIG_SHELL-$SHELL}
32798 export SHELL
32799 _ASEOF
32800 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32801 ## -------------------- ##
32802 ## M4sh Initialization. ##
32803 ## -------------------- ##
32805 # Be more Bourne compatible
32806 DUALCASE=1; export DUALCASE # for MKS sh
32807 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32808 emulate sh
32809 NULLCMD=:
32810 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32811 # is contrary to our usage. Disable this feature.
32812 alias -g '${1+"$@"}'='"$@"'
32813 setopt NO_GLOB_SUBST
32814 else
32815 case `(set -o) 2>/dev/null` in #(
32816 *posix*) :
32817 set -o posix ;; #(
32818 *) :
32820 esac
32824 as_nl='
32826 export as_nl
32827 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32828 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32829 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32830 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32831 # Prefer a ksh shell builtin over an external printf program on Solaris,
32832 # but without wasting forks for bash or zsh.
32833 if test -z "$BASH_VERSION$ZSH_VERSION" \
32834 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32835 as_echo='print -r --'
32836 as_echo_n='print -rn --'
32837 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32838 as_echo='printf %s\n'
32839 as_echo_n='printf %s'
32840 else
32841 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32842 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32843 as_echo_n='/usr/ucb/echo -n'
32844 else
32845 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32846 as_echo_n_body='eval
32847 arg=$1;
32848 case $arg in #(
32849 *"$as_nl"*)
32850 expr "X$arg" : "X\\(.*\\)$as_nl";
32851 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32852 esac;
32853 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32855 export as_echo_n_body
32856 as_echo_n='sh -c $as_echo_n_body as_echo'
32858 export as_echo_body
32859 as_echo='sh -c $as_echo_body as_echo'
32862 # The user is always right.
32863 if test "${PATH_SEPARATOR+set}" != set; then
32864 PATH_SEPARATOR=:
32865 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32866 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32867 PATH_SEPARATOR=';'
32872 # IFS
32873 # We need space, tab and new line, in precisely that order. Quoting is
32874 # there to prevent editors from complaining about space-tab.
32875 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32876 # splitting by setting IFS to empty value.)
32877 IFS=" "" $as_nl"
32879 # Find who we are. Look in the path if we contain no directory separator.
32880 as_myself=
32881 case $0 in #((
32882 *[\\/]* ) as_myself=$0 ;;
32883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32884 for as_dir in $PATH
32886 IFS=$as_save_IFS
32887 test -z "$as_dir" && as_dir=.
32888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32889 done
32890 IFS=$as_save_IFS
32893 esac
32894 # We did not find ourselves, most probably we were run as `sh COMMAND'
32895 # in which case we are not to be found in the path.
32896 if test "x$as_myself" = x; then
32897 as_myself=$0
32899 if test ! -f "$as_myself"; then
32900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32901 exit 1
32904 # Unset variables that we do not need and which cause bugs (e.g. in
32905 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32906 # suppresses any "Segmentation fault" message there. '((' could
32907 # trigger a bug in pdksh 5.2.14.
32908 for as_var in BASH_ENV ENV MAIL MAILPATH
32909 do eval test x\${$as_var+set} = xset \
32910 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32911 done
32912 PS1='$ '
32913 PS2='> '
32914 PS4='+ '
32916 # NLS nuisances.
32917 LC_ALL=C
32918 export LC_ALL
32919 LANGUAGE=C
32920 export LANGUAGE
32922 # CDPATH.
32923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32926 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32927 # ----------------------------------------
32928 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32929 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32930 # script with STATUS, using 1 if that was 0.
32931 as_fn_error ()
32933 as_status=$1; test $as_status -eq 0 && as_status=1
32934 if test "$4"; then
32935 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32936 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32938 $as_echo "$as_me: error: $2" >&2
32939 as_fn_exit $as_status
32940 } # as_fn_error
32943 # as_fn_set_status STATUS
32944 # -----------------------
32945 # Set $? to STATUS, without forking.
32946 as_fn_set_status ()
32948 return $1
32949 } # as_fn_set_status
32951 # as_fn_exit STATUS
32952 # -----------------
32953 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32954 as_fn_exit ()
32956 set +e
32957 as_fn_set_status $1
32958 exit $1
32959 } # as_fn_exit
32961 # as_fn_unset VAR
32962 # ---------------
32963 # Portably unset VAR.
32964 as_fn_unset ()
32966 { eval $1=; unset $1;}
32968 as_unset=as_fn_unset
32969 # as_fn_append VAR VALUE
32970 # ----------------------
32971 # Append the text in VALUE to the end of the definition contained in VAR. Take
32972 # advantage of any shell optimizations that allow amortized linear growth over
32973 # repeated appends, instead of the typical quadratic growth present in naive
32974 # implementations.
32975 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32976 eval 'as_fn_append ()
32978 eval $1+=\$2
32980 else
32981 as_fn_append ()
32983 eval $1=\$$1\$2
32985 fi # as_fn_append
32987 # as_fn_arith ARG...
32988 # ------------------
32989 # Perform arithmetic evaluation on the ARGs, and store the result in the
32990 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32991 # must be portable across $(()) and expr.
32992 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32993 eval 'as_fn_arith ()
32995 as_val=$(( $* ))
32997 else
32998 as_fn_arith ()
33000 as_val=`expr "$@" || test $? -eq 1`
33002 fi # as_fn_arith
33005 if expr a : '\(a\)' >/dev/null 2>&1 &&
33006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33007 as_expr=expr
33008 else
33009 as_expr=false
33012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33013 as_basename=basename
33014 else
33015 as_basename=false
33018 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33019 as_dirname=dirname
33020 else
33021 as_dirname=false
33024 as_me=`$as_basename -- "$0" ||
33025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33026 X"$0" : 'X\(//\)$' \| \
33027 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33028 $as_echo X/"$0" |
33029 sed '/^.*\/\([^/][^/]*\)\/*$/{
33030 s//\1/
33033 /^X\/\(\/\/\)$/{
33034 s//\1/
33037 /^X\/\(\/\).*/{
33038 s//\1/
33041 s/.*/./; q'`
33043 # Avoid depending upon Character Ranges.
33044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33047 as_cr_digits='0123456789'
33048 as_cr_alnum=$as_cr_Letters$as_cr_digits
33050 ECHO_C= ECHO_N= ECHO_T=
33051 case `echo -n x` in #(((((
33052 -n*)
33053 case `echo 'xy\c'` in
33054 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33055 xy) ECHO_C='\c';;
33056 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33057 ECHO_T=' ';;
33058 esac;;
33060 ECHO_N='-n';;
33061 esac
33063 rm -f conf$$ conf$$.exe conf$$.file
33064 if test -d conf$$.dir; then
33065 rm -f conf$$.dir/conf$$.file
33066 else
33067 rm -f conf$$.dir
33068 mkdir conf$$.dir 2>/dev/null
33070 if (echo >conf$$.file) 2>/dev/null; then
33071 if ln -s conf$$.file conf$$ 2>/dev/null; then
33072 as_ln_s='ln -s'
33073 # ... but there are two gotchas:
33074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33076 # In both cases, we have to default to `cp -pR'.
33077 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33078 as_ln_s='cp -pR'
33079 elif ln conf$$.file conf$$ 2>/dev/null; then
33080 as_ln_s=ln
33081 else
33082 as_ln_s='cp -pR'
33084 else
33085 as_ln_s='cp -pR'
33087 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33088 rmdir conf$$.dir 2>/dev/null
33091 # as_fn_mkdir_p
33092 # -------------
33093 # Create "$as_dir" as a directory, including parents if necessary.
33094 as_fn_mkdir_p ()
33097 case $as_dir in #(
33098 -*) as_dir=./$as_dir;;
33099 esac
33100 test -d "$as_dir" || eval $as_mkdir_p || {
33101 as_dirs=
33102 while :; do
33103 case $as_dir in #(
33104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33105 *) as_qdir=$as_dir;;
33106 esac
33107 as_dirs="'$as_qdir' $as_dirs"
33108 as_dir=`$as_dirname -- "$as_dir" ||
33109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33110 X"$as_dir" : 'X\(//\)[^/]' \| \
33111 X"$as_dir" : 'X\(//\)$' \| \
33112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33113 $as_echo X"$as_dir" |
33114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33115 s//\1/
33118 /^X\(\/\/\)[^/].*/{
33119 s//\1/
33122 /^X\(\/\/\)$/{
33123 s//\1/
33126 /^X\(\/\).*/{
33127 s//\1/
33130 s/.*/./; q'`
33131 test -d "$as_dir" && break
33132 done
33133 test -z "$as_dirs" || eval "mkdir $as_dirs"
33134 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33137 } # as_fn_mkdir_p
33138 if mkdir -p . 2>/dev/null; then
33139 as_mkdir_p='mkdir -p "$as_dir"'
33140 else
33141 test -d ./-p && rmdir ./-p
33142 as_mkdir_p=false
33146 # as_fn_executable_p FILE
33147 # -----------------------
33148 # Test if FILE is an executable regular file.
33149 as_fn_executable_p ()
33151 test -f "$1" && test -x "$1"
33152 } # as_fn_executable_p
33153 as_test_x='test -x'
33154 as_executable_p=as_fn_executable_p
33156 # Sed expression to map a string onto a valid CPP name.
33157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33159 # Sed expression to map a string onto a valid variable name.
33160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33163 exec 6>&1
33164 ## ----------------------------------- ##
33165 ## Main body of $CONFIG_STATUS script. ##
33166 ## ----------------------------------- ##
33167 _ASEOF
33168 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33171 # Save the log message, to keep $0 and so on meaningful, and to
33172 # report actual input values of CONFIG_FILES etc. instead of their
33173 # values after options handling.
33174 ac_log="
33175 This file was extended by $as_me, which was
33176 generated by GNU Autoconf 2.69. Invocation command line was
33178 CONFIG_FILES = $CONFIG_FILES
33179 CONFIG_HEADERS = $CONFIG_HEADERS
33180 CONFIG_LINKS = $CONFIG_LINKS
33181 CONFIG_COMMANDS = $CONFIG_COMMANDS
33182 $ $0 $@
33184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33187 _ACEOF
33189 case $ac_config_files in *"
33190 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33191 esac
33193 case $ac_config_headers in *"
33194 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33195 esac
33198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33199 # Files that config.status was made for.
33200 config_files="$ac_config_files"
33201 config_headers="$ac_config_headers"
33202 config_links="$ac_config_links"
33203 config_commands="$ac_config_commands"
33205 _ACEOF
33207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33208 ac_cs_usage="\
33209 \`$as_me' instantiates files and other configuration actions
33210 from templates according to the current configuration. Unless the files
33211 and actions are specified as TAGs, all are instantiated by default.
33213 Usage: $0 [OPTION]... [TAG]...
33215 -h, --help print this help, then exit
33216 -V, --version print version number and configuration settings, then exit
33217 --config print configuration, then exit
33218 -q, --quiet, --silent
33219 do not print progress messages
33220 -d, --debug don't remove temporary files
33221 --recheck update $as_me by reconfiguring in the same conditions
33222 --file=FILE[:TEMPLATE]
33223 instantiate the configuration file FILE
33224 --header=FILE[:TEMPLATE]
33225 instantiate the configuration header FILE
33227 Configuration files:
33228 $config_files
33230 Configuration headers:
33231 $config_headers
33233 Configuration links:
33234 $config_links
33236 Configuration commands:
33237 $config_commands
33239 Report bugs to the package provider."
33241 _ACEOF
33242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33243 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33244 ac_cs_version="\\
33245 config.status
33246 configured by $0, generated by GNU Autoconf 2.69,
33247 with options \\"\$ac_cs_config\\"
33249 Copyright (C) 2012 Free Software Foundation, Inc.
33250 This config.status script is free software; the Free Software Foundation
33251 gives unlimited permission to copy, distribute and modify it."
33253 ac_pwd='$ac_pwd'
33254 srcdir='$srcdir'
33255 AWK='$AWK'
33256 test -n "\$AWK" || AWK=awk
33257 _ACEOF
33259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33260 # The default lists apply if the user does not specify any file.
33261 ac_need_defaults=:
33262 while test $# != 0
33264 case $1 in
33265 --*=?*)
33266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33268 ac_shift=:
33270 --*=)
33271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33272 ac_optarg=
33273 ac_shift=:
33276 ac_option=$1
33277 ac_optarg=$2
33278 ac_shift=shift
33280 esac
33282 case $ac_option in
33283 # Handling of the options.
33284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33285 ac_cs_recheck=: ;;
33286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33287 $as_echo "$ac_cs_version"; exit ;;
33288 --config | --confi | --conf | --con | --co | --c )
33289 $as_echo "$ac_cs_config"; exit ;;
33290 --debug | --debu | --deb | --de | --d | -d )
33291 debug=: ;;
33292 --file | --fil | --fi | --f )
33293 $ac_shift
33294 case $ac_optarg in
33295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33296 '') as_fn_error $? "missing file argument" ;;
33297 esac
33298 as_fn_append CONFIG_FILES " '$ac_optarg'"
33299 ac_need_defaults=false;;
33300 --header | --heade | --head | --hea )
33301 $ac_shift
33302 case $ac_optarg in
33303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33304 esac
33305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33306 ac_need_defaults=false;;
33307 --he | --h)
33308 # Conflict between --help and --header
33309 as_fn_error $? "ambiguous option: \`$1'
33310 Try \`$0 --help' for more information.";;
33311 --help | --hel | -h )
33312 $as_echo "$ac_cs_usage"; exit ;;
33313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33315 ac_cs_silent=: ;;
33317 # This is an error.
33318 -*) as_fn_error $? "unrecognized option: \`$1'
33319 Try \`$0 --help' for more information." ;;
33321 *) as_fn_append ac_config_targets " $1"
33322 ac_need_defaults=false ;;
33324 esac
33325 shift
33326 done
33328 ac_configure_extra_args=
33330 if $ac_cs_silent; then
33331 exec 6>/dev/null
33332 ac_configure_extra_args="$ac_configure_extra_args --silent"
33335 _ACEOF
33336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33337 if \$ac_cs_recheck; then
33338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33339 shift
33340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33341 CONFIG_SHELL='$SHELL'
33342 export CONFIG_SHELL
33343 exec "\$@"
33346 _ACEOF
33347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33348 exec 5>>config.log
33350 echo
33351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33352 ## Running $as_me. ##
33353 _ASBOX
33354 $as_echo "$ac_log"
33355 } >&5
33357 _ACEOF
33358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33360 # INIT-COMMANDS
33362 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33363 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33364 subdirs='$subdirs'
33366 _ACEOF
33368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33370 # Handling of arguments.
33371 for ac_config_target in $ac_config_targets
33373 case $ac_config_target in
33374 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33375 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33376 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33377 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33378 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33379 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33380 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33381 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33382 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33383 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33385 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33386 esac
33387 done
33390 # If the user did not use the arguments to specify the items to instantiate,
33391 # then the envvar interface is used. Set only those that are not.
33392 # We use the long form for the default assignment because of an extremely
33393 # bizarre bug on SunOS 4.1.3.
33394 if $ac_need_defaults; then
33395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33397 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33401 # Have a temporary directory for convenience. Make it in the build tree
33402 # simply because there is no reason against having it here, and in addition,
33403 # creating and moving files from /tmp can sometimes cause problems.
33404 # Hook for its removal unless debugging.
33405 # Note that there is a small window in which the directory will not be cleaned:
33406 # after its creation but before its name has been assigned to `$tmp'.
33407 $debug ||
33409 tmp= ac_tmp=
33410 trap 'exit_status=$?
33411 : "${ac_tmp:=$tmp}"
33412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33414 trap 'as_fn_exit 1' 1 2 13 15
33416 # Create a (secure) tmp directory for tmp files.
33419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33420 test -d "$tmp"
33421 } ||
33423 tmp=./conf$$-$RANDOM
33424 (umask 077 && mkdir "$tmp")
33425 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33426 ac_tmp=$tmp
33428 # Set up the scripts for CONFIG_FILES section.
33429 # No need to generate them if there are no CONFIG_FILES.
33430 # This happens for instance with `./config.status config.h'.
33431 if test -n "$CONFIG_FILES"; then
33433 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33434 ac_cs_awk_getline=:
33435 ac_cs_awk_pipe_init=
33436 ac_cs_awk_read_file='
33437 while ((getline aline < (F[key])) > 0)
33438 print(aline)
33439 close(F[key])'
33440 ac_cs_awk_pipe_fini=
33441 else
33442 ac_cs_awk_getline=false
33443 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33444 ac_cs_awk_read_file='
33445 print "|#_!!_#|"
33446 print "cat " F[key] " &&"
33447 '$ac_cs_awk_pipe_init
33448 # The final `:' finishes the AND list.
33449 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33451 ac_cr=`echo X | tr X '\015'`
33452 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33453 # But we know of no other shell where ac_cr would be empty at this
33454 # point, so we can use a bashism as a fallback.
33455 if test "x$ac_cr" = x; then
33456 eval ac_cr=\$\'\\r\'
33458 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33459 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33460 ac_cs_awk_cr='\\r'
33461 else
33462 ac_cs_awk_cr=$ac_cr
33465 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33466 _ACEOF
33468 # Create commands to substitute file output variables.
33470 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33471 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33472 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33473 echo "_ACAWK" &&
33474 echo "_ACEOF"
33475 } >conf$$files.sh &&
33476 . ./conf$$files.sh ||
33477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33478 rm -f conf$$files.sh
33481 echo "cat >conf$$subs.awk <<_ACEOF" &&
33482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33483 echo "_ACEOF"
33484 } >conf$$subs.sh ||
33485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33487 ac_delim='%!_!# '
33488 for ac_last_try in false false false false false :; do
33489 . ./conf$$subs.sh ||
33490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33492 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33493 if test $ac_delim_n = $ac_delim_num; then
33494 break
33495 elif $ac_last_try; then
33496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33497 else
33498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33500 done
33501 rm -f conf$$subs.sh
33503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33504 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33505 _ACEOF
33506 sed -n '
33508 s/^/S["/; s/!.*/"]=/
33511 s/^[^!]*!//
33512 :repl
33513 t repl
33514 s/'"$ac_delim"'$//
33515 t delim
33518 s/\(.\{148\}\)..*/\1/
33519 t more1
33520 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33523 b repl
33524 :more1
33525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33528 s/.\{148\}//
33529 t nl
33530 :delim
33532 s/\(.\{148\}\)..*/\1/
33533 t more2
33534 s/["\\]/\\&/g; s/^/"/; s/$/"/
33537 :more2
33538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33541 s/.\{148\}//
33542 t delim
33543 ' <conf$$subs.awk | sed '
33544 /^[^""]/{
33546 s/\n//
33548 ' >>$CONFIG_STATUS || ac_write_fail=1
33549 rm -f conf$$subs.awk
33550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33551 _ACAWK
33552 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33553 for (key in S) S_is_set[key] = 1
33554 FS = "\a"
33555 \$ac_cs_awk_pipe_init
33558 line = $ 0
33559 nfields = split(line, field, "@")
33560 substed = 0
33561 len = length(field[1])
33562 for (i = 2; i < nfields; i++) {
33563 key = field[i]
33564 keylen = length(key)
33565 if (S_is_set[key]) {
33566 value = S[key]
33567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33568 len += length(value) + length(field[++i])
33569 substed = 1
33570 } else
33571 len += 1 + keylen
33573 if (nfields == 3 && !substed) {
33574 key = field[2]
33575 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33576 \$ac_cs_awk_read_file
33577 next
33580 print line
33582 \$ac_cs_awk_pipe_fini
33583 _ACAWK
33584 _ACEOF
33585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33586 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33587 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33588 else
33590 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33591 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33592 _ACEOF
33594 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33595 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33596 # trailing colons and then remove the whole line if VPATH becomes empty
33597 # (actually we leave an empty line to preserve line numbers).
33598 if test "x$srcdir" = x.; then
33599 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33601 s///
33602 s/^/:/
33603 s/[ ]*$/:/
33604 s/:\$(srcdir):/:/g
33605 s/:\${srcdir}:/:/g
33606 s/:@srcdir@:/:/g
33607 s/^:*//
33608 s/:*$//
33610 s/\(=[ ]*\).*/\1/
33612 s/\n//
33613 s/^[^=]*=[ ]*$//
33617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33618 fi # test -n "$CONFIG_FILES"
33620 # Set up the scripts for CONFIG_HEADERS section.
33621 # No need to generate them if there are no CONFIG_HEADERS.
33622 # This happens for instance with `./config.status Makefile'.
33623 if test -n "$CONFIG_HEADERS"; then
33624 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33625 BEGIN {
33626 _ACEOF
33628 # Transform confdefs.h into an awk script `defines.awk', embedded as
33629 # here-document in config.status, that substitutes the proper values into
33630 # config.h.in to produce config.h.
33632 # Create a delimiter string that does not exist in confdefs.h, to ease
33633 # handling of long lines.
33634 ac_delim='%!_!# '
33635 for ac_last_try in false false :; do
33636 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33637 if test -z "$ac_tt"; then
33638 break
33639 elif $ac_last_try; then
33640 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33641 else
33642 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33644 done
33646 # For the awk script, D is an array of macro values keyed by name,
33647 # likewise P contains macro parameters if any. Preserve backslash
33648 # newline sequences.
33650 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33651 sed -n '
33652 s/.\{148\}/&'"$ac_delim"'/g
33653 t rset
33654 :rset
33655 s/^[ ]*#[ ]*define[ ][ ]*/ /
33656 t def
33658 :def
33659 s/\\$//
33660 t bsnl
33661 s/["\\]/\\&/g
33662 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33663 D["\1"]=" \3"/p
33664 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33666 :bsnl
33667 s/["\\]/\\&/g
33668 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33669 D["\1"]=" \3\\\\\\n"\\/p
33670 t cont
33671 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33672 t cont
33674 :cont
33676 s/.\{148\}/&'"$ac_delim"'/g
33677 t clear
33678 :clear
33679 s/\\$//
33680 t bsnlc
33681 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33683 :bsnlc
33684 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33685 b cont
33686 ' <confdefs.h | sed '
33687 s/'"$ac_delim"'/"\\\
33688 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691 for (key in D) D_is_set[key] = 1
33692 FS = "\a"
33694 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33695 line = \$ 0
33696 split(line, arg, " ")
33697 if (arg[1] == "#") {
33698 defundef = arg[2]
33699 mac1 = arg[3]
33700 } else {
33701 defundef = substr(arg[1], 2)
33702 mac1 = arg[2]
33704 split(mac1, mac2, "(") #)
33705 macro = mac2[1]
33706 prefix = substr(line, 1, index(line, defundef) - 1)
33707 if (D_is_set[macro]) {
33708 # Preserve the white space surrounding the "#".
33709 print prefix "define", macro P[macro] D[macro]
33710 next
33711 } else {
33712 # Replace #undef with comments. This is necessary, for example,
33713 # in the case of _POSIX_SOURCE, which is predefined and required
33714 # on some systems where configure will not decide to define it.
33715 if (defundef == "undef") {
33716 print "/*", prefix defundef, macro, "*/"
33717 next
33721 { print }
33722 _ACAWK
33723 _ACEOF
33724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33725 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33726 fi # test -n "$CONFIG_HEADERS"
33729 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33730 shift
33731 for ac_tag
33733 case $ac_tag in
33734 :[FHLC]) ac_mode=$ac_tag; continue;;
33735 esac
33736 case $ac_mode$ac_tag in
33737 :[FHL]*:*);;
33738 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33739 :[FH]-) ac_tag=-:-;;
33740 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33741 esac
33742 ac_save_IFS=$IFS
33743 IFS=:
33744 set x $ac_tag
33745 IFS=$ac_save_IFS
33746 shift
33747 ac_file=$1
33748 shift
33750 case $ac_mode in
33751 :L) ac_source=$1;;
33752 :[FH])
33753 ac_file_inputs=
33754 for ac_f
33756 case $ac_f in
33757 -) ac_f="$ac_tmp/stdin";;
33758 *) # Look for the file first in the build tree, then in the source tree
33759 # (if the path is not absolute). The absolute path cannot be DOS-style,
33760 # because $ac_f cannot contain `:'.
33761 test -f "$ac_f" ||
33762 case $ac_f in
33763 [\\/$]*) false;;
33764 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33765 esac ||
33766 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33767 esac
33768 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33769 as_fn_append ac_file_inputs " '$ac_f'"
33770 done
33772 # Let's still pretend it is `configure' which instantiates (i.e., don't
33773 # use $as_me), people would be surprised to read:
33774 # /* config.h. Generated by config.status. */
33775 configure_input='Generated from '`
33776 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33777 `' by configure.'
33778 if test x"$ac_file" != x-; then
33779 configure_input="$ac_file. $configure_input"
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33781 $as_echo "$as_me: creating $ac_file" >&6;}
33783 # Neutralize special characters interpreted by sed in replacement strings.
33784 case $configure_input in #(
33785 *\&* | *\|* | *\\* )
33786 ac_sed_conf_input=`$as_echo "$configure_input" |
33787 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33788 *) ac_sed_conf_input=$configure_input;;
33789 esac
33791 case $ac_tag in
33792 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33794 esac
33796 esac
33798 ac_dir=`$as_dirname -- "$ac_file" ||
33799 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33800 X"$ac_file" : 'X\(//\)[^/]' \| \
33801 X"$ac_file" : 'X\(//\)$' \| \
33802 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33803 $as_echo X"$ac_file" |
33804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33805 s//\1/
33808 /^X\(\/\/\)[^/].*/{
33809 s//\1/
33812 /^X\(\/\/\)$/{
33813 s//\1/
33816 /^X\(\/\).*/{
33817 s//\1/
33820 s/.*/./; q'`
33821 as_dir="$ac_dir"; as_fn_mkdir_p
33822 ac_builddir=.
33824 case "$ac_dir" in
33825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33827 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33828 # A ".." for each directory in $ac_dir_suffix.
33829 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33830 case $ac_top_builddir_sub in
33831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33833 esac ;;
33834 esac
33835 ac_abs_top_builddir=$ac_pwd
33836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33837 # for backward compatibility:
33838 ac_top_builddir=$ac_top_build_prefix
33840 case $srcdir in
33841 .) # We are building in place.
33842 ac_srcdir=.
33843 ac_top_srcdir=$ac_top_builddir_sub
33844 ac_abs_top_srcdir=$ac_pwd ;;
33845 [\\/]* | ?:[\\/]* ) # Absolute name.
33846 ac_srcdir=$srcdir$ac_dir_suffix;
33847 ac_top_srcdir=$srcdir
33848 ac_abs_top_srcdir=$srcdir ;;
33849 *) # Relative name.
33850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33851 ac_top_srcdir=$ac_top_build_prefix$srcdir
33852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33853 esac
33854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33857 case $ac_mode in
33860 # CONFIG_FILE
33863 _ACEOF
33865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33866 # If the template does not know about datarootdir, expand it.
33867 # FIXME: This hack should be removed a few years after 2.60.
33868 ac_datarootdir_hack=; ac_datarootdir_seen=
33869 ac_sed_dataroot='
33870 /datarootdir/ {
33874 /@datadir@/p
33875 /@docdir@/p
33876 /@infodir@/p
33877 /@localedir@/p
33878 /@mandir@/p'
33879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33880 *datarootdir*) ac_datarootdir_seen=yes;;
33881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33884 _ACEOF
33885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33886 ac_datarootdir_hack='
33887 s&@datadir@&$datadir&g
33888 s&@docdir@&$docdir&g
33889 s&@infodir@&$infodir&g
33890 s&@localedir@&$localedir&g
33891 s&@mandir@&$mandir&g
33892 s&\\\${datarootdir}&$datarootdir&g' ;;
33893 esac
33894 _ACEOF
33896 # Neutralize VPATH when `$srcdir' = `.'.
33897 # Shell code in configure.ac might set extrasub.
33898 # FIXME: do we really want to maintain this feature?
33899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33900 ac_sed_extra="$ac_vpsub
33901 $extrasub
33902 _ACEOF
33903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33906 s|@configure_input@|$ac_sed_conf_input|;t t
33907 s&@top_builddir@&$ac_top_builddir_sub&;t t
33908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33909 s&@srcdir@&$ac_srcdir&;t t
33910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33911 s&@top_srcdir@&$ac_top_srcdir&;t t
33912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33913 s&@builddir@&$ac_builddir&;t t
33914 s&@abs_builddir@&$ac_abs_builddir&;t t
33915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33916 $ac_datarootdir_hack
33918 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33919 if $ac_cs_awk_getline; then
33920 $AWK -f "$ac_tmp/subs.awk"
33921 else
33922 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33923 fi \
33924 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33927 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33929 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33931 which seems to be undefined. Please make sure it is defined" >&5
33932 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33933 which seems to be undefined. Please make sure it is defined" >&2;}
33935 rm -f "$ac_tmp/stdin"
33936 case $ac_file in
33937 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33938 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33939 esac \
33940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33944 # CONFIG_HEADER
33946 if test x"$ac_file" != x-; then
33948 $as_echo "/* $configure_input */" \
33949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33950 } >"$ac_tmp/config.h" \
33951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33952 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33954 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33955 else
33956 rm -f "$ac_file"
33957 mv "$ac_tmp/config.h" "$ac_file" \
33958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33960 else
33961 $as_echo "/* $configure_input */" \
33962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33963 || as_fn_error $? "could not create -" "$LINENO" 5
33968 # CONFIG_LINK
33971 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33973 else
33974 # Prefer the file from the source tree if names are identical.
33975 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33976 ac_source=$srcdir/$ac_source
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33980 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33982 if test ! -r "$ac_source"; then
33983 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33985 rm -f "$ac_file"
33987 # Try a relative symlink, then a hard link, then a copy.
33988 case $ac_source in
33989 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33990 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33991 esac
33992 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33993 ln "$ac_source" "$ac_file" 2>/dev/null ||
33994 cp -p "$ac_source" "$ac_file" ||
33995 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33999 $as_echo "$as_me: executing $ac_file commands" >&6;}
34001 esac
34004 case $ac_file$ac_mode in
34005 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34006 "gccdepdir":C)
34007 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34008 for lang in $subdirs c-family common analyzer rtl-ssa
34010 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34011 done ;;
34012 "as":F) chmod +x as ;;
34013 "collect-ld":F) chmod +x collect-ld ;;
34014 "nm":F) chmod +x nm ;;
34015 "dsymutil":F) chmod +x dsymutil ;;
34016 "default":C)
34017 case ${CONFIG_HEADERS} in
34018 *auto-host.h:config.in*)
34019 echo > cstamp-h ;;
34020 esac
34021 # Make sure all the subdirs exist.
34022 for d in $subdirs doc build common c-family
34024 test -d $d || mkdir $d
34025 done
34028 esac
34029 done # for ac_tag
34032 as_fn_exit 0
34033 _ACEOF
34034 ac_clean_files=$ac_clean_files_save
34036 test $ac_write_fail = 0 ||
34037 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34040 # configure is writing to config.log, and then calls config.status.
34041 # config.status does its own redirection, appending to config.log.
34042 # Unfortunately, on DOS this fails, as config.log is still kept open
34043 # by configure, so config.status won't be able to write to it; its
34044 # output is simply discarded. So we exec the FD to /dev/null,
34045 # effectively closing config.log, so it can be properly (re)opened and
34046 # appended to by config.status. When coming back to configure, we
34047 # need to make the FD available again.
34048 if test "$no_create" != yes; then
34049 ac_cs_success=:
34050 ac_config_status_args=
34051 test "$silent" = yes &&
34052 ac_config_status_args="$ac_config_status_args --quiet"
34053 exec 5>/dev/null
34054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34055 exec 5>>config.log
34056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34057 # would make configure fail if this is the last instruction.
34058 $ac_cs_success || as_fn_exit 1
34060 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34062 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}