Small fix for -fdump-ada-spec
[official-gcc.git] / gcc / configure
blob254f9b6c9430d17187e8615771705f1057c1573a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 HAVE_PYTHON
809 PYTHON
810 BISON
811 FLEX
812 GENERATED_MANPAGES
813 BUILD_INFO
814 MAKEINFO
815 have_mktemp_command
816 make_compare_target
817 INSTALL_DATA
818 INSTALL_PROGRAM
819 INSTALL
820 ranlib_flags
821 RANLIB
823 LN_S
825 SET_MAKE
826 omp_device_property_deps
827 omp_device_properties
828 accel_dir_suffix
829 real_target_noncanonical
830 enable_as_accelerator
831 gnat_install_lib
832 REPORT_BUGS_TEXI
833 REPORT_BUGS_TO
834 PKGVERSION
835 CONFIGURE_SPECS
836 enable_gcov
837 enable_shared
838 enable_fixed_point
839 enable_decimal_float
840 with_float
841 with_cpu
842 enable_multiarch
843 enable_multilib
844 coverage_flags
845 valgrind_command
846 valgrind_path_defines
847 valgrind_path
848 TREECHECKING
849 nocommon_flag
850 noexception_flags
851 warn_cxxflags
852 warn_cflags
853 c_strict_warn
854 strict_warn
855 c_loose_warn
856 loose_warn
857 aliasing_flags
859 EGREP
860 GREP
861 CXXCPP
862 PICFLAG_FOR_TARGET
863 GDCFLAGS
865 GNATMAKE
866 GNATBIND
867 ac_ct_CXX
868 CXXFLAGS
870 OBJEXT
871 EXEEXT
872 ac_ct_CC
873 CPPFLAGS
874 LDFLAGS
875 CFLAGS
877 GENINSRC
878 CROSS_SYSTEM_HEADER_DIR
879 TARGET_SYSTEM_ROOT_DEFINE
880 TARGET_SYSTEM_ROOT
881 SYSROOT_CFLAGS_FOR_TARGET
882 target_subdir
883 host_subdir
884 build_subdir
885 build_libsubdir
886 target_noncanonical
887 host_noncanonical
888 target_os
889 target_vendor
890 target_cpu
891 target
892 host_os
893 host_vendor
894 host_cpu
895 host
896 build_os
897 build_vendor
898 build_cpu
899 build
900 target_alias
901 host_alias
902 build_alias
903 LIBS
904 ECHO_T
905 ECHO_N
906 ECHO_C
907 DEFS
908 mandir
909 localedir
910 libdir
911 psdir
912 pdfdir
913 dvidir
914 htmldir
915 infodir
916 docdir
917 oldincludedir
918 includedir
919 localstatedir
920 sharedstatedir
921 sysconfdir
922 datadir
923 datarootdir
924 libexecdir
925 sbindir
926 bindir
927 program_transform_name
928 prefix
929 exec_prefix
930 PACKAGE_URL
931 PACKAGE_BUGREPORT
932 PACKAGE_STRING
933 PACKAGE_VERSION
934 PACKAGE_TARNAME
935 PACKAGE_NAME
936 PATH_SEPARATOR
937 SHELL'
938 ac_subst_files='option_includes
939 language_hooks'
940 ac_user_opts='
941 enable_option_checking
942 with_build_libsubdir
943 with_local_prefix
944 with_native_system_header_dir
945 with_build_sysroot
946 with_sysroot
947 with_gxx_include_dir
948 with_gxx_libcxx_include_dir
949 with_cpp_install_dir
950 enable_generated_files_in_srcdir
951 with_gnu_ld
952 with_ld
953 with_demangler_in_ld
954 with_dsymutil
955 with_gnu_as
956 with_as
957 enable_largefile
958 enable_build_format_warnings
959 enable_werror_always
960 enable_checking
961 enable_coverage
962 enable_gather_detailed_mem_stats
963 enable_valgrind_annotations
964 enable_multilib
965 enable_multiarch
966 with_stack_clash_protection_guard_size
967 enable___cxa_atexit
968 enable_decimal_float
969 enable_fixed_point
970 enable_threads
971 enable_tls
972 enable_vtable_verify
973 enable_analyzer
974 enable_objc_gc
975 with_dwarf2
976 enable_shared
977 enable_gcov
978 with_specs
979 with_pkgversion
980 with_bugurl
981 with_documentation_root_url
982 with_changes_root_url
983 enable_languages
984 with_multilib_list
985 with_multilib_generator
986 with_zstd
987 with_zstd_include
988 with_zstd_lib
989 enable_rpath
990 with_libiconv_prefix
991 with_libiconv_type
992 enable_sjlj_exceptions
993 with_gcc_major_version_only
994 enable_secureplt
995 enable_mingw_wildcard
996 enable_large_address_aware
997 enable_leading_mingw64_underscores
998 enable_cld
999 enable_frame_pointer
1000 enable_win32_registry
1001 enable_static
1002 with_pic
1003 enable_fast_install
1004 enable_libtool_lock
1005 enable_ld
1006 enable_gold
1007 with_plugin_ld
1008 enable_gnu_indirect_function
1009 enable_initfini_array
1010 enable_comdat
1011 enable_newlib_nano_formatted_io
1012 enable_standard_branch_protection
1013 enable_fix_cortex_a53_835769
1014 enable_fix_cortex_a53_843419
1015 with_glibc_version
1016 enable_gnu_unique_object
1017 enable_linker_build_id
1018 enable_libssp
1019 enable_default_ssp
1020 with_long_double_128
1021 with_long_double_format
1022 with_gc
1023 with_system_zlib
1024 enable_maintainer_mode
1025 enable_link_mutex
1026 enable_link_serialization
1027 enable_version_specific_runtime_libs
1028 enable_plugin
1029 enable_host_shared
1030 enable_libquadmath_support
1031 with_linker_hash_style
1032 with_diagnostics_color
1033 with_diagnostics_urls
1034 enable_default_pie
1035 enable_cet
1036 enable_s390_excess_float_precision
1038 ac_precious_vars='build_alias
1039 host_alias
1040 target_alias
1042 CFLAGS
1043 LDFLAGS
1044 LIBS
1045 CPPFLAGS
1047 CXXFLAGS
1049 CXXCPP
1051 GMPLIBS
1052 GMPINC
1053 ISLLIBS
1054 ISLINC'
1057 # Initialize some variables set by options.
1058 ac_init_help=
1059 ac_init_version=false
1060 ac_unrecognized_opts=
1061 ac_unrecognized_sep=
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file=/dev/null
1065 exec_prefix=NONE
1066 no_create=
1067 no_recursion=
1068 prefix=NONE
1069 program_prefix=NONE
1070 program_suffix=NONE
1071 program_transform_name=s,x,x,
1072 silent=
1073 site=
1074 srcdir=
1075 verbose=
1076 x_includes=NONE
1077 x_libraries=NONE
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir='${exec_prefix}/bin'
1086 sbindir='${exec_prefix}/sbin'
1087 libexecdir='${exec_prefix}/libexec'
1088 datarootdir='${prefix}/share'
1089 datadir='${datarootdir}'
1090 sysconfdir='${prefix}/etc'
1091 sharedstatedir='${prefix}/com'
1092 localstatedir='${prefix}/var'
1093 includedir='${prefix}/include'
1094 oldincludedir='/usr/include'
1095 docdir='${datarootdir}/doc/${PACKAGE}'
1096 infodir='${datarootdir}/info'
1097 htmldir='${docdir}'
1098 dvidir='${docdir}'
1099 pdfdir='${docdir}'
1100 psdir='${docdir}'
1101 libdir='${exec_prefix}/lib'
1102 localedir='${datarootdir}/locale'
1103 mandir='${datarootdir}/man'
1105 ac_prev=
1106 ac_dashdash=
1107 for ac_option
1109 # If the previous option needs an argument, assign it.
1110 if test -n "$ac_prev"; then
1111 eval $ac_prev=\$ac_option
1112 ac_prev=
1113 continue
1116 case $ac_option in
1117 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1118 *=) ac_optarg= ;;
1119 *) ac_optarg=yes ;;
1120 esac
1122 # Accept the important Cygnus configure options, so we can diagnose typos.
1124 case $ac_dashdash$ac_option in
1126 ac_dashdash=yes ;;
1128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1129 ac_prev=bindir ;;
1130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1131 bindir=$ac_optarg ;;
1133 -build | --build | --buil | --bui | --bu)
1134 ac_prev=build_alias ;;
1135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1136 build_alias=$ac_optarg ;;
1138 -cache-file | --cache-file | --cache-fil | --cache-fi \
1139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1140 ac_prev=cache_file ;;
1141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1143 cache_file=$ac_optarg ;;
1145 --config-cache | -C)
1146 cache_file=config.cache ;;
1148 -datadir | --datadir | --datadi | --datad)
1149 ac_prev=datadir ;;
1150 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1151 datadir=$ac_optarg ;;
1153 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1154 | --dataroo | --dataro | --datar)
1155 ac_prev=datarootdir ;;
1156 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1157 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1158 datarootdir=$ac_optarg ;;
1160 -disable-* | --disable-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid feature name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "enable_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval enable_$ac_useropt=no ;;
1176 -docdir | --docdir | --docdi | --doc | --do)
1177 ac_prev=docdir ;;
1178 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179 docdir=$ac_optarg ;;
1181 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182 ac_prev=dvidir ;;
1183 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184 dvidir=$ac_optarg ;;
1186 -enable-* | --enable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid feature name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval enable_$ac_useropt=\$ac_optarg ;;
1202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1204 | --exec | --exe | --ex)
1205 ac_prev=exec_prefix ;;
1206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1208 | --exec=* | --exe=* | --ex=*)
1209 exec_prefix=$ac_optarg ;;
1211 -gas | --gas | --ga | --g)
1212 # Obsolete; use --with-gas.
1213 with_gas=yes ;;
1215 -help | --help | --hel | --he | -h)
1216 ac_init_help=long ;;
1217 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1218 ac_init_help=recursive ;;
1219 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1220 ac_init_help=short ;;
1222 -host | --host | --hos | --ho)
1223 ac_prev=host_alias ;;
1224 -host=* | --host=* | --hos=* | --ho=*)
1225 host_alias=$ac_optarg ;;
1227 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1228 ac_prev=htmldir ;;
1229 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1230 | --ht=*)
1231 htmldir=$ac_optarg ;;
1233 -includedir | --includedir | --includedi | --included | --include \
1234 | --includ | --inclu | --incl | --inc)
1235 ac_prev=includedir ;;
1236 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1237 | --includ=* | --inclu=* | --incl=* | --inc=*)
1238 includedir=$ac_optarg ;;
1240 -infodir | --infodir | --infodi | --infod | --info | --inf)
1241 ac_prev=infodir ;;
1242 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1243 infodir=$ac_optarg ;;
1245 -libdir | --libdir | --libdi | --libd)
1246 ac_prev=libdir ;;
1247 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1248 libdir=$ac_optarg ;;
1250 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1251 | --libexe | --libex | --libe)
1252 ac_prev=libexecdir ;;
1253 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1254 | --libexe=* | --libex=* | --libe=*)
1255 libexecdir=$ac_optarg ;;
1257 -localedir | --localedir | --localedi | --localed | --locale)
1258 ac_prev=localedir ;;
1259 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1260 localedir=$ac_optarg ;;
1262 -localstatedir | --localstatedir | --localstatedi | --localstated \
1263 | --localstate | --localstat | --localsta | --localst | --locals)
1264 ac_prev=localstatedir ;;
1265 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1266 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1267 localstatedir=$ac_optarg ;;
1269 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1270 ac_prev=mandir ;;
1271 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1272 mandir=$ac_optarg ;;
1274 -nfp | --nfp | --nf)
1275 # Obsolete; use --without-fp.
1276 with_fp=no ;;
1278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1279 | --no-cr | --no-c | -n)
1280 no_create=yes ;;
1282 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1283 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1284 no_recursion=yes ;;
1286 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1287 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1288 | --oldin | --oldi | --old | --ol | --o)
1289 ac_prev=oldincludedir ;;
1290 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1291 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1292 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1293 oldincludedir=$ac_optarg ;;
1295 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1296 ac_prev=prefix ;;
1297 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1298 prefix=$ac_optarg ;;
1300 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1301 | --program-pre | --program-pr | --program-p)
1302 ac_prev=program_prefix ;;
1303 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1304 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1305 program_prefix=$ac_optarg ;;
1307 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1308 | --program-suf | --program-su | --program-s)
1309 ac_prev=program_suffix ;;
1310 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1311 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1312 program_suffix=$ac_optarg ;;
1314 -program-transform-name | --program-transform-name \
1315 | --program-transform-nam | --program-transform-na \
1316 | --program-transform-n | --program-transform- \
1317 | --program-transform | --program-transfor \
1318 | --program-transfo | --program-transf \
1319 | --program-trans | --program-tran \
1320 | --progr-tra | --program-tr | --program-t)
1321 ac_prev=program_transform_name ;;
1322 -program-transform-name=* | --program-transform-name=* \
1323 | --program-transform-nam=* | --program-transform-na=* \
1324 | --program-transform-n=* | --program-transform-=* \
1325 | --program-transform=* | --program-transfor=* \
1326 | --program-transfo=* | --program-transf=* \
1327 | --program-trans=* | --program-tran=* \
1328 | --progr-tra=* | --program-tr=* | --program-t=*)
1329 program_transform_name=$ac_optarg ;;
1331 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1332 ac_prev=pdfdir ;;
1333 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1334 pdfdir=$ac_optarg ;;
1336 -psdir | --psdir | --psdi | --psd | --ps)
1337 ac_prev=psdir ;;
1338 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1339 psdir=$ac_optarg ;;
1341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1342 | -silent | --silent | --silen | --sile | --sil)
1343 silent=yes ;;
1345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1346 ac_prev=sbindir ;;
1347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1348 | --sbi=* | --sb=*)
1349 sbindir=$ac_optarg ;;
1351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1353 | --sharedst | --shareds | --shared | --share | --shar \
1354 | --sha | --sh)
1355 ac_prev=sharedstatedir ;;
1356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1359 | --sha=* | --sh=*)
1360 sharedstatedir=$ac_optarg ;;
1362 -site | --site | --sit)
1363 ac_prev=site ;;
1364 -site=* | --site=* | --sit=*)
1365 site=$ac_optarg ;;
1367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1368 ac_prev=srcdir ;;
1369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1370 srcdir=$ac_optarg ;;
1372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1373 | --syscon | --sysco | --sysc | --sys | --sy)
1374 ac_prev=sysconfdir ;;
1375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1377 sysconfdir=$ac_optarg ;;
1379 -target | --target | --targe | --targ | --tar | --ta | --t)
1380 ac_prev=target_alias ;;
1381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1382 target_alias=$ac_optarg ;;
1384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1385 verbose=yes ;;
1387 -version | --version | --versio | --versi | --vers | -V)
1388 ac_init_version=: ;;
1390 -with-* | --with-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394 as_fn_error $? "invalid package name: $ac_useropt"
1395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1399 "with_$ac_useropt"
1400 "*) ;;
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1403 esac
1404 eval with_$ac_useropt=\$ac_optarg ;;
1406 -without-* | --without-*)
1407 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410 as_fn_error $? "invalid package name: $ac_useropt"
1411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1415 "with_$ac_useropt"
1416 "*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=no ;;
1422 --x)
1423 # Obsolete; use --with-x.
1424 with_x=yes ;;
1426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1427 | --x-incl | --x-inc | --x-in | --x-i)
1428 ac_prev=x_includes ;;
1429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1431 x_includes=$ac_optarg ;;
1433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1435 ac_prev=x_libraries ;;
1436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1438 x_libraries=$ac_optarg ;;
1440 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1441 Try \`$0 --help' for more information"
1444 *=*)
1445 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1446 # Reject names that are not valid shell variable names.
1447 case $ac_envvar in #(
1448 '' | [0-9]* | *[!_$as_cr_alnum]* )
1449 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1450 esac
1451 eval $ac_envvar=\$ac_optarg
1452 export $ac_envvar ;;
1455 # FIXME: should be removed in autoconf 3.0.
1456 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1457 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1458 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1459 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1462 esac
1463 done
1465 if test -n "$ac_prev"; then
1466 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1467 as_fn_error $? "missing argument to $ac_option"
1470 if test -n "$ac_unrecognized_opts"; then
1471 case $enable_option_checking in
1472 no) ;;
1473 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1474 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1475 esac
1478 # Check all directory arguments for consistency.
1479 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1480 datadir sysconfdir sharedstatedir localstatedir includedir \
1481 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1482 libdir localedir mandir
1484 eval ac_val=\$$ac_var
1485 # Remove trailing slashes.
1486 case $ac_val in
1487 */ )
1488 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1489 eval $ac_var=\$ac_val;;
1490 esac
1491 # Be sure to have absolute directory names.
1492 case $ac_val in
1493 [\\/$]* | ?:[\\/]* ) continue;;
1494 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1495 esac
1496 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1497 done
1499 # There might be people who depend on the old broken behavior: `$host'
1500 # used to hold the argument of --host etc.
1501 # FIXME: To remove some day.
1502 build=$build_alias
1503 host=$host_alias
1504 target=$target_alias
1506 # FIXME: To remove some day.
1507 if test "x$host_alias" != x; then
1508 if test "x$build_alias" = x; then
1509 cross_compiling=maybe
1510 elif test "x$build_alias" != "x$host_alias"; then
1511 cross_compiling=yes
1515 ac_tool_prefix=
1516 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1518 test "$silent" = yes && exec 6>/dev/null
1521 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1522 ac_ls_di=`ls -di .` &&
1523 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1524 as_fn_error $? "working directory cannot be determined"
1525 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1526 as_fn_error $? "pwd does not report name of working directory"
1529 # Find the source files, if location was not specified.
1530 if test -z "$srcdir"; then
1531 ac_srcdir_defaulted=yes
1532 # Try the directory containing this script, then the parent directory.
1533 ac_confdir=`$as_dirname -- "$as_myself" ||
1534 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1535 X"$as_myself" : 'X\(//\)[^/]' \| \
1536 X"$as_myself" : 'X\(//\)$' \| \
1537 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1538 $as_echo X"$as_myself" |
1539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1540 s//\1/
1543 /^X\(\/\/\)[^/].*/{
1544 s//\1/
1547 /^X\(\/\/\)$/{
1548 s//\1/
1551 /^X\(\/\).*/{
1552 s//\1/
1555 s/.*/./; q'`
1556 srcdir=$ac_confdir
1557 if test ! -r "$srcdir/$ac_unique_file"; then
1558 srcdir=..
1560 else
1561 ac_srcdir_defaulted=no
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1564 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1565 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1567 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1568 ac_abs_confdir=`(
1569 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1570 pwd)`
1571 # When building in place, set srcdir=.
1572 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 srcdir=.
1575 # Remove unnecessary trailing slashes from srcdir.
1576 # Double slashes in file names in object file debugging info
1577 # mess up M-x gdb in Emacs.
1578 case $srcdir in
1579 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1580 esac
1581 for ac_var in $ac_precious_vars; do
1582 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_env_${ac_var}_value=\$${ac_var}
1584 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1585 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1586 done
1589 # Report the --help message.
1591 if test "$ac_init_help" = "long"; then
1592 # Omit some internal or obsolete options to make the list less imposing.
1593 # This message is too long to be a string in the A/UX 3.1 sh.
1594 cat <<_ACEOF
1595 \`configure' configures this package to adapt to many kinds of systems.
1597 Usage: $0 [OPTION]... [VAR=VALUE]...
1599 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1600 VAR=VALUE. See below for descriptions of some of the useful variables.
1602 Defaults for the options are specified in brackets.
1604 Configuration:
1605 -h, --help display this help and exit
1606 --help=short display options specific to this package
1607 --help=recursive display the short help of all the included packages
1608 -V, --version display version information and exit
1609 -q, --quiet, --silent do not print \`checking ...' messages
1610 --cache-file=FILE cache test results in FILE [disabled]
1611 -C, --config-cache alias for \`--cache-file=config.cache'
1612 -n, --no-create do not create output files
1613 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1615 Installation directories:
1616 --prefix=PREFIX install architecture-independent files in PREFIX
1617 [$ac_default_prefix]
1618 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 [PREFIX]
1621 By default, \`make install' will install all the files in
1622 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1623 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1624 for instance \`--prefix=\$HOME'.
1626 For better control, use the options below.
1628 Fine tuning of the installation directories:
1629 --bindir=DIR user executables [EPREFIX/bin]
1630 --sbindir=DIR system admin executables [EPREFIX/sbin]
1631 --libexecdir=DIR program executables [EPREFIX/libexec]
1632 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1633 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1634 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1635 --libdir=DIR object code libraries [EPREFIX/lib]
1636 --includedir=DIR C header files [PREFIX/include]
1637 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1638 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1639 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1640 --infodir=DIR info documentation [DATAROOTDIR/info]
1641 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1642 --mandir=DIR man documentation [DATAROOTDIR/man]
1643 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1644 --htmldir=DIR html documentation [DOCDIR]
1645 --dvidir=DIR dvi documentation [DOCDIR]
1646 --pdfdir=DIR pdf documentation [DOCDIR]
1647 --psdir=DIR ps documentation [DOCDIR]
1648 _ACEOF
1650 cat <<\_ACEOF
1652 Program names:
1653 --program-prefix=PREFIX prepend PREFIX to installed program names
1654 --program-suffix=SUFFIX append SUFFIX to installed program names
1655 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1657 System types:
1658 --build=BUILD configure for building on BUILD [guessed]
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1660 --target=TARGET configure for building compilers for TARGET [HOST]
1661 _ACEOF
1664 if test -n "$ac_init_help"; then
1666 cat <<\_ACEOF
1668 Optional Features:
1669 --disable-option-checking ignore unrecognized --enable/--with options
1670 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1671 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1672 --enable-generated-files-in-srcdir
1673 put copies of generated files in source dir intended
1674 for creating source tarballs for users without
1675 texinfo bison or flex
1676 --disable-largefile omit support for large files
1677 --disable-build-format-warnings
1678 don't use -Wformat while building GCC
1679 --enable-werror-always enable -Werror despite compiler version
1680 --enable-checking[=LIST]
1681 enable expensive run-time checks. With LIST, enable
1682 only specific categories of checks. Categories are:
1683 yes,no,all,none,release. Flags are:
1684 assert,df,extra,fold,gc,gcac,gimple,misc,
1685 rtlflag,rtl,runtime,tree,valgrind,types
1686 --enable-coverage[=LEVEL]
1687 enable compiler's code coverage collection. Use to
1688 measure compiler performance and locate unused parts
1689 of the compiler. With LEVEL, specify optimization.
1690 Values are opt, noopt, default is noopt
1691 --enable-gather-detailed-mem-stats
1692 enable detailed memory allocation stats gathering
1693 --enable-valgrind-annotations
1694 enable valgrind runtime interaction
1695 --enable-multilib enable library support for multiple ABIs
1696 --enable-multiarch enable support for multiarch paths
1697 --enable-__cxa_atexit enable __cxa_atexit for C++
1698 --enable-decimal-float={no,yes,bid,dpd}
1699 enable decimal float extension to C. Selecting 'bid'
1700 or 'dpd' choses which decimal floating point format
1701 to use
1702 --enable-fixed-point enable fixed-point arithmetic extension to C
1703 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1704 package
1705 --enable-tls enable or disable generation of tls code overriding
1706 the assembler check for tls support
1707 --enable-vtable-verify enable vtable verification feature
1708 --disable-analyzer disable -fanalyzer static analyzer
1709 --enable-objc-gc enable the use of Boehm's garbage collector with the
1710 GNU Objective-C runtime
1711 --disable-shared don't provide a shared libgcc
1712 --disable-gcov don't provide libgcov and related host tools
1713 --enable-languages=LIST specify which front-ends to build
1714 --disable-rpath do not hardcode runtime library paths
1715 --enable-sjlj-exceptions
1716 arrange to use setjmp/longjmp exception handling
1717 --enable-secureplt enable -msecure-plt by default for PowerPC
1718 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1719 Default to platform configuration
1720 --enable-large-address-aware
1721 Link mingw executables with --large-address-aware
1722 --enable-leading-mingw64-underscores
1723 enable leading underscores on 64 bit mingw targets
1724 --enable-cld enable -mcld by default for 32bit x86
1725 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1726 --disable-win32-registry
1727 disable lookup of installation paths in the Registry
1728 on Windows hosts
1729 --enable-win32-registry enable registry lookup (default)
1730 --enable-win32-registry=KEY
1731 use KEY instead of GCC version as the last portion
1732 of the registry key
1733 --enable-shared[=PKGS] build shared libraries [default=yes]
1734 --enable-static[=PKGS] build static libraries [default=yes]
1735 --enable-fast-install[=PKGS]
1736 optimize for fast installation [default=yes]
1737 --disable-libtool-lock avoid locking (might break parallel builds)
1738 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1739 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1740 --enable-gnu-indirect-function
1741 enable the use of the @gnu_indirect_function to
1742 glibc systems
1743 --enable-initfini-array use .init_array/.fini_array sections
1744 --enable-comdat enable COMDAT group support
1745 --enable-newlib-nano-formatted-io
1746 Use nano version formatted IO
1748 --enable-standard-branch-protection
1749 enable Branch Target Identification Mechanism and
1750 Return Address Signing by default for AArch64
1751 --disable-standard-branch-protection
1752 disable Branch Target Identification Mechanism and
1753 Return Address Signing by default for AArch64
1756 --enable-fix-cortex-a53-835769
1757 enable workaround for AArch64 Cortex-A53 erratum
1758 835769 by default
1759 --disable-fix-cortex-a53-835769
1760 disable workaround for AArch64 Cortex-A53 erratum
1761 835769 by default
1764 --enable-fix-cortex-a53-843419
1765 enable workaround for AArch64 Cortex-A53 erratum
1766 843419 by default
1767 --disable-fix-cortex-a53-843419
1768 disable workaround for AArch64 Cortex-A53 erratum
1769 843419 by default
1771 --enable-gnu-unique-object
1772 enable the use of the @gnu_unique_object ELF
1773 extension on glibc systems
1774 --enable-linker-build-id
1775 compiler will always pass --build-id to linker
1776 --enable-libssp enable linking against libssp
1777 --enable-default-ssp enable Stack Smashing Protection as default
1778 --enable-maintainer-mode
1779 enable make rules and dependencies not useful (and
1780 sometimes confusing) to the casual installer
1781 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1782 thrashing on the build machine
1783 --enable-link-serialization
1784 avoid linking multiple GCC front-ends at once using
1785 make dependencies to avoid thrashing on the build
1786 machine
1787 --enable-version-specific-runtime-libs
1788 specify that runtime libraries should be installed
1789 in a compiler-specific directory
1790 --enable-plugin enable plugin support
1791 --enable-host-shared build host code as shared libraries
1792 --disable-libquadmath-support
1793 disable libquadmath support for Fortran
1794 --enable-default-pie enable Position Independent Executable as default
1795 --enable-cet enable Intel CET in host libraries [default=auto]
1796 --enable-s390-excess-float-precision
1797 on s390 targets, evaluate float with double
1798 precision when in standards-conforming mode
1800 Optional Packages:
1801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1803 --with-build-libsubdir=DIR Directory where to find libraries for build system
1804 --with-local-prefix=DIR specifies directory to put local include
1805 --with-native-system-header-dir=dir
1806 use dir as the directory to look for standard
1807 system header files in. Defaults to /usr/include.
1808 --with-build-sysroot=sysroot
1809 use sysroot as the system root during the build
1810 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1811 --with-gxx-include-dir=DIR
1812 specifies directory to put g++ header files
1813 --with-gxx-libcxx-include-dir=DIR
1814 specifies directory to find libc++ header files
1815 --with-cpp-install-dir=DIR
1816 install the user visible C preprocessor in DIR
1817 (relative to PREFIX) as well as PREFIX/bin
1818 --with-gnu-ld arrange to work with GNU ld
1819 --with-ld arrange to use the specified ld (full pathname)
1820 --with-demangler-in-ld try to use demangler in GNU ld
1821 --with-dsymutil arrange to use the specified dsymutil (full
1822 pathname)
1823 --with-gnu-as arrange to work with GNU as
1824 --with-as arrange to use the specified as (full pathname)
1825 --with-stack-clash-protection-guard-size=size
1826 Set the default stack clash protection guard size
1827 for specific targets as a power of two in bytes.
1828 --with-dwarf2 force the default debug format to be DWARF 2 (or
1829 later)
1830 --with-specs=SPECS add SPECS to driver command-line processing
1831 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1832 --with-bugurl=URL Direct users to URL to report a bug
1833 --with-documentation-root-url=URL
1834 Root for documentation URLs
1835 --with-changes-root-url=URL
1836 Root for GCC changes URLs
1837 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1838 SH and x86-64 only)
1839 --with-multilib-generator
1840 Multi-libs configuration string (RISC-V only)
1841 --with-zstd=PATH specify prefix directory for installed zstd library.
1842 Equivalent to --with-zstd-include=PATH/include plus
1843 --with-zstd-lib=PATH/lib
1844 --with-zstd-include=PATH
1845 specify directory for installed zstd include files
1846 --with-zstd-lib=PATH specify directory for the installed zstd library
1847 --with-gnu-ld assume the C compiler uses GNU ld default=no
1848 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1849 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1850 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1851 --with-gcc-major-version-only
1852 use only GCC major number in filesystem paths
1853 --with-pic try to use only PIC/non-PIC objects [default=use
1854 both]
1855 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1856 --with-plugin-ld=[ARG] specify the plugin linker
1857 --with-glibc-version=M.N
1858 assume GCC used with glibc version M.N or later
1859 --with-long-double-128 use 128-bit long double by default
1860 --with-long-double-format={ieee,ibm}
1861 Specify whether PowerPC long double uses IEEE or IBM format
1863 --with-gc={page,zone} this option is not supported anymore. It used to
1864 choose the garbage collection mechanism to use with
1865 the compiler
1866 --with-system-zlib use installed libz
1867 --with-linker-hash-style={sysv,gnu,both}
1868 specify the linker hash style
1869 --with-diagnostics-color={never,auto,auto-if-env,always}
1870 specify the default of -fdiagnostics-color option
1871 auto-if-env stands for -fdiagnostics-color=auto if
1872 GCC_COLOR environment variable is present and
1873 -fdiagnostics-color=never otherwise
1874 --with-diagnostics-urls={never,auto,auto-if-env,always}
1875 specify the default of -fdiagnostics-urls option
1876 auto-if-env stands for -fdiagnostics-urls=auto if
1877 GCC_URLS or TERM_URLS environment variable is
1878 present and -fdiagnostics-urls=never otherwise
1880 Some influential environment variables:
1881 CC C compiler command
1882 CFLAGS C compiler flags
1883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1884 nonstandard directory <lib dir>
1885 LIBS libraries to pass to the linker, e.g. -l<library>
1886 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1887 you have headers in a nonstandard directory <include dir>
1888 CXX C++ compiler command
1889 CXXFLAGS C++ compiler flags
1890 CXXCPP C++ preprocessor
1891 CPP C preprocessor
1892 GMPLIBS How to link GMP
1893 GMPINC How to find GMP include files
1894 ISLLIBS How to link isl
1895 ISLINC How to find isl include files
1897 Use these variables to override the choices made by `configure' or to help
1898 it to find libraries and programs with nonstandard names/locations.
1900 Report bugs to the package provider.
1901 _ACEOF
1902 ac_status=$?
1905 if test "$ac_init_help" = "recursive"; then
1906 # If there are subdirs, report their specific --help.
1907 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1908 test -d "$ac_dir" ||
1909 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1910 continue
1911 ac_builddir=.
1913 case "$ac_dir" in
1914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1917 # A ".." for each directory in $ac_dir_suffix.
1918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1919 case $ac_top_builddir_sub in
1920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1922 esac ;;
1923 esac
1924 ac_abs_top_builddir=$ac_pwd
1925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1926 # for backward compatibility:
1927 ac_top_builddir=$ac_top_build_prefix
1929 case $srcdir in
1930 .) # We are building in place.
1931 ac_srcdir=.
1932 ac_top_srcdir=$ac_top_builddir_sub
1933 ac_abs_top_srcdir=$ac_pwd ;;
1934 [\\/]* | ?:[\\/]* ) # Absolute name.
1935 ac_srcdir=$srcdir$ac_dir_suffix;
1936 ac_top_srcdir=$srcdir
1937 ac_abs_top_srcdir=$srcdir ;;
1938 *) # Relative name.
1939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1940 ac_top_srcdir=$ac_top_build_prefix$srcdir
1941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1942 esac
1943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1945 cd "$ac_dir" || { ac_status=$?; continue; }
1946 # Check for guested configure.
1947 if test -f "$ac_srcdir/configure.gnu"; then
1948 echo &&
1949 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1950 elif test -f "$ac_srcdir/configure"; then
1951 echo &&
1952 $SHELL "$ac_srcdir/configure" --help=recursive
1953 else
1954 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1955 fi || ac_status=$?
1956 cd "$ac_pwd" || { ac_status=$?; break; }
1957 done
1960 test -n "$ac_init_help" && exit $ac_status
1961 if $ac_init_version; then
1962 cat <<\_ACEOF
1963 configure
1964 generated by GNU Autoconf 2.69
1966 Copyright (C) 2012 Free Software Foundation, Inc.
1967 This configure script is free software; the Free Software Foundation
1968 gives unlimited permission to copy, distribute and modify it.
1969 _ACEOF
1970 exit
1973 ## ------------------------ ##
1974 ## Autoconf initialization. ##
1975 ## ------------------------ ##
1977 # ac_fn_c_try_compile LINENO
1978 # --------------------------
1979 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_c_try_compile ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext
1984 if { { ac_try="$ac_compile"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_compile") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_c_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest.$ac_objext; then :
2003 ac_retval=0
2004 else
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 ac_retval=1
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 as_fn_set_status $ac_retval
2013 } # ac_fn_c_try_compile
2015 # ac_fn_cxx_try_compile LINENO
2016 # ----------------------------
2017 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_compile ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext
2022 if { { ac_try="$ac_compile"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_compile") 2>conftest.err
2030 ac_status=$?
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_cxx_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest.$ac_objext; then :
2041 ac_retval=0
2042 else
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 ac_retval=1
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_cxx_try_compile
2053 # ac_fn_cxx_try_cpp LINENO
2054 # ------------------------
2055 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_cpp ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if { { ac_try="$ac_cpp conftest.$ac_ext"
2060 case "(($ac_try" in
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2067 ac_status=$?
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } > conftest.i && {
2075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2076 test ! -s conftest.err
2077 }; then :
2078 ac_retval=0
2079 else
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2083 ac_retval=1
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_cxx_try_cpp
2090 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2091 # ---------------------------------------------------------
2092 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093 # the include files in INCLUDES and setting the cache variable VAR
2094 # accordingly.
2095 ac_fn_cxx_check_header_mongrel ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if eval \${$3+:} false; then :
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \${$3+:} false; then :
2102 $as_echo_n "(cached) " >&6
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 else
2108 # Is the header compilable?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110 $as_echo_n "checking $2 usability... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2114 #include <$2>
2115 _ACEOF
2116 if ac_fn_cxx_try_compile "$LINENO"; then :
2117 ac_header_compiler=yes
2118 else
2119 ac_header_compiler=no
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123 $as_echo "$ac_header_compiler" >&6; }
2125 # Is the header present?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127 $as_echo_n "checking $2 presence... " >&6; }
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 #include <$2>
2131 _ACEOF
2132 if ac_fn_cxx_try_cpp "$LINENO"; then :
2133 ac_header_preproc=yes
2134 else
2135 ac_header_preproc=no
2137 rm -f conftest.err conftest.i conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139 $as_echo "$ac_header_preproc" >&6; }
2141 # So? What about this header?
2142 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2143 yes:no: )
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2149 no:yes:* )
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2153 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2157 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2161 esac
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if eval \${$3+:} false; then :
2165 $as_echo_n "(cached) " >&6
2166 else
2167 eval "$3=\$ac_header_compiler"
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 } # ac_fn_cxx_check_header_mongrel
2177 # ac_fn_cxx_try_run LINENO
2178 # ------------------------
2179 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180 # that executables *can* be run.
2181 ac_fn_cxx_try_run ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_link"
2185 case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>&5
2192 ac_status=$?
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195 { { case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_try") 2>&5
2202 ac_status=$?
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; }; }; then :
2205 ac_retval=0
2206 else
2207 $as_echo "$as_me: program exited with status $ac_status" >&5
2208 $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 ac_retval=$ac_status
2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 as_fn_set_status $ac_retval
2217 } # ac_fn_cxx_try_run
2219 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2220 # ---------------------------------------------------------
2221 # Tests whether HEADER exists and can be compiled using the include files in
2222 # INCLUDES, setting the cache variable VAR accordingly.
2223 ac_fn_cxx_check_header_compile ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2234 #include <$2>
2235 _ACEOF
2236 if ac_fn_cxx_try_compile "$LINENO"; then :
2237 eval "$3=yes"
2238 else
2239 eval "$3=no"
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } # ac_fn_cxx_check_header_compile
2250 # ac_fn_c_try_cpp LINENO
2251 # ----------------------
2252 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2253 ac_fn_c_try_cpp ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { { ac_try="$ac_cpp conftest.$ac_ext"
2257 case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260 esac
2261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262 $as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2264 ac_status=$?
2265 if test -s conftest.err; then
2266 grep -v '^ *+' conftest.err >conftest.er1
2267 cat conftest.er1 >&5
2268 mv -f conftest.er1 conftest.err
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; } > conftest.i && {
2272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2273 test ! -s conftest.err
2274 }; then :
2275 ac_retval=0
2276 else
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 ac_retval=1
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283 as_fn_set_status $ac_retval
2285 } # ac_fn_c_try_cpp
2287 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2288 # ----------------------------------------------
2289 # Tries to find the compile-time value of EXPR in a program that includes
2290 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2291 # computed
2292 ac_fn_cxx_compute_int ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if test "$cross_compiling" = yes; then
2296 # Depending upon the size, compute the lo and hi bounds.
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2301 main ()
2303 static int test_array [1 - 2 * !(($2) >= 0)];
2304 test_array [0] = 0;
2305 return test_array [0];
2308 return 0;
2310 _ACEOF
2311 if ac_fn_cxx_try_compile "$LINENO"; then :
2312 ac_lo=0 ac_mid=0
2313 while :; do
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2318 main ()
2320 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2321 test_array [0] = 0;
2322 return test_array [0];
2325 return 0;
2327 _ACEOF
2328 if ac_fn_cxx_try_compile "$LINENO"; then :
2329 ac_hi=$ac_mid; break
2330 else
2331 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2332 if test $ac_lo -le $ac_mid; then
2333 ac_lo= ac_hi=
2334 break
2336 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 else
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2345 main ()
2347 static int test_array [1 - 2 * !(($2) < 0)];
2348 test_array [0] = 0;
2349 return test_array [0];
2352 return 0;
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2356 ac_hi=-1 ac_mid=-1
2357 while :; do
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2362 main ()
2364 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2365 test_array [0] = 0;
2366 return test_array [0];
2369 return 0;
2371 _ACEOF
2372 if ac_fn_cxx_try_compile "$LINENO"; then :
2373 ac_lo=$ac_mid; break
2374 else
2375 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2376 if test $ac_mid -le $ac_hi; then
2377 ac_lo= ac_hi=
2378 break
2380 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 done
2384 else
2385 ac_lo= ac_hi=
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 # Binary search between lo and hi bounds.
2391 while test "x$ac_lo" != "x$ac_hi"; do
2392 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2397 main ()
2399 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2400 test_array [0] = 0;
2401 return test_array [0];
2404 return 0;
2406 _ACEOF
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2408 ac_hi=$ac_mid
2409 else
2410 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 done
2414 case $ac_lo in #((
2415 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2416 '') ac_retval=1 ;;
2417 esac
2418 else
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2422 static long int longval () { return $2; }
2423 static unsigned long int ulongval () { return $2; }
2424 #include <stdio.h>
2425 #include <stdlib.h>
2427 main ()
2430 FILE *f = fopen ("conftest.val", "w");
2431 if (! f)
2432 return 1;
2433 if (($2) < 0)
2435 long int i = longval ();
2436 if (i != ($2))
2437 return 1;
2438 fprintf (f, "%ld", i);
2440 else
2442 unsigned long int i = ulongval ();
2443 if (i != ($2))
2444 return 1;
2445 fprintf (f, "%lu", i);
2447 /* Do not output a trailing newline, as this causes \r\n confusion
2448 on some platforms. */
2449 return ferror (f) || fclose (f) != 0;
2452 return 0;
2454 _ACEOF
2455 if ac_fn_cxx_try_run "$LINENO"; then :
2456 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2457 else
2458 ac_retval=1
2460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2461 conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 rm -f conftest.val
2465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466 as_fn_set_status $ac_retval
2468 } # ac_fn_cxx_compute_int
2470 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2471 # ---------------------------------------------
2472 # Tests whether TYPE exists after having included INCLUDES, setting cache
2473 # variable VAR accordingly.
2474 ac_fn_cxx_check_type ()
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if eval \${$3+:} false; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 eval "$3=no"
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2487 main ()
2489 if (sizeof ($2))
2490 return 0;
2492 return 0;
2494 _ACEOF
2495 if ac_fn_cxx_try_compile "$LINENO"; then :
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2500 main ()
2502 if (sizeof (($2)))
2503 return 0;
2505 return 0;
2507 _ACEOF
2508 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 else
2511 eval "$3=yes"
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 eval ac_res=\$$3
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2519 $as_echo "$ac_res" >&6; }
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522 } # ac_fn_cxx_check_type
2524 # ac_fn_c_find_intX_t LINENO BITS VAR
2525 # -----------------------------------
2526 # Finds a signed integer type with width BITS, setting cache variable VAR
2527 # accordingly.
2528 ac_fn_c_find_intX_t ()
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2532 $as_echo_n "checking for int$2_t... " >&6; }
2533 if eval \${$3+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 eval "$3=no"
2537 # Order is important - never check a type that is potentially smaller
2538 # than half of the expected target width.
2539 for ac_type in int$2_t 'int' 'long int' \
2540 'long long int' 'short int' 'signed char'; do
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 $ac_includes_default
2544 enum { N = $2 / 2 - 1 };
2546 main ()
2548 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2549 test_array [0] = 0;
2550 return test_array [0];
2553 return 0;
2555 _ACEOF
2556 if ac_fn_cxx_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2559 $ac_includes_default
2560 enum { N = $2 / 2 - 1 };
2562 main ()
2564 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2565 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2566 test_array [0] = 0;
2567 return test_array [0];
2570 return 0;
2572 _ACEOF
2573 if ac_fn_cxx_try_compile "$LINENO"; then :
2575 else
2576 case $ac_type in #(
2577 int$2_t) :
2578 eval "$3=yes" ;; #(
2579 *) :
2580 eval "$3=\$ac_type" ;;
2581 esac
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 if eval test \"x\$"$3"\" = x"no"; then :
2588 else
2589 break
2591 done
2593 eval ac_res=\$$3
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 } # ac_fn_c_find_intX_t
2600 # ac_fn_cxx_try_link LINENO
2601 # -------------------------
2602 # Try to link conftest.$ac_ext, and return whether this succeeded.
2603 ac_fn_cxx_try_link ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 rm -f conftest.$ac_objext conftest$ac_exeext
2607 if { { ac_try="$ac_link"
2608 case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2611 esac
2612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614 (eval "$ac_link") 2>conftest.err
2615 ac_status=$?
2616 if test -s conftest.err; then
2617 grep -v '^ *+' conftest.err >conftest.er1
2618 cat conftest.er1 >&5
2619 mv -f conftest.er1 conftest.err
2621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622 test $ac_status = 0; } && {
2623 test -z "$ac_cxx_werror_flag" ||
2624 test ! -s conftest.err
2625 } && test -s conftest$ac_exeext && {
2626 test "$cross_compiling" = yes ||
2627 test -x conftest$ac_exeext
2628 }; then :
2629 ac_retval=0
2630 else
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 ac_retval=1
2636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2638 # interfere with the next link command; also delete a directory that is
2639 # left behind by Apple's compiler. We do this before executing the actions.
2640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 as_fn_set_status $ac_retval
2644 } # ac_fn_cxx_try_link
2646 # ac_fn_c_find_uintX_t LINENO BITS VAR
2647 # ------------------------------------
2648 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2649 # accordingly.
2650 ac_fn_c_find_uintX_t ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2654 $as_echo_n "checking for uint$2_t... " >&6; }
2655 if eval \${$3+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 eval "$3=no"
2659 # Order is important - never check a type that is potentially smaller
2660 # than half of the expected target width.
2661 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2662 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 $ac_includes_default
2667 main ()
2669 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2670 test_array [0] = 0;
2671 return test_array [0];
2674 return 0;
2676 _ACEOF
2677 if ac_fn_cxx_try_compile "$LINENO"; then :
2678 case $ac_type in #(
2679 uint$2_t) :
2680 eval "$3=yes" ;; #(
2681 *) :
2682 eval "$3=\$ac_type" ;;
2683 esac
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 if eval test \"x\$"$3"\" = x"no"; then :
2688 else
2689 break
2691 done
2693 eval ac_res=\$$3
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698 } # ac_fn_c_find_uintX_t
2700 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2701 # ------------------------------------------------
2702 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2703 ac_fn_cxx_check_header_preproc ()
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2707 $as_echo_n "checking for $2... " >&6; }
2708 if eval \${$3+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2713 #include <$2>
2714 _ACEOF
2715 if ac_fn_cxx_try_cpp "$LINENO"; then :
2716 eval "$3=yes"
2717 else
2718 eval "$3=no"
2720 rm -f conftest.err conftest.i conftest.$ac_ext
2722 eval ac_res=\$$3
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727 } # ac_fn_cxx_check_header_preproc
2729 # ac_fn_cxx_check_func LINENO FUNC VAR
2730 # ------------------------------------
2731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2732 ac_fn_cxx_check_func ()
2734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2736 $as_echo_n "checking for $2... " >&6; }
2737 if eval \${$3+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2744 #define $2 innocuous_$2
2746 /* System header to define __stub macros and hopefully few prototypes,
2747 which can conflict with char $2 (); below.
2748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2749 <limits.h> exists even on freestanding compilers. */
2751 #ifdef __STDC__
2752 # include <limits.h>
2753 #else
2754 # include <assert.h>
2755 #endif
2757 #undef $2
2759 /* Override any GCC internal prototype to avoid an error.
2760 Use char because int might match the return type of a GCC
2761 builtin and then its argument prototype would still apply. */
2762 #ifdef __cplusplus
2763 extern "C"
2764 #endif
2765 char $2 ();
2766 /* The GNU C library defines this for functions which it implements
2767 to always fail with ENOSYS. Some functions are actually named
2768 something starting with __ and the normal name is an alias. */
2769 #if defined __stub_$2 || defined __stub___$2
2770 choke me
2771 #endif
2774 main ()
2776 return $2 ();
2778 return 0;
2780 _ACEOF
2781 if ac_fn_cxx_try_link "$LINENO"; then :
2782 eval "$3=yes"
2783 else
2784 eval "$3=no"
2786 rm -f core conftest.err conftest.$ac_objext \
2787 conftest$ac_exeext conftest.$ac_ext
2789 eval ac_res=\$$3
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2791 $as_echo "$ac_res" >&6; }
2792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2794 } # ac_fn_cxx_check_func
2796 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2797 # -----------------------------------------------
2798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2799 # accordingly.
2800 ac_fn_cxx_check_decl ()
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 as_decl_name=`echo $2|sed 's/ *(.*//'`
2804 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2806 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2807 if eval \${$3+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2814 main ()
2816 #ifndef $as_decl_name
2817 #ifdef __cplusplus
2818 (void) $as_decl_use;
2819 #else
2820 (void) $as_decl_name;
2821 #endif
2822 #endif
2825 return 0;
2827 _ACEOF
2828 if ac_fn_cxx_try_compile "$LINENO"; then :
2829 eval "$3=yes"
2830 else
2831 eval "$3=no"
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 eval ac_res=\$$3
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840 } # ac_fn_cxx_check_decl
2842 # ac_fn_c_try_link LINENO
2843 # -----------------------
2844 # Try to link conftest.$ac_ext, and return whether this succeeded.
2845 ac_fn_c_try_link ()
2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848 rm -f conftest.$ac_objext conftest$ac_exeext
2849 if { { ac_try="$ac_link"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855 $as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_link") 2>conftest.err
2857 ac_status=$?
2858 if test -s conftest.err; then
2859 grep -v '^ *+' conftest.err >conftest.er1
2860 cat conftest.er1 >&5
2861 mv -f conftest.er1 conftest.err
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; } && {
2865 test -z "$ac_c_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest$ac_exeext && {
2868 test "$cross_compiling" = yes ||
2869 test -x conftest$ac_exeext
2870 }; then :
2871 ac_retval=0
2872 else
2873 $as_echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 ac_retval=1
2878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2880 # interfere with the next link command; also delete a directory that is
2881 # left behind by Apple's compiler. We do this before executing the actions.
2882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2884 as_fn_set_status $ac_retval
2886 } # ac_fn_c_try_link
2888 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2889 # ----------------------------------------------
2890 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2891 ac_fn_c_check_header_preproc ()
2893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2895 $as_echo_n "checking for $2... " >&6; }
2896 if eval \${$3+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2901 #include <$2>
2902 _ACEOF
2903 if ac_fn_c_try_cpp "$LINENO"; then :
2904 eval "$3=yes"
2905 else
2906 eval "$3=no"
2908 rm -f conftest.err conftest.i conftest.$ac_ext
2910 eval ac_res=\$$3
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915 } # ac_fn_c_check_header_preproc
2917 # ac_fn_c_check_func LINENO FUNC VAR
2918 # ----------------------------------
2919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2920 ac_fn_c_check_func ()
2922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2924 $as_echo_n "checking for $2... " >&6; }
2925 if eval \${$3+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2932 #define $2 innocuous_$2
2934 /* System header to define __stub macros and hopefully few prototypes,
2935 which can conflict with char $2 (); below.
2936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 <limits.h> exists even on freestanding compilers. */
2939 #ifdef __STDC__
2940 # include <limits.h>
2941 #else
2942 # include <assert.h>
2943 #endif
2945 #undef $2
2947 /* Override any GCC internal prototype to avoid an error.
2948 Use char because int might match the return type of a GCC
2949 builtin and then its argument prototype would still apply. */
2950 #ifdef __cplusplus
2951 extern "C"
2952 #endif
2953 char $2 ();
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined __stub_$2 || defined __stub___$2
2958 choke me
2959 #endif
2962 main ()
2964 return $2 ();
2966 return 0;
2968 _ACEOF
2969 if ac_fn_c_try_link "$LINENO"; then :
2970 eval "$3=yes"
2971 else
2972 eval "$3=no"
2974 rm -f core conftest.err conftest.$ac_objext \
2975 conftest$ac_exeext conftest.$ac_ext
2977 eval ac_res=\$$3
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2979 $as_echo "$ac_res" >&6; }
2980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2982 } # ac_fn_c_check_func
2983 cat >config.log <<_ACEOF
2984 This file contains any messages produced by compilers while
2985 running configure, to aid debugging if configure makes a mistake.
2987 It was created by $as_me, which was
2988 generated by GNU Autoconf 2.69. Invocation command line was
2990 $ $0 $@
2992 _ACEOF
2993 exec 5>>config.log
2995 cat <<_ASUNAME
2996 ## --------- ##
2997 ## Platform. ##
2998 ## --------- ##
3000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3017 _ASUNAME
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 $as_echo "PATH: $as_dir"
3025 done
3026 IFS=$as_save_IFS
3028 } >&5
3030 cat >&5 <<_ACEOF
3033 ## ----------- ##
3034 ## Core tests. ##
3035 ## ----------- ##
3037 _ACEOF
3040 # Keep a trace of the command line.
3041 # Strip out --no-create and --no-recursion so they do not pile up.
3042 # Strip out --silent because we don't want to record it for future runs.
3043 # Also quote any args containing shell meta-characters.
3044 # Make two passes to allow for proper duplicate-argument suppression.
3045 ac_configure_args=
3046 ac_configure_args0=
3047 ac_configure_args1=
3048 ac_must_keep_next=false
3049 for ac_pass in 1 2
3051 for ac_arg
3053 case $ac_arg in
3054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3056 | -silent | --silent | --silen | --sile | --sil)
3057 continue ;;
3058 *\'*)
3059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3060 esac
3061 case $ac_pass in
3062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3064 as_fn_append ac_configure_args1 " '$ac_arg'"
3065 if test $ac_must_keep_next = true; then
3066 ac_must_keep_next=false # Got value, back to normal.
3067 else
3068 case $ac_arg in
3069 *=* | --config-cache | -C | -disable-* | --disable-* \
3070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3072 | -with-* | --with-* | -without-* | --without-* | --x)
3073 case "$ac_configure_args0 " in
3074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3075 esac
3077 -* ) ac_must_keep_next=true ;;
3078 esac
3080 as_fn_append ac_configure_args " '$ac_arg'"
3082 esac
3083 done
3084 done
3085 { ac_configure_args0=; unset ac_configure_args0;}
3086 { ac_configure_args1=; unset ac_configure_args1;}
3088 # When interrupted or exit'd, cleanup temporary files, and complete
3089 # config.log. We remove comments because anyway the quotes in there
3090 # would cause problems or look ugly.
3091 # WARNING: Use '\'' to represent an apostrophe within the trap.
3092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3093 trap 'exit_status=$?
3094 # Save into config.log some information that might help in debugging.
3096 echo
3098 $as_echo "## ---------------- ##
3099 ## Cache variables. ##
3100 ## ---------------- ##"
3101 echo
3102 # The following way of writing the cache mishandles newlines in values,
3104 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3105 eval ac_val=\$$ac_var
3106 case $ac_val in #(
3107 *${as_nl}*)
3108 case $ac_var in #(
3109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3111 esac
3112 case $ac_var in #(
3113 _ | IFS | as_nl) ;; #(
3114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3115 *) { eval $ac_var=; unset $ac_var;} ;;
3116 esac ;;
3117 esac
3118 done
3119 (set) 2>&1 |
3120 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3121 *${as_nl}ac_space=\ *)
3122 sed -n \
3123 "s/'\''/'\''\\\\'\'''\''/g;
3124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3125 ;; #(
3127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3129 esac |
3130 sort
3132 echo
3134 $as_echo "## ----------------- ##
3135 ## Output variables. ##
3136 ## ----------------- ##"
3137 echo
3138 for ac_var in $ac_subst_vars
3140 eval ac_val=\$$ac_var
3141 case $ac_val in
3142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3143 esac
3144 $as_echo "$ac_var='\''$ac_val'\''"
3145 done | sort
3146 echo
3148 if test -n "$ac_subst_files"; then
3149 $as_echo "## ------------------- ##
3150 ## File substitutions. ##
3151 ## ------------------- ##"
3152 echo
3153 for ac_var in $ac_subst_files
3155 eval ac_val=\$$ac_var
3156 case $ac_val in
3157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3158 esac
3159 $as_echo "$ac_var='\''$ac_val'\''"
3160 done | sort
3161 echo
3164 if test -s confdefs.h; then
3165 $as_echo "## ----------- ##
3166 ## confdefs.h. ##
3167 ## ----------- ##"
3168 echo
3169 cat confdefs.h
3170 echo
3172 test "$ac_signal" != 0 &&
3173 $as_echo "$as_me: caught signal $ac_signal"
3174 $as_echo "$as_me: exit $exit_status"
3175 } >&5
3176 rm -f core *.core core.conftest.* &&
3177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3178 exit $exit_status
3180 for ac_signal in 1 2 13 15; do
3181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 done
3183 ac_signal=0
3185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3186 rm -f -r conftest* confdefs.h
3188 $as_echo "/* confdefs.h */" > confdefs.h
3190 # Predefined preprocessor variables.
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_NAME "$PACKAGE_NAME"
3194 _ACEOF
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3198 _ACEOF
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3202 _ACEOF
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_STRING "$PACKAGE_STRING"
3206 _ACEOF
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3210 _ACEOF
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE_URL "$PACKAGE_URL"
3214 _ACEOF
3217 # Let the site file select an alternate cache file if it wants to.
3218 # Prefer an explicitly selected file to automatically selected ones.
3219 ac_site_file1=NONE
3220 ac_site_file2=NONE
3221 if test -n "$CONFIG_SITE"; then
3222 # We do not want a PATH search for config.site.
3223 case $CONFIG_SITE in #((
3224 -*) ac_site_file1=./$CONFIG_SITE;;
3225 */*) ac_site_file1=$CONFIG_SITE;;
3226 *) ac_site_file1=./$CONFIG_SITE;;
3227 esac
3228 elif test "x$prefix" != xNONE; then
3229 ac_site_file1=$prefix/share/config.site
3230 ac_site_file2=$prefix/etc/config.site
3231 else
3232 ac_site_file1=$ac_default_prefix/share/config.site
3233 ac_site_file2=$ac_default_prefix/etc/config.site
3235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3237 test "x$ac_site_file" = xNONE && continue
3238 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3241 sed 's/^/| /' "$ac_site_file" >&5
3242 . "$ac_site_file" \
3243 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "failed to load site script $ac_site_file
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 done
3250 if test -r "$cache_file"; then
3251 # Some versions of bash will fail to source /dev/null (special files
3252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3255 $as_echo "$as_me: loading cache $cache_file" >&6;}
3256 case $cache_file in
3257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3258 *) . "./$cache_file";;
3259 esac
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3263 $as_echo "$as_me: creating cache $cache_file" >&6;}
3264 >$cache_file
3267 # Check that the precious variables saved in the cache have kept the same
3268 # value.
3269 ac_cache_corrupted=false
3270 for ac_var in $ac_precious_vars; do
3271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3272 eval ac_new_set=\$ac_env_${ac_var}_set
3273 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3274 eval ac_new_val=\$ac_env_${ac_var}_value
3275 case $ac_old_set,$ac_new_set in
3276 set,)
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3279 ac_cache_corrupted=: ;;
3280 ,set)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3283 ac_cache_corrupted=: ;;
3284 ,);;
3286 if test "x$ac_old_val" != "x$ac_new_val"; then
3287 # differences in whitespace do not lead to failure.
3288 ac_old_val_w=`echo x $ac_old_val`
3289 ac_new_val_w=`echo x $ac_new_val`
3290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3293 ac_cache_corrupted=:
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3297 eval $ac_var=\$ac_old_val
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3300 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3302 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3303 fi;;
3304 esac
3305 # Pass precious variables to config.status.
3306 if test "$ac_new_set" = set; then
3307 case $ac_new_val in
3308 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3309 *) ac_arg=$ac_var=$ac_new_val ;;
3310 esac
3311 case " $ac_configure_args " in
3312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3313 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3314 esac
3316 done
3317 if $ac_cache_corrupted; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3322 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3324 ## -------------------- ##
3325 ## Main body of script. ##
3326 ## -------------------- ##
3328 ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3343 gcc_version=`cat $srcdir/BASE-VER`
3345 # Determine the host, build, and target systems
3346 ac_aux_dir=
3347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3348 if 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/install.sh"; then
3353 ac_aux_dir=$ac_dir
3354 ac_install_sh="$ac_aux_dir/install.sh -c"
3355 break
3356 elif test -f "$ac_dir/shtool"; then
3357 ac_aux_dir=$ac_dir
3358 ac_install_sh="$ac_aux_dir/shtool install -c"
3359 break
3361 done
3362 if test -z "$ac_aux_dir"; then
3363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3366 # These three variables are undocumented and unsupported,
3367 # and are intended to be withdrawn in a future Autoconf release.
3368 # They can cause serious problems if a builder's source tree is in a directory
3369 # whose full name contains unusual characters.
3370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3375 # Make sure we can run config.sub.
3376 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3377 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3380 $as_echo_n "checking build system type... " >&6; }
3381 if ${ac_cv_build+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 ac_build_alias=$build_alias
3385 test "x$ac_build_alias" = x &&
3386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3387 test "x$ac_build_alias" = x &&
3388 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3389 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3394 $as_echo "$ac_cv_build" >&6; }
3395 case $ac_cv_build in
3396 *-*-*) ;;
3397 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3398 esac
3399 build=$ac_cv_build
3400 ac_save_IFS=$IFS; IFS='-'
3401 set x $ac_cv_build
3402 shift
3403 build_cpu=$1
3404 build_vendor=$2
3405 shift; shift
3406 # Remember, the first character of IFS is used to create $*,
3407 # except with old shells:
3408 build_os=$*
3409 IFS=$ac_save_IFS
3410 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3414 $as_echo_n "checking host system type... " >&6; }
3415 if ${ac_cv_host+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test "x$host_alias" = x; then
3419 ac_cv_host=$ac_cv_build
3420 else
3421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3427 $as_echo "$ac_cv_host" >&6; }
3428 case $ac_cv_host in
3429 *-*-*) ;;
3430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3431 esac
3432 host=$ac_cv_host
3433 ac_save_IFS=$IFS; IFS='-'
3434 set x $ac_cv_host
3435 shift
3436 host_cpu=$1
3437 host_vendor=$2
3438 shift; shift
3439 # Remember, the first character of IFS is used to create $*,
3440 # except with old shells:
3441 host_os=$*
3442 IFS=$ac_save_IFS
3443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3447 $as_echo_n "checking target system type... " >&6; }
3448 if ${ac_cv_target+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test "x$target_alias" = x; then
3452 ac_cv_target=$ac_cv_host
3453 else
3454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3460 $as_echo "$ac_cv_target" >&6; }
3461 case $ac_cv_target in
3462 *-*-*) ;;
3463 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3464 esac
3465 target=$ac_cv_target
3466 ac_save_IFS=$IFS; IFS='-'
3467 set x $ac_cv_target
3468 shift
3469 target_cpu=$1
3470 target_vendor=$2
3471 shift; shift
3472 # Remember, the first character of IFS is used to create $*,
3473 # except with old shells:
3474 target_os=$*
3475 IFS=$ac_save_IFS
3476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3479 # The aliases save the names the user supplied, while $host etc.
3480 # will get canonicalized.
3481 test -n "$target_alias" &&
3482 test "$program_prefix$program_suffix$program_transform_name" = \
3483 NONENONEs,x,x, &&
3484 program_prefix=${target_alias}-
3486 # Determine the noncanonical host name, for Ada.
3487 case ${build_alias} in
3488 "") build_noncanonical=${build} ;;
3489 *) build_noncanonical=${build_alias} ;;
3490 esac
3492 case ${host_alias} in
3493 "") host_noncanonical=${build_noncanonical} ;;
3494 *) host_noncanonical=${host_alias} ;;
3495 esac
3500 # Determine the noncanonical target name, for directory use.
3501 case ${target_alias} in
3502 "") target_noncanonical=${host_noncanonical} ;;
3503 *) target_noncanonical=${target_alias} ;;
3504 esac
3509 # Used for constructing correct paths for offload compilers.
3510 real_target_noncanonical=${target_noncanonical}
3511 accel_dir_suffix=
3513 # Determine the target- and build-specific subdirectories
3515 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3516 # have matching libraries, they should use host libraries: Makefile.tpl
3517 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3518 # However, they still use the build modules, because the corresponding
3519 # host modules (e.g. bison) are only built for the host when bootstrap
3520 # finishes. So:
3521 # - build_subdir is where we find build modules, and never changes.
3522 # - build_libsubdir is where we find build libraries, and can be overridden.
3524 # Prefix 'build-' so this never conflicts with target_subdir.
3525 build_subdir="build-${build_noncanonical}"
3527 # Check whether --with-build-libsubdir was given.
3528 if test "${with_build_libsubdir+set}" = set; then :
3529 withval=$with_build_libsubdir; build_libsubdir="$withval"
3530 else
3531 build_libsubdir="$build_subdir"
3534 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3535 if ( test $srcdir = . && test -d gcc ) \
3536 || test -d $srcdir/../host-${host_noncanonical}; then
3537 host_subdir="host-${host_noncanonical}"
3538 else
3539 host_subdir=.
3541 # No prefix.
3542 target_subdir=${target_noncanonical}
3545 # Set program_transform_name
3546 test "$program_prefix" != NONE &&
3547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3548 # Use a double $ so make ignores it.
3549 test "$program_suffix" != NONE &&
3550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3551 # Double any \ or $.
3552 # By default was `s,x,x', remove it if useless.
3553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3557 # Check for bogus environment variables.
3558 # Test if LIBRARY_PATH contains the notation for the current directory
3559 # since this would lead to problems installing/building glibc.
3560 # LIBRARY_PATH contains the current directory if one of the following
3561 # is true:
3562 # - one of the terminals (":" and ";") is the first or last sign
3563 # - two terminals occur directly after each other
3564 # - the path contains an element with a dot in it
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3566 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3567 case ${LIBRARY_PATH} in
3568 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3569 library_path_setting="contains current directory"
3572 library_path_setting="ok"
3574 esac
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3576 $as_echo "$library_path_setting" >&6; }
3577 if test "$library_path_setting" != "ok"; then
3578 as_fn_error $? "
3579 *** LIBRARY_PATH shouldn't contain the current directory when
3580 *** building gcc. Please change the environment variable
3581 *** and run configure again." "$LINENO" 5
3584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3585 # since this would lead to problems installing/building glibc.
3586 # GCC_EXEC_PREFIX contains the current directory if one of the following
3587 # is true:
3588 # - one of the terminals (":" and ";") is the first or last sign
3589 # - two terminals occur directly after each other
3590 # - the path contains an element with a dot in it
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3592 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3593 case ${GCC_EXEC_PREFIX} in
3594 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3595 gcc_exec_prefix_setting="contains current directory"
3598 gcc_exec_prefix_setting="ok"
3600 esac
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3602 $as_echo "$gcc_exec_prefix_setting" >&6; }
3603 if test "$gcc_exec_prefix_setting" != "ok"; then
3604 as_fn_error $? "
3605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3606 *** building gcc. Please change the environment variable
3607 *** and run configure again." "$LINENO" 5
3610 # -----------
3611 # Directories
3612 # -----------
3614 # Specify the local prefix
3615 local_prefix=
3617 # Check whether --with-local-prefix was given.
3618 if test "${with_local_prefix+set}" = set; then :
3619 withval=$with_local_prefix; case "${withval}" in
3620 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3621 no) ;;
3622 *) local_prefix=$with_local_prefix ;;
3623 esac
3627 # Default local prefix if it is empty
3628 if test x$local_prefix = x; then
3629 local_prefix=/usr/local
3633 # Check whether --with-native-system-header-dir was given.
3634 if test "${with_native_system_header_dir+set}" = set; then :
3635 withval=$with_native_system_header_dir;
3636 case ${with_native_system_header_dir} in
3637 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3638 /* | [A-Za-z]:[\\/]*) ;;
3639 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3640 esac
3641 configured_native_system_header_dir="${withval}"
3643 else
3644 configured_native_system_header_dir=
3649 # Check whether --with-build-sysroot was given.
3650 if test "${with_build_sysroot+set}" = set; then :
3651 withval=$with_build_sysroot; if test x"$withval" != x ; then
3652 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3654 else
3655 SYSROOT_CFLAGS_FOR_TARGET=
3660 if test "x$prefix" = xNONE; then
3661 test_prefix=/usr/local
3662 else
3663 test_prefix=$prefix
3665 if test "x$exec_prefix" = xNONE; then
3666 test_exec_prefix=$test_prefix
3667 else
3668 test_exec_prefix=$exec_prefix
3672 # Check whether --with-sysroot was given.
3673 if test "${with_sysroot+set}" = set; then :
3674 withval=$with_sysroot;
3675 case ${with_sysroot} in
3676 /) ;;
3677 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3678 esac
3679 case ${with_sysroot} in
3680 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3681 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3682 esac
3684 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3685 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3687 case ${TARGET_SYSTEM_ROOT} in
3688 "${test_prefix}"|"${test_prefix}/"*|\
3689 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3690 '${prefix}'|'${prefix}/'*|\
3691 '${exec_prefix}'|'${exec_prefix}/'*)
3692 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3693 TARGET_SYSTEM_ROOT_DEFINE="$t"
3695 esac
3697 else
3699 TARGET_SYSTEM_ROOT=
3700 TARGET_SYSTEM_ROOT_DEFINE=
3701 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3709 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3710 # passed in by the toplevel make and thus we'd get different behavior
3711 # depending on where we built the sources.
3712 gcc_gxx_include_dir=
3713 # Specify the g++ header file directory
3715 # Check whether --with-gxx-include-dir was given.
3716 if test "${with_gxx_include_dir+set}" = set; then :
3717 withval=$with_gxx_include_dir; case "${withval}" in
3718 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3719 no) ;;
3720 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3721 esac
3725 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3726 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3727 # relative to the sysroot.
3728 gcc_gxx_include_dir_add_sysroot=0
3730 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3731 if test x${gcc_gxx_include_dir} = x; then
3732 if test x${enable_version_specific_runtime_libs} = xyes; then
3733 gcc_gxx_include_dir='${libsubdir}/include/c++'
3734 else
3735 libstdcxx_incdir='include/c++/$(version)'
3736 if test x$host != x$target; then
3737 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3739 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3741 elif test "${with_sysroot+set}" = set; then
3742 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3743 if test "${gcc_gxx_without_sysroot}"; then
3744 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3745 gcc_gxx_include_dir_add_sysroot=1
3749 # Configuration for an alternate set of C++ headers.
3750 gcc_gxx_libcxx_include_dir=
3751 # Specify the alternate g++ header file directory
3753 # Check whether --with-gxx-libcxx-include-dir was given.
3754 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3755 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3756 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3757 no) ;;
3758 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3759 esac
3763 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3764 # check to see if the latter starts with the former and, upon success, compute
3765 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3766 gcc_gxx_libcxx_include_dir_add_sysroot=0
3768 if test x${gcc_gxx_libcxx_include_dir} != x; then
3770 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3772 else
3773 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3776 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3777 if test x${gcc_gxx_libcxx_include_dir} = x; then
3778 if test x${enable_version_specific_runtime_libs} = xyes; then
3779 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3780 else
3781 libcxx_incdir='libc++_include/c++/$(version)/v1'
3782 if test x$host != x$target; then
3783 libcxx_incdir="$target_alias/$libcxx_incdir"
3785 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3787 elif test "${with_sysroot+set}" = set; then
3788 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3789 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3790 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3791 gcc_gxx_libcxx_include_dir_add_sysroot=1
3796 # Check whether --with-cpp_install_dir was given.
3797 if test "${with_cpp_install_dir+set}" = set; then :
3798 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3799 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3800 elif test x$withval != xno; then
3801 cpp_install_dir=$withval
3806 # We would like to our source tree to be readonly. However when releases or
3807 # pre-releases are generated, the flex/bison generated files as well as the
3808 # various formats of manuals need to be included along with the rest of the
3809 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3810 # just that.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3813 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3814 # Check whether --enable-generated-files-in-srcdir was given.
3815 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3816 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3817 else
3818 generated_files_in_srcdir=no
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3823 $as_echo "$generated_files_in_srcdir" >&6; }
3825 if test "$generated_files_in_srcdir" = "yes"; then
3826 GENINSRC=''
3827 else
3828 GENINSRC='#'
3832 # -------------------
3833 # Find default linker
3834 # -------------------
3836 # With GNU ld
3838 # Check whether --with-gnu-ld was given.
3839 if test "${with_gnu_ld+set}" = set; then :
3840 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3841 else
3842 gnu_ld_flag=no
3846 case $target in
3847 *darwin*)
3848 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3849 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3852 ld64_flag=no
3853 dsymutil_flag=no
3855 esac
3857 # With pre-defined ld
3859 # Check whether --with-ld was given.
3860 if test "${with_ld+set}" = set; then :
3861 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3864 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3865 if test ! -x "$DEFAULT_LINKER"; then
3866 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3867 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3868 gnu_ld_flag=yes
3869 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3870 ld64_flag=yes
3873 cat >>confdefs.h <<_ACEOF
3874 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3875 _ACEOF
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3880 $as_echo_n "checking whether a default linker was specified... " >&6; }
3881 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3882 if test x"$gnu_ld_flag" = x"no"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3884 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3887 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3889 else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3894 # With demangler in GNU ld
3896 # Check whether --with-demangler-in-ld was given.
3897 if test "${with_demangler_in_ld+set}" = set; then :
3898 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3899 else
3900 demangler_in_ld=yes
3904 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3906 # Check whether --with-dsymutil was given.
3907 if test "${with_dsymutil+set}" = set; then :
3908 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3912 dsymutil_vers=
3913 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3914 if test ! -x "$DEFAULT_DSYMUTIL"; then
3915 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3916 else
3917 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3918 dsymutil_flag=yes
3922 cat >>confdefs.h <<_ACEOF
3923 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3924 _ACEOF
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3929 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3930 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3932 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3938 # ----------------------
3939 # Find default assembler
3940 # ----------------------
3942 # With GNU as
3944 # Check whether --with-gnu-as was given.
3945 if test "${with_gnu_as+set}" = set; then :
3946 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3947 else
3948 gas_flag=no
3953 # Check whether --with-as was given.
3954 if test "${with_as+set}" = set; then :
3955 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3958 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3959 if test ! -x "$DEFAULT_ASSEMBLER"; then
3960 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3961 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3962 gas_flag=yes
3965 cat >>confdefs.h <<_ACEOF
3966 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3967 _ACEOF
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3972 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3973 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3974 if test x"$gas_flag" = x"no"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3976 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3979 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3981 else
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3986 # ---------------
3987 # Find C compiler
3988 # ---------------
3990 # If a non-executable a.out is present (e.g. created by GNU as above even if
3991 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3992 # file, even when creating an executable, so an execution test fails.
3993 # Remove possible default executable files to avoid this.
3995 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3996 # Autoconf includes it.
3997 rm -f a.out a.exe b.out
3999 # Find the native compiler
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_CC+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4027 done
4028 done
4029 IFS=$as_save_IFS
4033 CC=$ac_cv_prog_CC
4034 if test -n "$CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 $as_echo "$CC" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4044 if test -z "$ac_cv_prog_CC"; then
4045 ac_ct_CC=$CC
4046 # Extract the first word of "gcc", so it can be a program name with args.
4047 set dummy gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 if test -n "$ac_ct_CC"; then
4054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_ac_ct_CC="gcc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4067 done
4068 done
4069 IFS=$as_save_IFS
4073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4074 if test -n "$ac_ct_CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076 $as_echo "$ac_ct_CC" >&6; }
4077 else
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4082 if test "x$ac_ct_CC" = x; then
4083 CC=""
4084 else
4085 case $cross_compiling:$ac_tool_warned in
4086 yes:)
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089 ac_tool_warned=yes ;;
4090 esac
4091 CC=$ac_ct_CC
4093 else
4094 CC="$ac_cv_prog_CC"
4097 if test -z "$CC"; then
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}cc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_CC+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_CC="${ac_tool_prefix}cc"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4122 IFS=$as_save_IFS
4126 CC=$ac_cv_prog_CC
4127 if test -n "$CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4138 if test -z "$CC"; then
4139 # Extract the first word of "cc", so it can be a program name with args.
4140 set dummy cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149 ac_prog_rejected=no
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4158 ac_prog_rejected=yes
4159 continue
4161 ac_cv_prog_CC="cc"
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4169 if test $ac_prog_rejected = yes; then
4170 # We found a bogon in the path, so make sure we never use it.
4171 set dummy $ac_cv_prog_CC
4172 shift
4173 if test $# != 0; then
4174 # We chose a different compiler from the bogus one.
4175 # However, it has the same basename, so the bogon will be chosen
4176 # first if we set CC to just the basename; use the full file name.
4177 shift
4178 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4194 if test -z "$CC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 for ac_prog in cl.exe
4198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_CC+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$CC"; then
4206 ac_cv_prog_CC="$CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 CC=$ac_cv_prog_CC
4226 if test -n "$CC"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4228 $as_echo "$CC" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4235 test -n "$CC" && break
4236 done
4238 if test -z "$CC"; then
4239 ac_ct_CC=$CC
4240 for ac_prog in cl.exe
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$ac_ct_CC" && break
4280 done
4282 if test "x$ac_ct_CC" = x; then
4283 CC=""
4284 else
4285 case $cross_compiling:$ac_tool_warned in
4286 yes:)
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291 CC=$ac_ct_CC
4298 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error $? "no acceptable C compiler found in \$PATH
4301 See \`config.log' for more details" "$LINENO" 5; }
4303 # Provide some information about the compiler.
4304 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4305 set X $ac_compile
4306 ac_compiler=$2
4307 for ac_option in --version -v -V -qversion; do
4308 { { ac_try="$ac_compiler $ac_option >&5"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4316 ac_status=$?
4317 if test -s conftest.err; then
4318 sed '10a\
4319 ... rest of stderr output deleted ...
4320 10q' conftest.err >conftest.er1
4321 cat conftest.er1 >&5
4323 rm -f conftest.er1 conftest.err
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }
4326 done
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4332 main ()
4336 return 0;
4338 _ACEOF
4339 ac_clean_files_save=$ac_clean_files
4340 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4341 # Try to create an executable without -o first, disregard a.out.
4342 # It will help us diagnose broken compilers, and finding out an intuition
4343 # of exeext.
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4345 $as_echo_n "checking whether the C compiler works... " >&6; }
4346 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4348 # The possible output files:
4349 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4351 ac_rmfiles=
4352 for ac_file in $ac_files
4354 case $ac_file in
4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357 esac
4358 done
4359 rm -f $ac_rmfiles
4361 if { { ac_try="$ac_link_default"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_link_default") 2>&5
4369 ac_status=$?
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }; then :
4372 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4373 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4374 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4375 # so that the user can short-circuit this test for compilers unknown to
4376 # Autoconf.
4377 for ac_file in $ac_files ''
4379 test -f "$ac_file" || continue
4380 case $ac_file in
4381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4383 [ab].out )
4384 # We found the default executable, but exeext='' is most
4385 # certainly right.
4386 break;;
4387 *.* )
4388 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4389 then :; else
4390 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4392 # We set ac_cv_exeext here because the later test for it is not
4393 # safe: cross compilers may not add the suffix if given an `-o'
4394 # argument, so we may need to know it at that point already.
4395 # Even if this section looks crufty: it has the advantage of
4396 # actually working.
4397 break;;
4399 break;;
4400 esac
4401 done
4402 test "$ac_cv_exeext" = no && ac_cv_exeext=
4404 else
4405 ac_file=''
4407 if test -z "$ac_file"; then :
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error 77 "C compiler cannot create executables
4416 See \`config.log' for more details" "$LINENO" 5; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419 $as_echo "yes" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4422 $as_echo_n "checking for C compiler default output file name... " >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4424 $as_echo "$ac_file" >&6; }
4425 ac_exeext=$ac_cv_exeext
4427 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4428 ac_clean_files=$ac_clean_files_save
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430 $as_echo_n "checking for suffix of executables... " >&6; }
4431 if { { ac_try="$ac_link"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
4439 ac_status=$?
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444 # work properly (i.e., refer to `conftest.exe'), while it won't with
4445 # `rm'.
4446 for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4451 break;;
4452 * ) break;;
4453 esac
4454 done
4455 else
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4459 See \`config.log' for more details" "$LINENO" 5; }
4461 rm -f conftest conftest$ac_cv_exeext
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463 $as_echo "$ac_cv_exeext" >&6; }
4465 rm -f conftest.$ac_ext
4466 EXEEXT=$ac_cv_exeext
4467 ac_exeext=$EXEEXT
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <stdio.h>
4472 main ()
4474 FILE *f = fopen ("conftest.out", "w");
4475 return ferror (f) || fclose (f) != 0;
4478 return 0;
4480 _ACEOF
4481 ac_clean_files="$ac_clean_files conftest.out"
4482 # Check that the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485 $as_echo_n "checking whether we are cross compiling... " >&6; }
4486 if test "$cross_compiling" != yes; then
4487 { { ac_try="$ac_link"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link") 2>&5
4495 ac_status=$?
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4498 if { ac_try='./conftest$ac_cv_exeext'
4499 { { case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_try") 2>&5
4506 ac_status=$?
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }; }; then
4509 cross_compiling=no
4510 else
4511 if test "$cross_compiling" = maybe; then
4512 cross_compiling=yes
4513 else
4514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "cannot run C compiled programs.
4517 If you meant to cross compile, use \`--host'.
4518 See \`config.log' for more details" "$LINENO" 5; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4523 $as_echo "$cross_compiling" >&6; }
4525 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4526 ac_clean_files=$ac_clean_files_save
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4528 $as_echo_n "checking for suffix of object files... " >&6; }
4529 if ${ac_cv_objext+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4536 main ()
4540 return 0;
4542 _ACEOF
4543 rm -f conftest.o conftest.obj
4544 if { { ac_try="$ac_compile"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compile") 2>&5
4552 ac_status=$?
4553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554 test $ac_status = 0; }; then :
4555 for ac_file in conftest.o conftest.obj conftest.*; do
4556 test -f "$ac_file" || continue;
4557 case $ac_file in
4558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560 break;;
4561 esac
4562 done
4563 else
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "cannot compute suffix of object files: cannot compile
4570 See \`config.log' for more details" "$LINENO" 5; }
4572 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4575 $as_echo "$ac_cv_objext" >&6; }
4576 OBJEXT=$ac_cv_objext
4577 ac_objext=$OBJEXT
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4580 if ${ac_cv_c_compiler_gnu+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 main ()
4589 #ifndef __GNUC__
4590 choke me
4591 #endif
4594 return 0;
4596 _ACEOF
4597 if ac_fn_c_try_compile "$LINENO"; then :
4598 ac_compiler_gnu=yes
4599 else
4600 ac_compiler_gnu=no
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4608 if test $ac_compiler_gnu = yes; then
4609 GCC=yes
4610 else
4611 GCC=
4613 ac_test_CFLAGS=${CFLAGS+set}
4614 ac_save_CFLAGS=$CFLAGS
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4617 if ${ac_cv_prog_cc_g+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 ac_save_c_werror_flag=$ac_c_werror_flag
4621 ac_c_werror_flag=yes
4622 ac_cv_prog_cc_g=no
4623 CFLAGS="-g"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4628 main ()
4632 return 0;
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_prog_cc_g=yes
4637 else
4638 CFLAGS=""
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4643 main ()
4647 return 0;
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4652 else
4653 ac_c_werror_flag=$ac_save_c_werror_flag
4654 CFLAGS="-g"
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4663 return 0;
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 ac_cv_prog_cc_g=yes
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_c_werror_flag=$ac_save_c_werror_flag
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677 $as_echo "$ac_cv_prog_cc_g" >&6; }
4678 if test "$ac_test_CFLAGS" = set; then
4679 CFLAGS=$ac_save_CFLAGS
4680 elif test $ac_cv_prog_cc_g = yes; then
4681 if test "$GCC" = yes; then
4682 CFLAGS="-g -O2"
4683 else
4684 CFLAGS="-g"
4686 else
4687 if test "$GCC" = yes; then
4688 CFLAGS="-O2"
4689 else
4690 CFLAGS=
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4695 if ${ac_cv_prog_cc_c89+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 ac_cv_prog_cc_c89=no
4699 ac_save_CC=$CC
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <stdarg.h>
4703 #include <stdio.h>
4704 struct stat;
4705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4706 struct buf { int x; };
4707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708 static char *e (p, i)
4709 char **p;
4710 int i;
4712 return p[i];
4714 static char *f (char * (*g) (char **, int), char **p, ...)
4716 char *s;
4717 va_list v;
4718 va_start (v,p);
4719 s = g (p, va_arg (v,int));
4720 va_end (v);
4721 return s;
4724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4725 function prototypes and stuff, but not '\xHH' hex character constants.
4726 These don't provoke an error unfortunately, instead are silently treated
4727 as 'x'. The following induces an error, until -std is added to get
4728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4729 array size at least. It's necessary to write '\x00'==0 to get something
4730 that's true only with -std. */
4731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4734 inside strings and character constants. */
4735 #define FOO(x) 'x'
4736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4738 int test (int i, double x);
4739 struct s1 {int (*f) (int a);};
4740 struct s2 {int (*f) (double a);};
4741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4742 int argc;
4743 char **argv;
4745 main ()
4747 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4749 return 0;
4751 _ACEOF
4752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4755 CC="$ac_save_CC $ac_arg"
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_c89=$ac_arg
4759 rm -f core conftest.err conftest.$ac_objext
4760 test "x$ac_cv_prog_cc_c89" != "xno" && break
4761 done
4762 rm -f conftest.$ac_ext
4763 CC=$ac_save_CC
4766 # AC_CACHE_VAL
4767 case "x$ac_cv_prog_cc_c89" in
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4770 $as_echo "none needed" >&6; } ;;
4771 xno)
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4773 $as_echo "unsupported" >&6; } ;;
4775 CC="$CC $ac_cv_prog_cc_c89"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4778 esac
4779 if test "x$ac_cv_prog_cc_c89" != xno; then :
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 ac_ext=cpp
4790 ac_cpp='$CXXCPP $CPPFLAGS'
4791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794 if test -z "$CXX"; then
4795 if test -n "$CCC"; then
4796 CXX=$CCC
4797 else
4798 if test -n "$ac_tool_prefix"; then
4799 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CXX+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$CXX"; then
4809 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4828 CXX=$ac_cv_prog_CXX
4829 if test -n "$CXX"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4831 $as_echo "$CXX" >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 test -n "$CXX" && break
4839 done
4841 if test -z "$CXX"; then
4842 ac_ct_CXX=$CXX
4843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$ac_ct_CXX"; then
4853 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4866 done
4867 done
4868 IFS=$as_save_IFS
4872 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873 if test -n "$ac_ct_CXX"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4875 $as_echo "$ac_ct_CXX" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 test -n "$ac_ct_CXX" && break
4883 done
4885 if test "x$ac_ct_CXX" = x; then
4886 CXX="g++"
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4893 esac
4894 CXX=$ac_ct_CXX
4900 # Provide some information about the compiler.
4901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4902 set X $ac_compile
4903 ac_compiler=$2
4904 for ac_option in --version -v -V -qversion; do
4905 { { ac_try="$ac_compiler $ac_option >&5"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911 $as_echo "$ac_try_echo"; } >&5
4912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4913 ac_status=$?
4914 if test -s conftest.err; then
4915 sed '10a\
4916 ... rest of stderr output deleted ...
4917 10q' conftest.err >conftest.er1
4918 cat conftest.er1 >&5
4920 rm -f conftest.er1 conftest.err
4921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }
4923 done
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4926 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4927 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4934 main ()
4936 #ifndef __GNUC__
4937 choke me
4938 #endif
4941 return 0;
4943 _ACEOF
4944 if ac_fn_cxx_try_compile "$LINENO"; then :
4945 ac_compiler_gnu=yes
4946 else
4947 ac_compiler_gnu=no
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4954 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4955 if test $ac_compiler_gnu = yes; then
4956 GXX=yes
4957 else
4958 GXX=
4960 ac_test_CXXFLAGS=${CXXFLAGS+set}
4961 ac_save_CXXFLAGS=$CXXFLAGS
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4963 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4964 if ${ac_cv_prog_cxx_g+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4968 ac_cxx_werror_flag=yes
4969 ac_cv_prog_cxx_g=no
4970 CXXFLAGS="-g"
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4975 main ()
4979 return 0;
4981 _ACEOF
4982 if ac_fn_cxx_try_compile "$LINENO"; then :
4983 ac_cv_prog_cxx_g=yes
4984 else
4985 CXXFLAGS=""
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4990 main ()
4994 return 0;
4996 _ACEOF
4997 if ac_fn_cxx_try_compile "$LINENO"; then :
4999 else
5000 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5001 CXXFLAGS="-g"
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 main ()
5010 return 0;
5012 _ACEOF
5013 if ac_fn_cxx_try_compile "$LINENO"; then :
5014 ac_cv_prog_cxx_g=yes
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5024 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5025 if test "$ac_test_CXXFLAGS" = set; then
5026 CXXFLAGS=$ac_save_CXXFLAGS
5027 elif test $ac_cv_prog_cxx_g = yes; then
5028 if test "$GXX" = yes; then
5029 CXXFLAGS="-g -O2"
5030 else
5031 CXXFLAGS="-g"
5033 else
5034 if test "$GXX" = yes; then
5035 CXXFLAGS="-O2"
5036 else
5037 CXXFLAGS=
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_GNATBIND+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$GNATBIND"; then
5058 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5077 GNATBIND=$ac_cv_prog_GNATBIND
5078 if test -n "$GNATBIND"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5080 $as_echo "$GNATBIND" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5088 if test -z "$ac_cv_prog_GNATBIND"; then
5089 ac_ct_GNATBIND=$GNATBIND
5090 # Extract the first word of "gnatbind", so it can be a program name with args.
5091 set dummy gnatbind; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -n "$ac_ct_GNATBIND"; then
5098 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5111 done
5112 done
5113 IFS=$as_save_IFS
5117 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5118 if test -n "$ac_ct_GNATBIND"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5120 $as_echo "$ac_ct_GNATBIND" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5126 if test "x$ac_ct_GNATBIND" = x; then
5127 GNATBIND="no"
5128 else
5129 case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5134 esac
5135 GNATBIND=$ac_ct_GNATBIND
5137 else
5138 GNATBIND="$ac_cv_prog_GNATBIND"
5141 if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_GNATMAKE+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$GNATMAKE"; then
5150 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 GNATMAKE=$ac_cv_prog_GNATMAKE
5170 if test -n "$GNATMAKE"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5172 $as_echo "$GNATMAKE" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5180 if test -z "$ac_cv_prog_GNATMAKE"; then
5181 ac_ct_GNATMAKE=$GNATMAKE
5182 # Extract the first word of "gnatmake", so it can be a program name with args.
5183 set dummy gnatmake; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$ac_ct_GNATMAKE"; then
5190 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5205 IFS=$as_save_IFS
5209 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5210 if test -n "$ac_ct_GNATMAKE"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5212 $as_echo "$ac_ct_GNATMAKE" >&6; }
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5218 if test "x$ac_ct_GNATMAKE" = x; then
5219 GNATMAKE="no"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 GNATMAKE=$ac_ct_GNATMAKE
5229 else
5230 GNATMAKE="$ac_cv_prog_GNATMAKE"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5234 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5235 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 cat >conftest.adb <<EOF
5239 pragma Warnings (Off);
5240 with System.CRTL;
5241 pragma Warnings (On);
5242 use type System.CRTL.int64;
5243 procedure conftest is begin null; end conftest;
5245 acx_cv_cc_gcc_supports_ada=no
5246 # There is a bug in old released versions of GCC which causes the
5247 # driver to exit successfully when the appropriate language module
5248 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249 # Therefore we must check for the error message as well as an
5250 # unsuccessful exit.
5251 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252 # given a .adb file, but produce no object file. So we must check
5253 # if an object file was really produced to guard against this.
5254 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5255 if test x"$errors" = x && test -f conftest.$ac_objext; then
5256 acx_cv_cc_gcc_supports_ada=yes
5258 rm -f conftest.*
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5263 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5264 have_gnat=yes
5265 else
5266 have_gnat=no
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_prog_GDC+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$GDC"; then
5280 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5295 IFS=$as_save_IFS
5299 GDC=$ac_cv_prog_GDC
5300 if test -n "$GDC"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5302 $as_echo "$GDC" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5310 if test -z "$ac_cv_prog_GDC"; then
5311 ac_ct_GDC=$GDC
5312 # Extract the first word of "gdc", so it can be a program name with args.
5313 set dummy gdc; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$ac_ct_GDC"; then
5320 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_GDC="gdc"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5335 IFS=$as_save_IFS
5339 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5340 if test -n "$ac_ct_GDC"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5342 $as_echo "$ac_ct_GDC" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5348 if test "x$ac_ct_GDC" = x; then
5349 GDC="no"
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357 GDC=$ac_ct_GDC
5359 else
5360 GDC="$ac_cv_prog_GDC"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5364 $as_echo_n "checking whether the D compiler works... " >&6; }
5365 if ${acx_cv_d_compiler_works+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 cat >conftest.d <<EOF
5369 module conftest; int main() { return 0; }
5371 acx_cv_d_compiler_works=no
5372 if test "x$GDC" != xno; then
5373 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5374 if test x"$errors" = x && test -f conftest.$ac_objext; then
5375 acx_cv_d_compiler_works=yes
5377 rm -f conftest.*
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5381 $as_echo "$acx_cv_d_compiler_works" >&6; }
5382 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5383 have_gdc=yes
5384 else
5385 have_gdc=no
5389 # Do configure tests with the C++ compiler, since that's what we build with.
5390 ac_ext=cpp
5391 ac_cpp='$CXXCPP $CPPFLAGS'
5392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5397 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5398 # optimizations to be activated explicitly by the toplevel.
5399 case "$CC" in
5400 */prev-gcc/xgcc*) ;;
5401 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5402 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5403 esac
5408 # Determine PICFLAG for target gnatlib.
5413 case "${target}" in
5414 # PIC is the default on some targets or must not be used.
5415 *-*-darwin*)
5416 # For darwin, common symbols are not allowed in MH_DYLIB files
5417 case "${CFLAGS}" in
5418 # If we are using a compiler supporting mdynamic-no-pic
5419 # and the option has been tested as safe to add, then cancel
5420 # it here, since the code generated is incompatible with shared
5421 # libs.
5422 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5423 *) PICFLAG_FOR_TARGET=-fno-common ;;
5424 esac
5426 alpha*-dec-osf5*)
5427 # PIC is the default.
5429 hppa*64*-*-hpux*)
5430 # PIC is the default for 64-bit PA HP-UX.
5432 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5434 i[34567]86-*-mingw* | x86_64-*-mingw*)
5436 i[34567]86-*-interix[3-9]*)
5437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5438 # Instead, we relocate shared libraries at runtime.
5440 i[34567]86-*-nto-qnx*)
5441 # QNX uses GNU C++, but need to define -shared option too, otherwise
5442 # it will coredump.
5443 PICFLAG_FOR_TARGET='-fPIC -shared'
5445 i[34567]86-pc-msdosdjgpp*)
5446 # DJGPP does not support shared libraries at all.
5448 ia64*-*-hpux*)
5449 # On IA64 HP-UX, PIC is the default but the pic flag
5450 # sets the default TLS model and affects inlining.
5451 PICFLAG_FOR_TARGET=-fPIC
5453 loongarch*-*-*)
5454 PICFLAG_FOR_TARGET=-fpic
5456 mips-sgi-irix6*)
5457 # PIC is the default.
5459 rs6000-ibm-aix* | powerpc-ibm-aix*)
5460 # All AIX code is PIC.
5463 # Some targets support both -fPIC and -fpic, but prefer the latter.
5464 # FIXME: Why?
5465 i[34567]86-*-* | x86_64-*-*)
5466 PICFLAG_FOR_TARGET=-fpic
5468 # FIXME: Override -fPIC default in libgcc only?
5469 sh-*-linux* | sh[2346lbe]*-*-linux*)
5470 PICFLAG_FOR_TARGET=-fpic
5472 # FIXME: Simplify to sh*-*-netbsd*?
5473 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5474 sh64-*-netbsd* | sh64l*-*-netbsd*)
5475 PICFLAG_FOR_TARGET=-fpic
5477 # Default to -fPIC unless specified otherwise.
5479 PICFLAG_FOR_TARGET=-fPIC
5481 esac
5483 # If the user explicitly uses -fpic/-fPIC, keep that.
5484 case "${CFLAGS_FOR_TARGET}" in
5485 *-fpic*)
5486 PICFLAG_FOR_TARGET=-fpic
5488 *-fPIC*)
5489 PICFLAG_FOR_TARGET=-fPIC
5491 esac
5495 # -------------------------
5496 # Check C compiler features
5497 # -------------------------
5500 ac_ext=cpp
5501 ac_cpp='$CXXCPP $CPPFLAGS'
5502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5506 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5507 if test -z "$CXXCPP"; then
5508 if ${ac_cv_prog_CXXCPP+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 # Double quotes because CXXCPP needs to be expanded
5512 for CXXCPP in "$CXX -E" "/lib/cpp"
5514 ac_preproc_ok=false
5515 for ac_cxx_preproc_warn_flag in '' yes
5517 # Use a header file that comes with gcc, so configuring glibc
5518 # with a fresh cross-compiler works.
5519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5520 # <limits.h> exists even on freestanding compilers.
5521 # On the NeXT, cc -E runs the code through the compiler's parser,
5522 # not just through cpp. "Syntax error" is here to catch this case.
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 #ifdef __STDC__
5526 # include <limits.h>
5527 #else
5528 # include <assert.h>
5529 #endif
5530 Syntax error
5531 _ACEOF
5532 if ac_fn_cxx_try_cpp "$LINENO"; then :
5534 else
5535 # Broken: fails on valid input.
5536 continue
5538 rm -f conftest.err conftest.i conftest.$ac_ext
5540 # OK, works on sane cases. Now check whether nonexistent headers
5541 # can be detected and how.
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 #include <ac_nonexistent.h>
5545 _ACEOF
5546 if ac_fn_cxx_try_cpp "$LINENO"; then :
5547 # Broken: success on invalid input.
5548 continue
5549 else
5550 # Passes both tests.
5551 ac_preproc_ok=:
5552 break
5554 rm -f conftest.err conftest.i conftest.$ac_ext
5556 done
5557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558 rm -f conftest.i conftest.err conftest.$ac_ext
5559 if $ac_preproc_ok; then :
5560 break
5563 done
5564 ac_cv_prog_CXXCPP=$CXXCPP
5567 CXXCPP=$ac_cv_prog_CXXCPP
5568 else
5569 ac_cv_prog_CXXCPP=$CXXCPP
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5572 $as_echo "$CXXCPP" >&6; }
5573 ac_preproc_ok=false
5574 for ac_cxx_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #ifdef __STDC__
5585 # include <limits.h>
5586 #else
5587 # include <assert.h>
5588 #endif
5589 Syntax error
5590 _ACEOF
5591 if ac_fn_cxx_try_cpp "$LINENO"; then :
5593 else
5594 # Broken: fails on valid input.
5595 continue
5597 rm -f conftest.err conftest.i conftest.$ac_ext
5599 # OK, works on sane cases. Now check whether nonexistent headers
5600 # can be detected and how.
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <ac_nonexistent.h>
5604 _ACEOF
5605 if ac_fn_cxx_try_cpp "$LINENO"; then :
5606 # Broken: success on invalid input.
5607 continue
5608 else
5609 # Passes both tests.
5610 ac_preproc_ok=:
5611 break
5613 rm -f conftest.err conftest.i conftest.$ac_ext
5615 done
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.i conftest.err conftest.$ac_ext
5618 if $ac_preproc_ok; then :
5620 else
5621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5623 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5624 See \`config.log' for more details" "$LINENO" 5; }
5627 ac_ext=cpp
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5635 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5636 if ${ac_cv_path_GREP+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -z "$GREP"; then
5640 ac_path_GREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_prog in grep ggrep; do
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5650 as_fn_executable_p "$ac_path_GREP" || continue
5651 # Check for GNU ac_path_GREP and select it if it is found.
5652 # Check for GNU $ac_path_GREP
5653 case `"$ac_path_GREP" --version 2>&1` in
5654 *GNU*)
5655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5657 ac_count=0
5658 $as_echo_n 0123456789 >"conftest.in"
5659 while :
5661 cat "conftest.in" "conftest.in" >"conftest.tmp"
5662 mv "conftest.tmp" "conftest.in"
5663 cp "conftest.in" "conftest.nl"
5664 $as_echo 'GREP' >> "conftest.nl"
5665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5667 as_fn_arith $ac_count + 1 && ac_count=$as_val
5668 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5669 # Best one so far, save it but keep looking for a better one
5670 ac_cv_path_GREP="$ac_path_GREP"
5671 ac_path_GREP_max=$ac_count
5673 # 10*(2^10) chars as input seems more than enough
5674 test $ac_count -gt 10 && break
5675 done
5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5677 esac
5679 $ac_path_GREP_found && break 3
5680 done
5681 done
5682 done
5683 IFS=$as_save_IFS
5684 if test -z "$ac_cv_path_GREP"; then
5685 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5687 else
5688 ac_cv_path_GREP=$GREP
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5693 $as_echo "$ac_cv_path_GREP" >&6; }
5694 GREP="$ac_cv_path_GREP"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5698 $as_echo_n "checking for egrep... " >&6; }
5699 if ${ac_cv_path_EGREP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5703 then ac_cv_path_EGREP="$GREP -E"
5704 else
5705 if test -z "$EGREP"; then
5706 ac_path_EGREP_found=false
5707 # Loop through the user's path and test for each of PROGNAME-LIST
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_prog in egrep; do
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5716 as_fn_executable_p "$ac_path_EGREP" || continue
5717 # Check for GNU ac_path_EGREP and select it if it is found.
5718 # Check for GNU $ac_path_EGREP
5719 case `"$ac_path_EGREP" --version 2>&1` in
5720 *GNU*)
5721 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5723 ac_count=0
5724 $as_echo_n 0123456789 >"conftest.in"
5725 while :
5727 cat "conftest.in" "conftest.in" >"conftest.tmp"
5728 mv "conftest.tmp" "conftest.in"
5729 cp "conftest.in" "conftest.nl"
5730 $as_echo 'EGREP' >> "conftest.nl"
5731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5733 as_fn_arith $ac_count + 1 && ac_count=$as_val
5734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5735 # Best one so far, save it but keep looking for a better one
5736 ac_cv_path_EGREP="$ac_path_EGREP"
5737 ac_path_EGREP_max=$ac_count
5739 # 10*(2^10) chars as input seems more than enough
5740 test $ac_count -gt 10 && break
5741 done
5742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5743 esac
5745 $ac_path_EGREP_found && break 3
5746 done
5747 done
5748 done
5749 IFS=$as_save_IFS
5750 if test -z "$ac_cv_path_EGREP"; then
5751 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 else
5754 ac_cv_path_EGREP=$EGREP
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5760 $as_echo "$ac_cv_path_EGREP" >&6; }
5761 EGREP="$ac_cv_path_EGREP"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5765 $as_echo_n "checking for ANSI C header files... " >&6; }
5766 if ${ac_cv_header_stdc+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #include <stdlib.h>
5772 #include <stdarg.h>
5773 #include <string.h>
5774 #include <float.h>
5777 main ()
5781 return 0;
5783 _ACEOF
5784 if ac_fn_cxx_try_compile "$LINENO"; then :
5785 ac_cv_header_stdc=yes
5786 else
5787 ac_cv_header_stdc=no
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 if test $ac_cv_header_stdc = yes; then
5792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #include <string.h>
5797 _ACEOF
5798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799 $EGREP "memchr" >/dev/null 2>&1; then :
5801 else
5802 ac_cv_header_stdc=no
5804 rm -f conftest*
5808 if test $ac_cv_header_stdc = yes; then
5809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 #include <stdlib.h>
5814 _ACEOF
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 $EGREP "free" >/dev/null 2>&1; then :
5818 else
5819 ac_cv_header_stdc=no
5821 rm -f conftest*
5825 if test $ac_cv_header_stdc = yes; then
5826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5827 if test "$cross_compiling" = yes; then :
5829 else
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <ctype.h>
5833 #include <stdlib.h>
5834 #if ((' ' & 0x0FF) == 0x020)
5835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5837 #else
5838 # define ISLOWER(c) \
5839 (('a' <= (c) && (c) <= 'i') \
5840 || ('j' <= (c) && (c) <= 'r') \
5841 || ('s' <= (c) && (c) <= 'z'))
5842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5843 #endif
5845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5847 main ()
5849 int i;
5850 for (i = 0; i < 256; i++)
5851 if (XOR (islower (i), ISLOWER (i))
5852 || toupper (i) != TOUPPER (i))
5853 return 2;
5854 return 0;
5856 _ACEOF
5857 if ac_fn_cxx_try_run "$LINENO"; then :
5859 else
5860 ac_cv_header_stdc=no
5862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5863 conftest.$ac_objext conftest.beam conftest.$ac_ext
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5869 $as_echo "$ac_cv_header_stdc" >&6; }
5870 if test $ac_cv_header_stdc = yes; then
5872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5878 inttypes.h stdint.h unistd.h
5879 do :
5880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5884 cat >>confdefs.h <<_ACEOF
5885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5886 _ACEOF
5890 done
5894 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5895 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5896 MINIX=yes
5897 else
5898 MINIX=
5902 if test "$MINIX" = yes; then
5904 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5907 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5910 $as_echo "#define _MINIX 1" >>confdefs.h
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5916 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5917 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 # define __EXTENSIONS__ 1
5924 $ac_includes_default
5926 main ()
5930 return 0;
5932 _ACEOF
5933 if ac_fn_cxx_try_compile "$LINENO"; then :
5934 ac_cv_safe_to_define___extensions__=yes
5935 else
5936 ac_cv_safe_to_define___extensions__=no
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5941 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5942 test $ac_cv_safe_to_define___extensions__ = yes &&
5943 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5945 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5947 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5949 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5951 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5955 ac_ext=c
5956 ac_cpp='$CPP $CPPFLAGS'
5957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5961 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5962 # On Suns, sometimes $CPP names a directory.
5963 if test -n "$CPP" && test -d "$CPP"; then
5964 CPP=
5966 if test -z "$CPP"; then
5967 if ${ac_cv_prog_CPP+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 # Double quotes because CPP needs to be expanded
5971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5973 ac_preproc_ok=false
5974 for ac_c_preproc_warn_flag in '' yes
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989 Syntax error
5990 _ACEOF
5991 if ac_fn_c_try_cpp "$LINENO"; then :
5993 else
5994 # Broken: fails on valid input.
5995 continue
5997 rm -f conftest.err conftest.i conftest.$ac_ext
5999 # OK, works on sane cases. Now check whether nonexistent headers
6000 # can be detected and how.
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <ac_nonexistent.h>
6004 _ACEOF
6005 if ac_fn_c_try_cpp "$LINENO"; then :
6006 # Broken: success on invalid input.
6007 continue
6008 else
6009 # Passes both tests.
6010 ac_preproc_ok=:
6011 break
6013 rm -f conftest.err conftest.i conftest.$ac_ext
6015 done
6016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6017 rm -f conftest.i conftest.err conftest.$ac_ext
6018 if $ac_preproc_ok; then :
6019 break
6022 done
6023 ac_cv_prog_CPP=$CPP
6026 CPP=$ac_cv_prog_CPP
6027 else
6028 ac_cv_prog_CPP=$CPP
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6031 $as_echo "$CPP" >&6; }
6032 ac_preproc_ok=false
6033 for ac_c_preproc_warn_flag in '' yes
6035 # Use a header file that comes with gcc, so configuring glibc
6036 # with a fresh cross-compiler works.
6037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6038 # <limits.h> exists even on freestanding compilers.
6039 # On the NeXT, cc -E runs the code through the compiler's parser,
6040 # not just through cpp. "Syntax error" is here to catch this case.
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #ifdef __STDC__
6044 # include <limits.h>
6045 #else
6046 # include <assert.h>
6047 #endif
6048 Syntax error
6049 _ACEOF
6050 if ac_fn_c_try_cpp "$LINENO"; then :
6052 else
6053 # Broken: fails on valid input.
6054 continue
6056 rm -f conftest.err conftest.i conftest.$ac_ext
6058 # OK, works on sane cases. Now check whether nonexistent headers
6059 # can be detected and how.
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 #include <ac_nonexistent.h>
6063 _ACEOF
6064 if ac_fn_c_try_cpp "$LINENO"; then :
6065 # Broken: success on invalid input.
6066 continue
6067 else
6068 # Passes both tests.
6069 ac_preproc_ok=:
6070 break
6072 rm -f conftest.err conftest.i conftest.$ac_ext
6074 done
6075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076 rm -f conftest.i conftest.err conftest.$ac_ext
6077 if $ac_preproc_ok; then :
6079 else
6080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6082 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6083 See \`config.log' for more details" "$LINENO" 5; }
6086 ac_ext=cpp
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6093 $as_echo_n "checking for inline... " >&6; }
6094 if ${ac_cv_c_inline+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 ac_cv_c_inline=no
6098 for ac_kw in inline __inline__ __inline; do
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #ifndef __cplusplus
6102 typedef int foo_t;
6103 static $ac_kw foo_t static_foo () {return 0; }
6104 $ac_kw foo_t foo () {return 0; }
6105 #endif
6107 _ACEOF
6108 if ac_fn_cxx_try_compile "$LINENO"; then :
6109 ac_cv_c_inline=$ac_kw
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 test "$ac_cv_c_inline" != no && break
6113 done
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6117 $as_echo "$ac_cv_c_inline" >&6; }
6119 case $ac_cv_c_inline in
6120 inline | yes) ;;
6122 case $ac_cv_c_inline in
6123 no) ac_val=;;
6124 *) ac_val=$ac_cv_c_inline;;
6125 esac
6126 cat >>confdefs.h <<_ACEOF
6127 #ifndef __cplusplus
6128 #define inline $ac_val
6129 #endif
6130 _ACEOF
6132 esac
6135 # Check whether --enable-largefile was given.
6136 if test "${enable_largefile+set}" = set; then :
6137 enableval=$enable_largefile;
6140 if test "$enable_largefile" != no; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6143 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6144 if ${ac_cv_sys_largefile_CC+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 ac_cv_sys_largefile_CC=no
6148 if test "$GCC" != yes; then
6149 ac_save_CC=$CC
6150 while :; do
6151 # IRIX 6.2 and later do not support large files by default,
6152 # so use the C compiler's -n32 option if that helps.
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <sys/types.h>
6156 /* Check that off_t can represent 2**63 - 1 correctly.
6157 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6158 since some C++ compilers masquerading as C compilers
6159 incorrectly reject 9223372036854775807. */
6160 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6161 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6162 && LARGE_OFF_T % 2147483647 == 1)
6163 ? 1 : -1];
6165 main ()
6169 return 0;
6171 _ACEOF
6172 if ac_fn_cxx_try_compile "$LINENO"; then :
6173 break
6175 rm -f core conftest.err conftest.$ac_objext
6176 CC="$CC -n32"
6177 if ac_fn_cxx_try_compile "$LINENO"; then :
6178 ac_cv_sys_largefile_CC=' -n32'; break
6180 rm -f core conftest.err conftest.$ac_objext
6181 break
6182 done
6183 CC=$ac_save_CC
6184 rm -f conftest.$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6188 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6189 if test "$ac_cv_sys_largefile_CC" != no; then
6190 CC=$CC$ac_cv_sys_largefile_CC
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6194 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6195 if ${ac_cv_sys_file_offset_bits+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 while :; do
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 #include <sys/types.h>
6202 /* Check that off_t can represent 2**63 - 1 correctly.
6203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6204 since some C++ compilers masquerading as C compilers
6205 incorrectly reject 9223372036854775807. */
6206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6208 && LARGE_OFF_T % 2147483647 == 1)
6209 ? 1 : -1];
6211 main ()
6215 return 0;
6217 _ACEOF
6218 if ac_fn_cxx_try_compile "$LINENO"; then :
6219 ac_cv_sys_file_offset_bits=no; break
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 #define _FILE_OFFSET_BITS 64
6225 #include <sys/types.h>
6226 /* Check that off_t can represent 2**63 - 1 correctly.
6227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6228 since some C++ compilers masquerading as C compilers
6229 incorrectly reject 9223372036854775807. */
6230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6232 && LARGE_OFF_T % 2147483647 == 1)
6233 ? 1 : -1];
6235 main ()
6239 return 0;
6241 _ACEOF
6242 if ac_fn_cxx_try_compile "$LINENO"; then :
6243 ac_cv_sys_file_offset_bits=64; break
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 ac_cv_sys_file_offset_bits=unknown
6247 break
6248 done
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6251 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6252 case $ac_cv_sys_file_offset_bits in #(
6253 no | unknown) ;;
6255 cat >>confdefs.h <<_ACEOF
6256 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6257 _ACEOF
6259 esac
6260 rm -rf conftest*
6261 if test $ac_cv_sys_file_offset_bits = unknown; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6263 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6264 if ${ac_cv_sys_large_files+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 while :; do
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <sys/types.h>
6271 /* Check that off_t can represent 2**63 - 1 correctly.
6272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6273 since some C++ compilers masquerading as C compilers
6274 incorrectly reject 9223372036854775807. */
6275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6277 && LARGE_OFF_T % 2147483647 == 1)
6278 ? 1 : -1];
6280 main ()
6284 return 0;
6286 _ACEOF
6287 if ac_fn_cxx_try_compile "$LINENO"; then :
6288 ac_cv_sys_large_files=no; break
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #define _LARGE_FILES 1
6294 #include <sys/types.h>
6295 /* Check that off_t can represent 2**63 - 1 correctly.
6296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6297 since some C++ compilers masquerading as C compilers
6298 incorrectly reject 9223372036854775807. */
6299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6301 && LARGE_OFF_T % 2147483647 == 1)
6302 ? 1 : -1];
6304 main ()
6308 return 0;
6310 _ACEOF
6311 if ac_fn_cxx_try_compile "$LINENO"; then :
6312 ac_cv_sys_large_files=1; break
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 ac_cv_sys_large_files=unknown
6316 break
6317 done
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6320 $as_echo "$ac_cv_sys_large_files" >&6; }
6321 case $ac_cv_sys_large_files in #(
6322 no | unknown) ;;
6324 cat >>confdefs.h <<_ACEOF
6325 #define _LARGE_FILES $ac_cv_sys_large_files
6326 _ACEOF
6328 esac
6329 rm -rf conftest*
6335 # The cast to long int works around a bug in the HP C Compiler
6336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6338 # This bug is HP SR number 8606223364.
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6340 $as_echo_n "checking size of ino_t... " >&6; }
6341 if ${ac_cv_sizeof_ino_t+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6346 else
6347 if test "$ac_cv_type_ino_t" = yes; then
6348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6350 as_fn_error 77 "cannot compute sizeof (ino_t)
6351 See \`config.log' for more details" "$LINENO" 5; }
6352 else
6353 ac_cv_sizeof_ino_t=0
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6359 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6363 cat >>confdefs.h <<_ACEOF
6364 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6365 _ACEOF
6368 # The cast to long int works around a bug in the HP C Compiler
6369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6371 # This bug is HP SR number 8606223364.
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6373 $as_echo_n "checking size of dev_t... " >&6; }
6374 if ${ac_cv_sizeof_dev_t+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6379 else
6380 if test "$ac_cv_type_dev_t" = yes; then
6381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6383 as_fn_error 77 "cannot compute sizeof (dev_t)
6384 See \`config.log' for more details" "$LINENO" 5; }
6385 else
6386 ac_cv_sizeof_dev_t=0
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6392 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6396 cat >>confdefs.h <<_ACEOF
6397 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6398 _ACEOF
6402 # Select the right stat being able to handle 64bit inodes, if needed.
6403 if test "$enable_largefile" != no; then
6404 case "$host, $build" in
6405 *-*-aix*,*|*,*-*-aix*)
6406 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6408 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6410 fi;;
6411 esac
6415 # sizeof(char) is 1 by definition.
6416 # The cast to long int works around a bug in the HP C Compiler
6417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419 # This bug is HP SR number 8606223364.
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6421 $as_echo_n "checking size of void *... " >&6; }
6422 if ${ac_cv_sizeof_void_p+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6427 else
6428 if test "$ac_cv_type_void_p" = yes; then
6429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6431 as_fn_error 77 "cannot compute sizeof (void *)
6432 See \`config.log' for more details" "$LINENO" 5; }
6433 else
6434 ac_cv_sizeof_void_p=0
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6440 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6444 cat >>confdefs.h <<_ACEOF
6445 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6446 _ACEOF
6449 # The cast to long int works around a bug in the HP C Compiler
6450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6452 # This bug is HP SR number 8606223364.
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6454 $as_echo_n "checking size of short... " >&6; }
6455 if ${ac_cv_sizeof_short+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6460 else
6461 if test "$ac_cv_type_short" = yes; then
6462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6464 as_fn_error 77 "cannot compute sizeof (short)
6465 See \`config.log' for more details" "$LINENO" 5; }
6466 else
6467 ac_cv_sizeof_short=0
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6473 $as_echo "$ac_cv_sizeof_short" >&6; }
6477 cat >>confdefs.h <<_ACEOF
6478 #define SIZEOF_SHORT $ac_cv_sizeof_short
6479 _ACEOF
6482 # The cast to long int works around a bug in the HP C Compiler
6483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6485 # This bug is HP SR number 8606223364.
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6487 $as_echo_n "checking size of int... " >&6; }
6488 if ${ac_cv_sizeof_int+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6493 else
6494 if test "$ac_cv_type_int" = yes; then
6495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6497 as_fn_error 77 "cannot compute sizeof (int)
6498 See \`config.log' for more details" "$LINENO" 5; }
6499 else
6500 ac_cv_sizeof_int=0
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6506 $as_echo "$ac_cv_sizeof_int" >&6; }
6510 cat >>confdefs.h <<_ACEOF
6511 #define SIZEOF_INT $ac_cv_sizeof_int
6512 _ACEOF
6515 # The cast to long int works around a bug in the HP C Compiler
6516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6518 # This bug is HP SR number 8606223364.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6520 $as_echo_n "checking size of long... " >&6; }
6521 if ${ac_cv_sizeof_long+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6526 else
6527 if test "$ac_cv_type_long" = yes; then
6528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6530 as_fn_error 77 "cannot compute sizeof (long)
6531 See \`config.log' for more details" "$LINENO" 5; }
6532 else
6533 ac_cv_sizeof_long=0
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6539 $as_echo "$ac_cv_sizeof_long" >&6; }
6543 cat >>confdefs.h <<_ACEOF
6544 #define SIZEOF_LONG $ac_cv_sizeof_long
6545 _ACEOF
6548 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6549 if test "x$ac_cv_type_long_long" = xyes; then :
6551 cat >>confdefs.h <<_ACEOF
6552 #define HAVE_LONG_LONG 1
6553 _ACEOF
6555 # The cast to long int works around a bug in the HP C Compiler
6556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6558 # This bug is HP SR number 8606223364.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6560 $as_echo_n "checking size of long long... " >&6; }
6561 if ${ac_cv_sizeof_long_long+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6566 else
6567 if test "$ac_cv_type_long_long" = yes; then
6568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6570 as_fn_error 77 "cannot compute sizeof (long long)
6571 See \`config.log' for more details" "$LINENO" 5; }
6572 else
6573 ac_cv_sizeof_long_long=0
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6579 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6583 cat >>confdefs.h <<_ACEOF
6584 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6585 _ACEOF
6590 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6591 case $ac_cv_c_int8_t in #(
6592 no|yes) ;; #(
6595 cat >>confdefs.h <<_ACEOF
6596 #define int8_t $ac_cv_c_int8_t
6597 _ACEOF
6599 esac
6601 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6602 case $ac_cv_c_int16_t in #(
6603 no|yes) ;; #(
6606 cat >>confdefs.h <<_ACEOF
6607 #define int16_t $ac_cv_c_int16_t
6608 _ACEOF
6610 esac
6612 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6613 case $ac_cv_c_int32_t in #(
6614 no|yes) ;; #(
6617 cat >>confdefs.h <<_ACEOF
6618 #define int32_t $ac_cv_c_int32_t
6619 _ACEOF
6621 esac
6623 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6624 case $ac_cv_c_int64_t in #(
6625 no|yes) ;; #(
6628 cat >>confdefs.h <<_ACEOF
6629 #define int64_t $ac_cv_c_int64_t
6630 _ACEOF
6632 esac
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6636 $as_echo_n "checking for unsigned long long int... " >&6; }
6637 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 ac_cv_type_unsigned_long_long_int=yes
6641 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6645 /* For now, do not test the preprocessor; as of 2007 there are too many
6646 implementations with broken preprocessors. Perhaps this can
6647 be revisited in 2012. In the meantime, code should not expect
6648 #if to work with literals wider than 32 bits. */
6649 /* Test literals. */
6650 long long int ll = 9223372036854775807ll;
6651 long long int nll = -9223372036854775807LL;
6652 unsigned long long int ull = 18446744073709551615ULL;
6653 /* Test constant expressions. */
6654 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6655 ? 1 : -1)];
6656 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6657 ? 1 : -1)];
6658 int i = 63;
6660 main ()
6662 /* Test availability of runtime routines for shift and division. */
6663 long long int llmax = 9223372036854775807ll;
6664 unsigned long long int ullmax = 18446744073709551615ull;
6665 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6666 | (llmax / ll) | (llmax % ll)
6667 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6668 | (ullmax / ull) | (ullmax % ull));
6670 return 0;
6673 _ACEOF
6674 if ac_fn_cxx_try_link "$LINENO"; then :
6676 else
6677 ac_cv_type_unsigned_long_long_int=no
6679 rm -f core conftest.err conftest.$ac_objext \
6680 conftest$ac_exeext conftest.$ac_ext
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6684 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6685 if test $ac_cv_type_unsigned_long_long_int = yes; then
6687 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6694 $as_echo_n "checking for long long int... " >&6; }
6695 if ${ac_cv_type_long_long_int+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 ac_cv_type_long_long_int=yes
6699 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6700 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6701 if test $ac_cv_type_long_long_int = yes; then
6702 if test "$cross_compiling" = yes; then :
6704 else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 #include <limits.h>
6708 #ifndef LLONG_MAX
6709 # define HALF \
6710 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6711 # define LLONG_MAX (HALF - 1 + HALF)
6712 #endif
6714 main ()
6716 long long int n = 1;
6717 int i;
6718 for (i = 0; ; i++)
6720 long long int m = n << i;
6721 if (m >> i != n)
6722 return 1;
6723 if (LLONG_MAX / 2 < m)
6724 break;
6726 return 0;
6728 return 0;
6730 _ACEOF
6731 if ac_fn_cxx_try_run "$LINENO"; then :
6733 else
6734 ac_cv_type_long_long_int=no
6736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6737 conftest.$ac_objext conftest.beam conftest.$ac_ext
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6744 $as_echo "$ac_cv_type_long_long_int" >&6; }
6745 if test $ac_cv_type_long_long_int = yes; then
6747 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6753 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6754 if test "x$ac_cv_type_intmax_t" = xyes; then :
6756 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6758 else
6759 test $ac_cv_type_long_long_int = yes \
6760 && ac_type='long long int' \
6761 || ac_type='long int'
6763 cat >>confdefs.h <<_ACEOF
6764 #define intmax_t $ac_type
6765 _ACEOF
6771 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6772 if test "x$ac_cv_type_intptr_t" = xyes; then :
6774 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6776 else
6777 for ac_type in 'int' 'long int' 'long long int'; do
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 $ac_includes_default
6782 main ()
6784 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6785 test_array [0] = 0;
6786 return test_array [0];
6789 return 0;
6791 _ACEOF
6792 if ac_fn_cxx_try_compile "$LINENO"; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define intptr_t $ac_type
6796 _ACEOF
6798 ac_type=
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 test -z "$ac_type" && break
6802 done
6806 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6807 case $ac_cv_c_uint8_t in #(
6808 no|yes) ;; #(
6811 $as_echo "#define _UINT8_T 1" >>confdefs.h
6814 cat >>confdefs.h <<_ACEOF
6815 #define uint8_t $ac_cv_c_uint8_t
6816 _ACEOF
6818 esac
6820 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6821 case $ac_cv_c_uint16_t in #(
6822 no|yes) ;; #(
6826 cat >>confdefs.h <<_ACEOF
6827 #define uint16_t $ac_cv_c_uint16_t
6828 _ACEOF
6830 esac
6832 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6833 case $ac_cv_c_uint32_t in #(
6834 no|yes) ;; #(
6837 $as_echo "#define _UINT32_T 1" >>confdefs.h
6840 cat >>confdefs.h <<_ACEOF
6841 #define uint32_t $ac_cv_c_uint32_t
6842 _ACEOF
6844 esac
6846 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6847 case $ac_cv_c_uint64_t in #(
6848 no|yes) ;; #(
6851 $as_echo "#define _UINT64_T 1" >>confdefs.h
6854 cat >>confdefs.h <<_ACEOF
6855 #define uint64_t $ac_cv_c_uint64_t
6856 _ACEOF
6858 esac
6862 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6863 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6865 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6867 else
6868 test $ac_cv_type_unsigned_long_long_int = yes \
6869 && ac_type='unsigned long long int' \
6870 || ac_type='unsigned long int'
6872 cat >>confdefs.h <<_ACEOF
6873 #define uintmax_t $ac_type
6874 _ACEOF
6880 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6881 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6883 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6885 else
6886 for ac_type in 'unsigned int' 'unsigned long int' \
6887 'unsigned long long int'; do
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 $ac_includes_default
6892 main ()
6894 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6895 test_array [0] = 0;
6896 return test_array [0];
6899 return 0;
6901 _ACEOF
6902 if ac_fn_cxx_try_compile "$LINENO"; then :
6904 cat >>confdefs.h <<_ACEOF
6905 #define uintptr_t $ac_type
6906 _ACEOF
6908 ac_type=
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 test -z "$ac_type" && break
6912 done
6928 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6929 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6932 # check what underlying integer type int64_t uses
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6934 $as_echo_n "checking for int64_t underlying type... " >&6; }
6935 if ${ac_cv_int64_t_type+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6942 #ifdef HAVE_STDINT_H
6943 #include <stdint.h>
6944 #endif
6945 template <typename T> struct X { };
6946 template <>
6947 struct X<long> { typedef long t; };
6950 main ()
6952 X<int64_t>::t x;
6954 return 0;
6956 _ACEOF
6957 if ac_fn_cxx_try_compile "$LINENO"; then :
6958 ac_cv_int64_t_type=long
6959 else
6960 ac_cv_int64_t_type="long long"
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6965 $as_echo "$ac_cv_int64_t_type" >&6; }
6966 if test "$ac_cv_int64_t_type" = "long"; then
6968 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6970 else
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6974 #ifdef HAVE_STDINT_H
6975 #include <stdint.h>
6976 #endif
6977 template <typename T> struct X { };
6978 template <>
6979 struct X<long long> { typedef long long t; };
6982 main ()
6984 X<int64_t>::t x;
6986 return 0;
6988 _ACEOF
6989 if ac_fn_cxx_try_compile "$LINENO"; then :
6991 else
6992 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6998 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6999 if ${ac_cv_std_swap_in_utility+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7006 #include <utility>
7009 main ()
7011 int a, b; std::swap(a,b);
7013 return 0;
7015 _ACEOF
7016 if ac_fn_cxx_try_compile "$LINENO"; then :
7017 ac_cv_std_swap_in_utility=yes
7018 else
7019 ac_cv_std_swap_in_utility=no
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7024 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7025 if test $ac_cv_std_swap_in_utility = yes; then
7027 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7031 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7032 # If the host compiler is affected by the bug, and we build with optimization
7033 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7034 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7035 # Since there is no reliable feature check for the presence of this bug,
7036 # we simply use a GCC version number check. (This should never trigger for
7037 # stages 2 or 3 of a native bootstrap.)
7038 aliasing_flags=
7039 if test "$GCC" = yes; then
7040 saved_CXXFLAGS="$CXXFLAGS"
7042 # The following test compilation will succeed if and only if $CXX accepts
7043 # -fno-strict-aliasing *and* is older than GCC 4.3.
7044 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7046 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7050 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7051 #error compiler not affected by placement new aliasing bug
7052 #endif
7054 _ACEOF
7055 if ac_fn_cxx_try_compile "$LINENO"; then :
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7057 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 CXXFLAGS="$saved_CXXFLAGS"
7070 # ---------------------
7071 # Warnings and checking
7072 # ---------------------
7074 # Check $CC warning features (if it's GCC).
7075 # We want to use -pedantic, but we don't want warnings about
7076 # * 'long long'
7077 # * variadic macros
7078 # * overlong strings
7079 # * C++11 narrowing conversions in { }
7080 # So, we only use -pedantic if we can disable those warnings.
7082 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7083 # Check whether --enable-build-format-warnings was given.
7084 if test "${enable_build_format_warnings+set}" = set; then :
7085 enableval=$enable_build_format_warnings;
7086 else
7087 enable_build_format_warnings=yes
7090 if test $enable_build_format_warnings = no; then :
7091 wf_opt=-Wno-format
7092 else
7093 wf_opt=
7095 ac_ext=cpp
7096 ac_cpp='$CXXCPP $CPPFLAGS'
7097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7101 loose_warn=
7102 save_CXXFLAGS="$CXXFLAGS"
7103 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7104 # Do the check with the no- prefix removed since gcc silently
7105 # accepts any -Wno-* option on purpose
7106 case $real_option in
7107 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7108 *) option=$real_option ;;
7109 esac
7110 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7113 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7114 if eval \${$as_acx_Woption+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 CXXFLAGS="$option"
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7122 main ()
7126 return 0;
7128 _ACEOF
7129 if ac_fn_cxx_try_compile "$LINENO"; then :
7130 eval "$as_acx_Woption=yes"
7131 else
7132 eval "$as_acx_Woption=no"
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 eval ac_res=\$$as_acx_Woption
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7139 $as_echo "$ac_res" >&6; }
7140 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7141 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7143 done
7144 CXXFLAGS="$save_CXXFLAGS"
7145 ac_ext=cpp
7146 ac_cpp='$CXXCPP $CPPFLAGS'
7147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7153 ac_ext=c
7154 ac_cpp='$CPP $CPPFLAGS'
7155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159 c_loose_warn=
7160 save_CFLAGS="$CFLAGS"
7161 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7162 # Do the check with the no- prefix removed since gcc silently
7163 # accepts any -Wno-* option on purpose
7164 case $real_option in
7165 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7166 *) option=$real_option ;;
7167 esac
7168 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7171 $as_echo_n "checking whether $CC supports $option... " >&6; }
7172 if eval \${$as_acx_Woption+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 CFLAGS="$option"
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7180 main ()
7184 return 0;
7186 _ACEOF
7187 if ac_fn_c_try_compile "$LINENO"; then :
7188 eval "$as_acx_Woption=yes"
7189 else
7190 eval "$as_acx_Woption=no"
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 eval ac_res=\$$as_acx_Woption
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7197 $as_echo "$ac_res" >&6; }
7198 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7199 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7201 done
7202 CFLAGS="$save_CFLAGS"
7203 ac_ext=cpp
7204 ac_cpp='$CXXCPP $CPPFLAGS'
7205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7210 ac_ext=cpp
7211 ac_cpp='$CXXCPP $CPPFLAGS'
7212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7216 strict_warn=
7217 save_CXXFLAGS="$CXXFLAGS"
7218 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7219 # Do the check with the no- prefix removed since gcc silently
7220 # accepts any -Wno-* option on purpose
7221 case $real_option in
7222 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7223 *) option=$real_option ;;
7224 esac
7225 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7228 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7229 if eval \${$as_acx_Woption+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 CXXFLAGS="$option"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7237 main ()
7241 return 0;
7243 _ACEOF
7244 if ac_fn_cxx_try_compile "$LINENO"; then :
7245 eval "$as_acx_Woption=yes"
7246 else
7247 eval "$as_acx_Woption=no"
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 eval ac_res=\$$as_acx_Woption
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7254 $as_echo "$ac_res" >&6; }
7255 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7256 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7258 done
7259 CXXFLAGS="$save_CXXFLAGS"
7260 ac_ext=cpp
7261 ac_cpp='$CXXCPP $CPPFLAGS'
7262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7267 ac_ext=c
7268 ac_cpp='$CPP $CPPFLAGS'
7269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273 c_strict_warn=
7274 save_CFLAGS="$CFLAGS"
7275 for real_option in -Wold-style-definition -Wc++-compat; do
7276 # Do the check with the no- prefix removed since gcc silently
7277 # accepts any -Wno-* option on purpose
7278 case $real_option in
7279 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7280 *) option=$real_option ;;
7281 esac
7282 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7285 $as_echo_n "checking whether $CC supports $option... " >&6; }
7286 if eval \${$as_acx_Woption+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 CFLAGS="$option"
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7294 main ()
7298 return 0;
7300 _ACEOF
7301 if ac_fn_c_try_compile "$LINENO"; then :
7302 eval "$as_acx_Woption=yes"
7303 else
7304 eval "$as_acx_Woption=no"
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 eval ac_res=\$$as_acx_Woption
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7311 $as_echo "$ac_res" >&6; }
7312 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7313 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7315 done
7316 CFLAGS="$save_CFLAGS"
7317 ac_ext=cpp
7318 ac_cpp='$CXXCPP $CPPFLAGS'
7319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7324 ac_ext=cpp
7325 ac_cpp='$CXXCPP $CPPFLAGS'
7326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7330 # Do the check with the no- prefix removed from the warning options
7331 # since gcc silently accepts any -Wno-* option on purpose
7332 if test "$GXX" = yes; then :
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7334 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7335 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 save_CXXFLAGS="$CXXFLAGS"
7339 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7344 main ()
7348 return 0;
7350 _ACEOF
7351 if ac_fn_cxx_try_compile "$LINENO"; then :
7352 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7353 else
7354 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 CXXFLAGS="$save_CXXFLAGS"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7360 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7361 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7362 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7366 ac_ext=cpp
7367 ac_cpp='$CXXCPP $CPPFLAGS'
7368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7373 ac_ext=cpp
7374 ac_cpp='$CXXCPP $CPPFLAGS'
7375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7379 # Check whether --enable-werror-always was given.
7380 if test "${enable_werror_always+set}" = set; then :
7381 enableval=$enable_werror_always;
7382 else
7383 enable_werror_always=no
7386 if test $enable_werror_always = yes; then :
7387 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7390 ac_ext=cpp
7391 ac_cpp='$CXXCPP $CPPFLAGS'
7392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7398 # The above macros do nothing if the compiler is not GCC. However, the
7399 # Makefile has more goo to add other flags, so these variables are used
7400 # to enable warnings only for GCC.
7401 warn_cflags=
7402 warn_cxxflags=
7403 if test "x$GCC" = "xyes"; then
7404 warn_cflags='$(GCC_WARN_CFLAGS)'
7405 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7410 # Disable exceptions and RTTI if building with g++
7411 ac_ext=c
7412 ac_cpp='$CPP $CPPFLAGS'
7413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7417 noexception_flags=
7418 save_CFLAGS="$CFLAGS"
7419 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7420 # Do the check with the no- prefix removed since gcc silently
7421 # accepts any -Wno-* option on purpose
7422 case $real_option in
7423 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7424 *) option=$real_option ;;
7425 esac
7426 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7429 $as_echo_n "checking whether $CC supports $option... " >&6; }
7430 if eval \${$as_acx_Woption+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 CFLAGS="$option"
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7438 main ()
7442 return 0;
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 eval "$as_acx_Woption=yes"
7447 else
7448 eval "$as_acx_Woption=no"
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 eval ac_res=\$$as_acx_Woption
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7455 $as_echo "$ac_res" >&6; }
7456 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7457 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7459 done
7460 CFLAGS="$save_CFLAGS"
7461 ac_ext=cpp
7462 ac_cpp='$CXXCPP $CPPFLAGS'
7463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7469 # Enable expensive internal checks
7470 is_release=
7471 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7472 is_release=yes
7475 # Check whether --enable-checking was given.
7476 if test "${enable_checking+set}" = set; then :
7477 enableval=$enable_checking; ac_checking_flags="${enableval}"
7478 else
7480 # Determine the default checks.
7481 if test x$is_release = x ; then
7482 ac_checking_flags=yes,extra
7483 else
7484 ac_checking_flags=release
7488 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7489 for check in release $ac_checking_flags
7491 case $check in
7492 # these set all the flags to specific states
7493 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7494 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7495 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7496 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7497 ac_tree_checking=1 ; ac_valgrind_checking= ;
7498 ac_types_checking=1 ;;
7499 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7500 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7501 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7502 ac_rtlflag_checking= ; ac_runtime_checking= ;
7503 ac_tree_checking= ; ac_valgrind_checking= ;
7504 ac_types_checking= ;;
7505 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7506 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7507 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7508 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7509 ac_tree_checking=1 ; ac_valgrind_checking= ;
7510 ac_types_checking=1 ;;
7511 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7512 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7513 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7514 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7515 ac_tree_checking= ; ac_valgrind_checking= ;
7516 ac_types_checking= ;;
7517 # these enable particular checks
7518 assert) ac_assert_checking=1 ;;
7519 df) ac_df_checking=1 ;;
7520 extra) ac_extra_checking=1 ;;
7521 fold) ac_fold_checking=1 ;;
7522 gc) ac_gc_checking=1 ;;
7523 gcac) ac_gc_always_collect=1 ;;
7524 gimple) ac_gimple_checking=1 ;;
7525 misc) ac_checking=1 ;;
7526 rtl) ac_rtl_checking=1 ;;
7527 rtlflag) ac_rtlflag_checking=1 ;;
7528 runtime) ac_runtime_checking=1 ;;
7529 tree) ac_tree_checking=1 ;;
7530 types) ac_types_checking=1 ;;
7531 valgrind) ac_valgrind_checking=1 ;;
7532 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7533 esac
7534 done
7535 IFS="$ac_save_IFS"
7537 nocommon_flag=""
7538 if test x$ac_checking != x ; then
7540 $as_echo "#define CHECKING_P 1" >>confdefs.h
7542 nocommon_flag=-fno-common
7543 else
7544 $as_echo "#define CHECKING_P 0" >>confdefs.h
7548 if test x$ac_extra_checking != x ; then
7550 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7552 else
7553 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7556 if test x$ac_df_checking != x ; then
7558 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7561 if test x$ac_assert_checking != x ; then
7563 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7566 if test x$ac_gimple_checking != x ; then
7568 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7572 if test x$ac_runtime_checking != x ; then
7574 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7577 if test x$ac_tree_checking != x ; then
7579 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7581 TREECHECKING=yes
7583 if test x$ac_types_checking != x ; then
7585 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7589 if test x$ac_rtl_checking != x ; then
7591 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7594 if test x$ac_rtlflag_checking != x ; then
7596 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7599 if test x$ac_gc_checking != x ; then
7601 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7604 if test x$ac_gc_always_collect != x ; then
7606 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7609 if test x$ac_fold_checking != x ; then
7611 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7614 valgrind_path_defines=
7615 valgrind_command=
7617 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7618 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7619 have_valgrind_h=yes
7620 else
7621 have_valgrind_h=no
7626 # It is certainly possible that there's valgrind but no valgrind.h.
7627 # GCC relies on making annotations so we must have both.
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7629 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #include <valgrind/memcheck.h>
7633 #ifndef VALGRIND_DISCARD
7634 #error VALGRIND_DISCARD not defined
7635 #endif
7636 _ACEOF
7637 if ac_fn_cxx_try_cpp "$LINENO"; then :
7638 gcc_cv_header_valgrind_memcheck_h=yes
7639 else
7640 gcc_cv_header_valgrind_memcheck_h=no
7642 rm -f conftest.err conftest.i conftest.$ac_ext
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7644 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7646 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <memcheck.h>
7650 #ifndef VALGRIND_DISCARD
7651 #error VALGRIND_DISCARD not defined
7652 #endif
7653 _ACEOF
7654 if ac_fn_cxx_try_cpp "$LINENO"; then :
7655 gcc_cv_header_memcheck_h=yes
7656 else
7657 gcc_cv_header_memcheck_h=no
7659 rm -f conftest.err conftest.i conftest.$ac_ext
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7661 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7662 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7664 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7667 if test $gcc_cv_header_memcheck_h = yes; then
7669 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7673 if test x$ac_valgrind_checking != x ; then
7675 # Prepare PATH_SEPARATOR.
7676 # The user is always right.
7677 if test "${PATH_SEPARATOR+set}" != set; then
7678 echo "#! /bin/sh" >conf$$.sh
7679 echo "exit 0" >>conf$$.sh
7680 chmod +x conf$$.sh
7681 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7682 PATH_SEPARATOR=';'
7683 else
7684 PATH_SEPARATOR=:
7686 rm -f conf$$.sh
7689 # Find out how to test for executable files. Don't use a zero-byte file,
7690 # as systems may use methods other than mode bits to determine executability.
7691 cat >conf$$.file <<_ASEOF
7692 #! /bin/sh
7693 exit 0
7694 _ASEOF
7695 chmod +x conf$$.file
7696 if test -x conf$$.file >/dev/null 2>&1; then
7697 ac_executable_p="test -x"
7698 else
7699 ac_executable_p="test -f"
7701 rm -f conf$$.file
7703 # Extract the first word of "valgrind", so it can be a program name with args.
7704 set dummy valgrind; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_path_valgrind_path+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 case "$valgrind_path" in
7711 [\\/]* | ?:[\\/]*)
7712 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7715 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7716 for ac_dir in $PATH; do
7717 IFS="$ac_save_IFS"
7718 test -z "$ac_dir" && ac_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7721 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7722 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7723 break 2
7726 done
7727 done
7728 IFS="$ac_save_IFS"
7730 esac
7732 valgrind_path="$ac_cv_path_valgrind_path"
7733 if test -n "$valgrind_path"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7735 $as_echo "$valgrind_path" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7741 if test "x$valgrind_path" = "x" \
7742 || (test $have_valgrind_h = no \
7743 && test $gcc_cv_header_memcheck_h = no \
7744 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7745 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7747 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7748 valgrind_command="$valgrind_path -q"
7750 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7756 # Enable code coverage collection
7757 # Check whether --enable-coverage was given.
7758 if test "${enable_coverage+set}" = set; then :
7759 enableval=$enable_coverage; case "${enableval}" in
7760 yes|noopt)
7761 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7763 opt)
7764 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7767 # a.k.a. --disable-coverage
7768 coverage_flags=""
7771 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7773 esac
7774 else
7775 coverage_flags=""
7780 # Check whether --enable-gather-detailed-mem-stats was given.
7781 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7782 enableval=$enable_gather_detailed_mem_stats;
7783 else
7784 enable_gather_detailed_mem_stats=no
7787 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7789 cat >>confdefs.h <<_ACEOF
7790 #define GATHER_STATISTICS $gather_stats
7791 _ACEOF
7794 # Check whether --enable-valgrind-annotations was given.
7795 if test "${enable_valgrind_annotations+set}" = set; then :
7796 enableval=$enable_valgrind_annotations;
7797 else
7798 enable_valgrind_annotations=no
7801 if test x$enable_valgrind_annotations != xno \
7802 || test x$ac_valgrind_checking != x; then
7803 if (test $have_valgrind_h = no \
7804 && test $gcc_cv_header_memcheck_h = no \
7805 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7806 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7809 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7813 # -------------------------------
7814 # Miscenalleous configure options
7815 # -------------------------------
7817 # Determine whether or not multilibs are enabled.
7818 # Check whether --enable-multilib was given.
7819 if test "${enable_multilib+set}" = set; then :
7820 enableval=$enable_multilib;
7821 else
7822 enable_multilib=yes
7827 # Determine whether or not multiarch is enabled.
7828 # Check whether --enable-multiarch was given.
7829 if test "${enable_multiarch+set}" = set; then :
7830 enableval=$enable_multiarch; case "${enableval}" in
7831 yes|no|auto) enable_multiarch=$enableval;;
7832 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7833 esac
7834 else
7835 enable_multiarch=auto
7838 if test x${enable_multiarch} = xauto; then
7839 if test x${with_native_system_header_dir} != x; then
7840 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7841 enable_multiarch=no
7843 if test x$host != x$target && test "x$with_sysroot" = x; then
7844 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7845 enable_multiarch=no
7848 if test x${enable_multiarch} = xyes; then
7850 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7854 $as_echo_n "checking for multiarch configuration... " >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7857 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7859 # needed for setting the multiarch name for soft-float/hard-float ABIs
7863 # default stack clash protection guard size as power of twos in bytes.
7864 # Please keep these in sync with params.def.
7865 stk_clash_min=12
7866 stk_clash_max=30
7868 # Keep the default value when the option is not used to 0, this allows us to
7869 # distinguish between the cases where the user specifially set a value via
7870 # configure and when the normal default value is used.
7872 # Check whether --with-stack-clash-protection-guard-size was given.
7873 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7874 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7875 else
7876 DEFAULT_STK_CLASH_GUARD_SIZE=0
7879 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7880 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7881 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7882 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
7886 cat >>confdefs.h <<_ACEOF
7887 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7888 _ACEOF
7891 # Enable __cxa_atexit for C++.
7892 # Check whether --enable-__cxa_atexit was given.
7893 if test "${enable___cxa_atexit+set}" = set; then :
7894 enableval=$enable___cxa_atexit;
7898 # Enable C extension for decimal float if target supports it.
7900 # Check whether --enable-decimal-float was given.
7901 if test "${enable_decimal_float+set}" = set; then :
7902 enableval=$enable_decimal_float;
7903 case $enable_decimal_float in
7904 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7905 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7906 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7907 esac
7909 else
7911 case $target in
7912 aarch64* | \
7913 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7914 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7915 i?86*-*-mingw* | x86_64*-*-mingw* | \
7916 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7917 enable_decimal_float=yes
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7921 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7922 enable_decimal_float=no
7924 esac
7929 # x86's use BID format instead of DPD
7930 case x$enable_decimal_float in
7931 xyes)
7932 case $target in
7933 aarch64* | i?86*-*-* | x86_64*-*-*)
7934 enable_decimal_float=bid
7937 enable_decimal_float=dpd
7939 esac
7940 default_decimal_float=$enable_decimal_float
7942 xno)
7943 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7944 # dependency on libdecnumber.
7945 default_decimal_float=dpd
7947 esac
7952 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7954 cat >>confdefs.h <<_ACEOF
7955 #define ENABLE_DECIMAL_FLOAT $dfp
7956 _ACEOF
7959 # Use default_decimal_float for dependency.
7960 enable_decimal_float=$default_decimal_float
7962 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7964 cat >>confdefs.h <<_ACEOF
7965 #define ENABLE_DECIMAL_BID_FORMAT $bid
7966 _ACEOF
7969 # Enable C extension for fixed-point arithmetic.
7970 # Check whether --enable-fixed-point was given.
7971 if test "${enable_fixed_point+set}" = set; then :
7972 enableval=$enable_fixed_point;
7973 else
7975 case $target in
7976 arm*)
7977 enable_fixed_point=yes
7980 mips*-*-*)
7981 enable_fixed_point=yes
7983 loongarch*-*-*)
7984 enable_fixed_point=yes
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7988 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7989 enable_fixed_point=no
7991 esac
7997 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7999 cat >>confdefs.h <<_ACEOF
8000 #define ENABLE_FIXED_POINT $fixedpoint
8001 _ACEOF
8004 # Enable threads
8005 # Pass with no value to take the default
8006 # Pass with a value to specify a thread package
8007 # Check whether --enable-threads was given.
8008 if test "${enable_threads+set}" = set; then :
8009 enableval=$enable_threads;
8010 else
8011 enable_threads=''
8015 # Check whether --enable-tls was given.
8016 if test "${enable_tls+set}" = set; then :
8017 enableval=$enable_tls;
8018 case $enable_tls in
8019 yes | no) ;;
8020 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8021 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8022 esac
8024 else
8025 enable_tls=''
8029 # Check whether --enable-vtable-verify was given.
8030 if test "${enable_vtable_verify+set}" = set; then :
8031 enableval=$enable_vtable_verify;
8032 else
8033 enable_vtable_verify=no
8036 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8038 cat >>confdefs.h <<_ACEOF
8039 #define ENABLE_VTABLE_VERIFY $vtable_verify
8040 _ACEOF
8043 # Check whether --enable-analyzer was given.
8044 if test "${enable_analyzer+set}" = set; then :
8045 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8046 analyzer=0
8047 else
8048 analyzer=1
8050 else
8051 analyzer=1
8055 cat >>confdefs.h <<_ACEOF
8056 #define ENABLE_ANALYZER $analyzer
8057 _ACEOF
8060 # Check whether --enable-objc-gc was given.
8061 if test "${enable_objc_gc+set}" = set; then :
8062 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8063 objc_boehm_gc=''
8064 else
8065 objc_boehm_gc=1
8067 else
8068 objc_boehm_gc=''
8073 # Check whether --with-dwarf2 was given.
8074 if test "${with_dwarf2+set}" = set; then :
8075 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8076 else
8077 dwarf2=no
8081 # Check whether --enable-shared was given.
8082 if test "${enable_shared+set}" = set; then :
8083 enableval=$enable_shared;
8084 case $enable_shared in
8085 yes | no) ;;
8087 enable_shared=no
8088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8089 for pkg in $enableval; do
8090 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8091 enable_shared=yes
8093 done
8094 IFS="$ac_save_ifs"
8096 esac
8098 else
8099 enable_shared=yes
8104 # Check whether --enable-gcov was given.
8105 if test "${enable_gcov+set}" = set; then :
8106 enableval=$enable_gcov;
8107 else
8108 case $target in
8109 bpf-*-*)
8110 enable_gcov=no
8113 enable_gcov=yes
8115 esac
8122 # Check whether --with-specs was given.
8123 if test "${with_specs+set}" = set; then :
8124 withval=$with_specs; CONFIGURE_SPECS=$withval
8125 else
8126 CONFIGURE_SPECS=
8134 # Check whether --with-pkgversion was given.
8135 if test "${with_pkgversion+set}" = set; then :
8136 withval=$with_pkgversion; case "$withval" in
8137 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8138 no) PKGVERSION= ;;
8139 *) PKGVERSION="($withval) " ;;
8140 esac
8141 else
8142 PKGVERSION="(GCC) "
8150 # Check whether --with-bugurl was given.
8151 if test "${with_bugurl+set}" = set; then :
8152 withval=$with_bugurl; case "$withval" in
8153 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8154 no) BUGURL=
8156 *) BUGURL="$withval"
8158 esac
8159 else
8160 BUGURL="https://gcc.gnu.org/bugs/"
8164 case ${BUGURL} in
8166 REPORT_BUGS_TO=
8167 REPORT_BUGS_TEXI=
8170 REPORT_BUGS_TO="<$BUGURL>"
8171 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8173 esac;
8178 # Allow overriding the default URL for documentation
8180 # Check whether --with-documentation-root-url was given.
8181 if test "${with_documentation_root_url+set}" = set; then :
8182 withval=$with_documentation_root_url; case "$withval" in
8183 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8184 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8185 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8186 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8187 esac
8188 else
8189 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8194 cat >>confdefs.h <<_ACEOF
8195 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8196 _ACEOF
8199 # Allow overriding the default URL for GCC changes
8201 # Check whether --with-changes-root-url was given.
8202 if test "${with_changes_root_url+set}" = set; then :
8203 withval=$with_changes_root_url; case "$withval" in
8204 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8205 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8206 */) CHANGES_ROOT_URL="$withval" ;;
8207 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8208 esac
8209 else
8210 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8215 cat >>confdefs.h <<_ACEOF
8216 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8217 _ACEOF
8220 # Sanity check enable_languages in case someone does not run the toplevel
8221 # configure # script.
8222 # Check whether --enable-languages was given.
8223 if test "${enable_languages+set}" = set; then :
8224 enableval=$enable_languages; case ,${enable_languages}, in
8225 ,,|,yes,)
8226 # go safe -- we cannot be much sure without the toplevel
8227 # configure's
8228 # analysis of which target libs are present and usable
8229 enable_languages=c
8231 *,all,*)
8232 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8234 *,c,*)
8237 enable_languages=c,${enable_languages}
8239 esac
8240 else
8241 enable_languages=c
8245 # If top-level libada has been disabled, then wire in install-gnatlib
8246 # invocation with `make install', so that one can build and install
8247 # the library manually with `make -C gcc all gnatlib gnattools install'.
8248 if test x"$enable_libada" = xno; then
8249 gnat_install_lib=gnat-install-lib
8250 else
8251 gnat_install_lib=
8255 if test x"$enable_as_accelerator_for" != x; then
8257 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8259 enable_as_accelerator=yes
8260 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8261 program_transform_name=`echo $program_transform_name | sed $sedscript`
8262 accel_dir_suffix=/accel/${target_noncanonical}
8263 real_target_noncanonical=${enable_as_accelerator_for}
8269 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8270 tgt=`echo $tgt | sed 's/=.*//'`
8272 enable_offloading=1
8273 case "$tgt" in
8274 amdgcn*)
8275 omp_device_property=omp-device-properties-gcn
8276 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8278 nvptx*)
8279 omp_device_property=omp-device-properties-nvptx
8280 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8283 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8285 esac
8286 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8287 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8289 if test x"$offload_targets" = x; then
8290 offload_targets=$tgt
8291 else
8292 offload_targets="$offload_targets,$tgt"
8294 done
8299 cat >>confdefs.h <<_ACEOF
8300 #define OFFLOAD_TARGETS "$offload_targets"
8301 _ACEOF
8303 if test x"$enable_offloading" != x; then
8305 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8307 else
8309 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8313 if test "x$enable_offload_defaulted" = xyes; then
8315 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8320 # Check whether --with-multilib-list was given.
8321 if test "${with_multilib_list+set}" = set; then :
8322 withval=$with_multilib_list; :
8323 else
8324 with_multilib_list=default
8329 # Check whether --with-multilib-generator was given.
8330 if test "${with_multilib_generator+set}" = set; then :
8331 withval=$with_multilib_generator; :
8332 else
8333 with_multilib_generator=default
8337 # -------------------------
8338 # Checks for other programs
8339 # -------------------------
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8343 set x ${MAKE-make}
8344 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8345 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 cat >conftest.make <<\_ACEOF
8349 SHELL = /bin/sh
8350 all:
8351 @echo '@@@%%%=$(MAKE)=@@@%%%'
8352 _ACEOF
8353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8355 *@@@%%%=?*=@@@%%%*)
8356 eval ac_cv_prog_make_${ac_make}_set=yes;;
8358 eval ac_cv_prog_make_${ac_make}_set=no;;
8359 esac
8360 rm -f conftest.make
8362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364 $as_echo "yes" >&6; }
8365 SET_MAKE=
8366 else
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 SET_MAKE="MAKE=${MAKE-make}"
8373 # Find some useful tools
8374 for ac_prog in gawk mawk nawk awk
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_prog_AWK+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 if test -n "$AWK"; then
8384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8385 else
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_AWK="$ac_prog"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8397 done
8398 done
8399 IFS=$as_save_IFS
8403 AWK=$ac_cv_prog_AWK
8404 if test -n "$AWK"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8406 $as_echo "$AWK" >&6; }
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8413 test -n "$AWK" && break
8414 done
8416 # We need awk to create options.cc and options.h.
8417 # Bail out if it's missing.
8418 case ${AWK} in
8419 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8420 esac
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8423 $as_echo_n "checking whether ln -s works... " >&6; }
8424 if ${gcc_cv_prog_LN_S+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 rm -f conftestdata_t
8428 echo >conftestdata_f
8429 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8430 then
8431 gcc_cv_prog_LN_S="ln -s"
8432 else
8433 if ln conftestdata_f conftestdata_t 2>/dev/null
8434 then
8435 gcc_cv_prog_LN_S=ln
8436 else
8437 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8438 then
8439 gcc_cv_prog_LN_S="cp -p"
8440 else
8441 gcc_cv_prog_LN_S=cp
8445 rm -f conftestdata_f conftestdata_t
8448 LN_S="$gcc_cv_prog_LN_S"
8449 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8451 $as_echo "yes" >&6; }
8452 else
8453 if test "$gcc_cv_prog_LN_S" = "ln"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8455 $as_echo "no, using ln" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8458 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8463 $as_echo_n "checking whether ln works... " >&6; }
8464 if ${acx_cv_prog_LN+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 rm -f conftestdata_t
8468 echo >conftestdata_f
8469 if ln conftestdata_f conftestdata_t 2>/dev/null
8470 then
8471 acx_cv_prog_LN=ln
8472 else
8473 acx_cv_prog_LN=no
8475 rm -f conftestdata_f conftestdata_t
8478 if test $acx_cv_prog_LN = no; then
8479 LN="$LN_S"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8481 $as_echo "no, using $LN" >&6; }
8482 else
8483 LN="$acx_cv_prog_LN"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485 $as_echo "yes" >&6; }
8488 if test -n "$ac_tool_prefix"; then
8489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_RANLIB+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if test -n "$RANLIB"; then
8497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8510 done
8511 done
8512 IFS=$as_save_IFS
8516 RANLIB=$ac_cv_prog_RANLIB
8517 if test -n "$RANLIB"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8519 $as_echo "$RANLIB" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 if test -z "$ac_cv_prog_RANLIB"; then
8528 ac_ct_RANLIB=$RANLIB
8529 # Extract the first word of "ranlib", so it can be a program name with args.
8530 set dummy ranlib; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 if test -n "$ac_ct_RANLIB"; then
8537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_ac_ct_RANLIB="ranlib"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8552 IFS=$as_save_IFS
8556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8557 if test -n "$ac_ct_RANLIB"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8559 $as_echo "$ac_ct_RANLIB" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8565 if test "x$ac_ct_RANLIB" = x; then
8566 RANLIB=":"
8567 else
8568 case $cross_compiling:$ac_tool_warned in
8569 yes:)
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8572 ac_tool_warned=yes ;;
8573 esac
8574 RANLIB=$ac_ct_RANLIB
8576 else
8577 RANLIB="$ac_cv_prog_RANLIB"
8580 ranlib_flags=""
8583 # Find a good install program. We prefer a C program (faster),
8584 # so one script is as good as another. But avoid the broken or
8585 # incompatible versions:
8586 # SysV /etc/install, /usr/sbin/install
8587 # SunOS /usr/etc/install
8588 # IRIX /sbin/install
8589 # AIX /bin/install
8590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8592 # ./install, which can be erroneously created by make from ./install.sh.
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8594 $as_echo_n "checking for a BSD compatible install... " >&6; }
8595 if test -z "$INSTALL"; then
8596 if ${ac_cv_path_install+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8600 for ac_dir in $PATH; do
8601 # Account for people who put trailing slashes in PATH elements.
8602 case "$ac_dir/" in
8603 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8605 # OSF1 and SCO ODT 3.0 have their own names for install.
8606 for ac_prog in ginstall scoinst install; do
8607 if test -f $ac_dir/$ac_prog; then
8608 if test $ac_prog = install &&
8609 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8610 # AIX install. It has an incompatible calling convention.
8611 # OSF/1 installbsd also uses dspmsg, but is usable.
8613 else
8614 ac_cv_path_install="$ac_dir/$ac_prog -c"
8615 break 2
8618 done
8620 esac
8621 done
8622 IFS="$ac_save_IFS"
8625 if test "${ac_cv_path_install+set}" = set; then
8626 INSTALL="$ac_cv_path_install"
8627 else
8628 # As a last resort, use the slow shell script. We don't cache a
8629 # path for INSTALL within a source directory, because that will
8630 # break other packages using the cache if that directory is
8631 # removed, or if the path is relative.
8632 INSTALL="$ac_install_sh"
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8636 $as_echo "$INSTALL" >&6; }
8638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8639 # It thinks the first close brace ends the variable substitution.
8640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8645 # See if cmp has --ignore-initial.
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8647 $as_echo_n "checking for cmp's capabilities... " >&6; }
8648 if ${gcc_cv_prog_cmp_skip+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 echo abfoo >t1
8652 echo cdfoo >t2
8653 gcc_cv_prog_cmp_skip=slowcompare
8654 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8655 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8657 else
8658 gcc_cv_prog_cmp_skip=gnucompare
8661 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8662 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8663 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8665 else
8666 gcc_cv_prog_cmp_skip=fastcompare
8670 rm t1 t2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8674 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8675 make_compare_target=$gcc_cv_prog_cmp_skip
8679 # See if we have the mktemp command.
8680 # Extract the first word of "mktemp", so it can be a program name with args.
8681 set dummy mktemp; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 if test -n "$have_mktemp_command"; then
8688 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_have_mktemp_command="yes"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8701 done
8702 done
8703 IFS=$as_save_IFS
8705 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8708 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8709 if test -n "$have_mktemp_command"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8711 $as_echo "$have_mktemp_command" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 # See if makeinfo has been installed and is modern enough
8720 # that we can use it.
8722 # Extract the first word of "makeinfo", so it can be a program name with args.
8723 set dummy makeinfo; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_MAKEINFO+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 if test -n "$MAKEINFO"; then
8730 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739 ac_cv_prog_MAKEINFO="makeinfo"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8743 done
8744 done
8745 IFS=$as_save_IFS
8749 MAKEINFO=$ac_cv_prog_MAKEINFO
8750 if test -n "$MAKEINFO"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8752 $as_echo "$MAKEINFO" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8759 if test -n "$MAKEINFO"; then
8760 # Found it, now check the version.
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8762 $as_echo_n "checking for modern makeinfo... " >&6; }
8763 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8767 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8769 case $ac_prog_version in
8770 '') gcc_cv_prog_makeinfo_modern=no;;
8771 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8772 *) gcc_cv_prog_makeinfo_modern=no;;
8773 esac
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8777 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8778 else
8779 gcc_cv_prog_makeinfo_modern=no
8781 if test $gcc_cv_prog_makeinfo_modern = no; then
8782 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8785 if test $gcc_cv_prog_makeinfo_modern = no; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8787 *** Makeinfo is missing or too old.
8788 *** Info documentation will not be built." >&5
8789 $as_echo "$as_me: WARNING:
8790 *** Makeinfo is missing or too old.
8791 *** Info documentation will not be built." >&2;}
8792 BUILD_INFO=
8793 else
8794 BUILD_INFO=info
8798 # Is pod2man recent enough to regenerate manpages?
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8800 $as_echo_n "checking for recent Pod::Man... " >&6; }
8801 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803 $as_echo "yes" >&6; }
8804 GENERATED_MANPAGES=generated-manpages
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 GENERATED_MANPAGES=
8812 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8814 # How about lex?
8815 for ac_prog in flex
8817 # Extract the first word of "$ac_prog", so it can be a program name with args.
8818 set dummy $ac_prog; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_FLEX+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$FLEX"; then
8825 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_FLEX="$ac_prog"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8838 done
8839 done
8840 IFS=$as_save_IFS
8844 FLEX=$ac_cv_prog_FLEX
8845 if test -n "$FLEX"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8847 $as_echo "$FLEX" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8854 test -n "$FLEX" && break
8855 done
8856 test -n "$FLEX" || FLEX="$MISSING flex"
8859 # Bison?
8860 for ac_prog in bison
8862 # Extract the first word of "$ac_prog", so it can be a program name with args.
8863 set dummy $ac_prog; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if ${ac_cv_prog_BISON+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 if test -n "$BISON"; then
8870 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8879 ac_cv_prog_BISON="$ac_prog"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8883 done
8884 done
8885 IFS=$as_save_IFS
8889 BISON=$ac_cv_prog_BISON
8890 if test -n "$BISON"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8892 $as_echo "$BISON" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8899 test -n "$BISON" && break
8900 done
8901 test -n "$BISON" || BISON="$MISSING bison"
8904 # Python3?
8906 # Extract the first word of "python3", so it can be a program name with args.
8907 set dummy python3; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_prog_PYTHON+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 if test -n "$PYTHON"; then
8914 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_PYTHON="python3"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8927 done
8928 done
8929 IFS=$as_save_IFS
8933 PYTHON=$ac_cv_prog_PYTHON
8934 if test -n "$PYTHON"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8936 $as_echo "$PYTHON" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8943 if test -n "$PYTHON"; then
8944 # Found it, now check the version.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
8946 $as_echo_n "checking for modern python3... " >&6; }
8947 if ${gcc_cv_prog_python3_modern+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 ac_prog_version=`eval $PYTHON --version 2>&1 |
8951 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
8953 case $ac_prog_version in
8954 '') gcc_cv_prog_python3_modern=no;;
8955 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
8956 *) gcc_cv_prog_python3_modern=no;;
8957 esac
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
8961 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
8962 else
8963 gcc_cv_prog_python3_modern=no
8965 if test $gcc_cv_prog_python3_modern = no; then
8966 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
8969 if test $gcc_cv_prog_python3_modern = no; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8971 *** Python3 is missing.
8972 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
8973 $as_echo "$as_me: WARNING:
8974 *** Python3 is missing.
8975 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
8976 HAVE_PYTHON=no
8977 else
8978 HAVE_PYTHON=yes
8982 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8983 # check for build == host before using them.
8985 # NM
8986 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8987 && test -d ../binutils ; then
8988 NM='${objdir}/../binutils/nm-new'
8989 else
8990 # Extract the first word of "nm", so it can be a program name with args.
8991 set dummy nm; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_prog_NM+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 if test -n "$NM"; then
8998 ac_cv_prog_NM="$NM" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_NM="nm"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9015 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9018 NM=$ac_cv_prog_NM
9019 if test -n "$NM"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9021 $as_echo "$NM" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9030 # AR
9031 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9032 && test -d ../binutils ; then
9033 AR='${objdir}/../binutils/ar'
9034 else
9035 # Extract the first word of "ar", so it can be a program name with args.
9036 set dummy ar; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if ${ac_cv_prog_AR+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 if test -n "$AR"; then
9043 ac_cv_prog_AR="$AR" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052 ac_cv_prog_AR="ar"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9056 done
9057 done
9058 IFS=$as_save_IFS
9060 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9063 AR=$ac_cv_prog_AR
9064 if test -n "$AR"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9066 $as_echo "$AR" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9075 # The jit documentation looks better if built with sphinx, but can be
9076 # built with texinfo if sphinx is not available.
9077 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9078 # Extract the first word of "sphinx-build", so it can be a program name with args.
9079 set dummy sphinx-build; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_doc_build_sys+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 if test -n "$doc_build_sys"; then
9086 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_doc_build_sys="sphinx"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9099 done
9100 done
9101 IFS=$as_save_IFS
9103 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9106 doc_build_sys=$ac_cv_prog_doc_build_sys
9107 if test -n "$doc_build_sys"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9109 $as_echo "$doc_build_sys" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9117 # --------------------
9118 # Checks for C headers
9119 # --------------------
9121 # Need to reject headers which give warnings, so that the -Werror bootstrap
9122 # works later. *sigh* This needs to come before all header checks.
9124 ac_c_preproc_warn_flag=yes
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9127 $as_echo_n "checking for ANSI C header files... " >&6; }
9128 if ${ac_cv_header_stdc+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133 #include <stdlib.h>
9134 #include <stdarg.h>
9135 #include <string.h>
9136 #include <float.h>
9139 main ()
9143 return 0;
9145 _ACEOF
9146 if ac_fn_cxx_try_compile "$LINENO"; then :
9147 ac_cv_header_stdc=yes
9148 else
9149 ac_cv_header_stdc=no
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 if test $ac_cv_header_stdc = yes; then
9154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157 #include <string.h>
9159 _ACEOF
9160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161 $EGREP "memchr" >/dev/null 2>&1; then :
9163 else
9164 ac_cv_header_stdc=no
9166 rm -f conftest*
9170 if test $ac_cv_header_stdc = yes; then
9171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #include <stdlib.h>
9176 _ACEOF
9177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9178 $EGREP "free" >/dev/null 2>&1; then :
9180 else
9181 ac_cv_header_stdc=no
9183 rm -f conftest*
9187 if test $ac_cv_header_stdc = yes; then
9188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9189 if test "$cross_compiling" = yes; then :
9191 else
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 #include <ctype.h>
9195 #include <stdlib.h>
9196 #if ((' ' & 0x0FF) == 0x020)
9197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9199 #else
9200 # define ISLOWER(c) \
9201 (('a' <= (c) && (c) <= 'i') \
9202 || ('j' <= (c) && (c) <= 'r') \
9203 || ('s' <= (c) && (c) <= 'z'))
9204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9205 #endif
9207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9209 main ()
9211 int i;
9212 for (i = 0; i < 256; i++)
9213 if (XOR (islower (i), ISLOWER (i))
9214 || toupper (i) != TOUPPER (i))
9215 return 2;
9216 return 0;
9218 _ACEOF
9219 if ac_fn_cxx_try_run "$LINENO"; then :
9221 else
9222 ac_cv_header_stdc=no
9224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9225 conftest.$ac_objext conftest.beam conftest.$ac_ext
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9231 $as_echo "$ac_cv_header_stdc" >&6; }
9232 if test $ac_cv_header_stdc = yes; then
9234 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9239 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9240 if ${ac_cv_header_time+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 #include <sys/types.h>
9246 #include <sys/time.h>
9247 #include <time.h>
9250 main ()
9252 if ((struct tm *) 0)
9253 return 0;
9255 return 0;
9257 _ACEOF
9258 if ac_fn_cxx_try_compile "$LINENO"; then :
9259 ac_cv_header_time=yes
9260 else
9261 ac_cv_header_time=no
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9266 $as_echo "$ac_cv_header_time" >&6; }
9267 if test $ac_cv_header_time = yes; then
9269 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9274 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9275 if ${gcc_cv_header_string+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #include <string.h>
9281 #include <strings.h>
9283 main ()
9287 return 0;
9289 _ACEOF
9290 if ac_fn_cxx_try_compile "$LINENO"; then :
9291 gcc_cv_header_string=yes
9292 else
9293 gcc_cv_header_string=no
9295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9298 $as_echo "$gcc_cv_header_string" >&6; }
9299 if test $gcc_cv_header_string = yes; then
9301 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9306 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9307 if ${ac_cv_header_sys_wait_h+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 #include <sys/wait.h>
9314 #ifndef WEXITSTATUS
9315 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9316 #endif
9317 #ifndef WIFEXITED
9318 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9319 #endif
9322 main ()
9324 int s;
9325 wait (&s);
9326 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9328 return 0;
9330 _ACEOF
9331 if ac_fn_cxx_try_compile "$LINENO"; then :
9332 ac_cv_header_sys_wait_h=yes
9333 else
9334 ac_cv_header_sys_wait_h=no
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9339 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9340 if test $ac_cv_header_sys_wait_h = yes; then
9342 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9347 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9348 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #include <sys/types.h>
9354 #include <termios.h>
9355 #ifdef TIOCGWINSZ
9357 #endif
9359 _ACEOF
9360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9361 $EGREP "yes" >/dev/null 2>&1; then :
9362 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9363 else
9364 ac_cv_sys_tiocgwinsz_in_termios_h=no
9366 rm -f conftest*
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9370 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9372 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9374 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9375 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #include <sys/types.h>
9381 #include <sys/ioctl.h>
9382 #ifdef TIOCGWINSZ
9384 #endif
9386 _ACEOF
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "yes" >/dev/null 2>&1; then :
9389 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9390 else
9391 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9393 rm -f conftest*
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9397 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9399 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9401 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9406 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9407 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9408 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9409 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9410 do :
9411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9412 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9414 cat >>confdefs.h <<_ACEOF
9415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9416 _ACEOF
9419 done
9422 # Check for thread headers.
9423 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9424 if test "x$ac_cv_header_thread_h" = xyes; then :
9425 have_thread_h=yes
9426 else
9427 have_thread_h=
9430 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9431 if test "x$ac_cv_header_pthread_h" = xyes; then :
9432 have_pthread_h=yes
9433 else
9434 have_pthread_h=
9438 # These tests can't be done till we know if we have limits.h.
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9440 $as_echo_n "checking for CHAR_BIT... " >&6; }
9441 if ${gcc_cv_decl_char_bit+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 #ifdef HAVE_LIMITS_H
9447 #include <limits.h>
9448 #endif
9449 #ifdef CHAR_BIT
9450 found
9451 #endif
9452 _ACEOF
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 $EGREP "found" >/dev/null 2>&1; then :
9455 gcc_cv_decl_char_bit=yes
9456 else
9457 gcc_cv_decl_char_bit=no
9459 rm -f conftest*
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9464 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9465 if test $gcc_cv_decl_char_bit = no; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9467 $as_echo_n "checking number of bits in a byte... " >&6; }
9468 if ${gcc_cv_c_nbby+:} false; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9472 gcc_cv_c_nbby=
9473 while test $i -lt 65; do
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9478 main ()
9480 switch(0) {
9481 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9482 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9485 return 0;
9487 _ACEOF
9488 if ac_fn_cxx_try_compile "$LINENO"; then :
9489 gcc_cv_c_nbby=$i; break
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 i=`expr $i + 1`
9493 done
9494 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9498 $as_echo "$gcc_cv_c_nbby" >&6; }
9499 if test $gcc_cv_c_nbby = failed; then
9500 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9501 else
9503 cat >>confdefs.h <<_ACEOF
9504 #define CHAR_BIT $gcc_cv_c_nbby
9505 _ACEOF
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9510 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9511 if ${ac_cv_c_bigendian+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 ac_cv_c_bigendian=unknown
9515 # See if we're dealing with a universal compiler.
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 #ifndef __APPLE_CC__
9519 not a universal capable compiler
9520 #endif
9521 typedef int dummy;
9523 _ACEOF
9524 if ac_fn_cxx_try_compile "$LINENO"; then :
9526 # Check for potential -arch flags. It is not universal unless
9527 # there are at least two -arch flags with different values.
9528 ac_arch=
9529 ac_prev=
9530 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9531 if test -n "$ac_prev"; then
9532 case $ac_word in
9533 i?86 | x86_64 | ppc | ppc64)
9534 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9535 ac_arch=$ac_word
9536 else
9537 ac_cv_c_bigendian=universal
9538 break
9541 esac
9542 ac_prev=
9543 elif test "x$ac_word" = "x-arch"; then
9544 ac_prev=arch
9546 done
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 if test $ac_cv_c_bigendian = unknown; then
9550 # See if sys/param.h defines the BYTE_ORDER macro.
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553 #include <sys/types.h>
9554 #include <sys/param.h>
9557 main ()
9559 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9560 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9561 && LITTLE_ENDIAN)
9562 bogus endian macros
9563 #endif
9566 return 0;
9568 _ACEOF
9569 if ac_fn_cxx_try_compile "$LINENO"; then :
9570 # It does; now see whether it defined to BIG_ENDIAN or not.
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 #include <sys/types.h>
9574 #include <sys/param.h>
9577 main ()
9579 #if BYTE_ORDER != BIG_ENDIAN
9580 not big endian
9581 #endif
9584 return 0;
9586 _ACEOF
9587 if ac_fn_cxx_try_compile "$LINENO"; then :
9588 ac_cv_c_bigendian=yes
9589 else
9590 ac_cv_c_bigendian=no
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 if test $ac_cv_c_bigendian = unknown; then
9597 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 #include <limits.h>
9603 main ()
9605 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9606 bogus endian macros
9607 #endif
9610 return 0;
9612 _ACEOF
9613 if ac_fn_cxx_try_compile "$LINENO"; then :
9614 # It does; now see whether it defined to _BIG_ENDIAN or not.
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 #include <limits.h>
9620 main ()
9622 #ifndef _BIG_ENDIAN
9623 not big endian
9624 #endif
9627 return 0;
9629 _ACEOF
9630 if ac_fn_cxx_try_compile "$LINENO"; then :
9631 ac_cv_c_bigendian=yes
9632 else
9633 ac_cv_c_bigendian=no
9635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 if test $ac_cv_c_bigendian = unknown; then
9640 # Compile a test program.
9641 if test "$cross_compiling" = yes; then :
9642 # Try to guess by grepping values from an object file.
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 short int ascii_mm[] =
9646 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9647 short int ascii_ii[] =
9648 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9649 int use_ascii (int i) {
9650 return ascii_mm[i] + ascii_ii[i];
9652 short int ebcdic_ii[] =
9653 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9654 short int ebcdic_mm[] =
9655 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9656 int use_ebcdic (int i) {
9657 return ebcdic_mm[i] + ebcdic_ii[i];
9659 extern int foo;
9662 main ()
9664 return use_ascii (foo) == use_ebcdic (foo);
9666 return 0;
9668 _ACEOF
9669 if ac_fn_cxx_try_compile "$LINENO"; then :
9670 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9671 ac_cv_c_bigendian=yes
9673 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9674 if test "$ac_cv_c_bigendian" = unknown; then
9675 ac_cv_c_bigendian=no
9676 else
9677 # finding both strings is unlikely to happen, but who knows?
9678 ac_cv_c_bigendian=unknown
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 $ac_includes_default
9688 main ()
9691 /* Are we little or big endian? From Harbison&Steele. */
9692 union
9694 long int l;
9695 char c[sizeof (long int)];
9696 } u;
9697 u.l = 1;
9698 return u.c[sizeof (long int) - 1] == 1;
9701 return 0;
9703 _ACEOF
9704 if ac_fn_cxx_try_run "$LINENO"; then :
9705 ac_cv_c_bigendian=no
9706 else
9707 ac_cv_c_bigendian=yes
9709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9710 conftest.$ac_objext conftest.beam conftest.$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9716 $as_echo "$ac_cv_c_bigendian" >&6; }
9717 case $ac_cv_c_bigendian in #(
9718 yes)
9719 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9720 ;; #(
9722 ;; #(
9723 universal)
9725 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9727 ;; #(
9729 as_fn_error $? "unknown endianness
9730 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9731 esac
9734 # ----------------------
9735 # Checks for C++ headers
9736 # ----------------------
9738 ac_ext=cpp
9739 ac_cpp='$CXXCPP $CPPFLAGS'
9740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9744 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9745 if test -z "$CXXCPP"; then
9746 if ${ac_cv_prog_CXXCPP+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 # Double quotes because CXXCPP needs to be expanded
9750 for CXXCPP in "$CXX -E" "/lib/cpp"
9752 ac_preproc_ok=false
9753 for ac_cxx_preproc_warn_flag in '' yes
9755 # Use a header file that comes with gcc, so configuring glibc
9756 # with a fresh cross-compiler works.
9757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758 # <limits.h> exists even on freestanding compilers.
9759 # On the NeXT, cc -E runs the code through the compiler's parser,
9760 # not just through cpp. "Syntax error" is here to catch this case.
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 #ifdef __STDC__
9764 # include <limits.h>
9765 #else
9766 # include <assert.h>
9767 #endif
9768 Syntax error
9769 _ACEOF
9770 if ac_fn_cxx_try_cpp "$LINENO"; then :
9772 else
9773 # Broken: fails on valid input.
9774 continue
9776 rm -f conftest.err conftest.i conftest.$ac_ext
9778 # OK, works on sane cases. Now check whether nonexistent headers
9779 # can be detected and how.
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782 #include <ac_nonexistent.h>
9783 _ACEOF
9784 if ac_fn_cxx_try_cpp "$LINENO"; then :
9785 # Broken: success on invalid input.
9786 continue
9787 else
9788 # Passes both tests.
9789 ac_preproc_ok=:
9790 break
9792 rm -f conftest.err conftest.i conftest.$ac_ext
9794 done
9795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9796 rm -f conftest.i conftest.err conftest.$ac_ext
9797 if $ac_preproc_ok; then :
9798 break
9801 done
9802 ac_cv_prog_CXXCPP=$CXXCPP
9805 CXXCPP=$ac_cv_prog_CXXCPP
9806 else
9807 ac_cv_prog_CXXCPP=$CXXCPP
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9810 $as_echo "$CXXCPP" >&6; }
9811 ac_preproc_ok=false
9812 for ac_cxx_preproc_warn_flag in '' yes
9814 # Use a header file that comes with gcc, so configuring glibc
9815 # with a fresh cross-compiler works.
9816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 # <limits.h> exists even on freestanding compilers.
9818 # On the NeXT, cc -E runs the code through the compiler's parser,
9819 # not just through cpp. "Syntax error" is here to catch this case.
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 #ifdef __STDC__
9823 # include <limits.h>
9824 #else
9825 # include <assert.h>
9826 #endif
9827 Syntax error
9828 _ACEOF
9829 if ac_fn_cxx_try_cpp "$LINENO"; then :
9831 else
9832 # Broken: fails on valid input.
9833 continue
9835 rm -f conftest.err conftest.i conftest.$ac_ext
9837 # OK, works on sane cases. Now check whether nonexistent headers
9838 # can be detected and how.
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #include <ac_nonexistent.h>
9842 _ACEOF
9843 if ac_fn_cxx_try_cpp "$LINENO"; then :
9844 # Broken: success on invalid input.
9845 continue
9846 else
9847 # Passes both tests.
9848 ac_preproc_ok=:
9849 break
9851 rm -f conftest.err conftest.i conftest.$ac_ext
9853 done
9854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9855 rm -f conftest.i conftest.err conftest.$ac_ext
9856 if $ac_preproc_ok; then :
9858 else
9859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9862 See \`config.log' for more details" >&5
9863 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9864 See \`config.log' for more details" >&2;}; }
9867 ac_ext=cpp
9868 ac_cpp='$CXXCPP $CPPFLAGS'
9869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9874 for ac_header in unordered_map
9875 do :
9876 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9877 if test "x$ac_cv_header_unordered_map" = xyes; then :
9878 cat >>confdefs.h <<_ACEOF
9879 #define HAVE_UNORDERED_MAP 1
9880 _ACEOF
9883 done
9885 for ac_header in tr1/unordered_map
9886 do :
9887 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9888 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_TR1_UNORDERED_MAP 1
9891 _ACEOF
9894 done
9896 for ac_header in ext/hash_map
9897 do :
9898 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9899 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_EXT_HASH_MAP 1
9902 _ACEOF
9905 done
9908 # --------
9909 # Dependency checking.
9910 # --------
9912 rm -rf .tst 2>/dev/null
9913 mkdir .tst 2>/dev/null
9914 if test -d .tst; then
9915 am__leading_dot=.
9916 else
9917 am__leading_dot=_
9919 rmdir .tst 2>/dev/null
9921 DEPDIR="${am__leading_dot}deps"
9923 ac_config_commands="$ac_config_commands depdir"
9926 ac_config_commands="$ac_config_commands gccdepdir"
9929 depcc="$CXX" am_compiler_list=
9931 am_depcomp=$ac_aux_dir/depcomp
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9933 $as_echo_n "checking dependency style of $depcc... " >&6; }
9934 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test -f "$am_depcomp"; then
9938 # We make a subdir and do the tests there. Otherwise we can end up
9939 # making bogus files that we don't know about and never remove. For
9940 # instance it was reported that on HP-UX the gcc test will end up
9941 # making a dummy file named `D' -- because `-MD' means `put the output
9942 # in D'.
9943 mkdir conftest.dir
9944 # Copy depcomp to subdir because otherwise we won't find it if we're
9945 # using a relative directory.
9946 cp "$am_depcomp" conftest.dir
9947 cd conftest.dir
9948 # We will build objects and dependencies in a subdirectory because
9949 # it helps to detect inapplicable dependency modes. For instance
9950 # both Tru64's cc and ICC support -MD to output dependencies as a
9951 # side effect of compilation, but ICC will put the dependencies in
9952 # the current directory while Tru64 will put them in the object
9953 # directory.
9954 mkdir sub
9956 am_cv_CXX_dependencies_compiler_type=none
9957 if test "$am_compiler_list" = ""; then
9958 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9960 for depmode in $am_compiler_list; do
9961 if test $depmode = none; then break; fi
9963 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9964 # Setup a source with many dependencies, because some compilers
9965 # like to wrap large dependency lists on column 80 (with \), and
9966 # we should not choose a depcomp mode which is confused by this.
9968 # We need to recreate these files for each test, as the compiler may
9969 # overwrite some of them when testing with obscure command lines.
9970 # This happens at least with the AIX C compiler.
9971 : > sub/conftest.c
9972 for i in 1 2 3 4 5 6; do
9973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9975 # Solaris 8's {/usr,}/bin/sh.
9976 touch sub/conftst$i.h
9977 done
9978 echo "include sub/conftest.Po" > confmf
9980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9981 # mode. It turns out that the SunPro C++ compiler does not properly
9982 # handle `-M -o', and we need to detect this.
9983 depcmd="depmode=$depmode \
9984 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9986 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9987 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9988 if env $depcmd > conftest.err 2>&1 &&
9989 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9990 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9991 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9992 # icc doesn't choke on unknown options, it will just issue warnings
9993 # or remarks (even with -Werror). So we grep stderr for any message
9994 # that says an option was ignored or not supported.
9995 # When given -MP, icc 7.0 and 7.1 complain thusly:
9996 # icc: Command line warning: ignoring option '-M'; no argument required
9997 # The diagnosis changed in icc 8.0:
9998 # icc: Command line remark: option '-MP' not supported
9999 if (grep 'ignoring option' conftest.err ||
10000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10001 am_cv_CXX_dependencies_compiler_type=$depmode
10002 $as_echo "$as_me:$LINENO: success" >&5
10003 break
10006 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10007 sed -e 's/^/| /' < conftest.err >&5
10008 done
10010 cd ..
10011 rm -rf conftest.dir
10012 else
10013 am_cv_CXX_dependencies_compiler_type=none
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10019 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10020 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10021 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10026 # --------
10027 # UNSORTED
10028 # --------
10031 # These libraries may be used by collect2.
10032 # We may need a special search path to get them linked.
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10034 $as_echo_n "checking for collect2 libraries... " >&6; }
10035 if ${gcc_cv_collect2_libs+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 save_LIBS="$LIBS"
10039 for libs in '' -lld -lmld \
10040 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10041 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10043 LIBS="$libs"
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char ldopen ();
10055 main ()
10057 return ldopen ();
10059 return 0;
10061 _ACEOF
10062 if ac_fn_cxx_try_link "$LINENO"; then :
10063 gcc_cv_collect2_libs="$libs"; break
10065 rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067 done
10068 LIBS="$save_LIBS"
10069 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10072 $as_echo "$gcc_cv_collect2_libs" >&6; }
10073 case $gcc_cv_collect2_libs in
10074 "none required") ;;
10075 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10076 esac
10079 # When building Ada code on Alpha, we need exc_resume which is usually in
10080 # -lexc. So test for it.
10081 save_LIBS="$LIBS"
10082 LIBS=
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10084 $as_echo_n "checking for library containing exc_resume... " >&6; }
10085 if ${ac_cv_search_exc_resume+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 ac_func_search_save_LIBS=$LIBS
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 char exc_resume ();
10100 main ()
10102 return exc_resume ();
10104 return 0;
10106 _ACEOF
10107 for ac_lib in '' exc; do
10108 if test -z "$ac_lib"; then
10109 ac_res="none required"
10110 else
10111 ac_res=-l$ac_lib
10112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10114 if ac_fn_cxx_try_link "$LINENO"; then :
10115 ac_cv_search_exc_resume=$ac_res
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext
10119 if ${ac_cv_search_exc_resume+:} false; then :
10120 break
10122 done
10123 if ${ac_cv_search_exc_resume+:} false; then :
10125 else
10126 ac_cv_search_exc_resume=no
10128 rm conftest.$ac_ext
10129 LIBS=$ac_func_search_save_LIBS
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10132 $as_echo "$ac_cv_search_exc_resume" >&6; }
10133 ac_res=$ac_cv_search_exc_resume
10134 if test "$ac_res" != no; then :
10135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10139 GNAT_LIBEXC="$LIBS"
10140 LIBS="$save_LIBS"
10143 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10144 save_LIBS="$LIBS"
10145 LIBS=
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10147 $as_echo_n "checking for library containing kstat_open... " >&6; }
10148 if ${ac_cv_search_kstat_open+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 ac_func_search_save_LIBS=$LIBS
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char kstat_open ();
10163 main ()
10165 return kstat_open ();
10167 return 0;
10169 _ACEOF
10170 for ac_lib in '' kstat; do
10171 if test -z "$ac_lib"; then
10172 ac_res="none required"
10173 else
10174 ac_res=-l$ac_lib
10175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10177 if ac_fn_cxx_try_link "$LINENO"; then :
10178 ac_cv_search_kstat_open=$ac_res
10180 rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext
10182 if ${ac_cv_search_kstat_open+:} false; then :
10183 break
10185 done
10186 if ${ac_cv_search_kstat_open+:} false; then :
10188 else
10189 ac_cv_search_kstat_open=no
10191 rm conftest.$ac_ext
10192 LIBS=$ac_func_search_save_LIBS
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10195 $as_echo "$ac_cv_search_kstat_open" >&6; }
10196 ac_res=$ac_cv_search_kstat_open
10197 if test "$ac_res" != no; then :
10198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10202 EXTRA_GCC_LIBS="$LIBS"
10203 LIBS="$save_LIBS"
10206 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10207 # C++ needs those for libcody.
10208 save_LIBS="$LIBS"
10209 LIBS=
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10212 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10213 if ${ac_cv_search_gethostbyname+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 ac_func_search_save_LIBS=$LIBS
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char gethostbyname ();
10228 main ()
10230 return gethostbyname ();
10232 return 0;
10234 _ACEOF
10235 for ac_lib in '' nsl; do
10236 if test -z "$ac_lib"; then
10237 ac_res="none required"
10238 else
10239 ac_res=-l$ac_lib
10240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10242 if ac_fn_cxx_try_link "$LINENO"; then :
10243 ac_cv_search_gethostbyname=$ac_res
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext
10247 if ${ac_cv_search_gethostbyname+:} false; then :
10248 break
10250 done
10251 if ${ac_cv_search_gethostbyname+:} false; then :
10253 else
10254 ac_cv_search_gethostbyname=no
10256 rm conftest.$ac_ext
10257 LIBS=$ac_func_search_save_LIBS
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10260 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10261 ac_res=$ac_cv_search_gethostbyname
10262 if test "$ac_res" != no; then :
10263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10268 $as_echo_n "checking for library containing socket... " >&6; }
10269 if ${ac_cv_search_socket+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 ac_func_search_save_LIBS=$LIBS
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 char socket ();
10284 main ()
10286 return socket ();
10288 return 0;
10290 _ACEOF
10291 for ac_lib in '' socket; do
10292 if test -z "$ac_lib"; then
10293 ac_res="none required"
10294 else
10295 ac_res=-l$ac_lib
10296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10298 if ac_fn_cxx_try_link "$LINENO"; then :
10299 ac_cv_search_socket=$ac_res
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext
10303 if ${ac_cv_search_socket+:} false; then :
10304 break
10306 done
10307 if ${ac_cv_search_socket+:} false; then :
10309 else
10310 ac_cv_search_socket=no
10312 rm conftest.$ac_ext
10313 LIBS=$ac_func_search_save_LIBS
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10316 $as_echo "$ac_cv_search_socket" >&6; }
10317 ac_res=$ac_cv_search_socket
10318 if test "$ac_res" != no; then :
10319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10321 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10324 $as_echo_n "checking for socket in -lsocket... " >&6; }
10325 if ${ac_cv_lib_socket_socket+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 ac_check_lib_save_LIBS=$LIBS
10329 LIBS="-lsocket -lnsl $LIBS"
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char socket ();
10341 main ()
10343 return socket ();
10345 return 0;
10347 _ACEOF
10348 if ac_fn_cxx_try_link "$LINENO"; then :
10349 ac_cv_lib_socket_socket=yes
10350 else
10351 ac_cv_lib_socket_socket=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10358 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10359 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10360 LIBS="-lsocket -lnsl $LIBS"
10366 NETLIBS="$LIBS"
10367 LIBS="$save_LIBS"
10370 # Some systems put ldexp and frexp in libm instead of libc; assume
10371 # they're both in the same place. jcf-dump needs them.
10372 save_LIBS="$LIBS"
10373 LIBS=
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10375 $as_echo_n "checking for library containing ldexp... " >&6; }
10376 if ${ac_cv_search_ldexp+:} false; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 ac_func_search_save_LIBS=$LIBS
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 char ldexp ();
10391 main ()
10393 return ldexp ();
10395 return 0;
10397 _ACEOF
10398 for ac_lib in '' m; do
10399 if test -z "$ac_lib"; then
10400 ac_res="none required"
10401 else
10402 ac_res=-l$ac_lib
10403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10405 if ac_fn_cxx_try_link "$LINENO"; then :
10406 ac_cv_search_ldexp=$ac_res
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext
10410 if ${ac_cv_search_ldexp+:} false; then :
10411 break
10413 done
10414 if ${ac_cv_search_ldexp+:} false; then :
10416 else
10417 ac_cv_search_ldexp=no
10419 rm conftest.$ac_ext
10420 LIBS=$ac_func_search_save_LIBS
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10423 $as_echo "$ac_cv_search_ldexp" >&6; }
10424 ac_res=$ac_cv_search_ldexp
10425 if test "$ac_res" != no; then :
10426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10430 LDEXP_LIB="$LIBS"
10431 LIBS="$save_LIBS"
10434 # Some systems need dlopen
10435 save_LIBS="$LIBS"
10436 LIBS=
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10438 $as_echo_n "checking for library containing dlopen... " >&6; }
10439 if ${ac_cv_search_dlopen+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 ac_func_search_save_LIBS=$LIBS
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10446 /* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
10449 #ifdef __cplusplus
10450 extern "C"
10451 #endif
10452 char dlopen ();
10454 main ()
10456 return dlopen ();
10458 return 0;
10460 _ACEOF
10461 for ac_lib in '' dl; do
10462 if test -z "$ac_lib"; then
10463 ac_res="none required"
10464 else
10465 ac_res=-l$ac_lib
10466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10468 if ac_fn_cxx_try_link "$LINENO"; then :
10469 ac_cv_search_dlopen=$ac_res
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext
10473 if ${ac_cv_search_dlopen+:} false; then :
10474 break
10476 done
10477 if ${ac_cv_search_dlopen+:} false; then :
10479 else
10480 ac_cv_search_dlopen=no
10482 rm conftest.$ac_ext
10483 LIBS=$ac_func_search_save_LIBS
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10486 $as_echo "$ac_cv_search_dlopen" >&6; }
10487 ac_res=$ac_cv_search_dlopen
10488 if test "$ac_res" != no; then :
10489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10493 DL_LIB="$LIBS"
10494 LIBS="$save_LIBS"
10497 # Use <inttypes.h> only if it exists,
10498 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10499 # PRId64
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10501 $as_echo_n "checking for inttypes.h... " >&6; }
10502 if ${gcc_cv_header_inttypes_h+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 #define __STDC_FORMAT_MACROS
10508 #include <sys/types.h>
10509 #include <inttypes.h>
10511 main ()
10513 intmax_t i = -1;
10514 #ifndef PRId64
10515 choke me
10516 #endif
10518 return 0;
10520 _ACEOF
10521 if ac_fn_cxx_try_compile "$LINENO"; then :
10522 gcc_cv_header_inttypes_h=yes
10523 else
10524 gcc_cv_header_inttypes_h=no
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10530 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10531 if test $gcc_cv_header_inttypes_h = yes; then
10533 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10537 # Look for the ZSTD package.
10538 ZSTD_INCLUDE=
10539 ZSTD_LIB=
10542 ZSTD_CPPFLAGS=
10543 ZSTD_LDFLAGS=
10547 # Check whether --with-zstd was given.
10548 if test "${with_zstd+set}" = set; then :
10549 withval=$with_zstd;
10553 # Check whether --with-zstd-include was given.
10554 if test "${with_zstd_include+set}" = set; then :
10555 withval=$with_zstd_include;
10559 # Check whether --with-zstd-lib was given.
10560 if test "${with_zstd_lib+set}" = set; then :
10561 withval=$with_zstd_lib;
10564 case "x$with_zstd" in
10565 x) ;;
10566 xno)
10567 ZSTD_INCLUDE=
10568 ZSTD_LIB=
10570 *) ZSTD_INCLUDE=$with_zstd/include
10571 ZSTD_LIB=$with_zstd/lib
10573 esac
10575 if test "x$with_zstd" != xno; then
10576 if test "x$with_zstd_include" != x; then
10577 ZSTD_INCLUDE=$with_zstd_include
10579 if test "x$with_zstd_lib" != x; then
10580 ZSTD_LIB=$with_zstd_lib
10582 if test "x$ZSTD_INCLUDE" != x \
10583 && test "x$ZSTD_INCLUDE" != xno; then
10584 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10586 if test "x$ZSTD_LIB" != x \
10587 && test "x$ZSTD_LIB" != xno; then
10588 ZSTD_LDFLAGS=-L$ZSTD_LIB
10591 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10592 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10595 $as_echo_n "checking for zstd.h... " >&6; }
10596 if ${gcc_cv_header_zstd_h+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 # We require version 1.3.0 or later. This is the first version that has
10600 # ZSTD_getFrameContentSize.
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #include <zstd.h>
10604 #if ZSTD_VERSION_NUMBER < 10300
10605 #error "need zstd 1.3.0 or better"
10606 #endif
10608 main ()
10612 return 0;
10614 _ACEOF
10615 if ac_fn_cxx_try_compile "$LINENO"; then :
10616 gcc_cv_header_zstd_h=yes
10617 else
10618 gcc_cv_header_zstd_h=no
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10624 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10625 if test $gcc_cv_header_zstd_h = yes; then
10627 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10629 elif test "x$with_zstd" != x; then
10630 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10633 # LTO can use zstd compression algorithm
10634 save_LIBS="$LIBS"
10635 LIBS=
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10637 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10638 if ${ac_cv_search_ZSTD_compress+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 ac_func_search_save_LIBS=$LIBS
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 char ZSTD_compress ();
10653 main ()
10655 return ZSTD_compress ();
10657 return 0;
10659 _ACEOF
10660 for ac_lib in '' zstd; do
10661 if test -z "$ac_lib"; then
10662 ac_res="none required"
10663 else
10664 ac_res=-l$ac_lib
10665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10667 if ac_fn_cxx_try_link "$LINENO"; then :
10668 ac_cv_search_ZSTD_compress=$ac_res
10670 rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext
10672 if ${ac_cv_search_ZSTD_compress+:} false; then :
10673 break
10675 done
10676 if ${ac_cv_search_ZSTD_compress+:} false; then :
10678 else
10679 ac_cv_search_ZSTD_compress=no
10681 rm conftest.$ac_ext
10682 LIBS=$ac_func_search_save_LIBS
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10685 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10686 ac_res=$ac_cv_search_ZSTD_compress
10687 if test "$ac_res" != no; then :
10688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10692 ZSTD_LIB="$LIBS"
10693 LIBS="$save_LIBS"
10699 for ac_func in times clock kill getrlimit setrlimit atoq \
10700 popen sysconf strsignal getrusage nl_langinfo \
10701 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10702 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat getauxval
10703 do :
10704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10705 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10707 cat >>confdefs.h <<_ACEOF
10708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10709 _ACEOF
10712 done
10715 if test x$ac_cv_func_mbstowcs = xyes; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10717 $as_echo_n "checking whether mbstowcs works... " >&6; }
10718 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 if test "$cross_compiling" = yes; then :
10722 gcc_cv_func_mbstowcs_works=yes
10723 else
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 #include <stdlib.h>
10727 int main()
10729 mbstowcs(0, "", 0);
10730 return 0;
10732 _ACEOF
10733 if ac_fn_cxx_try_run "$LINENO"; then :
10734 gcc_cv_func_mbstowcs_works=yes
10735 else
10736 gcc_cv_func_mbstowcs_works=no
10738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10739 conftest.$ac_objext conftest.beam conftest.$ac_ext
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10744 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10745 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10747 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10752 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10753 if test "x$ac_cv_type_ssize_t" = xyes; then :
10755 else
10757 cat >>confdefs.h <<_ACEOF
10758 #define ssize_t int
10759 _ACEOF
10763 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10764 if test "x$ac_cv_type_caddr_t" = xyes; then :
10766 else
10768 cat >>confdefs.h <<_ACEOF
10769 #define caddr_t char *
10770 _ACEOF
10774 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10776 if test "x$ac_cv_type_sighander_t" = xyes; then :
10778 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10784 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10785 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10786 gcc_header_sys_mman_h=yes
10787 else
10788 gcc_header_sys_mman_h=no
10791 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10792 if test "x$ac_cv_func_mmap" = xyes; then :
10793 gcc_func_mmap=yes
10794 else
10795 gcc_func_mmap=no
10798 if test "$gcc_header_sys_mman_h" != yes \
10799 || test "$gcc_func_mmap" != yes; then
10800 gcc_cv_func_mmap_file=no
10801 gcc_cv_func_mmap_dev_zero=no
10802 gcc_cv_func_mmap_anon=no
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10805 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10806 if ${gcc_cv_func_mmap_file+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 # Add a system to this blacklist if
10810 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10811 # memory area containing the same data that you'd get if you applied
10812 # read() to the same fd. The only system known to have a problem here
10813 # is VMS, where text files have record structure.
10814 case "$host_os" in
10815 *vms* | ultrix*)
10816 gcc_cv_func_mmap_file=no ;;
10818 gcc_cv_func_mmap_file=yes;;
10819 esac
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10822 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10824 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10825 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 # Add a system to this blacklist if it has mmap() but /dev/zero
10829 # does not exist, or if mmapping /dev/zero does not give anonymous
10830 # zeroed pages with both the following properties:
10831 # 1. If you map N consecutive pages in with one call, and then
10832 # unmap any subset of those pages, the pages that were not
10833 # explicitly unmapped remain accessible.
10834 # 2. If you map two adjacent blocks of memory and then unmap them
10835 # both at once, they must both go away.
10836 # Systems known to be in this category are Windows (all variants),
10837 # VMS, and Darwin.
10838 case "$host_os" in
10839 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10840 gcc_cv_func_mmap_dev_zero=no ;;
10842 gcc_cv_func_mmap_dev_zero=yes;;
10843 esac
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10846 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10848 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10850 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10851 if ${gcc_cv_decl_map_anon+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 #include <sys/types.h>
10857 #include <sys/mman.h>
10858 #include <unistd.h>
10860 #ifndef MAP_ANONYMOUS
10861 #define MAP_ANONYMOUS MAP_ANON
10862 #endif
10865 main ()
10867 int n = MAP_ANONYMOUS;
10869 return 0;
10871 _ACEOF
10872 if ac_fn_cxx_try_compile "$LINENO"; then :
10873 gcc_cv_decl_map_anon=yes
10874 else
10875 gcc_cv_decl_map_anon=no
10877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10880 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10882 if test $gcc_cv_decl_map_anon = no; then
10883 gcc_cv_func_mmap_anon=no
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10886 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10887 if ${gcc_cv_func_mmap_anon+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10891 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10892 # doesn't give anonymous zeroed pages with the same properties listed
10893 # above for use of /dev/zero.
10894 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10895 case "$host_os" in
10896 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10897 gcc_cv_func_mmap_anon=no ;;
10899 gcc_cv_func_mmap_anon=yes;;
10900 esac
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10903 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10907 if test $gcc_cv_func_mmap_file = yes; then
10909 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10912 if test $gcc_cv_func_mmap_dev_zero = yes; then
10914 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10917 if test $gcc_cv_func_mmap_anon = yes; then
10919 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10924 case "${host}" in
10925 *-*-*vms*)
10926 # Under VMS, vfork works very differently than on Unix. The standard test
10927 # won't work, and it isn't easily adaptable. It makes more sense to
10928 # just force it.
10929 ac_cv_func_vfork_works=yes
10931 esac
10932 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10933 if test "x$ac_cv_type_pid_t" = xyes; then :
10935 else
10937 cat >>confdefs.h <<_ACEOF
10938 #define pid_t int
10939 _ACEOF
10943 for ac_header in vfork.h
10944 do :
10945 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10946 if test "x$ac_cv_header_vfork_h" = xyes; then :
10947 cat >>confdefs.h <<_ACEOF
10948 #define HAVE_VFORK_H 1
10949 _ACEOF
10952 done
10954 for ac_func in fork vfork
10955 do :
10956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10958 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10959 cat >>confdefs.h <<_ACEOF
10960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10961 _ACEOF
10964 done
10966 if test "x$ac_cv_func_fork" = xyes; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10968 $as_echo_n "checking for working fork... " >&6; }
10969 if ${ac_cv_func_fork_works+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 if test "$cross_compiling" = yes; then :
10973 ac_cv_func_fork_works=cross
10974 else
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977 $ac_includes_default
10979 main ()
10982 /* By Ruediger Kuhlmann. */
10983 return fork () < 0;
10986 return 0;
10988 _ACEOF
10989 if ac_fn_cxx_try_run "$LINENO"; then :
10990 ac_cv_func_fork_works=yes
10991 else
10992 ac_cv_func_fork_works=no
10994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10995 conftest.$ac_objext conftest.beam conftest.$ac_ext
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11000 $as_echo "$ac_cv_func_fork_works" >&6; }
11002 else
11003 ac_cv_func_fork_works=$ac_cv_func_fork
11005 if test "x$ac_cv_func_fork_works" = xcross; then
11006 case $host in
11007 *-*-amigaos* | *-*-msdosdjgpp*)
11008 # Override, as these systems have only a dummy fork() stub
11009 ac_cv_func_fork_works=no
11012 ac_cv_func_fork_works=yes
11014 esac
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11016 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11018 ac_cv_func_vfork_works=$ac_cv_func_vfork
11019 if test "x$ac_cv_func_vfork" = xyes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11021 $as_echo_n "checking for working vfork... " >&6; }
11022 if ${ac_cv_func_vfork_works+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 if test "$cross_compiling" = yes; then :
11026 ac_cv_func_vfork_works=cross
11027 else
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 /* Thanks to Paul Eggert for this test. */
11031 $ac_includes_default
11032 #include <sys/wait.h>
11033 #ifdef HAVE_VFORK_H
11034 # include <vfork.h>
11035 #endif
11036 /* On some sparc systems, changes by the child to local and incoming
11037 argument registers are propagated back to the parent. The compiler
11038 is told about this with #include <vfork.h>, but some compilers
11039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11040 static variable whose address is put into a register that is
11041 clobbered by the vfork. */
11042 static void
11043 #ifdef __cplusplus
11044 sparc_address_test (int arg)
11045 # else
11046 sparc_address_test (arg) int arg;
11047 #endif
11049 static pid_t child;
11050 if (!child) {
11051 child = vfork ();
11052 if (child < 0) {
11053 perror ("vfork");
11054 _exit(2);
11056 if (!child) {
11057 arg = getpid();
11058 write(-1, "", 0);
11059 _exit (arg);
11065 main ()
11067 pid_t parent = getpid ();
11068 pid_t child;
11070 sparc_address_test (0);
11072 child = vfork ();
11074 if (child == 0) {
11075 /* Here is another test for sparc vfork register problems. This
11076 test uses lots of local variables, at least as many local
11077 variables as main has allocated so far including compiler
11078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11080 reuse the register of parent for one of the local variables,
11081 since it will think that parent can't possibly be used any more
11082 in this routine. Assigning to the local variable will thus
11083 munge parent in the parent process. */
11084 pid_t
11085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11087 /* Convince the compiler that p..p7 are live; otherwise, it might
11088 use the same hardware register for all 8 local variables. */
11089 if (p != p1 || p != p2 || p != p3 || p != p4
11090 || p != p5 || p != p6 || p != p7)
11091 _exit(1);
11093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11094 from child file descriptors. If the child closes a descriptor
11095 before it execs or exits, this munges the parent's descriptor
11096 as well. Test for this by closing stdout in the child. */
11097 _exit(close(fileno(stdout)) != 0);
11098 } else {
11099 int status;
11100 struct stat st;
11102 while (wait(&status) != child)
11104 return (
11105 /* Was there some problem with vforking? */
11106 child < 0
11108 /* Did the child fail? (This shouldn't happen.) */
11109 || status
11111 /* Did the vfork/compiler bug occur? */
11112 || parent != getpid()
11114 /* Did the file descriptor bug occur? */
11115 || fstat(fileno(stdout), &st) != 0
11119 _ACEOF
11120 if ac_fn_cxx_try_run "$LINENO"; then :
11121 ac_cv_func_vfork_works=yes
11122 else
11123 ac_cv_func_vfork_works=no
11125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11126 conftest.$ac_objext conftest.beam conftest.$ac_ext
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11131 $as_echo "$ac_cv_func_vfork_works" >&6; }
11134 if test "x$ac_cv_func_fork_works" = xcross; then
11135 ac_cv_func_vfork_works=$ac_cv_func_vfork
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11137 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11140 if test "x$ac_cv_func_vfork_works" = xyes; then
11142 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11144 else
11146 $as_echo "#define vfork fork" >>confdefs.h
11149 if test "x$ac_cv_func_fork_works" = xyes; then
11151 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11157 if test "X$prefix" = "XNONE"; then
11158 acl_final_prefix="$ac_default_prefix"
11159 else
11160 acl_final_prefix="$prefix"
11162 if test "X$exec_prefix" = "XNONE"; then
11163 acl_final_exec_prefix='${prefix}'
11164 else
11165 acl_final_exec_prefix="$exec_prefix"
11167 acl_save_prefix="$prefix"
11168 prefix="$acl_final_prefix"
11169 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11170 prefix="$acl_save_prefix"
11173 # Check whether --with-gnu-ld was given.
11174 if test "${with_gnu_ld+set}" = set; then :
11175 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11176 else
11177 with_gnu_ld=no
11180 # Prepare PATH_SEPARATOR.
11181 # The user is always right.
11182 if test "${PATH_SEPARATOR+set}" != set; then
11183 echo "#! /bin/sh" >conf$$.sh
11184 echo "exit 0" >>conf$$.sh
11185 chmod +x conf$$.sh
11186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11187 PATH_SEPARATOR=';'
11188 else
11189 PATH_SEPARATOR=:
11191 rm -f conf$$.sh
11193 ac_prog=ld
11194 if test "$GCC" = yes; then
11195 # Check if gcc -print-prog-name=ld gives a path.
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11197 $as_echo_n "checking for ld used by GCC... " >&6; }
11198 case $host in
11199 *-*-mingw*)
11200 # gcc leaves a trailing carriage return which upsets mingw
11201 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11203 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11204 esac
11205 case $ac_prog in
11206 # Accept absolute paths.
11207 [\\/]* | [A-Za-z]:[\\/]*)
11208 re_direlt='/[^/][^/]*/\.\./'
11209 # Canonicalize the path of ld
11210 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11211 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11212 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11213 done
11214 test -z "$LD" && LD="$ac_prog"
11217 # If it fails, then pretend we aren't using GCC.
11218 ac_prog=ld
11221 # If it is relative, then search for the first ld in PATH.
11222 with_gnu_ld=unknown
11224 esac
11225 elif test "$with_gnu_ld" = yes; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11227 $as_echo_n "checking for GNU ld... " >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11230 $as_echo_n "checking for non-GNU ld... " >&6; }
11232 if ${acl_cv_path_LD+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 if test -z "$LD"; then
11236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11237 for ac_dir in $PATH; do
11238 test -z "$ac_dir" && ac_dir=.
11239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11240 acl_cv_path_LD="$ac_dir/$ac_prog"
11241 # Check to see if the program is GNU ld. I'd rather use --version,
11242 # but apparently some GNU ld's only accept -v.
11243 # Break only if it was the GNU/non-GNU ld that we prefer.
11244 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11245 test "$with_gnu_ld" != no && break
11246 else
11247 test "$with_gnu_ld" != yes && break
11250 done
11251 IFS="$ac_save_ifs"
11252 else
11253 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11257 LD="$acl_cv_path_LD"
11258 if test -n "$LD"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11260 $as_echo "$LD" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11265 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11268 if ${acl_cv_prog_gnu_ld+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11272 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11273 acl_cv_prog_gnu_ld=yes
11274 else
11275 acl_cv_prog_gnu_ld=no
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11279 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11280 with_gnu_ld=$acl_cv_prog_gnu_ld
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11285 $as_echo_n "checking for shared library run path origin... " >&6; }
11286 if ${acl_cv_rpath+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11290 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11292 . ./conftest.sh
11293 rm -f ./conftest.sh
11294 acl_cv_rpath=done
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11298 $as_echo "$acl_cv_rpath" >&6; }
11299 wl="$acl_cv_wl"
11300 libext="$acl_cv_libext"
11301 shlibext="$acl_cv_shlibext"
11302 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11303 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11304 hardcode_direct="$acl_cv_hardcode_direct"
11305 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11306 # Check whether --enable-rpath was given.
11307 if test "${enable_rpath+set}" = set; then :
11308 enableval=$enable_rpath; :
11309 else
11310 enable_rpath=yes
11320 use_additional=yes
11322 acl_save_prefix="$prefix"
11323 prefix="$acl_final_prefix"
11324 acl_save_exec_prefix="$exec_prefix"
11325 exec_prefix="$acl_final_exec_prefix"
11327 eval additional_includedir=\"$includedir\"
11328 eval additional_libdir=\"$libdir\"
11330 exec_prefix="$acl_save_exec_prefix"
11331 prefix="$acl_save_prefix"
11334 # Check whether --with-libiconv-prefix was given.
11335 if test "${with_libiconv_prefix+set}" = set; then :
11336 withval=$with_libiconv_prefix;
11337 if test "X$withval" = "Xno"; then
11338 use_additional=no
11339 else
11340 if test "X$withval" = "X"; then
11342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11347 eval additional_includedir=\"$includedir\"
11348 eval additional_libdir=\"$libdir\"
11350 exec_prefix="$acl_save_exec_prefix"
11351 prefix="$acl_save_prefix"
11353 else
11354 additional_includedir="$withval/include"
11355 additional_libdir="$withval/lib"
11362 # Check whether --with-libiconv-type was given.
11363 if test "${with_libiconv_type+set}" = set; then :
11364 withval=$with_libiconv_type; with_libiconv_type=$withval
11365 else
11366 with_libiconv_type=auto
11369 lib_type=`eval echo \$with_libiconv_type`
11371 LIBICONV=
11372 LTLIBICONV=
11373 INCICONV=
11374 rpathdirs=
11375 ltrpathdirs=
11376 names_already_handled=
11377 names_next_round='iconv '
11378 while test -n "$names_next_round"; do
11379 names_this_round="$names_next_round"
11380 names_next_round=
11381 for name in $names_this_round; do
11382 already_handled=
11383 for n in $names_already_handled; do
11384 if test "$n" = "$name"; then
11385 already_handled=yes
11386 break
11388 done
11389 if test -z "$already_handled"; then
11390 names_already_handled="$names_already_handled $name"
11391 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11392 eval value=\"\$HAVE_LIB$uppername\"
11393 if test -n "$value"; then
11394 if test "$value" = yes; then
11395 eval value=\"\$LIB$uppername\"
11396 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11397 eval value=\"\$LTLIB$uppername\"
11398 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11399 else
11402 else
11403 found_dir=
11404 found_la=
11405 found_so=
11406 found_a=
11407 if test $use_additional = yes; then
11408 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11409 found_dir="$additional_libdir"
11410 found_so="$additional_libdir/lib$name.$shlibext"
11411 if test -f "$additional_libdir/lib$name.la"; then
11412 found_la="$additional_libdir/lib$name.la"
11414 elif test x$lib_type != xshared; then
11415 if test -f "$additional_libdir/lib$name.$libext"; then
11416 found_dir="$additional_libdir"
11417 found_a="$additional_libdir/lib$name.$libext"
11418 if test -f "$additional_libdir/lib$name.la"; then
11419 found_la="$additional_libdir/lib$name.la"
11424 if test "X$found_dir" = "X"; then
11425 for x in $LDFLAGS $LTLIBICONV; do
11427 acl_save_prefix="$prefix"
11428 prefix="$acl_final_prefix"
11429 acl_save_exec_prefix="$exec_prefix"
11430 exec_prefix="$acl_final_exec_prefix"
11431 eval x=\"$x\"
11432 exec_prefix="$acl_save_exec_prefix"
11433 prefix="$acl_save_prefix"
11435 case "$x" in
11436 -L*)
11437 dir=`echo "X$x" | sed -e 's/^X-L//'`
11438 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11439 found_dir="$dir"
11440 found_so="$dir/lib$name.$shlibext"
11441 if test -f "$dir/lib$name.la"; then
11442 found_la="$dir/lib$name.la"
11444 elif test x$lib_type != xshared; then
11445 if test -f "$dir/lib$name.$libext"; then
11446 found_dir="$dir"
11447 found_a="$dir/lib$name.$libext"
11448 if test -f "$dir/lib$name.la"; then
11449 found_la="$dir/lib$name.la"
11454 esac
11455 if test "X$found_dir" != "X"; then
11456 break
11458 done
11460 if test "X$found_dir" != "X"; then
11461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11462 if test "X$found_so" != "X"; then
11463 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11465 else
11466 haveit=
11467 for x in $ltrpathdirs; do
11468 if test "X$x" = "X$found_dir"; then
11469 haveit=yes
11470 break
11472 done
11473 if test -z "$haveit"; then
11474 ltrpathdirs="$ltrpathdirs $found_dir"
11476 if test "$hardcode_direct" = yes; then
11477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11478 else
11479 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11481 haveit=
11482 for x in $rpathdirs; do
11483 if test "X$x" = "X$found_dir"; then
11484 haveit=yes
11485 break
11487 done
11488 if test -z "$haveit"; then
11489 rpathdirs="$rpathdirs $found_dir"
11491 else
11492 haveit=
11493 for x in $LDFLAGS $LIBICONV; do
11495 acl_save_prefix="$prefix"
11496 prefix="$acl_final_prefix"
11497 acl_save_exec_prefix="$exec_prefix"
11498 exec_prefix="$acl_final_exec_prefix"
11499 eval x=\"$x\"
11500 exec_prefix="$acl_save_exec_prefix"
11501 prefix="$acl_save_prefix"
11503 if test "X$x" = "X-L$found_dir"; then
11504 haveit=yes
11505 break
11507 done
11508 if test -z "$haveit"; then
11509 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11511 if test "$hardcode_minus_L" != no; then
11512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11513 else
11514 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11519 else
11520 if test "X$found_a" != "X"; then
11521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11522 else
11523 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11526 additional_includedir=
11527 case "$found_dir" in
11528 */lib | */lib/)
11529 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11530 additional_includedir="$basedir/include"
11532 esac
11533 if test "X$additional_includedir" != "X"; then
11534 if test "X$additional_includedir" != "X/usr/include"; then
11535 haveit=
11536 if test "X$additional_includedir" = "X/usr/local/include"; then
11537 if test -n "$GCC"; then
11538 case $host_os in
11539 linux*) haveit=yes;;
11540 esac
11543 if test -z "$haveit"; then
11544 for x in $CPPFLAGS $INCICONV; do
11546 acl_save_prefix="$prefix"
11547 prefix="$acl_final_prefix"
11548 acl_save_exec_prefix="$exec_prefix"
11549 exec_prefix="$acl_final_exec_prefix"
11550 eval x=\"$x\"
11551 exec_prefix="$acl_save_exec_prefix"
11552 prefix="$acl_save_prefix"
11554 if test "X$x" = "X-I$additional_includedir"; then
11555 haveit=yes
11556 break
11558 done
11559 if test -z "$haveit"; then
11560 if test -d "$additional_includedir"; then
11561 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11567 if test -n "$found_la"; then
11568 save_libdir="$libdir"
11569 case "$found_la" in
11570 */* | *\\*) . "$found_la" ;;
11571 *) . "./$found_la" ;;
11572 esac
11573 libdir="$save_libdir"
11574 for dep in $dependency_libs; do
11575 case "$dep" in
11576 -L*)
11577 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11578 if test "X$additional_libdir" != "X/usr/lib"; then
11579 haveit=
11580 if test "X$additional_libdir" = "X/usr/local/lib"; then
11581 if test -n "$GCC"; then
11582 case $host_os in
11583 linux*) haveit=yes;;
11584 esac
11587 if test -z "$haveit"; then
11588 haveit=
11589 for x in $LDFLAGS $LIBICONV; do
11591 acl_save_prefix="$prefix"
11592 prefix="$acl_final_prefix"
11593 acl_save_exec_prefix="$exec_prefix"
11594 exec_prefix="$acl_final_exec_prefix"
11595 eval x=\"$x\"
11596 exec_prefix="$acl_save_exec_prefix"
11597 prefix="$acl_save_prefix"
11599 if test "X$x" = "X-L$additional_libdir"; then
11600 haveit=yes
11601 break
11603 done
11604 if test -z "$haveit"; then
11605 if test -d "$additional_libdir"; then
11606 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11609 haveit=
11610 for x in $LDFLAGS $LTLIBICONV; do
11612 acl_save_prefix="$prefix"
11613 prefix="$acl_final_prefix"
11614 acl_save_exec_prefix="$exec_prefix"
11615 exec_prefix="$acl_final_exec_prefix"
11616 eval x=\"$x\"
11617 exec_prefix="$acl_save_exec_prefix"
11618 prefix="$acl_save_prefix"
11620 if test "X$x" = "X-L$additional_libdir"; then
11621 haveit=yes
11622 break
11624 done
11625 if test -z "$haveit"; then
11626 if test -d "$additional_libdir"; then
11627 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11633 -R*)
11634 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11635 if test "$enable_rpath" != no; then
11636 haveit=
11637 for x in $rpathdirs; do
11638 if test "X$x" = "X$dir"; then
11639 haveit=yes
11640 break
11642 done
11643 if test -z "$haveit"; then
11644 rpathdirs="$rpathdirs $dir"
11646 haveit=
11647 for x in $ltrpathdirs; do
11648 if test "X$x" = "X$dir"; then
11649 haveit=yes
11650 break
11652 done
11653 if test -z "$haveit"; then
11654 ltrpathdirs="$ltrpathdirs $dir"
11658 -l*)
11659 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11661 *.la)
11662 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11665 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11668 esac
11669 done
11671 else
11672 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11673 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11675 else
11676 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11677 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11682 done
11683 done
11684 if test "X$rpathdirs" != "X"; then
11685 if test -n "$hardcode_libdir_separator"; then
11686 alldirs=
11687 for found_dir in $rpathdirs; do
11688 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11689 done
11690 acl_save_libdir="$libdir"
11691 libdir="$alldirs"
11692 eval flag=\"$hardcode_libdir_flag_spec\"
11693 libdir="$acl_save_libdir"
11694 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11695 else
11696 for found_dir in $rpathdirs; do
11697 acl_save_libdir="$libdir"
11698 libdir="$found_dir"
11699 eval flag=\"$hardcode_libdir_flag_spec\"
11700 libdir="$acl_save_libdir"
11701 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11702 done
11705 if test "X$ltrpathdirs" != "X"; then
11706 for found_dir in $ltrpathdirs; do
11707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11708 done
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11718 $as_echo_n "checking for iconv... " >&6; }
11719 if ${am_cv_func_iconv+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11723 am_cv_func_iconv="no, consider installing GNU libiconv"
11724 am_cv_lib_iconv=no
11725 am_save_CPPFLAGS="$CPPFLAGS"
11726 CPPFLAGS="$CPPFLAGS $INCICONV"
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 #include <stdlib.h>
11730 #include <iconv.h>
11732 main ()
11734 iconv_t cd = iconv_open("","");
11735 iconv(cd,NULL,NULL,NULL,NULL);
11736 iconv_close(cd);
11738 return 0;
11740 _ACEOF
11741 if ac_fn_cxx_try_link "$LINENO"; then :
11742 am_cv_func_iconv=yes
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 CPPFLAGS="$am_save_CPPFLAGS"
11748 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11749 for _libs in .libs _libs; do
11750 am_save_CPPFLAGS="$CPPFLAGS"
11751 am_save_LIBS="$LIBS"
11752 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11753 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #include <stdlib.h>
11757 #include <iconv.h>
11759 main ()
11761 iconv_t cd = iconv_open("","");
11762 iconv(cd,NULL,NULL,NULL,NULL);
11763 iconv_close(cd);
11765 return 0;
11767 _ACEOF
11768 if ac_fn_cxx_try_link "$LINENO"; then :
11769 INCICONV="-I../libiconv/include"
11770 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11771 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11772 am_cv_lib_iconv=yes
11773 am_cv_func_iconv=yes
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 CPPFLAGS="$am_save_CPPFLAGS"
11778 LIBS="$am_save_LIBS"
11779 if test "$am_cv_func_iconv" = "yes"; then
11780 break
11782 done
11785 if test "$am_cv_func_iconv" != yes; then
11786 am_save_CPPFLAGS="$CPPFLAGS"
11787 am_save_LIBS="$LIBS"
11788 CPPFLAGS="$CPPFLAGS $INCICONV"
11789 LIBS="$LIBS $LIBICONV"
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #include <stdlib.h>
11793 #include <iconv.h>
11795 main ()
11797 iconv_t cd = iconv_open("","");
11798 iconv(cd,NULL,NULL,NULL,NULL);
11799 iconv_close(cd);
11801 return 0;
11803 _ACEOF
11804 if ac_fn_cxx_try_link "$LINENO"; then :
11805 am_cv_lib_iconv=yes
11806 am_cv_func_iconv=yes
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 CPPFLAGS="$am_save_CPPFLAGS"
11811 LIBS="$am_save_LIBS"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11816 $as_echo "$am_cv_func_iconv" >&6; }
11817 if test "$am_cv_func_iconv" = yes; then
11819 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11822 if test "$am_cv_lib_iconv" = yes; then
11824 for element in $INCICONV; do
11825 haveit=
11826 for x in $CPPFLAGS; do
11828 acl_save_prefix="$prefix"
11829 prefix="$acl_final_prefix"
11830 acl_save_exec_prefix="$exec_prefix"
11831 exec_prefix="$acl_final_exec_prefix"
11832 eval x=\"$x\"
11833 exec_prefix="$acl_save_exec_prefix"
11834 prefix="$acl_save_prefix"
11836 if test "X$x" = "X$element"; then
11837 haveit=yes
11838 break
11840 done
11841 if test -z "$haveit"; then
11842 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11844 done
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11847 $as_echo_n "checking how to link with libiconv... " >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11849 $as_echo "$LIBICONV" >&6; }
11850 else
11851 LIBICONV=
11852 LTLIBICONV=
11857 if test "$am_cv_func_iconv" = yes; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11859 $as_echo_n "checking for iconv declaration... " >&6; }
11860 if ${am_cv_proto_iconv+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 #include <stdlib.h>
11868 #include <iconv.h>
11869 extern
11870 #ifdef __cplusplus
11872 #endif
11873 #if defined(__STDC__) || defined(__cplusplus)
11874 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11875 #else
11876 size_t iconv();
11877 #endif
11880 main ()
11884 return 0;
11886 _ACEOF
11887 if ac_fn_cxx_try_compile "$LINENO"; then :
11888 am_cv_proto_iconv_arg1=""
11889 else
11890 am_cv_proto_iconv_arg1="const"
11892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 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);"
11896 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11898 }$am_cv_proto_iconv" >&5
11899 $as_echo "${ac_t:-
11900 }$am_cv_proto_iconv" >&6; }
11902 cat >>confdefs.h <<_ACEOF
11903 #define ICONV_CONST $am_cv_proto_iconv_arg1
11904 _ACEOF
11909 # Until we have in-tree GNU iconv:
11910 LIBICONV_DEP=
11911 if test -f "$LTLIBICONV"; then
11912 LIBICONV_DEP=$LTLIBICONV
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11918 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11919 if ${am_cv_val_LC_MESSAGES+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <locale.h>
11926 main ()
11928 return LC_MESSAGES
11930 return 0;
11932 _ACEOF
11933 if ac_fn_cxx_try_link "$LINENO"; then :
11934 am_cv_val_LC_MESSAGES=yes
11935 else
11936 am_cv_val_LC_MESSAGES=no
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11942 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11943 if test $am_cv_val_LC_MESSAGES = yes; then
11945 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11953 if ${am_cv_langinfo_codeset+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 #include <langinfo.h>
11960 main ()
11962 char* cs = nl_langinfo(CODESET);
11964 return 0;
11966 _ACEOF
11967 if ac_fn_cxx_try_link "$LINENO"; then :
11968 am_cv_langinfo_codeset=yes
11969 else
11970 am_cv_langinfo_codeset=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11977 $as_echo "$am_cv_langinfo_codeset" >&6; }
11978 if test $am_cv_langinfo_codeset = yes; then
11980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11985 # We will need to find libiberty.h and ansidecl.h
11986 saved_CFLAGS="$CFLAGS"
11987 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11988 saved_CXXFLAGS="$CXXFLAGS"
11989 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11991 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11992 # normal autoconf function for these. But force definition of
11993 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11994 # basename handling in libiberty.h.
11995 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11996 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11997 #undef HAVE_DECL_BASENAME
11998 #define HAVE_DECL_BASENAME 1
11999 #include \"ansidecl.h\"
12000 #include \"system.h\"
12002 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12003 ac_have_decl=1
12004 else
12005 ac_have_decl=0
12008 cat >>confdefs.h <<_ACEOF
12009 #define HAVE_DECL_BASENAME $ac_have_decl
12010 _ACEOF
12011 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12012 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12013 #undef HAVE_DECL_BASENAME
12014 #define HAVE_DECL_BASENAME 1
12015 #include \"ansidecl.h\"
12016 #include \"system.h\"
12018 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12019 ac_have_decl=1
12020 else
12021 ac_have_decl=0
12024 cat >>confdefs.h <<_ACEOF
12025 #define HAVE_DECL_STRSTR $ac_have_decl
12026 _ACEOF
12029 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12030 madvise stpcpy strnlen strsignal strverscmp \
12031 strtol strtoul strtoll strtoull setenv unsetenv \
12032 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12033 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
12035 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12037 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12038 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 #undef $ac_tr_decl
12044 #define $ac_tr_decl 1
12046 #include "ansidecl.h"
12047 #include "system.h"
12050 main ()
12052 #ifndef $ac_func
12053 char *(*pfn) = (char *(*)) $ac_func ;
12054 #endif
12056 return 0;
12058 _ACEOF
12059 if ac_fn_cxx_try_compile "$LINENO"; then :
12060 eval "gcc_cv_have_decl_$ac_func=yes"
12061 else
12062 eval "gcc_cv_have_decl_$ac_func=no"
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12070 #define $ac_tr_decl 1
12071 _ACEOF
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12076 #define $ac_tr_decl 0
12077 _ACEOF
12081 done
12084 for ac_func in getrlimit setrlimit getrusage
12086 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12088 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12089 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 #undef $ac_tr_decl
12095 #define $ac_tr_decl 1
12097 #include "ansidecl.h"
12098 #include "system.h"
12099 #ifdef HAVE_SYS_RESOURCE_H
12100 #include <sys/resource.h>
12101 #endif
12105 main ()
12107 #ifndef $ac_func
12108 char *(*pfn) = (char *(*)) $ac_func ;
12109 #endif
12111 return 0;
12113 _ACEOF
12114 if ac_fn_cxx_try_compile "$LINENO"; then :
12115 eval "gcc_cv_have_decl_$ac_func=yes"
12116 else
12117 eval "gcc_cv_have_decl_$ac_func=no"
12119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12124 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12125 #define $ac_tr_decl 1
12126 _ACEOF
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12131 #define $ac_tr_decl 0
12132 _ACEOF
12136 done
12139 for ac_func in mallinfo mallinfo2
12141 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12143 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12144 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #undef $ac_tr_decl
12150 #define $ac_tr_decl 1
12152 #include "ansidecl.h"
12153 #include "system.h"
12154 #ifdef HAVE_MALLOC_H
12155 #include <malloc.h>
12156 #endif
12160 main ()
12162 #ifndef $ac_func
12163 char *(*pfn) = (char *(*)) $ac_func ;
12164 #endif
12166 return 0;
12168 _ACEOF
12169 if ac_fn_cxx_try_compile "$LINENO"; then :
12170 eval "gcc_cv_have_decl_$ac_func=yes"
12171 else
12172 eval "gcc_cv_have_decl_$ac_func=no"
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12179 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12180 #define $ac_tr_decl 1
12181 _ACEOF
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12186 #define $ac_tr_decl 0
12187 _ACEOF
12191 done
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12197 #include "ansidecl.h"
12198 #include "system.h"
12199 #ifdef HAVE_SYS_RESOURCE_H
12200 #include <sys/resource.h>
12201 #endif
12204 main ()
12206 rlim_t l = 0;
12208 return 0;
12210 _ACEOF
12211 if ac_fn_cxx_try_compile "$LINENO"; then :
12213 else
12215 $as_echo "#define rlim_t long" >>confdefs.h
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12221 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12222 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12223 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12224 for ac_func in ldgetname
12226 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12228 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12229 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 #undef $ac_tr_decl
12235 #define $ac_tr_decl 1
12237 #include "ansidecl.h"
12238 #include "system.h"
12239 #ifdef HAVE_LDFCN_H
12240 #undef FREAD
12241 #undef FWRITE
12242 #include <ldfcn.h>
12243 #endif
12247 main ()
12249 #ifndef $ac_func
12250 char *(*pfn) = (char *(*)) $ac_func ;
12251 #endif
12253 return 0;
12255 _ACEOF
12256 if ac_fn_cxx_try_compile "$LINENO"; then :
12257 eval "gcc_cv_have_decl_$ac_func=yes"
12258 else
12259 eval "gcc_cv_have_decl_$ac_func=no"
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12267 #define $ac_tr_decl 1
12268 _ACEOF
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12273 #define $ac_tr_decl 0
12274 _ACEOF
12278 done
12281 for ac_func in times
12283 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12285 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12286 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291 #undef $ac_tr_decl
12292 #define $ac_tr_decl 1
12294 #include "ansidecl.h"
12295 #include "system.h"
12296 #ifdef HAVE_SYS_TIMES_H
12297 #include <sys/times.h>
12298 #endif
12302 main ()
12304 #ifndef $ac_func
12305 char *(*pfn) = (char *(*)) $ac_func ;
12306 #endif
12308 return 0;
12310 _ACEOF
12311 if ac_fn_cxx_try_compile "$LINENO"; then :
12312 eval "gcc_cv_have_decl_$ac_func=yes"
12313 else
12314 eval "gcc_cv_have_decl_$ac_func=no"
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12322 #define $ac_tr_decl 1
12323 _ACEOF
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12328 #define $ac_tr_decl 0
12329 _ACEOF
12333 done
12336 for ac_func in sigaltstack
12338 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12340 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12341 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346 #undef $ac_tr_decl
12347 #define $ac_tr_decl 1
12349 #include "ansidecl.h"
12350 #include "system.h"
12351 #include <signal.h>
12355 main ()
12357 #ifndef $ac_func
12358 char *(*pfn) = (char *(*)) $ac_func ;
12359 #endif
12361 return 0;
12363 _ACEOF
12364 if ac_fn_cxx_try_compile "$LINENO"; then :
12365 eval "gcc_cv_have_decl_$ac_func=yes"
12366 else
12367 eval "gcc_cv_have_decl_$ac_func=no"
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12375 #define $ac_tr_decl 1
12376 _ACEOF
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12381 #define $ac_tr_decl 0
12382 _ACEOF
12386 done
12389 # More time-related stuff.
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12391 $as_echo_n "checking for struct tms... " >&6; }
12392 if ${ac_cv_struct_tms+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 #include "ansidecl.h"
12400 #include "system.h"
12401 #ifdef HAVE_SYS_TIMES_H
12402 #include <sys/times.h>
12403 #endif
12406 main ()
12408 struct tms tms;
12410 return 0;
12412 _ACEOF
12413 if ac_fn_cxx_try_compile "$LINENO"; then :
12414 ac_cv_struct_tms=yes
12415 else
12416 ac_cv_struct_tms=no
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12421 $as_echo "$ac_cv_struct_tms" >&6; }
12422 if test $ac_cv_struct_tms = yes; then
12424 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12428 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12429 # revisit after autoconf 2.50.
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12431 $as_echo_n "checking for clock_t... " >&6; }
12432 if ${gcc_cv_type_clock_t+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 #include "ansidecl.h"
12440 #include "system.h"
12443 main ()
12445 clock_t x;
12447 return 0;
12449 _ACEOF
12450 if ac_fn_cxx_try_compile "$LINENO"; then :
12451 gcc_cv_type_clock_t=yes
12452 else
12453 gcc_cv_type_clock_t=no
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12458 $as_echo "$gcc_cv_type_clock_t" >&6; }
12459 if test $gcc_cv_type_clock_t = yes; then
12461 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12465 # Check if F_SETLKW is supported by fcntl.
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12467 $as_echo_n "checking for F_SETLKW... " >&6; }
12468 if ${ac_cv_f_setlkw+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12475 #include <fcntl.h>
12477 main ()
12480 struct flock fl;
12481 fl.l_whence = 0;
12482 fl.l_start = 0;
12483 fl.l_len = 0;
12484 fl.l_pid = 0;
12485 return fcntl (1, F_SETLKW, &fl);
12487 return 0;
12489 _ACEOF
12490 if ac_fn_cxx_try_compile "$LINENO"; then :
12491 ac_cv_f_setlkw=yes
12492 else
12493 ac_cv_f_setlkw=no
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12498 $as_echo "$ac_cv_f_setlkw" >&6; }
12499 if test $ac_cv_f_setlkw = yes; then
12501 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12505 # Check if O_CLOEXEC is defined by fcntl
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12507 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12508 if ${ac_cv_o_cloexec+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12515 #include <fcntl.h>
12517 main ()
12520 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12522 return 0;
12524 _ACEOF
12525 if ac_fn_cxx_try_compile "$LINENO"; then :
12526 ac_cv_o_cloexec=yes
12527 else
12528 ac_cv_o_cloexec=no
12530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12533 $as_echo "$ac_cv_o_cloexec" >&6; }
12534 if test $ac_cv_o_cloexec = yes; then
12536 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12540 # Check if O_NONBLOCK is defined by fcntl
12541 for ac_header in fcntl.h
12542 do :
12543 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12544 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12545 cat >>confdefs.h <<_ACEOF
12546 #define HAVE_FCNTL_H 1
12547 _ACEOF
12550 done
12552 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12554 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12558 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12560 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12565 # C++ Modules would like some networking features to provide the mapping
12566 # server. You can still use modules without them though.
12567 # The following network-related checks could probably do with some
12568 # Windows and other non-linux defenses and checking.
12570 # Local socket connectivity wants AF_UNIX networking
12571 # Check for AF_UNIX networking
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12573 $as_echo_n "checking for AF_UNIX... " >&6; }
12574 if ${ac_cv_af_unix+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 #include <sys/types.h>
12582 #include <sys/socket.h>
12583 #include <sys/un.h>
12584 #include <netinet/in.h>
12586 main ()
12589 sockaddr_un un;
12590 un.sun_family = AF_UNSPEC;
12591 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12592 connect (fd, (sockaddr *)&un, sizeof (un));
12594 return 0;
12596 _ACEOF
12597 if ac_fn_cxx_try_compile "$LINENO"; then :
12598 ac_cv_af_unix=yes
12599 else
12600 ac_cv_af_unix=no
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12605 $as_echo "$ac_cv_af_unix" >&6; }
12606 if test $ac_cv_af_unix = yes; then
12608 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12612 # Remote socket connectivity wants AF_INET6 networking
12613 # Check for AF_INET6 networking
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12615 $as_echo_n "checking for AF_INET6... " >&6; }
12616 if ${ac_cv_af_inet6+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 #include <sys/types.h>
12624 #include <sys/socket.h>
12625 #include <netinet/in.h>
12626 #include <netdb.h>
12628 main ()
12631 sockaddr_in6 in6;
12632 in6.sin6_family = AF_UNSPEC;
12633 struct addrinfo *addrs = 0;
12634 struct addrinfo hints;
12635 hints.ai_flags = 0;
12636 hints.ai_family = AF_INET6;
12637 hints.ai_socktype = SOCK_STREAM;
12638 hints.ai_protocol = 0;
12639 hints.ai_canonname = 0;
12640 hints.ai_addr = 0;
12641 hints.ai_next = 0;
12642 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12643 const char *str = gai_strerror (e);
12644 freeaddrinfo (addrs);
12645 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12646 connect (fd, (sockaddr *)&in6, sizeof (in6));
12648 return 0;
12650 _ACEOF
12651 if ac_fn_cxx_try_compile "$LINENO"; then :
12652 ac_cv_af_inet6=yes
12653 else
12654 ac_cv_af_inet6=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12659 $as_echo "$ac_cv_af_inet6" >&6; }
12660 if test $ac_cv_af_inet6 = yes; then
12662 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12666 # Check if _LK_LOCK is supported by _locking
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12668 $as_echo_n "checking for _LK_LOCK... " >&6; }
12669 if ${ac_cv_lk_lock+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12676 #include <io.h>
12677 #include <sys/locking.h>
12679 main ()
12682 int fd;
12683 return _locking (fd, _LK_LOCK, 0);
12685 return 0;
12687 _ACEOF
12688 if ac_fn_cxx_try_compile "$LINENO"; then :
12689 ac_cv_lk_lock=yes
12690 else
12691 ac_cv_lk_lock=no
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12696 $as_echo "$ac_cv_lk_lock" >&6; }
12697 if test $ac_cv_lk_lock = yes; then
12699 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12703 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12704 CFLAGS="$saved_CFLAGS"
12705 CXXFLAGS="$saved_CXXFLAGS"
12707 # mkdir takes a single argument on some systems.
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12709 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12710 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 #include <sys/types.h>
12717 #ifdef HAVE_SYS_STAT_H
12718 # include <sys/stat.h>
12719 #endif
12720 #ifdef HAVE_UNISTD_H
12721 # include <unistd.h>
12722 #endif
12723 #ifdef HAVE_DIRECT_H
12724 # include <direct.h>
12725 #endif
12727 main ()
12729 mkdir ("foo", 0);
12731 return 0;
12733 _ACEOF
12734 if ac_fn_cxx_try_compile "$LINENO"; then :
12735 gcc_cv_mkdir_takes_one_arg=no
12736 else
12737 gcc_cv_mkdir_takes_one_arg=yes
12739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12742 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12743 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12745 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12750 # File extensions
12751 manext='.1'
12752 objext='.o'
12756 # With Setjmp/Longjmp based exception handling.
12757 # Check whether --enable-sjlj-exceptions was given.
12758 if test "${enable_sjlj_exceptions+set}" = set; then :
12759 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12760 else
12761 case $target in
12762 lm32*-*-*)
12763 force_sjlj_exceptions=yes
12764 enableval=yes
12767 force_sjlj_exceptions=no
12769 esac
12772 if test $force_sjlj_exceptions = yes; then
12773 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12775 cat >>confdefs.h <<_ACEOF
12776 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12777 _ACEOF
12781 # --------------------------------------------------------
12782 # Build, host, and target specific configuration fragments
12783 # --------------------------------------------------------
12785 # Collect build-machine-specific information.
12786 . ${srcdir}/config.build || exit 1
12788 # Collect host-machine-specific information.
12789 . ${srcdir}/config.host || exit 1
12791 target_gtfiles=
12793 # Collect target-machine-specific information.
12794 . ${srcdir}/config.gcc || exit 1
12796 extra_objs="${host_extra_objs} ${extra_objs}"
12797 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12799 # Default the target-machine variables that were not explicitly set.
12800 if test x"$tm_file" = x
12801 then tm_file=$cpu_type/$cpu_type.h; fi
12803 if test x"$extra_headers" = x
12804 then extra_headers=; fi
12806 if test x$md_file = x
12807 then md_file=$cpu_type/$cpu_type.md; fi
12809 if test x$out_file = x
12810 then out_file=$cpu_type/$cpu_type.cc; fi
12812 if test x"$tmake_file" = x
12813 then tmake_file=$cpu_type/t-$cpu_type
12816 # Support --enable-initfini-array.
12817 if test x$enable_initfini_array != xno; then
12818 tm_file="${tm_file} initfini-array.h"
12821 if test x"$dwarf2" = xyes
12822 then tm_file="$tm_file tm-dwarf2.h"
12825 # Say what files are being used for the output code and MD file.
12826 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12827 echo "Using \`$srcdir/config/$md_file' as machine description file."
12829 # If any of the xm_file variables contain nonexistent files, warn
12830 # about them and drop them.
12833 for x in $build_xm_file; do
12834 if test -f $srcdir/config/$x
12835 then bx="$bx $x"
12836 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12837 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12839 done
12840 build_xm_file="$bx"
12843 for x in $host_xm_file; do
12844 if test -f $srcdir/config/$x
12845 then hx="$hx $x"
12846 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12847 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12849 done
12850 host_xm_file="$hx"
12853 for x in $xm_file; do
12854 if test -f $srcdir/config/$x
12855 then tx="$tx $x"
12856 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12857 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12859 done
12860 xm_file="$tx"
12862 count=a
12863 for f in $tm_file; do
12864 count=${count}x
12865 done
12866 if test $count = ax; then
12867 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12868 else
12869 echo "Using the following target machine macro files:"
12870 for f in $tm_file; do
12871 echo " $srcdir/config/$f"
12872 done
12875 if test x$use_long_long_for_widest_fast_int = xyes; then
12877 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12881 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12883 cat >>confdefs.h <<_ACEOF
12884 #define HAVE_GNU_LD $gnu_ld_bool
12885 _ACEOF
12888 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_GNU_AS $gnu_as_bool
12892 _ACEOF
12895 count=a
12896 for f in $host_xm_file; do
12897 count=${count}x
12898 done
12899 if test $count = a; then
12901 elif test $count = ax; then
12902 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12903 else
12904 echo "Using the following host machine macro files:"
12905 for f in $host_xm_file; do
12906 echo " $srcdir/config/$f"
12907 done
12909 echo "Using ${out_host_hook_obj} for host machine hooks."
12911 if test "$host_xm_file" != "$build_xm_file"; then
12912 count=a
12913 for f in $build_xm_file; do
12914 count=${count}x
12915 done
12916 if test $count = a; then
12918 elif test $count = ax; then
12919 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12920 else
12921 echo "Using the following build machine macro files:"
12922 for f in $build_xm_file; do
12923 echo " $srcdir/config/$f"
12924 done
12928 if test -n "$configured_native_system_header_dir"; then
12929 native_system_header_dir=$configured_native_system_header_dir
12931 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12934 case ${host} in
12935 powerpc*-*-darwin*)
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12937 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12938 if ${gcc_cv_mcontext_underscores+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 #include <sys/cdefs.h>
12945 #include <sys/signal.h>
12946 #include <ucontext.h>
12947 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12949 _ACEOF
12950 if ac_fn_cxx_try_compile "$LINENO"; then :
12951 gcc_cv_mcontext_underscores=no
12952 else
12953 gcc_cv_mcontext_underscores=yes
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12958 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12959 if test $gcc_cv_mcontext_underscores = yes; then
12961 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12965 esac
12967 # ---------
12968 # Threading
12969 # ---------
12971 # Check if a valid thread package
12972 case ${enable_threads} in
12973 "" | no)
12974 # No threads
12975 target_thread_file='single'
12977 yes)
12978 # default
12979 target_thread_file='single'
12981 aix | dce | lynx | mipssde | posix | rtems | \
12982 single | tpf | vxworks | win32 | mcf)
12983 target_thread_file=${enable_threads}
12986 echo "${enable_threads} is an unknown thread package" 1>&2
12987 exit 1
12989 esac
12991 if test x${thread_file} = x; then
12992 # No thread file set by target-specific clauses in config.gcc,
12993 # so use file chosen by default logic above
12994 thread_file=${target_thread_file}
12997 # --------
12998 # UNSORTED
12999 # --------
13001 use_cxa_atexit=no
13002 if test x$enable___cxa_atexit = xyes || \
13003 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13004 if test x$host = x$target; then
13005 case $host in
13006 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13007 # keyed to flag_use_cxa_atexit
13008 *-*-mingw32*)
13009 use_cxa_atexit=yes
13011 powerpc-ibm-aix*)
13012 use_cxa_atexit=yes
13015 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13016 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13017 use_cxa_atexit=yes
13018 else
13019 echo "__cxa_atexit can't be enabled on this target"
13023 esac
13024 else
13025 # We can't check for __cxa_atexit when building a cross, so assume
13026 # it is available
13027 use_cxa_atexit=yes
13029 if test x$use_cxa_atexit = xyes; then
13031 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13036 # Look for a file containing extra machine modes.
13037 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13038 extra_modes_file='$(srcdir)'/config/${extra_modes}
13041 cat >>confdefs.h <<_ACEOF
13042 #define EXTRA_MODES_FILE "config/$extra_modes"
13043 _ACEOF
13047 # Convert extra_options into a form suitable for Makefile use.
13048 extra_opt_files=
13049 all_opt_files=
13050 for f in $extra_options; do
13051 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13052 all_opt_files="$all_opt_files $srcdir/config/$f"
13053 done
13056 # auto-host.h is the file containing items generated by autoconf and is
13057 # the first file included by config.h.
13058 # If host=build, it is correct to have bconfig include auto-host.h
13059 # as well. If host!=build, we are in error and need to do more
13060 # work to find out the build config parameters.
13061 if test x$host = x$build
13062 then
13063 build_auto=auto-host.h
13064 HAVE_AUTO_BUILD='# '
13065 else
13066 # We create a subdir, then run autoconf in the subdir.
13067 # To prevent recursion we set host and build for the new
13068 # invocation of configure to the build for this invocation
13069 # of configure.
13070 tempdir=build.$$
13071 rm -rf $tempdir
13072 mkdir $tempdir
13073 cd $tempdir
13074 case ${srcdir} in
13075 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13076 *) realsrcdir=../${srcdir};;
13077 esac
13078 # Clearing GMPINC is necessary to prevent host headers being
13079 # used by the build compiler. Defining GENERATOR_FILE stops
13080 # system.h from including gmp.h.
13081 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13082 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13083 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13084 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13085 ${realsrcdir}/configure \
13086 --enable-languages=${enable_languages-all} \
13087 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13088 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13089 --target=$target_alias --host=$build_alias \
13090 --build=$build_alias || exit # retaining $tempdir
13092 # We just finished tests for the build machine, so rename
13093 # the file auto-build.h in the gcc directory.
13094 mv auto-host.h ../auto-build.h
13095 cd ..
13096 rm -rf $tempdir
13097 build_auto=auto-build.h
13098 HAVE_AUTO_BUILD=
13103 tm_file="${tm_file} defaults.h"
13104 tm_p_file="${tm_p_file} tm-preds.h"
13105 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13106 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13107 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13108 # put this back in temporarily.
13109 xm_file="auto-host.h ansidecl.h ${xm_file}"
13111 # --------
13112 # UNSORTED
13113 # --------
13115 # Compile in configure arguments.
13116 if test -f configargs.h ; then
13117 # Being re-configured.
13118 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13119 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13120 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13121 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13123 else
13124 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13127 # Double all backslashes and backslash all quotes to turn
13128 # gcc_config_arguments into a C string.
13129 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13130 $gcc_config_arguments
13132 gcc_config_arguments_str=`cat conftest.out`
13133 rm -f conftest.out
13135 cat > configargs.h <<EOF
13136 /* Generated automatically. */
13137 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13138 static const char thread_model[] = "$thread_file";
13140 static const struct {
13141 const char *name, *value;
13142 } configure_default_options[] = $configure_default_options;
13145 gcc_BASEVER=`cat $srcdir/BASE-VER`
13146 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13147 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13148 if test -f $srcdir/REVISION ; then
13149 gcc_REVISION=`cat $srcdir/REVISION`
13150 else
13151 gcc_REVISION=""
13153 cat > plugin-version.h <<EOF
13154 #include "configargs.h"
13156 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13157 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13158 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13159 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13161 static char basever[] = "$gcc_BASEVER";
13162 static char datestamp[] = "$gcc_DATESTAMP";
13163 static char devphase[] = "$gcc_DEVPHASE";
13164 static char revision[] = "$gcc_REVISION";
13166 /* FIXME plugins: We should make the version information more precise.
13167 One way to do is to add a checksum. */
13169 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13170 devphase, revision,
13171 configuration_arguments};
13174 # Determine what GCC version number to use in filesystem paths.
13176 get_gcc_base_ver="cat"
13178 # Check whether --with-gcc-major-version-only was given.
13179 if test "${with_gcc_major_version_only+set}" = set; then :
13180 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13181 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13189 # Internationalization
13190 # If we haven't got the data from the intl directory,
13191 # assume NLS is disabled.
13192 USE_NLS=no
13193 LIBINTL=
13194 LIBINTL_DEP=
13195 INCINTL=
13196 XGETTEXT=
13197 GMSGFMT=
13198 POSUB=
13200 if test -f ../intl/config.intl; then
13201 . ../intl/config.intl
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13204 $as_echo_n "checking whether NLS is requested... " >&6; }
13205 if test x"$USE_NLS" != xyes; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13210 $as_echo "yes" >&6; }
13212 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13216 $as_echo_n "checking for catalogs to be installed... " >&6; }
13217 # Look for .po and .gmo files in the source directory.
13218 CATALOGS=
13219 XLINGUAS=
13220 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13221 # If there aren't any .gmo files the shell will give us the
13222 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13223 # weeded out.
13224 case "$cat" in *\**)
13225 continue;;
13226 esac
13227 # The quadruple backslash is collapsed to a double backslash
13228 # by the backticks, then collapsed again by the double quotes,
13229 # leaving us with one backslash in the sed expression (right
13230 # before the dot that mustn't act as a wildcard).
13231 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13232 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13233 # The user is allowed to set LINGUAS to a list of languages to
13234 # install catalogs for. If it's empty that means "all of them."
13235 if test "x$LINGUAS" = x; then
13236 CATALOGS="$CATALOGS $cat"
13237 XLINGUAS="$XLINGUAS $lang"
13238 else
13239 case "$LINGUAS" in *$lang*)
13240 CATALOGS="$CATALOGS $cat"
13241 XLINGUAS="$XLINGUAS $lang"
13243 esac
13245 done
13246 LINGUAS="$XLINGUAS"
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13248 $as_echo "$LINGUAS" >&6; }
13251 DATADIRNAME=share
13253 INSTOBJEXT=.mo
13255 GENCAT=gencat
13257 CATOBJEXT=.gmo
13261 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13262 # -liconv on the link line twice.
13263 case "$LIBINTL" in *$LIBICONV*)
13264 LIBICONV= ;;
13265 esac
13267 # Check whether --enable-secureplt was given.
13268 if test "${enable_secureplt+set}" = set; then :
13269 enableval=$enable_secureplt;
13273 # Check whether --enable-mingw-wildcard was given.
13274 if test "${enable_mingw_wildcard+set}" = set; then :
13275 enableval=$enable_mingw_wildcard;
13276 else
13277 enable_mingw_wildcard=platform
13280 if test x"$enable_mingw_wildcard" != xplatform ; then :
13282 cat >>confdefs.h <<_ACEOF
13283 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13284 _ACEOF
13288 # Check whether --enable-large-address-aware was given.
13289 if test "${enable_large_address_aware+set}" = set; then :
13290 enableval=$enable_large_address_aware;
13293 if test x"$enable_large_address_aware" = xyes; then :
13295 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13299 # Check whether --enable-leading-mingw64-underscores was given.
13300 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13301 enableval=$enable_leading_mingw64_underscores;
13304 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13306 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13310 # Check whether --enable-cld was given.
13311 if test "${enable_cld+set}" = set; then :
13312 enableval=$enable_cld;
13313 else
13314 enable_cld=no
13318 # Check whether --enable-frame-pointer was given.
13319 if test "${enable_frame_pointer+set}" = set; then :
13320 enableval=$enable_frame_pointer;
13321 else
13323 case $target_os in
13324 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13325 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13326 enable_frame_pointer=no
13329 enable_frame_pointer=yes
13331 esac
13336 case $target in
13337 i[34567]86-*-* | x86_64-*-*)
13338 if test "x$enable_cld" = xyes; then
13339 tm_defines="${tm_defines} USE_IX86_CLD=1"
13341 if test "x$enable_frame_pointer" = xyes; then
13342 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13345 esac
13347 # Windows32 Registry support for specifying GCC installation paths.
13348 # Check whether --enable-win32-registry was given.
13349 if test "${enable_win32_registry+set}" = set; then :
13350 enableval=$enable_win32_registry;
13354 case $host_os in
13355 win32 | pe | cygwin* | mingw32*)
13356 if test "x$enable_win32_registry" != xno; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13358 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13359 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 ac_func_search_save_LIBS=$LIBS
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13366 /* Override any GCC internal prototype to avoid an error.
13367 Use char because int might match the return type of a GCC
13368 builtin and then its argument prototype would still apply. */
13369 #ifdef __cplusplus
13370 extern "C"
13371 #endif
13372 char RegOpenKeyExA ();
13374 main ()
13376 return RegOpenKeyExA ();
13378 return 0;
13380 _ACEOF
13381 for ac_lib in '' advapi32; do
13382 if test -z "$ac_lib"; then
13383 ac_res="none required"
13384 else
13385 ac_res=-l$ac_lib
13386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13388 if ac_fn_cxx_try_link "$LINENO"; then :
13389 ac_cv_search_RegOpenKeyExA=$ac_res
13391 rm -f core conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext
13393 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13394 break
13396 done
13397 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13399 else
13400 ac_cv_search_RegOpenKeyExA=no
13402 rm conftest.$ac_ext
13403 LIBS=$ac_func_search_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13406 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13407 ac_res=$ac_cv_search_RegOpenKeyExA
13408 if test "$ac_res" != no; then :
13409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13411 else
13412 enable_win32_registry=no
13417 if test "x$enable_win32_registry" != xno; then
13419 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13422 if test "x$enable_win32_registry" != xyes \
13423 && test "x$enable_win32_registry" != x; then
13425 cat >>confdefs.h <<_ACEOF
13426 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13427 _ACEOF
13432 esac
13434 # Get an absolute path to the GCC top-level source directory
13435 holddir=`${PWDCMD-pwd}`
13436 cd $srcdir
13437 topdir=`${PWDCMD-pwd}`
13438 cd $holddir
13440 # Conditionalize the makefile for this host machine.
13441 xmake_file=
13442 for f in ${host_xmake_file}
13444 if test -f ${srcdir}/config/$f
13445 then
13446 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13448 done
13450 # Conditionalize the makefile for this target machine.
13451 tmake_file_=
13452 for f in ${tmake_file}
13454 if test -f ${srcdir}/config/$f
13455 then
13456 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13458 done
13459 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13461 out_object_file=`basename $out_file .cc`.o
13462 common_out_object_file=`basename $common_out_file .cc`.o
13464 tm_file_list="options.h"
13465 tm_include_list="options.h insn-constants.h"
13466 for f in $tm_file; do
13467 case $f in
13468 ./* )
13469 f=`echo $f | sed 's/^..//'`
13470 tm_file_list="${tm_file_list} $f"
13471 tm_include_list="${tm_include_list} $f"
13473 defaults.h )
13474 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13475 tm_include_list="${tm_include_list} $f"
13478 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13479 tm_include_list="${tm_include_list} config/$f"
13481 esac
13482 done
13484 tm_p_file_list=
13485 tm_p_include_list=
13486 for f in $tm_p_file; do
13487 case $f in
13488 tm-preds.h )
13489 tm_p_file_list="${tm_p_file_list} $f"
13490 tm_p_include_list="${tm_p_include_list} $f"
13493 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13494 tm_p_include_list="${tm_p_include_list} config/$f"
13495 esac
13496 done
13498 tm_d_file_list=
13499 tm_d_include_list=
13500 for f in $tm_d_file; do
13501 case $f in
13503 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13504 tm_d_include_list="${tm_d_include_list} config/$f"
13506 esac
13507 done
13509 xm_file_list=
13510 xm_include_list=
13511 for f in $xm_file; do
13512 case $f in
13513 ansidecl.h )
13514 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13515 xm_include_list="${xm_include_list} $f"
13517 auto-host.h )
13518 xm_file_list="${xm_file_list} $f"
13519 xm_include_list="${xm_include_list} $f"
13522 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13523 xm_include_list="${xm_include_list} config/$f"
13525 esac
13526 done
13528 host_xm_file_list=
13529 host_xm_include_list=
13530 for f in $host_xm_file; do
13531 case $f in
13532 ansidecl.h )
13533 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13534 host_xm_include_list="${host_xm_include_list} $f"
13536 auto-host.h )
13537 host_xm_file_list="${host_xm_file_list} $f"
13538 host_xm_include_list="${host_xm_include_list} $f"
13541 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13542 host_xm_include_list="${host_xm_include_list} config/$f"
13544 esac
13545 done
13547 build_xm_file_list=
13548 for f in $build_xm_file; do
13549 case $f in
13550 ansidecl.h )
13551 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13552 build_xm_include_list="${build_xm_include_list} $f"
13554 auto-build.h | auto-host.h )
13555 build_xm_file_list="${build_xm_file_list} $f"
13556 build_xm_include_list="${build_xm_include_list} $f"
13559 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13560 build_xm_include_list="${build_xm_include_list} config/$f"
13562 esac
13563 done
13565 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13566 # cross-compiler which does not use the native headers and libraries.
13567 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13568 CROSS=
13569 ALL=all.internal
13570 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13571 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13573 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13574 test x$build != x$host || test "x$with_build_sysroot" != x; then
13575 if test "x$with_build_sysroot" != x; then
13576 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13577 else
13578 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13581 if test x$host != x$target
13582 then
13583 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13584 ALL=all.cross
13585 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13586 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13587 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13590 if test "x$with_build_sysroot" != "x"; then
13591 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13592 elif test "x$with_sysroot" = x; then
13593 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13594 elif test "x$with_sysroot" = xyes; then
13595 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13596 else
13597 target_header_dir="${with_sysroot}${native_system_header_dir}"
13599 else
13600 target_header_dir=${native_system_header_dir}
13603 # If this is a cross-compiler that does not
13604 # have its own set of headers then define
13605 # inhibit_libc
13607 # If this is using newlib, without having the headers available now,
13608 # then define inhibit_libc in LIBGCC2_CFLAGS.
13609 # This prevents libgcc2 from containing any code which requires libc
13610 # support.
13611 : ${inhibit_libc=false}
13612 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13613 test x$with_newlib = xyes ; } &&
13614 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13615 inhibit_libc=true
13619 # When building gcc with a cross-compiler, we need to adjust things so
13620 # that the generator programs are still built with the native compiler.
13621 # Also, we cannot run fixincludes.
13623 # These are the normal (build=host) settings:
13624 CC_FOR_BUILD='$(CC)'
13625 CXX_FOR_BUILD='$(CXX)'
13626 BUILD_CFLAGS='$(ALL_CFLAGS)'
13627 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13628 BUILD_LDFLAGS='$(LDFLAGS)'
13629 STMP_FIXINC=stmp-fixinc
13631 # And these apply if build != host, or we are generating coverage data
13632 if test x$build != x$host || test "x$coverage_flags" != x
13633 then
13634 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13635 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13636 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13640 if test x$enable_fixincludes = xno;
13641 then
13642 STMP_FIXINC=''
13645 # Expand extra_headers to include complete path.
13646 # This substitutes for lots of t-* files.
13647 extra_headers_list=
13648 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13649 for file in ${extra_headers} ; do
13650 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13651 done
13653 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13654 if test x"$use_gcc_tgmath" = xyes
13655 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13658 # Define collect2 in Makefile.
13659 case $host_can_use_collect2 in
13660 no) collect2= ;;
13661 *) collect2='collect2$(exeext)' ;;
13662 esac
13665 # Add a definition of USE_COLLECT2 if system wants one.
13666 case $use_collect2 in
13667 no) use_collect2= ;;
13668 "") ;;
13670 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13671 xm_defines="${xm_defines} USE_COLLECT2"
13672 case $host_can_use_collect2 in
13674 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13676 esac
13678 esac
13681 cat >>confdefs.h <<_ACEOF
13682 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13683 _ACEOF
13686 # ---------------------------
13687 # Assembler & linker features
13688 # ---------------------------
13690 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13691 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13692 # However when ld-new is first executed from the build tree, libtool will
13693 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13694 # to the build tree. While doing this we need to use the previous-stage
13695 # linker, or we have an infinite loop. The presence of a shell script as
13696 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13697 # the gcc/collect-ld script. So we need to know how libtool works, or
13698 # exec-tool will fail.
13701 case `pwd` in
13702 *\ * | *\ *)
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13704 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13705 esac
13709 macro_version='2.2.7a'
13710 macro_revision='1.3134'
13724 ltmain="$ac_aux_dir/ltmain.sh"
13726 # Backslashify metacharacters that are still active within
13727 # double-quoted strings.
13728 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13730 # Same as above, but do not quote variable references.
13731 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13733 # Sed substitution to delay expansion of an escaped shell variable in a
13734 # double_quote_subst'ed string.
13735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13737 # Sed substitution to delay expansion of an escaped single quote.
13738 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13740 # Sed substitution to avoid accidental globbing in evaled expressions
13741 no_glob_subst='s/\*/\\\*/g'
13743 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13748 $as_echo_n "checking how to print strings... " >&6; }
13749 # Test print first, because it will be a builtin if present.
13750 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13751 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13752 ECHO='print -r --'
13753 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13754 ECHO='printf %s\n'
13755 else
13756 # Use this function as a fallback that always works.
13757 func_fallback_echo ()
13759 eval 'cat <<_LTECHO_EOF
13761 _LTECHO_EOF'
13763 ECHO='func_fallback_echo'
13766 # func_echo_all arg...
13767 # Invoke $ECHO with all args, space-separated.
13768 func_echo_all ()
13770 $ECHO ""
13773 case "$ECHO" in
13774 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13775 $as_echo "printf" >&6; } ;;
13776 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13777 $as_echo "print -r" >&6; } ;;
13778 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13779 $as_echo "cat" >&6; } ;;
13780 esac
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13796 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13797 if ${ac_cv_path_SED+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13801 for ac_i in 1 2 3 4 5 6 7; do
13802 ac_script="$ac_script$as_nl$ac_script"
13803 done
13804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13805 { ac_script=; unset ac_script;}
13806 if test -z "$SED"; then
13807 ac_path_SED_found=false
13808 # Loop through the user's path and test for each of PROGNAME-LIST
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_prog in sed gsed; do
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13817 as_fn_executable_p "$ac_path_SED" || continue
13818 # Check for GNU ac_path_SED and select it if it is found.
13819 # Check for GNU $ac_path_SED
13820 case `"$ac_path_SED" --version 2>&1` in
13821 *GNU*)
13822 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13824 ac_count=0
13825 $as_echo_n 0123456789 >"conftest.in"
13826 while :
13828 cat "conftest.in" "conftest.in" >"conftest.tmp"
13829 mv "conftest.tmp" "conftest.in"
13830 cp "conftest.in" "conftest.nl"
13831 $as_echo '' >> "conftest.nl"
13832 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13834 as_fn_arith $ac_count + 1 && ac_count=$as_val
13835 if test $ac_count -gt ${ac_path_SED_max-0}; then
13836 # Best one so far, save it but keep looking for a better one
13837 ac_cv_path_SED="$ac_path_SED"
13838 ac_path_SED_max=$ac_count
13840 # 10*(2^10) chars as input seems more than enough
13841 test $ac_count -gt 10 && break
13842 done
13843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13844 esac
13846 $ac_path_SED_found && break 3
13847 done
13848 done
13849 done
13850 IFS=$as_save_IFS
13851 if test -z "$ac_cv_path_SED"; then
13852 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13854 else
13855 ac_cv_path_SED=$SED
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13860 $as_echo "$ac_cv_path_SED" >&6; }
13861 SED="$ac_cv_path_SED"
13862 rm -f conftest.sed
13864 test -z "$SED" && SED=sed
13865 Xsed="$SED -e 1s/^X//"
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13878 $as_echo_n "checking for fgrep... " >&6; }
13879 if ${ac_cv_path_FGREP+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13883 then ac_cv_path_FGREP="$GREP -F"
13884 else
13885 if test -z "$FGREP"; then
13886 ac_path_FGREP_found=false
13887 # Loop through the user's path and test for each of PROGNAME-LIST
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
13893 for ac_prog in fgrep; do
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13896 as_fn_executable_p "$ac_path_FGREP" || continue
13897 # Check for GNU ac_path_FGREP and select it if it is found.
13898 # Check for GNU $ac_path_FGREP
13899 case `"$ac_path_FGREP" --version 2>&1` in
13900 *GNU*)
13901 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13903 ac_count=0
13904 $as_echo_n 0123456789 >"conftest.in"
13905 while :
13907 cat "conftest.in" "conftest.in" >"conftest.tmp"
13908 mv "conftest.tmp" "conftest.in"
13909 cp "conftest.in" "conftest.nl"
13910 $as_echo 'FGREP' >> "conftest.nl"
13911 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13913 as_fn_arith $ac_count + 1 && ac_count=$as_val
13914 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13915 # Best one so far, save it but keep looking for a better one
13916 ac_cv_path_FGREP="$ac_path_FGREP"
13917 ac_path_FGREP_max=$ac_count
13919 # 10*(2^10) chars as input seems more than enough
13920 test $ac_count -gt 10 && break
13921 done
13922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13923 esac
13925 $ac_path_FGREP_found && break 3
13926 done
13927 done
13928 done
13929 IFS=$as_save_IFS
13930 if test -z "$ac_cv_path_FGREP"; then
13931 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13933 else
13934 ac_cv_path_FGREP=$FGREP
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13940 $as_echo "$ac_cv_path_FGREP" >&6; }
13941 FGREP="$ac_cv_path_FGREP"
13944 test -z "$GREP" && GREP=grep
13964 # Check whether --with-gnu-ld was given.
13965 if test "${with_gnu_ld+set}" = set; then :
13966 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13967 else
13968 with_gnu_ld=no
13971 ac_prog=ld
13972 if test "$GCC" = yes; then
13973 # Check if gcc -print-prog-name=ld gives a path.
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13975 $as_echo_n "checking for ld used by $CC... " >&6; }
13976 case $host in
13977 *-*-mingw*)
13978 # gcc leaves a trailing carriage return which upsets mingw
13979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13982 esac
13983 case $ac_prog in
13984 # Accept absolute paths.
13985 [\\/]* | ?:[\\/]*)
13986 re_direlt='/[^/][^/]*/\.\./'
13987 # Canonicalize the pathname of ld
13988 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13989 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13990 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13991 done
13992 test -z "$LD" && LD="$ac_prog"
13995 # If it fails, then pretend we aren't using GCC.
13996 ac_prog=ld
13999 # If it is relative, then search for the first ld in PATH.
14000 with_gnu_ld=unknown
14002 esac
14003 elif test "$with_gnu_ld" = yes; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14005 $as_echo_n "checking for GNU ld... " >&6; }
14006 else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14008 $as_echo_n "checking for non-GNU ld... " >&6; }
14010 if ${lt_cv_path_LD+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 if test -z "$LD"; then
14014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14015 for ac_dir in $PATH; do
14016 IFS="$lt_save_ifs"
14017 test -z "$ac_dir" && ac_dir=.
14018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14019 lt_cv_path_LD="$ac_dir/$ac_prog"
14020 # Check to see if the program is GNU ld. I'd rather use --version,
14021 # but apparently some variants of GNU ld only accept -v.
14022 # Break only if it was the GNU/non-GNU ld that we prefer.
14023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14024 *GNU* | *'with BFD'*)
14025 test "$with_gnu_ld" != no && break
14028 test "$with_gnu_ld" != yes && break
14030 esac
14032 done
14033 IFS="$lt_save_ifs"
14034 else
14035 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14039 LD="$lt_cv_path_LD"
14040 if test -n "$LD"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14042 $as_echo "$LD" >&6; }
14043 else
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045 $as_echo "no" >&6; }
14047 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14049 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14050 if ${lt_cv_prog_gnu_ld+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14054 case `$LD -v 2>&1 </dev/null` in
14055 *GNU* | *'with BFD'*)
14056 lt_cv_prog_gnu_ld=yes
14059 lt_cv_prog_gnu_ld=no
14061 esac
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14064 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14065 with_gnu_ld=$lt_cv_prog_gnu_ld
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14076 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14077 if ${lt_cv_path_NM+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 if test -n "$NM"; then
14081 # Let the user override the test.
14082 lt_cv_path_NM="$NM"
14083 else
14084 lt_nm_to_check="${ac_tool_prefix}nm"
14085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14086 lt_nm_to_check="$lt_nm_to_check nm"
14088 for lt_tmp_nm in $lt_nm_to_check; do
14089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14090 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14091 IFS="$lt_save_ifs"
14092 test -z "$ac_dir" && ac_dir=.
14093 tmp_nm="$ac_dir/$lt_tmp_nm"
14094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14095 # Check to see if the nm accepts a BSD-compat flag.
14096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14097 # nm: unknown option "B" ignored
14098 # Tru64's nm complains that /dev/null is an invalid object file
14099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14100 */dev/null* | *'Invalid file or object type'*)
14101 lt_cv_path_NM="$tmp_nm -B"
14102 break
14105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14106 */dev/null*)
14107 lt_cv_path_NM="$tmp_nm -p"
14108 break
14111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14112 continue # so that we can try to find one that supports BSD flags
14114 esac
14116 esac
14118 done
14119 IFS="$lt_save_ifs"
14120 done
14121 : ${lt_cv_path_NM=no}
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14125 $as_echo "$lt_cv_path_NM" >&6; }
14126 if test "$lt_cv_path_NM" != "no"; then
14127 NM="$lt_cv_path_NM"
14128 else
14129 # Didn't find any BSD compatible name lister, look for dumpbin.
14130 if test -n "$DUMPBIN"; then :
14131 # Let the user override the test.
14132 else
14133 if test -n "$ac_tool_prefix"; then
14134 for ac_prog in dumpbin "link -dump"
14136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139 $as_echo_n "checking for $ac_word... " >&6; }
14140 if ${ac_cv_prog_DUMPBIN+:} false; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 if test -n "$DUMPBIN"; then
14144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14145 else
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14149 IFS=$as_save_IFS
14150 test -z "$as_dir" && as_dir=.
14151 for ac_exec_ext in '' $ac_executable_extensions; do
14152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14153 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 break 2
14157 done
14158 done
14159 IFS=$as_save_IFS
14163 DUMPBIN=$ac_cv_prog_DUMPBIN
14164 if test -n "$DUMPBIN"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14166 $as_echo "$DUMPBIN" >&6; }
14167 else
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 $as_echo "no" >&6; }
14173 test -n "$DUMPBIN" && break
14174 done
14176 if test -z "$DUMPBIN"; then
14177 ac_ct_DUMPBIN=$DUMPBIN
14178 for ac_prog in dumpbin "link -dump"
14180 # Extract the first word of "$ac_prog", so it can be a program name with args.
14181 set dummy $ac_prog; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$ac_ct_DUMPBIN"; then
14188 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14201 done
14202 done
14203 IFS=$as_save_IFS
14207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14208 if test -n "$ac_ct_DUMPBIN"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14210 $as_echo "$ac_ct_DUMPBIN" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14217 test -n "$ac_ct_DUMPBIN" && break
14218 done
14220 if test "x$ac_ct_DUMPBIN" = x; then
14221 DUMPBIN=":"
14222 else
14223 case $cross_compiling:$ac_tool_warned in
14224 yes:)
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14227 ac_tool_warned=yes ;;
14228 esac
14229 DUMPBIN=$ac_ct_DUMPBIN
14233 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14234 *COFF*)
14235 DUMPBIN="$DUMPBIN -symbols"
14238 DUMPBIN=:
14240 esac
14243 if test "$DUMPBIN" != ":"; then
14244 NM="$DUMPBIN"
14247 test -z "$NM" && NM=nm
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14255 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14256 if ${lt_cv_nm_interface+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 lt_cv_nm_interface="BSD nm"
14260 echo "int some_variable = 0;" > conftest.$ac_ext
14261 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14262 (eval "$ac_compile" 2>conftest.err)
14263 cat conftest.err >&5
14264 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14265 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14266 cat conftest.err >&5
14267 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14268 cat conftest.out >&5
14269 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14270 lt_cv_nm_interface="MS dumpbin"
14272 rm -f conftest*
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14275 $as_echo "$lt_cv_nm_interface" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14278 $as_echo_n "checking whether ln -s works... " >&6; }
14279 LN_S=$as_ln_s
14280 if test "$LN_S" = "ln -s"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14282 $as_echo "yes" >&6; }
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14285 $as_echo "no, using $LN_S" >&6; }
14288 # find the maximum length of command line arguments
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14290 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14291 if ${lt_cv_sys_max_cmd_len+:} false; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14295 teststring="ABCD"
14297 case $build_os in
14298 msdosdjgpp*)
14299 # On DJGPP, this test can blow up pretty badly due to problems in libc
14300 # (any single argument exceeding 2000 bytes causes a buffer overrun
14301 # during glob expansion). Even if it were fixed, the result of this
14302 # check would be larger than it should be.
14303 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14306 gnu*)
14307 # Under GNU Hurd, this test is not required because there is
14308 # no limit to the length of command line arguments.
14309 # Libtool will interpret -1 as no limit whatsoever
14310 lt_cv_sys_max_cmd_len=-1;
14313 cygwin* | mingw* | cegcc*)
14314 # On Win9x/ME, this test blows up -- it succeeds, but takes
14315 # about 5 minutes as the teststring grows exponentially.
14316 # Worse, since 9x/ME are not pre-emptively multitasking,
14317 # you end up with a "frozen" computer, even though with patience
14318 # the test eventually succeeds (with a max line length of 256k).
14319 # Instead, let's just punt: use the minimum linelength reported by
14320 # all of the supported platforms: 8192 (on NT/2K/XP).
14321 lt_cv_sys_max_cmd_len=8192;
14324 mint*)
14325 # On MiNT this can take a long time and run out of memory.
14326 lt_cv_sys_max_cmd_len=8192;
14329 amigaos*)
14330 # On AmigaOS with pdksh, this test takes hours, literally.
14331 # So we just punt and use a minimum line length of 8192.
14332 lt_cv_sys_max_cmd_len=8192;
14335 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14336 # This has been around since 386BSD, at least. Likely further.
14337 if test -x /sbin/sysctl; then
14338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14339 elif test -x /usr/sbin/sysctl; then
14340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14341 else
14342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14344 # And add a safety zone
14345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14349 interix*)
14350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14351 lt_cv_sys_max_cmd_len=196608
14354 osf*)
14355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14357 # nice to cause kernel panics so lets avoid the loop below.
14358 # First set a reasonable default.
14359 lt_cv_sys_max_cmd_len=16384
14361 if test -x /sbin/sysconfig; then
14362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14363 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14364 esac
14367 sco3.2v5*)
14368 lt_cv_sys_max_cmd_len=102400
14370 sysv5* | sco5v6* | sysv4.2uw2*)
14371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14372 if test -n "$kargmax"; then
14373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14374 else
14375 lt_cv_sys_max_cmd_len=32768
14379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14380 if test -n "$lt_cv_sys_max_cmd_len"; then
14381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14383 else
14384 # Make teststring a little bigger before we do anything with it.
14385 # a 1K string should be a reasonable start.
14386 for i in 1 2 3 4 5 6 7 8 ; do
14387 teststring=$teststring$teststring
14388 done
14389 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14390 # If test is not a shell built-in, we'll probably end up computing a
14391 # maximum length that is only half of the actual maximum length, but
14392 # we can't tell.
14393 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14394 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14395 test $i != 17 # 1/2 MB should be enough
14397 i=`expr $i + 1`
14398 teststring=$teststring$teststring
14399 done
14400 # Only check the string length outside the loop.
14401 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14402 teststring=
14403 # Add a significant safety factor because C++ compilers can tack on
14404 # massive amounts of additional arguments before passing them to the
14405 # linker. It appears as though 1/2 is a usable value.
14406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14409 esac
14413 if test -n $lt_cv_sys_max_cmd_len ; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14415 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14416 else
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14418 $as_echo "none" >&6; }
14420 max_cmd_len=$lt_cv_sys_max_cmd_len
14427 : ${CP="cp -f"}
14428 : ${MV="mv -f"}
14429 : ${RM="rm -f"}
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14432 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14433 # Try some XSI features
14434 xsi_shell=no
14435 ( _lt_dummy="a/b/c"
14436 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14437 = c,a/b,, \
14438 && eval 'test $(( 1 + 1 )) -eq 2 \
14439 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14440 && xsi_shell=yes
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14442 $as_echo "$xsi_shell" >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14446 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14447 lt_shell_append=no
14448 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14449 >/dev/null 2>&1 \
14450 && lt_shell_append=yes
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14452 $as_echo "$lt_shell_append" >&6; }
14455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14456 lt_unset=unset
14457 else
14458 lt_unset=false
14465 # test EBCDIC or ASCII
14466 case `echo X|tr X '\101'` in
14467 A) # ASCII based system
14468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14469 lt_SP2NL='tr \040 \012'
14470 lt_NL2SP='tr \015\012 \040\040'
14472 *) # EBCDIC based system
14473 lt_SP2NL='tr \100 \n'
14474 lt_NL2SP='tr \r\n \100\100'
14476 esac
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14487 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14488 if ${lt_cv_ld_reload_flag+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 lt_cv_ld_reload_flag='-r'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14494 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14495 reload_flag=$lt_cv_ld_reload_flag
14496 case $reload_flag in
14497 "" | " "*) ;;
14498 *) reload_flag=" $reload_flag" ;;
14499 esac
14500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14501 case $host_os in
14502 darwin*)
14503 if test "$GCC" = yes; then
14504 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14505 else
14506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14509 esac
14519 if test -n "$ac_tool_prefix"; then
14520 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14521 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14523 $as_echo_n "checking for $ac_word... " >&6; }
14524 if ${ac_cv_prog_OBJDUMP+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526 else
14527 if test -n "$OBJDUMP"; then
14528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14529 else
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14537 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14541 done
14542 done
14543 IFS=$as_save_IFS
14547 OBJDUMP=$ac_cv_prog_OBJDUMP
14548 if test -n "$OBJDUMP"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14550 $as_echo "$OBJDUMP" >&6; }
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14558 if test -z "$ac_cv_prog_OBJDUMP"; then
14559 ac_ct_OBJDUMP=$OBJDUMP
14560 # Extract the first word of "objdump", so it can be a program name with args.
14561 set dummy objdump; ac_word=$2
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14563 $as_echo_n "checking for $ac_word... " >&6; }
14564 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 if test -n "$ac_ct_OBJDUMP"; then
14568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14569 else
14570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14571 for as_dir in $PATH
14573 IFS=$as_save_IFS
14574 test -z "$as_dir" && as_dir=.
14575 for ac_exec_ext in '' $ac_executable_extensions; do
14576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14577 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14579 break 2
14581 done
14582 done
14583 IFS=$as_save_IFS
14587 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14588 if test -n "$ac_ct_OBJDUMP"; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14590 $as_echo "$ac_ct_OBJDUMP" >&6; }
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14596 if test "x$ac_ct_OBJDUMP" = x; then
14597 OBJDUMP="false"
14598 else
14599 case $cross_compiling:$ac_tool_warned in
14600 yes:)
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14603 ac_tool_warned=yes ;;
14604 esac
14605 OBJDUMP=$ac_ct_OBJDUMP
14607 else
14608 OBJDUMP="$ac_cv_prog_OBJDUMP"
14611 test -z "$OBJDUMP" && OBJDUMP=objdump
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14622 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14623 if ${lt_cv_deplibs_check_method+:} false; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 lt_cv_file_magic_cmd='$MAGIC_CMD'
14627 lt_cv_file_magic_test_file=
14628 lt_cv_deplibs_check_method='unknown'
14629 # Need to set the preceding variable on all platforms that support
14630 # interlibrary dependencies.
14631 # 'none' -- dependencies not supported.
14632 # `unknown' -- same as none, but documents that we really don't know.
14633 # 'pass_all' -- all dependencies passed with no checks.
14634 # 'test_compile' -- check by making test program.
14635 # 'file_magic [[regex]]' -- check by looking for files in library path
14636 # which responds to the $file_magic_cmd with a given extended regex.
14637 # If you have `file' or equivalent on your system and you're not sure
14638 # whether `pass_all' will *always* work, you probably want this one.
14640 case $host_os in
14641 aix[4-9]*)
14642 lt_cv_deplibs_check_method=pass_all
14645 beos*)
14646 lt_cv_deplibs_check_method=pass_all
14649 bsdi[45]*)
14650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14651 lt_cv_file_magic_cmd='/usr/bin/file -L'
14652 lt_cv_file_magic_test_file=/shlib/libc.so
14655 cygwin*)
14656 # func_win32_libid is a shell function defined in ltmain.sh
14657 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14658 lt_cv_file_magic_cmd='func_win32_libid'
14661 mingw* | pw32*)
14662 # Base MSYS/MinGW do not provide the 'file' command needed by
14663 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14664 # unless we find 'file', for example because we are cross-compiling.
14665 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14666 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14667 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14668 lt_cv_file_magic_cmd='func_win32_libid'
14669 else
14670 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14671 lt_cv_file_magic_cmd='$OBJDUMP -f'
14675 cegcc*)
14676 # use the weaker test based on 'objdump'. See mingw*.
14677 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14678 lt_cv_file_magic_cmd='$OBJDUMP -f'
14681 darwin* | rhapsody*)
14682 lt_cv_deplibs_check_method=pass_all
14685 freebsd* | dragonfly*)
14686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14687 case $host_cpu in
14688 i*86 )
14689 # Not sure whether the presence of OpenBSD here was a mistake.
14690 # Let's accept both of them until this is cleared up.
14691 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14692 lt_cv_file_magic_cmd=/usr/bin/file
14693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14695 esac
14696 else
14697 lt_cv_deplibs_check_method=pass_all
14701 gnu*)
14702 lt_cv_deplibs_check_method=pass_all
14705 haiku*)
14706 lt_cv_deplibs_check_method=pass_all
14709 hpux10.20* | hpux11*)
14710 lt_cv_file_magic_cmd=/usr/bin/file
14711 case $host_cpu in
14712 ia64*)
14713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14714 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14716 hppa*64*)
14717 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]'
14718 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14721 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14722 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14724 esac
14727 interix[3-9]*)
14728 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14732 irix5* | irix6* | nonstopux*)
14733 case $LD in
14734 *-32|*"-32 ") libmagic=32-bit;;
14735 *-n32|*"-n32 ") libmagic=N32;;
14736 *-64|*"-64 ") libmagic=64-bit;;
14737 *) libmagic=never-match;;
14738 esac
14739 lt_cv_deplibs_check_method=pass_all
14742 # This must be Linux ELF.
14743 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14744 lt_cv_deplibs_check_method=pass_all
14747 netbsd*)
14748 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14750 else
14751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14755 newos6*)
14756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14757 lt_cv_file_magic_cmd=/usr/bin/file
14758 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14761 *nto* | *qnx*)
14762 lt_cv_deplibs_check_method=pass_all
14765 openbsd*)
14766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14768 else
14769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14773 osf3* | osf4* | osf5*)
14774 lt_cv_deplibs_check_method=pass_all
14777 rdos*)
14778 lt_cv_deplibs_check_method=pass_all
14781 solaris*)
14782 lt_cv_deplibs_check_method=pass_all
14785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14786 lt_cv_deplibs_check_method=pass_all
14789 sysv4 | sysv4.3*)
14790 case $host_vendor in
14791 motorola)
14792 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]'
14793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14795 ncr)
14796 lt_cv_deplibs_check_method=pass_all
14798 sequent)
14799 lt_cv_file_magic_cmd='/bin/file'
14800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14802 sni)
14803 lt_cv_file_magic_cmd='/bin/file'
14804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14805 lt_cv_file_magic_test_file=/lib/libc.so
14807 siemens)
14808 lt_cv_deplibs_check_method=pass_all
14811 lt_cv_deplibs_check_method=pass_all
14813 esac
14816 tpf*)
14817 lt_cv_deplibs_check_method=pass_all
14819 vxworks*)
14820 # Assume VxWorks cross toolchains are built on Linux, possibly
14821 # as canadian for Windows hosts.
14822 lt_cv_deplibs_check_method=pass_all
14824 esac
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14828 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14829 file_magic_cmd=$lt_cv_file_magic_cmd
14830 deplibs_check_method=$lt_cv_deplibs_check_method
14831 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14844 if test -n "$ac_tool_prefix"; then
14845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14846 set dummy ${ac_tool_prefix}ar; ac_word=$2
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14848 $as_echo_n "checking for $ac_word... " >&6; }
14849 if ${ac_cv_prog_AR+:} false; then :
14850 $as_echo_n "(cached) " >&6
14851 else
14852 if test -n "$AR"; then
14853 ac_cv_prog_AR="$AR" # Let the user override the test.
14854 else
14855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14856 for as_dir in $PATH
14858 IFS=$as_save_IFS
14859 test -z "$as_dir" && as_dir=.
14860 for ac_exec_ext in '' $ac_executable_extensions; do
14861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14862 ac_cv_prog_AR="${ac_tool_prefix}ar"
14863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14864 break 2
14866 done
14867 done
14868 IFS=$as_save_IFS
14872 AR=$ac_cv_prog_AR
14873 if test -n "$AR"; then
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14875 $as_echo "$AR" >&6; }
14876 else
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14878 $as_echo "no" >&6; }
14883 if test -z "$ac_cv_prog_AR"; then
14884 ac_ct_AR=$AR
14885 # Extract the first word of "ar", so it can be a program name with args.
14886 set dummy ar; ac_word=$2
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14888 $as_echo_n "checking for $ac_word... " >&6; }
14889 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 if test -n "$ac_ct_AR"; then
14893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14894 else
14895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896 for as_dir in $PATH
14898 IFS=$as_save_IFS
14899 test -z "$as_dir" && as_dir=.
14900 for ac_exec_ext in '' $ac_executable_extensions; do
14901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14902 ac_cv_prog_ac_ct_AR="ar"
14903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14904 break 2
14906 done
14907 done
14908 IFS=$as_save_IFS
14912 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14913 if test -n "$ac_ct_AR"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14915 $as_echo "$ac_ct_AR" >&6; }
14916 else
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14918 $as_echo "no" >&6; }
14921 if test "x$ac_ct_AR" = x; then
14922 AR="false"
14923 else
14924 case $cross_compiling:$ac_tool_warned in
14925 yes:)
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14928 ac_tool_warned=yes ;;
14929 esac
14930 AR=$ac_ct_AR
14932 else
14933 AR="$ac_cv_prog_AR"
14936 test -z "$AR" && AR=ar
14937 test -z "$AR_FLAGS" && AR_FLAGS=cru
14949 if test -n "$ac_tool_prefix"; then
14950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14951 set dummy ${ac_tool_prefix}strip; ac_word=$2
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14953 $as_echo_n "checking for $ac_word... " >&6; }
14954 if ${ac_cv_prog_STRIP+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 if test -n "$STRIP"; then
14958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14959 else
14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14963 IFS=$as_save_IFS
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14969 break 2
14971 done
14972 done
14973 IFS=$as_save_IFS
14977 STRIP=$ac_cv_prog_STRIP
14978 if test -n "$STRIP"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14980 $as_echo "$STRIP" >&6; }
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 $as_echo "no" >&6; }
14988 if test -z "$ac_cv_prog_STRIP"; then
14989 ac_ct_STRIP=$STRIP
14990 # Extract the first word of "strip", so it can be a program name with args.
14991 set dummy strip; ac_word=$2
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14993 $as_echo_n "checking for $ac_word... " >&6; }
14994 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 if test -n "$ac_ct_STRIP"; then
14998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14999 else
15000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001 for as_dir in $PATH
15003 IFS=$as_save_IFS
15004 test -z "$as_dir" && as_dir=.
15005 for ac_exec_ext in '' $ac_executable_extensions; do
15006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15007 ac_cv_prog_ac_ct_STRIP="strip"
15008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15009 break 2
15011 done
15012 done
15013 IFS=$as_save_IFS
15017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15018 if test -n "$ac_ct_STRIP"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15020 $as_echo "$ac_ct_STRIP" >&6; }
15021 else
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023 $as_echo "no" >&6; }
15026 if test "x$ac_ct_STRIP" = x; then
15027 STRIP=":"
15028 else
15029 case $cross_compiling:$ac_tool_warned in
15030 yes:)
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15033 ac_tool_warned=yes ;;
15034 esac
15035 STRIP=$ac_ct_STRIP
15037 else
15038 STRIP="$ac_cv_prog_STRIP"
15041 test -z "$STRIP" && STRIP=:
15048 if test -n "$ac_tool_prefix"; then
15049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052 $as_echo_n "checking for $ac_word... " >&6; }
15053 if ${ac_cv_prog_RANLIB+:} false; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 if test -n "$RANLIB"; then
15057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15058 else
15059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15060 for as_dir in $PATH
15062 IFS=$as_save_IFS
15063 test -z "$as_dir" && as_dir=.
15064 for ac_exec_ext in '' $ac_executable_extensions; do
15065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15068 break 2
15070 done
15071 done
15072 IFS=$as_save_IFS
15076 RANLIB=$ac_cv_prog_RANLIB
15077 if test -n "$RANLIB"; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15079 $as_echo "$RANLIB" >&6; }
15080 else
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15082 $as_echo "no" >&6; }
15087 if test -z "$ac_cv_prog_RANLIB"; then
15088 ac_ct_RANLIB=$RANLIB
15089 # Extract the first word of "ranlib", so it can be a program name with args.
15090 set dummy ranlib; ac_word=$2
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15092 $as_echo_n "checking for $ac_word... " >&6; }
15093 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 if test -n "$ac_ct_RANLIB"; then
15097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15098 else
15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100 for as_dir in $PATH
15102 IFS=$as_save_IFS
15103 test -z "$as_dir" && as_dir=.
15104 for ac_exec_ext in '' $ac_executable_extensions; do
15105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15106 ac_cv_prog_ac_ct_RANLIB="ranlib"
15107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15108 break 2
15110 done
15111 done
15112 IFS=$as_save_IFS
15116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15117 if test -n "$ac_ct_RANLIB"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15119 $as_echo "$ac_ct_RANLIB" >&6; }
15120 else
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; }
15125 if test "x$ac_ct_RANLIB" = x; then
15126 RANLIB=":"
15127 else
15128 case $cross_compiling:$ac_tool_warned in
15129 yes:)
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15132 ac_tool_warned=yes ;;
15133 esac
15134 RANLIB=$ac_ct_RANLIB
15136 else
15137 RANLIB="$ac_cv_prog_RANLIB"
15140 test -z "$RANLIB" && RANLIB=:
15147 # Determine commands to create old-style static archives.
15148 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15149 old_postinstall_cmds='chmod 644 $oldlib'
15150 old_postuninstall_cmds=
15152 if test -n "$RANLIB"; then
15153 case $host_os in
15154 openbsd*)
15155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15158 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15160 esac
15161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15164 case $host_os in
15165 darwin*)
15166 lock_old_archive_extraction=yes ;;
15168 lock_old_archive_extraction=no ;;
15169 esac
15209 # If no C compiler was specified, use CC.
15210 LTCC=${LTCC-"$CC"}
15212 # If no C compiler flags were specified, use CFLAGS.
15213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15215 # Allow CC to be a program name with arguments.
15216 compiler=$CC
15219 # Check for command to grab the raw symbol name followed by C symbol from nm.
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15221 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15222 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15226 # These are sane defaults that work on at least a few old systems.
15227 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15229 # Character class describing NM global symbol codes.
15230 symcode='[BCDEGRST]'
15232 # Regexp to match symbols that can be accessed directly from C.
15233 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15235 # Define system-specific variables.
15236 case $host_os in
15237 aix*)
15238 symcode='[BCDT]'
15240 cygwin* | mingw* | pw32* | cegcc*)
15241 symcode='[ABCDGISTW]'
15243 hpux*)
15244 if test "$host_cpu" = ia64; then
15245 symcode='[ABCDEGRST]'
15248 irix* | nonstopux*)
15249 symcode='[BCDEGRST]'
15251 osf*)
15252 symcode='[BCDEGQRST]'
15254 solaris*)
15255 symcode='[BDRT]'
15257 sco3.2v5*)
15258 symcode='[DT]'
15260 sysv4.2uw2*)
15261 symcode='[DT]'
15263 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15264 symcode='[ABDT]'
15266 sysv4)
15267 symcode='[DFNSTU]'
15269 esac
15271 # If we're using GNU nm, then use its standard symbol codes.
15272 case `$NM -V 2>&1` in
15273 *GNU* | *'with BFD'*)
15274 symcode='[ABCDGIRSTW]' ;;
15275 esac
15277 # Transform an extracted symbol line into a proper C declaration.
15278 # Some systems (esp. on ia64) link data and code symbols differently,
15279 # so use this general approach.
15280 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15282 # Transform an extracted symbol line into symbol name and symbol address
15283 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15284 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'"
15286 # Handle CRLF in mingw tool chain
15287 opt_cr=
15288 case $build_os in
15289 mingw*)
15290 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15292 esac
15294 # Try without a prefix underscore, then with it.
15295 for ac_symprfx in "" "_"; do
15297 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15298 symxfrm="\\1 $ac_symprfx\\2 \\2"
15300 # Write the raw and C identifiers.
15301 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15302 # Fake it for dumpbin and say T for any non-static function
15303 # and D for any global variable.
15304 # Also find C++ and __fastcall symbols from MSVC++,
15305 # which start with @ or ?.
15306 lt_cv_sys_global_symbol_pipe="$AWK '"\
15307 " {last_section=section; section=\$ 3};"\
15308 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15309 " \$ 0!~/External *\|/{next};"\
15310 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15311 " {if(hide[section]) next};"\
15312 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15313 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15314 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15315 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15316 " ' prfx=^$ac_symprfx"
15317 else
15318 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15321 # Check to see that the pipe works correctly.
15322 pipe_works=no
15324 rm -f conftest*
15325 cat > conftest.$ac_ext <<_LT_EOF
15326 #ifdef __cplusplus
15327 extern "C" {
15328 #endif
15329 char nm_test_var;
15330 void nm_test_func(void);
15331 void nm_test_func(void){}
15332 #ifdef __cplusplus
15334 #endif
15335 int main(){nm_test_var='a';nm_test_func();return(0);}
15336 _LT_EOF
15338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15339 (eval $ac_compile) 2>&5
15340 ac_status=$?
15341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15342 test $ac_status = 0; }; then
15343 # Now try to grab the symbols.
15344 nlist=conftest.nm
15345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15346 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15347 ac_status=$?
15348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15349 test $ac_status = 0; } && test -s "$nlist"; then
15350 # Try sorting and uniquifying the output.
15351 if sort "$nlist" | uniq > "$nlist"T; then
15352 mv -f "$nlist"T "$nlist"
15353 else
15354 rm -f "$nlist"T
15357 # Make sure that we snagged all the symbols we need.
15358 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15359 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15360 cat <<_LT_EOF > conftest.$ac_ext
15361 #ifdef __cplusplus
15362 extern "C" {
15363 #endif
15365 _LT_EOF
15366 # Now generate the symbol file.
15367 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15369 cat <<_LT_EOF >> conftest.$ac_ext
15371 /* The mapping between symbol names and symbols. */
15372 const struct {
15373 const char *name;
15374 void *address;
15376 lt__PROGRAM__LTX_preloaded_symbols[] =
15378 { "@PROGRAM@", (void *) 0 },
15379 _LT_EOF
15380 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15381 cat <<\_LT_EOF >> conftest.$ac_ext
15382 {0, (void *) 0}
15385 /* This works around a problem in FreeBSD linker */
15386 #ifdef FREEBSD_WORKAROUND
15387 static const void *lt_preloaded_setup() {
15388 return lt__PROGRAM__LTX_preloaded_symbols;
15390 #endif
15392 #ifdef __cplusplus
15394 #endif
15395 _LT_EOF
15396 # Now try linking the two files.
15397 mv conftest.$ac_objext conftstm.$ac_objext
15398 lt_save_LIBS="$LIBS"
15399 lt_save_CFLAGS="$CFLAGS"
15400 LIBS="conftstm.$ac_objext"
15401 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15403 (eval $ac_link) 2>&5
15404 ac_status=$?
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15407 pipe_works=yes
15409 LIBS="$lt_save_LIBS"
15410 CFLAGS="$lt_save_CFLAGS"
15411 else
15412 echo "cannot find nm_test_func in $nlist" >&5
15414 else
15415 echo "cannot find nm_test_var in $nlist" >&5
15417 else
15418 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15420 else
15421 echo "$progname: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15424 rm -rf conftest* conftst*
15426 # Do not use the global_symbol_pipe unless it works.
15427 if test "$pipe_works" = yes; then
15428 break
15429 else
15430 lt_cv_sys_global_symbol_pipe=
15432 done
15436 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15437 lt_cv_sys_global_symbol_to_cdecl=
15439 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15441 $as_echo "failed" >&6; }
15442 else
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15444 $as_echo "ok" >&6; }
15468 # Check whether --enable-libtool-lock was given.
15469 if test "${enable_libtool_lock+set}" = set; then :
15470 enableval=$enable_libtool_lock;
15473 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15475 # Some flags need to be propagated to the compiler or linker for good
15476 # libtool support.
15477 case $host in
15478 ia64-*-hpux*)
15479 # Find out which ABI we are using.
15480 echo 'int i;' > conftest.$ac_ext
15481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15482 (eval $ac_compile) 2>&5
15483 ac_status=$?
15484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15485 test $ac_status = 0; }; then
15486 case `/usr/bin/file conftest.$ac_objext` in
15487 *ELF-32*)
15488 HPUX_IA64_MODE="32"
15490 *ELF-64*)
15491 HPUX_IA64_MODE="64"
15493 esac
15495 rm -rf conftest*
15497 *-*-irix6*)
15498 # Find out which ABI we are using.
15499 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15501 (eval $ac_compile) 2>&5
15502 ac_status=$?
15503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15504 test $ac_status = 0; }; then
15505 if test "$lt_cv_prog_gnu_ld" = yes; then
15506 case `/usr/bin/file conftest.$ac_objext` in
15507 *32-bit*)
15508 LD="${LD-ld} -melf32bsmip"
15510 *N32*)
15511 LD="${LD-ld} -melf32bmipn32"
15513 *64-bit*)
15514 LD="${LD-ld} -melf64bmip"
15516 esac
15517 else
15518 case `/usr/bin/file conftest.$ac_objext` in
15519 *32-bit*)
15520 LD="${LD-ld} -32"
15522 *N32*)
15523 LD="${LD-ld} -n32"
15525 *64-bit*)
15526 LD="${LD-ld} -64"
15528 esac
15531 rm -rf conftest*
15534 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15535 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15536 # Find out which ABI we are using.
15537 echo 'int i;' > conftest.$ac_ext
15538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15539 (eval $ac_compile) 2>&5
15540 ac_status=$?
15541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542 test $ac_status = 0; }; then
15543 case `/usr/bin/file conftest.o` in
15544 *32-bit*)
15545 case $host in
15546 x86_64-*kfreebsd*-gnu)
15547 LD="${LD-ld} -m elf_i386_fbsd"
15549 x86_64-*linux*)
15550 case `/usr/bin/file conftest.o` in
15551 *x86-64*)
15552 LD="${LD-ld} -m elf32_x86_64"
15555 LD="${LD-ld} -m elf_i386"
15557 esac
15559 powerpc64le-*linux*)
15560 LD="${LD-ld} -m elf32lppclinux"
15562 powerpc64-*linux*)
15563 LD="${LD-ld} -m elf32ppclinux"
15565 s390x-*linux*)
15566 LD="${LD-ld} -m elf_s390"
15568 sparc64-*linux*)
15569 LD="${LD-ld} -m elf32_sparc"
15571 esac
15573 *64-bit*)
15574 case $host in
15575 x86_64-*kfreebsd*-gnu)
15576 LD="${LD-ld} -m elf_x86_64_fbsd"
15578 x86_64-*linux*)
15579 LD="${LD-ld} -m elf_x86_64"
15581 powerpcle-*linux*)
15582 LD="${LD-ld} -m elf64lppc"
15584 powerpc-*linux*)
15585 LD="${LD-ld} -m elf64ppc"
15587 s390*-*linux*|s390*-*tpf*)
15588 LD="${LD-ld} -m elf64_s390"
15590 sparc*-*linux*)
15591 LD="${LD-ld} -m elf64_sparc"
15593 esac
15595 esac
15597 rm -rf conftest*
15600 *-*-sco3.2v5*)
15601 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15602 SAVE_CFLAGS="$CFLAGS"
15603 CFLAGS="$CFLAGS -belf"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15605 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15606 if ${lt_cv_cc_needs_belf+:} false; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15609 ac_ext=c
15610 ac_cpp='$CPP $CPPFLAGS'
15611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15619 main ()
15623 return 0;
15625 _ACEOF
15626 if ac_fn_c_try_link "$LINENO"; then :
15627 lt_cv_cc_needs_belf=yes
15628 else
15629 lt_cv_cc_needs_belf=no
15631 rm -f core conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633 ac_ext=c
15634 ac_cpp='$CPP $CPPFLAGS'
15635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15641 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15644 CFLAGS="$SAVE_CFLAGS"
15647 sparc*-*solaris*)
15648 # Find out which ABI we are using.
15649 echo 'int i;' > conftest.$ac_ext
15650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15651 (eval $ac_compile) 2>&5
15652 ac_status=$?
15653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15654 test $ac_status = 0; }; then
15655 case `/usr/bin/file conftest.o` in
15656 *64-bit*)
15657 case $lt_cv_prog_gnu_ld in
15658 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15660 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15661 LD="${LD-ld} -64"
15664 esac
15666 esac
15668 rm -rf conftest*
15670 esac
15672 need_locks="$enable_libtool_lock"
15675 case $host_os in
15676 rhapsody* | darwin*)
15677 if test -n "$ac_tool_prefix"; then
15678 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15681 $as_echo_n "checking for $ac_word... " >&6; }
15682 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 if test -n "$DSYMUTIL"; then
15686 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15687 else
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15695 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15699 done
15700 done
15701 IFS=$as_save_IFS
15705 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15706 if test -n "$DSYMUTIL"; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15708 $as_echo "$DSYMUTIL" >&6; }
15709 else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 $as_echo "no" >&6; }
15716 if test -z "$ac_cv_prog_DSYMUTIL"; then
15717 ac_ct_DSYMUTIL=$DSYMUTIL
15718 # Extract the first word of "dsymutil", so it can be a program name with args.
15719 set dummy dsymutil; ac_word=$2
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15721 $as_echo_n "checking for $ac_word... " >&6; }
15722 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 if test -n "$ac_ct_DSYMUTIL"; then
15726 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15727 else
15728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729 for as_dir in $PATH
15731 IFS=$as_save_IFS
15732 test -z "$as_dir" && as_dir=.
15733 for ac_exec_ext in '' $ac_executable_extensions; do
15734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15735 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15737 break 2
15739 done
15740 done
15741 IFS=$as_save_IFS
15745 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15746 if test -n "$ac_ct_DSYMUTIL"; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15748 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15749 else
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15751 $as_echo "no" >&6; }
15754 if test "x$ac_ct_DSYMUTIL" = x; then
15755 DSYMUTIL=":"
15756 else
15757 case $cross_compiling:$ac_tool_warned in
15758 yes:)
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15761 ac_tool_warned=yes ;;
15762 esac
15763 DSYMUTIL=$ac_ct_DSYMUTIL
15765 else
15766 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15769 if test -n "$ac_tool_prefix"; then
15770 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15771 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15773 $as_echo_n "checking for $ac_word... " >&6; }
15774 if ${ac_cv_prog_NMEDIT+:} false; then :
15775 $as_echo_n "(cached) " >&6
15776 else
15777 if test -n "$NMEDIT"; then
15778 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15779 else
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15783 IFS=$as_save_IFS
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15787 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 break 2
15791 done
15792 done
15793 IFS=$as_save_IFS
15797 NMEDIT=$ac_cv_prog_NMEDIT
15798 if test -n "$NMEDIT"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15800 $as_echo "$NMEDIT" >&6; }
15801 else
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15803 $as_echo "no" >&6; }
15808 if test -z "$ac_cv_prog_NMEDIT"; then
15809 ac_ct_NMEDIT=$NMEDIT
15810 # Extract the first word of "nmedit", so it can be a program name with args.
15811 set dummy nmedit; ac_word=$2
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15813 $as_echo_n "checking for $ac_word... " >&6; }
15814 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15815 $as_echo_n "(cached) " >&6
15816 else
15817 if test -n "$ac_ct_NMEDIT"; then
15818 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15819 else
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15827 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15829 break 2
15831 done
15832 done
15833 IFS=$as_save_IFS
15837 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15838 if test -n "$ac_ct_NMEDIT"; then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15840 $as_echo "$ac_ct_NMEDIT" >&6; }
15841 else
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 $as_echo "no" >&6; }
15846 if test "x$ac_ct_NMEDIT" = x; then
15847 NMEDIT=":"
15848 else
15849 case $cross_compiling:$ac_tool_warned in
15850 yes:)
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15853 ac_tool_warned=yes ;;
15854 esac
15855 NMEDIT=$ac_ct_NMEDIT
15857 else
15858 NMEDIT="$ac_cv_prog_NMEDIT"
15861 if test -n "$ac_tool_prefix"; then
15862 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15863 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15865 $as_echo_n "checking for $ac_word... " >&6; }
15866 if ${ac_cv_prog_LIPO+:} false; then :
15867 $as_echo_n "(cached) " >&6
15868 else
15869 if test -n "$LIPO"; then
15870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15871 else
15872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873 for as_dir in $PATH
15875 IFS=$as_save_IFS
15876 test -z "$as_dir" && as_dir=.
15877 for ac_exec_ext in '' $ac_executable_extensions; do
15878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15881 break 2
15883 done
15884 done
15885 IFS=$as_save_IFS
15889 LIPO=$ac_cv_prog_LIPO
15890 if test -n "$LIPO"; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15892 $as_echo "$LIPO" >&6; }
15893 else
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895 $as_echo "no" >&6; }
15900 if test -z "$ac_cv_prog_LIPO"; then
15901 ac_ct_LIPO=$LIPO
15902 # Extract the first word of "lipo", so it can be a program name with args.
15903 set dummy lipo; ac_word=$2
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15905 $as_echo_n "checking for $ac_word... " >&6; }
15906 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 if test -n "$ac_ct_LIPO"; then
15910 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15911 else
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15915 IFS=$as_save_IFS
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_prog_ac_ct_LIPO="lipo"
15920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15921 break 2
15923 done
15924 done
15925 IFS=$as_save_IFS
15929 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15930 if test -n "$ac_ct_LIPO"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15932 $as_echo "$ac_ct_LIPO" >&6; }
15933 else
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15938 if test "x$ac_ct_LIPO" = x; then
15939 LIPO=":"
15940 else
15941 case $cross_compiling:$ac_tool_warned in
15942 yes:)
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15945 ac_tool_warned=yes ;;
15946 esac
15947 LIPO=$ac_ct_LIPO
15949 else
15950 LIPO="$ac_cv_prog_LIPO"
15953 if test -n "$ac_tool_prefix"; then
15954 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15955 set dummy ${ac_tool_prefix}otool; ac_word=$2
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15957 $as_echo_n "checking for $ac_word... " >&6; }
15958 if ${ac_cv_prog_OTOOL+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 if test -n "$OTOOL"; then
15962 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15963 else
15964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15965 for as_dir in $PATH
15967 IFS=$as_save_IFS
15968 test -z "$as_dir" && as_dir=.
15969 for ac_exec_ext in '' $ac_executable_extensions; do
15970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15971 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15973 break 2
15975 done
15976 done
15977 IFS=$as_save_IFS
15981 OTOOL=$ac_cv_prog_OTOOL
15982 if test -n "$OTOOL"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15984 $as_echo "$OTOOL" >&6; }
15985 else
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15992 if test -z "$ac_cv_prog_OTOOL"; then
15993 ac_ct_OTOOL=$OTOOL
15994 # Extract the first word of "otool", so it can be a program name with args.
15995 set dummy otool; ac_word=$2
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15997 $as_echo_n "checking for $ac_word... " >&6; }
15998 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001 if test -n "$ac_ct_OTOOL"; then
16002 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16003 else
16004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005 for as_dir in $PATH
16007 IFS=$as_save_IFS
16008 test -z "$as_dir" && as_dir=.
16009 for ac_exec_ext in '' $ac_executable_extensions; do
16010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16011 ac_cv_prog_ac_ct_OTOOL="otool"
16012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16013 break 2
16015 done
16016 done
16017 IFS=$as_save_IFS
16021 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16022 if test -n "$ac_ct_OTOOL"; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16024 $as_echo "$ac_ct_OTOOL" >&6; }
16025 else
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027 $as_echo "no" >&6; }
16030 if test "x$ac_ct_OTOOL" = x; then
16031 OTOOL=":"
16032 else
16033 case $cross_compiling:$ac_tool_warned in
16034 yes:)
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16037 ac_tool_warned=yes ;;
16038 esac
16039 OTOOL=$ac_ct_OTOOL
16041 else
16042 OTOOL="$ac_cv_prog_OTOOL"
16045 if test -n "$ac_tool_prefix"; then
16046 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16047 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16049 $as_echo_n "checking for $ac_word... " >&6; }
16050 if ${ac_cv_prog_OTOOL64+:} false; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16053 if test -n "$OTOOL64"; then
16054 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16055 else
16056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16057 for as_dir in $PATH
16059 IFS=$as_save_IFS
16060 test -z "$as_dir" && as_dir=.
16061 for ac_exec_ext in '' $ac_executable_extensions; do
16062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16063 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16065 break 2
16067 done
16068 done
16069 IFS=$as_save_IFS
16073 OTOOL64=$ac_cv_prog_OTOOL64
16074 if test -n "$OTOOL64"; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16076 $as_echo "$OTOOL64" >&6; }
16077 else
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16079 $as_echo "no" >&6; }
16084 if test -z "$ac_cv_prog_OTOOL64"; then
16085 ac_ct_OTOOL64=$OTOOL64
16086 # Extract the first word of "otool64", so it can be a program name with args.
16087 set dummy otool64; ac_word=$2
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16089 $as_echo_n "checking for $ac_word... " >&6; }
16090 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 if test -n "$ac_ct_OTOOL64"; then
16094 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16095 else
16096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16097 for as_dir in $PATH
16099 IFS=$as_save_IFS
16100 test -z "$as_dir" && as_dir=.
16101 for ac_exec_ext in '' $ac_executable_extensions; do
16102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16103 ac_cv_prog_ac_ct_OTOOL64="otool64"
16104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16105 break 2
16107 done
16108 done
16109 IFS=$as_save_IFS
16113 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16114 if test -n "$ac_ct_OTOOL64"; then
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16116 $as_echo "$ac_ct_OTOOL64" >&6; }
16117 else
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16119 $as_echo "no" >&6; }
16122 if test "x$ac_ct_OTOOL64" = x; then
16123 OTOOL64=":"
16124 else
16125 case $cross_compiling:$ac_tool_warned in
16126 yes:)
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16129 ac_tool_warned=yes ;;
16130 esac
16131 OTOOL64=$ac_ct_OTOOL64
16133 else
16134 OTOOL64="$ac_cv_prog_OTOOL64"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16164 $as_echo_n "checking for -single_module linker flag... " >&6; }
16165 if ${lt_cv_apple_cc_single_mod+:} false; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 lt_cv_apple_cc_single_mod=no
16169 if test -z "${LT_MULTI_MODULE}"; then
16170 # By default we will add the -single_module flag. You can override
16171 # by either setting the environment variable LT_MULTI_MODULE
16172 # non-empty at configure time, or by adding -multi_module to the
16173 # link flags.
16174 rm -rf libconftest.dylib*
16175 echo "int foo(void){return 1;}" > conftest.c
16176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16177 -dynamiclib -Wl,-single_module conftest.c" >&5
16178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16180 _lt_result=$?
16181 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16182 lt_cv_apple_cc_single_mod=yes
16183 else
16184 cat conftest.err >&5
16186 rm -rf libconftest.dylib*
16187 rm -f conftest.*
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16191 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16193 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16194 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16195 $as_echo_n "(cached) " >&6
16196 else
16197 lt_cv_ld_exported_symbols_list=no
16198 save_LDFLAGS=$LDFLAGS
16199 echo "_main" > conftest.sym
16200 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16205 main ()
16209 return 0;
16211 _ACEOF
16212 if ac_fn_c_try_link "$LINENO"; then :
16213 lt_cv_ld_exported_symbols_list=yes
16214 else
16215 lt_cv_ld_exported_symbols_list=no
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219 LDFLAGS="$save_LDFLAGS"
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16223 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16225 $as_echo_n "checking for -force_load linker flag... " >&6; }
16226 if ${lt_cv_ld_force_load+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 lt_cv_ld_force_load=no
16230 cat > conftest.c << _LT_EOF
16231 int forced_loaded() { return 2;}
16232 _LT_EOF
16233 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16234 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16235 echo "$AR cru libconftest.a conftest.o" >&5
16236 $AR cru libconftest.a conftest.o 2>&5
16237 cat > conftest.c << _LT_EOF
16238 int main() { return 0;}
16239 _LT_EOF
16240 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16241 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16242 _lt_result=$?
16243 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16244 lt_cv_ld_force_load=yes
16245 else
16246 cat conftest.err >&5
16248 rm -f conftest.err libconftest.a conftest conftest.c
16249 rm -rf conftest.dSYM
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16253 $as_echo "$lt_cv_ld_force_load" >&6; }
16254 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16255 # build without first building modern cctools / linker.
16256 case $host_cpu-$host_os in
16257 *-rhapsody* | *-darwin1.[012])
16258 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16259 *-darwin1.*)
16260 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16261 *-darwin*)
16262 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16263 # deployment target is forced to an earlier version.
16264 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16265 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16267 10.[012][,.]*)
16268 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16272 esac
16274 esac
16275 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16276 _lt_dar_single_mod='$single_module'
16278 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16279 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16280 else
16281 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16283 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16284 _lt_dsymutil='~$DSYMUTIL $lib || :'
16285 else
16286 _lt_dsymutil=
16289 esac
16292 for ac_header in dlfcn.h
16293 do :
16294 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16295 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16296 cat >>confdefs.h <<_ACEOF
16297 #define HAVE_DLFCN_H 1
16298 _ACEOF
16301 done
16307 # Set options
16311 enable_dlopen=no
16314 enable_win32_dll=no
16317 # Check whether --enable-shared was given.
16318 if test "${enable_shared+set}" = set; then :
16319 enableval=$enable_shared; p=${PACKAGE-default}
16320 case $enableval in
16321 yes) enable_shared=yes ;;
16322 no) enable_shared=no ;;
16324 enable_shared=no
16325 # Look at the argument we got. We use all the common list separators.
16326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16327 for pkg in $enableval; do
16328 IFS="$lt_save_ifs"
16329 if test "X$pkg" = "X$p"; then
16330 enable_shared=yes
16332 done
16333 IFS="$lt_save_ifs"
16335 esac
16336 else
16337 enable_shared=yes
16348 # Check whether --enable-static was given.
16349 if test "${enable_static+set}" = set; then :
16350 enableval=$enable_static; p=${PACKAGE-default}
16351 case $enableval in
16352 yes) enable_static=yes ;;
16353 no) enable_static=no ;;
16355 enable_static=no
16356 # Look at the argument we got. We use all the common list separators.
16357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16358 for pkg in $enableval; do
16359 IFS="$lt_save_ifs"
16360 if test "X$pkg" = "X$p"; then
16361 enable_static=yes
16363 done
16364 IFS="$lt_save_ifs"
16366 esac
16367 else
16368 enable_static=yes
16380 # Check whether --with-pic was given.
16381 if test "${with_pic+set}" = set; then :
16382 withval=$with_pic; pic_mode="$withval"
16383 else
16384 pic_mode=default
16388 test -z "$pic_mode" && pic_mode=default
16396 # Check whether --enable-fast-install was given.
16397 if test "${enable_fast_install+set}" = set; then :
16398 enableval=$enable_fast_install; p=${PACKAGE-default}
16399 case $enableval in
16400 yes) enable_fast_install=yes ;;
16401 no) enable_fast_install=no ;;
16403 enable_fast_install=no
16404 # Look at the argument we got. We use all the common list separators.
16405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16406 for pkg in $enableval; do
16407 IFS="$lt_save_ifs"
16408 if test "X$pkg" = "X$p"; then
16409 enable_fast_install=yes
16411 done
16412 IFS="$lt_save_ifs"
16414 esac
16415 else
16416 enable_fast_install=yes
16429 # This can be used to rebuild libtool when needed
16430 LIBTOOL_DEPS="$ltmain"
16432 # Always use our own libtool.
16433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16460 test -z "$LN_S" && LN_S="ln -s"
16475 if test -n "${ZSH_VERSION+set}" ; then
16476 setopt NO_GLOB_SUBST
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16480 $as_echo_n "checking for objdir... " >&6; }
16481 if ${lt_cv_objdir+:} false; then :
16482 $as_echo_n "(cached) " >&6
16483 else
16484 rm -f .libs 2>/dev/null
16485 mkdir .libs 2>/dev/null
16486 if test -d .libs; then
16487 lt_cv_objdir=.libs
16488 else
16489 # MS-DOS does not allow filenames that begin with a dot.
16490 lt_cv_objdir=_libs
16492 rmdir .libs 2>/dev/null
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16495 $as_echo "$lt_cv_objdir" >&6; }
16496 objdir=$lt_cv_objdir
16502 cat >>confdefs.h <<_ACEOF
16503 #define LT_OBJDIR "$lt_cv_objdir/"
16504 _ACEOF
16509 case $host_os in
16510 aix3*)
16511 # AIX sometimes has problems with the GCC collect2 program. For some
16512 # reason, if we set the COLLECT_NAMES environment variable, the problems
16513 # vanish in a puff of smoke.
16514 if test "X${COLLECT_NAMES+set}" != Xset; then
16515 COLLECT_NAMES=
16516 export COLLECT_NAMES
16519 esac
16521 # Global variables:
16522 ofile=libtool
16523 can_build_shared=yes
16525 # All known linkers require a `.a' archive for static linking (except MSVC,
16526 # which needs '.lib').
16527 libext=a
16529 with_gnu_ld="$lt_cv_prog_gnu_ld"
16531 old_CC="$CC"
16532 old_CFLAGS="$CFLAGS"
16534 # Set sane defaults for various variables
16535 test -z "$CC" && CC=cc
16536 test -z "$LTCC" && LTCC=$CC
16537 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16538 test -z "$LD" && LD=ld
16539 test -z "$ac_objext" && ac_objext=o
16541 for cc_temp in $compiler""; do
16542 case $cc_temp in
16543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16545 \-*) ;;
16546 *) break;;
16547 esac
16548 done
16549 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16552 # Only perform the check for file, if the check method requires it
16553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16554 case $deplibs_check_method in
16555 file_magic*)
16556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16559 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561 else
16562 case $MAGIC_CMD in
16563 [\\/*] | ?:[\\/]*)
16564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16567 lt_save_MAGIC_CMD="$MAGIC_CMD"
16568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16570 for ac_dir in $ac_dummy; do
16571 IFS="$lt_save_ifs"
16572 test -z "$ac_dir" && ac_dir=.
16573 if test -f $ac_dir/${ac_tool_prefix}file; then
16574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16575 if test -n "$file_magic_test_file"; then
16576 case $deplibs_check_method in
16577 "file_magic "*)
16578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16581 $EGREP "$file_magic_regex" > /dev/null; then
16583 else
16584 cat <<_LT_EOF 1>&2
16586 *** Warning: the command libtool uses to detect shared libraries,
16587 *** $file_magic_cmd, produces output that libtool cannot recognize.
16588 *** The result is that libtool may fail to recognize shared libraries
16589 *** as such. This will affect the creation of libtool libraries that
16590 *** depend on shared libraries, but programs linked with such libtool
16591 *** libraries will work regardless of this problem. Nevertheless, you
16592 *** may want to report the problem to your system manager and/or to
16593 *** bug-libtool@gnu.org
16595 _LT_EOF
16596 fi ;;
16597 esac
16599 break
16601 done
16602 IFS="$lt_save_ifs"
16603 MAGIC_CMD="$lt_save_MAGIC_CMD"
16605 esac
16608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16609 if test -n "$MAGIC_CMD"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16611 $as_echo "$MAGIC_CMD" >&6; }
16612 else
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16621 if test -z "$lt_cv_path_MAGIC_CMD"; then
16622 if test -n "$ac_tool_prefix"; then
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16624 $as_echo_n "checking for file... " >&6; }
16625 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 case $MAGIC_CMD in
16629 [\\/*] | ?:[\\/]*)
16630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16633 lt_save_MAGIC_CMD="$MAGIC_CMD"
16634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16636 for ac_dir in $ac_dummy; do
16637 IFS="$lt_save_ifs"
16638 test -z "$ac_dir" && ac_dir=.
16639 if test -f $ac_dir/file; then
16640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16641 if test -n "$file_magic_test_file"; then
16642 case $deplibs_check_method in
16643 "file_magic "*)
16644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16647 $EGREP "$file_magic_regex" > /dev/null; then
16649 else
16650 cat <<_LT_EOF 1>&2
16652 *** Warning: the command libtool uses to detect shared libraries,
16653 *** $file_magic_cmd, produces output that libtool cannot recognize.
16654 *** The result is that libtool may fail to recognize shared libraries
16655 *** as such. This will affect the creation of libtool libraries that
16656 *** depend on shared libraries, but programs linked with such libtool
16657 *** libraries will work regardless of this problem. Nevertheless, you
16658 *** may want to report the problem to your system manager and/or to
16659 *** bug-libtool@gnu.org
16661 _LT_EOF
16662 fi ;;
16663 esac
16665 break
16667 done
16668 IFS="$lt_save_ifs"
16669 MAGIC_CMD="$lt_save_MAGIC_CMD"
16671 esac
16674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16675 if test -n "$MAGIC_CMD"; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16677 $as_echo "$MAGIC_CMD" >&6; }
16678 else
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16680 $as_echo "no" >&6; }
16684 else
16685 MAGIC_CMD=:
16691 esac
16693 # Use C for the default configuration in the libtool script
16695 lt_save_CC="$CC"
16696 ac_ext=c
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16703 # Source file extension for C test sources.
16704 ac_ext=c
16706 # Object file extension for compiled C test sources.
16707 objext=o
16708 objext=$objext
16710 # Code to be used in simple compile tests
16711 lt_simple_compile_test_code="int some_variable = 0;"
16713 # Code to be used in simple link tests
16714 lt_simple_link_test_code='int main(){return(0);}'
16722 # If no C compiler was specified, use CC.
16723 LTCC=${LTCC-"$CC"}
16725 # If no C compiler flags were specified, use CFLAGS.
16726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16728 # Allow CC to be a program name with arguments.
16729 compiler=$CC
16731 # Save the default compiler, since it gets overwritten when the other
16732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16733 compiler_DEFAULT=$CC
16735 # save warnings/boilerplate of simple test code
16736 ac_outfile=conftest.$ac_objext
16737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16739 _lt_compiler_boilerplate=`cat conftest.err`
16740 $RM conftest*
16742 ac_outfile=conftest.$ac_objext
16743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16745 _lt_linker_boilerplate=`cat conftest.err`
16746 $RM -r conftest*
16749 ## CAVEAT EMPTOR:
16750 ## There is no encapsulation within the following macros, do not change
16751 ## the running order or otherwise move them around unless you know exactly
16752 ## what you are doing...
16753 if test -n "$compiler"; then
16755 lt_prog_compiler_no_builtin_flag=
16757 if test "$GCC" = yes; then
16758 case $cc_basename in
16759 nvcc*)
16760 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16763 esac
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16767 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16768 $as_echo_n "(cached) " >&6
16769 else
16770 lt_cv_prog_compiler_rtti_exceptions=no
16771 ac_outfile=conftest.$ac_objext
16772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16773 lt_compiler_flag="-fno-rtti -fno-exceptions"
16774 # Insert the option either (1) after the last *FLAGS variable, or
16775 # (2) before a word containing "conftest.", or (3) at the end.
16776 # Note that $ac_compile itself does not contain backslashes and begins
16777 # with a dollar sign (not a hyphen), so the echo should work correctly.
16778 # The option is referenced via a variable to avoid confusing sed.
16779 lt_compile=`echo "$ac_compile" | $SED \
16780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16782 -e 's:$: $lt_compiler_flag:'`
16783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16784 (eval "$lt_compile" 2>conftest.err)
16785 ac_status=$?
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 if (exit $ac_status) && test -s "$ac_outfile"; then
16789 # The compiler can only warn and ignore the option if not recognized
16790 # So say no if there are warnings other than the usual output.
16791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16794 lt_cv_prog_compiler_rtti_exceptions=yes
16797 $RM conftest*
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16805 else
16816 lt_prog_compiler_wl=
16817 lt_prog_compiler_pic=
16818 lt_prog_compiler_static=
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16823 if test "$GCC" = yes; then
16824 lt_prog_compiler_wl='-Wl,'
16825 lt_prog_compiler_static='-static'
16827 case $host_os in
16828 aix*)
16829 # All AIX code is PIC.
16830 if test "$host_cpu" = ia64; then
16831 # AIX 5 now supports IA64 processor
16832 lt_prog_compiler_static='-Bstatic'
16834 lt_prog_compiler_pic='-fPIC'
16837 amigaos*)
16838 case $host_cpu in
16839 powerpc)
16840 # see comment about AmigaOS4 .so support
16841 lt_prog_compiler_pic='-fPIC'
16843 m68k)
16844 # FIXME: we need at least 68020 code to build shared libraries, but
16845 # adding the `-m68020' flag to GCC prevents building anything better,
16846 # like `-m68040'.
16847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16849 esac
16852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16853 # PIC is the default for these OSes.
16856 mingw* | cygwin* | pw32* | os2* | cegcc*)
16857 # This hack is so that the source file can tell whether it is being
16858 # built for inclusion in a dll (and should export symbols for example).
16859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16860 # (--disable-auto-import) libraries
16861 lt_prog_compiler_pic='-DDLL_EXPORT'
16864 darwin* | rhapsody*)
16865 # PIC is the default on this platform
16866 # Common symbols not allowed in MH_DYLIB files
16867 lt_prog_compiler_pic='-fno-common'
16870 haiku*)
16871 # PIC is the default for Haiku.
16872 # The "-static" flag exists, but is broken.
16873 lt_prog_compiler_static=
16876 hpux*)
16877 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16878 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16879 # sets the default TLS model and affects inlining.
16880 case $host_cpu in
16881 hppa*64*)
16882 # +Z the default
16885 lt_prog_compiler_pic='-fPIC'
16887 esac
16890 interix[3-9]*)
16891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16892 # Instead, we relocate shared libraries at runtime.
16895 msdosdjgpp*)
16896 # Just because we use GCC doesn't mean we suddenly get shared libraries
16897 # on systems that don't support them.
16898 lt_prog_compiler_can_build_shared=no
16899 enable_shared=no
16902 *nto* | *qnx*)
16903 # QNX uses GNU C++, but need to define -shared option too, otherwise
16904 # it will coredump.
16905 lt_prog_compiler_pic='-fPIC -shared'
16908 sysv4*MP*)
16909 if test -d /usr/nec; then
16910 lt_prog_compiler_pic=-Kconform_pic
16915 lt_prog_compiler_pic='-fPIC'
16917 esac
16919 case $cc_basename in
16920 nvcc*) # Cuda Compiler Driver 2.2
16921 lt_prog_compiler_wl='-Xlinker '
16922 lt_prog_compiler_pic='-Xcompiler -fPIC'
16924 esac
16925 else
16926 # PORTME Check for flag to pass linker flags through the system compiler.
16927 case $host_os in
16928 aix*)
16929 lt_prog_compiler_wl='-Wl,'
16930 if test "$host_cpu" = ia64; then
16931 # AIX 5 now supports IA64 processor
16932 lt_prog_compiler_static='-Bstatic'
16933 else
16934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16938 mingw* | cygwin* | pw32* | os2* | cegcc*)
16939 # This hack is so that the source file can tell whether it is being
16940 # built for inclusion in a dll (and should export symbols for example).
16941 lt_prog_compiler_pic='-DDLL_EXPORT'
16944 hpux9* | hpux10* | hpux11*)
16945 lt_prog_compiler_wl='-Wl,'
16946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16947 # not for PA HP-UX.
16948 case $host_cpu in
16949 hppa*64*|ia64*)
16950 # +Z the default
16953 lt_prog_compiler_pic='+Z'
16955 esac
16956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16957 lt_prog_compiler_static='${wl}-a ${wl}archive'
16960 irix5* | irix6* | nonstopux*)
16961 lt_prog_compiler_wl='-Wl,'
16962 # PIC (with -KPIC) is the default.
16963 lt_prog_compiler_static='-non_shared'
16966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16967 case $cc_basename in
16968 # old Intel for x86_64 which still supported -KPIC.
16969 ecc*)
16970 lt_prog_compiler_wl='-Wl,'
16971 lt_prog_compiler_pic='-KPIC'
16972 lt_prog_compiler_static='-static'
16974 # icc used to be incompatible with GCC.
16975 # ICC 10 doesn't accept -KPIC any more.
16976 icc* | ifort*)
16977 lt_prog_compiler_wl='-Wl,'
16978 lt_prog_compiler_pic='-fPIC'
16979 lt_prog_compiler_static='-static'
16981 # Lahey Fortran 8.1.
16982 lf95*)
16983 lt_prog_compiler_wl='-Wl,'
16984 lt_prog_compiler_pic='--shared'
16985 lt_prog_compiler_static='--static'
16987 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16988 # Portland Group compilers (*not* the Pentium gcc compiler,
16989 # which looks to be a dead project)
16990 lt_prog_compiler_wl='-Wl,'
16991 lt_prog_compiler_pic='-fpic'
16992 lt_prog_compiler_static='-Bstatic'
16994 ccc*)
16995 lt_prog_compiler_wl='-Wl,'
16996 # All Alpha code is PIC.
16997 lt_prog_compiler_static='-non_shared'
16999 xl* | bgxl* | bgf* | mpixl*)
17000 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17001 lt_prog_compiler_wl='-Wl,'
17002 lt_prog_compiler_pic='-qpic'
17003 lt_prog_compiler_static='-qstaticlink'
17006 case `$CC -V 2>&1 | sed 5q` in
17007 *Sun\ F* | *Sun*Fortran*)
17008 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17009 lt_prog_compiler_pic='-KPIC'
17010 lt_prog_compiler_static='-Bstatic'
17011 lt_prog_compiler_wl=''
17013 *Sun\ C*)
17014 # Sun C 5.9
17015 lt_prog_compiler_pic='-KPIC'
17016 lt_prog_compiler_static='-Bstatic'
17017 lt_prog_compiler_wl='-Wl,'
17019 esac
17021 esac
17024 newsos6)
17025 lt_prog_compiler_pic='-KPIC'
17026 lt_prog_compiler_static='-Bstatic'
17029 *nto* | *qnx*)
17030 # QNX uses GNU C++, but need to define -shared option too, otherwise
17031 # it will coredump.
17032 lt_prog_compiler_pic='-fPIC -shared'
17035 osf3* | osf4* | osf5*)
17036 lt_prog_compiler_wl='-Wl,'
17037 # All OSF/1 code is PIC.
17038 lt_prog_compiler_static='-non_shared'
17041 rdos*)
17042 lt_prog_compiler_static='-non_shared'
17045 solaris*)
17046 lt_prog_compiler_pic='-KPIC'
17047 lt_prog_compiler_static='-Bstatic'
17048 case $cc_basename in
17049 f77* | f90* | f95*)
17050 lt_prog_compiler_wl='-Qoption ld ';;
17052 lt_prog_compiler_wl='-Wl,';;
17053 esac
17056 sunos4*)
17057 lt_prog_compiler_wl='-Qoption ld '
17058 lt_prog_compiler_pic='-PIC'
17059 lt_prog_compiler_static='-Bstatic'
17062 sysv4 | sysv4.2uw2* | sysv4.3*)
17063 lt_prog_compiler_wl='-Wl,'
17064 lt_prog_compiler_pic='-KPIC'
17065 lt_prog_compiler_static='-Bstatic'
17068 sysv4*MP*)
17069 if test -d /usr/nec ;then
17070 lt_prog_compiler_pic='-Kconform_pic'
17071 lt_prog_compiler_static='-Bstatic'
17075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17076 lt_prog_compiler_wl='-Wl,'
17077 lt_prog_compiler_pic='-KPIC'
17078 lt_prog_compiler_static='-Bstatic'
17081 unicos*)
17082 lt_prog_compiler_wl='-Wl,'
17083 lt_prog_compiler_can_build_shared=no
17086 uts4*)
17087 lt_prog_compiler_pic='-pic'
17088 lt_prog_compiler_static='-Bstatic'
17092 lt_prog_compiler_can_build_shared=no
17094 esac
17097 case $host_os in
17098 # For platforms which do not support PIC, -DPIC is meaningless:
17099 *djgpp*)
17100 lt_prog_compiler_pic=
17103 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17105 esac
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17107 $as_echo "$lt_prog_compiler_pic" >&6; }
17115 # Check to make sure the PIC flag actually works.
17117 if test -n "$lt_prog_compiler_pic"; then
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17119 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17120 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 lt_cv_prog_compiler_pic_works=no
17124 ac_outfile=conftest.$ac_objext
17125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17126 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17127 # Insert the option either (1) after the last *FLAGS variable, or
17128 # (2) before a word containing "conftest.", or (3) at the end.
17129 # Note that $ac_compile itself does not contain backslashes and begins
17130 # with a dollar sign (not a hyphen), so the echo should work correctly.
17131 # The option is referenced via a variable to avoid confusing sed.
17132 lt_compile=`echo "$ac_compile" | $SED \
17133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17135 -e 's:$: $lt_compiler_flag:'`
17136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17137 (eval "$lt_compile" 2>conftest.err)
17138 ac_status=$?
17139 cat conftest.err >&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 if (exit $ac_status) && test -s "$ac_outfile"; then
17142 # The compiler can only warn and ignore the option if not recognized
17143 # So say no if there are warnings other than the usual output.
17144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17147 lt_cv_prog_compiler_pic_works=yes
17150 $RM conftest*
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17154 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17156 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17157 case $lt_prog_compiler_pic in
17158 "" | " "*) ;;
17159 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17160 esac
17161 else
17162 lt_prog_compiler_pic=
17163 lt_prog_compiler_can_build_shared=no
17174 # Check to make sure the static flag actually works.
17176 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17178 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17179 if ${lt_cv_prog_compiler_static_works+:} false; then :
17180 $as_echo_n "(cached) " >&6
17181 else
17182 lt_cv_prog_compiler_static_works=no
17183 save_LDFLAGS="$LDFLAGS"
17184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17185 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17187 # The linker can only warn and ignore the option if not recognized
17188 # So say no if there are warnings
17189 if test -s conftest.err; then
17190 # Append any errors to the config.log.
17191 cat conftest.err 1>&5
17192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17194 if diff conftest.exp conftest.er2 >/dev/null; then
17195 lt_cv_prog_compiler_static_works=yes
17197 else
17198 lt_cv_prog_compiler_static_works=yes
17201 $RM -r conftest*
17202 LDFLAGS="$save_LDFLAGS"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17206 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17208 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17210 else
17211 lt_prog_compiler_static=
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17222 if ${lt_cv_prog_compiler_c_o+:} false; then :
17223 $as_echo_n "(cached) " >&6
17224 else
17225 lt_cv_prog_compiler_c_o=no
17226 $RM -r conftest 2>/dev/null
17227 mkdir conftest
17228 cd conftest
17229 mkdir out
17230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17232 lt_compiler_flag="-o out/conftest2.$ac_objext"
17233 # Insert the option either (1) after the last *FLAGS variable, or
17234 # (2) before a word containing "conftest.", or (3) at the end.
17235 # Note that $ac_compile itself does not contain backslashes and begins
17236 # with a dollar sign (not a hyphen), so the echo should work correctly.
17237 lt_compile=`echo "$ac_compile" | $SED \
17238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17240 -e 's:$: $lt_compiler_flag:'`
17241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17242 (eval "$lt_compile" 2>out/conftest.err)
17243 ac_status=$?
17244 cat out/conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17247 then
17248 # The compiler can only warn and ignore the option if not recognized
17249 # So say no if there are warnings
17250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17253 lt_cv_prog_compiler_c_o=yes
17256 chmod u+w . 2>&5
17257 $RM conftest*
17258 # SGI C++ compiler will create directory out/ii_files/ for
17259 # template instantiation
17260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17261 $RM out/* && rmdir out
17262 cd ..
17263 $RM -r conftest
17264 $RM conftest*
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17276 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17277 if ${lt_cv_prog_compiler_c_o+:} false; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 lt_cv_prog_compiler_c_o=no
17281 $RM -r conftest 2>/dev/null
17282 mkdir conftest
17283 cd conftest
17284 mkdir out
17285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17287 lt_compiler_flag="-o out/conftest2.$ac_objext"
17288 # Insert the option either (1) after the last *FLAGS variable, or
17289 # (2) before a word containing "conftest.", or (3) at the end.
17290 # Note that $ac_compile itself does not contain backslashes and begins
17291 # with a dollar sign (not a hyphen), so the echo should work correctly.
17292 lt_compile=`echo "$ac_compile" | $SED \
17293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17295 -e 's:$: $lt_compiler_flag:'`
17296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17297 (eval "$lt_compile" 2>out/conftest.err)
17298 ac_status=$?
17299 cat out/conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17302 then
17303 # The compiler can only warn and ignore the option if not recognized
17304 # So say no if there are warnings
17305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17308 lt_cv_prog_compiler_c_o=yes
17311 chmod u+w . 2>&5
17312 $RM conftest*
17313 # SGI C++ compiler will create directory out/ii_files/ for
17314 # template instantiation
17315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17316 $RM out/* && rmdir out
17317 cd ..
17318 $RM -r conftest
17319 $RM conftest*
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17323 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17328 hard_links="nottested"
17329 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17330 # do not overwrite the value of need_locks provided by the user
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17332 $as_echo_n "checking if we can lock with hard links... " >&6; }
17333 hard_links=yes
17334 $RM conftest*
17335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17336 touch conftest.a
17337 ln conftest.a conftest.b 2>&5 || hard_links=no
17338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17340 $as_echo "$hard_links" >&6; }
17341 if test "$hard_links" = no; then
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17343 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17344 need_locks=warn
17346 else
17347 need_locks=no
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17356 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17358 runpath_var=
17359 allow_undefined_flag=
17360 always_export_symbols=no
17361 archive_cmds=
17362 archive_expsym_cmds=
17363 compiler_needs_object=no
17364 enable_shared_with_static_runtimes=no
17365 export_dynamic_flag_spec=
17366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17367 hardcode_automatic=no
17368 hardcode_direct=no
17369 hardcode_direct_absolute=no
17370 hardcode_libdir_flag_spec=
17371 hardcode_libdir_flag_spec_ld=
17372 hardcode_libdir_separator=
17373 hardcode_minus_L=no
17374 hardcode_shlibpath_var=unsupported
17375 inherit_rpath=no
17376 link_all_deplibs=unknown
17377 module_cmds=
17378 module_expsym_cmds=
17379 old_archive_from_new_cmds=
17380 old_archive_from_expsyms_cmds=
17381 thread_safe_flag_spec=
17382 whole_archive_flag_spec=
17383 # include_expsyms should be a list of space-separated symbols to be *always*
17384 # included in the symbol list
17385 include_expsyms=
17386 # exclude_expsyms can be an extended regexp of symbols to exclude
17387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17389 # as well as any symbol that contains `d'.
17390 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17392 # platforms (ab)use it in PIC code, but their linkers get confused if
17393 # the symbol is explicitly referenced. Since portable code cannot
17394 # rely on this symbol name, it's probably fine to never include it in
17395 # preloaded symbol tables.
17396 # Exclude shared library initialization/finalization symbols.
17397 extract_expsyms_cmds=
17399 case $host_os in
17400 cygwin* | mingw* | pw32* | cegcc*)
17401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17402 # When not using gcc, we currently assume that we are using
17403 # Microsoft Visual C++.
17404 if test "$GCC" != yes; then
17405 with_gnu_ld=no
17408 interix*)
17409 # we just hope/assume this is gcc and not c89 (= MSVC++)
17410 with_gnu_ld=yes
17412 openbsd*)
17413 with_gnu_ld=no
17415 esac
17417 ld_shlibs=yes
17419 # On some targets, GNU ld is compatible enough with the native linker
17420 # that we're better off using the native interface for both.
17421 lt_use_gnu_ld_interface=no
17422 if test "$with_gnu_ld" = yes; then
17423 case $host_os in
17424 aix*)
17425 # The AIX port of GNU ld has always aspired to compatibility
17426 # with the native linker. However, as the warning in the GNU ld
17427 # block says, versions before 2.19.5* couldn't really create working
17428 # shared libraries, regardless of the interface used.
17429 case `$LD -v 2>&1` in
17430 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17431 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17432 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17434 lt_use_gnu_ld_interface=yes
17436 esac
17439 lt_use_gnu_ld_interface=yes
17441 esac
17444 if test "$lt_use_gnu_ld_interface" = yes; then
17445 # If archive_cmds runs LD, not CC, wlarc should be empty
17446 wlarc='${wl}'
17448 # Set some defaults for GNU ld with shared library support. These
17449 # are reset later if shared libraries are not supported. Putting them
17450 # here allows them to be overridden if necessary.
17451 runpath_var=LD_RUN_PATH
17452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17453 export_dynamic_flag_spec='${wl}--export-dynamic'
17454 # ancient GNU ld didn't support --whole-archive et. al.
17455 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17457 else
17458 whole_archive_flag_spec=
17460 supports_anon_versioning=no
17461 case `$LD -v 2>&1` in
17462 *GNU\ gold*) supports_anon_versioning=yes ;;
17463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17466 *\ 2.11.*) ;; # other 2.11 versions
17467 *) supports_anon_versioning=yes ;;
17468 esac
17470 # See if GNU ld supports shared libraries.
17471 case $host_os in
17472 aix[3-9]*)
17473 # On AIX/PPC, the GNU linker is very broken
17474 if test "$host_cpu" != ia64; then
17475 ld_shlibs=no
17476 cat <<_LT_EOF 1>&2
17478 *** Warning: the GNU linker, at least up to release 2.19, is reported
17479 *** to be unable to reliably create shared libraries on AIX.
17480 *** Therefore, libtool is disabling shared libraries support. If you
17481 *** really care for shared libraries, you may want to install binutils
17482 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17483 *** You will then need to restart the configuration process.
17485 _LT_EOF
17489 amigaos*)
17490 case $host_cpu in
17491 powerpc)
17492 # see comment about AmigaOS4 .so support
17493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17494 archive_expsym_cmds=''
17496 m68k)
17497 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)'
17498 hardcode_libdir_flag_spec='-L$libdir'
17499 hardcode_minus_L=yes
17501 esac
17504 beos*)
17505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17506 allow_undefined_flag=unsupported
17507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17508 # support --undefined. This deserves some investigation. FIXME
17509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510 else
17511 ld_shlibs=no
17515 cygwin* | mingw* | pw32* | cegcc*)
17516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17517 # as there is no search path for DLLs.
17518 hardcode_libdir_flag_spec='-L$libdir'
17519 export_dynamic_flag_spec='${wl}--export-all-symbols'
17520 allow_undefined_flag=unsupported
17521 always_export_symbols=no
17522 enable_shared_with_static_runtimes=yes
17523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17525 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17527 # If the export-symbols file already is a .def file (1st line
17528 # is EXPORTS), use it as is; otherwise, prepend...
17529 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17530 cp $export_symbols $output_objdir/$soname.def;
17531 else
17532 echo EXPORTS > $output_objdir/$soname.def;
17533 cat $export_symbols >> $output_objdir/$soname.def;
17535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17536 else
17537 ld_shlibs=no
17541 haiku*)
17542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 link_all_deplibs=yes
17546 interix[3-9]*)
17547 hardcode_direct=no
17548 hardcode_shlibpath_var=no
17549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17550 export_dynamic_flag_spec='${wl}-E'
17551 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17552 # Instead, shared libraries are loaded at an image base (0x10000000 by
17553 # default) and relocated if they conflict, which is a slow very memory
17554 # consuming and fragmenting process. To avoid this, we pick a random,
17555 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17556 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17558 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'
17561 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17562 tmp_diet=no
17563 if test "$host_os" = linux-dietlibc; then
17564 case $cc_basename in
17565 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17566 esac
17568 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17569 && test "$tmp_diet" = no
17570 then
17571 tmp_addflag=' $pic_flag'
17572 tmp_sharedflag='-shared'
17573 case $cc_basename,$host_cpu in
17574 pgcc*) # Portland Group C compiler
17575 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'
17576 tmp_addflag=' $pic_flag'
17578 pgf77* | pgf90* | pgf95* | pgfortran*)
17579 # Portland Group f77 and f90 compilers
17580 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'
17581 tmp_addflag=' $pic_flag -Mnomain' ;;
17582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17583 tmp_addflag=' -i_dynamic' ;;
17584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17585 tmp_addflag=' -i_dynamic -nofor_main' ;;
17586 ifc* | ifort*) # Intel Fortran compiler
17587 tmp_addflag=' -nofor_main' ;;
17588 lf95*) # Lahey Fortran 8.1
17589 whole_archive_flag_spec=
17590 tmp_sharedflag='--shared' ;;
17591 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17592 tmp_sharedflag='-qmkshrobj'
17593 tmp_addflag= ;;
17594 nvcc*) # Cuda Compiler Driver 2.2
17595 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'
17596 compiler_needs_object=yes
17598 esac
17599 case `$CC -V 2>&1 | sed 5q` in
17600 *Sun\ C*) # Sun C 5.9
17601 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'
17602 compiler_needs_object=yes
17603 tmp_sharedflag='-G' ;;
17604 *Sun\ F*) # Sun Fortran 8.3
17605 tmp_sharedflag='-G' ;;
17606 esac
17607 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609 if test "x$supports_anon_versioning" = xyes; then
17610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17612 echo "local: *; };" >> $output_objdir/$libname.ver~
17613 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17616 case $cc_basename in
17617 xlf* | bgf* | bgxlf* | mpixlf*)
17618 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17619 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17620 hardcode_libdir_flag_spec=
17621 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17622 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17623 if test "x$supports_anon_versioning" = xyes; then
17624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17626 echo "local: *; };" >> $output_objdir/$libname.ver~
17627 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17630 esac
17631 else
17632 ld_shlibs=no
17636 netbsd*)
17637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17638 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17639 wlarc=
17640 else
17641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646 solaris*)
17647 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17648 ld_shlibs=no
17649 cat <<_LT_EOF 1>&2
17651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17652 *** create shared libraries on Solaris systems. Therefore, libtool
17653 *** is disabling shared libraries support. We urge you to upgrade GNU
17654 *** binutils to release 2.9.1 or newer. Another option is to modify
17655 *** your PATH or compiler configuration so that the native linker is
17656 *** used, and then restart.
17658 _LT_EOF
17659 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17662 else
17663 ld_shlibs=no
17667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17668 case `$LD -v 2>&1` in
17669 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17670 ld_shlibs=no
17671 cat <<_LT_EOF 1>&2
17673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17674 *** reliably create shared libraries on SCO systems. Therefore, libtool
17675 *** is disabling shared libraries support. We urge you to upgrade GNU
17676 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17677 *** your PATH or compiler configuration so that the native linker is
17678 *** used, and then restart.
17680 _LT_EOF
17683 # For security reasons, it is highly recommended that you always
17684 # use absolute paths for naming shared libraries, and exclude the
17685 # DT_RUNPATH tag from executables and libraries. But doing so
17686 # requires that you compile everything twice, which is a pain.
17687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17691 else
17692 ld_shlibs=no
17695 esac
17698 sunos4*)
17699 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17700 wlarc=
17701 hardcode_direct=yes
17702 hardcode_shlibpath_var=no
17706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17709 else
17710 ld_shlibs=no
17713 esac
17715 if test "$ld_shlibs" = no; then
17716 runpath_var=
17717 hardcode_libdir_flag_spec=
17718 export_dynamic_flag_spec=
17719 whole_archive_flag_spec=
17721 else
17722 # PORTME fill in a description of your system's linker (not GNU ld)
17723 case $host_os in
17724 aix3*)
17725 allow_undefined_flag=unsupported
17726 always_export_symbols=yes
17727 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'
17728 # Note: this linker hardcodes the directories in LIBPATH if there
17729 # are no directories specified by -L.
17730 hardcode_minus_L=yes
17731 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17732 # Neither direct hardcoding nor static linking is supported with a
17733 # broken collect2.
17734 hardcode_direct=unsupported
17738 aix[4-9]*)
17739 if test "$host_cpu" = ia64; then
17740 # On IA64, the linker does run time linking by default, so we don't
17741 # have to do anything special.
17742 aix_use_runtimelinking=no
17743 exp_sym_flag='-Bexport'
17744 no_entry_flag=""
17745 else
17746 # If we're using GNU nm, then we don't want the "-C" option.
17747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17748 # Also, AIX nm treats weak defined symbols like other global
17749 # defined symbols, whereas GNU nm marks them as "W".
17750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17751 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'
17752 else
17753 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'
17755 aix_use_runtimelinking=no
17757 # Test if we are trying to use run time linking or normal
17758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17759 # need to do runtime linking.
17760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17761 for ld_flag in $LDFLAGS; do
17762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17763 aix_use_runtimelinking=yes
17764 break
17766 done
17768 esac
17770 exp_sym_flag='-bexport'
17771 no_entry_flag='-bnoentry'
17774 # When large executables or shared objects are built, AIX ld can
17775 # have problems creating the table of contents. If linking a library
17776 # or program results in "error TOC overflow" add -mminimal-toc to
17777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17780 archive_cmds=''
17781 hardcode_direct=yes
17782 hardcode_direct_absolute=yes
17783 hardcode_libdir_separator=':'
17784 link_all_deplibs=yes
17785 file_list_spec='${wl}-f,'
17787 if test "$GCC" = yes; then
17788 case $host_os in aix4.[012]|aix4.[012].*)
17789 # We only want to do this on AIX 4.2 and lower, the check
17790 # below for broken collect2 doesn't work under 4.3+
17791 collect2name=`${CC} -print-prog-name=collect2`
17792 if test -f "$collect2name" &&
17793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17794 then
17795 # We have reworked collect2
17797 else
17798 # We have old collect2
17799 hardcode_direct=unsupported
17800 # It fails to find uninstalled libraries when the uninstalled
17801 # path is not listed in the libpath. Setting hardcode_minus_L
17802 # to unsupported forces relinking
17803 hardcode_minus_L=yes
17804 hardcode_libdir_flag_spec='-L$libdir'
17805 hardcode_libdir_separator=
17808 esac
17809 shared_flag='-shared'
17810 if test "$aix_use_runtimelinking" = yes; then
17811 shared_flag="$shared_flag "'${wl}-G'
17813 else
17814 # not using gcc
17815 if test "$host_cpu" = ia64; then
17816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17817 # chokes on -Wl,-G. The following line is correct:
17818 shared_flag='-G'
17819 else
17820 if test "$aix_use_runtimelinking" = yes; then
17821 shared_flag='${wl}-G'
17822 else
17823 shared_flag='${wl}-bM:SRE'
17828 export_dynamic_flag_spec='${wl}-bexpall'
17829 # It seems that -bexpall does not export symbols beginning with
17830 # underscore (_), so it is better to generate a list of symbols to export.
17831 always_export_symbols=yes
17832 if test "$aix_use_runtimelinking" = yes; then
17833 # Warning - without using the other runtime loading flags (-brtl),
17834 # -berok will link without error, but may produce a broken library.
17835 allow_undefined_flag='-berok'
17836 # Determine the default libpath from the value encoded in an
17837 # empty executable.
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17842 main ()
17846 return 0;
17848 _ACEOF
17849 if ac_fn_c_try_link "$LINENO"; then :
17851 lt_aix_libpath_sed='
17852 /Import File Strings/,/^$/ {
17853 /^0/ {
17854 s/^0 *\(.*\)$/\1/
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864 rm -f core conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17868 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17869 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"
17870 else
17871 if test "$host_cpu" = ia64; then
17872 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17873 allow_undefined_flag="-z nodefs"
17874 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"
17875 else
17876 # Determine the default libpath from the value encoded in an
17877 # empty executable.
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h. */
17882 main ()
17886 return 0;
17888 _ACEOF
17889 if ac_fn_c_try_link "$LINENO"; then :
17891 lt_aix_libpath_sed='
17892 /Import File Strings/,/^$/ {
17893 /^0/ {
17894 s/^0 *\(.*\)$/\1/
17898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 # Check for a 64-bit object if we didn't find anything.
17900 if test -z "$aix_libpath"; then
17901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17904 rm -f core conftest.err conftest.$ac_objext \
17905 conftest$ac_exeext conftest.$ac_ext
17906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17909 # Warning - without using the other run time loading flags,
17910 # -berok will link without error, but may produce a broken library.
17911 no_undefined_flag=' ${wl}-bernotok'
17912 allow_undefined_flag=' ${wl}-berok'
17913 if test "$with_gnu_ld" = yes; then
17914 # We only use this code for GNU lds that support --whole-archive.
17915 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17916 else
17917 # Exported symbols can be pulled into shared objects from archives
17918 whole_archive_flag_spec='$convenience'
17920 archive_cmds_need_lc=yes
17921 # This is similar to how AIX traditionally builds its shared libraries.
17922 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'
17927 amigaos*)
17928 case $host_cpu in
17929 powerpc)
17930 # see comment about AmigaOS4 .so support
17931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17932 archive_expsym_cmds=''
17934 m68k)
17935 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)'
17936 hardcode_libdir_flag_spec='-L$libdir'
17937 hardcode_minus_L=yes
17939 esac
17942 bsdi[45]*)
17943 export_dynamic_flag_spec=-rdynamic
17946 cygwin* | mingw* | pw32* | cegcc*)
17947 # When not using gcc, we currently assume that we are using
17948 # Microsoft Visual C++.
17949 # hardcode_libdir_flag_spec is actually meaningless, as there is
17950 # no search path for DLLs.
17951 hardcode_libdir_flag_spec=' '
17952 allow_undefined_flag=unsupported
17953 # Tell ltmain to make .lib files, not .a files.
17954 libext=lib
17955 # Tell ltmain to make .dll files, not .so files.
17956 shrext_cmds=".dll"
17957 # FIXME: Setting linknames here is a bad hack.
17958 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17959 # The linker will automatically build a .lib file if we build a DLL.
17960 old_archive_from_new_cmds='true'
17961 # FIXME: Should let the user specify the lib program.
17962 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17963 fix_srcfile_path='`cygpath -w "$srcfile"`'
17964 enable_shared_with_static_runtimes=yes
17967 darwin* | rhapsody*)
17970 archive_cmds_need_lc=no
17971 hardcode_direct=no
17972 hardcode_automatic=yes
17973 hardcode_shlibpath_var=unsupported
17974 if test "$lt_cv_ld_force_load" = "yes"; then
17975 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\"`'
17976 else
17977 whole_archive_flag_spec=''
17979 link_all_deplibs=yes
17980 allow_undefined_flag="$_lt_dar_allow_undefined"
17981 case $cc_basename in
17982 ifort*) _lt_dar_can_shared=yes ;;
17983 *) _lt_dar_can_shared=$GCC ;;
17984 esac
17985 if test "$_lt_dar_can_shared" = "yes"; then
17986 output_verbose_link_cmd=func_echo_all
17987 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17988 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17989 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}"
17990 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}"
17992 else
17993 ld_shlibs=no
17998 dgux*)
17999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18000 hardcode_libdir_flag_spec='-L$libdir'
18001 hardcode_shlibpath_var=no
18004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18005 # support. Future versions do this automatically, but an explicit c++rt0.o
18006 # does not break anything, and helps significantly (at the cost of a little
18007 # extra space).
18008 freebsd2.2*)
18009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18010 hardcode_libdir_flag_spec='-R$libdir'
18011 hardcode_direct=yes
18012 hardcode_shlibpath_var=no
18015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18016 freebsd2.*)
18017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_direct=yes
18019 hardcode_minus_L=yes
18020 hardcode_shlibpath_var=no
18023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18024 freebsd* | dragonfly*)
18025 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18026 hardcode_libdir_flag_spec='-R$libdir'
18027 hardcode_direct=yes
18028 hardcode_shlibpath_var=no
18031 hpux9*)
18032 if test "$GCC" = yes; then
18033 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'
18034 else
18035 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'
18037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18038 hardcode_libdir_separator=:
18039 hardcode_direct=yes
18041 # hardcode_minus_L: Not really in the search PATH,
18042 # but as the default location of the library.
18043 hardcode_minus_L=yes
18044 export_dynamic_flag_spec='${wl}-E'
18047 hpux10*)
18048 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18050 else
18051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18053 if test "$with_gnu_ld" = no; then
18054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18055 hardcode_libdir_flag_spec_ld='+b $libdir'
18056 hardcode_libdir_separator=:
18057 hardcode_direct=yes
18058 hardcode_direct_absolute=yes
18059 export_dynamic_flag_spec='${wl}-E'
18060 # hardcode_minus_L: Not really in the search PATH,
18061 # but as the default location of the library.
18062 hardcode_minus_L=yes
18066 hpux11*)
18067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18068 case $host_cpu in
18069 hppa*64*)
18070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18072 ia64*)
18073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18078 esac
18079 else
18080 case $host_cpu in
18081 hppa*64*)
18082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18084 ia64*)
18085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18089 # Older versions of the 11.00 compiler do not understand -b yet
18090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18092 $as_echo_n "checking if $CC understands -b... " >&6; }
18093 if ${lt_cv_prog_compiler__b+:} false; then :
18094 $as_echo_n "(cached) " >&6
18095 else
18096 lt_cv_prog_compiler__b=no
18097 save_LDFLAGS="$LDFLAGS"
18098 LDFLAGS="$LDFLAGS -b"
18099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18101 # The linker can only warn and ignore the option if not recognized
18102 # So say no if there are warnings
18103 if test -s conftest.err; then
18104 # Append any errors to the config.log.
18105 cat conftest.err 1>&5
18106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18108 if diff conftest.exp conftest.er2 >/dev/null; then
18109 lt_cv_prog_compiler__b=yes
18111 else
18112 lt_cv_prog_compiler__b=yes
18115 $RM -r conftest*
18116 LDFLAGS="$save_LDFLAGS"
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18122 if test x"$lt_cv_prog_compiler__b" = xyes; then
18123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18124 else
18125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18129 esac
18131 if test "$with_gnu_ld" = no; then
18132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18133 hardcode_libdir_separator=:
18135 case $host_cpu in
18136 hppa*64*|ia64*)
18137 hardcode_direct=no
18138 hardcode_shlibpath_var=no
18141 hardcode_direct=yes
18142 hardcode_direct_absolute=yes
18143 export_dynamic_flag_spec='${wl}-E'
18145 # hardcode_minus_L: Not really in the search PATH,
18146 # but as the default location of the library.
18147 hardcode_minus_L=yes
18149 esac
18153 irix5* | irix6* | nonstopux*)
18154 if test "$GCC" = yes; then
18155 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'
18156 # Try to use the -exported_symbol ld option, if it does not
18157 # work, assume that -exports_file does not work either and
18158 # implicitly export all symbols.
18159 save_LDFLAGS="$LDFLAGS"
18160 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18163 int foo(void) {}
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166 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'
18169 rm -f core conftest.err conftest.$ac_objext \
18170 conftest$ac_exeext conftest.$ac_ext
18171 LDFLAGS="$save_LDFLAGS"
18172 else
18173 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'
18174 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'
18176 archive_cmds_need_lc='no'
18177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18178 hardcode_libdir_separator=:
18179 inherit_rpath=yes
18180 link_all_deplibs=yes
18183 netbsd*)
18184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18186 else
18187 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18189 hardcode_libdir_flag_spec='-R$libdir'
18190 hardcode_direct=yes
18191 hardcode_shlibpath_var=no
18194 newsos6)
18195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_direct=yes
18197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18198 hardcode_libdir_separator=:
18199 hardcode_shlibpath_var=no
18202 *nto* | *qnx*)
18205 openbsd*)
18206 if test -f /usr/libexec/ld.so; then
18207 hardcode_direct=yes
18208 hardcode_shlibpath_var=no
18209 hardcode_direct_absolute=yes
18210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18212 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18214 export_dynamic_flag_spec='${wl}-E'
18215 else
18216 case $host_os in
18217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219 hardcode_libdir_flag_spec='-R$libdir'
18222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18225 esac
18227 else
18228 ld_shlibs=no
18232 os2*)
18233 hardcode_libdir_flag_spec='-L$libdir'
18234 hardcode_minus_L=yes
18235 allow_undefined_flag=unsupported
18236 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'
18237 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18240 osf3*)
18241 if test "$GCC" = yes; then
18242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18243 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'
18244 else
18245 allow_undefined_flag=' -expect_unresolved \*'
18246 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'
18248 archive_cmds_need_lc='no'
18249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18250 hardcode_libdir_separator=:
18253 osf4* | osf5*) # as osf3* with the addition of -msym flag
18254 if test "$GCC" = yes; then
18255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18256 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'
18257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18258 else
18259 allow_undefined_flag=' -expect_unresolved \*'
18260 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'
18261 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~
18262 $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'
18264 # Both c and cxx compiler support -rpath directly
18265 hardcode_libdir_flag_spec='-rpath $libdir'
18267 archive_cmds_need_lc='no'
18268 hardcode_libdir_separator=:
18271 solaris*)
18272 no_undefined_flag=' -z defs'
18273 if test "$GCC" = yes; then
18274 wlarc='${wl}'
18275 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18277 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18278 else
18279 case `$CC -V 2>&1` in
18280 *"Compilers 5.0"*)
18281 wlarc=''
18282 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18287 wlarc='${wl}'
18288 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18290 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18292 esac
18294 hardcode_libdir_flag_spec='-R$libdir'
18295 hardcode_shlibpath_var=no
18296 case $host_os in
18297 solaris2.[0-5] | solaris2.[0-5].*) ;;
18299 # The compiler driver will combine and reorder linker options,
18300 # but understands `-z linker_flag'. GCC discards it without `$wl',
18301 # but is careful enough not to reorder.
18302 # Supported since Solaris 2.6 (maybe 2.5.1?)
18303 if test "$GCC" = yes; then
18304 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18305 else
18306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18309 esac
18310 link_all_deplibs=yes
18313 sunos4*)
18314 if test "x$host_vendor" = xsequent; then
18315 # Use $CC to link under sequent, because it throws in some extra .o
18316 # files that make .init and .fini sections work.
18317 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18318 else
18319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18321 hardcode_libdir_flag_spec='-L$libdir'
18322 hardcode_direct=yes
18323 hardcode_minus_L=yes
18324 hardcode_shlibpath_var=no
18327 sysv4)
18328 case $host_vendor in
18329 sni)
18330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331 hardcode_direct=yes # is this really true???
18333 siemens)
18334 ## LD is ld it makes a PLAMLIB
18335 ## CC just makes a GrossModule.
18336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18337 reload_cmds='$CC -r -o $output$reload_objs'
18338 hardcode_direct=no
18340 motorola)
18341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18344 esac
18345 runpath_var='LD_RUN_PATH'
18346 hardcode_shlibpath_var=no
18349 sysv4.3*)
18350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351 hardcode_shlibpath_var=no
18352 export_dynamic_flag_spec='-Bexport'
18355 sysv4*MP*)
18356 if test -d /usr/nec; then
18357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358 hardcode_shlibpath_var=no
18359 runpath_var=LD_RUN_PATH
18360 hardcode_runpath_var=yes
18361 ld_shlibs=yes
18365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18366 no_undefined_flag='${wl}-z,text'
18367 archive_cmds_need_lc=no
18368 hardcode_shlibpath_var=no
18369 runpath_var='LD_RUN_PATH'
18371 if test "$GCC" = yes; then
18372 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18373 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18374 else
18375 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18376 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380 sysv5* | sco3.2v5* | sco5v6*)
18381 # Note: We can NOT use -z defs as we might desire, because we do not
18382 # link with -lc, and that would cause any symbols used from libc to
18383 # always be unresolved, which means just about no library would
18384 # ever link correctly. If we're not using GNU ld we use -z text
18385 # though, which does catch some bad symbols but isn't as heavy-handed
18386 # as -z defs.
18387 no_undefined_flag='${wl}-z,text'
18388 allow_undefined_flag='${wl}-z,nodefs'
18389 archive_cmds_need_lc=no
18390 hardcode_shlibpath_var=no
18391 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18392 hardcode_libdir_separator=':'
18393 link_all_deplibs=yes
18394 export_dynamic_flag_spec='${wl}-Bexport'
18395 runpath_var='LD_RUN_PATH'
18397 if test "$GCC" = yes; then
18398 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18399 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18400 else
18401 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18402 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18406 uts4*)
18407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408 hardcode_libdir_flag_spec='-L$libdir'
18409 hardcode_shlibpath_var=no
18413 ld_shlibs=no
18415 esac
18417 if test x$host_vendor = xsni; then
18418 case $host in
18419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18420 export_dynamic_flag_spec='${wl}-Blargedynsym'
18422 esac
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18427 $as_echo "$ld_shlibs" >&6; }
18428 test "$ld_shlibs" = no && can_build_shared=no
18430 with_gnu_ld=$with_gnu_ld
18447 # Do we need to explicitly link libc?
18449 case "x$archive_cmds_need_lc" in
18450 x|xyes)
18451 # Assume -lc should be added
18452 archive_cmds_need_lc=yes
18454 if test "$enable_shared" = yes && test "$GCC" = yes; then
18455 case $archive_cmds in
18456 *'~'*)
18457 # FIXME: we may have to deal with multi-command sequences.
18459 '$CC '*)
18460 # Test whether the compiler implicitly links with -lc since on some
18461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18462 # to ld, don't add -lc before -lgcc.
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18465 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18466 $as_echo_n "(cached) " >&6
18467 else
18468 $RM conftest*
18469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18472 (eval $ac_compile) 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18475 test $ac_status = 0; } 2>conftest.err; then
18476 soname=conftest
18477 lib=conftest
18478 libobjs=conftest.$ac_objext
18479 deplibs=
18480 wl=$lt_prog_compiler_wl
18481 pic_flag=$lt_prog_compiler_pic
18482 compiler_flags=-v
18483 linker_flags=-v
18484 verstring=
18485 output_objdir=.
18486 libname=conftest
18487 lt_save_allow_undefined_flag=$allow_undefined_flag
18488 allow_undefined_flag=
18489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18490 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18491 ac_status=$?
18492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18493 test $ac_status = 0; }
18494 then
18495 lt_cv_archive_cmds_need_lc=no
18496 else
18497 lt_cv_archive_cmds_need_lc=yes
18499 allow_undefined_flag=$lt_save_allow_undefined_flag
18500 else
18501 cat conftest.err 1>&5
18503 $RM conftest*
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18507 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18508 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18510 esac
18513 esac
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18674 if test "$GCC" = yes; then
18675 case $host_os in
18676 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18677 *) lt_awk_arg="/^libraries:/" ;;
18678 esac
18679 case $host_os in
18680 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18681 *) lt_sed_strip_eq="s,=/,/,g" ;;
18682 esac
18683 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18684 case $lt_search_path_spec in
18685 *\;*)
18686 # if the path contains ";" then we assume it to be the separator
18687 # otherwise default to the standard path separator (i.e. ":") - it is
18688 # assumed that no part of a normal pathname contains ";" but that should
18689 # okay in the real world where ";" in dirpaths is itself problematic.
18690 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18695 esac
18696 # Ok, now we have the path, separated by spaces, we can step through it
18697 # and add multilib dir if necessary.
18698 lt_tmp_lt_search_path_spec=
18699 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18700 for lt_sys_path in $lt_search_path_spec; do
18701 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18703 else
18704 test -d "$lt_sys_path" && \
18705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18707 done
18708 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18709 BEGIN {RS=" "; FS="/|\n";} {
18710 lt_foo="";
18711 lt_count=0;
18712 for (lt_i = NF; lt_i > 0; lt_i--) {
18713 if ($lt_i != "" && $lt_i != ".") {
18714 if ($lt_i == "..") {
18715 lt_count++;
18716 } else {
18717 if (lt_count == 0) {
18718 lt_foo="/" $lt_i lt_foo;
18719 } else {
18720 lt_count--;
18725 if (lt_foo != "") { lt_freq[lt_foo]++; }
18726 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18728 # AWK program above erroneously prepends '/' to C:/dos/paths
18729 # for these hosts.
18730 case $host_os in
18731 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18732 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18733 esac
18734 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18735 else
18736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18738 library_names_spec=
18739 libname_spec='lib$name'
18740 soname_spec=
18741 shrext_cmds=".so"
18742 postinstall_cmds=
18743 postuninstall_cmds=
18744 finish_cmds=
18745 finish_eval=
18746 shlibpath_var=
18747 shlibpath_overrides_runpath=unknown
18748 version_type=none
18749 dynamic_linker="$host_os ld.so"
18750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18751 need_lib_prefix=unknown
18752 hardcode_into_libs=no
18754 # when you set need_version to no, make sure it does not cause -set_version
18755 # flags to be left without arguments
18756 need_version=unknown
18758 case $host_os in
18759 aix3*)
18760 version_type=linux
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18762 shlibpath_var=LIBPATH
18764 # AIX 3 has no versioning support, so we append a major version to the name.
18765 soname_spec='${libname}${release}${shared_ext}$major'
18768 aix[4-9]*)
18769 version_type=linux
18770 need_lib_prefix=no
18771 need_version=no
18772 hardcode_into_libs=yes
18773 if test "$host_cpu" = ia64; then
18774 # AIX 5 supports IA64
18775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 else
18778 # With GCC up to 2.95.x, collect2 would create an import file
18779 # for dependence libraries. The import file would start with
18780 # the line `#! .'. This would cause the generated library to
18781 # depend on `.', always an invalid library. This was fixed in
18782 # development snapshots of GCC prior to 3.0.
18783 case $host_os in
18784 aix4 | aix4.[01] | aix4.[01].*)
18785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18786 echo ' yes '
18787 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18789 else
18790 can_build_shared=no
18793 esac
18794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18795 # soname into executable. Probably we can add versioning support to
18796 # collect2, so additional links can be useful in future.
18797 if test "$aix_use_runtimelinking" = yes; then
18798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18799 # instead of lib<name>.a to let people know that these are not
18800 # typical AIX shared libraries.
18801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802 else
18803 # We preserve .a as extension for shared libraries through AIX4.2
18804 # and later when we are not doing run time linking.
18805 library_names_spec='${libname}${release}.a $libname.a'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18808 shlibpath_var=LIBPATH
18812 amigaos*)
18813 case $host_cpu in
18814 powerpc)
18815 # Since July 2007 AmigaOS4 officially supports .so libraries.
18816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18819 m68k)
18820 library_names_spec='$libname.ixlibrary $libname.a'
18821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18822 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'
18824 esac
18827 beos*)
18828 library_names_spec='${libname}${shared_ext}'
18829 dynamic_linker="$host_os ld.so"
18830 shlibpath_var=LIBRARY_PATH
18833 bsdi[45]*)
18834 version_type=linux
18835 need_version=no
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18842 # the default ld.so.conf also contains /usr/contrib/lib and
18843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18844 # libtool to hard-code these into programs
18847 cygwin* | mingw* | pw32* | cegcc*)
18848 version_type=windows
18849 shrext_cmds=".dll"
18850 need_version=no
18851 need_lib_prefix=no
18853 case $GCC,$host_os in
18854 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18855 library_names_spec='$libname.dll.a'
18856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18857 postinstall_cmds='base_file=`basename \${file}`~
18858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18859 dldir=$destdir/`dirname \$dlpath`~
18860 test -d \$dldir || mkdir -p \$dldir~
18861 $install_prog $dir/$dlname \$dldir/$dlname~
18862 chmod a+x \$dldir/$dlname~
18863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18867 dlpath=$dir/\$dldll~
18868 $RM \$dlpath'
18869 shlibpath_overrides_runpath=yes
18871 case $host_os in
18872 cygwin*)
18873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18876 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18878 mingw* | cegcc*)
18879 # MinGW DLLs use traditional 'lib' prefix
18880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18882 pw32*)
18883 # pw32 DLLs use 'pw' prefix rather than 'lib'
18884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18886 esac
18890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18892 esac
18893 dynamic_linker='Win32 ld.exe'
18894 # FIXME: first we should search . and the directory the executable is in
18895 shlibpath_var=PATH
18898 darwin* | rhapsody*)
18899 dynamic_linker="$host_os dyld"
18900 version_type=darwin
18901 need_lib_prefix=no
18902 need_version=no
18903 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18904 soname_spec='${libname}${release}${major}$shared_ext'
18905 shlibpath_overrides_runpath=yes
18906 shlibpath_var=DYLD_LIBRARY_PATH
18907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18913 dgux*)
18914 version_type=linux
18915 need_lib_prefix=no
18916 need_version=no
18917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18918 soname_spec='${libname}${release}${shared_ext}$major'
18919 shlibpath_var=LD_LIBRARY_PATH
18922 freebsd* | dragonfly*)
18923 # DragonFly does not have aout. When/if they implement a new
18924 # versioning mechanism, adjust this.
18925 if test -x /usr/bin/objformat; then
18926 objformat=`/usr/bin/objformat`
18927 else
18928 case $host_os in
18929 freebsd[23].*) objformat=aout ;;
18930 *) objformat=elf ;;
18931 esac
18933 version_type=freebsd-$objformat
18934 case $version_type in
18935 freebsd-elf*)
18936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18937 need_version=no
18938 need_lib_prefix=no
18940 freebsd-*)
18941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18942 need_version=yes
18944 esac
18945 shlibpath_var=LD_LIBRARY_PATH
18946 case $host_os in
18947 freebsd2.*)
18948 shlibpath_overrides_runpath=yes
18950 freebsd3.[01]* | freebsdelf3.[01]*)
18951 shlibpath_overrides_runpath=yes
18952 hardcode_into_libs=yes
18954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18956 shlibpath_overrides_runpath=no
18957 hardcode_into_libs=yes
18959 *) # from 4.6 on, and DragonFly
18960 shlibpath_overrides_runpath=yes
18961 hardcode_into_libs=yes
18963 esac
18966 haiku*)
18967 version_type=linux
18968 need_lib_prefix=no
18969 need_version=no
18970 dynamic_linker="$host_os runtime_loader"
18971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18972 soname_spec='${libname}${release}${shared_ext}$major'
18973 shlibpath_var=LIBRARY_PATH
18974 shlibpath_overrides_runpath=yes
18975 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18976 hardcode_into_libs=yes
18979 hpux9* | hpux10* | hpux11*)
18980 # Give a soname corresponding to the major version so that dld.sl refuses to
18981 # link against other versions.
18982 version_type=sunos
18983 need_lib_prefix=no
18984 need_version=no
18985 case $host_cpu in
18986 ia64*)
18987 shrext_cmds='.so'
18988 hardcode_into_libs=yes
18989 dynamic_linker="$host_os dld.so"
18990 shlibpath_var=LD_LIBRARY_PATH
18991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18993 soname_spec='${libname}${release}${shared_ext}$major'
18994 if test "X$HPUX_IA64_MODE" = X32; then
18995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18996 else
18997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19001 hppa*64*)
19002 shrext_cmds='.sl'
19003 hardcode_into_libs=yes
19004 dynamic_linker="$host_os dld.sl"
19005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19013 shrext_cmds='.sl'
19014 dynamic_linker="$host_os dld.sl"
19015 shlibpath_var=SHLIB_PATH
19016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19020 esac
19021 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19022 postinstall_cmds='chmod 555 $lib'
19023 # or fails outright, so override atomically:
19024 install_override_mode=555
19027 interix[3-9]*)
19028 version_type=linux
19029 need_lib_prefix=no
19030 need_version=no
19031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19032 soname_spec='${libname}${release}${shared_ext}$major'
19033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19034 shlibpath_var=LD_LIBRARY_PATH
19035 shlibpath_overrides_runpath=no
19036 hardcode_into_libs=yes
19039 irix5* | irix6* | nonstopux*)
19040 case $host_os in
19041 nonstopux*) version_type=nonstopux ;;
19043 if test "$lt_cv_prog_gnu_ld" = yes; then
19044 version_type=linux
19045 else
19046 version_type=irix
19047 fi ;;
19048 esac
19049 need_lib_prefix=no
19050 need_version=no
19051 soname_spec='${libname}${release}${shared_ext}$major'
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19053 case $host_os in
19054 irix5* | nonstopux*)
19055 libsuff= shlibsuff=
19058 case $LD in # libtool.m4 will add one of these switches to LD
19059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19060 libsuff= shlibsuff= libmagic=32-bit;;
19061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19062 libsuff=32 shlibsuff=N32 libmagic=N32;;
19063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19065 *) libsuff= shlibsuff= libmagic=never-match;;
19066 esac
19068 esac
19069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19070 shlibpath_overrides_runpath=no
19071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19073 hardcode_into_libs=yes
19076 # No shared lib support for Linux oldld, aout, or coff.
19077 linux*oldld* | linux*aout* | linux*coff*)
19078 dynamic_linker=no
19081 # This must be Linux ELF.
19083 # uclinux* changes (here and below) have been submitted to the libtool
19084 # project, but have not yet been accepted: they are GCC-local changes
19085 # for the time being. (See
19086 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19087 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19088 version_type=linux
19089 need_lib_prefix=no
19090 need_version=no
19091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092 soname_spec='${libname}${release}${shared_ext}$major'
19093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19094 shlibpath_var=LD_LIBRARY_PATH
19095 shlibpath_overrides_runpath=no
19097 # Some binutils ld are patched to set DT_RUNPATH
19098 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19099 $as_echo_n "(cached) " >&6
19100 else
19101 lt_cv_shlibpath_overrides_runpath=no
19102 save_LDFLAGS=$LDFLAGS
19103 save_libdir=$libdir
19104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19110 main ()
19114 return 0;
19116 _ACEOF
19117 if ac_fn_c_try_link "$LINENO"; then :
19118 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19119 lt_cv_shlibpath_overrides_runpath=yes
19122 rm -f core conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
19124 LDFLAGS=$save_LDFLAGS
19125 libdir=$save_libdir
19129 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19131 # This implies no fast_install, which is unacceptable.
19132 # Some rework will be needed to allow for fast_install
19133 # before this can be enabled.
19134 hardcode_into_libs=yes
19136 # Append ld.so.conf contents to the search path
19137 if test -f /etc/ld.so.conf; then
19138 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' ' '`
19139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19142 # We used to test for /lib/ld.so.1 and disable shared libraries on
19143 # powerpc, because MkLinux only supported shared libraries with the
19144 # GNU dynamic linker. Since this was broken with cross compilers,
19145 # most powerpc-linux boxes support dynamic linking these days and
19146 # people can always --disable-shared, the test was removed, and we
19147 # assume the GNU/Linux dynamic linker is in use.
19148 dynamic_linker='GNU/Linux ld.so'
19151 netbsd*)
19152 version_type=sunos
19153 need_lib_prefix=no
19154 need_version=no
19155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19158 dynamic_linker='NetBSD (a.out) ld.so'
19159 else
19160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19161 soname_spec='${libname}${release}${shared_ext}$major'
19162 dynamic_linker='NetBSD ld.elf_so'
19164 shlibpath_var=LD_LIBRARY_PATH
19165 shlibpath_overrides_runpath=yes
19166 hardcode_into_libs=yes
19169 newsos6)
19170 version_type=linux
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172 shlibpath_var=LD_LIBRARY_PATH
19173 shlibpath_overrides_runpath=yes
19176 *nto* | *qnx*)
19177 version_type=qnx
19178 need_lib_prefix=no
19179 need_version=no
19180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181 soname_spec='${libname}${release}${shared_ext}$major'
19182 shlibpath_var=LD_LIBRARY_PATH
19183 shlibpath_overrides_runpath=no
19184 hardcode_into_libs=yes
19185 dynamic_linker='ldqnx.so'
19188 openbsd*)
19189 version_type=sunos
19190 sys_lib_dlsearch_path_spec="/usr/lib"
19191 need_lib_prefix=no
19192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19193 case $host_os in
19194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19195 *) need_version=no ;;
19196 esac
19197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19199 shlibpath_var=LD_LIBRARY_PATH
19200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19201 case $host_os in
19202 openbsd2.[89] | openbsd2.[89].*)
19203 shlibpath_overrides_runpath=no
19206 shlibpath_overrides_runpath=yes
19208 esac
19209 else
19210 shlibpath_overrides_runpath=yes
19214 os2*)
19215 libname_spec='$name'
19216 shrext_cmds=".dll"
19217 need_lib_prefix=no
19218 library_names_spec='$libname${shared_ext} $libname.a'
19219 dynamic_linker='OS/2 ld.exe'
19220 shlibpath_var=LIBPATH
19223 osf3* | osf4* | osf5*)
19224 version_type=osf
19225 need_lib_prefix=no
19226 need_version=no
19227 soname_spec='${libname}${release}${shared_ext}$major'
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19229 shlibpath_var=LD_LIBRARY_PATH
19230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19234 rdos*)
19235 dynamic_linker=no
19238 solaris*)
19239 version_type=linux
19240 need_lib_prefix=no
19241 need_version=no
19242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19243 soname_spec='${libname}${release}${shared_ext}$major'
19244 shlibpath_var=LD_LIBRARY_PATH
19245 shlibpath_overrides_runpath=yes
19246 hardcode_into_libs=yes
19247 # ldd complains unless libraries are executable
19248 postinstall_cmds='chmod +x $lib'
19251 sunos4*)
19252 version_type=sunos
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=yes
19257 if test "$with_gnu_ld" = yes; then
19258 need_lib_prefix=no
19260 need_version=yes
19263 sysv4 | sysv4.3*)
19264 version_type=linux
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 shlibpath_var=LD_LIBRARY_PATH
19268 case $host_vendor in
19269 sni)
19270 shlibpath_overrides_runpath=no
19271 need_lib_prefix=no
19272 runpath_var=LD_RUN_PATH
19274 siemens)
19275 need_lib_prefix=no
19277 motorola)
19278 need_lib_prefix=no
19279 need_version=no
19280 shlibpath_overrides_runpath=no
19281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19283 esac
19286 sysv4*MP*)
19287 if test -d /usr/nec ;then
19288 version_type=linux
19289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19290 soname_spec='$libname${shared_ext}.$major'
19291 shlibpath_var=LD_LIBRARY_PATH
19295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19296 version_type=freebsd-elf
19297 need_lib_prefix=no
19298 need_version=no
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19300 soname_spec='${libname}${release}${shared_ext}$major'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath=yes
19303 hardcode_into_libs=yes
19304 if test "$with_gnu_ld" = yes; then
19305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19306 else
19307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19308 case $host_os in
19309 sco3.2v5*)
19310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19312 esac
19314 sys_lib_dlsearch_path_spec='/usr/lib'
19317 tpf*)
19318 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19319 version_type=linux
19320 need_lib_prefix=no
19321 need_version=no
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 shlibpath_var=LD_LIBRARY_PATH
19324 shlibpath_overrides_runpath=no
19325 hardcode_into_libs=yes
19328 uts4*)
19329 version_type=linux
19330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19331 soname_spec='${libname}${release}${shared_ext}$major'
19332 shlibpath_var=LD_LIBRARY_PATH
19335 # Shared libraries for VwWorks, >= 7 only at this stage
19336 # and (fpic) still incompatible with "large" code models
19337 # in a few configurations. Only for RTP mode in any case,
19338 # and upon explicit request at configure time.
19339 vxworks7*)
19340 dynamic_linker=no
19341 case ${with_multisubdir}-${enable_shared} in
19342 *large*)
19344 *mrtp*-yes)
19345 version_type=linux
19346 need_lib_prefix=no
19347 need_version=no
19348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349 soname_spec='${libname}${release}${shared_ext}$major'
19350 dynamic_linker="$host_os module_loader"
19352 esac
19355 dynamic_linker=no
19357 esac
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19359 $as_echo "$dynamic_linker" >&6; }
19360 test "$dynamic_linker" = no && can_build_shared=no
19362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19363 if test "$GCC" = yes; then
19364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19367 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19368 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19371 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19466 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19467 hardcode_action=
19468 if test -n "$hardcode_libdir_flag_spec" ||
19469 test -n "$runpath_var" ||
19470 test "X$hardcode_automatic" = "Xyes" ; then
19472 # We can hardcode non-existent directories.
19473 if test "$hardcode_direct" != no &&
19474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19475 # have to relink, otherwise we might link with an installed library
19476 # when we should be linking with a yet-to-be-installed one
19477 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19478 test "$hardcode_minus_L" != no; then
19479 # Linking always hardcodes the temporary library directory.
19480 hardcode_action=relink
19481 else
19482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19483 hardcode_action=immediate
19485 else
19486 # We cannot hardcode anything, or else we can only hardcode existing
19487 # directories.
19488 hardcode_action=unsupported
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19491 $as_echo "$hardcode_action" >&6; }
19493 if test "$hardcode_action" = relink ||
19494 test "$inherit_rpath" = yes; then
19495 # Fast installation is not supported
19496 enable_fast_install=no
19497 elif test "$shlibpath_overrides_runpath" = yes ||
19498 test "$enable_shared" = no; then
19499 # Fast installation is not necessary
19500 enable_fast_install=needless
19508 if test "x$enable_dlopen" != xyes; then
19509 enable_dlopen=unknown
19510 enable_dlopen_self=unknown
19511 enable_dlopen_self_static=unknown
19512 else
19513 lt_cv_dlopen=no
19514 lt_cv_dlopen_libs=
19516 case $host_os in
19517 beos*)
19518 lt_cv_dlopen="load_add_on"
19519 lt_cv_dlopen_libs=
19520 lt_cv_dlopen_self=yes
19523 mingw* | pw32* | cegcc*)
19524 lt_cv_dlopen="LoadLibrary"
19525 lt_cv_dlopen_libs=
19528 cygwin*)
19529 lt_cv_dlopen="dlopen"
19530 lt_cv_dlopen_libs=
19533 darwin*)
19534 # if libdl is installed we need to link against it
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19537 if ${ac_cv_lib_dl_dlopen+:} false; then :
19538 $as_echo_n "(cached) " >&6
19539 else
19540 ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-ldl $LIBS"
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19545 /* Override any GCC internal prototype to avoid an error.
19546 Use char because int might match the return type of a GCC
19547 builtin and then its argument prototype would still apply. */
19548 #ifdef __cplusplus
19549 extern "C"
19550 #endif
19551 char dlopen ();
19553 main ()
19555 return dlopen ();
19557 return 0;
19559 _ACEOF
19560 if ac_fn_c_try_link "$LINENO"; then :
19561 ac_cv_lib_dl_dlopen=yes
19562 else
19563 ac_cv_lib_dl_dlopen=no
19565 rm -f core conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19571 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19573 else
19575 lt_cv_dlopen="dyld"
19576 lt_cv_dlopen_libs=
19577 lt_cv_dlopen_self=yes
19584 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19585 if test "x$ac_cv_func_shl_load" = xyes; then :
19586 lt_cv_dlopen="shl_load"
19587 else
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19589 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19590 if ${ac_cv_lib_dld_shl_load+:} false; then :
19591 $as_echo_n "(cached) " >&6
19592 else
19593 ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-ldld $LIBS"
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char shl_load ();
19606 main ()
19608 return shl_load ();
19610 return 0;
19612 _ACEOF
19613 if ac_fn_c_try_link "$LINENO"; then :
19614 ac_cv_lib_dld_shl_load=yes
19615 else
19616 ac_cv_lib_dld_shl_load=no
19618 rm -f core conftest.err conftest.$ac_objext \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19623 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19624 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19626 else
19627 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19628 if test "x$ac_cv_func_dlopen" = xyes; then :
19629 lt_cv_dlopen="dlopen"
19630 else
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19632 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19633 if ${ac_cv_lib_dl_dlopen+:} false; then :
19634 $as_echo_n "(cached) " >&6
19635 else
19636 ac_check_lib_save_LIBS=$LIBS
19637 LIBS="-ldl $LIBS"
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19641 /* Override any GCC internal prototype to avoid an error.
19642 Use char because int might match the return type of a GCC
19643 builtin and then its argument prototype would still apply. */
19644 #ifdef __cplusplus
19645 extern "C"
19646 #endif
19647 char dlopen ();
19649 main ()
19651 return dlopen ();
19653 return 0;
19655 _ACEOF
19656 if ac_fn_c_try_link "$LINENO"; then :
19657 ac_cv_lib_dl_dlopen=yes
19658 else
19659 ac_cv_lib_dl_dlopen=no
19661 rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19666 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19667 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19669 else
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19671 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19672 if ${ac_cv_lib_svld_dlopen+:} false; then :
19673 $as_echo_n "(cached) " >&6
19674 else
19675 ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-lsvld $LIBS"
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 char dlopen ();
19688 main ()
19690 return dlopen ();
19692 return 0;
19694 _ACEOF
19695 if ac_fn_c_try_link "$LINENO"; then :
19696 ac_cv_lib_svld_dlopen=yes
19697 else
19698 ac_cv_lib_svld_dlopen=no
19700 rm -f core conftest.err conftest.$ac_objext \
19701 conftest$ac_exeext conftest.$ac_ext
19702 LIBS=$ac_check_lib_save_LIBS
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19705 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19706 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19708 else
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19710 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19711 if ${ac_cv_lib_dld_dld_link+:} false; then :
19712 $as_echo_n "(cached) " >&6
19713 else
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-ldld $LIBS"
19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 char dld_link ();
19727 main ()
19729 return dld_link ();
19731 return 0;
19733 _ACEOF
19734 if ac_fn_c_try_link "$LINENO"; then :
19735 ac_cv_lib_dld_dld_link=yes
19736 else
19737 ac_cv_lib_dld_dld_link=no
19739 rm -f core conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19744 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19745 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19746 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19765 esac
19767 if test "x$lt_cv_dlopen" != xno; then
19768 enable_dlopen=yes
19769 else
19770 enable_dlopen=no
19773 case $lt_cv_dlopen in
19774 dlopen)
19775 save_CPPFLAGS="$CPPFLAGS"
19776 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19778 save_LDFLAGS="$LDFLAGS"
19779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19781 save_LIBS="$LIBS"
19782 LIBS="$lt_cv_dlopen_libs $LIBS"
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19785 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19786 if ${lt_cv_dlopen_self+:} false; then :
19787 $as_echo_n "(cached) " >&6
19788 else
19789 if test "$cross_compiling" = yes; then :
19790 lt_cv_dlopen_self=cross
19791 else
19792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19793 lt_status=$lt_dlunknown
19794 cat > conftest.$ac_ext <<_LT_EOF
19795 #line 19795 "configure"
19796 #include "confdefs.h"
19798 #if HAVE_DLFCN_H
19799 #include <dlfcn.h>
19800 #endif
19802 #include <stdio.h>
19804 #ifdef RTLD_GLOBAL
19805 # define LT_DLGLOBAL RTLD_GLOBAL
19806 #else
19807 # ifdef DL_GLOBAL
19808 # define LT_DLGLOBAL DL_GLOBAL
19809 # else
19810 # define LT_DLGLOBAL 0
19811 # endif
19812 #endif
19814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19815 find out it does not work in some platform. */
19816 #ifndef LT_DLLAZY_OR_NOW
19817 # ifdef RTLD_LAZY
19818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19819 # else
19820 # ifdef DL_LAZY
19821 # define LT_DLLAZY_OR_NOW DL_LAZY
19822 # else
19823 # ifdef RTLD_NOW
19824 # define LT_DLLAZY_OR_NOW RTLD_NOW
19825 # else
19826 # ifdef DL_NOW
19827 # define LT_DLLAZY_OR_NOW DL_NOW
19828 # else
19829 # define LT_DLLAZY_OR_NOW 0
19830 # endif
19831 # endif
19832 # endif
19833 # endif
19834 #endif
19836 /* When -fvisbility=hidden is used, assume the code has been annotated
19837 correspondingly for the symbols needed. */
19838 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19839 void fnord () __attribute__((visibility("default")));
19840 #endif
19842 void fnord () { int i=42; }
19843 int main ()
19845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19846 int status = $lt_dlunknown;
19848 if (self)
19850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19851 else
19853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19854 else puts (dlerror ());
19856 /* dlclose (self); */
19858 else
19859 puts (dlerror ());
19861 return status;
19863 _LT_EOF
19864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19865 (eval $ac_link) 2>&5
19866 ac_status=$?
19867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19869 (./conftest; exit; ) >&5 2>/dev/null
19870 lt_status=$?
19871 case x$lt_status in
19872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19874 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19875 esac
19876 else :
19877 # compilation failed
19878 lt_cv_dlopen_self=no
19881 rm -fr conftest*
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19886 $as_echo "$lt_cv_dlopen_self" >&6; }
19888 if test "x$lt_cv_dlopen_self" = xyes; then
19889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19891 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19892 if ${lt_cv_dlopen_self_static+:} false; then :
19893 $as_echo_n "(cached) " >&6
19894 else
19895 if test "$cross_compiling" = yes; then :
19896 lt_cv_dlopen_self_static=cross
19897 else
19898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19899 lt_status=$lt_dlunknown
19900 cat > conftest.$ac_ext <<_LT_EOF
19901 #line 19901 "configure"
19902 #include "confdefs.h"
19904 #if HAVE_DLFCN_H
19905 #include <dlfcn.h>
19906 #endif
19908 #include <stdio.h>
19910 #ifdef RTLD_GLOBAL
19911 # define LT_DLGLOBAL RTLD_GLOBAL
19912 #else
19913 # ifdef DL_GLOBAL
19914 # define LT_DLGLOBAL DL_GLOBAL
19915 # else
19916 # define LT_DLGLOBAL 0
19917 # endif
19918 #endif
19920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19921 find out it does not work in some platform. */
19922 #ifndef LT_DLLAZY_OR_NOW
19923 # ifdef RTLD_LAZY
19924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19925 # else
19926 # ifdef DL_LAZY
19927 # define LT_DLLAZY_OR_NOW DL_LAZY
19928 # else
19929 # ifdef RTLD_NOW
19930 # define LT_DLLAZY_OR_NOW RTLD_NOW
19931 # else
19932 # ifdef DL_NOW
19933 # define LT_DLLAZY_OR_NOW DL_NOW
19934 # else
19935 # define LT_DLLAZY_OR_NOW 0
19936 # endif
19937 # endif
19938 # endif
19939 # endif
19940 #endif
19942 /* When -fvisbility=hidden is used, assume the code has been annotated
19943 correspondingly for the symbols needed. */
19944 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19945 void fnord () __attribute__((visibility("default")));
19946 #endif
19948 void fnord () { int i=42; }
19949 int main ()
19951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19952 int status = $lt_dlunknown;
19954 if (self)
19956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19957 else
19959 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19960 else puts (dlerror ());
19962 /* dlclose (self); */
19964 else
19965 puts (dlerror ());
19967 return status;
19969 _LT_EOF
19970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19971 (eval $ac_link) 2>&5
19972 ac_status=$?
19973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19974 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19975 (./conftest; exit; ) >&5 2>/dev/null
19976 lt_status=$?
19977 case x$lt_status in
19978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19980 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19981 esac
19982 else :
19983 # compilation failed
19984 lt_cv_dlopen_self_static=no
19987 rm -fr conftest*
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19992 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19995 CPPFLAGS="$save_CPPFLAGS"
19996 LDFLAGS="$save_LDFLAGS"
19997 LIBS="$save_LIBS"
19999 esac
20001 case $lt_cv_dlopen_self in
20002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20003 *) enable_dlopen_self=unknown ;;
20004 esac
20006 case $lt_cv_dlopen_self_static in
20007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20008 *) enable_dlopen_self_static=unknown ;;
20009 esac
20028 striplib=
20029 old_striplib=
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20031 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20032 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20033 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20034 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036 $as_echo "yes" >&6; }
20037 else
20038 # FIXME - insert some real tests, host_os isn't really good enough
20039 case $host_os in
20040 darwin*)
20041 if test -n "$STRIP" ; then
20042 striplib="$STRIP -x"
20043 old_striplib="$STRIP -S"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20045 $as_echo "yes" >&6; }
20046 else
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20053 $as_echo "no" >&6; }
20055 esac
20069 # Report which library types will actually be built
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20071 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20073 $as_echo "$can_build_shared" >&6; }
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20076 $as_echo_n "checking whether to build shared libraries... " >&6; }
20077 test "$can_build_shared" = "no" && enable_shared=no
20079 # On AIX, shared libraries and static libraries use the same namespace, and
20080 # are all built from PIC.
20081 case $host_os in
20082 aix3*)
20083 test "$enable_shared" = yes && enable_static=no
20084 if test -n "$RANLIB"; then
20085 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20086 postinstall_cmds='$RANLIB $lib'
20090 aix[4-9]*)
20091 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20092 test "$enable_shared" = yes && enable_static=no
20095 esac
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20097 $as_echo "$enable_shared" >&6; }
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20100 $as_echo_n "checking whether to build static libraries... " >&6; }
20101 # Make sure either enable_shared or enable_static is yes.
20102 test "$enable_shared" = yes || enable_static=yes
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20104 $as_echo "$enable_static" >&6; }
20110 ac_ext=cpp
20111 ac_cpp='$CXXCPP $CPPFLAGS'
20112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20116 CC="$lt_save_CC"
20118 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20119 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20120 (test "X$CXX" != "Xg++"))) ; then
20121 ac_ext=cpp
20122 ac_cpp='$CXXCPP $CPPFLAGS'
20123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20127 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20128 if test -z "$CXXCPP"; then
20129 if ${ac_cv_prog_CXXCPP+:} false; then :
20130 $as_echo_n "(cached) " >&6
20131 else
20132 # Double quotes because CXXCPP needs to be expanded
20133 for CXXCPP in "$CXX -E" "/lib/cpp"
20135 ac_preproc_ok=false
20136 for ac_cxx_preproc_warn_flag in '' yes
20138 # Use a header file that comes with gcc, so configuring glibc
20139 # with a fresh cross-compiler works.
20140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141 # <limits.h> exists even on freestanding compilers.
20142 # On the NeXT, cc -E runs the code through the compiler's parser,
20143 # not just through cpp. "Syntax error" is here to catch this case.
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20146 #ifdef __STDC__
20147 # include <limits.h>
20148 #else
20149 # include <assert.h>
20150 #endif
20151 Syntax error
20152 _ACEOF
20153 if ac_fn_cxx_try_cpp "$LINENO"; then :
20155 else
20156 # Broken: fails on valid input.
20157 continue
20159 rm -f conftest.err conftest.i conftest.$ac_ext
20161 # OK, works on sane cases. Now check whether nonexistent headers
20162 # can be detected and how.
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165 #include <ac_nonexistent.h>
20166 _ACEOF
20167 if ac_fn_cxx_try_cpp "$LINENO"; then :
20168 # Broken: success on invalid input.
20169 continue
20170 else
20171 # Passes both tests.
20172 ac_preproc_ok=:
20173 break
20175 rm -f conftest.err conftest.i conftest.$ac_ext
20177 done
20178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20179 rm -f conftest.i conftest.err conftest.$ac_ext
20180 if $ac_preproc_ok; then :
20181 break
20184 done
20185 ac_cv_prog_CXXCPP=$CXXCPP
20188 CXXCPP=$ac_cv_prog_CXXCPP
20189 else
20190 ac_cv_prog_CXXCPP=$CXXCPP
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20193 $as_echo "$CXXCPP" >&6; }
20194 ac_preproc_ok=false
20195 for ac_cxx_preproc_warn_flag in '' yes
20197 # Use a header file that comes with gcc, so configuring glibc
20198 # with a fresh cross-compiler works.
20199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20200 # <limits.h> exists even on freestanding compilers.
20201 # On the NeXT, cc -E runs the code through the compiler's parser,
20202 # not just through cpp. "Syntax error" is here to catch this case.
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20205 #ifdef __STDC__
20206 # include <limits.h>
20207 #else
20208 # include <assert.h>
20209 #endif
20210 Syntax error
20211 _ACEOF
20212 if ac_fn_cxx_try_cpp "$LINENO"; then :
20214 else
20215 # Broken: fails on valid input.
20216 continue
20218 rm -f conftest.err conftest.i conftest.$ac_ext
20220 # OK, works on sane cases. Now check whether nonexistent headers
20221 # can be detected and how.
20222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h. */
20224 #include <ac_nonexistent.h>
20225 _ACEOF
20226 if ac_fn_cxx_try_cpp "$LINENO"; then :
20227 # Broken: success on invalid input.
20228 continue
20229 else
20230 # Passes both tests.
20231 ac_preproc_ok=:
20232 break
20234 rm -f conftest.err conftest.i conftest.$ac_ext
20236 done
20237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20238 rm -f conftest.i conftest.err conftest.$ac_ext
20239 if $ac_preproc_ok; then :
20241 else
20242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20244 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20245 See \`config.log' for more details" "$LINENO" 5; }
20248 ac_ext=cpp
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20254 else
20255 _lt_caught_CXX_error=yes
20258 ac_ext=cpp
20259 ac_cpp='$CXXCPP $CPPFLAGS'
20260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20264 archive_cmds_need_lc_CXX=no
20265 allow_undefined_flag_CXX=
20266 always_export_symbols_CXX=no
20267 archive_expsym_cmds_CXX=
20268 compiler_needs_object_CXX=no
20269 export_dynamic_flag_spec_CXX=
20270 hardcode_direct_CXX=no
20271 hardcode_direct_absolute_CXX=no
20272 hardcode_libdir_flag_spec_CXX=
20273 hardcode_libdir_flag_spec_ld_CXX=
20274 hardcode_libdir_separator_CXX=
20275 hardcode_minus_L_CXX=no
20276 hardcode_shlibpath_var_CXX=unsupported
20277 hardcode_automatic_CXX=no
20278 inherit_rpath_CXX=no
20279 module_cmds_CXX=
20280 module_expsym_cmds_CXX=
20281 link_all_deplibs_CXX=unknown
20282 old_archive_cmds_CXX=$old_archive_cmds
20283 reload_flag_CXX=$reload_flag
20284 reload_cmds_CXX=$reload_cmds
20285 no_undefined_flag_CXX=
20286 whole_archive_flag_spec_CXX=
20287 enable_shared_with_static_runtimes_CXX=no
20289 # Source file extension for C++ test sources.
20290 ac_ext=cpp
20292 # Object file extension for compiled C++ test sources.
20293 objext=o
20294 objext_CXX=$objext
20296 # No sense in running all these tests if we already determined that
20297 # the CXX compiler isn't working. Some variables (like enable_shared)
20298 # are currently assumed to apply to all compilers on this platform,
20299 # and will be corrupted by setting them based on a non-working compiler.
20300 if test "$_lt_caught_CXX_error" != yes; then
20301 # Code to be used in simple compile tests
20302 lt_simple_compile_test_code="int some_variable = 0;"
20304 # Code to be used in simple link tests
20305 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20307 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20314 # If no C compiler was specified, use CC.
20315 LTCC=${LTCC-"$CC"}
20317 # If no C compiler flags were specified, use CFLAGS.
20318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20320 # Allow CC to be a program name with arguments.
20321 compiler=$CC
20324 # save warnings/boilerplate of simple test code
20325 ac_outfile=conftest.$ac_objext
20326 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20328 _lt_compiler_boilerplate=`cat conftest.err`
20329 $RM conftest*
20331 ac_outfile=conftest.$ac_objext
20332 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20334 _lt_linker_boilerplate=`cat conftest.err`
20335 $RM -r conftest*
20338 # Allow CC to be a program name with arguments.
20339 lt_save_CC=$CC
20340 lt_save_LD=$LD
20341 lt_save_GCC=$GCC
20342 GCC=$GXX
20343 lt_save_with_gnu_ld=$with_gnu_ld
20344 lt_save_path_LD=$lt_cv_path_LD
20345 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20346 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20347 else
20348 $as_unset lt_cv_prog_gnu_ld
20350 if test -n "${lt_cv_path_LDCXX+set}"; then
20351 lt_cv_path_LD=$lt_cv_path_LDCXX
20352 else
20353 $as_unset lt_cv_path_LD
20355 test -z "${LDCXX+set}" || LD=$LDCXX
20356 CC=${CXX-"c++"}
20357 compiler=$CC
20358 compiler_CXX=$CC
20359 for cc_temp in $compiler""; do
20360 case $cc_temp in
20361 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20362 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20363 \-*) ;;
20364 *) break;;
20365 esac
20366 done
20367 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20370 if test -n "$compiler"; then
20371 # We don't want -fno-exception when compiling C++ code, so set the
20372 # no_builtin_flag separately
20373 if test "$GXX" = yes; then
20374 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20375 else
20376 lt_prog_compiler_no_builtin_flag_CXX=
20379 if test "$GXX" = yes; then
20380 # Set up default GNU C++ configuration
20384 # Check whether --with-gnu-ld was given.
20385 if test "${with_gnu_ld+set}" = set; then :
20386 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20387 else
20388 with_gnu_ld=no
20391 ac_prog=ld
20392 if test "$GCC" = yes; then
20393 # Check if gcc -print-prog-name=ld gives a path.
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20395 $as_echo_n "checking for ld used by $CC... " >&6; }
20396 case $host in
20397 *-*-mingw*)
20398 # gcc leaves a trailing carriage return which upsets mingw
20399 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20401 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20402 esac
20403 case $ac_prog in
20404 # Accept absolute paths.
20405 [\\/]* | ?:[\\/]*)
20406 re_direlt='/[^/][^/]*/\.\./'
20407 # Canonicalize the pathname of ld
20408 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20409 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20410 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20411 done
20412 test -z "$LD" && LD="$ac_prog"
20415 # If it fails, then pretend we aren't using GCC.
20416 ac_prog=ld
20419 # If it is relative, then search for the first ld in PATH.
20420 with_gnu_ld=unknown
20422 esac
20423 elif test "$with_gnu_ld" = yes; then
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20425 $as_echo_n "checking for GNU ld... " >&6; }
20426 else
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20428 $as_echo_n "checking for non-GNU ld... " >&6; }
20430 if ${lt_cv_path_LD+:} false; then :
20431 $as_echo_n "(cached) " >&6
20432 else
20433 if test -z "$LD"; then
20434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20435 for ac_dir in $PATH; do
20436 IFS="$lt_save_ifs"
20437 test -z "$ac_dir" && ac_dir=.
20438 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20439 lt_cv_path_LD="$ac_dir/$ac_prog"
20440 # Check to see if the program is GNU ld. I'd rather use --version,
20441 # but apparently some variants of GNU ld only accept -v.
20442 # Break only if it was the GNU/non-GNU ld that we prefer.
20443 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20444 *GNU* | *'with BFD'*)
20445 test "$with_gnu_ld" != no && break
20448 test "$with_gnu_ld" != yes && break
20450 esac
20452 done
20453 IFS="$lt_save_ifs"
20454 else
20455 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20459 LD="$lt_cv_path_LD"
20460 if test -n "$LD"; then
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20462 $as_echo "$LD" >&6; }
20463 else
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20465 $as_echo "no" >&6; }
20467 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20469 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20470 if ${lt_cv_prog_gnu_ld+:} false; then :
20471 $as_echo_n "(cached) " >&6
20472 else
20473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20474 case `$LD -v 2>&1 </dev/null` in
20475 *GNU* | *'with BFD'*)
20476 lt_cv_prog_gnu_ld=yes
20479 lt_cv_prog_gnu_ld=no
20481 esac
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20484 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20485 with_gnu_ld=$lt_cv_prog_gnu_ld
20493 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20494 # archiving commands below assume that GNU ld is being used.
20495 if test "$with_gnu_ld" = yes; then
20496 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20497 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'
20499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20502 # If archive_cmds runs LD, not CC, wlarc should be empty
20503 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20504 # investigate it a little bit more. (MM)
20505 wlarc='${wl}'
20507 # ancient GNU ld didn't support --whole-archive et. al.
20508 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20509 $GREP 'no-whole-archive' > /dev/null; then
20510 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20511 else
20512 whole_archive_flag_spec_CXX=
20514 else
20515 with_gnu_ld=no
20516 wlarc=
20518 # A generic and very simple default shared library creation
20519 # command for GNU C++ for the case where it uses the native
20520 # linker, instead of GNU ld. If possible, this setting should
20521 # overridden to take advantage of the native linker features on
20522 # the platform it is being used on.
20523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20526 # Commands to make compiler produce verbose output that lists
20527 # what "hidden" libraries, object files and flags are used when
20528 # linking a shared library.
20529 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20531 else
20532 GXX=no
20533 with_gnu_ld=no
20534 wlarc=
20537 # PORTME: fill in a description of your system's C++ link characteristics
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20540 ld_shlibs_CXX=yes
20541 case $host_os in
20542 aix3*)
20543 # FIXME: insert proper C++ library support
20544 ld_shlibs_CXX=no
20546 aix[4-9]*)
20547 if test "$host_cpu" = ia64; then
20548 # On IA64, the linker does run time linking by default, so we don't
20549 # have to do anything special.
20550 aix_use_runtimelinking=no
20551 exp_sym_flag='-Bexport'
20552 no_entry_flag=""
20553 else
20554 aix_use_runtimelinking=no
20556 # Test if we are trying to use run time linking or normal
20557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20558 # need to do runtime linking.
20559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20560 for ld_flag in $LDFLAGS; do
20561 case $ld_flag in
20562 *-brtl*)
20563 aix_use_runtimelinking=yes
20564 break
20566 esac
20567 done
20569 esac
20571 exp_sym_flag='-bexport'
20572 no_entry_flag='-bnoentry'
20575 # When large executables or shared objects are built, AIX ld can
20576 # have problems creating the table of contents. If linking a library
20577 # or program results in "error TOC overflow" add -mminimal-toc to
20578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20581 archive_cmds_CXX=''
20582 hardcode_direct_CXX=yes
20583 hardcode_direct_absolute_CXX=yes
20584 hardcode_libdir_separator_CXX=':'
20585 link_all_deplibs_CXX=yes
20586 file_list_spec_CXX='${wl}-f,'
20588 if test "$GXX" = yes; then
20589 case $host_os in aix4.[012]|aix4.[012].*)
20590 # We only want to do this on AIX 4.2 and lower, the check
20591 # below for broken collect2 doesn't work under 4.3+
20592 collect2name=`${CC} -print-prog-name=collect2`
20593 if test -f "$collect2name" &&
20594 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20595 then
20596 # We have reworked collect2
20598 else
20599 # We have old collect2
20600 hardcode_direct_CXX=unsupported
20601 # It fails to find uninstalled libraries when the uninstalled
20602 # path is not listed in the libpath. Setting hardcode_minus_L
20603 # to unsupported forces relinking
20604 hardcode_minus_L_CXX=yes
20605 hardcode_libdir_flag_spec_CXX='-L$libdir'
20606 hardcode_libdir_separator_CXX=
20608 esac
20609 shared_flag='-shared'
20610 if test "$aix_use_runtimelinking" = yes; then
20611 shared_flag="$shared_flag "'${wl}-G'
20613 else
20614 # not using gcc
20615 if test "$host_cpu" = ia64; then
20616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20617 # chokes on -Wl,-G. The following line is correct:
20618 shared_flag='-G'
20619 else
20620 if test "$aix_use_runtimelinking" = yes; then
20621 shared_flag='${wl}-G'
20622 else
20623 shared_flag='${wl}-bM:SRE'
20628 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20629 # It seems that -bexpall does not export symbols beginning with
20630 # underscore (_), so it is better to generate a list of symbols to
20631 # export.
20632 always_export_symbols_CXX=yes
20633 if test "$aix_use_runtimelinking" = yes; then
20634 # Warning - without using the other runtime loading flags (-brtl),
20635 # -berok will link without error, but may produce a broken library.
20636 allow_undefined_flag_CXX='-berok'
20637 # Determine the default libpath from the value encoded in an empty
20638 # executable.
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20643 main ()
20647 return 0;
20649 _ACEOF
20650 if ac_fn_cxx_try_link "$LINENO"; then :
20652 lt_aix_libpath_sed='
20653 /Import File Strings/,/^$/ {
20654 /^0/ {
20655 s/^0 *\(.*\)$/\1/
20659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20660 # Check for a 64-bit object if we didn't find anything.
20661 if test -z "$aix_libpath"; then
20662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20665 rm -f core conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20669 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20671 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"
20672 else
20673 if test "$host_cpu" = ia64; then
20674 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20675 allow_undefined_flag_CXX="-z nodefs"
20676 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"
20677 else
20678 # Determine the default libpath from the value encoded in an
20679 # empty executable.
20680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20681 /* end confdefs.h. */
20684 main ()
20688 return 0;
20690 _ACEOF
20691 if ac_fn_cxx_try_link "$LINENO"; then :
20693 lt_aix_libpath_sed='
20694 /Import File Strings/,/^$/ {
20695 /^0/ {
20696 s/^0 *\(.*\)$/\1/
20700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20701 # Check for a 64-bit object if we didn't find anything.
20702 if test -z "$aix_libpath"; then
20703 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20706 rm -f core conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20710 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20711 # Warning - without using the other run time loading flags,
20712 # -berok will link without error, but may produce a broken library.
20713 no_undefined_flag_CXX=' ${wl}-bernotok'
20714 allow_undefined_flag_CXX=' ${wl}-berok'
20715 if test "$with_gnu_ld" = yes; then
20716 # We only use this code for GNU lds that support --whole-archive.
20717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20718 else
20719 # Exported symbols can be pulled into shared objects from archives
20720 whole_archive_flag_spec_CXX='$convenience'
20722 archive_cmds_need_lc_CXX=yes
20723 # This is similar to how AIX traditionally builds its shared
20724 # libraries.
20725 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'
20730 beos*)
20731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20732 allow_undefined_flag_CXX=unsupported
20733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20734 # support --undefined. This deserves some investigation. FIXME
20735 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20736 else
20737 ld_shlibs_CXX=no
20741 chorus*)
20742 case $cc_basename in
20744 # FIXME: insert proper C++ library support
20745 ld_shlibs_CXX=no
20747 esac
20750 cygwin* | mingw* | pw32* | cegcc*)
20751 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20752 # as there is no search path for DLLs.
20753 hardcode_libdir_flag_spec_CXX='-L$libdir'
20754 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20755 allow_undefined_flag_CXX=unsupported
20756 always_export_symbols_CXX=no
20757 enable_shared_with_static_runtimes_CXX=yes
20759 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20760 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'
20761 # If the export-symbols file already is a .def file (1st line
20762 # is EXPORTS), use it as is; otherwise, prepend...
20763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20764 cp $export_symbols $output_objdir/$soname.def;
20765 else
20766 echo EXPORTS > $output_objdir/$soname.def;
20767 cat $export_symbols >> $output_objdir/$soname.def;
20769 $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'
20770 else
20771 ld_shlibs_CXX=no
20774 darwin* | rhapsody*)
20777 archive_cmds_need_lc_CXX=no
20778 hardcode_direct_CXX=no
20779 hardcode_automatic_CXX=yes
20780 hardcode_shlibpath_var_CXX=unsupported
20781 if test "$lt_cv_ld_force_load" = "yes"; then
20782 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\"`'
20783 else
20784 whole_archive_flag_spec_CXX=''
20786 link_all_deplibs_CXX=yes
20787 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20788 case $cc_basename in
20789 ifort*) _lt_dar_can_shared=yes ;;
20790 *) _lt_dar_can_shared=$GCC ;;
20791 esac
20792 if test "$_lt_dar_can_shared" = "yes"; then
20793 output_verbose_link_cmd=func_echo_all
20794 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}"
20795 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20796 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}"
20797 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}"
20798 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20799 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}"
20800 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}"
20803 else
20804 ld_shlibs_CXX=no
20809 dgux*)
20810 case $cc_basename in
20811 ec++*)
20812 # FIXME: insert proper C++ library support
20813 ld_shlibs_CXX=no
20815 ghcx*)
20816 # Green Hills C++ Compiler
20817 # FIXME: insert proper C++ library support
20818 ld_shlibs_CXX=no
20821 # FIXME: insert proper C++ library support
20822 ld_shlibs_CXX=no
20824 esac
20827 freebsd2.*)
20828 # C++ shared libraries reported to be fairly broken before
20829 # switch to ELF
20830 ld_shlibs_CXX=no
20833 freebsd-elf*)
20834 archive_cmds_need_lc_CXX=no
20837 freebsd* | dragonfly*)
20838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20839 # conventions
20840 ld_shlibs_CXX=yes
20843 gnu*)
20846 haiku*)
20847 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20848 link_all_deplibs_CXX=yes
20851 hpux9*)
20852 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20853 hardcode_libdir_separator_CXX=:
20854 export_dynamic_flag_spec_CXX='${wl}-E'
20855 hardcode_direct_CXX=yes
20856 hardcode_minus_L_CXX=yes # Not in the search PATH,
20857 # but as the default
20858 # location of the library.
20860 case $cc_basename in
20861 CC*)
20862 # FIXME: insert proper C++ library support
20863 ld_shlibs_CXX=no
20865 aCC*)
20866 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'
20867 # Commands to make compiler produce verbose output that lists
20868 # what "hidden" libraries, object files and flags are used when
20869 # linking a shared library.
20871 # There doesn't appear to be a way to prevent this compiler from
20872 # explicitly linking system object files so we need to strip them
20873 # from the output so that they don't get included in the library
20874 # dependencies.
20875 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"'
20878 if test "$GXX" = yes; then
20879 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'
20880 else
20881 # FIXME: insert proper C++ library support
20882 ld_shlibs_CXX=no
20885 esac
20888 hpux10*|hpux11*)
20889 if test $with_gnu_ld = no; then
20890 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20891 hardcode_libdir_separator_CXX=:
20893 case $host_cpu in
20894 hppa*64*|ia64*)
20897 export_dynamic_flag_spec_CXX='${wl}-E'
20899 esac
20901 case $host_cpu in
20902 hppa*64*|ia64*)
20903 hardcode_direct_CXX=no
20904 hardcode_shlibpath_var_CXX=no
20907 hardcode_direct_CXX=yes
20908 hardcode_direct_absolute_CXX=yes
20909 hardcode_minus_L_CXX=yes # Not in the search PATH,
20910 # but as the default
20911 # location of the library.
20913 esac
20915 case $cc_basename in
20916 CC*)
20917 # FIXME: insert proper C++ library support
20918 ld_shlibs_CXX=no
20920 aCC*)
20921 case $host_cpu in
20922 hppa*64*)
20923 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20925 ia64*)
20926 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20929 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20931 esac
20932 # Commands to make compiler produce verbose output that lists
20933 # what "hidden" libraries, object files and flags are used when
20934 # linking a shared library.
20936 # There doesn't appear to be a way to prevent this compiler from
20937 # explicitly linking system object files so we need to strip them
20938 # from the output so that they don't get included in the library
20939 # dependencies.
20940 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"'
20943 if test "$GXX" = yes; then
20944 if test $with_gnu_ld = no; then
20945 case $host_cpu in
20946 hppa*64*)
20947 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20949 ia64*)
20950 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20953 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'
20955 esac
20957 else
20958 # FIXME: insert proper C++ library support
20959 ld_shlibs_CXX=no
20962 esac
20965 interix[3-9]*)
20966 hardcode_direct_CXX=no
20967 hardcode_shlibpath_var_CXX=no
20968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20969 export_dynamic_flag_spec_CXX='${wl}-E'
20970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20971 # Instead, shared libraries are loaded at an image base (0x10000000 by
20972 # default) and relocated if they conflict, which is a slow very memory
20973 # consuming and fragmenting process. To avoid this, we pick a random,
20974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20976 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'
20977 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'
20979 irix5* | irix6*)
20980 case $cc_basename in
20981 CC*)
20982 # SGI C++
20983 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'
20985 # Archives containing C++ object files must be created using
20986 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20987 # necessary to make sure instantiated templates are included
20988 # in the archive.
20989 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20992 if test "$GXX" = yes; then
20993 if test "$with_gnu_ld" = no; then
20994 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'
20995 else
20996 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'
20999 link_all_deplibs_CXX=yes
21001 esac
21002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21003 hardcode_libdir_separator_CXX=:
21004 inherit_rpath_CXX=yes
21007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21008 case $cc_basename in
21009 KCC*)
21010 # Kuck and Associates, Inc. (KAI) C++ Compiler
21012 # KCC will only create a shared library if the output file
21013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21014 # to its proper name (with version) after linking.
21015 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'
21016 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'
21017 # Commands to make compiler produce verbose output that lists
21018 # what "hidden" libraries, object files and flags are used when
21019 # linking a shared library.
21021 # There doesn't appear to be a way to prevent this compiler from
21022 # explicitly linking system object files so we need to strip them
21023 # from the output so that they don't get included in the library
21024 # dependencies.
21025 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"'
21027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21030 # Archives containing C++ object files must be created using
21031 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21032 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21034 icpc* | ecpc* )
21035 # Intel C++
21036 with_gnu_ld=yes
21037 # version 8.0 and above of icpc choke on multiply defined symbols
21038 # if we add $predep_objects and $postdep_objects, however 7.1 and
21039 # earlier do not add the objects themselves.
21040 case `$CC -V 2>&1` in
21041 *"Version 7."*)
21042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21043 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'
21045 *) # Version 8.0 or newer
21046 tmp_idyn=
21047 case $host_cpu in
21048 ia64*) tmp_idyn=' -i_dynamic';;
21049 esac
21050 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21051 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'
21053 esac
21054 archive_cmds_need_lc_CXX=no
21055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21057 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21059 pgCC* | pgcpp*)
21060 # Portland Group C++ compiler
21061 case `$CC -V` in
21062 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21063 prelink_cmds_CXX='tpldir=Template.dir~
21064 rm -rf $tpldir~
21065 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21066 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21067 old_archive_cmds_CXX='tpldir=Template.dir~
21068 rm -rf $tpldir~
21069 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21070 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21071 $RANLIB $oldlib'
21072 archive_cmds_CXX='tpldir=Template.dir~
21073 rm -rf $tpldir~
21074 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21075 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21076 archive_expsym_cmds_CXX='tpldir=Template.dir~
21077 rm -rf $tpldir~
21078 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21079 $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'
21081 *) # Version 6 and above use weak symbols
21082 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21083 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'
21085 esac
21087 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21089 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'
21091 cxx*)
21092 # Compaq C++
21093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21094 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'
21096 runpath_var=LD_RUN_PATH
21097 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21098 hardcode_libdir_separator_CXX=:
21100 # Commands to make compiler produce verbose output that lists
21101 # what "hidden" libraries, object files and flags are used when
21102 # linking a shared library.
21104 # There doesn't appear to be a way to prevent this compiler from
21105 # explicitly linking system object files so we need to strip them
21106 # from the output so that they don't get included in the library
21107 # dependencies.
21108 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'
21110 xl* | mpixl* | bgxl*)
21111 # IBM XL 8.0 on PPC, with GNU ld
21112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21113 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21114 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21115 if test "x$supports_anon_versioning" = xyes; then
21116 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21118 echo "local: *; };" >> $output_objdir/$libname.ver~
21119 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21123 case `$CC -V 2>&1 | sed 5q` in
21124 *Sun\ C*)
21125 # Sun C++ 5.9
21126 no_undefined_flag_CXX=' -zdefs'
21127 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21128 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'
21129 hardcode_libdir_flag_spec_CXX='-R$libdir'
21130 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'
21131 compiler_needs_object_CXX=yes
21133 # Not sure whether something based on
21134 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21135 # would be better.
21136 output_verbose_link_cmd='func_echo_all'
21138 # Archives containing C++ object files must be created using
21139 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21140 # necessary to make sure instantiated templates are included
21141 # in the archive.
21142 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21144 esac
21146 esac
21149 lynxos*)
21150 # FIXME: insert proper C++ library support
21151 ld_shlibs_CXX=no
21154 m88k*)
21155 # FIXME: insert proper C++ library support
21156 ld_shlibs_CXX=no
21159 mvs*)
21160 case $cc_basename in
21161 cxx*)
21162 # FIXME: insert proper C++ library support
21163 ld_shlibs_CXX=no
21166 # FIXME: insert proper C++ library support
21167 ld_shlibs_CXX=no
21169 esac
21172 netbsd*)
21173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21174 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21175 wlarc=
21176 hardcode_libdir_flag_spec_CXX='-R$libdir'
21177 hardcode_direct_CXX=yes
21178 hardcode_shlibpath_var_CXX=no
21180 # Workaround some broken pre-1.5 toolchains
21181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21184 *nto* | *qnx*)
21185 ld_shlibs_CXX=yes
21188 openbsd2*)
21189 # C++ shared libraries are fairly broken
21190 ld_shlibs_CXX=no
21193 openbsd*)
21194 if test -f /usr/libexec/ld.so; then
21195 hardcode_direct_CXX=yes
21196 hardcode_shlibpath_var_CXX=no
21197 hardcode_direct_absolute_CXX=yes
21198 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21201 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21202 export_dynamic_flag_spec_CXX='${wl}-E'
21203 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21205 output_verbose_link_cmd=func_echo_all
21206 else
21207 ld_shlibs_CXX=no
21211 osf3* | osf4* | osf5*)
21212 case $cc_basename in
21213 KCC*)
21214 # Kuck and Associates, Inc. (KAI) C++ Compiler
21216 # KCC will only create a shared library if the output file
21217 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21218 # to its proper name (with version) after linking.
21219 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'
21221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21222 hardcode_libdir_separator_CXX=:
21224 # Archives containing C++ object files must be created using
21225 # the KAI C++ compiler.
21226 case $host in
21227 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21228 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21229 esac
21231 RCC*)
21232 # Rational C++ 2.4.1
21233 # FIXME: insert proper C++ library support
21234 ld_shlibs_CXX=no
21236 cxx*)
21237 case $host in
21238 osf3*)
21239 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21240 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'
21241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21244 allow_undefined_flag_CXX=' -expect_unresolved \*'
21245 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'
21246 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21247 echo "-hidden">> $lib.exp~
21248 $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~
21249 $RM $lib.exp'
21250 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21252 esac
21254 hardcode_libdir_separator_CXX=:
21256 # Commands to make compiler produce verbose output that lists
21257 # what "hidden" libraries, object files and flags are used when
21258 # linking a shared library.
21260 # There doesn't appear to be a way to prevent this compiler from
21261 # explicitly linking system object files so we need to strip them
21262 # from the output so that they don't get included in the library
21263 # dependencies.
21264 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"'
21267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21268 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21269 case $host in
21270 osf3*)
21271 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'
21274 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'
21276 esac
21278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21279 hardcode_libdir_separator_CXX=:
21281 # Commands to make compiler produce verbose output that lists
21282 # what "hidden" libraries, object files and flags are used when
21283 # linking a shared library.
21284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21286 else
21287 # FIXME: insert proper C++ library support
21288 ld_shlibs_CXX=no
21291 esac
21294 psos*)
21295 # FIXME: insert proper C++ library support
21296 ld_shlibs_CXX=no
21299 sunos4*)
21300 case $cc_basename in
21301 CC*)
21302 # Sun C++ 4.x
21303 # FIXME: insert proper C++ library support
21304 ld_shlibs_CXX=no
21306 lcc*)
21307 # Lucid
21308 # FIXME: insert proper C++ library support
21309 ld_shlibs_CXX=no
21312 # FIXME: insert proper C++ library support
21313 ld_shlibs_CXX=no
21315 esac
21318 solaris*)
21319 case $cc_basename in
21320 CC*)
21321 # Sun C++ 4.2, 5.x and Centerline C++
21322 archive_cmds_need_lc_CXX=yes
21323 no_undefined_flag_CXX=' -zdefs'
21324 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21325 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21326 $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'
21328 hardcode_libdir_flag_spec_CXX='-R$libdir'
21329 hardcode_shlibpath_var_CXX=no
21330 case $host_os in
21331 solaris2.[0-5] | solaris2.[0-5].*) ;;
21333 # The compiler driver will combine and reorder linker options,
21334 # but understands `-z linker_flag'.
21335 # Supported since Solaris 2.6 (maybe 2.5.1?)
21336 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21338 esac
21339 link_all_deplibs_CXX=yes
21341 output_verbose_link_cmd='func_echo_all'
21343 # Archives containing C++ object files must be created using
21344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21345 # necessary to make sure instantiated templates are included
21346 # in the archive.
21347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21349 gcx*)
21350 # Green Hills C++ Compiler
21351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21353 # The C++ compiler must be used to create the archive.
21354 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21357 # GNU C++ compiler with Solaris linker
21358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21359 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21360 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21361 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21362 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21363 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21365 # Commands to make compiler produce verbose output that lists
21366 # what "hidden" libraries, object files and flags are used when
21367 # linking a shared library.
21368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21369 else
21370 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21371 # platform.
21372 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21373 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21374 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21376 # Commands to make compiler produce verbose output that lists
21377 # what "hidden" libraries, object files and flags are used when
21378 # linking a shared library.
21379 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21382 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21383 case $host_os in
21384 solaris2.[0-5] | solaris2.[0-5].*) ;;
21386 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21388 esac
21391 esac
21394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21395 no_undefined_flag_CXX='${wl}-z,text'
21396 archive_cmds_need_lc_CXX=no
21397 hardcode_shlibpath_var_CXX=no
21398 runpath_var='LD_RUN_PATH'
21400 case $cc_basename in
21401 CC*)
21402 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21403 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21406 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21407 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21409 esac
21412 sysv5* | sco3.2v5* | sco5v6*)
21413 # Note: We can NOT use -z defs as we might desire, because we do not
21414 # link with -lc, and that would cause any symbols used from libc to
21415 # always be unresolved, which means just about no library would
21416 # ever link correctly. If we're not using GNU ld we use -z text
21417 # though, which does catch some bad symbols but isn't as heavy-handed
21418 # as -z defs.
21419 no_undefined_flag_CXX='${wl}-z,text'
21420 allow_undefined_flag_CXX='${wl}-z,nodefs'
21421 archive_cmds_need_lc_CXX=no
21422 hardcode_shlibpath_var_CXX=no
21423 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21424 hardcode_libdir_separator_CXX=':'
21425 link_all_deplibs_CXX=yes
21426 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21427 runpath_var='LD_RUN_PATH'
21429 case $cc_basename in
21430 CC*)
21431 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21432 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21433 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21434 '"$old_archive_cmds_CXX"
21435 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21436 '"$reload_cmds_CXX"
21439 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21440 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21442 esac
21445 tandem*)
21446 case $cc_basename in
21447 NCC*)
21448 # NonStop-UX NCC 3.20
21449 # FIXME: insert proper C++ library support
21450 ld_shlibs_CXX=no
21453 # FIXME: insert proper C++ library support
21454 ld_shlibs_CXX=no
21456 esac
21459 vxworks*)
21460 # For VxWorks ports, we assume the use of a GNU linker with
21461 # standard elf conventions.
21462 ld_shlibs_CXX=yes
21466 # FIXME: insert proper C++ library support
21467 ld_shlibs_CXX=no
21469 esac
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21472 $as_echo "$ld_shlibs_CXX" >&6; }
21473 test "$ld_shlibs_CXX" = no && can_build_shared=no
21475 GCC_CXX="$GXX"
21476 LD_CXX="$LD"
21478 ## CAVEAT EMPTOR:
21479 ## There is no encapsulation within the following macros, do not change
21480 ## the running order or otherwise move them around unless you know exactly
21481 ## what you are doing...
21482 # Dependencies to place before and after the object being linked:
21483 predep_objects_CXX=
21484 postdep_objects_CXX=
21485 predeps_CXX=
21486 postdeps_CXX=
21487 compiler_lib_search_path_CXX=
21489 cat > conftest.$ac_ext <<_LT_EOF
21490 class Foo
21492 public:
21493 Foo (void) { a = 0; }
21494 private:
21495 int a;
21497 _LT_EOF
21499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21500 (eval $ac_compile) 2>&5
21501 ac_status=$?
21502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21503 test $ac_status = 0; }; then
21504 # Parse the compiler output and extract the necessary
21505 # objects, libraries and library flags.
21507 # Sentinel used to keep track of whether or not we are before
21508 # the conftest object file.
21509 pre_test_object_deps_done=no
21511 for p in `eval "$output_verbose_link_cmd"`; do
21512 case $p in
21514 -L* | -R* | -l*)
21515 # Some compilers place space between "-{L,R}" and the path.
21516 # Remove the space.
21517 if test $p = "-L" ||
21518 test $p = "-R"; then
21519 prev=$p
21520 continue
21521 else
21522 prev=
21525 if test "$pre_test_object_deps_done" = no; then
21526 case $p in
21527 -L* | -R*)
21528 # Internal compiler library paths should come after those
21529 # provided the user. The postdeps already come after the
21530 # user supplied libs so there is no need to process them.
21531 if test -z "$compiler_lib_search_path_CXX"; then
21532 compiler_lib_search_path_CXX="${prev}${p}"
21533 else
21534 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21537 # The "-l" case would never come before the object being
21538 # linked, so don't bother handling this case.
21539 esac
21540 else
21541 if test -z "$postdeps_CXX"; then
21542 postdeps_CXX="${prev}${p}"
21543 else
21544 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21549 *.$objext)
21550 # This assumes that the test object file only shows up
21551 # once in the compiler output.
21552 if test "$p" = "conftest.$objext"; then
21553 pre_test_object_deps_done=yes
21554 continue
21557 if test "$pre_test_object_deps_done" = no; then
21558 if test -z "$predep_objects_CXX"; then
21559 predep_objects_CXX="$p"
21560 else
21561 predep_objects_CXX="$predep_objects_CXX $p"
21563 else
21564 if test -z "$postdep_objects_CXX"; then
21565 postdep_objects_CXX="$p"
21566 else
21567 postdep_objects_CXX="$postdep_objects_CXX $p"
21572 *) ;; # Ignore the rest.
21574 esac
21575 done
21577 # Clean up.
21578 rm -f a.out a.exe
21579 else
21580 echo "libtool.m4: error: problem compiling CXX test program"
21583 $RM -f confest.$objext
21585 # PORTME: override above test on systems where it is broken
21586 case $host_os in
21587 interix[3-9]*)
21588 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21589 # hack all around it, let's just trust "g++" to DTRT.
21590 predep_objects_CXX=
21591 postdep_objects_CXX=
21592 postdeps_CXX=
21595 linux*)
21596 case `$CC -V 2>&1 | sed 5q` in
21597 *Sun\ C*)
21598 # Sun C++ 5.9
21600 # The more standards-conforming stlport4 library is
21601 # incompatible with the Cstd library. Avoid specifying
21602 # it if it's in CXXFLAGS. Ignore libCrun as
21603 # -library=stlport4 depends on it.
21604 case " $CXX $CXXFLAGS " in
21605 *" -library=stlport4 "*)
21606 solaris_use_stlport4=yes
21608 esac
21610 if test "$solaris_use_stlport4" != yes; then
21611 postdeps_CXX='-library=Cstd -library=Crun'
21614 esac
21617 solaris*)
21618 case $cc_basename in
21619 CC*)
21620 # The more standards-conforming stlport4 library is
21621 # incompatible with the Cstd library. Avoid specifying
21622 # it if it's in CXXFLAGS. Ignore libCrun as
21623 # -library=stlport4 depends on it.
21624 case " $CXX $CXXFLAGS " in
21625 *" -library=stlport4 "*)
21626 solaris_use_stlport4=yes
21628 esac
21630 # Adding this requires a known-good setup of shared libraries for
21631 # Sun compiler versions before 5.6, else PIC objects from an old
21632 # archive will be linked into the output, leading to subtle bugs.
21633 if test "$solaris_use_stlport4" != yes; then
21634 postdeps_CXX='-library=Cstd -library=Crun'
21637 esac
21639 esac
21642 case " $postdeps_CXX " in
21643 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21644 esac
21645 compiler_lib_search_dirs_CXX=
21646 if test -n "${compiler_lib_search_path_CXX}"; then
21647 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21680 lt_prog_compiler_wl_CXX=
21681 lt_prog_compiler_pic_CXX=
21682 lt_prog_compiler_static_CXX=
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21685 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21687 # C++ specific cases for pic, static, wl, etc.
21688 if test "$GXX" = yes; then
21689 lt_prog_compiler_wl_CXX='-Wl,'
21690 lt_prog_compiler_static_CXX='-static'
21692 case $host_os in
21693 aix*)
21694 # All AIX code is PIC.
21695 if test "$host_cpu" = ia64; then
21696 # AIX 5 now supports IA64 processor
21697 lt_prog_compiler_static_CXX='-Bstatic'
21699 lt_prog_compiler_pic_CXX='-fPIC'
21702 amigaos*)
21703 case $host_cpu in
21704 powerpc)
21705 # see comment about AmigaOS4 .so support
21706 lt_prog_compiler_pic_CXX='-fPIC'
21708 m68k)
21709 # FIXME: we need at least 68020 code to build shared libraries, but
21710 # adding the `-m68020' flag to GCC prevents building anything better,
21711 # like `-m68040'.
21712 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21714 esac
21717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21718 # PIC is the default for these OSes.
21720 mingw* | cygwin* | os2* | pw32* | cegcc*)
21721 # This hack is so that the source file can tell whether it is being
21722 # built for inclusion in a dll (and should export symbols for example).
21723 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21724 # (--disable-auto-import) libraries
21725 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21727 darwin* | rhapsody*)
21728 # PIC is the default on this platform
21729 # Common symbols not allowed in MH_DYLIB files
21730 lt_prog_compiler_pic_CXX='-fno-common'
21732 *djgpp*)
21733 # DJGPP does not support shared libraries at all
21734 lt_prog_compiler_pic_CXX=
21736 haiku*)
21737 # PIC is the default for Haiku.
21738 # The "-static" flag exists, but is broken.
21739 lt_prog_compiler_static_CXX=
21741 interix[3-9]*)
21742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21743 # Instead, we relocate shared libraries at runtime.
21745 sysv4*MP*)
21746 if test -d /usr/nec; then
21747 lt_prog_compiler_pic_CXX=-Kconform_pic
21750 hpux*)
21751 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21752 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21753 # sets the default TLS model and affects inlining.
21754 case $host_cpu in
21755 hppa*64*)
21758 lt_prog_compiler_pic_CXX='-fPIC'
21760 esac
21762 *qnx* | *nto*)
21763 # QNX uses GNU C++, but need to define -shared option too, otherwise
21764 # it will coredump.
21765 lt_prog_compiler_pic_CXX='-fPIC -shared'
21768 lt_prog_compiler_pic_CXX='-fPIC'
21770 esac
21771 else
21772 case $host_os in
21773 aix[4-9]*)
21774 # All AIX code is PIC.
21775 if test "$host_cpu" = ia64; then
21776 # AIX 5 now supports IA64 processor
21777 lt_prog_compiler_static_CXX='-Bstatic'
21778 else
21779 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21782 chorus*)
21783 case $cc_basename in
21784 cxch68*)
21785 # Green Hills C++ Compiler
21786 # _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"
21788 esac
21790 dgux*)
21791 case $cc_basename in
21792 ec++*)
21793 lt_prog_compiler_pic_CXX='-KPIC'
21795 ghcx*)
21796 # Green Hills C++ Compiler
21797 lt_prog_compiler_pic_CXX='-pic'
21801 esac
21803 freebsd* | dragonfly*)
21804 # FreeBSD uses GNU C++
21806 hpux9* | hpux10* | hpux11*)
21807 case $cc_basename in
21808 CC*)
21809 lt_prog_compiler_wl_CXX='-Wl,'
21810 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21811 if test "$host_cpu" != ia64; then
21812 lt_prog_compiler_pic_CXX='+Z'
21815 aCC*)
21816 lt_prog_compiler_wl_CXX='-Wl,'
21817 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21818 case $host_cpu in
21819 hppa*64*|ia64*)
21820 # +Z the default
21823 lt_prog_compiler_pic_CXX='+Z'
21825 esac
21829 esac
21831 interix*)
21832 # This is c89, which is MS Visual C++ (no shared libs)
21833 # Anyone wants to do a port?
21835 irix5* | irix6* | nonstopux*)
21836 case $cc_basename in
21837 CC*)
21838 lt_prog_compiler_wl_CXX='-Wl,'
21839 lt_prog_compiler_static_CXX='-non_shared'
21840 # CC pic flag -KPIC is the default.
21844 esac
21846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21847 case $cc_basename in
21848 KCC*)
21849 # KAI C++ Compiler
21850 lt_prog_compiler_wl_CXX='--backend -Wl,'
21851 lt_prog_compiler_pic_CXX='-fPIC'
21853 ecpc* )
21854 # old Intel C++ for x86_64 which still supported -KPIC.
21855 lt_prog_compiler_wl_CXX='-Wl,'
21856 lt_prog_compiler_pic_CXX='-KPIC'
21857 lt_prog_compiler_static_CXX='-static'
21859 icpc* )
21860 # Intel C++, used to be incompatible with GCC.
21861 # ICC 10 doesn't accept -KPIC any more.
21862 lt_prog_compiler_wl_CXX='-Wl,'
21863 lt_prog_compiler_pic_CXX='-fPIC'
21864 lt_prog_compiler_static_CXX='-static'
21866 pgCC* | pgcpp*)
21867 # Portland Group C++ compiler
21868 lt_prog_compiler_wl_CXX='-Wl,'
21869 lt_prog_compiler_pic_CXX='-fpic'
21870 lt_prog_compiler_static_CXX='-Bstatic'
21872 cxx*)
21873 # Compaq C++
21874 # Make sure the PIC flag is empty. It appears that all Alpha
21875 # Linux and Compaq Tru64 Unix objects are PIC.
21876 lt_prog_compiler_pic_CXX=
21877 lt_prog_compiler_static_CXX='-non_shared'
21879 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21880 # IBM XL 8.0, 9.0 on PPC and BlueGene
21881 lt_prog_compiler_wl_CXX='-Wl,'
21882 lt_prog_compiler_pic_CXX='-qpic'
21883 lt_prog_compiler_static_CXX='-qstaticlink'
21886 case `$CC -V 2>&1 | sed 5q` in
21887 *Sun\ C*)
21888 # Sun C++ 5.9
21889 lt_prog_compiler_pic_CXX='-KPIC'
21890 lt_prog_compiler_static_CXX='-Bstatic'
21891 lt_prog_compiler_wl_CXX='-Qoption ld '
21893 esac
21895 esac
21897 lynxos*)
21899 m88k*)
21901 mvs*)
21902 case $cc_basename in
21903 cxx*)
21904 lt_prog_compiler_pic_CXX='-W c,exportall'
21908 esac
21910 netbsd*)
21912 *qnx* | *nto*)
21913 # QNX uses GNU C++, but need to define -shared option too, otherwise
21914 # it will coredump.
21915 lt_prog_compiler_pic_CXX='-fPIC -shared'
21917 osf3* | osf4* | osf5*)
21918 case $cc_basename in
21919 KCC*)
21920 lt_prog_compiler_wl_CXX='--backend -Wl,'
21922 RCC*)
21923 # Rational C++ 2.4.1
21924 lt_prog_compiler_pic_CXX='-pic'
21926 cxx*)
21927 # Digital/Compaq C++
21928 lt_prog_compiler_wl_CXX='-Wl,'
21929 # Make sure the PIC flag is empty. It appears that all Alpha
21930 # Linux and Compaq Tru64 Unix objects are PIC.
21931 lt_prog_compiler_pic_CXX=
21932 lt_prog_compiler_static_CXX='-non_shared'
21936 esac
21938 psos*)
21940 solaris*)
21941 case $cc_basename in
21942 CC*)
21943 # Sun C++ 4.2, 5.x and Centerline C++
21944 lt_prog_compiler_pic_CXX='-KPIC'
21945 lt_prog_compiler_static_CXX='-Bstatic'
21946 lt_prog_compiler_wl_CXX='-Qoption ld '
21948 gcx*)
21949 # Green Hills C++ Compiler
21950 lt_prog_compiler_pic_CXX='-PIC'
21954 esac
21956 sunos4*)
21957 case $cc_basename in
21958 CC*)
21959 # Sun C++ 4.x
21960 lt_prog_compiler_pic_CXX='-pic'
21961 lt_prog_compiler_static_CXX='-Bstatic'
21963 lcc*)
21964 # Lucid
21965 lt_prog_compiler_pic_CXX='-pic'
21969 esac
21971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21972 case $cc_basename in
21973 CC*)
21974 lt_prog_compiler_wl_CXX='-Wl,'
21975 lt_prog_compiler_pic_CXX='-KPIC'
21976 lt_prog_compiler_static_CXX='-Bstatic'
21978 esac
21980 tandem*)
21981 case $cc_basename in
21982 NCC*)
21983 # NonStop-UX NCC 3.20
21984 lt_prog_compiler_pic_CXX='-KPIC'
21988 esac
21990 vxworks*)
21993 lt_prog_compiler_can_build_shared_CXX=no
21995 esac
21998 case $host_os in
21999 # For platforms which do not support PIC, -DPIC is meaningless:
22000 *djgpp*)
22001 lt_prog_compiler_pic_CXX=
22004 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22006 esac
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22008 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22013 # Check to make sure the PIC flag actually works.
22015 if test -n "$lt_prog_compiler_pic_CXX"; then
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22017 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22018 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22019 $as_echo_n "(cached) " >&6
22020 else
22021 lt_cv_prog_compiler_pic_works_CXX=no
22022 ac_outfile=conftest.$ac_objext
22023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22024 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22025 # Insert the option either (1) after the last *FLAGS variable, or
22026 # (2) before a word containing "conftest.", or (3) at the end.
22027 # Note that $ac_compile itself does not contain backslashes and begins
22028 # with a dollar sign (not a hyphen), so the echo should work correctly.
22029 # The option is referenced via a variable to avoid confusing sed.
22030 lt_compile=`echo "$ac_compile" | $SED \
22031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22033 -e 's:$: $lt_compiler_flag:'`
22034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22035 (eval "$lt_compile" 2>conftest.err)
22036 ac_status=$?
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 if (exit $ac_status) && test -s "$ac_outfile"; then
22040 # The compiler can only warn and ignore the option if not recognized
22041 # So say no if there are warnings other than the usual output.
22042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22045 lt_cv_prog_compiler_pic_works_CXX=yes
22048 $RM conftest*
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22052 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22054 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22055 case $lt_prog_compiler_pic_CXX in
22056 "" | " "*) ;;
22057 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22058 esac
22059 else
22060 lt_prog_compiler_pic_CXX=
22061 lt_prog_compiler_can_build_shared_CXX=no
22069 # Check to make sure the static flag actually works.
22071 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22073 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22074 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22075 $as_echo_n "(cached) " >&6
22076 else
22077 lt_cv_prog_compiler_static_works_CXX=no
22078 save_LDFLAGS="$LDFLAGS"
22079 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22080 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22081 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22082 # The linker can only warn and ignore the option if not recognized
22083 # So say no if there are warnings
22084 if test -s conftest.err; then
22085 # Append any errors to the config.log.
22086 cat conftest.err 1>&5
22087 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22089 if diff conftest.exp conftest.er2 >/dev/null; then
22090 lt_cv_prog_compiler_static_works_CXX=yes
22092 else
22093 lt_cv_prog_compiler_static_works_CXX=yes
22096 $RM -r conftest*
22097 LDFLAGS="$save_LDFLAGS"
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22101 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22103 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22105 else
22106 lt_prog_compiler_static_CXX=
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22114 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22115 $as_echo_n "(cached) " >&6
22116 else
22117 lt_cv_prog_compiler_c_o_CXX=no
22118 $RM -r conftest 2>/dev/null
22119 mkdir conftest
22120 cd conftest
22121 mkdir out
22122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22124 lt_compiler_flag="-o out/conftest2.$ac_objext"
22125 # Insert the option either (1) after the last *FLAGS variable, or
22126 # (2) before a word containing "conftest.", or (3) at the end.
22127 # Note that $ac_compile itself does not contain backslashes and begins
22128 # with a dollar sign (not a hyphen), so the echo should work correctly.
22129 lt_compile=`echo "$ac_compile" | $SED \
22130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22132 -e 's:$: $lt_compiler_flag:'`
22133 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22134 (eval "$lt_compile" 2>out/conftest.err)
22135 ac_status=$?
22136 cat out/conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22139 then
22140 # The compiler can only warn and ignore the option if not recognized
22141 # So say no if there are warnings
22142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22143 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22144 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22145 lt_cv_prog_compiler_c_o_CXX=yes
22148 chmod u+w . 2>&5
22149 $RM conftest*
22150 # SGI C++ compiler will create directory out/ii_files/ for
22151 # template instantiation
22152 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22153 $RM out/* && rmdir out
22154 cd ..
22155 $RM -r conftest
22156 $RM conftest*
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22160 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22166 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22167 $as_echo_n "(cached) " >&6
22168 else
22169 lt_cv_prog_compiler_c_o_CXX=no
22170 $RM -r conftest 2>/dev/null
22171 mkdir conftest
22172 cd conftest
22173 mkdir out
22174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22176 lt_compiler_flag="-o out/conftest2.$ac_objext"
22177 # Insert the option either (1) after the last *FLAGS variable, or
22178 # (2) before a word containing "conftest.", or (3) at the end.
22179 # Note that $ac_compile itself does not contain backslashes and begins
22180 # with a dollar sign (not a hyphen), so the echo should work correctly.
22181 lt_compile=`echo "$ac_compile" | $SED \
22182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22184 -e 's:$: $lt_compiler_flag:'`
22185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22186 (eval "$lt_compile" 2>out/conftest.err)
22187 ac_status=$?
22188 cat out/conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22191 then
22192 # The compiler can only warn and ignore the option if not recognized
22193 # So say no if there are warnings
22194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22197 lt_cv_prog_compiler_c_o_CXX=yes
22200 chmod u+w . 2>&5
22201 $RM conftest*
22202 # SGI C++ compiler will create directory out/ii_files/ for
22203 # template instantiation
22204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22205 $RM out/* && rmdir out
22206 cd ..
22207 $RM -r conftest
22208 $RM conftest*
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22212 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22217 hard_links="nottested"
22218 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22219 # do not overwrite the value of need_locks provided by the user
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22221 $as_echo_n "checking if we can lock with hard links... " >&6; }
22222 hard_links=yes
22223 $RM conftest*
22224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22225 touch conftest.a
22226 ln conftest.a conftest.b 2>&5 || hard_links=no
22227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22229 $as_echo "$hard_links" >&6; }
22230 if test "$hard_links" = no; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22233 need_locks=warn
22235 else
22236 need_locks=no
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22244 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22245 case $host_os in
22246 aix[4-9]*)
22247 # If we're using GNU nm, then we don't want the "-C" option.
22248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22249 # Also, AIX nm treats weak defined symbols like other global defined
22250 # symbols, whereas GNU nm marks them as "W".
22251 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22252 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'
22253 else
22254 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'
22257 pw32*)
22258 export_symbols_cmds_CXX="$ltdll_cmds"
22260 cygwin* | mingw* | cegcc*)
22261 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'
22264 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22266 esac
22267 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22270 $as_echo "$ld_shlibs_CXX" >&6; }
22271 test "$ld_shlibs_CXX" = no && can_build_shared=no
22273 with_gnu_ld_CXX=$with_gnu_ld
22281 # Do we need to explicitly link libc?
22283 case "x$archive_cmds_need_lc_CXX" in
22284 x|xyes)
22285 # Assume -lc should be added
22286 archive_cmds_need_lc_CXX=yes
22288 if test "$enable_shared" = yes && test "$GCC" = yes; then
22289 case $archive_cmds_CXX in
22290 *'~'*)
22291 # FIXME: we may have to deal with multi-command sequences.
22293 '$CC '*)
22294 # Test whether the compiler implicitly links with -lc since on some
22295 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22296 # to ld, don't add -lc before -lgcc.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22298 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22299 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 $RM conftest*
22303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22306 (eval $ac_compile) 2>&5
22307 ac_status=$?
22308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309 test $ac_status = 0; } 2>conftest.err; then
22310 soname=conftest
22311 lib=conftest
22312 libobjs=conftest.$ac_objext
22313 deplibs=
22314 wl=$lt_prog_compiler_wl_CXX
22315 pic_flag=$lt_prog_compiler_pic_CXX
22316 compiler_flags=-v
22317 linker_flags=-v
22318 verstring=
22319 output_objdir=.
22320 libname=conftest
22321 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22322 allow_undefined_flag_CXX=
22323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22324 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22325 ac_status=$?
22326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22327 test $ac_status = 0; }
22328 then
22329 lt_cv_archive_cmds_need_lc_CXX=no
22330 else
22331 lt_cv_archive_cmds_need_lc_CXX=yes
22333 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22334 else
22335 cat conftest.err 1>&5
22337 $RM conftest*
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22341 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22342 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22344 esac
22347 esac
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22413 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22415 library_names_spec=
22416 libname_spec='lib$name'
22417 soname_spec=
22418 shrext_cmds=".so"
22419 postinstall_cmds=
22420 postuninstall_cmds=
22421 finish_cmds=
22422 finish_eval=
22423 shlibpath_var=
22424 shlibpath_overrides_runpath=unknown
22425 version_type=none
22426 dynamic_linker="$host_os ld.so"
22427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22428 need_lib_prefix=unknown
22429 hardcode_into_libs=no
22431 # when you set need_version to no, make sure it does not cause -set_version
22432 # flags to be left without arguments
22433 need_version=unknown
22435 case $host_os in
22436 aix3*)
22437 version_type=linux
22438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22439 shlibpath_var=LIBPATH
22441 # AIX 3 has no versioning support, so we append a major version to the name.
22442 soname_spec='${libname}${release}${shared_ext}$major'
22445 aix[4-9]*)
22446 version_type=linux
22447 need_lib_prefix=no
22448 need_version=no
22449 hardcode_into_libs=yes
22450 if test "$host_cpu" = ia64; then
22451 # AIX 5 supports IA64
22452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22453 shlibpath_var=LD_LIBRARY_PATH
22454 else
22455 # With GCC up to 2.95.x, collect2 would create an import file
22456 # for dependence libraries. The import file would start with
22457 # the line `#! .'. This would cause the generated library to
22458 # depend on `.', always an invalid library. This was fixed in
22459 # development snapshots of GCC prior to 3.0.
22460 case $host_os in
22461 aix4 | aix4.[01] | aix4.[01].*)
22462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22463 echo ' yes '
22464 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22466 else
22467 can_build_shared=no
22470 esac
22471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22472 # soname into executable. Probably we can add versioning support to
22473 # collect2, so additional links can be useful in future.
22474 if test "$aix_use_runtimelinking" = yes; then
22475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22476 # instead of lib<name>.a to let people know that these are not
22477 # typical AIX shared libraries.
22478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22479 else
22480 # We preserve .a as extension for shared libraries through AIX4.2
22481 # and later when we are not doing run time linking.
22482 library_names_spec='${libname}${release}.a $libname.a'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22485 shlibpath_var=LIBPATH
22489 amigaos*)
22490 case $host_cpu in
22491 powerpc)
22492 # Since July 2007 AmigaOS4 officially supports .so libraries.
22493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22496 m68k)
22497 library_names_spec='$libname.ixlibrary $libname.a'
22498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22499 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'
22501 esac
22504 beos*)
22505 library_names_spec='${libname}${shared_ext}'
22506 dynamic_linker="$host_os ld.so"
22507 shlibpath_var=LIBRARY_PATH
22510 bsdi[45]*)
22511 version_type=linux
22512 need_version=no
22513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22514 soname_spec='${libname}${release}${shared_ext}$major'
22515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22516 shlibpath_var=LD_LIBRARY_PATH
22517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22519 # the default ld.so.conf also contains /usr/contrib/lib and
22520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22521 # libtool to hard-code these into programs
22524 cygwin* | mingw* | pw32* | cegcc*)
22525 version_type=windows
22526 shrext_cmds=".dll"
22527 need_version=no
22528 need_lib_prefix=no
22530 case $GCC,$host_os in
22531 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22532 library_names_spec='$libname.dll.a'
22533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22534 postinstall_cmds='base_file=`basename \${file}`~
22535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22536 dldir=$destdir/`dirname \$dlpath`~
22537 test -d \$dldir || mkdir -p \$dldir~
22538 $install_prog $dir/$dlname \$dldir/$dlname~
22539 chmod a+x \$dldir/$dlname~
22540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22544 dlpath=$dir/\$dldll~
22545 $RM \$dlpath'
22546 shlibpath_overrides_runpath=yes
22548 case $host_os in
22549 cygwin*)
22550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22551 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22554 mingw* | cegcc*)
22555 # MinGW DLLs use traditional 'lib' prefix
22556 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22558 pw32*)
22559 # pw32 DLLs use 'pw' prefix rather than 'lib'
22560 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22562 esac
22566 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22568 esac
22569 dynamic_linker='Win32 ld.exe'
22570 # FIXME: first we should search . and the directory the executable is in
22571 shlibpath_var=PATH
22574 darwin* | rhapsody*)
22575 dynamic_linker="$host_os dyld"
22576 version_type=darwin
22577 need_lib_prefix=no
22578 need_version=no
22579 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22580 soname_spec='${libname}${release}${major}$shared_ext'
22581 shlibpath_overrides_runpath=yes
22582 shlibpath_var=DYLD_LIBRARY_PATH
22583 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22588 dgux*)
22589 version_type=linux
22590 need_lib_prefix=no
22591 need_version=no
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22593 soname_spec='${libname}${release}${shared_ext}$major'
22594 shlibpath_var=LD_LIBRARY_PATH
22597 freebsd* | dragonfly*)
22598 # DragonFly does not have aout. When/if they implement a new
22599 # versioning mechanism, adjust this.
22600 if test -x /usr/bin/objformat; then
22601 objformat=`/usr/bin/objformat`
22602 else
22603 case $host_os in
22604 freebsd[23].*) objformat=aout ;;
22605 *) objformat=elf ;;
22606 esac
22608 version_type=freebsd-$objformat
22609 case $version_type in
22610 freebsd-elf*)
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22612 need_version=no
22613 need_lib_prefix=no
22615 freebsd-*)
22616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22617 need_version=yes
22619 esac
22620 shlibpath_var=LD_LIBRARY_PATH
22621 case $host_os in
22622 freebsd2.*)
22623 shlibpath_overrides_runpath=yes
22625 freebsd3.[01]* | freebsdelf3.[01]*)
22626 shlibpath_overrides_runpath=yes
22627 hardcode_into_libs=yes
22629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22631 shlibpath_overrides_runpath=no
22632 hardcode_into_libs=yes
22634 *) # from 4.6 on, and DragonFly
22635 shlibpath_overrides_runpath=yes
22636 hardcode_into_libs=yes
22638 esac
22641 haiku*)
22642 version_type=linux
22643 need_lib_prefix=no
22644 need_version=no
22645 dynamic_linker="$host_os runtime_loader"
22646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 shlibpath_var=LIBRARY_PATH
22649 shlibpath_overrides_runpath=yes
22650 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22651 hardcode_into_libs=yes
22654 hpux9* | hpux10* | hpux11*)
22655 # Give a soname corresponding to the major version so that dld.sl refuses to
22656 # link against other versions.
22657 version_type=sunos
22658 need_lib_prefix=no
22659 need_version=no
22660 case $host_cpu in
22661 ia64*)
22662 shrext_cmds='.so'
22663 hardcode_into_libs=yes
22664 dynamic_linker="$host_os dld.so"
22665 shlibpath_var=LD_LIBRARY_PATH
22666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22668 soname_spec='${libname}${release}${shared_ext}$major'
22669 if test "X$HPUX_IA64_MODE" = X32; then
22670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22671 else
22672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22676 hppa*64*)
22677 shrext_cmds='.sl'
22678 hardcode_into_libs=yes
22679 dynamic_linker="$host_os dld.sl"
22680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22683 soname_spec='${libname}${release}${shared_ext}$major'
22684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22688 shrext_cmds='.sl'
22689 dynamic_linker="$host_os dld.sl"
22690 shlibpath_var=SHLIB_PATH
22691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693 soname_spec='${libname}${release}${shared_ext}$major'
22695 esac
22696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22697 postinstall_cmds='chmod 555 $lib'
22698 # or fails outright, so override atomically:
22699 install_override_mode=555
22702 interix[3-9]*)
22703 version_type=linux
22704 need_lib_prefix=no
22705 need_version=no
22706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22707 soname_spec='${libname}${release}${shared_ext}$major'
22708 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22709 shlibpath_var=LD_LIBRARY_PATH
22710 shlibpath_overrides_runpath=no
22711 hardcode_into_libs=yes
22714 irix5* | irix6* | nonstopux*)
22715 case $host_os in
22716 nonstopux*) version_type=nonstopux ;;
22718 if test "$lt_cv_prog_gnu_ld" = yes; then
22719 version_type=linux
22720 else
22721 version_type=irix
22722 fi ;;
22723 esac
22724 need_lib_prefix=no
22725 need_version=no
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22728 case $host_os in
22729 irix5* | nonstopux*)
22730 libsuff= shlibsuff=
22733 case $LD in # libtool.m4 will add one of these switches to LD
22734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22735 libsuff= shlibsuff= libmagic=32-bit;;
22736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22737 libsuff=32 shlibsuff=N32 libmagic=N32;;
22738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22739 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22740 *) libsuff= shlibsuff= libmagic=never-match;;
22741 esac
22743 esac
22744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22745 shlibpath_overrides_runpath=no
22746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22748 hardcode_into_libs=yes
22751 # No shared lib support for Linux oldld, aout, or coff.
22752 linux*oldld* | linux*aout* | linux*coff*)
22753 dynamic_linker=no
22756 # This must be Linux ELF.
22758 # uclinux* changes (here and below) have been submitted to the libtool
22759 # project, but have not yet been accepted: they are GCC-local changes
22760 # for the time being. (See
22761 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22762 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22763 version_type=linux
22764 need_lib_prefix=no
22765 need_version=no
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 soname_spec='${libname}${release}${shared_ext}$major'
22768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22769 shlibpath_var=LD_LIBRARY_PATH
22770 shlibpath_overrides_runpath=no
22772 # Some binutils ld are patched to set DT_RUNPATH
22773 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22774 $as_echo_n "(cached) " >&6
22775 else
22776 lt_cv_shlibpath_overrides_runpath=no
22777 save_LDFLAGS=$LDFLAGS
22778 save_libdir=$libdir
22779 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22780 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h. */
22785 main ()
22789 return 0;
22791 _ACEOF
22792 if ac_fn_cxx_try_link "$LINENO"; then :
22793 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22794 lt_cv_shlibpath_overrides_runpath=yes
22797 rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
22799 LDFLAGS=$save_LDFLAGS
22800 libdir=$save_libdir
22804 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22806 # This implies no fast_install, which is unacceptable.
22807 # Some rework will be needed to allow for fast_install
22808 # before this can be enabled.
22809 hardcode_into_libs=yes
22811 # Append ld.so.conf contents to the search path
22812 if test -f /etc/ld.so.conf; then
22813 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' ' '`
22814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22817 # We used to test for /lib/ld.so.1 and disable shared libraries on
22818 # powerpc, because MkLinux only supported shared libraries with the
22819 # GNU dynamic linker. Since this was broken with cross compilers,
22820 # most powerpc-linux boxes support dynamic linking these days and
22821 # people can always --disable-shared, the test was removed, and we
22822 # assume the GNU/Linux dynamic linker is in use.
22823 dynamic_linker='GNU/Linux ld.so'
22826 netbsd*)
22827 version_type=sunos
22828 need_lib_prefix=no
22829 need_version=no
22830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22833 dynamic_linker='NetBSD (a.out) ld.so'
22834 else
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22836 soname_spec='${libname}${release}${shared_ext}$major'
22837 dynamic_linker='NetBSD ld.elf_so'
22839 shlibpath_var=LD_LIBRARY_PATH
22840 shlibpath_overrides_runpath=yes
22841 hardcode_into_libs=yes
22844 newsos6)
22845 version_type=linux
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22847 shlibpath_var=LD_LIBRARY_PATH
22848 shlibpath_overrides_runpath=yes
22851 *nto* | *qnx*)
22852 version_type=qnx
22853 need_lib_prefix=no
22854 need_version=no
22855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22856 soname_spec='${libname}${release}${shared_ext}$major'
22857 shlibpath_var=LD_LIBRARY_PATH
22858 shlibpath_overrides_runpath=no
22859 hardcode_into_libs=yes
22860 dynamic_linker='ldqnx.so'
22863 openbsd*)
22864 version_type=sunos
22865 sys_lib_dlsearch_path_spec="/usr/lib"
22866 need_lib_prefix=no
22867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22868 case $host_os in
22869 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22870 *) need_version=no ;;
22871 esac
22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22874 shlibpath_var=LD_LIBRARY_PATH
22875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22876 case $host_os in
22877 openbsd2.[89] | openbsd2.[89].*)
22878 shlibpath_overrides_runpath=no
22881 shlibpath_overrides_runpath=yes
22883 esac
22884 else
22885 shlibpath_overrides_runpath=yes
22889 os2*)
22890 libname_spec='$name'
22891 shrext_cmds=".dll"
22892 need_lib_prefix=no
22893 library_names_spec='$libname${shared_ext} $libname.a'
22894 dynamic_linker='OS/2 ld.exe'
22895 shlibpath_var=LIBPATH
22898 osf3* | osf4* | osf5*)
22899 version_type=osf
22900 need_lib_prefix=no
22901 need_version=no
22902 soname_spec='${libname}${release}${shared_ext}$major'
22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22904 shlibpath_var=LD_LIBRARY_PATH
22905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22909 rdos*)
22910 dynamic_linker=no
22913 solaris*)
22914 version_type=linux
22915 need_lib_prefix=no
22916 need_version=no
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 shlibpath_overrides_runpath=yes
22921 hardcode_into_libs=yes
22922 # ldd complains unless libraries are executable
22923 postinstall_cmds='chmod +x $lib'
22926 sunos4*)
22927 version_type=sunos
22928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 shlibpath_overrides_runpath=yes
22932 if test "$with_gnu_ld" = yes; then
22933 need_lib_prefix=no
22935 need_version=yes
22938 sysv4 | sysv4.3*)
22939 version_type=linux
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 soname_spec='${libname}${release}${shared_ext}$major'
22942 shlibpath_var=LD_LIBRARY_PATH
22943 case $host_vendor in
22944 sni)
22945 shlibpath_overrides_runpath=no
22946 need_lib_prefix=no
22947 runpath_var=LD_RUN_PATH
22949 siemens)
22950 need_lib_prefix=no
22952 motorola)
22953 need_lib_prefix=no
22954 need_version=no
22955 shlibpath_overrides_runpath=no
22956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22958 esac
22961 sysv4*MP*)
22962 if test -d /usr/nec ;then
22963 version_type=linux
22964 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22965 soname_spec='$libname${shared_ext}.$major'
22966 shlibpath_var=LD_LIBRARY_PATH
22970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22971 version_type=freebsd-elf
22972 need_lib_prefix=no
22973 need_version=no
22974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22975 soname_spec='${libname}${release}${shared_ext}$major'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 shlibpath_overrides_runpath=yes
22978 hardcode_into_libs=yes
22979 if test "$with_gnu_ld" = yes; then
22980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22981 else
22982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22983 case $host_os in
22984 sco3.2v5*)
22985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22987 esac
22989 sys_lib_dlsearch_path_spec='/usr/lib'
22992 tpf*)
22993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22994 version_type=linux
22995 need_lib_prefix=no
22996 need_version=no
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath=no
23000 hardcode_into_libs=yes
23003 uts4*)
23004 version_type=linux
23005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23006 soname_spec='${libname}${release}${shared_ext}$major'
23007 shlibpath_var=LD_LIBRARY_PATH
23010 # Shared libraries for VwWorks, >= 7 only at this stage
23011 # and (fpic) still incompatible with "large" code models
23012 # in a few configurations. Only for RTP mode in any case,
23013 # and upon explicit request at configure time.
23014 vxworks7*)
23015 dynamic_linker=no
23016 case ${with_multisubdir}-${enable_shared} in
23017 *large*)
23019 *mrtp*-yes)
23020 version_type=linux
23021 need_lib_prefix=no
23022 need_version=no
23023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23024 soname_spec='${libname}${release}${shared_ext}$major'
23025 dynamic_linker="$host_os module_loader"
23027 esac
23030 dynamic_linker=no
23032 esac
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23034 $as_echo "$dynamic_linker" >&6; }
23035 test "$dynamic_linker" = no && can_build_shared=no
23037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23038 if test "$GCC" = yes; then
23039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23042 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23043 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23045 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23046 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23087 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23088 hardcode_action_CXX=
23089 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23090 test -n "$runpath_var_CXX" ||
23091 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23093 # We can hardcode non-existent directories.
23094 if test "$hardcode_direct_CXX" != no &&
23095 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23096 # have to relink, otherwise we might link with an installed library
23097 # when we should be linking with a yet-to-be-installed one
23098 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23099 test "$hardcode_minus_L_CXX" != no; then
23100 # Linking always hardcodes the temporary library directory.
23101 hardcode_action_CXX=relink
23102 else
23103 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23104 hardcode_action_CXX=immediate
23106 else
23107 # We cannot hardcode anything, or else we can only hardcode existing
23108 # directories.
23109 hardcode_action_CXX=unsupported
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23112 $as_echo "$hardcode_action_CXX" >&6; }
23114 if test "$hardcode_action_CXX" = relink ||
23115 test "$inherit_rpath_CXX" = yes; then
23116 # Fast installation is not supported
23117 enable_fast_install=no
23118 elif test "$shlibpath_overrides_runpath" = yes ||
23119 test "$enable_shared" = no; then
23120 # Fast installation is not necessary
23121 enable_fast_install=needless
23130 fi # test -n "$compiler"
23132 CC=$lt_save_CC
23133 LDCXX=$LD
23134 LD=$lt_save_LD
23135 GCC=$lt_save_GCC
23136 with_gnu_ld=$lt_save_with_gnu_ld
23137 lt_cv_path_LDCXX=$lt_cv_path_LD
23138 lt_cv_path_LD=$lt_save_path_LD
23139 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23140 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23141 fi # test "$_lt_caught_CXX_error" != yes
23143 ac_ext=cpp
23144 ac_cpp='$CXXCPP $CPPFLAGS'
23145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23164 # Only expand once:
23170 # Identify the assembler which will work hand-in-glove with the newly
23171 # built GCC, so that we can examine its features. This is the assembler
23172 # which will be driven by the driver program.
23174 # If build != host, and we aren't building gas in-tree, we identify a
23175 # build->target assembler and hope that it will have the same features
23176 # as the host->target assembler we'll be using.
23177 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23179 if ${gcc_cv_as+:} false; then :
23181 else
23183 if test -x "$DEFAULT_ASSEMBLER"; then
23184 gcc_cv_as="$DEFAULT_ASSEMBLER"
23185 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23186 && test -f ../gas/Makefile \
23187 && test x$build = x$host; then
23188 gcc_cv_as=../gas/as-new$build_exeext
23189 elif test -x as$build_exeext; then
23190 # Build using assembler in the current directory.
23191 gcc_cv_as=./as$build_exeext
23192 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23193 gcc_cv_as="$AS_FOR_TARGET"
23194 else
23195 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23196 set dummy $AS_FOR_TARGET; ac_word=$2
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23198 $as_echo_n "checking for $ac_word... " >&6; }
23199 if ${ac_cv_path_gcc_cv_as+:} false; then :
23200 $as_echo_n "(cached) " >&6
23201 else
23202 case $gcc_cv_as in
23203 [\\/]* | ?:[\\/]*)
23204 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23208 for as_dir in $PATH
23210 IFS=$as_save_IFS
23211 test -z "$as_dir" && as_dir=.
23212 for ac_exec_ext in '' $ac_executable_extensions; do
23213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23214 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23216 break 2
23218 done
23219 done
23220 IFS=$as_save_IFS
23223 esac
23225 gcc_cv_as=$ac_cv_path_gcc_cv_as
23226 if test -n "$gcc_cv_as"; then
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23228 $as_echo "$gcc_cv_as" >&6; }
23229 else
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23238 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23240 case "$ORIGINAL_AS_FOR_TARGET" in
23241 ./as | ./as$build_exeext) ;;
23242 *) ac_config_files="$ac_config_files as:exec-tool.in"
23244 esac
23246 default_ld=
23247 # Check whether --enable-ld was given.
23248 if test "${enable_ld+set}" = set; then :
23249 enableval=$enable_ld; case "${enableval}" in
23251 default_ld=ld.gold
23253 esac
23257 install_gold_as_default=no
23258 # Check whether --enable-gold was given.
23259 if test "${enable_gold+set}" = set; then :
23260 enableval=$enable_gold; case "${enableval}" in
23261 default)
23262 install_gold_as_default=yes
23264 yes)
23265 if test x${default_ld} != x; then
23266 install_gold_as_default=yes
23272 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23274 esac
23278 # Identify the linker which will work hand-in-glove with the newly
23279 # built GCC, so that we can examine its features. This is the linker
23280 # which will be driven by the driver program.
23282 # If build != host, and we aren't building gas in-tree, we identify a
23283 # build->target linker and hope that it will have the same features
23284 # as the host->target linker we'll be using.
23285 gcc_cv_gld_major_version=
23286 gcc_cv_gld_minor_version=
23287 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23288 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23289 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23291 if ${gcc_cv_ld+:} false; then :
23293 else
23295 if test -x "$DEFAULT_LINKER"; then
23296 gcc_cv_ld="$DEFAULT_LINKER"
23297 elif test $install_gold_as_default = yes \
23298 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23299 && test -f ../gold/Makefile \
23300 && test x$build = x$host; then
23301 gcc_cv_ld=../gold/ld-new$build_exeext
23302 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23303 && test -f ../ld/Makefile \
23304 && test x$build = x$host; then
23305 gcc_cv_ld=../ld/ld-new$build_exeext
23306 elif test -x collect-ld$build_exeext; then
23307 # Build using linker in the current directory.
23308 gcc_cv_ld=./collect-ld$build_exeext
23309 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23310 gcc_cv_ld="$LD_FOR_TARGET"
23311 else
23312 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23313 set dummy $LD_FOR_TARGET; ac_word=$2
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23315 $as_echo_n "checking for $ac_word... " >&6; }
23316 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 case $gcc_cv_ld in
23320 [\\/]* | ?:[\\/]*)
23321 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23325 for as_dir in $PATH
23327 IFS=$as_save_IFS
23328 test -z "$as_dir" && as_dir=.
23329 for ac_exec_ext in '' $ac_executable_extensions; do
23330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23331 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23333 break 2
23335 done
23336 done
23337 IFS=$as_save_IFS
23340 esac
23342 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23343 if test -n "$gcc_cv_ld"; then
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23345 $as_echo "$gcc_cv_ld" >&6; }
23346 else
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23348 $as_echo "no" >&6; }
23355 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23356 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23357 # if the PLUGIN_LD is set ld-new, just have it as ld
23358 # as that is the installed named.
23359 if test x$PLUGIN_LD_SUFFIX = xld-new \
23360 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23361 PLUGIN_LD_SUFFIX=ld
23364 # Check whether --with-plugin-ld was given.
23365 if test "${with_plugin_ld+set}" = set; then :
23366 withval=$with_plugin_ld; if test x"$withval" != x; then
23367 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23368 PLUGIN_LD_SUFFIX="$withval"
23374 cat >>confdefs.h <<_ACEOF
23375 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23376 _ACEOF
23379 # Check to see if we are using gold instead of ld
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23381 $as_echo_n "checking whether we are using gold... " >&6; }
23382 ld_is_gold=no
23383 if test x$gcc_cv_ld != x; then
23384 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23385 | grep "GNU gold" > /dev/null; then
23386 ld_is_gold=yes
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23390 $as_echo "$ld_is_gold" >&6; }
23392 # Check to see if we are using mold instead of ld
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23394 $as_echo_n "checking whether we are using mold... " >&6; }
23395 ld_is_mold=no
23396 if test x$gcc_cv_ld != x; then
23397 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23398 | grep "mold" > /dev/null; then
23399 ld_is_mold=yes
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23403 $as_echo "$ld_is_mold" >&6; }
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23407 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23408 # Check to see if default ld is not gold, but gold is
23409 # available and has support for split stack. If gcc was configured
23410 # with gold then no checking is done.
23412 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23414 # For platforms other than powerpc64*, enable as appropriate.
23416 gold_non_default=no
23417 ld_gold=`which ${gcc_cv_ld}.gold`
23418 # Make sure this gold has minimal split stack support
23419 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23420 ld_vers=`$ld_gold --version | sed 1q`
23421 gold_vers=`echo $ld_vers | sed -n \
23422 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23423 case $target in
23424 # check that the gold version contains the complete split stack support
23425 # on powerpc64 big and little endian
23426 powerpc64*-*-*)
23427 case "$gold_vers" in
23428 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23430 *) gold_non_default=no
23432 esac
23434 esac
23436 if test $gold_non_default = yes; then
23438 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23443 $as_echo "$gold_non_default" >&6; }
23445 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23447 case "$ORIGINAL_LD_FOR_TARGET" in
23448 ./collect-ld | ./collect-ld$build_exeext) ;;
23449 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23451 esac
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23454 $as_echo_n "checking what linker to use... " >&6; }
23455 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23456 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23457 # Single tree build which includes ld. We want to prefer it
23458 # over whatever linker top-level may have detected, since
23459 # we'll use what we're building after installation anyway.
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23461 $as_echo "newly built ld" >&6; }
23462 in_tree_ld=yes
23463 in_tree_ld_is_elf=no
23464 if (grep 'EMUL = .*elf' ../ld/Makefile \
23465 || grep 'EMUL = .*linux' ../ld/Makefile \
23466 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23467 in_tree_ld_is_elf=yes
23468 elif test "$ld_is_gold" = yes; then
23469 in_tree_ld_is_elf=yes
23471 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
23473 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23474 if test x$gcc_cv_gld_version != x; then
23475 break
23477 done
23478 case $gcc_cv_gld_version in
23479 VERSION=[0-9]*) ;;
23480 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23481 esac
23482 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23483 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23484 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23485 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23486 else
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23488 $as_echo "$gcc_cv_ld" >&6; }
23489 in_tree_ld=no
23490 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23491 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23492 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23498 # Figure out what nm we will be using.
23499 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23500 if ${gcc_cv_nm+:} false; then :
23502 else
23504 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23505 && test -f ../binutils/Makefile \
23506 && test x$build = x$host; then
23507 gcc_cv_nm=../binutils/nm-new$build_exeext
23508 elif test -x nm$build_exeext; then
23509 gcc_cv_nm=./nm$build_exeext
23510 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23511 gcc_cv_nm="$NM_FOR_TARGET"
23512 else
23513 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23514 set dummy $NM_FOR_TARGET; ac_word=$2
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23516 $as_echo_n "checking for $ac_word... " >&6; }
23517 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23518 $as_echo_n "(cached) " >&6
23519 else
23520 case $gcc_cv_nm in
23521 [\\/]* | ?:[\\/]*)
23522 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23526 for as_dir in $PATH
23528 IFS=$as_save_IFS
23529 test -z "$as_dir" && as_dir=.
23530 for ac_exec_ext in '' $ac_executable_extensions; do
23531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23532 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23534 break 2
23536 done
23537 done
23538 IFS=$as_save_IFS
23541 esac
23543 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23544 if test -n "$gcc_cv_nm"; then
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23546 $as_echo "$gcc_cv_nm" >&6; }
23547 else
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23557 $as_echo_n "checking what nm to use... " >&6; }
23558 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23559 # Single tree build which includes binutils.
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23561 $as_echo "newly built nm" >&6; }
23562 in_tree_nm=yes
23563 else
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23565 $as_echo "$gcc_cv_nm" >&6; }
23566 in_tree_nm=no
23569 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23571 case "$ORIGINAL_NM_FOR_TARGET" in
23572 ./nm | ./nm$build_exeext) ;;
23573 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23575 esac
23578 # Figure out what objdump we will be using.
23579 if ${gcc_cv_objdump+:} false; then :
23581 else
23583 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23584 && test -f ../binutils/Makefile \
23585 && test x$build = x$host; then
23586 # Single tree build which includes binutils.
23587 gcc_cv_objdump=../binutils/objdump$build_exeext
23588 elif test -x objdump$build_exeext; then
23589 gcc_cv_objdump=./objdump$build_exeext
23590 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23591 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23592 else
23593 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23594 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23596 $as_echo_n "checking for $ac_word... " >&6; }
23597 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23598 $as_echo_n "(cached) " >&6
23599 else
23600 case $gcc_cv_objdump in
23601 [\\/]* | ?:[\\/]*)
23602 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23606 for as_dir in $PATH
23608 IFS=$as_save_IFS
23609 test -z "$as_dir" && as_dir=.
23610 for ac_exec_ext in '' $ac_executable_extensions; do
23611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23612 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23614 break 2
23616 done
23617 done
23618 IFS=$as_save_IFS
23621 esac
23623 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23624 if test -n "$gcc_cv_objdump"; then
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23626 $as_echo "$gcc_cv_objdump" >&6; }
23627 else
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23637 $as_echo_n "checking what objdump to use... " >&6; }
23638 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23639 # Single tree build which includes binutils.
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23641 $as_echo "newly built objdump" >&6; }
23642 elif test x$gcc_cv_objdump = x; then
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23644 $as_echo "not found" >&6; }
23645 else
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23647 $as_echo "$gcc_cv_objdump" >&6; }
23650 # Figure out what readelf we will be using.
23651 if ${gcc_cv_readelf+:} false; then :
23653 else
23655 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23656 && test -f ../binutils/Makefile \
23657 && test x$build = x$host; then
23658 # Single tree build which includes binutils.
23659 gcc_cv_readelf=../binutils/readelf$build_exeext
23660 elif test -x readelf$build_exeext; then
23661 gcc_cv_readelf=./readelf$build_exeext
23662 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23663 gcc_cv_readelf="$READELF_FOR_TARGET"
23664 else
23665 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23666 set dummy $READELF_FOR_TARGET; ac_word=$2
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23668 $as_echo_n "checking for $ac_word... " >&6; }
23669 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23670 $as_echo_n "(cached) " >&6
23671 else
23672 case $gcc_cv_readelf in
23673 [\\/]* | ?:[\\/]*)
23674 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23678 for as_dir in $PATH
23680 IFS=$as_save_IFS
23681 test -z "$as_dir" && as_dir=.
23682 for ac_exec_ext in '' $ac_executable_extensions; do
23683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23684 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23686 break 2
23688 done
23689 done
23690 IFS=$as_save_IFS
23693 esac
23695 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23696 if test -n "$gcc_cv_readelf"; then
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23698 $as_echo "$gcc_cv_readelf" >&6; }
23699 else
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23701 $as_echo "no" >&6; }
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23709 $as_echo_n "checking what readelf to use... " >&6; }
23710 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23711 # Single tree build which includes binutils.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23713 $as_echo "newly built readelf" >&6; }
23714 elif test x$gcc_cv_readelf = x; then
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23716 $as_echo "not found" >&6; }
23717 else
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23719 $as_echo "$gcc_cv_readelf" >&6; }
23722 # Figure out what otool we will be using.
23723 if ${gcc_cv_otool+:} false; then :
23725 else
23727 if test -x otool$build_exeext; then
23728 gcc_cv_otool=./otool$build_exeext
23729 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23730 gcc_cv_otool="$OTOOL_FOR_TARGET"
23731 else
23732 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23733 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23735 $as_echo_n "checking for $ac_word... " >&6; }
23736 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23737 $as_echo_n "(cached) " >&6
23738 else
23739 case $gcc_cv_otool in
23740 [\\/]* | ?:[\\/]*)
23741 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23745 for as_dir in $PATH
23747 IFS=$as_save_IFS
23748 test -z "$as_dir" && as_dir=.
23749 for ac_exec_ext in '' $ac_executable_extensions; do
23750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23751 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23753 break 2
23755 done
23756 done
23757 IFS=$as_save_IFS
23760 esac
23762 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23763 if test -n "$gcc_cv_otool"; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23765 $as_echo "$gcc_cv_otool" >&6; }
23766 else
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768 $as_echo "no" >&6; }
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23776 $as_echo_n "checking what otool to use... " >&6; }
23777 if test x$gcc_cv_otool = x; then
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23779 $as_echo "not found" >&6; }
23780 else
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23782 $as_echo "$gcc_cv_otool" >&6; }
23785 # Figure out the dsymutil we will use.
23786 if ${gcc_cv_dsymutil+:} false; then :
23788 else
23790 if test -x "$DEFAULT_DSYMUTIL"; then
23791 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23792 elif test -x dsymutil$build_exeext; then
23793 gcc_cv_dsymutil=./dsymutil$build_exeext
23794 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23795 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23796 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23797 gcc_cv_dsymutil=$DSYMUTIL
23798 else
23799 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23800 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23802 $as_echo_n "checking for $ac_word... " >&6; }
23803 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 case $gcc_cv_dsymutil in
23807 [\\/]* | ?:[\\/]*)
23808 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23812 for as_dir in $PATH
23814 IFS=$as_save_IFS
23815 test -z "$as_dir" && as_dir=.
23816 for ac_exec_ext in '' $ac_executable_extensions; do
23817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23818 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23820 break 2
23822 done
23823 done
23824 IFS=$as_save_IFS
23827 esac
23829 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23830 if test -n "$gcc_cv_dsymutil"; then
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23832 $as_echo "$gcc_cv_dsymutil" >&6; }
23833 else
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23835 $as_echo "no" >&6; }
23842 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23844 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23845 ./dsymutil | ./dsymutil$build_exeext) ;;
23846 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23848 esac
23850 # Figure out what assembler alignment features are present.
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23852 $as_echo_n "checking assembler flags... " >&6; }
23853 if ${gcc_cv_as_flags+:} false; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 case "$target" in
23857 i[34567]86-*-linux*)
23858 gcc_cv_as_flags=--32
23860 x86_64-*-linux-gnux32)
23861 gcc_cv_as_flags=--x32
23863 x86_64-*-linux*)
23864 gcc_cv_as_flags=--64
23866 powerpc*-*-darwin*)
23867 gcc_cv_as_flags="-arch ppc"
23870 gcc_cv_as_flags=" "
23872 esac
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23875 $as_echo "$gcc_cv_as_flags" >&6; }
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23878 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23879 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23880 $as_echo_n "(cached) " >&6
23881 else
23882 gcc_cv_as_balign_and_p2align=no
23883 if test x$gcc_cv_as != x; then
23884 $as_echo '.balign 4
23885 .p2align 2' > conftest.s
23886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23891 test $ac_status = 0; }; }
23892 then
23893 gcc_cv_as_balign_and_p2align=yes
23894 else
23895 echo "configure: failed program was" >&5
23896 cat conftest.s >&5
23898 rm -f conftest.o conftest.s
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23902 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23903 if test $gcc_cv_as_balign_and_p2align = yes; then
23905 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23911 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23912 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23913 $as_echo_n "(cached) " >&6
23914 else
23915 gcc_cv_as_max_skip_p2align=no
23916 if test x$gcc_cv_as != x; then
23917 $as_echo '.p2align 4,,7' > conftest.s
23918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23923 test $ac_status = 0; }; }
23924 then
23925 gcc_cv_as_max_skip_p2align=yes
23926 else
23927 echo "configure: failed program was" >&5
23928 cat conftest.s >&5
23930 rm -f conftest.o conftest.s
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23934 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23935 if test $gcc_cv_as_max_skip_p2align = yes; then
23937 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23943 $as_echo_n "checking assembler for .literal16... " >&6; }
23944 if ${gcc_cv_as_literal16+:} false; then :
23945 $as_echo_n "(cached) " >&6
23946 else
23947 gcc_cv_as_literal16=no
23948 if test x$gcc_cv_as != x; then
23949 $as_echo '.literal16' > conftest.s
23950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23952 (eval $ac_try) 2>&5
23953 ac_status=$?
23954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23955 test $ac_status = 0; }; }
23956 then
23957 gcc_cv_as_literal16=yes
23958 else
23959 echo "configure: failed program was" >&5
23960 cat conftest.s >&5
23962 rm -f conftest.o conftest.s
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23966 $as_echo "$gcc_cv_as_literal16" >&6; }
23967 if test $gcc_cv_as_literal16 = yes; then
23969 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23975 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23976 if ${gcc_cv_as_subsection_m1+:} false; then :
23977 $as_echo_n "(cached) " >&6
23978 else
23979 gcc_cv_as_subsection_m1=no
23980 if test x$gcc_cv_as != x; then
23981 $as_echo 'conftest_label1: .word 0
23982 .subsection -1
23983 conftest_label2: .word 0
23984 .previous' > conftest.s
23985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23987 (eval $ac_try) 2>&5
23988 ac_status=$?
23989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23990 test $ac_status = 0; }; }
23991 then
23992 if test x$gcc_cv_nm != x; then
23993 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23994 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23995 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23996 then :
23997 else gcc_cv_as_subsection_m1=yes
23999 rm -f conftest.nm1 conftest.nm2
24001 else
24002 echo "configure: failed program was" >&5
24003 cat conftest.s >&5
24005 rm -f conftest.o conftest.s
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24009 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24010 if test $gcc_cv_as_subsection_m1 = yes; then
24012 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24018 $as_echo_n "checking assembler for .weak... " >&6; }
24019 if ${gcc_cv_as_weak+:} false; then :
24020 $as_echo_n "(cached) " >&6
24021 else
24022 gcc_cv_as_weak=no
24023 if test x$gcc_cv_as != x; then
24024 $as_echo ' .weak foobar' > conftest.s
24025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; }
24031 then
24032 gcc_cv_as_weak=yes
24033 else
24034 echo "configure: failed program was" >&5
24035 cat conftest.s >&5
24037 rm -f conftest.o conftest.s
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24041 $as_echo "$gcc_cv_as_weak" >&6; }
24042 if test $gcc_cv_as_weak = yes; then
24044 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24050 $as_echo_n "checking assembler for .weakref... " >&6; }
24051 if ${gcc_cv_as_weakref+:} false; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24054 gcc_cv_as_weakref=no
24055 if test x$gcc_cv_as != x; then
24056 $as_echo ' .weakref foobar, barfnot' > conftest.s
24057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24063 then
24064 gcc_cv_as_weakref=yes
24065 else
24066 echo "configure: failed program was" >&5
24067 cat conftest.s >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24073 $as_echo "$gcc_cv_as_weakref" >&6; }
24074 if test $gcc_cv_as_weakref = yes; then
24076 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24082 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24083 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24084 $as_echo_n "(cached) " >&6
24085 else
24086 gcc_cv_as_nsubspa_comdat=no
24087 if test x$gcc_cv_as != x; then
24088 $as_echo ' .SPACE $TEXT$
24089 .NSUBSPA $CODE$,COMDAT' > conftest.s
24090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }
24096 then
24097 gcc_cv_as_nsubspa_comdat=yes
24098 else
24099 echo "configure: failed program was" >&5
24100 cat conftest.s >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24106 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24107 if test $gcc_cv_as_nsubspa_comdat = yes; then
24109 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24114 # .hidden needs to be supported in both the assembler and the linker,
24115 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24116 # This is irritatingly difficult to feature test for; we have to check the
24117 # date string after the version number. If we've got an in-tree
24118 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24119 # to be safe.
24120 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24121 case "${target}" in
24122 *-*-aix*)
24123 conftest_s=' .globl foobar,hidden'
24126 conftest_s=' .hidden foobar
24127 foobar:'
24129 esac
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24131 $as_echo_n "checking assembler for .hidden... " >&6; }
24132 if ${gcc_cv_as_hidden+:} false; then :
24133 $as_echo_n "(cached) " >&6
24134 else
24135 gcc_cv_as_hidden=no
24136 if test x$gcc_cv_as != x; then
24137 $as_echo "$conftest_s" > conftest.s
24138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143 test $ac_status = 0; }; }
24144 then
24145 gcc_cv_as_hidden=yes
24146 else
24147 echo "configure: failed program was" >&5
24148 cat conftest.s >&5
24150 rm -f conftest.o conftest.s
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24154 $as_echo "$gcc_cv_as_hidden" >&6; }
24157 case "${target}" in
24158 *-*-darwin*)
24159 # Darwin as has some visibility support, though with a different syntax.
24160 gcc_cv_as_hidden=yes
24162 esac
24164 # gnu_indirect_function type is an extension proposed at
24165 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24166 # selection of function implementation
24167 # Check whether --enable-gnu-indirect-function was given.
24168 if test "${enable_gnu_indirect_function+set}" = set; then :
24169 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24170 yes | no) ;;
24171 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24172 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24173 esac
24174 else
24175 enable_gnu_indirect_function="$default_gnu_indirect_function"
24179 case "${target}" in
24180 riscv*-*-linux*)
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24182 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24183 cat > conftest.s <<EOF
24184 .text
24185 .type foo_resolver, @function
24186 foo_resolver:
24188 .size foo_resolver, .-foo_resolver
24190 .globl foo
24191 .type foo, %gnu_indirect_function
24192 .set foo, foo_resolver
24194 .globl bar
24195 .type bar, @function
24196 bar:
24197 call foo
24199 .size bar, .-bar
24201 if test x$gcc_cv_as != x \
24202 && test x$gcc_cv_ld != x \
24203 && test x$gcc_cv_readelf != x \
24204 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24205 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24206 && $gcc_cv_readelf --relocs --wide conftest \
24207 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24208 enable_gnu_indirect_function=yes
24210 rm -f conftest conftest.o conftest.s
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24212 $as_echo "$enable_gnu_indirect_function" >&6; }
24214 esac
24216 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24218 cat >>confdefs.h <<_ACEOF
24219 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24220 _ACEOF
24224 if test $in_tree_ld != yes ; then
24225 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24226 if echo "$ld_ver" | grep GNU > /dev/null; then
24227 if test x"$ld_is_gold" = xyes; then
24228 # GNU gold --version looks like this:
24230 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24232 # We extract the binutils version which is more familiar and specific
24233 # than the gold version.
24234 ld_vers=`echo $ld_ver | sed -n \
24235 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24236 else
24237 # GNU ld --version looks like this:
24239 # GNU ld (GNU Binutils) 2.21.51.20110225
24240 ld_vers=`echo $ld_ver | sed -n \
24241 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24243 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'`
24244 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24245 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24246 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24247 else
24248 case "${target}" in
24249 *-*-solaris2*)
24250 # Solaris 2 ld -V output looks like this for a regular version:
24252 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24254 # but test versions add stuff at the end:
24256 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24258 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24259 # numbers can be used in ld.so.1 feature checks even if a different
24260 # linker is configured.
24261 ld_ver=`$gcc_cv_ld -V 2>&1`
24262 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24263 ld_vers=`echo $ld_ver | sed -n \
24264 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24265 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24266 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24269 esac
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24274 $as_echo_n "checking linker for .hidden support... " >&6; }
24275 if ${gcc_cv_ld_hidden+:} false; then :
24276 $as_echo_n "(cached) " >&6
24277 else
24278 if test $in_tree_ld = yes ; then
24279 gcc_cv_ld_hidden=no
24280 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 \
24281 && test $in_tree_ld_is_elf = yes; then
24282 gcc_cv_ld_hidden=yes
24284 else
24285 gcc_cv_ld_hidden=yes
24286 if test x"$ld_is_gold" = xyes; then
24288 elif test x"$ld_is_mold" = xyes; then
24290 elif echo "$ld_ver" | grep GNU > /dev/null; then
24291 if test 0"$ld_date" -lt 20020404; then
24292 if test -n "$ld_date"; then
24293 # If there was date string, but was earlier than 2002-04-04, fail
24294 gcc_cv_ld_hidden=no
24295 elif test -z "$ld_vers"; then
24296 # If there was no date string nor ld version number, something is wrong
24297 gcc_cv_ld_hidden=no
24298 else
24299 test -z "$ld_vers_patch" && ld_vers_patch=0
24300 if test "$ld_vers_major" -lt 2; then
24301 gcc_cv_ld_hidden=no
24302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24303 gcc_cv_ld_hidden="no"
24304 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24305 gcc_cv_ld_hidden=no
24309 else
24310 case "${target}" in
24311 *-*-aix[789]*)
24312 gcc_cv_ld_hidden=yes
24314 *-*-darwin*)
24315 # Darwin ld has some visibility support.
24316 gcc_cv_ld_hidden=yes
24318 hppa64*-*-hpux* | ia64*-*-hpux*)
24319 gcc_cv_ld_hidden=yes
24321 *-*-solaris2*)
24322 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24323 # .symbolic was only added in Solaris 9 12/02.
24324 gcc_cv_ld_hidden=yes
24327 gcc_cv_ld_hidden=no
24329 esac
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24334 $as_echo "$gcc_cv_ld_hidden" >&6; }
24335 libgcc_visibility=no
24338 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24339 libgcc_visibility=yes
24341 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24346 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24347 gcc_cv_ld_ro_rw_mix=unknown
24348 if test $in_tree_ld = yes ; then
24349 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 \
24350 && test $in_tree_ld_is_elf = yes; then
24351 gcc_cv_ld_ro_rw_mix=read-write
24353 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24354 echo '.section myfoosect, "a"' > conftest1.s
24355 echo '.section myfoosect, "aw"' > conftest2.s
24356 echo '.byte 1' >> conftest2.s
24357 echo '.section myfoosect, "a"' > conftest3.s
24358 echo '.byte 0' >> conftest3.s
24359 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24360 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24361 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24362 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24363 conftest2.o conftest3.o > /dev/null 2>&1; then
24364 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24365 | sed -e '/myfoosect/!d' -e N`
24366 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24367 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24368 gcc_cv_ld_ro_rw_mix=read-only
24369 else
24370 gcc_cv_ld_ro_rw_mix=read-write
24374 rm -f conftest.* conftest[123].*
24376 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24378 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24382 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24384 # Check whether --enable-initfini-array was given.
24385 if test "${enable_initfini_array+set}" = set; then :
24386 enableval=$enable_initfini_array;
24387 else
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24390 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24391 if ${gcc_cv_initfini_array+:} false; then :
24392 $as_echo_n "(cached) " >&6
24393 else
24394 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24395 case "${target}" in
24396 ia64-*)
24397 if test "$cross_compiling" = yes; then :
24398 gcc_cv_initfini_array=no
24399 else
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24403 #ifndef __ELF__
24404 #error Not an ELF OS
24405 #endif
24406 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24407 if it can be used. */
24408 static int x = -1;
24409 int main (void) { return x; }
24410 int foo (void) { x = 0; }
24411 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24413 _ACEOF
24414 if ac_fn_cxx_try_run "$LINENO"; then :
24415 gcc_cv_initfini_array=yes
24416 else
24417 gcc_cv_initfini_array=no
24419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24420 conftest.$ac_objext conftest.beam conftest.$ac_ext
24424 gcc_cv_initfini_array=no
24425 if test $in_tree_ld = yes ; then
24426 if test "$gcc_cv_gld_major_version" -eq 2 \
24427 -a "$gcc_cv_gld_minor_version" -ge 22 \
24428 -o "$gcc_cv_gld_major_version" -gt 2 \
24429 && test $in_tree_ld_is_elf = yes; then
24430 gcc_cv_initfini_array=yes
24432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24433 case $target:$gas in
24434 *:yes)
24435 sh_flags='"a"'
24436 sh_type='%progbits'
24438 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24439 sh_flags='"a"'
24440 sh_type='@progbits'
24442 sparc*-*-solaris2*:no)
24443 sh_flags='#alloc'
24444 sh_type='#progbits'
24445 sh_quote='"'
24447 esac
24448 case "$target:$gnu_ld" in
24449 *:yes)
24450 cat > conftest.s <<EOF
24451 .section .dtors,$sh_flags,$sh_type
24452 .balign 4
24453 .byte 'A', 'A', 'A', 'A'
24454 .section .ctors,$sh_flags,$sh_type
24455 .balign 4
24456 .byte 'B', 'B', 'B', 'B'
24457 .section .fini_array.65530,$sh_flags,$sh_type
24458 .balign 4
24459 .byte 'C', 'C', 'C', 'C'
24460 .section .init_array.65530,$sh_flags,$sh_type
24461 .balign 4
24462 .byte 'D', 'D', 'D', 'D'
24463 .section .dtors.64528,$sh_flags,$sh_type
24464 .balign 4
24465 .byte 'E', 'E', 'E', 'E'
24466 .section .ctors.64528,$sh_flags,$sh_type
24467 .balign 4
24468 .byte 'F', 'F', 'F', 'F'
24469 .section .fini_array.01005,$sh_flags,$sh_type
24470 .balign 4
24471 .byte 'G', 'G', 'G', 'G'
24472 .section .init_array.01005,$sh_flags,$sh_type
24473 .balign 4
24474 .byte 'H', 'H', 'H', 'H'
24475 .text
24476 .globl _start
24477 _start:
24479 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24480 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24481 && $gcc_cv_objdump -s -j .init_array conftest \
24482 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24483 && $gcc_cv_objdump -s -j .fini_array conftest \
24484 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24485 gcc_cv_initfini_array=yes
24488 *-*-solaris2*:no)
24489 # When Solaris ld added constructor priority support, it was
24490 # decided to only handle .init_array.N/.fini_array.N since
24491 # there was no need for backwards compatibility with
24492 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24493 # sections with correct execution order resp. to
24494 # .init_array/.fini_array, while gld merges them into
24495 # .init_array/.fini_array.
24496 cat > conftest.s <<EOF
24497 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24498 .align 4
24499 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24500 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24501 .align 4
24502 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24503 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24504 .align 4
24505 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24506 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24507 .align 4
24508 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24509 .text
24510 .globl _start
24511 _start:
24513 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24514 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24515 && $gcc_cv_objdump -s -j .init_array conftest \
24516 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24517 && $gcc_cv_objdump -s -j .fini_array conftest \
24518 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24519 gcc_cv_initfini_array=yes
24522 esac
24523 rm -f conftest conftest.*
24525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h. */
24528 #ifndef __ELF__
24529 # error Not an ELF OS
24530 #endif
24531 #include <stdlib.h>
24532 #if defined __GLIBC_PREREQ
24533 # if __GLIBC_PREREQ (2, 4)
24534 # else
24535 # error GLIBC 2.4 required
24536 # endif
24537 #else
24538 # if defined __sun__ && defined __svr4__
24539 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24540 # else
24541 # error The C library not known to support .init_array/.fini_array
24542 # endif
24543 #endif
24545 _ACEOF
24546 if ac_fn_cxx_try_cpp "$LINENO"; then :
24548 else
24549 gcc_cv_initfini_array=no
24551 rm -f conftest.err conftest.i conftest.$ac_ext;;
24552 esac
24553 else
24554 case "${target}" in
24555 aarch64*-linux-gnu*)
24556 # AArch64 postdates glibc support for .init_array/.fini_array,
24557 # so we don't need the preprocessor test above.
24558 gcc_cv_initfini_array=yes
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24563 $as_echo_n "checking cross compile... guessing... " >&6; }
24564 gcc_cv_initfini_array=no
24566 esac
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24570 $as_echo "$gcc_cv_initfini_array" >&6; }
24571 enable_initfini_array=$gcc_cv_initfini_array
24576 cat >>confdefs.h <<_ACEOF
24577 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24578 _ACEOF
24582 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24583 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24584 # these directives, even when they appear to accept them.
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24586 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24587 if ${gcc_cv_as_leb128+:} false; then :
24588 $as_echo_n "(cached) " >&6
24589 else
24590 gcc_cv_as_leb128=no
24591 if test x$gcc_cv_as != x; then
24592 $as_echo ' .data
24593 .uleb128 L2 - L1
24595 .uleb128 1280
24596 .sleb128 -1010
24598 .uleb128 0x8000000000000000
24599 ' > conftest.s
24600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24606 then
24608 if test "x$gcc_cv_objdump" != x; then
24609 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24610 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24611 gcc_cv_as_leb128=yes
24613 elif test "x$gcc_cv_otool" != x; then
24614 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24615 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24616 gcc_cv_as_leb128=yes
24618 else
24619 # play safe, assume the assembler is broken.
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24631 $as_echo "$gcc_cv_as_leb128" >&6; }
24632 if test $gcc_cv_as_leb128 = yes; then
24634 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24637 if test $gcc_cv_as_leb128 != yes; then
24639 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24643 # Determine if an .eh_frame section is read-only.
24644 gcc_fn_eh_frame_ro () {
24645 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24646 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24647 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24650 # Check if we have assembler support for unwind directives.
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24652 $as_echo_n "checking assembler for cfi directives... " >&6; }
24653 if ${gcc_cv_as_cfi_directive+:} false; then :
24654 $as_echo_n "(cached) " >&6
24655 else
24656 gcc_cv_as_cfi_directive=no
24657 if test x$gcc_cv_as != x; then
24658 $as_echo ' .text
24659 .cfi_startproc
24660 .cfi_offset 0, 0
24661 .cfi_same_value 1
24662 .cfi_def_cfa 1, 2
24663 .cfi_escape 1, 2, 3, 4, 5
24664 .cfi_endproc' > conftest.s
24665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667 (eval $ac_try) 2>&5
24668 ac_status=$?
24669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670 test $ac_status = 0; }; }
24671 then
24672 case "$target" in
24673 *-*-solaris*)
24674 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24675 # read-only and read-write sections, we need to make sure that the
24676 # assembler used emits read-write .eh_frame sections.
24677 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24678 gcc_cv_as_cfi_directive=yes
24679 elif test "x$gcc_cv_objdump" = x; then
24680 # No objdump, err on the side of caution.
24681 gcc_cv_as_cfi_directive=no
24682 else
24683 if test x$gas = xyes; then
24684 as_32_opt="--32"
24685 as_64_opt="--64"
24686 else
24687 as_32_opt="-m32"
24688 as_64_opt="-m64"
24690 case "$target" in
24691 sparc*-*-solaris2.*)
24692 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24693 if gcc_fn_eh_frame_ro $as_32_opt \
24694 || gcc_fn_eh_frame_ro $as_64_opt; then
24695 gcc_cv_as_cfi_directive=no
24696 else
24697 gcc_cv_as_cfi_directive=yes
24700 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24701 # On Solaris/x86, make sure that GCC and assembler agree on using
24702 # read-only .eh_frame sections for 64-bit.
24703 if gcc_fn_eh_frame_ro $as_32_opt; then
24704 gcc_cv_as_cfi_directive=no
24705 elif gcc_fn_eh_frame_ro $as_64_opt; then
24706 gcc_cv_as_cfi_directive=yes
24707 else
24708 gcc_cv_as_cfi_directive=no
24711 esac
24714 *-*-*)
24715 gcc_cv_as_cfi_directive=yes
24717 esac
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24726 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24729 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24731 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24732 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24733 $as_echo_n "(cached) " >&6
24734 else
24735 gcc_cv_as_cfi_advance_working=no
24736 if test x$gcc_cv_as != x; then
24737 $as_echo ' .text
24738 .cfi_startproc
24739 .cfi_adjust_cfa_offset 64
24740 .skip 75040, 0
24741 .cfi_adjust_cfa_offset 128
24742 .cfi_endproc' > conftest.s
24743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24745 (eval $ac_try) 2>&5
24746 ac_status=$?
24747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24748 test $ac_status = 0; }; }
24749 then
24751 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24752 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24753 gcc_cv_as_cfi_advance_working=yes
24756 else
24757 echo "configure: failed program was" >&5
24758 cat conftest.s >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24764 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24767 else
24768 # no objdump, err on the side of caution
24769 gcc_cv_as_cfi_advance_working=no
24773 cat >>confdefs.h <<_ACEOF
24774 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24775 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24776 _ACEOF
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24781 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24782 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24783 $as_echo_n "(cached) " >&6
24784 else
24785 gcc_cv_as_cfi_personality_directive=no
24786 if test x$gcc_cv_as != x; then
24787 $as_echo ' .text
24788 .cfi_startproc
24789 .cfi_personality 0, symbol
24790 .cfi_endproc' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 gcc_cv_as_cfi_personality_directive=yes
24799 else
24800 echo "configure: failed program was" >&5
24801 cat conftest.s >&5
24803 rm -f conftest.o conftest.s
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24807 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24811 cat >>confdefs.h <<_ACEOF
24812 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24813 _ACEOF
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24817 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24818 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24819 $as_echo_n "(cached) " >&6
24820 else
24821 gcc_cv_as_cfi_sections_directive=no
24822 if test x$gcc_cv_as != x; then
24823 $as_echo ' .text
24824 .cfi_sections .debug_frame, .eh_frame
24825 .cfi_startproc
24826 .cfi_endproc' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 case $target_os in
24835 win32 | pe | cygwin* | mingw32*)
24836 # Need to check that we generated the correct relocation for the
24837 # .debug_frame section. This was fixed for binutils 2.21.
24838 gcc_cv_as_cfi_sections_directive=no
24839 if test "x$gcc_cv_objdump" != x; then
24840 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24841 grep -i secrel > /dev/null; then
24842 gcc_cv_as_cfi_sections_directive=yes
24847 gcc_cv_as_cfi_sections_directive=yes
24849 esac
24850 else
24851 echo "configure: failed program was" >&5
24852 cat conftest.s >&5
24854 rm -f conftest.o conftest.s
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24858 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24863 cat >>confdefs.h <<_ACEOF
24864 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24865 _ACEOF
24868 # GAS versions up to and including 2.11.0 may mis-optimize
24869 # .eh_frame data.
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24871 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24872 if ${gcc_cv_as_eh_frame+:} false; then :
24873 $as_echo_n "(cached) " >&6
24874 else
24875 gcc_cv_as_eh_frame=no
24876 if test x$gcc_cv_as != x; then
24877 $as_echo ' .text
24878 .LFB1:
24879 .4byte 0
24880 .L1:
24881 .4byte 0
24882 .LFE1:
24883 .section .eh_frame,"aw",@progbits
24884 __FRAME_BEGIN__:
24885 .4byte .LECIE1-.LSCIE1
24886 .LSCIE1:
24887 .4byte 0x0
24888 .byte 0x1
24889 .ascii "z\0"
24890 .byte 0x1
24891 .byte 0x78
24892 .byte 0x1a
24893 .byte 0x0
24894 .byte 0x4
24895 .4byte 1
24896 .p2align 1
24897 .LECIE1:
24898 .LSFDE1:
24899 .4byte .LEFDE1-.LASFDE1
24900 .LASFDE1:
24901 .4byte .LASFDE1-__FRAME_BEGIN__
24902 .4byte .LFB1
24903 .4byte .LFE1-.LFB1
24904 .byte 0x4
24905 .4byte .LFE1-.LFB1
24906 .byte 0x4
24907 .4byte .L1-.LFB1
24908 .LEFDE1:' > conftest.s
24909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 cat > conftest.lit <<EOF
24917 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24918 0010 01000000 12000000 18000000 00000000 ................
24919 0020 08000000 04080000 0044 .........D
24921 cat > conftest.big <<EOF
24922 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24923 0010 00000001 00000012 00000018 00000000 ................
24924 0020 00000008 04000000 0844 .........D
24926 # If the assembler didn't choke, and we can objdump,
24927 # and we got the correct data, then succeed.
24928 # The text in the here-document typically retains its unix-style line
24929 # endings, while the output of objdump will use host line endings.
24930 # Therefore, use diff -b for the comparisons.
24931 if test x$gcc_cv_objdump != x \
24932 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24933 | tail -3 > conftest.got \
24934 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24935 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24936 then
24937 gcc_cv_as_eh_frame=yes
24938 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940 (eval $ac_try) 2>&5
24941 ac_status=$?
24942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943 test $ac_status = 0; }; }; then
24944 gcc_cv_as_eh_frame=buggy
24945 else
24946 # Uh oh, what do we do now?
24947 gcc_cv_as_eh_frame=no
24949 else
24950 echo "configure: failed program was" >&5
24951 cat conftest.s >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24957 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24961 if test $gcc_cv_as_eh_frame = buggy; then
24963 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24967 # Test if the assembler supports the section flag 'e' or #exclude for
24968 # specifying an excluded section.
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24970 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24971 if ${gcc_cv_as_section_exclude_e+:} false; then :
24972 $as_echo_n "(cached) " >&6
24973 else
24974 gcc_cv_as_section_exclude_e=no
24975 if test x$gcc_cv_as != x; then
24976 $as_echo '.section foo1,"e"
24977 .byte 0,0,0,0' > conftest.s
24978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24983 test $ac_status = 0; }; }
24984 then
24985 gcc_cv_as_section_exclude_e=yes
24986 else
24987 echo "configure: failed program was" >&5
24988 cat conftest.s >&5
24990 rm -f conftest.o conftest.s
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24994 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24997 if test $gcc_cv_as_section_exclude_e = no; then
24998 case "${target}" in
24999 # Solaris as uses #exclude instead.
25000 *-*-solaris2*)
25001 case "${target}" in
25002 sparc*-*-solaris2*)
25003 conftest_s='.section "foo1", #exclude'
25005 i?86-*-solaris2* | x86_64-*-solaris2*)
25006 conftest_s='.section foo1, #exclude'
25008 esac
25010 esac
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25012 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25013 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25014 $as_echo_n "(cached) " >&6
25015 else
25016 gcc_cv_as_section_exclude_hash=no
25017 if test x$gcc_cv_as != x; then
25018 $as_echo "$conftest_s
25019 .byte 0,0,0,0" > conftest.s
25020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25026 then
25027 gcc_cv_as_section_exclude_hash=yes
25028 else
25029 echo "configure: failed program was" >&5
25030 cat conftest.s >&5
25032 rm -f conftest.o conftest.s
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25036 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25041 cat >>confdefs.h <<_ACEOF
25042 #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`
25043 _ACEOF
25046 # Test if the assembler supports the section flag 'R' for specifying
25047 # section with SHF_GNU_RETAIN.
25048 case "${target}" in
25049 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25050 # assembler supports the section flag 'R', it doesn't mean that
25051 # Solairs ld supports it.
25052 *-*-solaris2*)
25053 gcc_cv_as_shf_gnu_retain=no
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25057 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25058 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25059 $as_echo_n "(cached) " >&6
25060 else
25061 gcc_cv_as_shf_gnu_retain=no
25062 if test x$gcc_cv_as != x; then
25063 $as_echo '.section .foo,"awR",%progbits
25064 .byte 0' > conftest.s
25065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070 test $ac_status = 0; }; }
25071 then
25072 gcc_cv_as_shf_gnu_retain=yes
25073 else
25074 echo "configure: failed program was" >&5
25075 cat conftest.s >&5
25077 rm -f conftest.o conftest.s
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25081 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25085 esac
25087 cat >>confdefs.h <<_ACEOF
25088 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25089 _ACEOF
25092 # Test if the assembler supports the section flag 'o' for specifying
25093 # section with link-order.
25094 case "${target}" in
25095 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25096 # assembler supports the section flag 'o', it doesn't mean that
25097 # Solairs ld supports it.
25098 *-*-solaris2*)
25099 gcc_cv_as_section_link_order=no
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25103 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25104 if ${gcc_cv_as_section_link_order+:} false; then :
25105 $as_echo_n "(cached) " >&6
25106 else
25107 gcc_cv_as_section_link_order=no
25108 if test x$gcc_cv_as != x; then
25109 $as_echo '.section .foo,"a"
25110 .byte 0
25111 .section __patchable_function_entries,"awo",%progbits,.foo
25112 .byte 0' > conftest.s
25113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25115 (eval $ac_try) 2>&5
25116 ac_status=$?
25117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25118 test $ac_status = 0; }; }
25119 then
25120 gcc_cv_as_section_link_order=yes
25121 else
25122 echo "configure: failed program was" >&5
25123 cat conftest.s >&5
25125 rm -f conftest.o conftest.s
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25129 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25133 esac
25135 cat >>confdefs.h <<_ACEOF
25136 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25137 _ACEOF
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25141 $as_echo_n "checking assembler for section merging support... " >&6; }
25142 if ${gcc_cv_as_shf_merge+:} false; then :
25143 $as_echo_n "(cached) " >&6
25144 else
25145 gcc_cv_as_shf_merge=no
25146 if test x$gcc_cv_as != x; then
25147 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25151 ac_status=$?
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25154 then
25155 gcc_cv_as_shf_merge=yes
25156 else
25157 echo "configure: failed program was" >&5
25158 cat conftest.s >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25164 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25167 if test $gcc_cv_as_shf_merge = no; then
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25169 $as_echo_n "checking assembler for section merging support... " >&6; }
25170 if ${gcc_cv_as_shf_merge+:} false; then :
25171 $as_echo_n "(cached) " >&6
25172 else
25173 gcc_cv_as_shf_merge=no
25174 if test x$gcc_cv_as != x; then
25175 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25181 test $ac_status = 0; }; }
25182 then
25183 gcc_cv_as_shf_merge=yes
25184 else
25185 echo "configure: failed program was" >&5
25186 cat conftest.s >&5
25188 rm -f conftest.o conftest.s
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25192 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25197 cat >>confdefs.h <<_ACEOF
25198 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25199 _ACEOF
25202 gcc_cv_ld_aligned_shf_merge=yes
25203 case "$target" in
25204 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25205 # alignment > 1.
25206 sparc*-*-solaris2.11*)
25207 if test x"$gnu_ld" = xno \
25208 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25209 gcc_cv_ld_aligned_shf_merge=no
25212 esac
25214 cat >>confdefs.h <<_ACEOF
25215 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25216 _ACEOF
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25220 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25221 if ${gcc_cv_as_comdat_group+:} false; then :
25222 $as_echo_n "(cached) " >&6
25223 else
25224 gcc_cv_as_comdat_group=no
25225 if test x$gcc_cv_as != x; then
25226 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25230 ac_status=$?
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25233 then
25234 gcc_cv_as_comdat_group=yes
25235 else
25236 echo "configure: failed program was" >&5
25237 cat conftest.s >&5
25239 rm -f conftest.o conftest.s
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25243 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25246 if test $gcc_cv_as_comdat_group = yes; then
25247 gcc_cv_as_comdat_group_percent=no
25248 gcc_cv_as_comdat_group_group=no
25249 else
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25251 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25252 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 gcc_cv_as_comdat_group_percent=no
25256 if test x$gcc_cv_as != x; then
25257 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25264 then
25265 gcc_cv_as_comdat_group_percent=yes
25266 else
25267 echo "configure: failed program was" >&5
25268 cat conftest.s >&5
25270 rm -f conftest.o conftest.s
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25274 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25277 if test $gcc_cv_as_comdat_group_percent = yes; then
25278 gcc_cv_as_comdat_group_group=no
25279 else
25280 case "${target}" in
25281 # Sun as uses a completely different syntax.
25282 *-*-solaris2*)
25283 case "${target}" in
25284 sparc*-*-solaris2*)
25285 conftest_s='
25286 .group foo,".text%foo",#comdat
25287 .section ".text%foo", #alloc,#execinstr,#progbits
25288 .globl foo
25289 foo:
25292 i?86-*-solaris2* | x86_64-*-solaris2*)
25293 conftest_s='
25294 .group foo,.text%foo,#comdat
25295 .section .text%foo, "ax", @progbits
25296 .globl foo
25297 foo:
25300 esac
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25302 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25303 if ${gcc_cv_as_comdat_group_group+:} false; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_comdat_group_group=no
25307 if test x$gcc_cv_as != x; then
25308 $as_echo "$conftest_s" > conftest.s
25309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; }
25315 then
25316 gcc_cv_as_comdat_group_group=yes
25317 else
25318 echo "configure: failed program was" >&5
25319 cat conftest.s >&5
25321 rm -f conftest.o conftest.s
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25325 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25329 esac
25330 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25331 gcc_cv_as_comdat_group_group=no
25335 if test x"$ld_is_gold" = xyes; then
25336 comdat_group=yes
25337 elif test x"$ld_is_mold" = xyes; then
25338 comdat_group=yes
25339 elif test $in_tree_ld = yes ; then
25340 comdat_group=no
25341 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 \
25342 && test $in_tree_ld_is_elf = yes; then
25343 comdat_group=yes
25345 elif echo "$ld_ver" | grep GNU > /dev/null; then
25346 comdat_group=yes
25347 if test 0"$ld_date" -lt 20050308; then
25348 if test -n "$ld_date"; then
25349 # If there was date string, but was earlier than 2005-03-08, fail
25350 comdat_group=no
25351 elif test "$ld_vers_major" -lt 2; then
25352 comdat_group=no
25353 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25354 comdat_group=no
25357 else
25358 case "${target}" in
25359 *-*-solaris2.1[1-9]*)
25360 comdat_group=no
25361 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25362 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25363 # version 1.688.
25365 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25366 # least ld version 1.2267.
25367 if test "$ld_vers_major" -gt 1; then
25368 comdat_group=yes
25369 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25370 comdat_group=yes
25371 elif test "$ld_vers_minor" -ge 2267; then
25372 comdat_group=yes
25376 # Assume linkers other than GNU ld don't support COMDAT group.
25377 comdat_group=no
25379 esac
25381 # Allow overriding the automatic COMDAT group tests above.
25382 # Check whether --enable-comdat was given.
25383 if test "${enable_comdat+set}" = set; then :
25384 enableval=$enable_comdat; comdat_group="$enable_comdat"
25387 if test $comdat_group = no; then
25388 gcc_cv_as_comdat_group=no
25389 gcc_cv_as_comdat_group_percent=no
25390 gcc_cv_as_comdat_group_group=no
25393 cat >>confdefs.h <<_ACEOF
25394 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25395 || test $gcc_cv_as_comdat_group_percent = yes \
25396 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25397 _ACEOF
25400 # Restrict this test to Solaris/x86: other targets define this statically.
25401 case "${target}" in
25402 i?86-*-solaris2* | x86_64-*-solaris2*)
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25404 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25405 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25406 hidden_linkonce=yes
25407 else
25408 case "${target}" in
25409 # Full support for hidden thunks in linkonce sections only appeared in
25410 # Solaris 11/OpenSolaris.
25411 *-*-solaris2.1[1-9]*)
25412 hidden_linkonce=yes
25415 hidden_linkonce=no
25417 esac
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25420 $as_echo "$hidden_linkonce" >&6; }
25422 cat >>confdefs.h <<_ACEOF
25423 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25424 _ACEOF
25427 esac
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25430 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25431 if ${gcc_cv_as_is_stmt+:} false; then :
25432 $as_echo_n "(cached) " >&6
25433 else
25434 gcc_cv_as_is_stmt=no
25435 if test x$gcc_cv_as != x; then
25436 $as_echo ' .text
25437 .file 1 "conf.c"
25438 .loc 1 1 0 is_stmt 1' > conftest.s
25439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25445 then
25446 gcc_cv_as_is_stmt=yes
25447 else
25448 echo "configure: failed program was" >&5
25449 cat conftest.s >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25455 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25456 if test $gcc_cv_as_is_stmt = yes; then
25458 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25464 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25465 if ${gcc_cv_as_discriminator+:} false; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_discriminator=no
25469 if test x$gcc_cv_as != x; then
25470 $as_echo ' .text
25471 .file 1 "conf.c"
25472 .loc 1 1 0 discriminator 1' > conftest.s
25473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25479 then
25480 gcc_cv_as_discriminator=yes
25481 else
25482 echo "configure: failed program was" >&5
25483 cat conftest.s >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25489 $as_echo "$gcc_cv_as_discriminator" >&6; }
25490 if test $gcc_cv_as_discriminator = yes; then
25492 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25497 # Catch the newlib flag of the same name so we can gate GCC features on it.
25498 # Check whether --enable-newlib-nano-formatted-io was given.
25499 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25500 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25501 yes|no)
25504 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25506 esac
25510 # Thread-local storage - the check is heavily parameterized.
25511 conftest_s=
25512 tls_as_opt=
25513 case "$target" in
25514 alpha*-*-*)
25515 conftest_s='
25516 .section ".tdata","awT",@progbits
25517 foo: .long 25
25518 .text
25519 ldq $27,__tls_get_addr($29) !literal!1
25520 lda $16,foo($29) !tlsgd!1
25521 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25522 ldq $27,__tls_get_addr($29) !literal!2
25523 lda $16,foo($29) !tlsldm!2
25524 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25525 ldq $1,foo($29) !gotdtprel
25526 ldah $2,foo($29) !dtprelhi
25527 lda $3,foo($2) !dtprello
25528 lda $4,foo($29) !dtprel
25529 ldq $1,foo($29) !gottprel
25530 ldah $2,foo($29) !tprelhi
25531 lda $3,foo($2) !tprello
25532 lda $4,foo($29) !tprel'
25533 tls_as_opt=--fatal-warnings
25535 arc*-*-*)
25536 conftest_s='
25537 add_s r0,r0, @foo@tpoff'
25539 cris-*-*|crisv32-*-*)
25540 conftest_s='
25541 .section ".tdata","awT",@progbits
25542 x: .long 25
25543 .text
25544 move.d x:IE,$r10
25545 nop'
25546 tls_as_opt=--fatal-warnings
25548 frv*-*-*)
25549 conftest_s='
25550 .section ".tdata","awT",@progbits
25551 x: .long 25
25552 .text
25553 call #gettlsoff(x)'
25555 hppa*-*-linux*)
25556 conftest_s='
25557 t1: .reg %r20
25558 t2: .reg %r21
25559 gp: .reg %r19
25560 .section ".tdata","awT",@progbits
25561 foo: .long 25
25562 .text
25563 .align 4
25564 addil LT%foo-$tls_gdidx$,gp
25565 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25566 b __tls_get_addr
25568 addil LT%foo-$tls_ldidx$,gp
25569 b __tls_get_addr
25570 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25571 addil LR%foo-$tls_dtpoff$,%ret0
25572 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25573 mfctl %cr27,%t1
25574 addil LT%foo-$tls_ieoff$,gp
25575 ldw RT%foo-$tls_ieoff$(%r1),%t2
25576 add %t1,%t2,%t3
25577 mfctl %cr27,%t1
25578 addil LR%foo-$tls_leoff$,%t1
25579 ldo RR%foo-$tls_leoff$(%r1),%t2'
25580 tls_as_opt=--fatal-warnings
25582 arm*-*-*)
25583 conftest_s='
25584 .section ".tdata","awT",%progbits
25585 foo: .long 25
25586 .text
25587 .word foo(gottpoff)
25588 .word foo(tpoff)
25589 .word foo(tlsgd)
25590 .word foo(tlsldm)
25591 .word foo(tlsldo)'
25593 i[34567]86-*-* | x86_64-*-*)
25594 case "$target" in
25595 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25596 on_solaris=yes
25599 on_solaris=no
25601 esac
25602 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25603 conftest_s='
25604 .section .tdata,"awt",@progbits'
25605 tls_section_flag=t
25607 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25609 else
25610 conftest_s='
25611 .section ".tdata","awT",@progbits'
25612 tls_section_flag=T
25613 tls_as_opt="--fatal-warnings"
25615 case "$target" in
25616 i[34567]86-*-*)
25617 if test x$on_solaris = xyes; then
25618 case $gas_flag in
25619 yes) tls_as_opt="$tls_as_opt --32" ;;
25620 esac
25622 conftest_s="$conftest_s
25623 foo: .long 25
25624 .text
25625 movl %gs:0, %eax
25626 leal foo@tlsgd(,%ebx,1), %eax
25627 leal foo@tlsldm(%ebx), %eax
25628 leal foo@dtpoff(%eax), %edx
25629 movl foo@gottpoff(%ebx), %eax
25630 subl foo@gottpoff(%ebx), %eax
25631 addl foo@gotntpoff(%ebx), %eax
25632 movl foo@indntpoff, %eax
25633 movl \$foo@tpoff, %eax
25634 subl \$foo@tpoff, %eax
25635 leal foo@ntpoff(%ecx), %eax"
25637 x86_64-*-*)
25638 if test x$on_solaris = xyes; then
25639 case $gas_flag in
25640 yes) tls_as_opt="$tls_as_opt --64" ;;
25641 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25642 esac
25644 conftest_s="$conftest_s
25645 foo: .long 25
25646 .text
25647 movq %fs:0, %rax
25648 leaq foo@tlsgd(%rip), %rdi
25649 leaq foo@tlsld(%rip), %rdi
25650 leaq foo@dtpoff(%rax), %rdx
25651 movq foo@gottpoff(%rip), %rax
25652 movq \$foo@tpoff, %rax"
25654 esac
25656 ia64-*-*)
25657 conftest_s='
25658 .section ".tdata","awT",@progbits
25659 foo: data8 25
25660 .text
25661 addl r16 = @ltoff(@dtpmod(foo#)), gp
25662 addl r17 = @ltoff(@dtprel(foo#)), gp
25663 addl r18 = @ltoff(@tprel(foo#)), gp
25664 addl r19 = @dtprel(foo#), gp
25665 adds r21 = @dtprel(foo#), r13
25666 movl r23 = @dtprel(foo#)
25667 addl r20 = @tprel(foo#), gp
25668 adds r22 = @tprel(foo#), r13
25669 movl r24 = @tprel(foo#)'
25670 tls_as_opt=--fatal-warnings
25672 loongarch*-*-*)
25673 conftest_s='
25674 .section .tdata,"awT",@progbits
25675 x: .word 2
25676 .text
25677 la.tls.gd $a0,x
25678 bl __tls_get_addr'
25679 tls_first_major=0
25680 tls_first_minor=0
25681 tls_as_opt='--fatal-warnings'
25683 microblaze*-*-*)
25684 conftest_s='
25685 .section .tdata,"awT",@progbits
25687 .word 2
25688 .text
25689 addik r5,r20,x@TLSGD
25690 addik r5,r20,x@TLSLDM'
25691 tls_as_opt='--fatal-warnings'
25693 mips*-*-*)
25694 conftest_s='
25695 .section .tdata,"awT",@progbits
25697 .word 2
25698 .text
25699 addiu $4, $28, %tlsgd(x)
25700 addiu $4, $28, %tlsldm(x)
25701 lui $4, %dtprel_hi(x)
25702 addiu $4, $4, %dtprel_lo(x)
25703 lw $4, %gottprel(x)($28)
25704 lui $4, %tprel_hi(x)
25705 addiu $4, $4, %tprel_lo(x)'
25706 tls_as_opt='-32 --fatal-warnings'
25708 m68k-*-*)
25709 conftest_s='
25710 .section .tdata,"awT",@progbits
25712 .word 2
25713 .text
25714 foo:
25715 move.l x@TLSGD(%a5),%a0
25716 move.l x@TLSLDM(%a5),%a0
25717 move.l x@TLSLDO(%a5),%a0
25718 move.l x@TLSIE(%a5),%a0
25719 move.l x@TLSLE(%a5),%a0'
25720 tls_as_opt='--fatal-warnings'
25722 nios2-*-*)
25723 conftest_s='
25724 .section ".tdata","awT",@progbits'
25725 tls_as_opt="--fatal-warnings"
25727 aarch64*-*-*)
25728 conftest_s='
25729 .section ".tdata","awT",%progbits
25730 foo: .long 25
25731 .text
25732 adrp x0, :tlsgd:x
25733 add x0, x0, #:tlsgd_lo12:x
25734 bl __tls_get_addr
25735 nop'
25736 tls_as_opt='--fatal-warnings'
25738 or1k*-*-*)
25739 conftest_s='
25740 .section ".tdata","awT",@progbits
25741 foo: .long 25
25742 .text
25743 l.movhi r3, tpoffha(foo)
25744 l.add r3, r3, r10
25745 l.lwz r4, tpofflo(foo)(r3)'
25746 tls_as_opt=--fatal-warnings
25748 powerpc-ibm-aix*)
25749 conftest_s='
25750 .extern __get_tpointer
25751 .toc
25752 LC..1:
25753 .tc a[TC],a[TL]@le
25754 .csect .text[PR]
25755 .tlstest:
25756 lwz 9,LC..1(2)
25757 bla __get_tpointer
25758 lwzx 3,9,3
25759 .globl a
25760 .csect a[TL],4
25762 .space 4'
25764 powerpc64*-*-*)
25765 conftest_s='
25766 .section ".tdata","awT",@progbits
25767 .align 3
25768 ld0: .space 8
25769 ld1: .space 8
25770 x1: .space 8
25771 x2: .space 8
25772 x3: .space 8
25773 .text
25774 addi 3,2,ld0@got@tlsgd
25775 bl .__tls_get_addr
25777 addi 3,2,ld1@toc
25778 bl .__tls_get_addr
25780 addi 3,2,x1@got@tlsld
25781 bl .__tls_get_addr
25783 addi 9,3,x1@dtprel
25784 bl .__tls_get_addr
25786 addis 9,3,x2@dtprel@ha
25787 addi 9,9,x2@dtprel@l
25788 bl .__tls_get_addr
25790 ld 9,x3@got@dtprel(2)
25791 add 9,9,3
25792 bl .__tls_get_addr
25793 nop'
25794 tls_as_opt="-a64 --fatal-warnings"
25796 powerpc*-*-*)
25797 conftest_s='
25798 .section ".tdata","awT",@progbits
25799 .align 2
25800 ld0: .space 4
25801 ld1: .space 4
25802 x1: .space 4
25803 x2: .space 4
25804 x3: .space 4
25805 .text
25806 addi 3,31,ld0@got@tlsgd
25807 bl __tls_get_addr
25808 addi 3,31,x1@got@tlsld
25809 bl __tls_get_addr
25810 addi 9,3,x1@dtprel
25811 addis 9,3,x2@dtprel@ha
25812 addi 9,9,x2@dtprel@l
25813 lwz 9,x3@got@tprel(31)
25814 add 9,9,x@tls
25815 addi 9,2,x1@tprel
25816 addis 9,2,x2@tprel@ha
25817 addi 9,9,x2@tprel@l'
25818 tls_as_opt="-a32 --fatal-warnings"
25820 riscv*-*-*)
25821 conftest_s='
25822 .section .tdata,"awT",@progbits
25823 x: .word 2
25824 .text
25825 la.tls.gd a0,x
25826 call __tls_get_addr'
25827 tls_as_opt='--fatal-warnings'
25829 s390-*-*)
25830 conftest_s='
25831 .section ".tdata","awT",@progbits
25832 foo: .long 25
25833 .text
25834 .long foo@TLSGD
25835 .long foo@TLSLDM
25836 .long foo@DTPOFF
25837 .long foo@NTPOFF
25838 .long foo@GOTNTPOFF
25839 .long foo@INDNTPOFF
25840 l %r1,foo@GOTNTPOFF(%r12)
25841 l %r1,0(%r1):tls_load:foo
25842 bas %r14,0(%r1,%r13):tls_gdcall:foo
25843 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25844 tls_as_opt="-m31 --fatal-warnings"
25846 s390x-*-*)
25847 conftest_s='
25848 .section ".tdata","awT",@progbits
25849 foo: .long 25
25850 .text
25851 .quad foo@TLSGD
25852 .quad foo@TLSLDM
25853 .quad foo@DTPOFF
25854 .quad foo@NTPOFF
25855 .quad foo@GOTNTPOFF
25856 lg %r1,foo@GOTNTPOFF(%r12)
25857 larl %r1,foo@INDNTPOFF
25858 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25859 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25860 tls_as_opt="-m64 -Aesame --fatal-warnings"
25862 sh-*-* | sh[123456789lbe]*-*-*)
25863 conftest_s='
25864 .section ".tdata","awT",@progbits
25865 foo: .long 25
25866 .text
25867 .long foo@TLSGD
25868 .long foo@TLSLDM
25869 .long foo@DTPOFF
25870 .long foo@GOTTPOFF
25871 .long foo@TPOFF'
25872 tls_as_opt=--fatal-warnings
25874 sparc*-*-*)
25875 case "$target" in
25876 sparc*-sun-solaris2.*)
25877 on_solaris=yes
25880 on_solaris=no
25882 esac
25883 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25884 conftest_s='
25885 .section ".tdata",#alloc,#write,#tls'
25886 else
25887 conftest_s='
25888 .section ".tdata","awT",@progbits'
25889 tls_as_opt="-32 --fatal-warnings"
25891 conftest_s="$conftest_s
25892 foo: .long 25
25893 .text
25894 sethi %tgd_hi22(foo), %o0
25895 add %o0, %tgd_lo10(foo), %o1
25896 add %l7, %o1, %o0, %tgd_add(foo)
25897 call __tls_get_addr, %tgd_call(foo)
25898 sethi %tldm_hi22(foo), %l1
25899 add %l1, %tldm_lo10(foo), %l2
25900 add %l7, %l2, %o0, %tldm_add(foo)
25901 call __tls_get_addr, %tldm_call(foo)
25902 sethi %tldo_hix22(foo), %l3
25903 xor %l3, %tldo_lox10(foo), %l4
25904 add %o0, %l4, %l5, %tldo_add(foo)
25905 sethi %tie_hi22(foo), %o3
25906 add %o3, %tie_lo10(foo), %o3
25907 ld [%l7 + %o3], %o2, %tie_ld(foo)
25908 add %g7, %o2, %o4, %tie_add(foo)
25909 sethi %tle_hix22(foo), %l1
25910 xor %l1, %tle_lox10(foo), %o5
25911 ld [%g7 + %o5], %o1"
25913 xtensa*-*-*)
25914 conftest_s='
25915 .section ".tdata","awT",@progbits
25916 foo: .long 25
25917 .text
25918 movi a8, foo@TLSFUNC
25919 movi a10, foo@TLSARG
25920 callx8.tls a8, foo@TLSCALL'
25922 esac
25923 set_have_as_tls=no
25924 if test "x$enable_tls" = xno ; then
25925 : # TLS explicitly disabled.
25926 elif test "x$enable_tls" = xyes ; then
25927 set_have_as_tls=yes # TLS explicitly enabled.
25928 elif test -z "$conftest_s"; then
25929 : # If we don't have a check, assume no support.
25930 else
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25932 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25933 if ${gcc_cv_as_tls+:} false; then :
25934 $as_echo_n "(cached) " >&6
25935 else
25936 gcc_cv_as_tls=no
25937 if test x$gcc_cv_as != x; then
25938 $as_echo "$conftest_s" > conftest.s
25939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25944 test $ac_status = 0; }; }
25945 then
25946 gcc_cv_as_tls=yes
25947 else
25948 echo "configure: failed program was" >&5
25949 cat conftest.s >&5
25951 rm -f conftest.o conftest.s
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25955 $as_echo "$gcc_cv_as_tls" >&6; }
25956 if test $gcc_cv_as_tls = yes; then
25957 set_have_as_tls=yes
25961 if test $set_have_as_tls = yes ; then
25963 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25967 # Target-specific assembler checks.
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25970 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25971 gcc_cv_ld_static_dynamic=no
25972 gcc_cv_ld_static_option='-Bstatic'
25973 gcc_cv_ld_dynamic_option='-Bdynamic'
25974 if test $in_tree_ld = yes ; then
25975 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
25976 gcc_cv_ld_static_dynamic=yes
25978 elif test x$gcc_cv_ld != x; then
25979 # Check if linker supports -Bstatic/-Bdynamic option
25980 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25981 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25982 gcc_cv_ld_static_dynamic=yes
25983 else
25984 case "$target" in
25985 # AIX ld uses -b flags
25986 *-*-aix4.[23]* | *-*-aix[5-9]*)
25987 gcc_cv_ld_static_dynamic=yes
25988 gcc_cv_ld_static_option="-bstatic"
25989 gcc_cv_ld_dynamic_option="-bdynamic"
25991 # HP-UX ld uses -a flags to select between shared and archive.
25992 *-*-hpux*)
25993 if test x"$gnu_ld" = xno; then
25994 gcc_cv_ld_static_dynamic=yes
25995 gcc_cv_ld_static_option="-aarchive_shared"
25996 gcc_cv_ld_dynamic_option="-adefault"
25999 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26000 *-*-solaris2*)
26001 gcc_cv_ld_static_dynamic=yes
26003 esac
26006 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26008 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26011 cat >>confdefs.h <<_ACEOF
26012 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26013 _ACEOF
26016 cat >>confdefs.h <<_ACEOF
26017 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26018 _ACEOF
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26022 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26025 $as_echo_n "checking linker --version-script option... " >&6; }
26026 gcc_cv_ld_version_script=no
26027 ld_version_script_option=''
26028 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26029 gcc_cv_ld_version_script=yes
26030 ld_version_script_option='--version-script'
26031 elif test x$gcc_cv_ld != x; then
26032 case "$target" in
26033 # Solaris 2 ld always supports -M. It also supports a subset of
26034 # --version-script since Solaris 11.4, but requires
26035 # -z gnu-version-script-compat to activate.
26036 *-*-solaris2*)
26037 gcc_cv_ld_version_script=yes
26038 ld_version_script_option='-M'
26040 esac
26042 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26044 $as_echo "$gcc_cv_ld_version_script" >&6; }
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26048 $as_echo_n "checking linker soname option... " >&6; }
26049 gcc_cv_ld_soname=no
26050 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26051 gcc_cv_ld_soname=yes
26052 ld_soname_option='-soname'
26053 elif test x$gcc_cv_ld != x; then
26054 case "$target" in
26055 *-*-darwin*)
26056 gcc_cv_ld_soname=yes
26057 ld_soname_option='-install_name'
26059 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26060 # ld compatiblity since some Solaris 10 update.
26061 *-*-solaris2*)
26062 gcc_cv_ld_soname=yes
26063 ld_soname_option='-h'
26065 esac
26067 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26069 $as_echo "$gcc_cv_ld_soname" >&6; }
26072 if test x"$demangler_in_ld" = xyes; then
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26074 $as_echo_n "checking linker --demangle support... " >&6; }
26075 gcc_cv_ld_demangle=no
26076 if test $in_tree_ld = yes; then
26077 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 \
26078 gcc_cv_ld_demangle=yes
26080 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26081 # Check if the GNU linker supports --demangle option
26082 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26083 gcc_cv_ld_demangle=yes
26086 if test x"$gcc_cv_ld_demangle" = xyes; then
26088 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26092 $as_echo "$gcc_cv_ld_demangle" >&6; }
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26096 $as_echo_n "checking linker plugin support... " >&6; }
26097 gcc_cv_lto_plugin=0
26098 if test -f liblto_plugin.la; then
26099 save_ld_ver="$ld_ver"
26100 save_ld_vers_major="$ld_vers_major"
26101 save_ld_vers_minor="$ld_vers_minor"
26102 save_ld_is_gold="$ld_is_gold"
26104 ld_is_gold=no
26106 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26107 ld_ver="GNU ld"
26108 # FIXME: ld_is_gold?
26109 ld_vers_major="$gcc_cv_gld_major_version"
26110 ld_vers_minor="$gcc_cv_gld_minor_version"
26111 else
26112 # Determine plugin linker version.
26113 # FIXME: Partial duplicate from above, generalize.
26114 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26115 if echo "$ld_ver" | grep GNU > /dev/null; then
26116 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26117 ld_is_gold=yes
26118 ld_vers=`echo $ld_ver | sed -n \
26119 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26120 else
26121 ld_vers=`echo $ld_ver | sed -n \
26122 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26124 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26125 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26129 # Determine plugin support.
26130 if echo "$ld_ver" | grep GNU > /dev/null; then
26131 # Require GNU ld or gold 2.21+ for plugin support by default.
26132 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26133 gcc_cv_lto_plugin=2
26134 elif test "$ld_is_mold" = yes; then
26135 gcc_cv_lto_plugin=2
26136 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26137 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26138 gcc_cv_lto_plugin=1
26142 ld_ver="$save_ld_ver"
26143 ld_vers_major="$save_ld_vers_major"
26144 ld_vers_minor="$save_ld_vers_minor"
26145 ld_is_gold="$save_ld_is_gold"
26148 cat >>confdefs.h <<_ACEOF
26149 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26150 _ACEOF
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26153 $as_echo "$gcc_cv_lto_plugin" >&6; }
26155 # Target OS-specific assembler checks.
26157 case "$target_os" in
26158 darwin*)
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26160 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26161 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26162 $as_echo_n "(cached) " >&6
26163 else
26164 gcc_cv_as_mmacosx_version_min=no
26165 if test x$gcc_cv_as != x; then
26166 $as_echo '.text' > conftest.s
26167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172 test $ac_status = 0; }; }
26173 then
26174 gcc_cv_as_mmacosx_version_min=yes
26175 else
26176 echo "configure: failed program was" >&5
26177 cat conftest.s >&5
26179 rm -f conftest.o conftest.s
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26183 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26184 if test $gcc_cv_as_mmacosx_version_min = yes; then
26186 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26191 esac
26193 # Target CPU-specific assembler checks.
26195 case "$target" in
26196 aarch64*-*-*)
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26198 $as_echo_n "checking assembler for -mabi option... " >&6; }
26199 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26200 $as_echo_n "(cached) " >&6
26201 else
26202 gcc_cv_as_aarch64_mabi=no
26203 if test x$gcc_cv_as != x; then
26204 $as_echo '.text' > conftest.s
26205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26207 (eval $ac_try) 2>&5
26208 ac_status=$?
26209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210 test $ac_status = 0; }; }
26211 then
26212 gcc_cv_as_aarch64_mabi=yes
26213 else
26214 echo "configure: failed program was" >&5
26215 cat conftest.s >&5
26217 rm -f conftest.o conftest.s
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26221 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26224 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26226 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26228 else
26229 if test x$with_abi = xilp32; then
26230 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26231 Upgrade the Assembler." "$LINENO" 5
26233 if test x"$with_multilib_list" = xdefault; then
26234 TM_MULTILIB_CONFIG=lp64
26235 else
26236 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26237 for aarch64_multilib in ${aarch64_multilibs}; do
26238 case ${aarch64_multilib} in
26239 ilp32)
26240 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26241 Upgrade the Assembler." "$LINENO" 5
26245 esac
26246 done
26249 # Check if we have binutils support for relocations types needed by -fpic
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26251 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26252 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26253 $as_echo_n "(cached) " >&6
26254 else
26255 gcc_cv_as_aarch64_picreloc=no
26256 if test x$gcc_cv_as != x; then
26257 $as_echo '
26258 .text
26259 ldr x0, [x2, #:gotpage_lo15:globalsym]
26260 ' > conftest.s
26261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26267 then
26268 gcc_cv_as_aarch64_picreloc=yes
26269 else
26270 echo "configure: failed program was" >&5
26271 cat conftest.s >&5
26273 rm -f conftest.o conftest.s
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26277 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26278 if test $gcc_cv_as_aarch64_picreloc = yes; then
26280 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26284 # Enable Branch Target Identification Mechanism and Return Address
26285 # Signing by default.
26286 # Check whether --enable-standard-branch-protection was given.
26287 if test "${enable_standard_branch_protection+set}" = set; then :
26288 enableval=$enable_standard_branch_protection;
26289 case $enableval in
26290 yes)
26291 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26296 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26297 Valid choices are 'yes' and 'no'." "$LINENO" 5
26299 esac
26303 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26304 # Check whether --enable-fix-cortex-a53-835769 was given.
26305 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26306 enableval=$enable_fix_cortex_a53_835769;
26307 case $enableval in
26308 yes)
26309 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26314 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26315 Valid choices are 'yes' and 'no'." "$LINENO" 5
26318 esac
26322 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26323 # Check whether --enable-fix-cortex-a53-843419 was given.
26324 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26325 enableval=$enable_fix_cortex_a53_843419;
26326 case $enableval in
26327 yes)
26328 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26333 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26334 Valid choices are 'yes' and 'no'." "$LINENO" 5
26337 esac
26343 # All TARGET_ABI_OSF targets.
26344 alpha*-*-linux* | alpha*-*-*bsd*)
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26346 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26347 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 gcc_cv_as_alpha_explicit_relocs=no
26351 if test x$gcc_cv_as != x; then
26352 $as_echo ' .set nomacro
26353 .text
26354 extbl $3, $2, $3 !lituse_bytoff!1
26355 ldq $2, a($29) !literal!1
26356 ldq $4, b($29) !literal!2
26357 ldq_u $3, 0($2) !lituse_base!1
26358 ldq $27, f($29) !literal!5
26359 jsr $26, ($27), f !lituse_jsr!5
26360 ldah $29, 0($26) !gpdisp!3
26361 lda $0, c($29) !gprel
26362 ldah $1, d($29) !gprelhigh
26363 lda $1, d($1) !gprellow
26364 lda $29, 0($29) !gpdisp!3' > conftest.s
26365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; }
26371 then
26372 gcc_cv_as_alpha_explicit_relocs=yes
26373 else
26374 echo "configure: failed program was" >&5
26375 cat conftest.s >&5
26377 rm -f conftest.o conftest.s
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26381 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26382 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26384 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26389 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26390 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26391 $as_echo_n "(cached) " >&6
26392 else
26393 gcc_cv_as_alpha_jsrdirect_relocs=no
26394 if test x$gcc_cv_as != x; then
26395 $as_echo ' .set nomacro
26396 .text
26397 ldq $27, a($29) !literal!1
26398 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26401 (eval $ac_try) 2>&5
26402 ac_status=$?
26403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26404 test $ac_status = 0; }; }
26405 then
26406 gcc_cv_as_alpha_jsrdirect_relocs=yes
26407 else
26408 echo "configure: failed program was" >&5
26409 cat conftest.s >&5
26411 rm -f conftest.o conftest.s
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26415 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26416 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26418 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26424 avr-*-*)
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26426 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26427 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26428 $as_echo_n "(cached) " >&6
26429 else
26430 gcc_cv_as_avr_mlink_relax=no
26431 if test x$gcc_cv_as != x; then
26432 $as_echo '.text' > conftest.s
26433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26435 (eval $ac_try) 2>&5
26436 ac_status=$?
26437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26438 test $ac_status = 0; }; }
26439 then
26440 gcc_cv_as_avr_mlink_relax=yes
26441 else
26442 echo "configure: failed program was" >&5
26443 cat conftest.s >&5
26445 rm -f conftest.o conftest.s
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26449 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26450 if test $gcc_cv_as_avr_mlink_relax = yes; then
26452 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26458 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26459 if ${gcc_cv_as_avr_mrmw+:} false; then :
26460 $as_echo_n "(cached) " >&6
26461 else
26462 gcc_cv_as_avr_mrmw=no
26463 if test x$gcc_cv_as != x; then
26464 $as_echo '.text' > conftest.s
26465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26467 (eval $ac_try) 2>&5
26468 ac_status=$?
26469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470 test $ac_status = 0; }; }
26471 then
26472 gcc_cv_as_avr_mrmw=yes
26473 else
26474 echo "configure: failed program was" >&5
26475 cat conftest.s >&5
26477 rm -f conftest.o conftest.s
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26481 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26482 if test $gcc_cv_as_avr_mrmw = yes; then
26484 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26490 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26491 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26494 gcc_cv_as_avr_mgccisr=no
26495 if test x$gcc_cv_as != x; then
26496 $as_echo '.text
26497 __gcc_isr 1
26498 __gcc_isr 2
26499 __gcc_isr 0,r24
26500 ' > conftest.s
26501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26506 test $ac_status = 0; }; }
26507 then
26508 gcc_cv_as_avr_mgccisr=yes
26509 else
26510 echo "configure: failed program was" >&5
26511 cat conftest.s >&5
26513 rm -f conftest.o conftest.s
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26517 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26518 if test $gcc_cv_as_avr_mgccisr = yes; then
26520 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26525 # Check how default linker description file implements .rodata for
26526 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26527 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26529 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26530 cat > conftest.s <<EOF
26531 .section .rodata,"a",@progbits
26532 .global xxvaryy
26533 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26534 xxvaryy:
26535 .word 1
26537 rm -f conftest.nm
26538 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26543 test $ac_status = 0; }; }
26544 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26550 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26555 test $ac_status = 0; }; }
26556 if test -s conftest.nm
26557 then
26558 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26560 $as_echo "yes" >&6; }
26562 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26564 else
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26566 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26567 echo "$as_me: nm output was" >&5
26568 cat conftest.nm >&5
26569 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26570 { $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
26571 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26573 else
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26575 $as_echo "test failed" >&6; }
26576 echo "$as_me: failed program was" >&5
26577 cat conftest.s >&5
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26579 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26581 rm -f conftest.s conftest.o conftest.elf conftest.nm
26584 cris-*-*)
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26586 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26587 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_cris_no_mul_bug=no
26591 if test x$gcc_cv_as != x; then
26592 $as_echo '.text' > conftest.s
26593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; }
26599 then
26600 gcc_cv_as_cris_no_mul_bug=yes
26601 else
26602 echo "configure: failed program was" >&5
26603 cat conftest.s >&5
26605 rm -f conftest.o conftest.s
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26609 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26610 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26612 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26618 sparc*-*-*)
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26620 $as_echo_n "checking assembler for -relax option... " >&6; }
26621 if ${gcc_cv_as_sparc_relax+:} false; then :
26622 $as_echo_n "(cached) " >&6
26623 else
26624 gcc_cv_as_sparc_relax=no
26625 if test x$gcc_cv_as != x; then
26626 $as_echo '.text' > conftest.s
26627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26632 test $ac_status = 0; }; }
26633 then
26634 gcc_cv_as_sparc_relax=yes
26635 else
26636 echo "configure: failed program was" >&5
26637 cat conftest.s >&5
26639 rm -f conftest.o conftest.s
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26643 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26644 if test $gcc_cv_as_sparc_relax = yes; then
26646 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26652 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26653 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26654 $as_echo_n "(cached) " >&6
26655 else
26656 gcc_cv_as_sparc_gotdata_op=no
26657 if test x$gcc_cv_as != x; then
26658 $as_echo '.text
26659 .align 4
26660 foo:
26662 bar:
26663 sethi %gdop_hix22(foo), %g1
26664 xor %g1, %gdop_lox10(foo), %g1
26665 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668 (eval $ac_try) 2>&5
26669 ac_status=$?
26670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671 test $ac_status = 0; }; }
26672 then
26673 if test x$gcc_cv_ld != x \
26674 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26675 if test x$gcc_cv_objdump != x; then
26676 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26677 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26678 gcc_cv_as_sparc_gotdata_op=no
26679 else
26680 gcc_cv_as_sparc_gotdata_op=yes
26684 rm -f conftest
26685 else
26686 echo "configure: failed program was" >&5
26687 cat conftest.s >&5
26689 rm -f conftest.o conftest.s
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26693 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26694 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26696 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26702 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26703 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26704 $as_echo_n "(cached) " >&6
26705 else
26706 gcc_cv_as_sparc_ua_pcrel=no
26707 if test x$gcc_cv_as != x; then
26708 $as_echo '.text
26709 foo:
26711 .data
26712 .align 4
26713 .byte 0
26714 .uaword %r_disp32(foo)' > conftest.s
26715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26717 (eval $ac_try) 2>&5
26718 ac_status=$?
26719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26720 test $ac_status = 0; }; }
26721 then
26722 if test x$gcc_cv_ld != x \
26723 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26724 gcc_cv_as_sparc_ua_pcrel=yes
26726 rm -f conftest
26727 else
26728 echo "configure: failed program was" >&5
26729 cat conftest.s >&5
26731 rm -f conftest.o conftest.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26735 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26736 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26738 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26742 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26743 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26744 $as_echo_n "(cached) " >&6
26745 else
26746 gcc_cv_as_sparc_ua_pcrel_hidden=no
26747 if test x$gcc_cv_as != x; then
26748 $as_echo '.data
26749 .align 4
26750 .byte 0x31
26751 .uaword %r_disp32(foo)
26752 .byte 0x32, 0x33, 0x34
26753 .global foo
26754 .hidden foo
26755 foo:
26756 .skip 4' > conftest.s
26757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26762 test $ac_status = 0; }; }
26763 then
26764 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26765 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26766 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26767 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26768 if $gcc_cv_objdump -R conftest 2> /dev/null \
26769 | grep 'DISP32' > /dev/null 2>&1; then
26771 else
26772 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26775 rm -f conftest
26776 else
26777 echo "configure: failed program was" >&5
26778 cat conftest.s >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26784 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26785 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26787 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26793 # unaligned pcrel relocs
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26796 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26797 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26798 $as_echo_n "(cached) " >&6
26799 else
26800 gcc_cv_as_sparc_offsetable_lo10=no
26801 if test x$gcc_cv_as != x; then
26802 $as_echo '.text
26803 or %g1, %lo(ab) + 12, %g1
26804 or %g1, %lo(ab + 12), %g1' > conftest.s
26805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26811 then
26812 if test x$gcc_cv_objdump != x \
26813 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26814 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26815 gcc_cv_as_sparc_offsetable_lo10=yes
26817 else
26818 echo "configure: failed program was" >&5
26819 cat conftest.s >&5
26821 rm -f conftest.o conftest.s
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26825 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26826 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26828 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26834 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26835 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26836 $as_echo_n "(cached) " >&6
26837 else
26838 gcc_cv_as_sparc_fmaf=no
26839 if test x$gcc_cv_as != x; then
26840 $as_echo '.text
26841 .register %g2, #scratch
26842 .register %g3, #scratch
26843 .align 4
26844 fmaddd %f0, %f2, %f4, %f6
26845 addxccc %g1, %g2, %g3
26846 fsrl32 %f2, %f4, %f8
26847 fnaddd %f10, %f12, %f14' > conftest.s
26848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26850 (eval $ac_try) 2>&5
26851 ac_status=$?
26852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26853 test $ac_status = 0; }; }
26854 then
26855 gcc_cv_as_sparc_fmaf=yes
26856 else
26857 echo "configure: failed program was" >&5
26858 cat conftest.s >&5
26860 rm -f conftest.o conftest.s
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26864 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26865 if test $gcc_cv_as_sparc_fmaf = yes; then
26867 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26873 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26874 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26875 $as_echo_n "(cached) " >&6
26876 else
26877 gcc_cv_as_sparc_sparc4=no
26878 if test x$gcc_cv_as != x; then
26879 $as_echo '.text
26880 .register %g2, #scratch
26881 .register %g3, #scratch
26882 .align 4
26883 cxbe %g2, %g3, 1f
26884 1: cwbneg %g2, %g3, 1f
26885 1: sha1
26887 aes_kexpand0 %f4, %f6, %f8
26888 des_round %f38, %f40, %f42, %f44
26889 camellia_f %f54, %f56, %f58, %f60
26890 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26893 (eval $ac_try) 2>&5
26894 ac_status=$?
26895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26896 test $ac_status = 0; }; }
26897 then
26898 gcc_cv_as_sparc_sparc4=yes
26899 else
26900 echo "configure: failed program was" >&5
26901 cat conftest.s >&5
26903 rm -f conftest.o conftest.s
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26907 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26908 if test $gcc_cv_as_sparc_sparc4 = yes; then
26910 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26916 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26917 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26918 $as_echo_n "(cached) " >&6
26919 else
26920 gcc_cv_as_sparc_sparc5=no
26921 if test x$gcc_cv_as != x; then
26922 $as_echo '.text
26923 .register %g2, #scratch
26924 .register %g3, #scratch
26925 .align 4
26926 subxc %g1, %g2, %g3
26927 fpadd8 %f0, %f2, %f4' > conftest.s
26928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933 test $ac_status = 0; }; }
26934 then
26935 gcc_cv_as_sparc_sparc5=yes
26936 else
26937 echo "configure: failed program was" >&5
26938 cat conftest.s >&5
26940 rm -f conftest.o conftest.s
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26944 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26945 if test $gcc_cv_as_sparc_sparc5 = yes; then
26947 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26953 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26954 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26955 $as_echo_n "(cached) " >&6
26956 else
26957 gcc_cv_as_sparc_sparc6=no
26958 if test x$gcc_cv_as != x; then
26959 $as_echo '.text
26960 .register %g2, #scratch
26961 .register %g3, #scratch
26962 .align 4
26963 rd %entropy, %g1
26964 fpsll64x %f0, %f2, %f4' > conftest.s
26965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; }
26971 then
26972 gcc_cv_as_sparc_sparc6=yes
26973 else
26974 echo "configure: failed program was" >&5
26975 cat conftest.s >&5
26977 rm -f conftest.o conftest.s
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26981 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26982 if test $gcc_cv_as_sparc_sparc6 = yes; then
26984 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26990 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26991 if ${gcc_cv_as_sparc_leon+:} false; then :
26992 $as_echo_n "(cached) " >&6
26993 else
26994 gcc_cv_as_sparc_leon=no
26995 if test x$gcc_cv_as != x; then
26996 $as_echo '.text
26997 .register %g2, #scratch
26998 .register %g3, #scratch
26999 .align 4
27000 smac %g2, %g3, %g1
27001 umac %g2, %g3, %g1
27002 casa [%g2] 0xb, %g3, %g1' > conftest.s
27003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27005 (eval $ac_try) 2>&5
27006 ac_status=$?
27007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27008 test $ac_status = 0; }; }
27009 then
27010 gcc_cv_as_sparc_leon=yes
27011 else
27012 echo "configure: failed program was" >&5
27013 cat conftest.s >&5
27015 rm -f conftest.o conftest.s
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27019 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27020 if test $gcc_cv_as_sparc_leon = yes; then
27022 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27028 i[34567]86-*-* | x86_64-*-*)
27029 case $target_os in
27030 cygwin*)
27031 # Full C++ conformance when using a shared libstdc++-v3 requires some
27032 # support from the Cygwin DLL, which in more recent versions exports
27033 # wrappers to aid in interposing and redirecting operators new, delete,
27034 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27035 # are configuring for a version of Cygwin that exports the wrappers.
27036 if test x$host = x$target && test x$host_cpu = xi686; then
27037 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27038 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27039 gcc_ac_cygwin_dll_wrappers=yes
27040 else
27041 gcc_ac_cygwin_dll_wrappers=no
27044 else
27045 # Can't check presence of libc functions during cross-compile, so
27046 # we just have to assume we're building for an up-to-date target.
27047 gcc_ac_cygwin_dll_wrappers=yes
27050 cat >>confdefs.h <<_ACEOF
27051 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27052 _ACEOF
27054 esac
27055 case $target_os in
27056 cygwin* | pe | mingw32*)
27057 # Recent binutils allows the three-operand form of ".comm" on PE. This
27058 # definition is used unconditionally to initialise the default state of
27059 # the target option variable that governs usage of the feature.
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27061 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27062 if ${gcc_cv_as_comm_has_align+:} false; then :
27063 $as_echo_n "(cached) " >&6
27064 else
27065 gcc_cv_as_comm_has_align=no
27066 if test x$gcc_cv_as != x; then
27067 $as_echo '.comm foo,1,32' > conftest.s
27068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27070 (eval $ac_try) 2>&5
27071 ac_status=$?
27072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27073 test $ac_status = 0; }; }
27074 then
27075 gcc_cv_as_comm_has_align=yes
27076 else
27077 echo "configure: failed program was" >&5
27078 cat conftest.s >&5
27080 rm -f conftest.o conftest.s
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27084 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27088 cat >>confdefs.h <<_ACEOF
27089 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27090 _ACEOF
27092 # Used for DWARF 2 in PE
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27094 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27095 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27096 $as_echo_n "(cached) " >&6
27097 else
27098 gcc_cv_as_ix86_pe_secrel32=no
27099 if test x$gcc_cv_as != x; then
27100 $as_echo '.text
27101 foo: nop
27102 .data
27103 .secrel32 foo' > conftest.s
27104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27110 then
27111 if test x$gcc_cv_ld != x \
27112 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27113 gcc_cv_as_ix86_pe_secrel32=yes
27115 rm -f conftest
27116 else
27117 echo "configure: failed program was" >&5
27118 cat conftest.s >&5
27120 rm -f conftest.o conftest.s
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27124 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27125 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27127 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27131 # Test if the assembler supports the extended form of the .section
27132 # directive that specifies section alignment. LTO support uses this,
27133 # but normally only after installation, so we warn but don't fail the
27134 # configure if LTO is enabled but the assembler does not support it.
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27136 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27137 if ${gcc_cv_as_section_has_align+:} false; then :
27138 $as_echo_n "(cached) " >&6
27139 else
27140 gcc_cv_as_section_has_align=no
27141 if test x$gcc_cv_as != x; then
27142 $as_echo '.section lto_test,"dr0"' > conftest.s
27143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; }
27149 then
27150 gcc_cv_as_section_has_align=yes
27151 else
27152 echo "configure: failed program was" >&5
27153 cat conftest.s >&5
27155 rm -f conftest.o conftest.s
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27159 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27162 if test x$gcc_cv_as_section_has_align != xyes; then
27163 case ",$enable_languages," in
27164 *,lto,*)
27165 { $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
27166 $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;}
27168 esac
27171 esac
27172 case $target_os in
27173 darwin2* | darwin19*)
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27175 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27176 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27177 $as_echo_n "(cached) " >&6
27178 else
27179 gcc_cv_as_mllvm_x86_pad_for_align=no
27180 if test x$gcc_cv_as != x; then
27181 $as_echo '.text' > conftest.s
27182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27184 (eval $ac_try) 2>&5
27185 ac_status=$?
27186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27187 test $ac_status = 0; }; }
27188 then
27189 gcc_cv_as_mllvm_x86_pad_for_align=yes
27190 else
27191 echo "configure: failed program was" >&5
27192 cat conftest.s >&5
27194 rm -f conftest.o conftest.s
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27198 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27199 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27201 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27206 esac
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27209 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27210 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27211 $as_echo_n "(cached) " >&6
27212 else
27213 gcc_cv_as_ix86_xbrace_comment=no
27214 if test x$gcc_cv_as != x; then
27215 $as_echo '.text' > conftest.s
27216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; }
27222 then
27223 gcc_cv_as_ix86_xbrace_comment=yes
27224 else
27225 echo "configure: failed program was" >&5
27226 cat conftest.s >&5
27228 rm -f conftest.o conftest.s
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27232 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27233 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27235 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27241 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27242 if ${gcc_cv_as_ix86_filds+:} false; then :
27243 $as_echo_n "(cached) " >&6
27244 else
27245 gcc_cv_as_ix86_filds=no
27246 if test x$gcc_cv_as != x; then
27247 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27250 (eval $ac_try) 2>&5
27251 ac_status=$?
27252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27253 test $ac_status = 0; }; }
27254 then
27255 gcc_cv_as_ix86_filds=yes
27256 else
27257 echo "configure: failed program was" >&5
27258 cat conftest.s >&5
27260 rm -f conftest.o conftest.s
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27264 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27265 if test $gcc_cv_as_ix86_filds = yes; then
27267 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27273 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27274 if ${gcc_cv_as_ix86_fildq+:} false; then :
27275 $as_echo_n "(cached) " >&6
27276 else
27277 gcc_cv_as_ix86_fildq=no
27278 if test x$gcc_cv_as != x; then
27279 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27285 test $ac_status = 0; }; }
27286 then
27287 gcc_cv_as_ix86_fildq=yes
27288 else
27289 echo "configure: failed program was" >&5
27290 cat conftest.s >&5
27292 rm -f conftest.o conftest.s
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27296 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27297 if test $gcc_cv_as_ix86_fildq = yes; then
27299 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27305 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27306 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27307 $as_echo_n "(cached) " >&6
27308 else
27309 gcc_cv_as_ix86_cmov_sun_syntax=no
27310 if test x$gcc_cv_as != x; then
27311 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27317 test $ac_status = 0; }; }
27318 then
27319 gcc_cv_as_ix86_cmov_sun_syntax=yes
27320 else
27321 echo "configure: failed program was" >&5
27322 cat conftest.s >&5
27324 rm -f conftest.o conftest.s
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27328 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27329 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27331 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27337 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27338 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27339 $as_echo_n "(cached) " >&6
27340 else
27341 gcc_cv_as_ix86_ffreep=no
27342 if test x$gcc_cv_as != x; then
27343 $as_echo 'ffreep %st(1)' > conftest.s
27344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27346 (eval $ac_try) 2>&5
27347 ac_status=$?
27348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27349 test $ac_status = 0; }; }
27350 then
27351 gcc_cv_as_ix86_ffreep=yes
27352 else
27353 echo "configure: failed program was" >&5
27354 cat conftest.s >&5
27356 rm -f conftest.o conftest.s
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27360 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27361 if test $gcc_cv_as_ix86_ffreep = yes; then
27363 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27369 $as_echo_n "checking assembler for .quad directive... " >&6; }
27370 if ${gcc_cv_as_ix86_quad+:} false; then :
27371 $as_echo_n "(cached) " >&6
27372 else
27373 gcc_cv_as_ix86_quad=no
27374 if test x$gcc_cv_as != x; then
27375 $as_echo '.quad 0' > conftest.s
27376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27378 (eval $ac_try) 2>&5
27379 ac_status=$?
27380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27381 test $ac_status = 0; }; }
27382 then
27383 gcc_cv_as_ix86_quad=yes
27384 else
27385 echo "configure: failed program was" >&5
27386 cat conftest.s >&5
27388 rm -f conftest.o conftest.s
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27392 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27393 if test $gcc_cv_as_ix86_quad = yes; then
27395 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27401 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27402 if ${gcc_cv_as_ix86_sahf+:} false; then :
27403 $as_echo_n "(cached) " >&6
27404 else
27405 gcc_cv_as_ix86_sahf=no
27406 if test x$gcc_cv_as != x; then
27407 $as_echo '.code64
27408 sahf' > conftest.s
27409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; }
27415 then
27416 gcc_cv_as_ix86_sahf=yes
27417 else
27418 echo "configure: failed program was" >&5
27419 cat conftest.s >&5
27421 rm -f conftest.o conftest.s
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27425 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27426 if test $gcc_cv_as_ix86_sahf = yes; then
27428 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27434 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27435 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27436 $as_echo_n "(cached) " >&6
27437 else
27438 gcc_cv_as_ix86_interunit_movq=no
27439 if test x$gcc_cv_as != x; then
27440 $as_echo '.code64
27441 movq %mm0, %rax
27442 movq %rax, %xmm0' > conftest.s
27443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }
27449 then
27450 gcc_cv_as_ix86_interunit_movq=yes
27451 else
27452 echo "configure: failed program was" >&5
27453 cat conftest.s >&5
27455 rm -f conftest.o conftest.s
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27459 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27463 cat >>confdefs.h <<_ACEOF
27464 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27465 _ACEOF
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27469 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27470 if ${gcc_cv_as_ix86_hle+:} false; then :
27471 $as_echo_n "(cached) " >&6
27472 else
27473 gcc_cv_as_ix86_hle=no
27474 if test x$gcc_cv_as != x; then
27475 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27478 (eval $ac_try) 2>&5
27479 ac_status=$?
27480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27481 test $ac_status = 0; }; }
27482 then
27483 gcc_cv_as_ix86_hle=yes
27484 else
27485 echo "configure: failed program was" >&5
27486 cat conftest.s >&5
27488 rm -f conftest.o conftest.s
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27492 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27493 if test $gcc_cv_as_ix86_hle = yes; then
27495 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27501 $as_echo_n "checking assembler for swap suffix... " >&6; }
27502 if ${gcc_cv_as_ix86_swap+:} false; then :
27503 $as_echo_n "(cached) " >&6
27504 else
27505 gcc_cv_as_ix86_swap=no
27506 if test x$gcc_cv_as != x; then
27507 $as_echo 'movl.s %esp, %ebp' > conftest.s
27508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27510 (eval $ac_try) 2>&5
27511 ac_status=$?
27512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27513 test $ac_status = 0; }; }
27514 then
27515 gcc_cv_as_ix86_swap=yes
27516 else
27517 echo "configure: failed program was" >&5
27518 cat conftest.s >&5
27520 rm -f conftest.o conftest.s
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27524 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27525 if test $gcc_cv_as_ix86_swap = yes; then
27527 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27533 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27534 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27535 $as_echo_n "(cached) " >&6
27536 else
27537 gcc_cv_as_ix86_diff_sect_delta=no
27538 if test x$gcc_cv_as != x; then
27539 $as_echo '.section .rodata
27540 .L1:
27541 .long .L2-.L1
27542 .long .L3-.L1
27543 .text
27544 .L3: nop
27545 .L2: nop' > conftest.s
27546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551 test $ac_status = 0; }; }
27552 then
27553 gcc_cv_as_ix86_diff_sect_delta=yes
27554 else
27555 echo "configure: failed program was" >&5
27556 cat conftest.s >&5
27558 rm -f conftest.o conftest.s
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27562 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27563 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27565 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27571 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27572 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27573 $as_echo_n "(cached) " >&6
27574 else
27575 gcc_cv_as_ix86_rep_lock_prefix=no
27576 if test x$gcc_cv_as != x; then
27577 $as_echo 'rep movsl
27578 rep ret
27579 rep nop
27580 rep bsf %ecx, %eax
27581 rep bsr %ecx, %eax
27582 lock addl %edi, (%eax,%esi)
27583 lock orl $0, (%esp)' > conftest.s
27584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27589 test $ac_status = 0; }; }
27590 then
27591 gcc_cv_as_ix86_rep_lock_prefix=yes
27592 else
27593 echo "configure: failed program was" >&5
27594 cat conftest.s >&5
27596 rm -f conftest.o conftest.s
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27600 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27601 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27603 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27609 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27610 if ${gcc_cv_as_ix86_ud2+:} false; then :
27611 $as_echo_n "(cached) " >&6
27612 else
27613 gcc_cv_as_ix86_ud2=no
27614 if test x$gcc_cv_as != x; then
27615 $as_echo 'ud2' > conftest.s
27616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621 test $ac_status = 0; }; }
27622 then
27623 gcc_cv_as_ix86_ud2=yes
27624 else
27625 echo "configure: failed program was" >&5
27626 cat conftest.s >&5
27628 rm -f conftest.o conftest.s
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27632 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27633 if test $gcc_cv_as_ix86_ud2 = yes; then
27635 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27640 # Enforce 32-bit output with gas and gld.
27641 if test x$gas = xyes; then
27642 as_ix86_gas_32_opt="--32"
27644 if echo "$ld_ver" | grep GNU > /dev/null; then
27645 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27646 ld_ix86_gld_32_opt="-melf_i386_sol2"
27647 else
27648 ld_ix86_gld_32_opt="-melf_i386"
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27653 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27654 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27655 $as_echo_n "(cached) " >&6
27656 else
27657 gcc_cv_as_ix86_tlsgdplt=no
27658 if test x$gcc_cv_as != x; then
27659 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27662 (eval $ac_try) 2>&5
27663 ac_status=$?
27664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27665 test $ac_status = 0; }; }
27666 then
27667 if test x$gcc_cv_ld != x \
27668 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27669 gcc_cv_as_ix86_tlsgdplt=yes
27671 rm -f conftest
27672 else
27673 echo "configure: failed program was" >&5
27674 cat conftest.s >&5
27676 rm -f conftest.o conftest.s
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27680 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27681 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27683 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27688 conftest_s='
27689 .section .tdata,"aw'$tls_section_flag'",@progbits
27690 tls_ld:
27691 .section .text,"ax",@progbits
27692 call tls_ld@tlsldmplt'
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27695 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27696 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27697 $as_echo_n "(cached) " >&6
27698 else
27699 gcc_cv_as_ix86_tlsldmplt=no
27700 if test x$gcc_cv_as != x; then
27701 $as_echo "$conftest_s" > conftest.s
27702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27704 (eval $ac_try) 2>&5
27705 ac_status=$?
27706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27707 test $ac_status = 0; }; }
27708 then
27709 if test x$gcc_cv_ld != x \
27710 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27711 gcc_cv_as_ix86_tlsldmplt=yes
27713 rm -f conftest
27714 else
27715 echo "configure: failed program was" >&5
27716 cat conftest.s >&5
27718 rm -f conftest.o conftest.s
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27722 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27726 cat >>confdefs.h <<_ACEOF
27727 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27728 _ACEOF
27731 conftest_s='
27732 .section .text,"ax",@progbits
27733 .globl _start
27734 .type _start, @function
27735 _start:
27736 leal value@tlsldm(%ebx), %eax
27737 call ___tls_get_addr@plt
27739 .section .tdata,"aw'$tls_section_flag'",@progbits
27740 .type value, @object
27741 value:'
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27743 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27744 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27745 $as_echo_n "(cached) " >&6
27746 else
27747 gcc_cv_as_ix86_tlsldm=no
27748 if test x$gcc_cv_as != x; then
27749 $as_echo "$conftest_s" > conftest.s
27750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27752 (eval $ac_try) 2>&5
27753 ac_status=$?
27754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27755 test $ac_status = 0; }; }
27756 then
27757 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27758 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27759 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27760 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27761 gcc_cv_as_ix86_tlsldm=yes
27764 rm -f conftest
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_ix86_tlsldm" >&5
27773 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27777 cat >>confdefs.h <<_ACEOF
27778 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27779 _ACEOF
27782 conftest_s='
27783 .data
27784 bar:
27785 .byte 1
27786 .text
27787 .global _start
27788 _start:
27789 cmpl $0, bar@GOT
27790 jmp *_start@GOT'
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27792 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27793 if ${gcc_cv_as_ix86_got32x+:} false; then :
27794 $as_echo_n "(cached) " >&6
27795 else
27796 gcc_cv_as_ix86_got32x=no
27797 if test x$gcc_cv_as != x; then
27798 $as_echo "$conftest_s" > conftest.s
27799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804 test $ac_status = 0; }; }
27805 then
27806 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27807 && test x$gcc_cv_readelf != x \
27808 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27809 | grep R_386_GOT32X > /dev/null 2>&1 \
27810 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27811 if $gcc_cv_objdump -dw conftest 2>&1 \
27812 | grep 0xffffff > /dev/null 2>&1; then
27813 gcc_cv_as_ix86_got32x=no
27814 else
27815 gcc_cv_as_ix86_got32x=yes
27818 rm -f conftest
27819 else
27820 echo "configure: failed program was" >&5
27821 cat conftest.s >&5
27823 rm -f conftest.o conftest.s
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27827 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27831 cat >>confdefs.h <<_ACEOF
27832 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27833 _ACEOF
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27837 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27838 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27839 $as_echo_n "(cached) " >&6
27840 else
27841 gcc_cv_as_ix86_gotoff_in_data=no
27842 if test x$gcc_cv_as != x; then
27843 $as_echo ' .text
27844 .L0:
27846 .data
27847 .long .L0@GOTOFF' > conftest.s
27848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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_ix86_gotoff_in_data=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_ix86_gotoff_in_data" >&5
27864 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27868 cat >>confdefs.h <<_ACEOF
27869 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27870 _ACEOF
27873 conftest_s='
27874 .section .text,"ax",@progbits
27875 .globl _start
27876 .type _start, @function
27877 _start:
27878 leal ld@tlsldm(%ecx), %eax
27879 call *___tls_get_addr@GOT(%ecx)
27880 leal gd@tlsgd(%ecx), %eax
27881 call *___tls_get_addr@GOT(%ecx)
27883 .section .tdata,"aw'$tls_section_flag'",@progbits
27884 .type ld, @object
27886 .byte 0
27887 .globl gd
27888 .type gd, @object
27890 .byte 0'
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27892 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27893 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27894 $as_echo_n "(cached) " >&6
27895 else
27896 gcc_cv_as_ix86_tls_get_addr_via_got=no
27897 if test x$gcc_cv_as != x; then
27898 $as_echo "$conftest_s" > conftest.s
27899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27904 test $ac_status = 0; }; }
27905 then
27906 if test x$gcc_cv_ld != x \
27907 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27908 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27910 rm -f conftest
27911 else
27912 echo "configure: failed program was" >&5
27913 cat conftest.s >&5
27915 rm -f conftest.o conftest.s
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27919 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27923 cat >>confdefs.h <<_ACEOF
27924 #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`
27925 _ACEOF
27929 ia64*-*-*)
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27931 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27932 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27933 $as_echo_n "(cached) " >&6
27934 else
27935 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27936 if test x$gcc_cv_as != x; then
27937 $as_echo ' .text
27938 addl r15 = @ltoffx(x#), gp
27940 ld8.mov r16 = [r15], x#
27941 ' > conftest.s
27942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27944 (eval $ac_try) 2>&5
27945 ac_status=$?
27946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27947 test $ac_status = 0; }; }
27948 then
27949 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27950 else
27951 echo "configure: failed program was" >&5
27952 cat conftest.s >&5
27954 rm -f conftest.o conftest.s
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27958 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27959 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27961 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27968 powerpc*-*-*)
27970 case $target in
27971 *-*-darwin*)
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27973 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27974 if ${gcc_cv_as_machine_directive+:} false; then :
27975 $as_echo_n "(cached) " >&6
27976 else
27977 gcc_cv_as_machine_directive=no
27978 if test x$gcc_cv_as != x; then
27979 $as_echo ' .machine ppc7400' > conftest.s
27980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27985 test $ac_status = 0; }; }
27986 then
27987 gcc_cv_as_machine_directive=yes
27988 else
27989 echo "configure: failed program was" >&5
27990 cat conftest.s >&5
27992 rm -f conftest.o conftest.s
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27996 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27999 if test x$gcc_cv_as_machine_directive != xyes; then
28000 echo "*** This target requires an assembler supporting \".machine\"" >&2
28001 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28002 test x$build = x$target && exit 1
28005 esac
28007 case $target in
28008 *-*-aix*) conftest_s=' .machine "pwr5"
28009 .csect .text[PR]
28010 mfcr 3,128';;
28011 *-*-darwin*) conftest_s=' .text
28012 mfcr r3,128';;
28013 *) conftest_s=' .machine power4
28014 .text
28015 mfcr 3,128';;
28016 esac
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28019 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28020 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28021 $as_echo_n "(cached) " >&6
28022 else
28023 gcc_cv_as_powerpc_mfcrf=no
28024 if test x$gcc_cv_as != x; then
28025 $as_echo "$conftest_s" > conftest.s
28026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28028 (eval $ac_try) 2>&5
28029 ac_status=$?
28030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28031 test $ac_status = 0; }; }
28032 then
28033 gcc_cv_as_powerpc_mfcrf=yes
28034 else
28035 echo "configure: failed program was" >&5
28036 cat conftest.s >&5
28038 rm -f conftest.o conftest.s
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28042 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28043 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28045 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28050 case $target in
28051 *-*-aix*) conftest_s=' .csect .text[PR]
28052 LCF..0:
28053 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28054 *-*-darwin*)
28055 conftest_s=' .text
28056 LCF0:
28057 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28058 *) conftest_s=' .text
28059 .LCF0:
28060 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28061 esac
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28064 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28065 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28066 $as_echo_n "(cached) " >&6
28067 else
28068 gcc_cv_as_powerpc_rel16=no
28069 if test x$gcc_cv_as != x; then
28070 $as_echo "$conftest_s" > conftest.s
28071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28076 test $ac_status = 0; }; }
28077 then
28078 gcc_cv_as_powerpc_rel16=yes
28079 else
28080 echo "configure: failed program was" >&5
28081 cat conftest.s >&5
28083 rm -f conftest.o conftest.s
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28087 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28088 if test $gcc_cv_as_powerpc_rel16 = yes; then
28090 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28095 case $target in
28096 *-*-aix*) conftest_s=' .machine "pwr7"
28097 .csect .text[PR]
28098 lxvd2x 1,2,3';;
28099 *) conftest_s=' .machine power7
28100 .text
28101 lxvd2x 1,2,3';;
28102 esac
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28105 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28106 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28107 $as_echo_n "(cached) " >&6
28108 else
28109 gcc_cv_as_powerpc_vsx=no
28110 if test x$gcc_cv_as != x; then
28111 $as_echo "$conftest_s" > conftest.s
28112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28114 (eval $ac_try) 2>&5
28115 ac_status=$?
28116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117 test $ac_status = 0; }; }
28118 then
28119 gcc_cv_as_powerpc_vsx=yes
28120 else
28121 echo "configure: failed program was" >&5
28122 cat conftest.s >&5
28124 rm -f conftest.o conftest.s
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28128 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28129 if test $gcc_cv_as_powerpc_vsx = yes; then
28131 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28137 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28138 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28139 $as_echo_n "(cached) " >&6
28140 else
28141 gcc_cv_as_powerpc_gnu_attribute=no
28142 if test x$gcc_cv_as != x; then
28143 $as_echo '.gnu_attribute 4,1' > conftest.s
28144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28149 test $ac_status = 0; }; }
28150 then
28151 gcc_cv_as_powerpc_gnu_attribute=yes
28152 else
28153 echo "configure: failed program was" >&5
28154 cat conftest.s >&5
28156 rm -f conftest.o conftest.s
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28160 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28161 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28163 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28169 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28170 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28171 $as_echo_n "(cached) " >&6
28172 else
28173 gcc_cv_as_powerpc_entry_markers=no
28174 if test x$gcc_cv_as != x; then
28175 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28178 (eval $ac_try) 2>&5
28179 ac_status=$?
28180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28181 test $ac_status = 0; }; }
28182 then
28183 gcc_cv_as_powerpc_entry_markers=yes
28184 else
28185 echo "configure: failed program was" >&5
28186 cat conftest.s >&5
28188 rm -f conftest.o conftest.s
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28192 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28193 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28195 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28201 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28202 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28203 $as_echo_n "(cached) " >&6
28204 else
28205 gcc_cv_as_powerpc_pltseq_markers=no
28206 if test x$gcc_cv_as != x; then
28207 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28210 (eval $ac_try) 2>&5
28211 ac_status=$?
28212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28213 test $ac_status = 0; }; }
28214 then
28215 gcc_cv_as_powerpc_pltseq_markers=yes
28216 else
28217 echo "configure: failed program was" >&5
28218 cat conftest.s >&5
28220 rm -f conftest.o conftest.s
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28224 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28225 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28227 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28232 case $target in
28233 *-*-aix*)
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28235 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28236 if ${gcc_cv_as_aix_ref+:} false; then :
28237 $as_echo_n "(cached) " >&6
28238 else
28239 gcc_cv_as_aix_ref=no
28240 if test x$gcc_cv_as != x; then
28241 $as_echo ' .csect stuff[rw]
28242 stuff:
28243 .long 1
28244 .extern sym
28245 .ref sym
28246 ' > conftest.s
28247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28249 (eval $ac_try) 2>&5
28250 ac_status=$?
28251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28252 test $ac_status = 0; }; }
28253 then
28254 gcc_cv_as_aix_ref=yes
28255 else
28256 echo "configure: failed program was" >&5
28257 cat conftest.s >&5
28259 rm -f conftest.o conftest.s
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28263 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28264 if test $gcc_cv_as_aix_ref = yes; then
28266 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28272 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28273 if ${gcc_cv_as_aix_dwloc+:} false; then :
28274 $as_echo_n "(cached) " >&6
28275 else
28276 gcc_cv_as_aix_dwloc=no
28277 if test x$gcc_cv_as != x; then
28278 $as_echo ' .dwsect 0xA0000
28279 Lframe..0:
28280 .vbyte 4,Lframe..0
28281 ' > conftest.s
28282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28287 test $ac_status = 0; }; }
28288 then
28289 gcc_cv_as_aix_dwloc=yes
28290 else
28291 echo "configure: failed program was" >&5
28292 cat conftest.s >&5
28294 rm -f conftest.o conftest.s
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28298 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28299 if test $gcc_cv_as_aix_dwloc = yes; then
28301 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28306 esac
28309 mips*-*-*)
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28311 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28312 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28313 $as_echo_n "(cached) " >&6
28314 else
28315 gcc_cv_as_mips_explicit_relocs=no
28316 if test x$gcc_cv_as != x; then
28317 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28324 then
28325 gcc_cv_as_mips_explicit_relocs=yes
28326 else
28327 echo "configure: failed program was" >&5
28328 cat conftest.s >&5
28330 rm -f conftest.o conftest.s
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28334 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28335 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28336 if test x$target_cpu_default = x
28337 then target_cpu_default=MASK_EXPLICIT_RELOCS
28338 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28344 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28345 if ${gcc_cv_as_mips_no_shared+:} false; then :
28346 $as_echo_n "(cached) " >&6
28347 else
28348 gcc_cv_as_mips_no_shared=no
28349 if test x$gcc_cv_as != x; then
28350 $as_echo 'nop' > conftest.s
28351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28353 (eval $ac_try) 2>&5
28354 ac_status=$?
28355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28356 test $ac_status = 0; }; }
28357 then
28358 gcc_cv_as_mips_no_shared=yes
28359 else
28360 echo "configure: failed program was" >&5
28361 cat conftest.s >&5
28363 rm -f conftest.o conftest.s
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28367 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28368 if test $gcc_cv_as_mips_no_shared = yes; then
28370 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28376 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28377 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28378 $as_echo_n "(cached) " >&6
28379 else
28380 gcc_cv_as_mips_gnu_attribute=no
28381 if test x$gcc_cv_as != x; then
28382 $as_echo '.gnu_attribute 4,1' > conftest.s
28383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28385 (eval $ac_try) 2>&5
28386 ac_status=$?
28387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28388 test $ac_status = 0; }; }
28389 then
28390 gcc_cv_as_mips_gnu_attribute=yes
28391 else
28392 echo "configure: failed program was" >&5
28393 cat conftest.s >&5
28395 rm -f conftest.o conftest.s
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28399 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28400 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28402 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28408 $as_echo_n "checking assembler for .module support... " >&6; }
28409 if ${gcc_cv_as_mips_dot_module+:} false; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 gcc_cv_as_mips_dot_module=no
28413 if test x$gcc_cv_as != x; then
28414 $as_echo '.module mips2
28415 .module fp=xx' > conftest.s
28416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28421 test $ac_status = 0; }; }
28422 then
28423 gcc_cv_as_mips_dot_module=yes
28424 else
28425 echo "configure: failed program was" >&5
28426 cat conftest.s >&5
28428 rm -f conftest.o conftest.s
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28432 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28433 if test $gcc_cv_as_mips_dot_module = yes; then
28435 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28439 if test x$gcc_cv_as_mips_dot_module = xno \
28440 && test x$with_fp_32 != x; then
28441 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28445 $as_echo_n "checking assembler for .micromips support... " >&6; }
28446 if ${gcc_cv_as_micromips_support+:} false; then :
28447 $as_echo_n "(cached) " >&6
28448 else
28449 gcc_cv_as_micromips_support=no
28450 if test x$gcc_cv_as != x; then
28451 $as_echo '.set micromips' > conftest.s
28452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28457 test $ac_status = 0; }; }
28458 then
28459 gcc_cv_as_micromips_support=yes
28460 else
28461 echo "configure: failed program was" >&5
28462 cat conftest.s >&5
28464 rm -f conftest.o conftest.s
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28468 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28469 if test $gcc_cv_as_micromips_support = yes; then
28471 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28477 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28478 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28479 $as_echo_n "(cached) " >&6
28480 else
28481 gcc_cv_as_mips_dtprelword=no
28482 if test x$gcc_cv_as != x; then
28483 $as_echo '.section .tdata,"awT",@progbits
28485 .word 2
28486 .text
28487 .dtprelword x+0x8000' > conftest.s
28488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28490 (eval $ac_try) 2>&5
28491 ac_status=$?
28492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28493 test $ac_status = 0; }; }
28494 then
28495 gcc_cv_as_mips_dtprelword=yes
28496 else
28497 echo "configure: failed program was" >&5
28498 cat conftest.s >&5
28500 rm -f conftest.o conftest.s
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28504 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28505 if test $gcc_cv_as_mips_dtprelword = yes; then
28507 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28513 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28514 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28515 $as_echo_n "(cached) " >&6
28516 else
28517 gcc_cv_as_mips_dspr1_mult=no
28518 if test x$gcc_cv_as != x; then
28519 $as_echo ' .set mips32r2
28520 .set nodspr2
28521 .set dsp
28522 madd $ac3,$4,$5
28523 maddu $ac3,$4,$5
28524 msub $ac3,$4,$5
28525 msubu $ac3,$4,$5
28526 mult $ac3,$4,$5
28527 multu $ac3,$4,$5' > conftest.s
28528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28530 (eval $ac_try) 2>&5
28531 ac_status=$?
28532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28533 test $ac_status = 0; }; }
28534 then
28535 gcc_cv_as_mips_dspr1_mult=yes
28536 else
28537 echo "configure: failed program was" >&5
28538 cat conftest.s >&5
28540 rm -f conftest.o conftest.s
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28544 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28545 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28547 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28553 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28554 gcc_cv_as_ld_jalr_reloc=no
28555 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28556 if test $in_tree_ld = yes ; then
28557 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 \
28558 && test $in_tree_ld_is_elf = yes; then
28559 gcc_cv_as_ld_jalr_reloc=yes
28561 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28562 echo ' .ent x' > conftest.s
28563 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28564 echo ' lw $25,%call16(y)($28)' >> conftest.s
28565 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28566 echo '1: jalr $25' >> conftest.s
28567 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28568 echo '1: jalr $25' >> conftest.s
28569 echo ' .end x' >> conftest.s
28570 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28571 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28572 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28573 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28574 gcc_cv_as_ld_jalr_reloc=yes
28577 rm -f conftest.*
28580 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28581 if test x$target_cpu_default = x; then
28582 target_cpu_default=MASK_RELAX_PIC_CALLS
28583 else
28584 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28588 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28591 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28592 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28593 $as_echo_n "(cached) " >&6
28594 else
28595 gcc_cv_ld_mips_personality_relaxation=no
28596 if test $in_tree_ld = yes ; then
28597 if test "$gcc_cv_gld_major_version" -eq 2 \
28598 -a "$gcc_cv_gld_minor_version" -ge 21 \
28599 -o "$gcc_cv_gld_major_version" -gt 2; then
28600 gcc_cv_ld_mips_personality_relaxation=yes
28602 elif test x$gcc_cv_as != x \
28603 -a x$gcc_cv_ld != x \
28604 -a x$gcc_cv_readelf != x ; then
28605 cat > conftest.s <<EOF
28606 .cfi_startproc
28607 .cfi_personality 0x80,indirect_ptr
28608 .ent test
28609 test:
28611 .end test
28612 .cfi_endproc
28614 .section .data,"aw",@progbits
28615 indirect_ptr:
28616 .dc.a personality
28618 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28619 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28620 if $gcc_cv_readelf -d conftest 2>&1 \
28621 | grep TEXTREL > /dev/null 2>&1; then
28623 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28624 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28626 else
28627 gcc_cv_ld_mips_personality_relaxation=yes
28631 rm -f conftest.s conftest.o conftest
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28634 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28635 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28637 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28642 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28643 if ${gcc_cv_as_mips_nan+:} false; then :
28644 $as_echo_n "(cached) " >&6
28645 else
28646 gcc_cv_as_mips_nan=no
28647 if test x$gcc_cv_as != x; then
28648 $as_echo '' > conftest.s
28649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28651 (eval $ac_try) 2>&5
28652 ac_status=$?
28653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28654 test $ac_status = 0; }; }
28655 then
28656 gcc_cv_as_mips_nan=yes
28657 else
28658 echo "configure: failed program was" >&5
28659 cat conftest.s >&5
28661 rm -f conftest.o conftest.s
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28665 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28666 if test $gcc_cv_as_mips_nan = yes; then
28668 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28672 if test x$gcc_cv_as_mips_nan = xno \
28673 && test x$with_nan != x; then
28674 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28677 msp430-*-*)
28678 # Earlier GAS versions generically support .gnu_attribute, but the
28679 # msp430 assembler will not do anything with it.
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28681 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28682 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28683 $as_echo_n "(cached) " >&6
28684 else
28685 gcc_cv_as_msp430_gnu_attribute=no
28686 if test x$gcc_cv_as != x; then
28687 $as_echo '.gnu_attribute 4,1' > conftest.s
28688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28690 (eval $ac_try) 2>&5
28691 ac_status=$?
28692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693 test $ac_status = 0; }; }
28694 then
28695 gcc_cv_as_msp430_gnu_attribute=yes
28696 else
28697 echo "configure: failed program was" >&5
28698 cat conftest.s >&5
28700 rm -f conftest.o conftest.s
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28704 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28705 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28707 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28712 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28713 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28714 $as_echo_n "(cached) " >&6
28715 else
28716 gcc_cv_as_msp430_mspabi_attribute=no
28717 if test x$gcc_cv_as != x; then
28718 $as_echo '.mspabi_attribute 4,2' > conftest.s
28719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724 test $ac_status = 0; }; }
28725 then
28726 gcc_cv_as_msp430_mspabi_attribute=yes
28727 else
28728 echo "configure: failed program was" >&5
28729 cat conftest.s >&5
28731 rm -f conftest.o conftest.s
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28735 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28736 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28738 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28742 if test x$enable_newlib_nano_formatted_io = xyes; then
28744 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28748 nios2-*-*)
28749 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28750 # syntax that is documented in the ABI specification.
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28752 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28753 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28754 $as_echo_n "(cached) " >&6
28755 else
28756 gcc_cv_as_nios2_gotoff_relocation=no
28757 if test x$gcc_cv_as != x; then
28758 $as_echo ' .extern foo
28759 .data
28760 .long %gotoff(foo)' > conftest.s
28761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28763 (eval $ac_try) 2>&5
28764 ac_status=$?
28765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28766 test $ac_status = 0; }; }
28767 then
28768 gcc_cv_as_nios2_gotoff_relocation=yes
28769 else
28770 echo "configure: failed program was" >&5
28771 cat conftest.s >&5
28773 rm -f conftest.o conftest.s
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28777 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28778 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28780 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28785 riscv*-*-*)
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28787 $as_echo_n "checking assembler for .attribute support... " >&6; }
28788 if ${gcc_cv_as_riscv_attribute+:} false; then :
28789 $as_echo_n "(cached) " >&6
28790 else
28791 gcc_cv_as_riscv_attribute=no
28792 if test x$gcc_cv_as != x; then
28793 $as_echo '.attribute stack_align,4' > conftest.s
28794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; }
28800 then
28801 gcc_cv_as_riscv_attribute=yes
28802 else
28803 echo "configure: failed program was" >&5
28804 cat conftest.s >&5
28806 rm -f conftest.o conftest.s
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28810 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28811 if test $gcc_cv_as_riscv_attribute = yes; then
28813 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28818 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28819 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28820 $as_echo_n "(cached) " >&6
28821 else
28822 gcc_cv_as_riscv_isa_spec=no
28823 if test x$gcc_cv_as != x; then
28824 $as_echo '' > conftest.s
28825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28827 (eval $ac_try) 2>&5
28828 ac_status=$?
28829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28830 test $ac_status = 0; }; }
28831 then
28832 gcc_cv_as_riscv_isa_spec=yes
28833 else
28834 echo "configure: failed program was" >&5
28835 cat conftest.s >&5
28837 rm -f conftest.o conftest.s
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28841 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28842 if test $gcc_cv_as_riscv_isa_spec = yes; then
28844 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28849 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28850 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28851 $as_echo_n "(cached) " >&6
28852 else
28853 gcc_cv_as_riscv_march_zifencei=no
28854 if test x$gcc_cv_as != x; then
28855 $as_echo '' > conftest.s
28856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28858 (eval $ac_try) 2>&5
28859 ac_status=$?
28860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28861 test $ac_status = 0; }; }
28862 then
28863 gcc_cv_as_riscv_march_zifencei=yes
28864 else
28865 echo "configure: failed program was" >&5
28866 cat conftest.s >&5
28868 rm -f conftest.o conftest.s
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28872 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28873 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28875 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28880 loongarch*-*-*)
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28882 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28883 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28884 $as_echo_n "(cached) " >&6
28885 else
28886 gcc_cv_as_loongarch_dtprelword=no
28887 if test x$gcc_cv_as != x; then
28888 $as_echo '' > conftest.s
28889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28891 (eval $ac_try) 2>&5
28892 ac_status=$?
28893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28894 test $ac_status = 0; }; }
28895 then
28896 .section .tdata,"awT",@progbits
28898 .word 2
28899 .text
28900 .dtprelword x+0x8000
28901 else
28902 echo "configure: failed program was" >&5
28903 cat conftest.s >&5
28905 rm -f conftest.o conftest.s
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28909 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28911 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28913 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28917 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28918 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28919 $as_echo_n "(cached) " >&6
28920 else
28921 gcc_cv_as_loongarch_explicit_relocs=no
28922 if test x$gcc_cv_as != x; then
28923 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28926 (eval $ac_try) 2>&5
28927 ac_status=$?
28928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28929 test $ac_status = 0; }; }
28930 then
28931 gcc_cv_as_loongarch_explicit_relocs=yes
28932 else
28933 echo "configure: failed program was" >&5
28934 cat conftest.s >&5
28936 rm -f conftest.o conftest.s
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28940 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28941 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28943 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28948 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28949 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28950 $as_echo_n "(cached) " >&6
28951 else
28952 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28953 if test x$gcc_cv_as != x; then
28954 $as_echo '.cfi_startproc
28955 .cfi_personality 0x9b,a
28956 .cfi_lsda 0x1b,b
28957 .cfi_endproc' > conftest.s
28958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28960 (eval $ac_try) 2>&5
28961 ac_status=$?
28962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28963 test $ac_status = 0; }; }
28964 then
28965 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28966 else
28967 echo "configure: failed program was" >&5
28968 cat conftest.s >&5
28970 rm -f conftest.o conftest.s
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28974 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28975 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28977 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28982 s390*-*-*)
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28984 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28985 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28986 $as_echo_n "(cached) " >&6
28987 else
28988 gcc_cv_as_s390_gnu_attribute=no
28989 if test x$gcc_cv_as != x; then
28990 $as_echo '.gnu_attribute 8,1' > conftest.s
28991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28996 test $ac_status = 0; }; }
28997 then
28998 gcc_cv_as_s390_gnu_attribute=yes
28999 else
29000 echo "configure: failed program was" >&5
29001 cat conftest.s >&5
29003 rm -f conftest.o conftest.s
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29007 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29008 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29010 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29015 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29016 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29017 $as_echo_n "(cached) " >&6
29018 else
29019 gcc_cv_as_s390_machine_machinemode=no
29020 if test x$gcc_cv_as != x; then
29021 $as_echo ' .machinemode push
29022 .machinemode pop
29023 .machine push
29024 .machine pop' > conftest.s
29025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29030 test $ac_status = 0; }; }
29031 then
29032 gcc_cv_as_s390_machine_machinemode=yes
29033 else
29034 echo "configure: failed program was" >&5
29035 cat conftest.s >&5
29037 rm -f conftest.o conftest.s
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29041 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29042 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29044 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29049 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29050 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29051 $as_echo_n "(cached) " >&6
29052 else
29053 gcc_cv_as_s390_architecture_modifiers=no
29054 if test x$gcc_cv_as != x; then
29055 $as_echo ' .machine z13+vx ' > conftest.s
29056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29058 (eval $ac_try) 2>&5
29059 ac_status=$?
29060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29061 test $ac_status = 0; }; }
29062 then
29063 gcc_cv_as_s390_architecture_modifiers=yes
29064 else
29065 echo "configure: failed program was" >&5
29066 cat conftest.s >&5
29068 rm -f conftest.o conftest.s
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29072 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29073 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29075 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29080 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29081 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29082 $as_echo_n "(cached) " >&6
29083 else
29084 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29085 if test x$gcc_cv_as != x; then
29086 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29089 (eval $ac_try) 2>&5
29090 ac_status=$?
29091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29092 test $ac_status = 0; }; }
29093 then
29094 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29095 else
29096 echo "configure: failed program was" >&5
29097 cat conftest.s >&5
29099 rm -f conftest.o conftest.s
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29103 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29104 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29106 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29111 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29112 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29113 $as_echo_n "(cached) " >&6
29114 else
29115 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29116 if test x$gcc_cv_as != x; then
29117 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29120 (eval $ac_try) 2>&5
29121 ac_status=$?
29122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29123 test $ac_status = 0; }; }
29124 then
29125 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29126 else
29127 echo "configure: failed program was" >&5
29128 cat conftest.s >&5
29130 rm -f conftest.o conftest.s
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29134 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29135 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29137 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29143 esac
29145 # Mips, LoongArch and HP-UX need the GNU assembler.
29146 # Linux on IA64 might be able to use the Intel assembler.
29148 case "$target" in
29149 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29150 if test x$gas_flag = xyes \
29151 || test x"$host" != x"$build" \
29152 || test ! -x "$gcc_cv_as" \
29153 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29155 else
29156 echo "*** This configuration requires the GNU assembler" >&2
29157 exit 1
29160 esac
29162 # AMD GCN needs the LLVM assembler and linker.
29163 # Test that LLVM is at least 13.0.1.
29164 case "$target" in
29165 amdgcn-* | gcn-*)
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29167 $as_echo_n "checking llvm assembler version... " >&6; }
29168 gcc_cv_as_version="unknown"
29169 if test x$gcc_cv_as != x; then
29170 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29171 case "$gcc_cv_as_version" in
29172 13.0.[1-9]*) ;; # 13.0.1+
29173 13.[1-9]*) ;; # 13.1+
29174 1[4-9]*) ;; # 14..19
29175 [2-9][0-9]*) ;; # 20..99
29176 [1-9][0-9][0-9]*) ;; # 100+
29177 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29178 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29179 esac
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29182 $as_echo "$gcc_cv_as_version, ok" >&6; }
29184 esac
29186 case "$target" in
29187 arm*)
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29189 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29190 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29191 $as_echo_n "(cached) " >&6
29192 else
29193 gcc_cv_as_arm_option_extensions=no
29194 if test x$gcc_cv_as != x; then
29195 $as_echo '.text
29196 .thumb
29197 .syntax unified
29198 vmov.f32 s0, s1' > conftest.s
29199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29204 test $ac_status = 0; }; }
29205 then
29206 gcc_cv_as_arm_option_extensions=yes
29207 else
29208 echo "configure: failed program was" >&5
29209 cat conftest.s >&5
29211 rm -f conftest.o conftest.s
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29215 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29216 if test $gcc_cv_as_arm_option_extensions = yes; then
29218 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29222 esac
29224 # ??? Not all targets support dwarf2 debug_line, even within a version
29225 # of gas. Moreover, we need to emit a valid instruction to trigger any
29226 # info to the output file. So, as supported targets are added to gas 2.11,
29227 # add some instruction here to (also) show we expect this might work.
29228 # ??? Once 2.11 is released, probably need to add first known working
29229 # version to the per-target configury.
29230 case "$cpu_type" in
29231 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29232 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29233 | visium | xstormy16 | xtensa)
29234 insn="nop"
29236 ia64 | s390)
29237 insn="nop 0"
29239 mmix)
29240 insn="swym 0"
29242 esac
29243 if test x"$insn" != x; then
29244 conftest_s="\
29245 .file 1 \"conftest.s\"
29246 .loc 1 3 0
29247 $insn"
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29249 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29250 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29251 $as_echo_n "(cached) " >&6
29252 else
29253 gcc_cv_as_dwarf2_debug_line=no
29254 if test x$gcc_cv_as != x; then
29255 $as_echo "$conftest_s" > conftest.s
29256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29261 test $ac_status = 0; }; }
29262 then
29263 if test x$gcc_cv_objdump != x \
29264 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29265 | grep debug_line > /dev/null 2>&1; then
29266 gcc_cv_as_dwarf2_debug_line=yes
29267 elif test x$gcc_cv_otool != x \
29268 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29269 | grep debug_line > /dev/null 2>&1; then
29270 gcc_cv_as_dwarf2_debug_line=yes
29272 else
29273 echo "configure: failed program was" >&5
29274 cat conftest.s >&5
29276 rm -f conftest.o conftest.s
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29280 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29284 # The .debug_line file table must be in the exact order that
29285 # we specified the files, since these indices are also used
29286 # by DW_AT_decl_file. Approximate this test by testing if
29287 # the assembler bitches if the same index is assigned twice.
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29289 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29290 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29291 $as_echo_n "(cached) " >&6
29292 else
29293 gcc_cv_as_dwarf2_file_buggy=no
29294 if test x$gcc_cv_as != x; then
29295 $as_echo ' .file 1 "foo.s"
29296 .file 1 "bar.s"' > conftest.s
29297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29299 (eval $ac_try) 2>&5
29300 ac_status=$?
29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29302 test $ac_status = 0; }; }
29303 then
29304 gcc_cv_as_dwarf2_file_buggy=yes
29305 else
29306 echo "configure: failed program was" >&5
29307 cat conftest.s >&5
29309 rm -f conftest.o conftest.s
29312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29313 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29317 if test $gcc_cv_as_dwarf2_debug_line = yes \
29318 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29320 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29323 if test $gcc_cv_as_leb128 = yes; then
29324 conftest_s="\
29325 .file 1 \"conftest.s\"
29326 .loc 1 3 0 view .LVU1
29327 $insn
29328 .data
29329 .uleb128 .LVU1
29330 .uleb128 .LVU1
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29333 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29334 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29335 $as_echo_n "(cached) " >&6
29336 else
29337 gcc_cv_as_dwarf2_debug_view=no
29338 if test x$gcc_cv_as != x; then
29339 $as_echo "$conftest_s" > conftest.s
29340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29342 (eval $ac_try) 2>&5
29343 ac_status=$?
29344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29345 test $ac_status = 0; }; }
29346 then
29347 gcc_cv_as_dwarf2_debug_view=yes
29348 else
29349 echo "configure: failed program was" >&5
29350 cat conftest.s >&5
29352 rm -f conftest.o conftest.s
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29356 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29357 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29359 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29367 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29368 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29369 $as_echo_n "(cached) " >&6
29370 else
29371 gcc_cv_as_gdwarf2_flag=no
29372 if test x$gcc_cv_as != x; then
29373 $as_echo "$insn" > conftest.s
29374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29379 test $ac_status = 0; }; }
29380 then
29381 gcc_cv_as_gdwarf2_flag=yes
29382 else
29383 echo "configure: failed program was" >&5
29384 cat conftest.s >&5
29386 rm -f conftest.o conftest.s
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29390 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29391 if test $gcc_cv_as_gdwarf2_flag = yes; then
29393 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29399 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29400 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29401 $as_echo_n "(cached) " >&6
29402 else
29403 gcc_cv_as_gdwarf_5_flag=no
29404 if test x$gcc_cv_as != x; then
29405 $as_echo "$insn" > conftest.s
29406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29411 test $ac_status = 0; }; }
29412 then
29413 if test x$gcc_cv_objdump != x \
29414 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29415 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29416 gcc_cv_as_gdwarf_5_flag=yes;
29418 else
29419 echo "configure: failed program was" >&5
29420 cat conftest.s >&5
29422 rm -f conftest.o conftest.s
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29426 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29427 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29429 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29434 case $target_os in
29435 win32 | pe | cygwin* | mingw32*)
29436 section_flags=\"dr\"
29437 function_type=".def foo; .scl 2; .type 32; .endef"
29438 function_size="";;
29440 section_flags=\"\",%progbits
29441 function_type=".type foo, %function"
29442 function_size=".size foo, .-foo";;
29443 esac
29444 dwarf4_debug_info_size=0x46
29445 dwarf4_high_pc_form=7
29446 dwarf4_debug_aranges_size=0x2c
29447 dwarf4_line_sz=9
29448 for dwarf4_addr_size in 8 4; do
29449 conftest_s="\
29450 .file \"a.c\"
29451 .text
29452 .Ltext0:
29453 .p2align 4
29454 .globl foo
29455 $function_type
29456 foo:
29457 .LFB0:
29458 .LM1:
29459 $insn
29460 .LM2:
29461 .LFE0:
29462 $function_size
29463 .Letext0:
29464 .section .debug_info,$section_flags
29465 .Ldebug_info0:
29466 .4byte $dwarf4_debug_info_size
29467 .2byte 0x4
29468 .4byte .Ldebug_abbrev0
29469 .byte 0x$dwarf4_addr_size
29470 .byte 0x1
29471 .ascii \"GNU C17\\0\"
29472 .byte 0xc
29473 .ascii \"a.c\\0\"
29474 .ascii \"/\\0\"
29475 .${dwarf4_addr_size}byte .Ltext0
29476 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29477 .4byte .Ldebug_line0
29478 .byte 0x2
29479 .ascii \"foo\\0\"
29480 .byte 0x1
29481 .byte 0x2
29482 .byte 0x1
29483 .${dwarf4_addr_size}byte .LFB0
29484 .${dwarf4_addr_size}byte .LFE0-.LFB0
29485 .byte 0x1
29486 .byte 0x9c
29487 .byte 0
29488 .section .debug_abbrev,$section_flags
29489 .Ldebug_abbrev0:
29490 .byte 0x1
29491 .byte 0x11
29492 .byte 0x1
29493 .byte 0x25
29494 .byte 0x8
29495 .byte 0x13
29496 .byte 0xb
29497 .byte 0x3
29498 .byte 0x8
29499 .byte 0x1b
29500 .byte 0x8
29501 .byte 0x11
29502 .byte 0x1
29503 .byte 0x12
29504 .byte 0x$dwarf4_high_pc_form
29505 .byte 0x10
29506 .byte 0x17
29507 .byte 0
29508 .byte 0
29509 .byte 0x2
29510 .byte 0x2e
29511 .byte 0
29512 .byte 0x3f
29513 .byte 0x19
29514 .byte 0x3
29515 .byte 0x8
29516 .byte 0x3a
29517 .byte 0xb
29518 .byte 0x3b
29519 .byte 0xb
29520 .byte 0x39
29521 .byte 0xb
29522 .byte 0x11
29523 .byte 0x1
29524 .byte 0x12
29525 .byte 0x$dwarf4_high_pc_form
29526 .byte 0x40
29527 .byte 0x18
29528 .byte 0
29529 .byte 0
29530 .byte 0
29531 .section .debug_aranges,$section_flags
29532 .4byte $dwarf4_debug_aranges_size
29533 .2byte 0x2
29534 .4byte .Ldebug_info0
29535 .byte 0x8
29536 .byte 0
29537 .2byte 0
29538 .2byte 0
29539 .${dwarf4_addr_size}byte .Ltext0
29540 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29541 .${dwarf4_addr_size}byte 0
29542 .${dwarf4_addr_size}byte 0
29543 .section .debug_line,$section_flags
29544 .Ldebug_line0:
29545 .4byte .LELT0-.LSLT0
29546 .LSLT0:
29547 .2byte 0x4
29548 .4byte .LELTP0-.LASLTP0
29549 .LASLTP0:
29550 .byte 0x1
29551 .byte 0x1
29552 .byte 0x1
29553 .byte 0xf6
29554 .byte 0xf2
29555 .byte 0xd
29556 .byte 0
29557 .byte 0x1
29558 .byte 0x1
29559 .byte 0x1
29560 .byte 0x1
29561 .byte 0
29562 .byte 0
29563 .byte 0
29564 .byte 0x1
29565 .byte 0
29566 .byte 0
29567 .byte 0x1
29568 .byte 0
29569 .ascii \"a.c\\0\"
29570 .byte 0
29571 .byte 0
29572 .byte 0
29573 .byte 0
29574 .LELTP0:
29575 .byte 0
29576 .byte 0x$dwarf4_line_sz
29577 .byte 0x2
29578 .${dwarf4_addr_size}byte .LM1
29579 .byte 0x18
29580 .byte 0x5
29581 .byte 0x1
29582 .byte 0
29583 .byte 0x$dwarf4_line_sz
29584 .byte 0x2
29585 .${dwarf4_addr_size}byte .LM2
29586 .byte 0x1
29587 .byte 0x5
29588 .byte 0x1
29589 .byte 0
29590 .byte 0x$dwarf4_line_sz
29591 .byte 0x2
29592 .${dwarf4_addr_size}byte .Letext0
29593 .byte 0
29594 .byte 0x1
29595 .byte 0x1
29596 .LELT0:
29597 .section .debug_str,$section_flags
29598 .ident \"GCC\"
29600 dwarf4_success=no
29601 if test $dwarf4_addr_size = 4; then
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29603 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29604 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29605 $as_echo_n "(cached) " >&6
29606 else
29607 gcc_cv_as_debug_line_32_flag=no
29608 if test x$gcc_cv_as != x; then
29609 $as_echo "$conftest_s" > conftest.s
29610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29615 test $ac_status = 0; }; }
29616 then
29617 gcc_cv_as_debug_line_32_flag=yes
29618 else
29619 echo "configure: failed program was" >&5
29620 cat conftest.s >&5
29622 rm -f conftest.o conftest.s
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29626 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29627 if test $gcc_cv_as_debug_line_32_flag = yes; then
29628 dwarf4_success=yes
29631 else
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29633 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29634 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29635 $as_echo_n "(cached) " >&6
29636 else
29637 gcc_cv_as_debug_line_64_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_64_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_64_flag" >&5
29656 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29657 if test $gcc_cv_as_debug_line_64_flag = yes; then
29658 dwarf4_success=yes
29662 if test $dwarf4_success = yes; then
29663 dwarf4_success=no
29664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29665 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29666 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29667 $as_echo_n "(cached) " >&6
29668 else
29669 gcc_cv_as_dwarf_4_debug_line_flag=no
29670 if test x$gcc_cv_as != x; then
29671 $as_echo "$conftest_s" > conftest.s
29672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29674 (eval $ac_try) 2>&5
29675 ac_status=$?
29676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29677 test $ac_status = 0; }; }
29678 then
29679 gcc_cv_as_dwarf_4_debug_line_flag=yes
29680 else
29681 echo "configure: failed program was" >&5
29682 cat conftest.s >&5
29684 rm -f conftest.o conftest.s
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29688 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29689 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29690 dwarf4_success=yes
29693 break
29695 dwarf4_debug_info_size=0x36
29696 dwarf4_high_pc_form=6
29697 dwarf4_debug_aranges_size=0x1c
29698 dwarf4_line_sz=5
29699 done
29701 if test $dwarf4_success = yes; then
29702 conftest_s="\
29703 .file \"foo.c\"
29704 .text
29705 bar:
29706 #APP
29707 # 82 \"xxx.h\" 1
29708 $insn
29709 # 0 \"\" 2
29710 #NO_APP
29711 $insn
29712 foo:
29713 .file 1 \"foo.c\"
29714 $insn
29715 .file 2 \"foo.h\"
29718 dwarf4_success=no
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29720 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29721 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29722 $as_echo_n "(cached) " >&6
29723 else
29724 gcc_cv_as_dwarf_4_app_flag=no
29725 if test x$gcc_cv_as != x; then
29726 $as_echo "$conftest_s" > conftest.s
29727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29732 test $ac_status = 0; }; }
29733 then
29734 gcc_cv_as_dwarf_4_app_flag=yes
29735 else
29736 echo "configure: failed program was" >&5
29737 cat conftest.s >&5
29739 rm -f conftest.o conftest.s
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29743 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29744 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29745 dwarf4_success=yes
29750 if test $dwarf4_success = yes; then
29751 conftest_s="\
29752 .text
29753 .globl foo
29754 $function_type
29755 foo:
29756 $insn
29757 $function_size
29758 .file 1 \"foo.c\"
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29761 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29762 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29763 $as_echo_n "(cached) " >&6
29764 else
29765 gcc_cv_as_working_gdwarf_n_flag=no
29766 if test x$gcc_cv_as != x; then
29767 $as_echo "$conftest_s" > conftest.s
29768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29773 test $ac_status = 0; }; }
29774 then
29775 if test x$gcc_cv_objdump != x \
29776 && $gcc_cv_objdump -W conftest.o 2>&1 \
29777 | grep conftest.s > /dev/null 2>&1; then
29778 gcc_cv_as_working_gdwarf_n_flag=no
29779 else
29780 gcc_cv_as_working_gdwarf_n_flag=yes
29782 else
29783 echo "configure: failed program was" >&5
29784 cat conftest.s >&5
29786 rm -f conftest.o conftest.s
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29790 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29793 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29795 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29801 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29802 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29803 $as_echo_n "(cached) " >&6
29804 else
29805 gcc_cv_as_debug_prefix_map_flag=no
29806 if test x$gcc_cv_as != x; then
29807 $as_echo "$insn" > conftest.s
29808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29810 (eval $ac_try) 2>&5
29811 ac_status=$?
29812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29813 test $ac_status = 0; }; }
29814 then
29815 gcc_cv_as_debug_prefix_map_flag=yes
29816 else
29817 echo "configure: failed program was" >&5
29818 cat conftest.s >&5
29820 rm -f conftest.o conftest.s
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29824 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29825 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29827 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29834 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29835 if ${gcc_cv_as_compress_debug+:} false; then :
29836 $as_echo_n "(cached) " >&6
29837 else
29838 gcc_cv_as_compress_debug=no
29839 if test x$gcc_cv_as != x; then
29840 $as_echo '' > conftest.s
29841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29843 (eval $ac_try) 2>&5
29844 ac_status=$?
29845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29846 test $ac_status = 0; }; }
29847 then
29848 # gas compiled without zlib cannot compress debug sections and warns
29849 # about it, but still exits successfully. So check for this, too.
29850 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29851 then
29852 gcc_cv_as_compress_debug=0
29853 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29854 then
29855 gcc_cv_as_compress_debug=1
29856 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29857 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29858 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29859 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29860 then
29861 gcc_cv_as_compress_debug=2
29863 else
29864 gcc_cv_as_compress_debug=0
29866 else
29867 echo "configure: failed program was" >&5
29868 cat conftest.s >&5
29870 rm -f conftest.o conftest.s
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29874 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29878 cat >>confdefs.h <<_ACEOF
29879 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29880 _ACEOF
29883 cat >>confdefs.h <<_ACEOF
29884 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29885 _ACEOF
29888 cat >>confdefs.h <<_ACEOF
29889 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29890 _ACEOF
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29894 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29895 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29896 $as_echo_n "(cached) " >&6
29897 else
29898 gcc_cv_as_lcomm_with_alignment=no
29899 if test x$gcc_cv_as != x; then
29900 $as_echo '.lcomm bar,4,16' > conftest.s
29901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29906 test $ac_status = 0; }; }
29907 then
29908 gcc_cv_as_lcomm_with_alignment=yes
29909 else
29910 echo "configure: failed program was" >&5
29911 cat conftest.s >&5
29913 rm -f conftest.o conftest.s
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29917 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29918 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29920 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29925 if test x$with_sysroot = x && test x$host = x$target \
29926 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29927 && test "$prefix" != "NONE"; then
29929 cat >>confdefs.h <<_ACEOF
29930 #define PREFIX_INCLUDE_DIR "$prefix/include"
29931 _ACEOF
29935 # Determine the version of glibc, if any, used on the target.
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29937 $as_echo_n "checking for target glibc version... " >&6; }
29939 # Check whether --with-glibc-version was given.
29940 if test "${with_glibc_version+set}" = set; then :
29941 withval=$with_glibc_version;
29942 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29943 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29944 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29945 else
29946 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29948 else
29950 glibc_version_major=0
29951 glibc_version_minor=0
29952 if test -f $target_header_dir/features.h \
29953 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29954 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29955 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29956 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29961 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29963 cat >>confdefs.h <<_ACEOF
29964 #define TARGET_GLIBC_MAJOR $glibc_version_major
29965 _ACEOF
29968 cat >>confdefs.h <<_ACEOF
29969 #define TARGET_GLIBC_MINOR $glibc_version_minor
29970 _ACEOF
29973 # Check whether --enable-gnu-unique-object was given.
29974 if test "${enable_gnu_unique_object+set}" = set; then :
29975 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29976 yes | no) ;;
29977 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29978 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29979 esac
29980 else
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29982 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29983 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29984 $as_echo_n "(cached) " >&6
29985 else
29986 gcc_cv_as_gnu_unique_object=no
29987 if test x$gcc_cv_as != x; then
29988 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29991 (eval $ac_try) 2>&5
29992 ac_status=$?
29993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29994 test $ac_status = 0; }; }
29995 then
29996 gcc_cv_as_gnu_unique_object=yes
29997 else
29998 echo "configure: failed program was" >&5
29999 cat conftest.s >&5
30001 rm -f conftest.o conftest.s
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30005 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30006 if test $gcc_cv_as_gnu_unique_object = yes; then
30007 # We need to unquote above to to use the definition from config.gcc.
30008 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30010 if test $glibc_version_major -gt 2 \
30011 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30012 enable_gnu_unique_object=yes
30019 if test x$enable_gnu_unique_object = xyes; then
30021 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30026 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30027 if ${gcc_cv_as_line_zero+:} false; then :
30028 $as_echo_n "(cached) " >&6
30029 else
30030 gcc_cv_as_line_zero=no
30031 if test "x$gcc_cv_as" != x; then
30032 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30033 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30035 (eval $ac_try) 2>&5
30036 ac_status=$?
30037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30038 test $ac_status = 0; }; } &&
30039 test "x`cat conftest.out`" = x
30040 then
30041 gcc_cv_as_line_zero=yes
30042 else
30043 echo "configure: failed program was" >&5
30044 cat conftest.s >&5
30045 echo "configure: error output was" >&5
30046 cat conftest.out >&5
30048 rm -f conftest.o conftest.s conftest.out
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30052 $as_echo "$gcc_cv_as_line_zero" >&6; }
30053 if test "x$gcc_cv_as_line_zero" = xyes; then
30055 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30060 $as_echo_n "checking support for thin archives... " >&6; }
30061 thin_archive_support=no
30062 echo 'int main (void) { return 0; }' > conftest.c
30063 if ($AR --version | sed 1q | grep "GNU ar" \
30064 && $CC $CFLAGS -c conftest.c \
30065 && $AR rcT conftest.a conftest.o \
30066 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30067 thin_archive_support=yes
30069 rm -f conftest.c conftest.o conftest.a conftest
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30071 $as_echo "$thin_archive_support" >&6; }
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30075 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30076 gcc_cv_ld_eh_frame_hdr=no
30077 if test $in_tree_ld = yes ; then
30078 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 \
30079 && test $in_tree_ld_is_elf = yes; then
30080 gcc_cv_ld_eh_frame_hdr=yes
30082 elif test x$gcc_cv_ld != x; then
30083 if echo "$ld_ver" | grep GNU > /dev/null; then
30084 # Check if linker supports --eh-frame-hdr option
30085 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30086 gcc_cv_ld_eh_frame_hdr=yes
30088 else
30089 case "$target" in
30090 *-*-solaris2*)
30091 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30092 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30093 gcc_cv_ld_eh_frame_hdr=yes
30096 esac
30100 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30102 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30106 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30109 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30110 gcc_cv_ld_eh_frame_ciev3=no
30111 if test $in_tree_ld = yes ; then
30112 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 \
30113 && test $in_tree_ld_is_elf = yes; then
30114 gcc_cv_ld_eh_frame_ciev3=yes
30116 elif test x$gcc_cv_ld != x; then
30117 if echo "$ld_ver" | grep GNU > /dev/null; then
30118 gcc_cv_ld_eh_frame_ciev3=yes
30119 if test 0"$ld_date" -lt 20040513; then
30120 if test -n "$ld_date"; then
30121 # If there was date string, but was earlier than 2004-05-13, fail
30122 gcc_cv_ld_eh_frame_ciev3=no
30123 elif test "$ld_vers_major" -lt 2; then
30124 gcc_cv_ld_eh_frame_ciev3=no
30125 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30126 gcc_cv_ld_eh_frame_ciev3=no
30129 else
30130 case "$target" in
30131 *-*-solaris2*)
30132 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30133 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30134 gcc_cv_ld_eh_frame_ciev3=yes
30137 esac
30141 cat >>confdefs.h <<_ACEOF
30142 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30143 _ACEOF
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30146 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30149 $as_echo_n "checking linker position independent executable support... " >&6; }
30150 gcc_cv_ld_pie=no
30151 if test $in_tree_ld = yes ; then
30152 case "$target" in
30153 # Full PIE support on Solaris was only introduced in gld 2.26.
30154 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30155 *) gcc_gld_pie_min_version=15 ;;
30156 esac
30157 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 \
30158 && test $in_tree_ld_is_elf = yes; then
30159 gcc_cv_ld_pie=yes
30161 elif test x$gcc_cv_ld != x; then
30162 # Check if linker supports -pie option
30163 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30164 gcc_cv_ld_pie=yes
30165 case "$target" in
30166 *-*-solaris2*)
30167 if echo "$ld_ver" | grep GNU > /dev/null \
30168 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30169 gcc_cv_ld_pie=no
30172 esac
30173 else
30174 case "$target" in
30175 *-*-solaris2.1[1-9]*)
30176 # Solaris 11.3 added PIE support.
30177 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30178 gcc_cv_ld_pie=yes
30181 esac
30184 if test x"$gcc_cv_ld_pie" = xyes; then
30186 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30190 $as_echo "$gcc_cv_ld_pie" >&6; }
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30193 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30194 gcc_cv_ld_pie_copyreloc=no
30195 if test $gcc_cv_ld_pie = yes ; then
30196 if test $in_tree_ld = yes ; then
30197 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
30198 gcc_cv_ld_pie_copyreloc=yes
30200 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30201 # Check if linker supports -pie option with copy reloc
30202 case "$target" in
30203 i?86-*-linux* | x86_64-*-linux*)
30204 cat > conftest1.s <<EOF
30205 .globl a_glob
30206 .data
30207 .type a_glob, @object
30208 .size a_glob, 4
30209 a_glob:
30210 .long 2
30212 cat > conftest2.s <<EOF
30213 .text
30214 .globl main
30215 .type main, @function
30216 main:
30217 movl %eax, a_glob(%rip)
30218 .size main, .-main
30219 .globl ptr
30220 .section .data.rel,"aw",@progbits
30221 .type ptr, @object
30222 ptr:
30223 .quad a_glob
30225 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30226 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30227 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30228 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30229 gcc_cv_ld_pie_copyreloc=yes
30231 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30233 esac
30237 cat >>confdefs.h <<_ACEOF
30238 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30239 _ACEOF
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30242 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30245 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30246 gcc_cv_ld_eh_gc_sections=no
30247 if test $in_tree_ld = yes ; then
30248 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 \
30249 && test $in_tree_ld_is_elf = yes; then
30250 gcc_cv_ld_eh_gc_sections=yes
30252 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30253 cat > conftest.s <<EOF
30254 .section .text
30255 .globl _start
30256 .type _start, @function
30257 _start:
30258 .long foo
30259 .size _start, .-_start
30260 .section .text.foo,"ax",@progbits
30261 .type foo, @function
30262 foo:
30263 .long 0
30264 .size foo, .-foo
30265 .section .gcc_except_table.foo,"a",@progbits
30266 .L0:
30267 .long 0
30268 .section .eh_frame,"a",@progbits
30269 .long .L0
30271 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30272 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30273 | grep "gc-sections option ignored" > /dev/null; then
30274 gcc_cv_ld_eh_gc_sections=no
30275 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30276 | grep gcc_except_table > /dev/null; then
30277 gcc_cv_ld_eh_gc_sections=yes
30278 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30279 if test x$gcc_cv_as_comdat_group != xyes; then
30280 gcc_cv_ld_eh_gc_sections=no
30281 cat > conftest.s <<EOF
30282 .section .text
30283 .globl _start
30284 .type _start, @function
30285 _start:
30286 .long foo
30287 .size _start, .-_start
30288 .section .gnu.linkonce.t.foo,"ax",@progbits
30289 .type foo, @function
30290 foo:
30291 .long 0
30292 .size foo, .-foo
30293 .section .gcc_except_table.foo,"a",@progbits
30294 .L0:
30295 .long 0
30296 .section .eh_frame,"a",@progbits
30297 .long .L0
30299 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30300 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30301 | grep "gc-sections option ignored" > /dev/null; then
30302 gcc_cv_ld_eh_gc_sections=no
30303 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30304 | grep gcc_except_table > /dev/null; then
30305 gcc_cv_ld_eh_gc_sections=yes
30311 rm -f conftest.s conftest.o conftest
30313 case "$target" in
30314 hppa*-*-linux*)
30315 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30316 gcc_cv_ld_eh_gc_sections=no
30318 esac
30319 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30321 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30325 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30328 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30329 gcc_cv_ld_eh_gc_sections_bug=no
30330 if test $in_tree_ld = yes ; then
30331 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 \
30332 && test $in_tree_ld_is_elf = yes; then
30333 gcc_cv_ld_eh_gc_sections_bug=yes
30335 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
30336 gcc_cv_ld_eh_gc_sections_bug=yes
30337 cat > conftest.s <<EOF
30338 .section .text
30339 .globl _start
30340 .type _start, @function
30341 _start:
30342 .long foo
30343 .size _start, .-_start
30344 .section .text.startup.foo,"ax",@progbits
30345 .type foo, @function
30346 foo:
30347 .long 0
30348 .size foo, .-foo
30349 .section .gcc_except_table.foo,"a",@progbits
30350 .L0:
30351 .long 0
30352 .section .eh_frame,"a",@progbits
30353 .long .L0
30355 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30356 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30357 | grep "gc-sections option ignored" > /dev/null; then
30359 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30360 | grep gcc_except_table > /dev/null; then
30361 gcc_cv_ld_eh_gc_sections_bug=no
30364 rm -f conftest.s conftest.o conftest
30366 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30368 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30372 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30375 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30376 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30377 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30378 gcc_cv_ld_compress_debug=1
30379 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30380 # Detect zstd debug section compression support
30381 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30382 gcc_cv_ld_compress_debug=2
30384 else
30385 case "${target}" in
30386 *-*-solaris2*)
30387 # Introduced in Solaris 11.2.
30388 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30389 gcc_cv_ld_compress_debug=1
30390 gcc_cv_ld_compress_debug_option="-z compress-sections"
30391 else
30392 gcc_cv_ld_compress_debug=0
30396 # Assume linkers other than GNU ld don't support compessed debug
30397 # sections.
30398 gcc_cv_ld_compress_debug=0
30400 esac
30403 cat >>confdefs.h <<_ACEOF
30404 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30405 _ACEOF
30408 cat >>confdefs.h <<_ACEOF
30409 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30410 _ACEOF
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30413 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30415 if test x"$ld64_flag" = x"yes"; then
30417 # Set defaults for possibly untestable items.
30418 gcc_cv_ld64_export_dynamic=0
30419 gcc_cv_ld64_platform_version=0
30421 if test "$build" = "$host"; then
30422 darwin_try_test=1
30423 else
30424 darwin_try_test=0
30427 # On Darwin, because of FAT library support, it is often possible to execute
30428 # exes from compatible archs even when the host differs from the build system.
30429 case "$build","$host" in
30430 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30431 darwin_try_test=1;;
30432 *) ;;
30433 esac
30435 # If the configurer specified a minimum ld64 version to be supported, then use
30436 # that to determine feature support.
30437 if test x"${gcc_cv_ld64_version}" != x; then
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30439 $as_echo_n "checking ld64 specified version... " >&6; }
30440 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30442 $as_echo "$gcc_cv_ld64_major" >&6; }
30443 if test "$gcc_cv_ld64_major" -ge 236; then
30444 gcc_cv_ld64_export_dynamic=1
30446 if test "$gcc_cv_ld64_major" -ge 512; then
30447 gcc_cv_ld64_platform_version=1
30449 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30450 # If the version was not specified, try to find it.
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30452 $as_echo_n "checking linker version... " >&6; }
30453 if test x"${gcc_cv_ld64_version}" = x; then
30454 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30457 $as_echo "$gcc_cv_ld64_version" >&6; }
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30460 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30461 gcc_cv_ld64_export_dynamic=1
30462 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30463 gcc_cv_ld64_export_dynamic=0
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30466 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30469 $as_echo_n "checking linker for -platform_version support... " >&6; }
30470 gcc_cv_ld64_platform_version=1
30471 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30472 gcc_cv_ld64_platform_version=0
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30475 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30478 if test x"${gcc_cv_ld64_version}" != x; then
30480 cat >>confdefs.h <<_ACEOF
30481 #define LD64_VERSION "${gcc_cv_ld64_version}"
30482 _ACEOF
30487 cat >>confdefs.h <<_ACEOF
30488 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30489 _ACEOF
30493 cat >>confdefs.h <<_ACEOF
30494 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30495 _ACEOF
30499 if test x"$dsymutil_flag" = x"yes"; then
30501 # If the user specified a dsymutil path, then we will already have the
30502 # version string, otherwise, pick it up.
30503 if test x"$gcc_cv_dsymutil" = x; then
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30505 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30506 dsymutil_vers="tool unspecified"
30507 elif test x"$dsymutil_vers" = x; then
30508 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30511 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30513 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30514 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30515 dsymutil_kind=DWARFUTILS
30516 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30517 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30518 dsymutil_kind=CLANG
30519 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30520 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30521 dsymutil_kind=LLVM
30522 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30523 else
30524 dsymutil_kind=UNKNOWN
30525 dsymutil_vers="0.0"
30527 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30528 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30529 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30530 if test x"${dsymutil_minor}" = x; then
30531 dsymutil_minor=0
30533 if test x"${dsymutil_tiny}" = x; then
30534 dsymutil_tiny=0
30537 cat >>confdefs.h <<_ACEOF
30538 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30539 _ACEOF
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30542 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30545 case $target_os in
30546 win32 | pe | cygwin* | mingw32*)
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30548 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30549 gcc_cv_ld_broken_pe_dwarf5=yes
30550 if test $in_tree_ld = yes ; then
30551 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30552 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30553 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30554 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30555 gcc_cv_ld_broken_pe_dwarf5=no
30557 else
30558 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30559 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30560 gcc_cv_ld_broken_pe_dwarf5=no
30563 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30565 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30569 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30572 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30573 gcc_cv_ld_disable_dynamicbase=no
30574 if test $in_tree_ld = yes; then
30575 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 \
30576 gcc_cv_ld_disable_dynamicbase=yes
30578 else
30579 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30580 gcc_cv_ld_disable_dynamicbase=yes
30583 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30585 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30589 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30591 esac
30593 # --------
30594 # UNSORTED
30595 # --------
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30598 $as_echo_n "checking linker --as-needed support... " >&6; }
30599 if ${gcc_cv_ld_as_needed+:} false; then :
30600 $as_echo_n "(cached) " >&6
30601 else
30602 gcc_cv_ld_as_needed=no
30603 gcc_cv_ld_as_needed_option='--as-needed'
30604 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30605 if test $in_tree_ld = yes ; then
30606 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 \
30607 && test $in_tree_ld_is_elf = yes; then
30608 gcc_cv_ld_as_needed=yes
30609 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30610 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30611 gcc_cv_ld_no_as_needed_option='--pop-state'
30614 elif test x$gcc_cv_ld != x; then
30615 # Check if linker supports --as-needed and --no-as-needed options
30616 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30617 gcc_cv_ld_as_needed=yes
30618 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30619 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30620 && echo "$ld_ver" | grep GNU > /dev/null \
30621 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30622 # Use these options only when both ld.bfd and ld.gold support
30623 # --push-state/--pop-state, which unfortunately wasn't added
30624 # at the same time.
30625 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30626 gcc_cv_ld_no_as_needed_option='--pop-state'
30629 case "$target:$gnu_ld" in
30630 *-*-solaris2*:no)
30631 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30632 # forms.
30633 gcc_cv_ld_as_needed=yes
30634 gcc_cv_ld_as_needed_option="-z ignore"
30635 gcc_cv_ld_no_as_needed_option="-z record"
30637 esac
30639 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30640 # dl_iterate_phdr, i.e. since Solaris 11.
30641 case "$target" in
30642 *-*-solaris2.1[1-9]*)
30643 case "$target" in
30644 i?86-*-* | x86_64-*-*)
30645 if echo "$ld_ver" | grep GNU > /dev/null; then
30646 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30647 gcc_cv_ld_as_needed=no
30650 esac
30652 *-*-solaris2*)
30653 gcc_cv_ld_as_needed=no
30655 esac
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30659 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30660 if test x"$gcc_cv_ld_as_needed" = xyes; then
30662 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30665 cat >>confdefs.h <<_ACEOF
30666 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30667 _ACEOF
30670 cat >>confdefs.h <<_ACEOF
30671 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30672 _ACEOF
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30677 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30678 saved_LDFLAGS="$LDFLAGS"
30679 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30680 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30682 /* end confdefs.h. */
30683 int main(void) {return 0;}
30684 _ACEOF
30685 if ac_fn_cxx_try_link "$LINENO"; then :
30686 gcc_cv_ld_clearcap=yes; break
30687 else
30688 gcc_cv_ld_clearcap=no
30690 rm -f core conftest.err conftest.$ac_objext \
30691 conftest$ac_exeext conftest.$ac_ext
30692 done
30693 LDFLAGS="$saved_LDFLAGS"
30694 if test "x$gcc_cv_ld_clearcap" = xyes; then
30696 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30698 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30702 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30704 case "$target" in
30705 powerpc*-*-*)
30706 case "$target" in
30707 *le-*-linux*)
30708 emul_name="-melf32lppc"
30711 emul_name="-melf32ppc"
30713 esac
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30715 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30716 if ${gcc_cv_ld_ppc_attr+:} false; then :
30717 $as_echo_n "(cached) " >&6
30718 else
30719 gcc_cv_ld_ppc_attr=no
30720 if test x"$ld_is_gold" = xyes; then
30721 gcc_cv_ld_ppc_attr=yes
30722 elif test $in_tree_ld = yes ; then
30723 if test "$gcc_cv_gld_major_version" -eq 2 \
30724 -a "$gcc_cv_gld_minor_version" -ge 28 \
30725 -o "$gcc_cv_gld_major_version" -gt 2; then
30726 gcc_cv_ld_ppc_attr=yes
30728 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30729 # check that merging the long double .gnu_attribute doesn't warn
30730 cat > conftest1.s <<EOF
30731 .gnu_attribute 4,1
30733 cat > conftest2.s <<EOF
30734 .gnu_attribute 4,9
30736 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30737 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30738 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30739 && test ! -s conftest.err; then
30740 gcc_cv_ld_ppc_attr=yes
30742 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30747 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30748 if test x$gcc_cv_ld_ppc_attr = xyes; then
30750 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30754 esac
30756 case "$target:$tm_file" in
30757 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30758 case "$target" in
30759 *le-*-linux*)
30760 emul_name="-melf64lppc"
30762 *-*-linux*)
30763 emul_name="-melf64ppc"
30765 *le-*-freebsd*)
30766 emul_name="-melf64lppc_fbsd"
30768 *-*-freebsd*)
30769 emul_name="-melf64ppc_fbsd"
30771 esac
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30773 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30774 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30775 $as_echo_n "(cached) " >&6
30776 else
30777 gcc_cv_ld_no_dot_syms=no
30778 if test x"$ld_is_gold" = xyes; then
30779 gcc_cv_ld_no_dot_syms=yes
30780 elif test $in_tree_ld = yes ; then
30781 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
30782 gcc_cv_ld_no_dot_syms=yes
30784 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30785 cat > conftest1.s <<EOF
30786 .text
30787 bl .foo
30789 cat > conftest2.s <<EOF
30790 .section ".opd","aw"
30791 .align 3
30792 .globl foo
30793 .type foo,@function
30794 foo:
30795 .quad .LEfoo,.TOC.@tocbase,0
30796 .text
30797 .LEfoo:
30799 .size foo,.-.LEfoo
30801 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30802 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30803 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30804 gcc_cv_ld_no_dot_syms=yes
30806 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30811 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30812 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30814 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30819 $as_echo_n "checking linker large toc support... " >&6; }
30820 if ${gcc_cv_ld_large_toc+:} false; then :
30821 $as_echo_n "(cached) " >&6
30822 else
30823 gcc_cv_ld_large_toc=no
30824 if test x"$ld_is_gold" = xyes; then
30825 gcc_cv_ld_large_toc=yes
30826 elif test $in_tree_ld = yes ; then
30827 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
30828 gcc_cv_ld_large_toc=yes
30830 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30831 cat > conftest.s <<EOF
30832 .section ".tbss","awT",@nobits
30833 .align 3
30834 ie0: .space 8
30835 .global _start
30836 .text
30837 _start:
30838 addis 9,13,ie0@got@tprel@ha
30839 ld 9,ie0@got@tprel@l(9)
30841 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30842 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30843 gcc_cv_ld_large_toc=yes
30845 rm -f conftest conftest.o conftest.s
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30850 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30851 if test x"$gcc_cv_ld_large_toc" = xyes; then
30853 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30858 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30859 if ${gcc_cv_ld_toc_align+:} false; then :
30860 $as_echo_n "(cached) " >&6
30861 else
30862 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30863 cat > conftest.s <<EOF
30864 .global _start
30865 .text
30866 _start:
30867 addis 9,2,x@got@ha
30868 .section .data.rel.ro,"aw",@progbits
30869 .p2align 16
30870 .space 32768
30871 x: .quad .TOC.
30873 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30874 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30875 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)) }'`
30877 rm -f conftest conftest.o conftest.s
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30882 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30883 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30885 cat >>confdefs.h <<_ACEOF
30886 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30887 _ACEOF
30891 esac
30893 case "$target" in
30894 *-*-aix*)
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30896 $as_echo_n "checking linker large toc support... " >&6; }
30897 if ${gcc_cv_ld_large_toc+:} false; then :
30898 $as_echo_n "(cached) " >&6
30899 else
30900 gcc_cv_ld_large_toc=no
30901 if test x$gcc_cv_as != x ; then
30902 cat > conftest.s <<EOF
30903 .toc
30904 LC..1:
30905 .tc a[TC],a[RW]
30906 .extern a[RW]
30907 .csect .text[PR]
30908 .largetoctest:
30909 addis 9,LC..1@u(2)
30910 ld 3,LC..1@l(9)
30912 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30913 gcc_cv_ld_large_toc=yes
30915 rm -f conftest conftest.o conftest.s
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30920 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30921 if test x"$gcc_cv_ld_large_toc" = xyes; then
30923 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30927 esac
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30930 $as_echo_n "checking linker --build-id support... " >&6; }
30931 if ${gcc_cv_ld_buildid+:} false; then :
30932 $as_echo_n "(cached) " >&6
30933 else
30934 gcc_cv_ld_buildid=no
30935 if test $in_tree_ld = yes ; then
30936 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30937 "$gcc_cv_gld_minor_version" -ge 18 -o \
30938 "$gcc_cv_gld_major_version" -gt 2 \
30939 && test $in_tree_ld_is_elf = yes; then
30940 gcc_cv_ld_buildid=yes
30942 elif test x$gcc_cv_ld != x; then
30943 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30944 gcc_cv_ld_buildid=yes
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30949 $as_echo "$gcc_cv_ld_buildid" >&6; }
30950 if test x"$gcc_cv_ld_buildid" = xyes; then
30952 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30956 # Check whether --enable-linker-build-id was given.
30957 if test "${enable_linker_build_id+set}" = set; then :
30958 enableval=$enable_linker_build_id;
30959 else
30960 enable_linker_build_id=no
30964 if test x"$enable_linker_build_id" = xyes; then
30965 if test x"$gcc_cv_ld_buildid" = xyes; then
30967 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30969 else
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30971 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30975 # In binutils 2.21, GNU ld gained support for new emulations fully
30976 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30978 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30979 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30980 $as_echo_n "(cached) " >&6
30981 else
30982 gcc_cv_ld_sol2_emulation=no
30983 if test $in_tree_ld = yes ; then
30984 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30985 "$gcc_cv_gld_minor_version" -ge 21 -o \
30986 "$gcc_cv_gld_major_version" -gt 2 \
30987 && test $in_tree_ld_is_elf = yes; then
30988 gcc_cv_ld_sol2_emulation=yes
30990 elif test x$gcc_cv_ld != x; then
30991 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30992 grep _sol2 > /dev/null; then
30993 gcc_cv_ld_sol2_emulation=yes
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30998 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30999 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31001 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31006 $as_echo_n "checking linker --sysroot support... " >&6; }
31007 if ${gcc_cv_ld_sysroot+:} false; then :
31008 $as_echo_n "(cached) " >&6
31009 else
31010 gcc_cv_ld_sysroot=no
31011 if test $in_tree_ld = yes ; then
31012 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
31013 gcc_cv_ld_sysroot=yes
31015 elif test x$gcc_cv_ld != x; then
31016 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31017 gcc_cv_ld_sysroot=yes
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31022 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31023 if test x"$gcc_cv_ld_sysroot" = xyes; then
31025 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31029 case $target in
31030 *-*-solaris2*)
31031 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31033 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31034 if ${gcc_cv_solaris_crts+:} false; then :
31035 $as_echo_n "(cached) " >&6
31036 else
31037 gcc_cv_solaris_crts=no
31038 if test x$host != x$target; then
31039 if test "x$with_sysroot" = xyes; then
31040 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31041 else
31042 target_sysroot="${with_sysroot}"
31045 target_libdir="$target_sysroot/usr/lib"
31046 # At the time they were added, gcrt1.o became a symlink for backwards
31047 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31048 case $target in
31049 i?86-*-solaris2* | x86_64-*-solaris2*)
31050 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31052 sparc*-*-solaris2*)
31053 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31055 esac
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31058 $as_echo "$gcc_cv_solaris_crts" >&6; }
31060 esac
31061 if test x$gcc_cv_solaris_crts = xyes; then
31063 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31067 # Check whether --enable-libssp was given.
31068 if test "${enable_libssp+set}" = set; then :
31069 enableval=$enable_libssp; case "${enableval}" in
31070 yes|no)
31073 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31075 esac
31079 # Test for stack protector support in target C library.
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31081 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31082 if ${gcc_cv_libc_provides_ssp+:} false; then :
31083 $as_echo_n "(cached) " >&6
31084 else
31085 gcc_cv_libc_provides_ssp=no
31086 if test "x$enable_libssp" = "xno"; then
31087 gcc_cv_libc_provides_ssp=yes
31088 elif test "x$enable_libssp" = "xyes"; then
31089 gcc_cv_libc_provides_ssp=no
31090 else
31091 case "$target" in
31092 *-*-musl*)
31093 # All versions of musl provide stack protector
31094 gcc_cv_libc_provides_ssp=yes;;
31095 *-*-linux* | *-*-kfreebsd*-gnu)
31096 # glibc 2.4 and later provides __stack_chk_fail and
31097 # either __stack_chk_guard, or TLS access to stack guard canary.
31099 if test $glibc_version_major -gt 2 \
31100 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31101 gcc_cv_libc_provides_ssp=yes
31102 else
31104 if test -f $target_header_dir/features.h \
31105 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31106 $target_header_dir/features.h > /dev/null; then
31107 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31108 $target_header_dir/features.h > /dev/null && \
31109 test -f $target_header_dir/bits/uClibc_config.h && \
31110 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31111 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31112 gcc_cv_libc_provides_ssp=yes
31114 # all versions of Bionic support stack protector
31115 elif test -f $target_header_dir/sys/cdefs.h \
31116 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31117 $target_header_dir/sys/cdefs.h > /dev/null; then
31118 gcc_cv_libc_provides_ssp=yes
31122 *-*-gnu*)
31123 # Avoid complicated tests (see
31124 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31125 # simply assert that glibc does provide this, which is true for all
31126 # realistically usable GNU/Hurd configurations.
31127 # All supported versions of musl provide it as well
31128 gcc_cv_libc_provides_ssp=yes;;
31129 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31130 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31131 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31132 gcc_cv_libc_provides_ssp=yes
31133 else
31134 echo "no __stack_chk_fail on this target"
31138 *) gcc_cv_libc_provides_ssp=no ;;
31139 esac
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31143 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31145 if test x$gcc_cv_libc_provides_ssp = xyes; then
31147 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31151 # Check whether --enable-default-ssp was given.
31152 # Check whether --enable-default-ssp was given.
31153 if test "${enable_default_ssp+set}" = set; then :
31154 enableval=$enable_default_ssp;
31155 if test x$gcc_cv_libc_provides_ssp = xyes; then
31156 case "$target" in
31157 ia64*-*-*) enable_default_ssp=no ;;
31158 *) enable_default_ssp=$enableval ;;
31159 esac
31160 else
31161 enable_default_ssp=no
31163 else
31164 enable_default_ssp=no
31167 if test x$enable_default_ssp = xyes ; then
31169 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31174 # Test for <sys/sdt.h> on the target.
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31177 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31178 if ${gcc_cv_sys_sdt_h+:} false; then :
31179 $as_echo_n "(cached) " >&6
31180 else
31182 gcc_cv_sys_sdt_h=no
31183 if test -f $target_header_dir/sys/sdt.h; then
31184 gcc_cv_sys_sdt_h=yes
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31189 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31190 if test x$gcc_cv_sys_sdt_h = xyes; then :
31193 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31198 # Check if TFmode long double should be used by default or not.
31199 # Some glibc targets used DFmode long double, but with glibc 2.4
31200 # and later they can use TFmode.
31201 case "$target" in
31202 powerpc*-*-linux* | \
31203 sparc*-*-linux* | \
31204 s390*-*-linux* | \
31205 alpha*-*-linux*)
31207 # Check whether --with-long-double-128 was given.
31208 if test "${with_long_double_128+set}" = set; then :
31209 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31210 else
31212 case "$target" in
31213 s390*-*-linux-musl*)
31214 gcc_cv_target_ldbl128=yes
31216 powerpc*-*-linux-musl*)
31217 gcc_cv_target_ldbl128=no
31221 if test $glibc_version_major -gt 2 \
31222 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31223 gcc_cv_target_ldbl128=yes
31224 else
31226 gcc_cv_target_ldbl128=no
31227 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31228 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31229 && gcc_cv_target_ldbl128=yes
31234 esac
31239 esac
31240 if test x$gcc_cv_target_ldbl128 = xyes; then
31242 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31246 # Check if TFmode long double target should use the IBM extended double or IEEE
31247 # 128-bit floating point formats if long doubles are 128-bits long. The long
31248 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31249 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31250 # libgcc.
31252 # Check whether --with-long-double-format was given.
31253 if test "${with_long_double_format+set}" = set; then :
31254 withval=$with_long_double_format;
31255 case "$target:$with_long_double_format" in
31256 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31259 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31260 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31261 case "$with_cpu" in
31262 power7 | power8 | power9 | power1*)
31266 as_fn_error $? "Configuration option --with-long-double-format is only \
31267 supported if the default cpu is power7 or newer" "$LINENO" 5
31268 with_long_double_format=""
31270 esac
31272 powerpc64*-*-linux*:*)
31273 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31274 with_long_double_format=""
31277 as_fn_error $? "Configure option --with-long-double-format is only supported \
31278 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31279 with_long_double_format=""
31281 esac
31285 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31286 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31287 gcc_cv_libc_provides_hwcap_in_tcb=no
31288 case "$target" in
31289 powerpc*-*-linux*)
31291 if test $glibc_version_major -gt 2 \
31292 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31293 gcc_cv_libc_provides_hwcap_in_tcb=yes
31296 esac
31297 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31299 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31303 # Check if the target LIBC handles PT_GNU_STACK.
31304 gcc_cv_libc_gnustack=unknown
31305 case "$target" in
31306 mips*-*-linux-musl*)
31307 gcc_cv_libc_gnustack=yes
31309 mips*-*-linux*)
31311 if test $glibc_version_major -gt 2 \
31312 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31313 gcc_cv_libc_gnustack=yes
31316 esac
31317 if test x$gcc_cv_libc_gnustack = xyes; then
31319 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31324 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31325 gcc_cv_target_dl_iterate_phdr=unknown
31326 case "$target" in
31327 *-*-solaris2*)
31328 # <link.h> needs both a dl_iterate_phdr declaration and support for
31329 # compilation with largefile support.
31330 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31331 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31332 gcc_cv_target_dl_iterate_phdr=yes
31333 else
31334 gcc_cv_target_dl_iterate_phdr=no
31337 *-*-dragonfly* | *-*-freebsd*)
31338 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31339 gcc_cv_target_dl_iterate_phdr=yes
31340 else
31341 gcc_cv_target_dl_iterate_phdr=no
31344 *-linux-musl*)
31345 gcc_cv_target_dl_iterate_phdr=yes
31347 esac
31349 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31351 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31355 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31357 # We no longer support different GC mechanisms. Emit an error if
31358 # the user configures with --with-gc.
31360 # Check whether --with-gc was given.
31361 if test "${with_gc+set}" = set; then :
31362 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31366 # Libraries to use on the host. This will normally be set by the top
31367 # level Makefile. Here we simply capture the value for our Makefile.
31368 if test -z "${HOST_LIBS+set}"; then
31369 HOST_LIBS=
31373 # Use the system's zlib library.
31375 # Use the system's zlib library.
31376 zlibdir="-L\$(top_builddir)/../zlib"
31377 zlibinc="-I\$(top_srcdir)/../zlib"
31379 # Check whether --with-system-zlib was given.
31380 if test "${with_system_zlib+set}" = set; then :
31381 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31382 zlibdir=
31383 zlibinc=
31393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31394 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31395 # Check whether --enable-maintainer-mode was given.
31396 if test "${enable_maintainer_mode+set}" = set; then :
31397 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31398 else
31399 maintainer_mode=no
31403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31404 $as_echo "$maintainer_mode" >&6; }
31406 if test "$maintainer_mode" = "yes"; then
31407 MAINT=''
31408 else
31409 MAINT='#'
31412 if test -z "$CTAGS"; then
31413 CTAGS=ctags
31416 if test -z "$ETAGS"; then
31417 ETAGS=etags
31420 if test -z "$CSCOPE"; then
31421 CSCOPE=cscope
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31427 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31428 # Check whether --enable-link-mutex was given.
31429 if test "${enable_link_mutex+set}" = set; then :
31430 enableval=$enable_link_mutex; do_link_mutex=$enableval
31431 else
31432 do_link_mutex=no
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31436 $as_echo "$do_link_mutex" >&6; }
31438 if test "$do_link_mutex" = "yes"; then
31439 DO_LINK_MUTEX=true
31440 else
31441 DO_LINK_MUTEX=false
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31447 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31448 # Check whether --enable-link-serialization was given.
31449 if test "${enable_link_serialization+set}" = set; then :
31450 enableval=$enable_link_serialization; do_link_serialization=$enableval
31451 else
31452 do_link_serialization=no
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31456 $as_echo "$do_link_serialization" >&6; }
31458 case "$do_link_serialization" in
31459 yes)
31460 DO_LINK_SERIALIZATION=1;;
31461 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31462 DO_LINK_SERIALIZATION=$do_link_serialization;;
31464 DO_LINK_SERIALIZATION=;;
31466 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31467 esac
31470 # --------------
31471 # Language hooks
31472 # --------------
31474 # Make empty files to contain the specs and options for each language.
31475 # Then add #include lines to for a compiler that has specs and/or options.
31477 subdirs=
31478 lang_opt_files=
31479 lang_specs_files=
31480 lang_tree_files=
31481 # These (without "all_") are set in each config-lang.in.
31482 # `language' must be a single word so is spelled singularly.
31483 all_languages=
31484 all_compilers=
31485 all_outputs='Makefile'
31486 # List of language configure and makefile fragments.
31487 all_lang_configurefrags=
31488 all_lang_makefrags=
31489 # Additional files for gengtype
31490 all_gtfiles="$target_gtfiles"
31492 # These are the languages that are set in --enable-languages,
31493 # and are available in the GCC tree.
31494 all_selected_languages=
31496 # Add the language fragments.
31497 # Languages are added via two mechanisms. Some information must be
31498 # recorded in makefile variables, these are defined in config-lang.in.
31499 # We accumulate them and plug them into the main Makefile.
31500 # The other mechanism is a set of hooks for each of the main targets
31501 # like `clean', `install', etc.
31503 language_hooks="Make-hooks"
31505 for lang in ${srcdir}/*/config-lang.in
31507 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31509 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31510 if test "x$lang_alias" = x
31511 then
31512 echo "$lang doesn't set \$language." 1>&2
31513 exit 1
31515 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31516 subdirs="$subdirs $subdir"
31518 # $gcc_subdir is where the gcc integration files are to be found
31519 # for a language, both for internal compiler purposes (compiler
31520 # sources implementing front-end to GCC tree converters), and for
31521 # build infrastructure purposes (Make-lang.in, etc.)
31523 # This will be <subdir> (relative to $srcdir) if a line like
31524 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31525 # is found in <langdir>/config-lang.in, and will remain <langdir>
31526 # otherwise.
31528 # Except for the language alias (fetched above), the regular
31529 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31530 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31531 # only this and the language alias.
31533 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31534 if [ "$gcc_subdir" = "" ]; then
31535 gcc_subdir="$subdir"
31538 case ",$enable_languages," in
31539 *,$lang_alias,*)
31540 all_selected_languages="$all_selected_languages $lang_alias"
31541 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31542 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31545 esac
31547 language=
31548 boot_language=
31549 compilers=
31550 outputs=
31551 gtfiles=
31552 subdir_requires=
31553 . ${srcdir}/$gcc_subdir/config-lang.in
31554 if test "x$language" = x
31555 then
31556 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31557 exit 1
31560 ok=:
31561 case ",$enable_languages," in
31562 *,$lang_alias,*) ;;
31564 for i in $subdir_requires; do
31565 test -f "${srcdir}/$i/config-lang.in" && continue
31566 ok=false
31567 break
31568 done
31570 esac
31571 $ok || continue
31573 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31574 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31575 # Put c/Make-lang.in fragment first to match serialization languages order.
31576 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31577 else
31578 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31580 if test -f $srcdir/$gcc_subdir/lang.opt; then
31581 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31582 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31584 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31585 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31587 all_languages="$all_languages $language"
31588 all_compilers="$all_compilers $compilers"
31589 all_outputs="$all_outputs $outputs"
31590 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31591 case ",$enable_languages," in
31592 *,lto,*)
31594 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31596 enable_lto=yes
31599 *) ;;
31600 esac
31601 done
31603 check_languages=
31604 for language in $all_selected_languages
31606 check_languages="$check_languages check-$language"
31607 done
31609 selftest_languages=
31610 for language in $all_selected_languages
31612 selftest_languages="$selftest_languages selftest-$language"
31613 done
31615 # We link each language in with a set of hooks, reached indirectly via
31616 # lang.${target}. Only do so for selected languages.
31618 rm -f Make-hooks
31619 touch Make-hooks
31620 target_list="all.cross start.encap rest.encap tags \
31621 install-common install-man install-info install-dvi install-pdf \
31622 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31623 mostlyclean clean distclean maintainer-clean install-plugin"
31625 for t in $target_list
31628 for lang in $all_selected_languages
31630 x="$x $lang.$t"
31631 done
31632 echo "lang.$t: $x" >> Make-hooks
31633 done
31635 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31636 echo "SERIAL_LIST =" >> Make-hooks
31637 echo else >> Make-hooks
31638 lang_cnt=0
31639 lang_list=
31640 prev=c
31641 serialization_languages=c
31642 for lang in $all_selected_languages
31644 test $lang = c && continue
31645 if test $lang = lto; then
31646 serialization_languages="$serialization_languages lto1 lto2"
31647 else
31648 serialization_languages="$serialization_languages $lang"
31650 done
31651 for lang in $serialization_languages
31653 test $lang = c && continue
31654 lang_cnt=`expr $lang_cnt + 1`
31655 lang_list=" $prev$lang_list"
31656 prev=${lang}
31657 done
31658 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31659 echo endif >> Make-hooks
31660 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31661 echo "INDEX.c = 0" >> Make-hooks
31662 lang_idx=1
31663 for lang in $serialization_languages
31665 test $lang = c && continue
31666 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31667 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31668 lang_cnt=`expr $lang_cnt - 1`
31669 lang_idx=`expr $lang_idx + 1`
31670 done
31672 # --------
31673 # Option include files
31674 # --------
31676 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31677 option_includes="option-includes.mk"
31680 # --------
31681 # UNSORTED
31682 # --------
31684 # Create .gdbinit.
31686 echo "dir ." > .gdbinit
31687 echo "dir ${srcdir}" >> .gdbinit
31688 if test x$gdb_needs_out_file_path = xyes
31689 then
31690 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31692 if test "x$subdirs" != x; then
31693 for s in $subdirs
31695 echo "dir ${srcdir}/$s" >> .gdbinit
31696 done
31698 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31699 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31701 # Put a breakpoint on __asan_report_error to help with debugging buffer
31702 # overflow.
31703 case "$CFLAGS" in
31704 *-fsanitize=address*)
31705 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31707 esac
31709 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31713 # Find a directory in which to install a shared libgcc.
31715 # Check whether --enable-version-specific-runtime-libs was given.
31716 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31717 enableval=$enable_version_specific_runtime_libs;
31721 # Substitute configuration variables
31791 # Echo link setup.
31792 if test x${build} = x${host} ; then
31793 if test x${host} = x${target} ; then
31794 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31795 else
31796 echo "Links are now set up to build a cross-compiler" 1>&2
31797 echo " from ${host} to ${target}." 1>&2
31799 else
31800 if test x${host} = x${target} ; then
31801 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31802 echo " for ${target}." 1>&2
31803 else
31804 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31805 echo " from ${host} to ${target}." 1>&2
31814 if test "x${ISLLIBS}" != "x" ; then
31816 $as_echo "#define HAVE_isl 1" >>confdefs.h
31820 # Check for plugin support
31821 # Check whether --enable-plugin was given.
31822 if test "${enable_plugin+set}" = set; then :
31823 enableval=$enable_plugin; enable_plugin=$enableval
31824 else
31825 enable_plugin=yes; default_plugin=yes
31829 pluginlibs=
31830 plugin_check=yes
31832 case "${host}" in
31833 *-*-mingw*)
31834 # Since plugin support under MinGW is not as straightforward as on
31835 # other platforms (e.g., we have to link import library, etc), we
31836 # only enable it if explicitly requested.
31837 if test x"$default_plugin" = x"yes"; then
31838 enable_plugin=no
31839 elif test x"$enable_plugin" = x"yes"; then
31840 # Use make's target variable to derive import library name.
31841 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31842 plugin_check=no
31845 *-*-darwin*)
31846 if test x$build = x$host; then
31847 export_sym_check="nm${exeext} -g"
31848 elif test x$host = x$target; then
31849 export_sym_check="$gcc_cv_nm -g"
31850 else
31851 export_sym_check=
31855 if test x$build = x$host; then
31856 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31857 elif test x$host = x$target; then
31858 export_sym_check="$gcc_cv_objdump -T"
31859 else
31860 export_sym_check=
31863 esac
31865 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31868 $as_echo_n "checking for exported symbols... " >&6; }
31869 if test "x$export_sym_check" != x; then
31870 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31871 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31872 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31873 : # No need to use a flag
31874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31875 $as_echo "yes" >&6; }
31876 else
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31878 $as_echo "yes" >&6; }
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31880 $as_echo_n "checking for -rdynamic... " >&6; }
31881 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31882 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31883 plugin_rdynamic=yes
31884 pluginlibs="-rdynamic"
31885 else
31886 plugin_rdynamic=no
31887 enable_plugin=no
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31890 $as_echo "$plugin_rdynamic" >&6; }
31892 else
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31894 $as_echo "unable to check" >&6; }
31897 # Check -ldl
31898 saved_LIBS="$LIBS"
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31900 $as_echo_n "checking for library containing dlopen... " >&6; }
31901 if ${ac_cv_search_dlopen+:} false; then :
31902 $as_echo_n "(cached) " >&6
31903 else
31904 ac_func_search_save_LIBS=$LIBS
31905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31906 /* end confdefs.h. */
31908 /* Override any GCC internal prototype to avoid an error.
31909 Use char because int might match the return type of a GCC
31910 builtin and then its argument prototype would still apply. */
31911 #ifdef __cplusplus
31912 extern "C"
31913 #endif
31914 char dlopen ();
31916 main ()
31918 return dlopen ();
31920 return 0;
31922 _ACEOF
31923 for ac_lib in '' dl; do
31924 if test -z "$ac_lib"; then
31925 ac_res="none required"
31926 else
31927 ac_res=-l$ac_lib
31928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31930 if ac_fn_cxx_try_link "$LINENO"; then :
31931 ac_cv_search_dlopen=$ac_res
31933 rm -f core conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext
31935 if ${ac_cv_search_dlopen+:} false; then :
31936 break
31938 done
31939 if ${ac_cv_search_dlopen+:} false; then :
31941 else
31942 ac_cv_search_dlopen=no
31944 rm conftest.$ac_ext
31945 LIBS=$ac_func_search_save_LIBS
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31948 $as_echo "$ac_cv_search_dlopen" >&6; }
31949 ac_res=$ac_cv_search_dlopen
31950 if test "$ac_res" != no; then :
31951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31955 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31956 pluginlibs="$pluginlibs -ldl"
31958 LIBS="$saved_LIBS"
31960 # Check that we can build shared objects with -fPIC -shared
31961 saved_LDFLAGS="$LDFLAGS"
31962 saved_CFLAGS="$CFLAGS"
31963 saved_CXXFLAGS="$CXXFLAGS"
31964 case "${host}" in
31965 *-*-darwin*)
31966 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31967 CFLAGS="$CFLAGS -fPIC"
31968 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31969 CXXFLAGS="$CXXFLAGS -fPIC"
31970 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31973 CFLAGS="$CFLAGS -fPIC"
31974 CXXFLAGS="$CXXFLAGS -fPIC"
31975 LDFLAGS="$LDFLAGS -fPIC -shared"
31977 esac
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31979 $as_echo_n "checking for -fPIC -shared... " >&6; }
31980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31981 /* end confdefs.h. */
31982 extern int X;
31984 main ()
31986 return X == 0;
31988 return 0;
31990 _ACEOF
31991 if ac_fn_cxx_try_link "$LINENO"; then :
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993 $as_echo "yes" >&6; }; have_pic_shared=yes
31994 else
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996 $as_echo "no" >&6; }; have_pic_shared=no
31998 rm -f core conftest.err conftest.$ac_objext \
31999 conftest$ac_exeext conftest.$ac_ext
32000 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32001 pluginlibs=
32002 enable_plugin=no
32004 LDFLAGS="$saved_LDFLAGS"
32005 CFLAGS="$saved_CFLAGS"
32006 CXXFLAGS="$saved_CXXFLAGS"
32008 # If plugin support had been requested but not available, fail.
32009 if test x"$enable_plugin" = x"no" ; then
32010 if test x"$default_plugin" != x"yes"; then
32011 as_fn_error $? "
32012 Building GCC with plugin support requires a host that supports
32013 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32020 if test x"$enable_plugin" = x"yes"; then
32022 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32027 # Enable --enable-host-shared
32028 # Check whether --enable-host-shared was given.
32029 if test "${enable_host_shared+set}" = set; then :
32030 enableval=$enable_host_shared; PICFLAG=-fPIC
32031 else
32032 PICFLAG=
32039 # Check whether --enable-libquadmath-support was given.
32040 if test "${enable_libquadmath_support+set}" = set; then :
32041 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32042 else
32043 ENABLE_LIBQUADMATH_SUPPORT=yes
32046 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32048 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32053 # Specify what hash style to use by default.
32055 # Check whether --with-linker-hash-style was given.
32056 if test "${with_linker_hash_style+set}" = set; then :
32057 withval=$with_linker_hash_style; case x"$withval" in
32058 xsysv)
32059 LINKER_HASH_STYLE=sysv
32061 xgnu)
32062 LINKER_HASH_STYLE=gnu
32064 xboth)
32065 LINKER_HASH_STYLE=both
32068 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32070 esac
32071 else
32072 LINKER_HASH_STYLE=''
32075 if test x"${LINKER_HASH_STYLE}" != x; then
32077 cat >>confdefs.h <<_ACEOF
32078 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32079 _ACEOF
32083 # Specify what should be the default of -fdiagnostics-color option.
32085 # Check whether --with-diagnostics-color was given.
32086 if test "${with_diagnostics_color+set}" = set; then :
32087 withval=$with_diagnostics_color; case x"$withval" in
32088 xnever)
32089 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32091 xauto)
32092 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32094 xauto-if-env)
32095 DIAGNOSTICS_COLOR_DEFAULT=-1
32097 xalways)
32098 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32101 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32103 esac
32104 else
32105 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32109 cat >>confdefs.h <<_ACEOF
32110 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32111 _ACEOF
32114 # Specify what should be the default of -fdiagnostics-urls option.
32116 # Check whether --with-diagnostics-urls was given.
32117 if test "${with_diagnostics_urls+set}" = set; then :
32118 withval=$with_diagnostics_urls; case x"$withval" in
32119 xnever)
32120 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32122 xauto)
32123 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32125 xauto-if-env)
32126 DIAGNOSTICS_URLS_DEFAULT=-1
32128 xalways)
32129 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32132 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32134 esac
32135 else
32136 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32140 cat >>confdefs.h <<_ACEOF
32141 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32142 _ACEOF
32145 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32146 # of jit/jit-playback.cc.
32147 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32148 echo "gcc_driver_version: ${gcc_driver_version}"
32149 cat > gcc-driver-name.h <<EOF
32150 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32153 # Check whether --enable-default-pie was given.
32154 # Check whether --enable-default-pie was given.
32155 if test "${enable_default_pie+set}" = set; then :
32156 enableval=$enable_default_pie; enable_default_pie=$enableval
32157 else
32158 enable_default_pie=no
32161 if test x$enable_default_pie = xyes ; then
32163 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32168 # Check if -fno-PIE works.
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32170 $as_echo_n "checking for -fno-PIE option... " >&6; }
32171 if ${gcc_cv_c_no_fpie+:} false; then :
32172 $as_echo_n "(cached) " >&6
32173 else
32174 saved_CXXFLAGS="$CXXFLAGS"
32175 CXXFLAGS="$CXXFLAGS -fno-PIE"
32176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32177 /* end confdefs.h. */
32178 int main(void) {return 0;}
32179 _ACEOF
32180 if ac_fn_cxx_try_compile "$LINENO"; then :
32181 gcc_cv_c_no_fpie=yes
32182 else
32183 gcc_cv_c_no_fpie=no
32185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32186 CXXFLAGS="$saved_CXXFLAGS"
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32189 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32190 if test "$gcc_cv_c_no_fpie" = "yes"; then
32191 NO_PIE_CFLAGS="-fno-PIE"
32195 # Check if -no-pie works.
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32197 $as_echo_n "checking for -no-pie option... " >&6; }
32198 if ${gcc_cv_no_pie+:} false; then :
32199 $as_echo_n "(cached) " >&6
32200 else
32201 saved_LDFLAGS="$LDFLAGS"
32202 LDFLAGS="$LDFLAGS -no-pie"
32203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32204 /* end confdefs.h. */
32205 int main(void) {return 0;}
32206 _ACEOF
32207 if ac_fn_cxx_try_link "$LINENO"; then :
32208 gcc_cv_no_pie=yes
32209 else
32210 gcc_cv_no_pie=no
32212 rm -f core conftest.err conftest.$ac_objext \
32213 conftest$ac_exeext conftest.$ac_ext
32214 LDFLAGS="$saved_LDFLAGS"
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32217 $as_echo "$gcc_cv_no_pie" >&6; }
32218 if test "$gcc_cv_no_pie" = "yes"; then
32219 NO_PIE_FLAG="-no-pie"
32223 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32224 # Check whether --enable-cet was given.
32225 if test "${enable_cet+set}" = set; then :
32226 enableval=$enable_cet;
32227 case "$enableval" in
32228 yes|no|auto) ;;
32229 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32230 esac
32232 else
32233 enable_cet=auto
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32238 $as_echo_n "checking for CET support... " >&6; }
32240 case "$host" in
32241 i[34567]86-*-linux* | x86_64-*-linux*)
32242 may_have_cet=yes
32243 cet_save_CFLAGS="$CFLAGS"
32244 CFLAGS="$CFLAGS -fcf-protection"
32245 case "$enable_cet" in
32246 auto)
32247 # Check if target supports multi-byte NOPs
32248 # and if compiler and assembler support CET.
32249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32250 /* end confdefs.h. */
32253 main ()
32256 #if !defined(__SSE2__)
32257 #error target does not support multi-byte NOPs
32258 #else
32259 asm ("setssbsy");
32260 #endif
32263 return 0;
32265 _ACEOF
32266 if ac_fn_cxx_try_compile "$LINENO"; then :
32267 enable_cet=yes
32268 else
32269 enable_cet=no
32271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32273 yes)
32274 # Check if compiler and assembler support CET.
32275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32276 /* end confdefs.h. */
32279 main ()
32281 asm ("setssbsy");
32283 return 0;
32285 _ACEOF
32286 if ac_fn_cxx_try_compile "$LINENO"; then :
32287 support_cet=yes
32288 else
32289 support_cet=no
32291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32292 if test $support_cet = "no"; then
32293 if test x$enable_bootstrap != xno \
32294 && test -z "${with_build_subdir}" \
32295 && (test ! -f ../stage_current \
32296 || test `cat ../stage_current` != "stage1"); then
32297 # Require CET support only for the final GCC build.
32298 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32299 else
32300 # Don't enable CET without CET support for non-bootstrap
32301 # build, in stage1 nor for build support.
32302 enable_cet=no
32306 esac
32307 CFLAGS="$cet_save_CFLAGS"
32310 may_have_cet=no
32311 enable_cet=no
32313 esac
32315 cet_save_CFLAGS="$CFLAGS"
32316 CFLAGS="$CFLAGS -fcf-protection=none"
32317 cet_save_LDFLAGS="$LDFLAGS"
32318 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32319 if test x$may_have_cet = xyes; then
32320 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32322 /* end confdefs.h. */
32325 main ()
32327 return 0;
32329 return 0;
32331 _ACEOF
32332 if ac_fn_cxx_try_link "$LINENO"; then :
32333 may_have_cet=yes
32334 else
32335 may_have_cet=no
32337 rm -f core conftest.err conftest.$ac_objext \
32338 conftest$ac_exeext conftest.$ac_ext
32341 if test x$may_have_cet = xyes; then
32342 if test x$cross_compiling = xno; then
32343 if test "$cross_compiling" = yes; then :
32344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32346 as_fn_error $? "cannot run test program while cross compiling
32347 See \`config.log' for more details" "$LINENO" 5; }
32348 else
32349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32350 /* end confdefs.h. */
32353 main ()
32355 asm ("endbr32");
32356 return 0;
32359 _ACEOF
32360 if ac_fn_cxx_try_run "$LINENO"; then :
32361 have_multi_byte_nop=yes
32362 else
32363 have_multi_byte_nop=no
32365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32366 conftest.$ac_objext conftest.beam conftest.$ac_ext
32369 have_cet=no
32370 if test x$have_multi_byte_nop = xyes; then
32371 if test "$cross_compiling" = yes; then :
32372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32374 as_fn_error $? "cannot run test program while cross compiling
32375 See \`config.log' for more details" "$LINENO" 5; }
32376 else
32377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32378 /* end confdefs.h. */
32380 static void
32381 foo (void)
32385 static void
32386 __attribute__ ((noinline, noclone))
32387 xxx (void (*f) (void))
32389 f ();
32392 static void
32393 __attribute__ ((noinline, noclone))
32394 bar (void)
32396 xxx (foo);
32400 main ()
32402 bar ();
32403 return 0;
32406 _ACEOF
32407 if ac_fn_cxx_try_run "$LINENO"; then :
32408 have_cet=no
32409 else
32410 have_cet=yes
32412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32413 conftest.$ac_objext conftest.beam conftest.$ac_ext
32417 if test x$enable_cet = xno -a x$have_cet = xyes; then
32418 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32421 else
32422 # Enable CET in cross compiler if possible so that it will run on both
32423 # CET and non-CET hosts.
32424 have_cet=yes
32426 if test x$enable_cet = xyes; then
32427 CET_HOST_FLAGS="-fcf-protection"
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32429 $as_echo "yes" >&6; }
32430 else
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32432 $as_echo "no" >&6; }
32434 CFLAGS="$cet_save_CFLAGS"
32435 LDFLAGS="$cet_save_LDFLAGS"
32437 case x$enable_languages in
32438 *jit*)
32441 CET_HOST_FLAGS=
32443 esac
32446 # Check linker supports '-z bndplt'
32447 ld_bndplt_support=no
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32449 $as_echo_n "checking linker -z bndplt option... " >&6; }
32450 if test x"$ld_is_gold" = xno; then
32451 if test $in_tree_ld = yes ; then
32452 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
32453 ld_bndplt_support=yes
32455 elif test x$gcc_cv_ld != x; then
32456 # Check if linker supports -a bndplt option
32457 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32458 ld_bndplt_support=yes
32462 if test x"$ld_bndplt_support" = xyes; then
32464 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32468 $as_echo "$ld_bndplt_support" >&6; }
32470 # Check linker supports '--push-state'/'--pop-state'
32471 ld_pushpopstate_support=no
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32473 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32474 if test x"$ld_is_gold" = xno; then
32475 if test $in_tree_ld = yes ; then
32476 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
32477 ld_pushpopstate_support=yes
32479 elif test x$gcc_cv_ld != x; then
32480 # Check if linker supports --push-state/--pop-state options
32481 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32482 ld_pushpopstate_support=yes
32486 if test x"$ld_pushpopstate_support" = xyes; then
32488 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32492 $as_echo "$ld_pushpopstate_support" >&6; }
32494 # On s390, float_t has historically been statically defined as double for no
32495 # good reason. To comply with the C standard in the light of this definition,
32496 # gcc has evaluated float expressions in double precision when in
32497 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32498 # a smooth transition towards the new model used by most architectures, where
32499 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32500 # float_t from that, this behavior can be configured with
32501 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32502 # the old model. When omitted, native builds and cross compiles that have target
32503 # libc headers will detect whether libc clamps float_t to double and in that
32504 # case maintain the old model. Otherwise, they will default to the new model.
32505 # Check whether --enable-s390-excess-float-precision was given.
32506 if test "${enable_s390_excess_float_precision+set}" = set; then :
32507 enableval=$enable_s390_excess_float_precision;
32508 else
32509 enable_s390_excess_float_precision=auto
32513 case $target in
32514 s390*-linux*)
32515 if test x"$enable_s390_excess_float_precision" = xauto; then
32516 # Can we autodetect the behavior of the target libc?
32517 if test "$target" = "$host" -a "$host" = "$build"; then
32518 enable_s390_excess_float_precision=autodetect
32519 elif test "x$with_headers" != xno; then
32520 # cross build. are target headers available?
32521 # carefully coerce the build-system compiler to use target headers
32522 saved_CXXFLAGS="$CXXFLAGS"
32523 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32524 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32525 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32527 /* end confdefs.h. */
32529 #include <math.h>
32531 _ACEOF
32532 if ac_fn_cxx_try_compile "$LINENO"; then :
32533 enable_s390_excess_float_precision=autodetect
32535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32536 CXXFLAGS="$saved_CXXFLAGS"
32539 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32540 saved_CXXFLAGS="$CXXFLAGS"
32541 if ! test "$target" = "$host" -a "$host" = "$build"; then
32542 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32543 unset CROSS_TEST_CXXFLAGS
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32546 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32547 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32548 $as_echo_n "(cached) " >&6
32549 else
32551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32552 /* end confdefs.h. */
32554 #define __FLT_EVAL_METHOD__ 0
32555 #include <math.h>
32556 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32558 _ACEOF
32559 if ac_fn_cxx_try_compile "$LINENO"; then :
32560 gcc_cv_float_t_clamped_to_double=yes
32561 else
32562 gcc_cv_float_t_clamped_to_double=no
32564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32567 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32568 CXXFLAGS="$saved_CXXFLAGS"
32569 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32570 else
32571 # no way to detect behavior of target libc, default to new model
32572 enable_s390_excess_float_precision=no
32577 if test x"$enable_s390_excess_float_precision" = xyes; then
32579 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32583 esac
32585 # Configure the subdirectories
32586 # AC_CONFIG_SUBDIRS($subdirs)
32588 # Create the Makefile
32589 # and configure language subdirectories
32590 ac_config_files="$ac_config_files $all_outputs"
32593 ac_config_commands="$ac_config_commands default"
32595 cat >confcache <<\_ACEOF
32596 # This file is a shell script that caches the results of configure
32597 # tests run on this system so they can be shared between configure
32598 # scripts and configure runs, see configure's option --config-cache.
32599 # It is not useful on other systems. If it contains results you don't
32600 # want to keep, you may remove or edit it.
32602 # config.status only pays attention to the cache file if you give it
32603 # the --recheck option to rerun configure.
32605 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32606 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32607 # following values.
32609 _ACEOF
32611 # The following way of writing the cache mishandles newlines in values,
32612 # but we know of no workaround that is simple, portable, and efficient.
32613 # So, we kill variables containing newlines.
32614 # Ultrix sh set writes to stderr and can't be redirected directly,
32615 # and sets the high bit in the cache file unless we assign to the vars.
32617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32618 eval ac_val=\$$ac_var
32619 case $ac_val in #(
32620 *${as_nl}*)
32621 case $ac_var in #(
32622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32624 esac
32625 case $ac_var in #(
32626 _ | IFS | as_nl) ;; #(
32627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32628 *) { eval $ac_var=; unset $ac_var;} ;;
32629 esac ;;
32630 esac
32631 done
32633 (set) 2>&1 |
32634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32635 *${as_nl}ac_space=\ *)
32636 # `set' does not quote correctly, so add quotes: double-quote
32637 # substitution turns \\\\ into \\, and sed turns \\ into \.
32638 sed -n \
32639 "s/'/'\\\\''/g;
32640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32641 ;; #(
32643 # `set' quotes correctly as required by POSIX, so do not add quotes.
32644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32646 esac |
32647 sort
32649 sed '
32650 /^ac_cv_env_/b end
32651 t clear
32652 :clear
32653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32654 t end
32655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32656 :end' >>confcache
32657 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32658 if test -w "$cache_file"; then
32659 if test "x$cache_file" != "x/dev/null"; then
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32661 $as_echo "$as_me: updating cache $cache_file" >&6;}
32662 if test ! -f "$cache_file" || test -h "$cache_file"; then
32663 cat confcache >"$cache_file"
32664 else
32665 case $cache_file in #(
32666 */* | ?:*)
32667 mv -f confcache "$cache_file"$$ &&
32668 mv -f "$cache_file"$$ "$cache_file" ;; #(
32670 mv -f confcache "$cache_file" ;;
32671 esac
32674 else
32675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32676 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32679 rm -f confcache
32681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32682 # Let make expand exec_prefix.
32683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32685 DEFS=-DHAVE_CONFIG_H
32687 ac_libobjs=
32688 ac_ltlibobjs=
32690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32691 # 1. Remove the extension, and $U if already installed.
32692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32695 # will be set to the directory where LIBOBJS objects are built.
32696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32698 done
32699 LIBOBJS=$ac_libobjs
32701 LTLIBOBJS=$ac_ltlibobjs
32706 : "${CONFIG_STATUS=./config.status}"
32707 ac_write_fail=0
32708 ac_clean_files_save=$ac_clean_files
32709 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32712 as_write_fail=0
32713 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32714 #! $SHELL
32715 # Generated by $as_me.
32716 # Run this file to recreate the current configuration.
32717 # Compiler output produced by configure, useful for debugging
32718 # configure, is in config.log if it exists.
32720 debug=false
32721 ac_cs_recheck=false
32722 ac_cs_silent=false
32724 SHELL=\${CONFIG_SHELL-$SHELL}
32725 export SHELL
32726 _ASEOF
32727 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32728 ## -------------------- ##
32729 ## M4sh Initialization. ##
32730 ## -------------------- ##
32732 # Be more Bourne compatible
32733 DUALCASE=1; export DUALCASE # for MKS sh
32734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32735 emulate sh
32736 NULLCMD=:
32737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32738 # is contrary to our usage. Disable this feature.
32739 alias -g '${1+"$@"}'='"$@"'
32740 setopt NO_GLOB_SUBST
32741 else
32742 case `(set -o) 2>/dev/null` in #(
32743 *posix*) :
32744 set -o posix ;; #(
32745 *) :
32747 esac
32751 as_nl='
32753 export as_nl
32754 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32755 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32757 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32758 # Prefer a ksh shell builtin over an external printf program on Solaris,
32759 # but without wasting forks for bash or zsh.
32760 if test -z "$BASH_VERSION$ZSH_VERSION" \
32761 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32762 as_echo='print -r --'
32763 as_echo_n='print -rn --'
32764 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32765 as_echo='printf %s\n'
32766 as_echo_n='printf %s'
32767 else
32768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32770 as_echo_n='/usr/ucb/echo -n'
32771 else
32772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32773 as_echo_n_body='eval
32774 arg=$1;
32775 case $arg in #(
32776 *"$as_nl"*)
32777 expr "X$arg" : "X\\(.*\\)$as_nl";
32778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32779 esac;
32780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32782 export as_echo_n_body
32783 as_echo_n='sh -c $as_echo_n_body as_echo'
32785 export as_echo_body
32786 as_echo='sh -c $as_echo_body as_echo'
32789 # The user is always right.
32790 if test "${PATH_SEPARATOR+set}" != set; then
32791 PATH_SEPARATOR=:
32792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32794 PATH_SEPARATOR=';'
32799 # IFS
32800 # We need space, tab and new line, in precisely that order. Quoting is
32801 # there to prevent editors from complaining about space-tab.
32802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32803 # splitting by setting IFS to empty value.)
32804 IFS=" "" $as_nl"
32806 # Find who we are. Look in the path if we contain no directory separator.
32807 as_myself=
32808 case $0 in #((
32809 *[\\/]* ) as_myself=$0 ;;
32810 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32811 for as_dir in $PATH
32813 IFS=$as_save_IFS
32814 test -z "$as_dir" && as_dir=.
32815 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32816 done
32817 IFS=$as_save_IFS
32820 esac
32821 # We did not find ourselves, most probably we were run as `sh COMMAND'
32822 # in which case we are not to be found in the path.
32823 if test "x$as_myself" = x; then
32824 as_myself=$0
32826 if test ! -f "$as_myself"; then
32827 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32828 exit 1
32831 # Unset variables that we do not need and which cause bugs (e.g. in
32832 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32833 # suppresses any "Segmentation fault" message there. '((' could
32834 # trigger a bug in pdksh 5.2.14.
32835 for as_var in BASH_ENV ENV MAIL MAILPATH
32836 do eval test x\${$as_var+set} = xset \
32837 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32838 done
32839 PS1='$ '
32840 PS2='> '
32841 PS4='+ '
32843 # NLS nuisances.
32844 LC_ALL=C
32845 export LC_ALL
32846 LANGUAGE=C
32847 export LANGUAGE
32849 # CDPATH.
32850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32853 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32854 # ----------------------------------------
32855 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32856 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32857 # script with STATUS, using 1 if that was 0.
32858 as_fn_error ()
32860 as_status=$1; test $as_status -eq 0 && as_status=1
32861 if test "$4"; then
32862 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32863 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32865 $as_echo "$as_me: error: $2" >&2
32866 as_fn_exit $as_status
32867 } # as_fn_error
32870 # as_fn_set_status STATUS
32871 # -----------------------
32872 # Set $? to STATUS, without forking.
32873 as_fn_set_status ()
32875 return $1
32876 } # as_fn_set_status
32878 # as_fn_exit STATUS
32879 # -----------------
32880 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32881 as_fn_exit ()
32883 set +e
32884 as_fn_set_status $1
32885 exit $1
32886 } # as_fn_exit
32888 # as_fn_unset VAR
32889 # ---------------
32890 # Portably unset VAR.
32891 as_fn_unset ()
32893 { eval $1=; unset $1;}
32895 as_unset=as_fn_unset
32896 # as_fn_append VAR VALUE
32897 # ----------------------
32898 # Append the text in VALUE to the end of the definition contained in VAR. Take
32899 # advantage of any shell optimizations that allow amortized linear growth over
32900 # repeated appends, instead of the typical quadratic growth present in naive
32901 # implementations.
32902 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32903 eval 'as_fn_append ()
32905 eval $1+=\$2
32907 else
32908 as_fn_append ()
32910 eval $1=\$$1\$2
32912 fi # as_fn_append
32914 # as_fn_arith ARG...
32915 # ------------------
32916 # Perform arithmetic evaluation on the ARGs, and store the result in the
32917 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32918 # must be portable across $(()) and expr.
32919 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32920 eval 'as_fn_arith ()
32922 as_val=$(( $* ))
32924 else
32925 as_fn_arith ()
32927 as_val=`expr "$@" || test $? -eq 1`
32929 fi # as_fn_arith
32932 if expr a : '\(a\)' >/dev/null 2>&1 &&
32933 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32934 as_expr=expr
32935 else
32936 as_expr=false
32939 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32940 as_basename=basename
32941 else
32942 as_basename=false
32945 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32946 as_dirname=dirname
32947 else
32948 as_dirname=false
32951 as_me=`$as_basename -- "$0" ||
32952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32953 X"$0" : 'X\(//\)$' \| \
32954 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32955 $as_echo X/"$0" |
32956 sed '/^.*\/\([^/][^/]*\)\/*$/{
32957 s//\1/
32960 /^X\/\(\/\/\)$/{
32961 s//\1/
32964 /^X\/\(\/\).*/{
32965 s//\1/
32968 s/.*/./; q'`
32970 # Avoid depending upon Character Ranges.
32971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32974 as_cr_digits='0123456789'
32975 as_cr_alnum=$as_cr_Letters$as_cr_digits
32977 ECHO_C= ECHO_N= ECHO_T=
32978 case `echo -n x` in #(((((
32979 -n*)
32980 case `echo 'xy\c'` in
32981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32982 xy) ECHO_C='\c';;
32983 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32984 ECHO_T=' ';;
32985 esac;;
32987 ECHO_N='-n';;
32988 esac
32990 rm -f conf$$ conf$$.exe conf$$.file
32991 if test -d conf$$.dir; then
32992 rm -f conf$$.dir/conf$$.file
32993 else
32994 rm -f conf$$.dir
32995 mkdir conf$$.dir 2>/dev/null
32997 if (echo >conf$$.file) 2>/dev/null; then
32998 if ln -s conf$$.file conf$$ 2>/dev/null; then
32999 as_ln_s='ln -s'
33000 # ... but there are two gotchas:
33001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33003 # In both cases, we have to default to `cp -pR'.
33004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33005 as_ln_s='cp -pR'
33006 elif ln conf$$.file conf$$ 2>/dev/null; then
33007 as_ln_s=ln
33008 else
33009 as_ln_s='cp -pR'
33011 else
33012 as_ln_s='cp -pR'
33014 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33015 rmdir conf$$.dir 2>/dev/null
33018 # as_fn_mkdir_p
33019 # -------------
33020 # Create "$as_dir" as a directory, including parents if necessary.
33021 as_fn_mkdir_p ()
33024 case $as_dir in #(
33025 -*) as_dir=./$as_dir;;
33026 esac
33027 test -d "$as_dir" || eval $as_mkdir_p || {
33028 as_dirs=
33029 while :; do
33030 case $as_dir in #(
33031 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33032 *) as_qdir=$as_dir;;
33033 esac
33034 as_dirs="'$as_qdir' $as_dirs"
33035 as_dir=`$as_dirname -- "$as_dir" ||
33036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33037 X"$as_dir" : 'X\(//\)[^/]' \| \
33038 X"$as_dir" : 'X\(//\)$' \| \
33039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33040 $as_echo X"$as_dir" |
33041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33042 s//\1/
33045 /^X\(\/\/\)[^/].*/{
33046 s//\1/
33049 /^X\(\/\/\)$/{
33050 s//\1/
33053 /^X\(\/\).*/{
33054 s//\1/
33057 s/.*/./; q'`
33058 test -d "$as_dir" && break
33059 done
33060 test -z "$as_dirs" || eval "mkdir $as_dirs"
33061 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33064 } # as_fn_mkdir_p
33065 if mkdir -p . 2>/dev/null; then
33066 as_mkdir_p='mkdir -p "$as_dir"'
33067 else
33068 test -d ./-p && rmdir ./-p
33069 as_mkdir_p=false
33073 # as_fn_executable_p FILE
33074 # -----------------------
33075 # Test if FILE is an executable regular file.
33076 as_fn_executable_p ()
33078 test -f "$1" && test -x "$1"
33079 } # as_fn_executable_p
33080 as_test_x='test -x'
33081 as_executable_p=as_fn_executable_p
33083 # Sed expression to map a string onto a valid CPP name.
33084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33086 # Sed expression to map a string onto a valid variable name.
33087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33090 exec 6>&1
33091 ## ----------------------------------- ##
33092 ## Main body of $CONFIG_STATUS script. ##
33093 ## ----------------------------------- ##
33094 _ASEOF
33095 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33098 # Save the log message, to keep $0 and so on meaningful, and to
33099 # report actual input values of CONFIG_FILES etc. instead of their
33100 # values after options handling.
33101 ac_log="
33102 This file was extended by $as_me, which was
33103 generated by GNU Autoconf 2.69. Invocation command line was
33105 CONFIG_FILES = $CONFIG_FILES
33106 CONFIG_HEADERS = $CONFIG_HEADERS
33107 CONFIG_LINKS = $CONFIG_LINKS
33108 CONFIG_COMMANDS = $CONFIG_COMMANDS
33109 $ $0 $@
33111 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33114 _ACEOF
33116 case $ac_config_files in *"
33117 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33118 esac
33120 case $ac_config_headers in *"
33121 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33122 esac
33125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33126 # Files that config.status was made for.
33127 config_files="$ac_config_files"
33128 config_headers="$ac_config_headers"
33129 config_links="$ac_config_links"
33130 config_commands="$ac_config_commands"
33132 _ACEOF
33134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33135 ac_cs_usage="\
33136 \`$as_me' instantiates files and other configuration actions
33137 from templates according to the current configuration. Unless the files
33138 and actions are specified as TAGs, all are instantiated by default.
33140 Usage: $0 [OPTION]... [TAG]...
33142 -h, --help print this help, then exit
33143 -V, --version print version number and configuration settings, then exit
33144 --config print configuration, then exit
33145 -q, --quiet, --silent
33146 do not print progress messages
33147 -d, --debug don't remove temporary files
33148 --recheck update $as_me by reconfiguring in the same conditions
33149 --file=FILE[:TEMPLATE]
33150 instantiate the configuration file FILE
33151 --header=FILE[:TEMPLATE]
33152 instantiate the configuration header FILE
33154 Configuration files:
33155 $config_files
33157 Configuration headers:
33158 $config_headers
33160 Configuration links:
33161 $config_links
33163 Configuration commands:
33164 $config_commands
33166 Report bugs to the package provider."
33168 _ACEOF
33169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33170 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33171 ac_cs_version="\\
33172 config.status
33173 configured by $0, generated by GNU Autoconf 2.69,
33174 with options \\"\$ac_cs_config\\"
33176 Copyright (C) 2012 Free Software Foundation, Inc.
33177 This config.status script is free software; the Free Software Foundation
33178 gives unlimited permission to copy, distribute and modify it."
33180 ac_pwd='$ac_pwd'
33181 srcdir='$srcdir'
33182 AWK='$AWK'
33183 test -n "\$AWK" || AWK=awk
33184 _ACEOF
33186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33187 # The default lists apply if the user does not specify any file.
33188 ac_need_defaults=:
33189 while test $# != 0
33191 case $1 in
33192 --*=?*)
33193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33195 ac_shift=:
33197 --*=)
33198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33199 ac_optarg=
33200 ac_shift=:
33203 ac_option=$1
33204 ac_optarg=$2
33205 ac_shift=shift
33207 esac
33209 case $ac_option in
33210 # Handling of the options.
33211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33212 ac_cs_recheck=: ;;
33213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33214 $as_echo "$ac_cs_version"; exit ;;
33215 --config | --confi | --conf | --con | --co | --c )
33216 $as_echo "$ac_cs_config"; exit ;;
33217 --debug | --debu | --deb | --de | --d | -d )
33218 debug=: ;;
33219 --file | --fil | --fi | --f )
33220 $ac_shift
33221 case $ac_optarg in
33222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33223 '') as_fn_error $? "missing file argument" ;;
33224 esac
33225 as_fn_append CONFIG_FILES " '$ac_optarg'"
33226 ac_need_defaults=false;;
33227 --header | --heade | --head | --hea )
33228 $ac_shift
33229 case $ac_optarg in
33230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33231 esac
33232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33233 ac_need_defaults=false;;
33234 --he | --h)
33235 # Conflict between --help and --header
33236 as_fn_error $? "ambiguous option: \`$1'
33237 Try \`$0 --help' for more information.";;
33238 --help | --hel | -h )
33239 $as_echo "$ac_cs_usage"; exit ;;
33240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33242 ac_cs_silent=: ;;
33244 # This is an error.
33245 -*) as_fn_error $? "unrecognized option: \`$1'
33246 Try \`$0 --help' for more information." ;;
33248 *) as_fn_append ac_config_targets " $1"
33249 ac_need_defaults=false ;;
33251 esac
33252 shift
33253 done
33255 ac_configure_extra_args=
33257 if $ac_cs_silent; then
33258 exec 6>/dev/null
33259 ac_configure_extra_args="$ac_configure_extra_args --silent"
33262 _ACEOF
33263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33264 if \$ac_cs_recheck; then
33265 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33266 shift
33267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33268 CONFIG_SHELL='$SHELL'
33269 export CONFIG_SHELL
33270 exec "\$@"
33273 _ACEOF
33274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33275 exec 5>>config.log
33277 echo
33278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33279 ## Running $as_me. ##
33280 _ASBOX
33281 $as_echo "$ac_log"
33282 } >&5
33284 _ACEOF
33285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33287 # INIT-COMMANDS
33289 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33290 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33291 subdirs='$subdirs'
33293 _ACEOF
33295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33297 # Handling of arguments.
33298 for ac_config_target in $ac_config_targets
33300 case $ac_config_target in
33301 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33302 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33303 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33304 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33305 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33306 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33307 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33308 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33309 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33310 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33312 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33313 esac
33314 done
33317 # If the user did not use the arguments to specify the items to instantiate,
33318 # then the envvar interface is used. Set only those that are not.
33319 # We use the long form for the default assignment because of an extremely
33320 # bizarre bug on SunOS 4.1.3.
33321 if $ac_need_defaults; then
33322 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33323 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33324 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33328 # Have a temporary directory for convenience. Make it in the build tree
33329 # simply because there is no reason against having it here, and in addition,
33330 # creating and moving files from /tmp can sometimes cause problems.
33331 # Hook for its removal unless debugging.
33332 # Note that there is a small window in which the directory will not be cleaned:
33333 # after its creation but before its name has been assigned to `$tmp'.
33334 $debug ||
33336 tmp= ac_tmp=
33337 trap 'exit_status=$?
33338 : "${ac_tmp:=$tmp}"
33339 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33341 trap 'as_fn_exit 1' 1 2 13 15
33343 # Create a (secure) tmp directory for tmp files.
33346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33347 test -d "$tmp"
33348 } ||
33350 tmp=./conf$$-$RANDOM
33351 (umask 077 && mkdir "$tmp")
33352 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33353 ac_tmp=$tmp
33355 # Set up the scripts for CONFIG_FILES section.
33356 # No need to generate them if there are no CONFIG_FILES.
33357 # This happens for instance with `./config.status config.h'.
33358 if test -n "$CONFIG_FILES"; then
33360 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33361 ac_cs_awk_getline=:
33362 ac_cs_awk_pipe_init=
33363 ac_cs_awk_read_file='
33364 while ((getline aline < (F[key])) > 0)
33365 print(aline)
33366 close(F[key])'
33367 ac_cs_awk_pipe_fini=
33368 else
33369 ac_cs_awk_getline=false
33370 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33371 ac_cs_awk_read_file='
33372 print "|#_!!_#|"
33373 print "cat " F[key] " &&"
33374 '$ac_cs_awk_pipe_init
33375 # The final `:' finishes the AND list.
33376 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33378 ac_cr=`echo X | tr X '\015'`
33379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33380 # But we know of no other shell where ac_cr would be empty at this
33381 # point, so we can use a bashism as a fallback.
33382 if test "x$ac_cr" = x; then
33383 eval ac_cr=\$\'\\r\'
33385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33387 ac_cs_awk_cr='\\r'
33388 else
33389 ac_cs_awk_cr=$ac_cr
33392 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33393 _ACEOF
33395 # Create commands to substitute file output variables.
33397 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33398 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33399 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33400 echo "_ACAWK" &&
33401 echo "_ACEOF"
33402 } >conf$$files.sh &&
33403 . ./conf$$files.sh ||
33404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33405 rm -f conf$$files.sh
33408 echo "cat >conf$$subs.awk <<_ACEOF" &&
33409 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33410 echo "_ACEOF"
33411 } >conf$$subs.sh ||
33412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33413 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33414 ac_delim='%!_!# '
33415 for ac_last_try in false false false false false :; do
33416 . ./conf$$subs.sh ||
33417 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33419 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33420 if test $ac_delim_n = $ac_delim_num; then
33421 break
33422 elif $ac_last_try; then
33423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33424 else
33425 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33427 done
33428 rm -f conf$$subs.sh
33430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33431 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33432 _ACEOF
33433 sed -n '
33435 s/^/S["/; s/!.*/"]=/
33438 s/^[^!]*!//
33439 :repl
33440 t repl
33441 s/'"$ac_delim"'$//
33442 t delim
33445 s/\(.\{148\}\)..*/\1/
33446 t more1
33447 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33450 b repl
33451 :more1
33452 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33455 s/.\{148\}//
33456 t nl
33457 :delim
33459 s/\(.\{148\}\)..*/\1/
33460 t more2
33461 s/["\\]/\\&/g; s/^/"/; s/$/"/
33464 :more2
33465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33468 s/.\{148\}//
33469 t delim
33470 ' <conf$$subs.awk | sed '
33471 /^[^""]/{
33473 s/\n//
33475 ' >>$CONFIG_STATUS || ac_write_fail=1
33476 rm -f conf$$subs.awk
33477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33478 _ACAWK
33479 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33480 for (key in S) S_is_set[key] = 1
33481 FS = "\a"
33482 \$ac_cs_awk_pipe_init
33485 line = $ 0
33486 nfields = split(line, field, "@")
33487 substed = 0
33488 len = length(field[1])
33489 for (i = 2; i < nfields; i++) {
33490 key = field[i]
33491 keylen = length(key)
33492 if (S_is_set[key]) {
33493 value = S[key]
33494 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33495 len += length(value) + length(field[++i])
33496 substed = 1
33497 } else
33498 len += 1 + keylen
33500 if (nfields == 3 && !substed) {
33501 key = field[2]
33502 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33503 \$ac_cs_awk_read_file
33504 next
33507 print line
33509 \$ac_cs_awk_pipe_fini
33510 _ACAWK
33511 _ACEOF
33512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33513 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33514 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33515 else
33517 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33518 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33519 _ACEOF
33521 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33522 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33523 # trailing colons and then remove the whole line if VPATH becomes empty
33524 # (actually we leave an empty line to preserve line numbers).
33525 if test "x$srcdir" = x.; then
33526 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33528 s///
33529 s/^/:/
33530 s/[ ]*$/:/
33531 s/:\$(srcdir):/:/g
33532 s/:\${srcdir}:/:/g
33533 s/:@srcdir@:/:/g
33534 s/^:*//
33535 s/:*$//
33537 s/\(=[ ]*\).*/\1/
33539 s/\n//
33540 s/^[^=]*=[ ]*$//
33544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33545 fi # test -n "$CONFIG_FILES"
33547 # Set up the scripts for CONFIG_HEADERS section.
33548 # No need to generate them if there are no CONFIG_HEADERS.
33549 # This happens for instance with `./config.status Makefile'.
33550 if test -n "$CONFIG_HEADERS"; then
33551 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33552 BEGIN {
33553 _ACEOF
33555 # Transform confdefs.h into an awk script `defines.awk', embedded as
33556 # here-document in config.status, that substitutes the proper values into
33557 # config.h.in to produce config.h.
33559 # Create a delimiter string that does not exist in confdefs.h, to ease
33560 # handling of long lines.
33561 ac_delim='%!_!# '
33562 for ac_last_try in false false :; do
33563 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33564 if test -z "$ac_tt"; then
33565 break
33566 elif $ac_last_try; then
33567 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33568 else
33569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33571 done
33573 # For the awk script, D is an array of macro values keyed by name,
33574 # likewise P contains macro parameters if any. Preserve backslash
33575 # newline sequences.
33577 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33578 sed -n '
33579 s/.\{148\}/&'"$ac_delim"'/g
33580 t rset
33581 :rset
33582 s/^[ ]*#[ ]*define[ ][ ]*/ /
33583 t def
33585 :def
33586 s/\\$//
33587 t bsnl
33588 s/["\\]/\\&/g
33589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33590 D["\1"]=" \3"/p
33591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33593 :bsnl
33594 s/["\\]/\\&/g
33595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33596 D["\1"]=" \3\\\\\\n"\\/p
33597 t cont
33598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33599 t cont
33601 :cont
33603 s/.\{148\}/&'"$ac_delim"'/g
33604 t clear
33605 :clear
33606 s/\\$//
33607 t bsnlc
33608 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33610 :bsnlc
33611 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33612 b cont
33613 ' <confdefs.h | sed '
33614 s/'"$ac_delim"'/"\\\
33615 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33618 for (key in D) D_is_set[key] = 1
33619 FS = "\a"
33621 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33622 line = \$ 0
33623 split(line, arg, " ")
33624 if (arg[1] == "#") {
33625 defundef = arg[2]
33626 mac1 = arg[3]
33627 } else {
33628 defundef = substr(arg[1], 2)
33629 mac1 = arg[2]
33631 split(mac1, mac2, "(") #)
33632 macro = mac2[1]
33633 prefix = substr(line, 1, index(line, defundef) - 1)
33634 if (D_is_set[macro]) {
33635 # Preserve the white space surrounding the "#".
33636 print prefix "define", macro P[macro] D[macro]
33637 next
33638 } else {
33639 # Replace #undef with comments. This is necessary, for example,
33640 # in the case of _POSIX_SOURCE, which is predefined and required
33641 # on some systems where configure will not decide to define it.
33642 if (defundef == "undef") {
33643 print "/*", prefix defundef, macro, "*/"
33644 next
33648 { print }
33649 _ACAWK
33650 _ACEOF
33651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33652 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33653 fi # test -n "$CONFIG_HEADERS"
33656 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33657 shift
33658 for ac_tag
33660 case $ac_tag in
33661 :[FHLC]) ac_mode=$ac_tag; continue;;
33662 esac
33663 case $ac_mode$ac_tag in
33664 :[FHL]*:*);;
33665 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33666 :[FH]-) ac_tag=-:-;;
33667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33668 esac
33669 ac_save_IFS=$IFS
33670 IFS=:
33671 set x $ac_tag
33672 IFS=$ac_save_IFS
33673 shift
33674 ac_file=$1
33675 shift
33677 case $ac_mode in
33678 :L) ac_source=$1;;
33679 :[FH])
33680 ac_file_inputs=
33681 for ac_f
33683 case $ac_f in
33684 -) ac_f="$ac_tmp/stdin";;
33685 *) # Look for the file first in the build tree, then in the source tree
33686 # (if the path is not absolute). The absolute path cannot be DOS-style,
33687 # because $ac_f cannot contain `:'.
33688 test -f "$ac_f" ||
33689 case $ac_f in
33690 [\\/$]*) false;;
33691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33692 esac ||
33693 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33694 esac
33695 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33696 as_fn_append ac_file_inputs " '$ac_f'"
33697 done
33699 # Let's still pretend it is `configure' which instantiates (i.e., don't
33700 # use $as_me), people would be surprised to read:
33701 # /* config.h. Generated by config.status. */
33702 configure_input='Generated from '`
33703 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33704 `' by configure.'
33705 if test x"$ac_file" != x-; then
33706 configure_input="$ac_file. $configure_input"
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33708 $as_echo "$as_me: creating $ac_file" >&6;}
33710 # Neutralize special characters interpreted by sed in replacement strings.
33711 case $configure_input in #(
33712 *\&* | *\|* | *\\* )
33713 ac_sed_conf_input=`$as_echo "$configure_input" |
33714 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33715 *) ac_sed_conf_input=$configure_input;;
33716 esac
33718 case $ac_tag in
33719 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33721 esac
33723 esac
33725 ac_dir=`$as_dirname -- "$ac_file" ||
33726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33727 X"$ac_file" : 'X\(//\)[^/]' \| \
33728 X"$ac_file" : 'X\(//\)$' \| \
33729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33730 $as_echo X"$ac_file" |
33731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33732 s//\1/
33735 /^X\(\/\/\)[^/].*/{
33736 s//\1/
33739 /^X\(\/\/\)$/{
33740 s//\1/
33743 /^X\(\/\).*/{
33744 s//\1/
33747 s/.*/./; q'`
33748 as_dir="$ac_dir"; as_fn_mkdir_p
33749 ac_builddir=.
33751 case "$ac_dir" in
33752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33755 # A ".." for each directory in $ac_dir_suffix.
33756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33757 case $ac_top_builddir_sub in
33758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33760 esac ;;
33761 esac
33762 ac_abs_top_builddir=$ac_pwd
33763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33764 # for backward compatibility:
33765 ac_top_builddir=$ac_top_build_prefix
33767 case $srcdir in
33768 .) # We are building in place.
33769 ac_srcdir=.
33770 ac_top_srcdir=$ac_top_builddir_sub
33771 ac_abs_top_srcdir=$ac_pwd ;;
33772 [\\/]* | ?:[\\/]* ) # Absolute name.
33773 ac_srcdir=$srcdir$ac_dir_suffix;
33774 ac_top_srcdir=$srcdir
33775 ac_abs_top_srcdir=$srcdir ;;
33776 *) # Relative name.
33777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33778 ac_top_srcdir=$ac_top_build_prefix$srcdir
33779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33780 esac
33781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33784 case $ac_mode in
33787 # CONFIG_FILE
33790 _ACEOF
33792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33793 # If the template does not know about datarootdir, expand it.
33794 # FIXME: This hack should be removed a few years after 2.60.
33795 ac_datarootdir_hack=; ac_datarootdir_seen=
33796 ac_sed_dataroot='
33797 /datarootdir/ {
33801 /@datadir@/p
33802 /@docdir@/p
33803 /@infodir@/p
33804 /@localedir@/p
33805 /@mandir@/p'
33806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33807 *datarootdir*) ac_datarootdir_seen=yes;;
33808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33811 _ACEOF
33812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33813 ac_datarootdir_hack='
33814 s&@datadir@&$datadir&g
33815 s&@docdir@&$docdir&g
33816 s&@infodir@&$infodir&g
33817 s&@localedir@&$localedir&g
33818 s&@mandir@&$mandir&g
33819 s&\\\${datarootdir}&$datarootdir&g' ;;
33820 esac
33821 _ACEOF
33823 # Neutralize VPATH when `$srcdir' = `.'.
33824 # Shell code in configure.ac might set extrasub.
33825 # FIXME: do we really want to maintain this feature?
33826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33827 ac_sed_extra="$ac_vpsub
33828 $extrasub
33829 _ACEOF
33830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33833 s|@configure_input@|$ac_sed_conf_input|;t t
33834 s&@top_builddir@&$ac_top_builddir_sub&;t t
33835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33836 s&@srcdir@&$ac_srcdir&;t t
33837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33838 s&@top_srcdir@&$ac_top_srcdir&;t t
33839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33840 s&@builddir@&$ac_builddir&;t t
33841 s&@abs_builddir@&$ac_abs_builddir&;t t
33842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33843 $ac_datarootdir_hack
33845 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33846 if $ac_cs_awk_getline; then
33847 $AWK -f "$ac_tmp/subs.awk"
33848 else
33849 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33850 fi \
33851 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33853 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33854 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33855 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33856 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33858 which seems to be undefined. Please make sure it is defined" >&5
33859 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33860 which seems to be undefined. Please make sure it is defined" >&2;}
33862 rm -f "$ac_tmp/stdin"
33863 case $ac_file in
33864 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33865 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33866 esac \
33867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33871 # CONFIG_HEADER
33873 if test x"$ac_file" != x-; then
33875 $as_echo "/* $configure_input */" \
33876 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33877 } >"$ac_tmp/config.h" \
33878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33879 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33880 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33881 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33882 else
33883 rm -f "$ac_file"
33884 mv "$ac_tmp/config.h" "$ac_file" \
33885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33887 else
33888 $as_echo "/* $configure_input */" \
33889 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33890 || as_fn_error $? "could not create -" "$LINENO" 5
33895 # CONFIG_LINK
33898 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33900 else
33901 # Prefer the file from the source tree if names are identical.
33902 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33903 ac_source=$srcdir/$ac_source
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33907 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33909 if test ! -r "$ac_source"; then
33910 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33912 rm -f "$ac_file"
33914 # Try a relative symlink, then a hard link, then a copy.
33915 case $ac_source in
33916 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33917 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33918 esac
33919 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33920 ln "$ac_source" "$ac_file" 2>/dev/null ||
33921 cp -p "$ac_source" "$ac_file" ||
33922 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33926 $as_echo "$as_me: executing $ac_file commands" >&6;}
33928 esac
33931 case $ac_file$ac_mode in
33932 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33933 "gccdepdir":C)
33934 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33935 for lang in $subdirs c-family common analyzer rtl-ssa
33937 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33938 done ;;
33939 "as":F) chmod +x as ;;
33940 "collect-ld":F) chmod +x collect-ld ;;
33941 "nm":F) chmod +x nm ;;
33942 "dsymutil":F) chmod +x dsymutil ;;
33943 "default":C)
33944 case ${CONFIG_HEADERS} in
33945 *auto-host.h:config.in*)
33946 echo > cstamp-h ;;
33947 esac
33948 # Make sure all the subdirs exist.
33949 for d in $subdirs doc build common c-family
33951 test -d $d || mkdir $d
33952 done
33955 esac
33956 done # for ac_tag
33959 as_fn_exit 0
33960 _ACEOF
33961 ac_clean_files=$ac_clean_files_save
33963 test $ac_write_fail = 0 ||
33964 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33967 # configure is writing to config.log, and then calls config.status.
33968 # config.status does its own redirection, appending to config.log.
33969 # Unfortunately, on DOS this fails, as config.log is still kept open
33970 # by configure, so config.status won't be able to write to it; its
33971 # output is simply discarded. So we exec the FD to /dev/null,
33972 # effectively closing config.log, so it can be properly (re)opened and
33973 # appended to by config.status. When coming back to configure, we
33974 # need to make the FD available again.
33975 if test "$no_create" != yes; then
33976 ac_cs_success=:
33977 ac_config_status_args=
33978 test "$silent" = yes &&
33979 ac_config_status_args="$ac_config_status_args --quiet"
33980 exec 5>/dev/null
33981 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33982 exec 5>>config.log
33983 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33984 # would make configure fail if this is the last instruction.
33985 $ac_cs_success || as_fn_exit 1
33987 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33989 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}