Fix gnat.dg/opt39.adb on hppa.
[official-gcc.git] / gcc / configure
blob88213d855d5da1e2a0a7d4d28b9d0e0cb6938290
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 HAVE_PYTHON
809 PYTHON
810 BISON
811 FLEX
812 GENERATED_MANPAGES
813 MAKEINFO_TOC_INLINE_FLAG
814 BUILD_INFO
815 MAKEINFO
816 have_mktemp_command
817 make_compare_target
818 INSTALL_DATA
819 INSTALL_PROGRAM
820 INSTALL
821 ranlib_flags
822 RANLIB
824 LN_S
826 SET_MAKE
827 omp_device_property_deps
828 omp_device_properties
829 accel_dir_suffix
830 real_target_noncanonical
831 enable_as_accelerator
832 gnat_install_lib
833 REPORT_BUGS_TEXI
834 REPORT_BUGS_TO
835 PKGVERSION
836 CONFIGURE_SPECS
837 enable_gcov
838 enable_shared
839 enable_fixed_point
840 enable_decimal_float
841 with_float
842 with_cpu
843 enable_multiarch
844 enable_multilib
845 coverage_flags
846 valgrind_command
847 valgrind_path_defines
848 valgrind_path
849 TREECHECKING
850 nocommon_flag
851 noexception_flags
852 warn_cxxflags
853 warn_cflags
854 c_strict_warn
855 strict_warn
856 c_loose_warn
857 loose_warn
858 aliasing_flags
860 EGREP
861 GREP
862 CXXCPP
863 PICFLAG_FOR_TARGET
864 GDCFLAGS
866 GNATMAKE
867 GNATBIND
868 ac_ct_CXX
869 CXXFLAGS
871 OBJEXT
872 EXEEXT
873 ac_ct_CC
874 CPPFLAGS
875 LDFLAGS
876 CFLAGS
878 GENINSRC
879 CROSS_SYSTEM_HEADER_DIR
880 TARGET_SYSTEM_ROOT_DEFINE
881 TARGET_SYSTEM_ROOT
882 SYSROOT_CFLAGS_FOR_TARGET
883 target_subdir
884 host_subdir
885 build_subdir
886 build_libsubdir
887 target_noncanonical
888 host_noncanonical
889 target_os
890 target_vendor
891 target_cpu
892 target
893 host_os
894 host_vendor
895 host_cpu
896 host
897 build_os
898 build_vendor
899 build_cpu
900 build
901 target_alias
902 host_alias
903 build_alias
904 LIBS
905 ECHO_T
906 ECHO_N
907 ECHO_C
908 DEFS
909 mandir
910 localedir
911 libdir
912 psdir
913 pdfdir
914 dvidir
915 htmldir
916 infodir
917 docdir
918 oldincludedir
919 includedir
920 localstatedir
921 sharedstatedir
922 sysconfdir
923 datadir
924 datarootdir
925 libexecdir
926 sbindir
927 bindir
928 program_transform_name
929 prefix
930 exec_prefix
931 PACKAGE_URL
932 PACKAGE_BUGREPORT
933 PACKAGE_STRING
934 PACKAGE_VERSION
935 PACKAGE_TARNAME
936 PACKAGE_NAME
937 PATH_SEPARATOR
938 SHELL'
939 ac_subst_files='option_includes
940 language_hooks'
941 ac_user_opts='
942 enable_option_checking
943 with_build_libsubdir
944 with_local_prefix
945 with_native_system_header_dir
946 with_build_sysroot
947 with_sysroot
948 with_gxx_include_dir
949 with_gxx_libcxx_include_dir
950 with_cpp_install_dir
951 enable_generated_files_in_srcdir
952 with_gnu_ld
953 with_ld
954 with_demangler_in_ld
955 with_dsymutil
956 with_gnu_as
957 with_as
958 enable_largefile
959 enable_build_format_warnings
960 enable_werror_always
961 enable_checking
962 enable_coverage
963 enable_gather_detailed_mem_stats
964 enable_valgrind_annotations
965 enable_multilib
966 enable_multiarch
967 with_stack_clash_protection_guard_size
968 enable___cxa_atexit
969 enable_decimal_float
970 enable_fixed_point
971 enable_threads
972 enable_tls
973 enable_vtable_verify
974 enable_analyzer
975 enable_objc_gc
976 with_dwarf2
977 enable_shared
978 enable_gcov
979 with_specs
980 with_pkgversion
981 with_bugurl
982 with_documentation_root_url
983 with_changes_root_url
984 enable_languages
985 with_multilib_list
986 with_multilib_generator
987 with_zstd
988 with_zstd_include
989 with_zstd_lib
990 enable_rpath
991 with_libiconv_prefix
992 with_libiconv_type
993 enable_sjlj_exceptions
994 with_gcc_major_version_only
995 enable_secureplt
996 enable_mingw_wildcard
997 enable_large_address_aware
998 enable_leading_mingw64_underscores
999 enable_cld
1000 enable_frame_pointer
1001 enable_win32_registry
1002 enable_static
1003 with_pic
1004 enable_fast_install
1005 enable_libtool_lock
1006 enable_ld
1007 enable_gold
1008 with_plugin_ld
1009 enable_gnu_indirect_function
1010 enable_initfini_array
1011 enable_comdat
1012 enable_newlib_nano_formatted_io
1013 enable_standard_branch_protection
1014 enable_fix_cortex_a53_835769
1015 enable_fix_cortex_a53_843419
1016 with_glibc_version
1017 enable_gnu_unique_object
1018 enable_linker_build_id
1019 enable_libssp
1020 enable_default_ssp
1021 with_long_double_128
1022 with_long_double_format
1023 with_gc
1024 with_system_zlib
1025 enable_maintainer_mode
1026 enable_link_mutex
1027 enable_link_serialization
1028 enable_version_specific_runtime_libs
1029 enable_plugin
1030 enable_host_shared
1031 enable_libquadmath_support
1032 with_linker_hash_style
1033 with_diagnostics_color
1034 with_diagnostics_urls
1035 enable_default_pie
1036 enable_cet
1037 enable_s390_excess_float_precision
1039 ac_precious_vars='build_alias
1040 host_alias
1041 target_alias
1043 CFLAGS
1044 LDFLAGS
1045 LIBS
1046 CPPFLAGS
1048 CXXFLAGS
1050 CXXCPP
1052 GMPLIBS
1053 GMPINC
1054 ISLLIBS
1055 ISLINC'
1058 # Initialize some variables set by options.
1059 ac_init_help=
1060 ac_init_version=false
1061 ac_unrecognized_opts=
1062 ac_unrecognized_sep=
1063 # The variables have the same names as the options, with
1064 # dashes changed to underlines.
1065 cache_file=/dev/null
1066 exec_prefix=NONE
1067 no_create=
1068 no_recursion=
1069 prefix=NONE
1070 program_prefix=NONE
1071 program_suffix=NONE
1072 program_transform_name=s,x,x,
1073 silent=
1074 site=
1075 srcdir=
1076 verbose=
1077 x_includes=NONE
1078 x_libraries=NONE
1080 # Installation directory options.
1081 # These are left unexpanded so users can "make install exec_prefix=/foo"
1082 # and all the variables that are supposed to be based on exec_prefix
1083 # by default will actually change.
1084 # Use braces instead of parens because sh, perl, etc. also accept them.
1085 # (The list follows the same order as the GNU Coding Standards.)
1086 bindir='${exec_prefix}/bin'
1087 sbindir='${exec_prefix}/sbin'
1088 libexecdir='${exec_prefix}/libexec'
1089 datarootdir='${prefix}/share'
1090 datadir='${datarootdir}'
1091 sysconfdir='${prefix}/etc'
1092 sharedstatedir='${prefix}/com'
1093 localstatedir='${prefix}/var'
1094 includedir='${prefix}/include'
1095 oldincludedir='/usr/include'
1096 docdir='${datarootdir}/doc/${PACKAGE}'
1097 infodir='${datarootdir}/info'
1098 htmldir='${docdir}'
1099 dvidir='${docdir}'
1100 pdfdir='${docdir}'
1101 psdir='${docdir}'
1102 libdir='${exec_prefix}/lib'
1103 localedir='${datarootdir}/locale'
1104 mandir='${datarootdir}/man'
1106 ac_prev=
1107 ac_dashdash=
1108 for ac_option
1110 # If the previous option needs an argument, assign it.
1111 if test -n "$ac_prev"; then
1112 eval $ac_prev=\$ac_option
1113 ac_prev=
1114 continue
1117 case $ac_option in
1118 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1119 *=) ac_optarg= ;;
1120 *) ac_optarg=yes ;;
1121 esac
1123 # Accept the important Cygnus configure options, so we can diagnose typos.
1125 case $ac_dashdash$ac_option in
1127 ac_dashdash=yes ;;
1129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1130 ac_prev=bindir ;;
1131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1132 bindir=$ac_optarg ;;
1134 -build | --build | --buil | --bui | --bu)
1135 ac_prev=build_alias ;;
1136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1137 build_alias=$ac_optarg ;;
1139 -cache-file | --cache-file | --cache-fil | --cache-fi \
1140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1141 ac_prev=cache_file ;;
1142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1144 cache_file=$ac_optarg ;;
1146 --config-cache | -C)
1147 cache_file=config.cache ;;
1149 -datadir | --datadir | --datadi | --datad)
1150 ac_prev=datadir ;;
1151 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1152 datadir=$ac_optarg ;;
1154 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1155 | --dataroo | --dataro | --datar)
1156 ac_prev=datarootdir ;;
1157 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1158 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1159 datarootdir=$ac_optarg ;;
1161 -disable-* | --disable-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid feature name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "enable_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval enable_$ac_useropt=no ;;
1177 -docdir | --docdir | --docdi | --doc | --do)
1178 ac_prev=docdir ;;
1179 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180 docdir=$ac_optarg ;;
1182 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 ac_prev=dvidir ;;
1184 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185 dvidir=$ac_optarg ;;
1187 -enable-* | --enable-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid feature name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval enable_$ac_useropt=\$ac_optarg ;;
1203 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1204 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1205 | --exec | --exe | --ex)
1206 ac_prev=exec_prefix ;;
1207 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1208 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1209 | --exec=* | --exe=* | --ex=*)
1210 exec_prefix=$ac_optarg ;;
1212 -gas | --gas | --ga | --g)
1213 # Obsolete; use --with-gas.
1214 with_gas=yes ;;
1216 -help | --help | --hel | --he | -h)
1217 ac_init_help=long ;;
1218 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1219 ac_init_help=recursive ;;
1220 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1221 ac_init_help=short ;;
1223 -host | --host | --hos | --ho)
1224 ac_prev=host_alias ;;
1225 -host=* | --host=* | --hos=* | --ho=*)
1226 host_alias=$ac_optarg ;;
1228 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1229 ac_prev=htmldir ;;
1230 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1231 | --ht=*)
1232 htmldir=$ac_optarg ;;
1234 -includedir | --includedir | --includedi | --included | --include \
1235 | --includ | --inclu | --incl | --inc)
1236 ac_prev=includedir ;;
1237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1238 | --includ=* | --inclu=* | --incl=* | --inc=*)
1239 includedir=$ac_optarg ;;
1241 -infodir | --infodir | --infodi | --infod | --info | --inf)
1242 ac_prev=infodir ;;
1243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1244 infodir=$ac_optarg ;;
1246 -libdir | --libdir | --libdi | --libd)
1247 ac_prev=libdir ;;
1248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1249 libdir=$ac_optarg ;;
1251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1252 | --libexe | --libex | --libe)
1253 ac_prev=libexecdir ;;
1254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1255 | --libexe=* | --libex=* | --libe=*)
1256 libexecdir=$ac_optarg ;;
1258 -localedir | --localedir | --localedi | --localed | --locale)
1259 ac_prev=localedir ;;
1260 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1261 localedir=$ac_optarg ;;
1263 -localstatedir | --localstatedir | --localstatedi | --localstated \
1264 | --localstate | --localstat | --localsta | --localst | --locals)
1265 ac_prev=localstatedir ;;
1266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1267 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1268 localstatedir=$ac_optarg ;;
1270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1271 ac_prev=mandir ;;
1272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1273 mandir=$ac_optarg ;;
1275 -nfp | --nfp | --nf)
1276 # Obsolete; use --without-fp.
1277 with_fp=no ;;
1279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1280 | --no-cr | --no-c | -n)
1281 no_create=yes ;;
1283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1285 no_recursion=yes ;;
1287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1289 | --oldin | --oldi | --old | --ol | --o)
1290 ac_prev=oldincludedir ;;
1291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1294 oldincludedir=$ac_optarg ;;
1296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1297 ac_prev=prefix ;;
1298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1299 prefix=$ac_optarg ;;
1301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1302 | --program-pre | --program-pr | --program-p)
1303 ac_prev=program_prefix ;;
1304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1306 program_prefix=$ac_optarg ;;
1308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1309 | --program-suf | --program-su | --program-s)
1310 ac_prev=program_suffix ;;
1311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1313 program_suffix=$ac_optarg ;;
1315 -program-transform-name | --program-transform-name \
1316 | --program-transform-nam | --program-transform-na \
1317 | --program-transform-n | --program-transform- \
1318 | --program-transform | --program-transfor \
1319 | --program-transfo | --program-transf \
1320 | --program-trans | --program-tran \
1321 | --progr-tra | --program-tr | --program-t)
1322 ac_prev=program_transform_name ;;
1323 -program-transform-name=* | --program-transform-name=* \
1324 | --program-transform-nam=* | --program-transform-na=* \
1325 | --program-transform-n=* | --program-transform-=* \
1326 | --program-transform=* | --program-transfor=* \
1327 | --program-transfo=* | --program-transf=* \
1328 | --program-trans=* | --program-tran=* \
1329 | --progr-tra=* | --program-tr=* | --program-t=*)
1330 program_transform_name=$ac_optarg ;;
1332 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1333 ac_prev=pdfdir ;;
1334 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1335 pdfdir=$ac_optarg ;;
1337 -psdir | --psdir | --psdi | --psd | --ps)
1338 ac_prev=psdir ;;
1339 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1340 psdir=$ac_optarg ;;
1342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1343 | -silent | --silent | --silen | --sile | --sil)
1344 silent=yes ;;
1346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1347 ac_prev=sbindir ;;
1348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1349 | --sbi=* | --sb=*)
1350 sbindir=$ac_optarg ;;
1352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1354 | --sharedst | --shareds | --shared | --share | --shar \
1355 | --sha | --sh)
1356 ac_prev=sharedstatedir ;;
1357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1360 | --sha=* | --sh=*)
1361 sharedstatedir=$ac_optarg ;;
1363 -site | --site | --sit)
1364 ac_prev=site ;;
1365 -site=* | --site=* | --sit=*)
1366 site=$ac_optarg ;;
1368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1369 ac_prev=srcdir ;;
1370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1371 srcdir=$ac_optarg ;;
1373 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1374 | --syscon | --sysco | --sysc | --sys | --sy)
1375 ac_prev=sysconfdir ;;
1376 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1377 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1378 sysconfdir=$ac_optarg ;;
1380 -target | --target | --targe | --targ | --tar | --ta | --t)
1381 ac_prev=target_alias ;;
1382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1383 target_alias=$ac_optarg ;;
1385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1386 verbose=yes ;;
1388 -version | --version | --versio | --versi | --vers | -V)
1389 ac_init_version=: ;;
1391 -with-* | --with-*)
1392 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1393 # Reject names that are not valid shell variable names.
1394 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1395 as_fn_error $? "invalid package name: $ac_useropt"
1396 ac_useropt_orig=$ac_useropt
1397 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398 case $ac_user_opts in
1400 "with_$ac_useropt"
1401 "*) ;;
1402 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1403 ac_unrecognized_sep=', ';;
1404 esac
1405 eval with_$ac_useropt=\$ac_optarg ;;
1407 -without-* | --without-*)
1408 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1411 as_fn_error $? "invalid package name: $ac_useropt"
1412 ac_useropt_orig=$ac_useropt
1413 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414 case $ac_user_opts in
1416 "with_$ac_useropt"
1417 "*) ;;
1418 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1419 ac_unrecognized_sep=', ';;
1420 esac
1421 eval with_$ac_useropt=no ;;
1423 --x)
1424 # Obsolete; use --with-x.
1425 with_x=yes ;;
1427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1428 | --x-incl | --x-inc | --x-in | --x-i)
1429 ac_prev=x_includes ;;
1430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1432 x_includes=$ac_optarg ;;
1434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1436 ac_prev=x_libraries ;;
1437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1439 x_libraries=$ac_optarg ;;
1441 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1442 Try \`$0 --help' for more information"
1445 *=*)
1446 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1447 # Reject names that are not valid shell variable names.
1448 case $ac_envvar in #(
1449 '' | [0-9]* | *[!_$as_cr_alnum]* )
1450 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1451 esac
1452 eval $ac_envvar=\$ac_optarg
1453 export $ac_envvar ;;
1456 # FIXME: should be removed in autoconf 3.0.
1457 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1458 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1459 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1460 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 esac
1464 done
1466 if test -n "$ac_prev"; then
1467 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1468 as_fn_error $? "missing argument to $ac_option"
1471 if test -n "$ac_unrecognized_opts"; then
1472 case $enable_option_checking in
1473 no) ;;
1474 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1475 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 esac
1479 # Check all directory arguments for consistency.
1480 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1481 datadir sysconfdir sharedstatedir localstatedir includedir \
1482 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1483 libdir localedir mandir
1485 eval ac_val=\$$ac_var
1486 # Remove trailing slashes.
1487 case $ac_val in
1488 */ )
1489 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1490 eval $ac_var=\$ac_val;;
1491 esac
1492 # Be sure to have absolute directory names.
1493 case $ac_val in
1494 [\\/$]* | ?:[\\/]* ) continue;;
1495 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1496 esac
1497 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1498 done
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1503 build=$build_alias
1504 host=$host_alias
1505 target=$target_alias
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x; then
1509 if test "x$build_alias" = x; then
1510 cross_compiling=maybe
1511 elif test "x$build_alias" != "x$host_alias"; then
1512 cross_compiling=yes
1516 ac_tool_prefix=
1517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1519 test "$silent" = yes && exec 6>/dev/null
1522 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1523 ac_ls_di=`ls -di .` &&
1524 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1525 as_fn_error $? "working directory cannot be determined"
1526 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1527 as_fn_error $? "pwd does not report name of working directory"
1530 # Find the source files, if location was not specified.
1531 if test -z "$srcdir"; then
1532 ac_srcdir_defaulted=yes
1533 # Try the directory containing this script, then the parent directory.
1534 ac_confdir=`$as_dirname -- "$as_myself" ||
1535 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1536 X"$as_myself" : 'X\(//\)[^/]' \| \
1537 X"$as_myself" : 'X\(//\)$' \| \
1538 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1539 $as_echo X"$as_myself" |
1540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1541 s//\1/
1544 /^X\(\/\/\)[^/].*/{
1545 s//\1/
1548 /^X\(\/\/\)$/{
1549 s//\1/
1552 /^X\(\/\).*/{
1553 s//\1/
1556 s/.*/./; q'`
1557 srcdir=$ac_confdir
1558 if test ! -r "$srcdir/$ac_unique_file"; then
1559 srcdir=..
1561 else
1562 ac_srcdir_defaulted=no
1564 if test ! -r "$srcdir/$ac_unique_file"; then
1565 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1566 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1568 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1569 ac_abs_confdir=`(
1570 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1571 pwd)`
1572 # When building in place, set srcdir=.
1573 if test "$ac_abs_confdir" = "$ac_pwd"; then
1574 srcdir=.
1576 # Remove unnecessary trailing slashes from srcdir.
1577 # Double slashes in file names in object file debugging info
1578 # mess up M-x gdb in Emacs.
1579 case $srcdir in
1580 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1581 esac
1582 for ac_var in $ac_precious_vars; do
1583 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1584 eval ac_env_${ac_var}_value=\$${ac_var}
1585 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1586 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1587 done
1590 # Report the --help message.
1592 if test "$ac_init_help" = "long"; then
1593 # Omit some internal or obsolete options to make the list less imposing.
1594 # This message is too long to be a string in the A/UX 3.1 sh.
1595 cat <<_ACEOF
1596 \`configure' configures this package to adapt to many kinds of systems.
1598 Usage: $0 [OPTION]... [VAR=VALUE]...
1600 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1601 VAR=VALUE. See below for descriptions of some of the useful variables.
1603 Defaults for the options are specified in brackets.
1605 Configuration:
1606 -h, --help display this help and exit
1607 --help=short display options specific to this package
1608 --help=recursive display the short help of all the included packages
1609 -V, --version display version information and exit
1610 -q, --quiet, --silent do not print \`checking ...' messages
1611 --cache-file=FILE cache test results in FILE [disabled]
1612 -C, --config-cache alias for \`--cache-file=config.cache'
1613 -n, --no-create do not create output files
1614 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1616 Installation directories:
1617 --prefix=PREFIX install architecture-independent files in PREFIX
1618 [$ac_default_prefix]
1619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1620 [PREFIX]
1622 By default, \`make install' will install all the files in
1623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1624 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1625 for instance \`--prefix=\$HOME'.
1627 For better control, use the options below.
1629 Fine tuning of the installation directories:
1630 --bindir=DIR user executables [EPREFIX/bin]
1631 --sbindir=DIR system admin executables [EPREFIX/sbin]
1632 --libexecdir=DIR program executables [EPREFIX/libexec]
1633 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1634 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1635 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1636 --libdir=DIR object code libraries [EPREFIX/lib]
1637 --includedir=DIR C header files [PREFIX/include]
1638 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1639 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1640 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1641 --infodir=DIR info documentation [DATAROOTDIR/info]
1642 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1643 --mandir=DIR man documentation [DATAROOTDIR/man]
1644 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1645 --htmldir=DIR html documentation [DOCDIR]
1646 --dvidir=DIR dvi documentation [DOCDIR]
1647 --pdfdir=DIR pdf documentation [DOCDIR]
1648 --psdir=DIR ps documentation [DOCDIR]
1649 _ACEOF
1651 cat <<\_ACEOF
1653 Program names:
1654 --program-prefix=PREFIX prepend PREFIX to installed program names
1655 --program-suffix=SUFFIX append SUFFIX to installed program names
1656 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1658 System types:
1659 --build=BUILD configure for building on BUILD [guessed]
1660 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1661 --target=TARGET configure for building compilers for TARGET [HOST]
1662 _ACEOF
1665 if test -n "$ac_init_help"; then
1667 cat <<\_ACEOF
1669 Optional Features:
1670 --disable-option-checking ignore unrecognized --enable/--with options
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1673 --enable-generated-files-in-srcdir
1674 put copies of generated files in source dir intended
1675 for creating source tarballs for users without
1676 texinfo bison or flex
1677 --disable-largefile omit support for large files
1678 --disable-build-format-warnings
1679 don't use -Wformat while building GCC
1680 --enable-werror-always enable -Werror despite compiler version
1681 --enable-checking[=LIST]
1682 enable expensive run-time checks. With LIST, enable
1683 only specific categories of checks. Categories are:
1684 yes,no,all,none,release. Flags are:
1685 assert,df,extra,fold,gc,gcac,gimple,misc,
1686 rtlflag,rtl,runtime,tree,valgrind,types
1687 --enable-coverage[=LEVEL]
1688 enable compiler's code coverage collection. Use to
1689 measure compiler performance and locate unused parts
1690 of the compiler. With LEVEL, specify optimization.
1691 Values are opt, noopt, default is noopt
1692 --enable-gather-detailed-mem-stats
1693 enable detailed memory allocation stats gathering
1694 --enable-valgrind-annotations
1695 enable valgrind runtime interaction
1696 --enable-multilib enable library support for multiple ABIs
1697 --enable-multiarch enable support for multiarch paths
1698 --enable-__cxa_atexit enable __cxa_atexit for C++
1699 --enable-decimal-float={no,yes,bid,dpd}
1700 enable decimal float extension to C. Selecting 'bid'
1701 or 'dpd' choses which decimal floating point format
1702 to use
1703 --enable-fixed-point enable fixed-point arithmetic extension to C
1704 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1705 package
1706 --enable-tls enable or disable generation of tls code overriding
1707 the assembler check for tls support
1708 --enable-vtable-verify enable vtable verification feature
1709 --disable-analyzer disable -fanalyzer static analyzer
1710 --enable-objc-gc enable the use of Boehm's garbage collector with the
1711 GNU Objective-C runtime
1712 --disable-shared don't provide a shared libgcc
1713 --disable-gcov don't provide libgcov and related host tools
1714 --enable-languages=LIST specify which front-ends to build
1715 --disable-rpath do not hardcode runtime library paths
1716 --enable-sjlj-exceptions
1717 arrange to use setjmp/longjmp exception handling
1718 --enable-secureplt enable -msecure-plt by default for PowerPC
1719 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1720 Default to platform configuration
1721 --enable-large-address-aware
1722 Link mingw executables with --large-address-aware
1723 --enable-leading-mingw64-underscores
1724 enable leading underscores on 64 bit mingw targets
1725 --enable-cld enable -mcld by default for 32bit x86
1726 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1727 --disable-win32-registry
1728 disable lookup of installation paths in the Registry
1729 on Windows hosts
1730 --enable-win32-registry enable registry lookup (default)
1731 --enable-win32-registry=KEY
1732 use KEY instead of GCC version as the last portion
1733 of the registry key
1734 --enable-shared[=PKGS] build shared libraries [default=yes]
1735 --enable-static[=PKGS] build static libraries [default=yes]
1736 --enable-fast-install[=PKGS]
1737 optimize for fast installation [default=yes]
1738 --disable-libtool-lock avoid locking (might break parallel builds)
1739 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1740 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1741 --enable-gnu-indirect-function
1742 enable the use of the @gnu_indirect_function to
1743 glibc systems
1744 --enable-initfini-array use .init_array/.fini_array sections
1745 --enable-comdat enable COMDAT group support
1746 --enable-newlib-nano-formatted-io
1747 Use nano version formatted IO
1749 --enable-standard-branch-protection
1750 enable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1752 --disable-standard-branch-protection
1753 disable Branch Target Identification Mechanism and
1754 Return Address Signing by default for AArch64
1757 --enable-fix-cortex-a53-835769
1758 enable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1760 --disable-fix-cortex-a53-835769
1761 disable workaround for AArch64 Cortex-A53 erratum
1762 835769 by default
1765 --enable-fix-cortex-a53-843419
1766 enable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1768 --disable-fix-cortex-a53-843419
1769 disable workaround for AArch64 Cortex-A53 erratum
1770 843419 by default
1772 --enable-gnu-unique-object
1773 enable the use of the @gnu_unique_object ELF
1774 extension on glibc systems
1775 --enable-linker-build-id
1776 compiler will always pass --build-id to linker
1777 --enable-libssp enable linking against libssp
1778 --enable-default-ssp enable Stack Smashing Protection as default
1779 --enable-maintainer-mode
1780 enable make rules and dependencies not useful (and
1781 sometimes confusing) to the casual installer
1782 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1783 thrashing on the build machine
1784 --enable-link-serialization
1785 avoid linking multiple GCC front-ends at once using
1786 make dependencies to avoid thrashing on the build
1787 machine
1788 --enable-version-specific-runtime-libs
1789 specify that runtime libraries should be installed
1790 in a compiler-specific directory
1791 --enable-plugin enable plugin support
1792 --enable-host-shared build host code as shared libraries
1793 --disable-libquadmath-support
1794 disable libquadmath support for Fortran
1795 --enable-default-pie enable Position Independent Executable as default
1796 --enable-cet enable Intel CET in host libraries [default=auto]
1797 --enable-s390-excess-float-precision
1798 on s390 targets, evaluate float with double
1799 precision when in standards-conforming mode
1801 Optional Packages:
1802 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1803 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1804 --with-build-libsubdir=DIR Directory where to find libraries for build system
1805 --with-local-prefix=DIR specifies directory to put local include
1806 --with-native-system-header-dir=dir
1807 use dir as the directory to look for standard
1808 system header files in. Defaults to /usr/include.
1809 --with-build-sysroot=sysroot
1810 use sysroot as the system root during the build
1811 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1812 --with-gxx-include-dir=DIR
1813 specifies directory to put g++ header files
1814 --with-gxx-libcxx-include-dir=DIR
1815 specifies directory to find libc++ header files
1816 --with-cpp-install-dir=DIR
1817 install the user visible C preprocessor in DIR
1818 (relative to PREFIX) as well as PREFIX/bin
1819 --with-gnu-ld arrange to work with GNU ld
1820 --with-ld arrange to use the specified ld (full pathname)
1821 --with-demangler-in-ld try to use demangler in GNU ld
1822 --with-dsymutil arrange to use the specified dsymutil (full
1823 pathname)
1824 --with-gnu-as arrange to work with GNU as
1825 --with-as arrange to use the specified as (full pathname)
1826 --with-stack-clash-protection-guard-size=size
1827 Set the default stack clash protection guard size
1828 for specific targets as a power of two in bytes.
1829 --with-dwarf2 force the default debug format to be DWARF 2 (or
1830 later)
1831 --with-specs=SPECS add SPECS to driver command-line processing
1832 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1833 --with-bugurl=URL Direct users to URL to report a bug
1834 --with-documentation-root-url=URL
1835 Root for documentation URLs
1836 --with-changes-root-url=URL
1837 Root for GCC changes URLs
1838 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1839 SH and x86-64 only)
1840 --with-multilib-generator
1841 Multi-libs configuration string (RISC-V only)
1842 --with-zstd=PATH specify prefix directory for installed zstd library.
1843 Equivalent to --with-zstd-include=PATH/include plus
1844 --with-zstd-lib=PATH/lib
1845 --with-zstd-include=PATH
1846 specify directory for installed zstd include files
1847 --with-zstd-lib=PATH specify directory for the installed zstd library
1848 --with-gnu-ld assume the C compiler uses GNU ld default=no
1849 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1850 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1851 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1852 --with-gcc-major-version-only
1853 use only GCC major number in filesystem paths
1854 --with-pic try to use only PIC/non-PIC objects [default=use
1855 both]
1856 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1857 --with-plugin-ld=[ARG] specify the plugin linker
1858 --with-glibc-version=M.N
1859 assume GCC used with glibc version M.N or later
1860 --with-long-double-128 use 128-bit long double by default
1861 --with-long-double-format={ieee,ibm}
1862 Specify whether PowerPC long double uses IEEE or IBM format
1864 --with-gc={page,zone} this option is not supported anymore. It used to
1865 choose the garbage collection mechanism to use with
1866 the compiler
1867 --with-system-zlib use installed libz
1868 --with-linker-hash-style={sysv,gnu,both}
1869 specify the linker hash style
1870 --with-diagnostics-color={never,auto,auto-if-env,always}
1871 specify the default of -fdiagnostics-color option
1872 auto-if-env stands for -fdiagnostics-color=auto if
1873 GCC_COLOR environment variable is present and
1874 -fdiagnostics-color=never otherwise
1875 --with-diagnostics-urls={never,auto,auto-if-env,always}
1876 specify the default of -fdiagnostics-urls option
1877 auto-if-env stands for -fdiagnostics-urls=auto if
1878 GCC_URLS or TERM_URLS environment variable is
1879 present and -fdiagnostics-urls=never otherwise
1881 Some influential environment variables:
1882 CC C compiler command
1883 CFLAGS C compiler flags
1884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1885 nonstandard directory <lib dir>
1886 LIBS libraries to pass to the linker, e.g. -l<library>
1887 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1888 you have headers in a nonstandard directory <include dir>
1889 CXX C++ compiler command
1890 CXXFLAGS C++ compiler flags
1891 CXXCPP C++ preprocessor
1892 CPP C preprocessor
1893 GMPLIBS How to link GMP
1894 GMPINC How to find GMP include files
1895 ISLLIBS How to link isl
1896 ISLINC How to find isl include files
1898 Use these variables to override the choices made by `configure' or to help
1899 it to find libraries and programs with nonstandard names/locations.
1901 Report bugs to the package provider.
1902 _ACEOF
1903 ac_status=$?
1906 if test "$ac_init_help" = "recursive"; then
1907 # If there are subdirs, report their specific --help.
1908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1909 test -d "$ac_dir" ||
1910 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 continue
1912 ac_builddir=.
1914 case "$ac_dir" in
1915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1918 # A ".." for each directory in $ac_dir_suffix.
1919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1920 case $ac_top_builddir_sub in
1921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1923 esac ;;
1924 esac
1925 ac_abs_top_builddir=$ac_pwd
1926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1927 # for backward compatibility:
1928 ac_top_builddir=$ac_top_build_prefix
1930 case $srcdir in
1931 .) # We are building in place.
1932 ac_srcdir=.
1933 ac_top_srcdir=$ac_top_builddir_sub
1934 ac_abs_top_srcdir=$ac_pwd ;;
1935 [\\/]* | ?:[\\/]* ) # Absolute name.
1936 ac_srcdir=$srcdir$ac_dir_suffix;
1937 ac_top_srcdir=$srcdir
1938 ac_abs_top_srcdir=$srcdir ;;
1939 *) # Relative name.
1940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1941 ac_top_srcdir=$ac_top_build_prefix$srcdir
1942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1943 esac
1944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1946 cd "$ac_dir" || { ac_status=$?; continue; }
1947 # Check for guested configure.
1948 if test -f "$ac_srcdir/configure.gnu"; then
1949 echo &&
1950 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1951 elif test -f "$ac_srcdir/configure"; then
1952 echo &&
1953 $SHELL "$ac_srcdir/configure" --help=recursive
1954 else
1955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1956 fi || ac_status=$?
1957 cd "$ac_pwd" || { ac_status=$?; break; }
1958 done
1961 test -n "$ac_init_help" && exit $ac_status
1962 if $ac_init_version; then
1963 cat <<\_ACEOF
1964 configure
1965 generated by GNU Autoconf 2.69
1967 Copyright (C) 2012 Free Software Foundation, Inc.
1968 This configure script is free software; the Free Software Foundation
1969 gives unlimited permission to copy, distribute and modify it.
1970 _ACEOF
1971 exit
1974 ## ------------------------ ##
1975 ## Autoconf initialization. ##
1976 ## ------------------------ ##
1978 # ac_fn_c_try_compile LINENO
1979 # --------------------------
1980 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_c_try_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext
1985 if { { ac_try="$ac_compile"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_compile") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_c_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest.$ac_objext; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=1
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_compile
2016 # ac_fn_cxx_try_compile LINENO
2017 # ----------------------------
2018 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_compile ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext
2023 if { { ac_try="$ac_compile"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_compile") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest.$ac_objext; then :
2042 ac_retval=0
2043 else
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 ac_retval=1
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_cxx_try_compile
2054 # ac_fn_cxx_try_cpp LINENO
2055 # ------------------------
2056 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_cpp ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_cpp conftest.$ac_ext"
2061 case "(($ac_try" in
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2068 ac_status=$?
2069 if test -s conftest.err; then
2070 grep -v '^ *+' conftest.err >conftest.er1
2071 cat conftest.er1 >&5
2072 mv -f conftest.er1 conftest.err
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } > conftest.i && {
2076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2078 }; then :
2079 ac_retval=0
2080 else
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 ac_retval=1
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2089 } # ac_fn_cxx_try_cpp
2091 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2092 # ---------------------------------------------------------
2093 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2094 # the include files in INCLUDES and setting the cache variable VAR
2095 # accordingly.
2096 ac_fn_cxx_check_header_mongrel ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if eval \${$3+:} false; then :
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 else
2109 # Is the header compilable?
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2111 $as_echo_n "checking $2 usability... " >&6; }
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_cxx_try_compile "$LINENO"; then :
2118 ac_header_compiler=yes
2119 else
2120 ac_header_compiler=no
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2124 $as_echo "$ac_header_compiler" >&6; }
2126 # Is the header present?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2128 $as_echo_n "checking $2 presence... " >&6; }
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_cxx_try_cpp "$LINENO"; then :
2134 ac_header_preproc=yes
2135 else
2136 ac_header_preproc=no
2138 rm -f conftest.err conftest.i conftest.$ac_ext
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2140 $as_echo "$ac_header_preproc" >&6; }
2142 # So? What about this header?
2143 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2144 yes:no: )
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2146 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2148 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 no:yes:* )
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2152 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2154 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2156 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2158 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2160 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 esac
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 eval "$3=\$ac_header_compiler"
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 } # ac_fn_cxx_check_header_mongrel
2178 # ac_fn_cxx_try_run LINENO
2179 # ------------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2182 ac_fn_cxx_try_run ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_link"
2186 case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2193 ac_status=$?
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196 { { case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_try") 2>&5
2203 ac_status=$?
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2206 ac_retval=0
2207 else
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 ac_retval=$ac_status
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_cxx_try_run
2220 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2221 # ---------------------------------------------------------
2222 # Tests whether HEADER exists and can be compiled using the include files in
2223 # INCLUDES, setting the cache variable VAR accordingly.
2224 ac_fn_cxx_check_header_compile ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2235 #include <$2>
2236 _ACEOF
2237 if ac_fn_cxx_try_compile "$LINENO"; then :
2238 eval "$3=yes"
2239 else
2240 eval "$3=no"
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_cxx_check_header_compile
2251 # ac_fn_c_try_cpp LINENO
2252 # ----------------------
2253 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2254 ac_fn_c_try_cpp ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if { { ac_try="$ac_cpp conftest.$ac_ext"
2258 case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261 esac
2262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263 $as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2265 ac_status=$?
2266 if test -s conftest.err; then
2267 grep -v '^ *+' conftest.err >conftest.er1
2268 cat conftest.er1 >&5
2269 mv -f conftest.er1 conftest.err
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } > conftest.i && {
2273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2274 test ! -s conftest.err
2275 }; then :
2276 ac_retval=0
2277 else
2278 $as_echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2281 ac_retval=1
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2286 } # ac_fn_c_try_cpp
2288 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2289 # ----------------------------------------------
2290 # Tries to find the compile-time value of EXPR in a program that includes
2291 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2292 # computed
2293 ac_fn_cxx_compute_int ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if test "$cross_compiling" = yes; then
2297 # Depending upon the size, compute the lo and hi bounds.
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 main ()
2304 static int test_array [1 - 2 * !(($2) >= 0)];
2305 test_array [0] = 0;
2306 return test_array [0];
2309 return 0;
2311 _ACEOF
2312 if ac_fn_cxx_try_compile "$LINENO"; then :
2313 ac_lo=0 ac_mid=0
2314 while :; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2319 main ()
2321 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 test_array [0] = 0;
2323 return test_array [0];
2326 return 0;
2328 _ACEOF
2329 if ac_fn_cxx_try_compile "$LINENO"; then :
2330 ac_hi=$ac_mid; break
2331 else
2332 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2333 if test $ac_lo -le $ac_mid; then
2334 ac_lo= ac_hi=
2335 break
2337 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 done
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2346 main ()
2348 static int test_array [1 - 2 * !(($2) < 0)];
2349 test_array [0] = 0;
2350 return test_array [0];
2353 return 0;
2355 _ACEOF
2356 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 ac_hi=-1 ac_mid=-1
2358 while :; do
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2370 return 0;
2372 _ACEOF
2373 if ac_fn_cxx_try_compile "$LINENO"; then :
2374 ac_lo=$ac_mid; break
2375 else
2376 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2377 if test $ac_mid -le $ac_hi; then
2378 ac_lo= ac_hi=
2379 break
2381 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 done
2385 else
2386 ac_lo= ac_hi=
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 # Binary search between lo and hi bounds.
2392 while test "x$ac_lo" != "x$ac_hi"; do
2393 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2398 main ()
2400 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 test_array [0] = 0;
2402 return test_array [0];
2405 return 0;
2407 _ACEOF
2408 if ac_fn_cxx_try_compile "$LINENO"; then :
2409 ac_hi=$ac_mid
2410 else
2411 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 case $ac_lo in #((
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 '') ac_retval=1 ;;
2418 esac
2419 else
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2425 #include <stdio.h>
2426 #include <stdlib.h>
2428 main ()
2431 FILE *f = fopen ("conftest.val", "w");
2432 if (! f)
2433 return 1;
2434 if (($2) < 0)
2436 long int i = longval ();
2437 if (i != ($2))
2438 return 1;
2439 fprintf (f, "%ld", i);
2441 else
2443 unsigned long int i = ulongval ();
2444 if (i != ($2))
2445 return 1;
2446 fprintf (f, "%lu", i);
2448 /* Do not output a trailing newline, as this causes \r\n confusion
2449 on some platforms. */
2450 return ferror (f) || fclose (f) != 0;
2453 return 0;
2455 _ACEOF
2456 if ac_fn_cxx_try_run "$LINENO"; then :
2457 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 else
2459 ac_retval=1
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462 conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 rm -f conftest.val
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467 as_fn_set_status $ac_retval
2469 } # ac_fn_cxx_compute_int
2471 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2472 # ---------------------------------------------
2473 # Tests whether TYPE exists after having included INCLUDES, setting cache
2474 # variable VAR accordingly.
2475 ac_fn_cxx_check_type ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if eval \${$3+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 eval "$3=no"
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2488 main ()
2490 if (sizeof ($2))
2491 return 0;
2493 return 0;
2495 _ACEOF
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2501 main ()
2503 if (sizeof (($2)))
2504 return 0;
2506 return 0;
2508 _ACEOF
2509 if ac_fn_cxx_try_compile "$LINENO"; then :
2511 else
2512 eval "$3=yes"
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 eval ac_res=\$$3
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520 $as_echo "$ac_res" >&6; }
2521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 } # ac_fn_cxx_check_type
2525 # ac_fn_c_find_intX_t LINENO BITS VAR
2526 # -----------------------------------
2527 # Finds a signed integer type with width BITS, setting cache variable VAR
2528 # accordingly.
2529 ac_fn_c_find_intX_t ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2533 $as_echo_n "checking for int$2_t... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 eval "$3=no"
2538 # Order is important - never check a type that is potentially smaller
2539 # than half of the expected target width.
2540 for ac_type in int$2_t 'int' 'long int' \
2541 'long long int' 'short int' 'signed char'; do
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 $ac_includes_default
2545 enum { N = $2 / 2 - 1 };
2547 main ()
2549 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2550 test_array [0] = 0;
2551 return test_array [0];
2554 return 0;
2556 _ACEOF
2557 if ac_fn_cxx_try_compile "$LINENO"; then :
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 $ac_includes_default
2561 enum { N = $2 / 2 - 1 };
2563 main ()
2565 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2566 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2567 test_array [0] = 0;
2568 return test_array [0];
2571 return 0;
2573 _ACEOF
2574 if ac_fn_cxx_try_compile "$LINENO"; then :
2576 else
2577 case $ac_type in #(
2578 int$2_t) :
2579 eval "$3=yes" ;; #(
2580 *) :
2581 eval "$3=\$ac_type" ;;
2582 esac
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 if eval test \"x\$"$3"\" = x"no"; then :
2589 else
2590 break
2592 done
2594 eval ac_res=\$$3
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599 } # ac_fn_c_find_intX_t
2601 # ac_fn_cxx_try_link LINENO
2602 # -------------------------
2603 # Try to link conftest.$ac_ext, and return whether this succeeded.
2604 ac_fn_cxx_try_link ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 rm -f conftest.$ac_objext conftest$ac_exeext
2608 if { { ac_try="$ac_link"
2609 case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2612 esac
2613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2614 $as_echo "$ac_try_echo"; } >&5
2615 (eval "$ac_link") 2>conftest.err
2616 ac_status=$?
2617 if test -s conftest.err; then
2618 grep -v '^ *+' conftest.err >conftest.er1
2619 cat conftest.er1 >&5
2620 mv -f conftest.er1 conftest.err
2622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2623 test $ac_status = 0; } && {
2624 test -z "$ac_cxx_werror_flag" ||
2625 test ! -s conftest.err
2626 } && test -s conftest$ac_exeext && {
2627 test "$cross_compiling" = yes ||
2628 test -x conftest$ac_exeext
2629 }; then :
2630 ac_retval=0
2631 else
2632 $as_echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 ac_retval=1
2637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2639 # interfere with the next link command; also delete a directory that is
2640 # left behind by Apple's compiler. We do this before executing the actions.
2641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643 as_fn_set_status $ac_retval
2645 } # ac_fn_cxx_try_link
2647 # ac_fn_c_find_uintX_t LINENO BITS VAR
2648 # ------------------------------------
2649 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2650 # accordingly.
2651 ac_fn_c_find_uintX_t ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2655 $as_echo_n "checking for uint$2_t... " >&6; }
2656 if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 eval "$3=no"
2660 # Order is important - never check a type that is potentially smaller
2661 # than half of the expected target width.
2662 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2663 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $ac_includes_default
2668 main ()
2670 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2671 test_array [0] = 0;
2672 return test_array [0];
2675 return 0;
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 case $ac_type in #(
2680 uint$2_t) :
2681 eval "$3=yes" ;; #(
2682 *) :
2683 eval "$3=\$ac_type" ;;
2684 esac
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 if eval test \"x\$"$3"\" = x"no"; then :
2689 else
2690 break
2692 done
2694 eval ac_res=\$$3
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699 } # ac_fn_c_find_uintX_t
2701 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2702 # ------------------------------------------------
2703 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2704 ac_fn_cxx_check_header_preproc ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 #include <$2>
2715 _ACEOF
2716 if ac_fn_cxx_try_cpp "$LINENO"; then :
2717 eval "$3=yes"
2718 else
2719 eval "$3=no"
2721 rm -f conftest.err conftest.i conftest.$ac_ext
2723 eval ac_res=\$$3
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 } # ac_fn_cxx_check_header_preproc
2730 # ac_fn_cxx_check_func LINENO FUNC VAR
2731 # ------------------------------------
2732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2733 ac_fn_cxx_check_func ()
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if eval \${$3+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2745 #define $2 innocuous_$2
2747 /* System header to define __stub macros and hopefully few prototypes,
2748 which can conflict with char $2 (); below.
2749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2750 <limits.h> exists even on freestanding compilers. */
2752 #ifdef __STDC__
2753 # include <limits.h>
2754 #else
2755 # include <assert.h>
2756 #endif
2758 #undef $2
2760 /* Override any GCC internal prototype to avoid an error.
2761 Use char because int might match the return type of a GCC
2762 builtin and then its argument prototype would still apply. */
2763 #ifdef __cplusplus
2764 extern "C"
2765 #endif
2766 char $2 ();
2767 /* The GNU C library defines this for functions which it implements
2768 to always fail with ENOSYS. Some functions are actually named
2769 something starting with __ and the normal name is an alias. */
2770 #if defined __stub_$2 || defined __stub___$2
2771 choke me
2772 #endif
2775 main ()
2777 return $2 ();
2779 return 0;
2781 _ACEOF
2782 if ac_fn_cxx_try_link "$LINENO"; then :
2783 eval "$3=yes"
2784 else
2785 eval "$3=no"
2787 rm -f core conftest.err conftest.$ac_objext \
2788 conftest$ac_exeext conftest.$ac_ext
2790 eval ac_res=\$$3
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795 } # ac_fn_cxx_check_func
2797 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2798 # -----------------------------------------------
2799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2800 # accordingly.
2801 ac_fn_cxx_check_decl ()
2803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804 as_decl_name=`echo $2|sed 's/ *(.*//'`
2805 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2807 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2808 if eval \${$3+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2815 main ()
2817 #ifndef $as_decl_name
2818 #ifdef __cplusplus
2819 (void) $as_decl_use;
2820 #else
2821 (void) $as_decl_name;
2822 #endif
2823 #endif
2826 return 0;
2828 _ACEOF
2829 if ac_fn_cxx_try_compile "$LINENO"; then :
2830 eval "$3=yes"
2831 else
2832 eval "$3=no"
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 eval ac_res=\$$3
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2838 $as_echo "$ac_res" >&6; }
2839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 } # ac_fn_cxx_check_decl
2843 # ac_fn_c_try_link LINENO
2844 # -----------------------
2845 # Try to link conftest.$ac_ext, and return whether this succeeded.
2846 ac_fn_c_try_link ()
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 rm -f conftest.$ac_objext conftest$ac_exeext
2850 if { { ac_try="$ac_link"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_link") 2>conftest.err
2858 ac_status=$?
2859 if test -s conftest.err; then
2860 grep -v '^ *+' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2862 mv -f conftest.er1 conftest.err
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; } && {
2866 test -z "$ac_c_werror_flag" ||
2867 test ! -s conftest.err
2868 } && test -s conftest$ac_exeext && {
2869 test "$cross_compiling" = yes ||
2870 test -x conftest$ac_exeext
2871 }; then :
2872 ac_retval=0
2873 else
2874 $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 ac_retval=1
2879 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2880 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2881 # interfere with the next link command; also delete a directory that is
2882 # left behind by Apple's compiler. We do this before executing the actions.
2883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2885 as_fn_set_status $ac_retval
2887 } # ac_fn_c_try_link
2889 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2890 # ----------------------------------------------
2891 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2892 ac_fn_c_check_header_preproc ()
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896 $as_echo_n "checking for $2... " >&6; }
2897 if eval \${$3+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902 #include <$2>
2903 _ACEOF
2904 if ac_fn_c_try_cpp "$LINENO"; then :
2905 eval "$3=yes"
2906 else
2907 eval "$3=no"
2909 rm -f conftest.err conftest.i conftest.$ac_ext
2911 eval ac_res=\$$3
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_header_preproc
2918 # ac_fn_c_check_func LINENO FUNC VAR
2919 # ----------------------------------
2920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2921 ac_fn_c_check_func ()
2923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2925 $as_echo_n "checking for $2... " >&6; }
2926 if eval \${$3+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2933 #define $2 innocuous_$2
2935 /* System header to define __stub macros and hopefully few prototypes,
2936 which can conflict with char $2 (); below.
2937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 <limits.h> exists even on freestanding compilers. */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2946 #undef $2
2948 /* Override any GCC internal prototype to avoid an error.
2949 Use char because int might match the return type of a GCC
2950 builtin and then its argument prototype would still apply. */
2951 #ifdef __cplusplus
2952 extern "C"
2953 #endif
2954 char $2 ();
2955 /* The GNU C library defines this for functions which it implements
2956 to always fail with ENOSYS. Some functions are actually named
2957 something starting with __ and the normal name is an alias. */
2958 #if defined __stub_$2 || defined __stub___$2
2959 choke me
2960 #endif
2963 main ()
2965 return $2 ();
2967 return 0;
2969 _ACEOF
2970 if ac_fn_c_try_link "$LINENO"; then :
2971 eval "$3=yes"
2972 else
2973 eval "$3=no"
2975 rm -f core conftest.err conftest.$ac_objext \
2976 conftest$ac_exeext conftest.$ac_ext
2978 eval ac_res=\$$3
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2980 $as_echo "$ac_res" >&6; }
2981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983 } # ac_fn_c_check_func
2984 cat >config.log <<_ACEOF
2985 This file contains any messages produced by compilers while
2986 running configure, to aid debugging if configure makes a mistake.
2988 It was created by $as_me, which was
2989 generated by GNU Autoconf 2.69. Invocation command line was
2991 $ $0 $@
2993 _ACEOF
2994 exec 5>>config.log
2996 cat <<_ASUNAME
2997 ## --------- ##
2998 ## Platform. ##
2999 ## --------- ##
3001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3018 _ASUNAME
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 $as_echo "PATH: $as_dir"
3026 done
3027 IFS=$as_save_IFS
3029 } >&5
3031 cat >&5 <<_ACEOF
3034 ## ----------- ##
3035 ## Core tests. ##
3036 ## ----------- ##
3038 _ACEOF
3041 # Keep a trace of the command line.
3042 # Strip out --no-create and --no-recursion so they do not pile up.
3043 # Strip out --silent because we don't want to record it for future runs.
3044 # Also quote any args containing shell meta-characters.
3045 # Make two passes to allow for proper duplicate-argument suppression.
3046 ac_configure_args=
3047 ac_configure_args0=
3048 ac_configure_args1=
3049 ac_must_keep_next=false
3050 for ac_pass in 1 2
3052 for ac_arg
3054 case $ac_arg in
3055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3057 | -silent | --silent | --silen | --sile | --sil)
3058 continue ;;
3059 *\'*)
3060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3061 esac
3062 case $ac_pass in
3063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3065 as_fn_append ac_configure_args1 " '$ac_arg'"
3066 if test $ac_must_keep_next = true; then
3067 ac_must_keep_next=false # Got value, back to normal.
3068 else
3069 case $ac_arg in
3070 *=* | --config-cache | -C | -disable-* | --disable-* \
3071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3073 | -with-* | --with-* | -without-* | --without-* | --x)
3074 case "$ac_configure_args0 " in
3075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3076 esac
3078 -* ) ac_must_keep_next=true ;;
3079 esac
3081 as_fn_append ac_configure_args " '$ac_arg'"
3083 esac
3084 done
3085 done
3086 { ac_configure_args0=; unset ac_configure_args0;}
3087 { ac_configure_args1=; unset ac_configure_args1;}
3089 # When interrupted or exit'd, cleanup temporary files, and complete
3090 # config.log. We remove comments because anyway the quotes in there
3091 # would cause problems or look ugly.
3092 # WARNING: Use '\'' to represent an apostrophe within the trap.
3093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3094 trap 'exit_status=$?
3095 # Save into config.log some information that might help in debugging.
3097 echo
3099 $as_echo "## ---------------- ##
3100 ## Cache variables. ##
3101 ## ---------------- ##"
3102 echo
3103 # The following way of writing the cache mishandles newlines in values,
3105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3106 eval ac_val=\$$ac_var
3107 case $ac_val in #(
3108 *${as_nl}*)
3109 case $ac_var in #(
3110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3112 esac
3113 case $ac_var in #(
3114 _ | IFS | as_nl) ;; #(
3115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3116 *) { eval $ac_var=; unset $ac_var;} ;;
3117 esac ;;
3118 esac
3119 done
3120 (set) 2>&1 |
3121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3122 *${as_nl}ac_space=\ *)
3123 sed -n \
3124 "s/'\''/'\''\\\\'\'''\''/g;
3125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3126 ;; #(
3128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3130 esac |
3131 sort
3133 echo
3135 $as_echo "## ----------------- ##
3136 ## Output variables. ##
3137 ## ----------------- ##"
3138 echo
3139 for ac_var in $ac_subst_vars
3141 eval ac_val=\$$ac_var
3142 case $ac_val in
3143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3144 esac
3145 $as_echo "$ac_var='\''$ac_val'\''"
3146 done | sort
3147 echo
3149 if test -n "$ac_subst_files"; then
3150 $as_echo "## ------------------- ##
3151 ## File substitutions. ##
3152 ## ------------------- ##"
3153 echo
3154 for ac_var in $ac_subst_files
3156 eval ac_val=\$$ac_var
3157 case $ac_val in
3158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3159 esac
3160 $as_echo "$ac_var='\''$ac_val'\''"
3161 done | sort
3162 echo
3165 if test -s confdefs.h; then
3166 $as_echo "## ----------- ##
3167 ## confdefs.h. ##
3168 ## ----------- ##"
3169 echo
3170 cat confdefs.h
3171 echo
3173 test "$ac_signal" != 0 &&
3174 $as_echo "$as_me: caught signal $ac_signal"
3175 $as_echo "$as_me: exit $exit_status"
3176 } >&5
3177 rm -f core *.core core.conftest.* &&
3178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3179 exit $exit_status
3181 for ac_signal in 1 2 13 15; do
3182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3183 done
3184 ac_signal=0
3186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3187 rm -f -r conftest* confdefs.h
3189 $as_echo "/* confdefs.h */" > confdefs.h
3191 # Predefined preprocessor variables.
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_NAME "$PACKAGE_NAME"
3195 _ACEOF
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3199 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3203 _ACEOF
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_STRING "$PACKAGE_STRING"
3207 _ACEOF
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3211 _ACEOF
3213 cat >>confdefs.h <<_ACEOF
3214 #define PACKAGE_URL "$PACKAGE_URL"
3215 _ACEOF
3218 # Let the site file select an alternate cache file if it wants to.
3219 # Prefer an explicitly selected file to automatically selected ones.
3220 ac_site_file1=NONE
3221 ac_site_file2=NONE
3222 if test -n "$CONFIG_SITE"; then
3223 # We do not want a PATH search for config.site.
3224 case $CONFIG_SITE in #((
3225 -*) ac_site_file1=./$CONFIG_SITE;;
3226 */*) ac_site_file1=$CONFIG_SITE;;
3227 *) ac_site_file1=./$CONFIG_SITE;;
3228 esac
3229 elif test "x$prefix" != xNONE; then
3230 ac_site_file1=$prefix/share/config.site
3231 ac_site_file2=$prefix/etc/config.site
3232 else
3233 ac_site_file1=$ac_default_prefix/share/config.site
3234 ac_site_file2=$ac_default_prefix/etc/config.site
3236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3238 test "x$ac_site_file" = xNONE && continue
3239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3242 sed 's/^/| /' "$ac_site_file" >&5
3243 . "$ac_site_file" \
3244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "failed to load site script $ac_site_file
3247 See \`config.log' for more details" "$LINENO" 5; }
3249 done
3251 if test -r "$cache_file"; then
3252 # Some versions of bash will fail to source /dev/null (special files
3253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3256 $as_echo "$as_me: loading cache $cache_file" >&6;}
3257 case $cache_file in
3258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3259 *) . "./$cache_file";;
3260 esac
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3264 $as_echo "$as_me: creating cache $cache_file" >&6;}
3265 >$cache_file
3268 # Check that the precious variables saved in the cache have kept the same
3269 # value.
3270 ac_cache_corrupted=false
3271 for ac_var in $ac_precious_vars; do
3272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3273 eval ac_new_set=\$ac_env_${ac_var}_set
3274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3275 eval ac_new_val=\$ac_env_${ac_var}_value
3276 case $ac_old_set,$ac_new_set in
3277 set,)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,set)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3284 ac_cache_corrupted=: ;;
3285 ,);;
3287 if test "x$ac_old_val" != "x$ac_new_val"; then
3288 # differences in whitespace do not lead to failure.
3289 ac_old_val_w=`echo x $ac_old_val`
3290 ac_new_val_w=`echo x $ac_new_val`
3291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3294 ac_cache_corrupted=:
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3298 eval $ac_var=\$ac_old_val
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3304 fi;;
3305 esac
3306 # Pass precious variables to config.status.
3307 if test "$ac_new_set" = set; then
3308 case $ac_new_val in
3309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3310 *) ac_arg=$ac_var=$ac_new_val ;;
3311 esac
3312 case " $ac_configure_args " in
3313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3315 esac
3317 done
3318 if $ac_cache_corrupted; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3325 ## -------------------- ##
3326 ## Main body of script. ##
3327 ## -------------------- ##
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3344 gcc_version=`cat $srcdir/BASE-VER`
3346 # Determine the host, build, and target systems
3347 ac_aux_dir=
3348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3349 if test -f "$ac_dir/install-sh"; then
3350 ac_aux_dir=$ac_dir
3351 ac_install_sh="$ac_aux_dir/install-sh -c"
3352 break
3353 elif test -f "$ac_dir/install.sh"; then
3354 ac_aux_dir=$ac_dir
3355 ac_install_sh="$ac_aux_dir/install.sh -c"
3356 break
3357 elif test -f "$ac_dir/shtool"; then
3358 ac_aux_dir=$ac_dir
3359 ac_install_sh="$ac_aux_dir/shtool install -c"
3360 break
3362 done
3363 if test -z "$ac_aux_dir"; then
3364 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3367 # These three variables are undocumented and unsupported,
3368 # and are intended to be withdrawn in a future Autoconf release.
3369 # They can cause serious problems if a builder's source tree is in a directory
3370 # whose full name contains unusual characters.
3371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3376 # Make sure we can run config.sub.
3377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3378 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3381 $as_echo_n "checking build system type... " >&6; }
3382 if ${ac_cv_build+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 ac_build_alias=$build_alias
3386 test "x$ac_build_alias" = x &&
3387 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3388 test "x$ac_build_alias" = x &&
3389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3390 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3395 $as_echo "$ac_cv_build" >&6; }
3396 case $ac_cv_build in
3397 *-*-*) ;;
3398 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3399 esac
3400 build=$ac_cv_build
3401 ac_save_IFS=$IFS; IFS='-'
3402 set x $ac_cv_build
3403 shift
3404 build_cpu=$1
3405 build_vendor=$2
3406 shift; shift
3407 # Remember, the first character of IFS is used to create $*,
3408 # except with old shells:
3409 build_os=$*
3410 IFS=$ac_save_IFS
3411 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3415 $as_echo_n "checking host system type... " >&6; }
3416 if ${ac_cv_host+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test "x$host_alias" = x; then
3420 ac_cv_host=$ac_cv_build
3421 else
3422 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3428 $as_echo "$ac_cv_host" >&6; }
3429 case $ac_cv_host in
3430 *-*-*) ;;
3431 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3432 esac
3433 host=$ac_cv_host
3434 ac_save_IFS=$IFS; IFS='-'
3435 set x $ac_cv_host
3436 shift
3437 host_cpu=$1
3438 host_vendor=$2
3439 shift; shift
3440 # Remember, the first character of IFS is used to create $*,
3441 # except with old shells:
3442 host_os=$*
3443 IFS=$ac_save_IFS
3444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3448 $as_echo_n "checking target system type... " >&6; }
3449 if ${ac_cv_target+:} false; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if test "x$target_alias" = x; then
3453 ac_cv_target=$ac_cv_host
3454 else
3455 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3461 $as_echo "$ac_cv_target" >&6; }
3462 case $ac_cv_target in
3463 *-*-*) ;;
3464 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3465 esac
3466 target=$ac_cv_target
3467 ac_save_IFS=$IFS; IFS='-'
3468 set x $ac_cv_target
3469 shift
3470 target_cpu=$1
3471 target_vendor=$2
3472 shift; shift
3473 # Remember, the first character of IFS is used to create $*,
3474 # except with old shells:
3475 target_os=$*
3476 IFS=$ac_save_IFS
3477 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3480 # The aliases save the names the user supplied, while $host etc.
3481 # will get canonicalized.
3482 test -n "$target_alias" &&
3483 test "$program_prefix$program_suffix$program_transform_name" = \
3484 NONENONEs,x,x, &&
3485 program_prefix=${target_alias}-
3487 # Determine the noncanonical host name, for Ada.
3488 case ${build_alias} in
3489 "") build_noncanonical=${build} ;;
3490 *) build_noncanonical=${build_alias} ;;
3491 esac
3493 case ${host_alias} in
3494 "") host_noncanonical=${build_noncanonical} ;;
3495 *) host_noncanonical=${host_alias} ;;
3496 esac
3501 # Determine the noncanonical target name, for directory use.
3502 case ${target_alias} in
3503 "") target_noncanonical=${host_noncanonical} ;;
3504 *) target_noncanonical=${target_alias} ;;
3505 esac
3510 # Used for constructing correct paths for offload compilers.
3511 real_target_noncanonical=${target_noncanonical}
3512 accel_dir_suffix=
3514 # Determine the target- and build-specific subdirectories
3516 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3517 # have matching libraries, they should use host libraries: Makefile.tpl
3518 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3519 # However, they still use the build modules, because the corresponding
3520 # host modules (e.g. bison) are only built for the host when bootstrap
3521 # finishes. So:
3522 # - build_subdir is where we find build modules, and never changes.
3523 # - build_libsubdir is where we find build libraries, and can be overridden.
3525 # Prefix 'build-' so this never conflicts with target_subdir.
3526 build_subdir="build-${build_noncanonical}"
3528 # Check whether --with-build-libsubdir was given.
3529 if test "${with_build_libsubdir+set}" = set; then :
3530 withval=$with_build_libsubdir; build_libsubdir="$withval"
3531 else
3532 build_libsubdir="$build_subdir"
3535 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3536 if ( test $srcdir = . && test -d gcc ) \
3537 || test -d $srcdir/../host-${host_noncanonical}; then
3538 host_subdir="host-${host_noncanonical}"
3539 else
3540 host_subdir=.
3542 # No prefix.
3543 target_subdir=${target_noncanonical}
3546 # Set program_transform_name
3547 test "$program_prefix" != NONE &&
3548 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3549 # Use a double $ so make ignores it.
3550 test "$program_suffix" != NONE &&
3551 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3552 # Double any \ or $.
3553 # By default was `s,x,x', remove it if useless.
3554 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3555 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3558 # Check for bogus environment variables.
3559 # Test if LIBRARY_PATH contains the notation for the current directory
3560 # since this would lead to problems installing/building glibc.
3561 # LIBRARY_PATH contains the current directory if one of the following
3562 # is true:
3563 # - one of the terminals (":" and ";") is the first or last sign
3564 # - two terminals occur directly after each other
3565 # - the path contains an element with a dot in it
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3567 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3568 case ${LIBRARY_PATH} in
3569 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3570 library_path_setting="contains current directory"
3573 library_path_setting="ok"
3575 esac
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3577 $as_echo "$library_path_setting" >&6; }
3578 if test "$library_path_setting" != "ok"; then
3579 as_fn_error $? "
3580 *** LIBRARY_PATH shouldn't contain the current directory when
3581 *** building gcc. Please change the environment variable
3582 *** and run configure again." "$LINENO" 5
3585 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3586 # since this would lead to problems installing/building glibc.
3587 # GCC_EXEC_PREFIX contains the current directory if one of the following
3588 # is true:
3589 # - one of the terminals (":" and ";") is the first or last sign
3590 # - two terminals occur directly after each other
3591 # - the path contains an element with a dot in it
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3593 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3594 case ${GCC_EXEC_PREFIX} in
3595 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3596 gcc_exec_prefix_setting="contains current directory"
3599 gcc_exec_prefix_setting="ok"
3601 esac
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3603 $as_echo "$gcc_exec_prefix_setting" >&6; }
3604 if test "$gcc_exec_prefix_setting" != "ok"; then
3605 as_fn_error $? "
3606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3607 *** building gcc. Please change the environment variable
3608 *** and run configure again." "$LINENO" 5
3611 # -----------
3612 # Directories
3613 # -----------
3615 # Specify the local prefix
3616 local_prefix=
3618 # Check whether --with-local-prefix was given.
3619 if test "${with_local_prefix+set}" = set; then :
3620 withval=$with_local_prefix; case "${withval}" in
3621 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3622 no) ;;
3623 *) local_prefix=$with_local_prefix ;;
3624 esac
3628 # Default local prefix if it is empty
3629 if test x$local_prefix = x; then
3630 local_prefix=/usr/local
3634 # Check whether --with-native-system-header-dir was given.
3635 if test "${with_native_system_header_dir+set}" = set; then :
3636 withval=$with_native_system_header_dir;
3637 case ${with_native_system_header_dir} in
3638 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3639 /* | [A-Za-z]:[\\/]*) ;;
3640 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3641 esac
3642 configured_native_system_header_dir="${withval}"
3644 else
3645 configured_native_system_header_dir=
3650 # Check whether --with-build-sysroot was given.
3651 if test "${with_build_sysroot+set}" = set; then :
3652 withval=$with_build_sysroot; if test x"$withval" != x ; then
3653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3655 else
3656 SYSROOT_CFLAGS_FOR_TARGET=
3661 if test "x$prefix" = xNONE; then
3662 test_prefix=/usr/local
3663 else
3664 test_prefix=$prefix
3666 if test "x$exec_prefix" = xNONE; then
3667 test_exec_prefix=$test_prefix
3668 else
3669 test_exec_prefix=$exec_prefix
3673 # Check whether --with-sysroot was given.
3674 if test "${with_sysroot+set}" = set; then :
3675 withval=$with_sysroot;
3676 case ${with_sysroot} in
3677 /) ;;
3678 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3679 esac
3680 case ${with_sysroot} in
3681 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3682 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3683 esac
3685 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3686 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3688 case ${TARGET_SYSTEM_ROOT} in
3689 "${test_prefix}"|"${test_prefix}/"*|\
3690 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3691 '${prefix}'|'${prefix}/'*|\
3692 '${exec_prefix}'|'${exec_prefix}/'*)
3693 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3694 TARGET_SYSTEM_ROOT_DEFINE="$t"
3696 esac
3698 else
3700 TARGET_SYSTEM_ROOT=
3701 TARGET_SYSTEM_ROOT_DEFINE=
3702 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3710 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3711 # passed in by the toplevel make and thus we'd get different behavior
3712 # depending on where we built the sources.
3713 gcc_gxx_include_dir=
3714 # Specify the g++ header file directory
3716 # Check whether --with-gxx-include-dir was given.
3717 if test "${with_gxx_include_dir+set}" = set; then :
3718 withval=$with_gxx_include_dir; case "${withval}" in
3719 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3720 no) ;;
3721 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3722 esac
3726 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3727 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3728 # relative to the sysroot.
3729 gcc_gxx_include_dir_add_sysroot=0
3731 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3732 if test x${gcc_gxx_include_dir} = x; then
3733 if test x${enable_version_specific_runtime_libs} = xyes; then
3734 gcc_gxx_include_dir='${libsubdir}/include/c++'
3735 else
3736 libstdcxx_incdir='include/c++/$(version)'
3737 if test x$host != x$target; then
3738 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3740 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3742 elif test "${with_sysroot+set}" = set; then
3743 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3744 if test "${gcc_gxx_without_sysroot}"; then
3745 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3746 gcc_gxx_include_dir_add_sysroot=1
3750 # Configuration for an alternate set of C++ headers.
3751 gcc_gxx_libcxx_include_dir=
3752 # Specify the alternate g++ header file directory
3754 # Check whether --with-gxx-libcxx-include-dir was given.
3755 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3756 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3757 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3758 no) ;;
3759 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3760 esac
3764 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3765 # check to see if the latter starts with the former and, upon success, compute
3766 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3767 gcc_gxx_libcxx_include_dir_add_sysroot=0
3769 if test x${gcc_gxx_libcxx_include_dir} != x; then
3771 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3773 else
3774 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3777 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3778 if test x${gcc_gxx_libcxx_include_dir} = x; then
3779 if test x${enable_version_specific_runtime_libs} = xyes; then
3780 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3781 else
3782 libcxx_incdir='libc++_include/c++/$(version)/v1'
3783 if test x$host != x$target; then
3784 libcxx_incdir="$target_alias/$libcxx_incdir"
3786 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3788 elif test "${with_sysroot+set}" = set; then
3789 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3790 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3791 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3792 gcc_gxx_libcxx_include_dir_add_sysroot=1
3797 # Check whether --with-cpp_install_dir was given.
3798 if test "${with_cpp_install_dir+set}" = set; then :
3799 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3800 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3801 elif test x$withval != xno; then
3802 cpp_install_dir=$withval
3807 # We would like to our source tree to be readonly. However when releases or
3808 # pre-releases are generated, the flex/bison generated files as well as the
3809 # various formats of manuals need to be included along with the rest of the
3810 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3811 # just that.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3814 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3815 # Check whether --enable-generated-files-in-srcdir was given.
3816 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3817 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3818 else
3819 generated_files_in_srcdir=no
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3824 $as_echo "$generated_files_in_srcdir" >&6; }
3826 if test "$generated_files_in_srcdir" = "yes"; then
3827 GENINSRC=''
3828 else
3829 GENINSRC='#'
3833 # -------------------
3834 # Find default linker
3835 # -------------------
3837 # With GNU ld
3839 # Check whether --with-gnu-ld was given.
3840 if test "${with_gnu_ld+set}" = set; then :
3841 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3842 else
3843 gnu_ld_flag=no
3847 case $target in
3848 *darwin*)
3849 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3850 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3853 ld64_flag=no
3854 dsymutil_flag=no
3856 esac
3858 # With pre-defined ld
3860 # Check whether --with-ld was given.
3861 if test "${with_ld+set}" = set; then :
3862 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3865 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3866 if test ! -x "$DEFAULT_LINKER"; then
3867 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3868 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3869 gnu_ld_flag=yes
3870 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3871 ld64_flag=yes
3874 cat >>confdefs.h <<_ACEOF
3875 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3876 _ACEOF
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3881 $as_echo_n "checking whether a default linker was specified... " >&6; }
3882 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3883 if test x"$gnu_ld_flag" = x"no"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3885 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3888 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3890 else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3895 # With demangler in GNU ld
3897 # Check whether --with-demangler-in-ld was given.
3898 if test "${with_demangler_in_ld+set}" = set; then :
3899 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3900 else
3901 demangler_in_ld=yes
3905 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3907 # Check whether --with-dsymutil was given.
3908 if test "${with_dsymutil+set}" = set; then :
3909 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3913 dsymutil_vers=
3914 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3915 if test ! -x "$DEFAULT_DSYMUTIL"; then
3916 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3917 else
3918 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3919 dsymutil_flag=yes
3923 cat >>confdefs.h <<_ACEOF
3924 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3925 _ACEOF
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3930 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3931 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3933 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3939 # ----------------------
3940 # Find default assembler
3941 # ----------------------
3943 # With GNU as
3945 # Check whether --with-gnu-as was given.
3946 if test "${with_gnu_as+set}" = set; then :
3947 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3948 else
3949 gas_flag=no
3954 # Check whether --with-as was given.
3955 if test "${with_as+set}" = set; then :
3956 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3959 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3960 if test ! -x "$DEFAULT_ASSEMBLER"; then
3961 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3962 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3963 gas_flag=yes
3966 cat >>confdefs.h <<_ACEOF
3967 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3968 _ACEOF
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3973 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3974 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3975 if test x"$gas_flag" = x"no"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3977 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3980 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3987 # ---------------
3988 # Find C compiler
3989 # ---------------
3991 # If a non-executable a.out is present (e.g. created by GNU as above even if
3992 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3993 # file, even when creating an executable, so an execution test fails.
3994 # Remove possible default executable files to avoid this.
3996 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3997 # Autoconf includes it.
3998 rm -f a.out a.exe b.out
4000 # Find the native compiler
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4028 done
4029 done
4030 IFS=$as_save_IFS
4034 CC=$ac_cv_prog_CC
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_CC"; then
4046 ac_ct_CC=$CC
4047 # Extract the first word of "gcc", so it can be a program name with args.
4048 set dummy gcc; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_CC="gcc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4068 done
4069 done
4070 IFS=$as_save_IFS
4074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_CC" = x; then
4084 CC=""
4085 else
4086 case $cross_compiling:$ac_tool_warned in
4087 yes:)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4091 esac
4092 CC=$ac_ct_CC
4094 else
4095 CC="$ac_cv_prog_CC"
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}cc; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if ${ac_cv_prog_CC+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -n "$CC"; then
4108 ac_cv_prog_CC="$CC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_CC="${ac_tool_prefix}cc"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4123 IFS=$as_save_IFS
4127 CC=$ac_cv_prog_CC
4128 if test -n "$CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 $as_echo "$CC" >&6; }
4131 else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4139 if test -z "$CC"; then
4140 # Extract the first word of "cc", so it can be a program name with args.
4141 set dummy cc; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_CC+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 else
4150 ac_prog_rejected=no
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159 ac_prog_rejected=yes
4160 continue
4162 ac_cv_prog_CC="cc"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4170 if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy $ac_cv_prog_CC
4173 shift
4174 if test $# != 0; then
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4178 shift
4179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4195 if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 for ac_prog in cl.exe
4199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_CC+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC="$CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 CC=$ac_cv_prog_CC
4227 if test -n "$CC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229 $as_echo "$CC" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$CC" && break
4237 done
4239 if test -z "$CC"; then
4240 ac_ct_CC=$CC
4241 for ac_prog in cl.exe
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy $ac_prog; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_CC="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271 if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273 $as_echo "$ac_ct_CC" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$ac_ct_CC" && break
4281 done
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 CC=$ac_ct_CC
4299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $? "no acceptable C compiler found in \$PATH
4302 See \`config.log' for more details" "$LINENO" 5; }
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4306 set X $ac_compile
4307 ac_compiler=$2
4308 for ac_option in --version -v -V -qversion; do
4309 { { ac_try="$ac_compiler $ac_option >&5"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317 ac_status=$?
4318 if test -s conftest.err; then
4319 sed '10a\
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4324 rm -f conftest.er1 conftest.err
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4327 done
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4333 main ()
4337 return 0;
4339 _ACEOF
4340 ac_clean_files_save=$ac_clean_files
4341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4342 # Try to create an executable without -o first, disregard a.out.
4343 # It will help us diagnose broken compilers, and finding out an intuition
4344 # of exeext.
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4346 $as_echo_n "checking whether the C compiler works... " >&6; }
4347 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4349 # The possible output files:
4350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4352 ac_rmfiles=
4353 for ac_file in $ac_files
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4358 esac
4359 done
4360 rm -f $ac_rmfiles
4362 if { { ac_try="$ac_link_default"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_link_default") 2>&5
4370 ac_status=$?
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4376 # so that the user can short-circuit this test for compilers unknown to
4377 # Autoconf.
4378 for ac_file in $ac_files ''
4380 test -f "$ac_file" || continue
4381 case $ac_file in
4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4384 [ab].out )
4385 # We found the default executable, but exeext='' is most
4386 # certainly right.
4387 break;;
4388 *.* )
4389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4390 then :; else
4391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4393 # We set ac_cv_exeext here because the later test for it is not
4394 # safe: cross compilers may not add the suffix if given an `-o'
4395 # argument, so we may need to know it at that point already.
4396 # Even if this section looks crufty: it has the advantage of
4397 # actually working.
4398 break;;
4400 break;;
4401 esac
4402 done
4403 test "$ac_cv_exeext" = no && ac_cv_exeext=
4405 else
4406 ac_file=''
4408 if test -z "$ac_file"; then :
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error 77 "C compiler cannot create executables
4417 See \`config.log' for more details" "$LINENO" 5; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 $as_echo "yes" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4423 $as_echo_n "checking for C compiler default output file name... " >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4425 $as_echo "$ac_file" >&6; }
4426 ac_exeext=$ac_cv_exeext
4428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4429 ac_clean_files=$ac_clean_files_save
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4431 $as_echo_n "checking for suffix of executables... " >&6; }
4432 if { { ac_try="$ac_link"
4433 case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_link") 2>&5
4440 ac_status=$?
4441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }; then :
4443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4445 # work properly (i.e., refer to `conftest.exe'), while it won't with
4446 # `rm'.
4447 for ac_file in conftest.exe conftest conftest.*; do
4448 test -f "$ac_file" || continue
4449 case $ac_file in
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 break;;
4453 * ) break;;
4454 esac
4455 done
4456 else
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4460 See \`config.log' for more details" "$LINENO" 5; }
4462 rm -f conftest conftest$ac_cv_exeext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4464 $as_echo "$ac_cv_exeext" >&6; }
4466 rm -f conftest.$ac_ext
4467 EXEEXT=$ac_cv_exeext
4468 ac_exeext=$EXEEXT
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <stdio.h>
4473 main ()
4475 FILE *f = fopen ("conftest.out", "w");
4476 return ferror (f) || fclose (f) != 0;
4479 return 0;
4481 _ACEOF
4482 ac_clean_files="$ac_clean_files conftest.out"
4483 # Check that the compiler produces executables we can run. If not, either
4484 # the compiler is broken, or we cross compile.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4486 $as_echo_n "checking whether we are cross compiling... " >&6; }
4487 if test "$cross_compiling" != yes; then
4488 { { ac_try="$ac_link"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_link") 2>&5
4496 ac_status=$?
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4499 if { ac_try='./conftest$ac_cv_exeext'
4500 { { case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_try") 2>&5
4507 ac_status=$?
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }; }; then
4510 cross_compiling=no
4511 else
4512 if test "$cross_compiling" = maybe; then
4513 cross_compiling=yes
4514 else
4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $? "cannot run C compiled programs.
4518 If you meant to cross compile, use \`--host'.
4519 See \`config.log' for more details" "$LINENO" 5; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4524 $as_echo "$cross_compiling" >&6; }
4526 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4527 ac_clean_files=$ac_clean_files_save
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4529 $as_echo_n "checking for suffix of object files... " >&6; }
4530 if ${ac_cv_objext+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4541 return 0;
4543 _ACEOF
4544 rm -f conftest.o conftest.obj
4545 if { { ac_try="$ac_compile"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_compile") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
4556 for ac_file in conftest.o conftest.obj conftest.*; do
4557 test -f "$ac_file" || continue;
4558 case $ac_file in
4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4561 break;;
4562 esac
4563 done
4564 else
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details" "$LINENO" 5; }
4573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4576 $as_echo "$ac_cv_objext" >&6; }
4577 OBJEXT=$ac_cv_objext
4578 ac_objext=$OBJEXT
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4581 if ${ac_cv_c_compiler_gnu+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4590 #ifndef __GNUC__
4591 choke me
4592 #endif
4595 return 0;
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_compiler_gnu=yes
4600 else
4601 ac_compiler_gnu=no
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4609 if test $ac_compiler_gnu = yes; then
4610 GCC=yes
4611 else
4612 GCC=
4614 ac_test_CFLAGS=${CFLAGS+set}
4615 ac_save_CFLAGS=$CFLAGS
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4618 if ${ac_cv_prog_cc_g+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 ac_save_c_werror_flag=$ac_c_werror_flag
4622 ac_c_werror_flag=yes
4623 ac_cv_prog_cc_g=no
4624 CFLAGS="-g"
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4629 main ()
4633 return 0;
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_prog_cc_g=yes
4638 else
4639 CFLAGS=""
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main ()
4648 return 0;
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4653 else
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4655 CFLAGS="-g"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4660 main ()
4664 return 0;
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_cv_prog_cc_g=yes
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4678 $as_echo "$ac_cv_prog_cc_g" >&6; }
4679 if test "$ac_test_CFLAGS" = set; then
4680 CFLAGS=$ac_save_CFLAGS
4681 elif test $ac_cv_prog_cc_g = yes; then
4682 if test "$GCC" = yes; then
4683 CFLAGS="-g -O2"
4684 else
4685 CFLAGS="-g"
4687 else
4688 if test "$GCC" = yes; then
4689 CFLAGS="-O2"
4690 else
4691 CFLAGS=
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4696 if ${ac_cv_prog_cc_c89+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_cv_prog_cc_c89=no
4700 ac_save_CC=$CC
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <stdarg.h>
4704 #include <stdio.h>
4705 struct stat;
4706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4707 struct buf { int x; };
4708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4709 static char *e (p, i)
4710 char **p;
4711 int i;
4713 return p[i];
4715 static char *f (char * (*g) (char **, int), char **p, ...)
4717 char *s;
4718 va_list v;
4719 va_start (v,p);
4720 s = g (p, va_arg (v,int));
4721 va_end (v);
4722 return s;
4725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4726 function prototypes and stuff, but not '\xHH' hex character constants.
4727 These don't provoke an error unfortunately, instead are silently treated
4728 as 'x'. The following induces an error, until -std is added to get
4729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4730 array size at least. It's necessary to write '\x00'==0 to get something
4731 that's true only with -std. */
4732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4735 inside strings and character constants. */
4736 #define FOO(x) 'x'
4737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739 int test (int i, double x);
4740 struct s1 {int (*f) (int a);};
4741 struct s2 {int (*f) (double a);};
4742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 int argc;
4744 char **argv;
4746 main ()
4748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4750 return 0;
4752 _ACEOF
4753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 CC="$ac_save_CC $ac_arg"
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_prog_cc_c89=$ac_arg
4760 rm -f core conftest.err conftest.$ac_objext
4761 test "x$ac_cv_prog_cc_c89" != "xno" && break
4762 done
4763 rm -f conftest.$ac_ext
4764 CC=$ac_save_CC
4767 # AC_CACHE_VAL
4768 case "x$ac_cv_prog_cc_c89" in
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4771 $as_echo "none needed" >&6; } ;;
4772 xno)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 $as_echo "unsupported" >&6; } ;;
4776 CC="$CC $ac_cv_prog_cc_c89"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4778 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4779 esac
4780 if test "x$ac_cv_prog_cc_c89" != xno; then :
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 ac_ext=cpp
4791 ac_cpp='$CXXCPP $CPPFLAGS'
4792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4795 if test -z "$CXX"; then
4796 if test -n "$CCC"; then
4797 CXX=$CCC
4798 else
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_CXX+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 CXX=$ac_cv_prog_CXX
4830 if test -n "$CXX"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4832 $as_echo "$CXX" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 test -n "$CXX" && break
4840 done
4842 if test -z "$CXX"; then
4843 ac_ct_CXX=$CXX
4844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4874 if test -n "$ac_ct_CXX"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4876 $as_echo "$ac_ct_CXX" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 test -n "$ac_ct_CXX" && break
4884 done
4886 if test "x$ac_ct_CXX" = x; then
4887 CXX="g++"
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 CXX=$ac_ct_CXX
4901 # Provide some information about the compiler.
4902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4903 set X $ac_compile
4904 ac_compiler=$2
4905 for ac_option in --version -v -V -qversion; do
4906 { { ac_try="$ac_compiler $ac_option >&5"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4912 $as_echo "$ac_try_echo"; } >&5
4913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4914 ac_status=$?
4915 if test -s conftest.err; then
4916 sed '10a\
4917 ... rest of stderr output deleted ...
4918 10q' conftest.err >conftest.er1
4919 cat conftest.er1 >&5
4921 rm -f conftest.er1 conftest.err
4922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923 test $ac_status = 0; }
4924 done
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4928 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4935 main ()
4937 #ifndef __GNUC__
4938 choke me
4939 #endif
4942 return 0;
4944 _ACEOF
4945 if ac_fn_cxx_try_compile "$LINENO"; then :
4946 ac_compiler_gnu=yes
4947 else
4948 ac_compiler_gnu=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4955 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4957 GXX=yes
4958 else
4959 GXX=
4961 ac_test_CXXFLAGS=${CXXFLAGS+set}
4962 ac_save_CXXFLAGS=$CXXFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4964 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4965 if ${ac_cv_prog_cxx_g+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4969 ac_cxx_werror_flag=yes
4970 ac_cv_prog_cxx_g=no
4971 CXXFLAGS="-g"
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4976 main ()
4980 return 0;
4982 _ACEOF
4983 if ac_fn_cxx_try_compile "$LINENO"; then :
4984 ac_cv_prog_cxx_g=yes
4985 else
4986 CXXFLAGS=""
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main ()
4995 return 0;
4997 _ACEOF
4998 if ac_fn_cxx_try_compile "$LINENO"; then :
5000 else
5001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5002 CXXFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main ()
5011 return 0;
5013 _ACEOF
5014 if ac_fn_cxx_try_compile "$LINENO"; then :
5015 ac_cv_prog_cxx_g=yes
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5025 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5026 if test "$ac_test_CXXFLAGS" = set; then
5027 CXXFLAGS=$ac_save_CXXFLAGS
5028 elif test $ac_cv_prog_cxx_g = yes; then
5029 if test "$GXX" = yes; then
5030 CXXFLAGS="-g -O2"
5031 else
5032 CXXFLAGS="-g"
5034 else
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-O2"
5037 else
5038 CXXFLAGS=
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050 if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5052 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_GNATBIND+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$GNATBIND"; then
5059 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 GNATBIND=$ac_cv_prog_GNATBIND
5079 if test -n "$GNATBIND"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5081 $as_echo "$GNATBIND" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5089 if test -z "$ac_cv_prog_GNATBIND"; then
5090 ac_ct_GNATBIND=$GNATBIND
5091 # Extract the first word of "gnatbind", so it can be a program name with args.
5092 set dummy gnatbind; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$ac_ct_GNATBIND"; then
5099 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5119 if test -n "$ac_ct_GNATBIND"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5121 $as_echo "$ac_ct_GNATBIND" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5127 if test "x$ac_ct_GNATBIND" = x; then
5128 GNATBIND="no"
5129 else
5130 case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned=yes ;;
5135 esac
5136 GNATBIND=$ac_ct_GNATBIND
5138 else
5139 GNATBIND="$ac_cv_prog_GNATBIND"
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_GNATMAKE+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$GNATMAKE"; then
5151 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 GNATMAKE=$ac_cv_prog_GNATMAKE
5171 if test -n "$GNATMAKE"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5173 $as_echo "$GNATMAKE" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_GNATMAKE"; then
5182 ac_ct_GNATMAKE=$GNATMAKE
5183 # Extract the first word of "gnatmake", so it can be a program name with args.
5184 set dummy gnatmake; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ac_ct_GNATMAKE"; then
5191 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5211 if test -n "$ac_ct_GNATMAKE"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5213 $as_echo "$ac_ct_GNATMAKE" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_GNATMAKE" = x; then
5220 GNATMAKE="no"
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228 GNATMAKE=$ac_ct_GNATMAKE
5230 else
5231 GNATMAKE="$ac_cv_prog_GNATMAKE"
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5235 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5236 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 cat >conftest.adb <<EOF
5240 pragma Warnings (Off);
5241 with System.CRTL;
5242 pragma Warnings (On);
5243 use type System.CRTL.int64;
5244 procedure conftest is begin null; end conftest;
5246 acx_cv_cc_gcc_supports_ada=no
5247 # There is a bug in old released versions of GCC which causes the
5248 # driver to exit successfully when the appropriate language module
5249 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5250 # Therefore we must check for the error message as well as an
5251 # unsuccessful exit.
5252 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5253 # given a .adb file, but produce no object file. So we must check
5254 # if an object file was really produced to guard against this.
5255 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5256 if test x"$errors" = x && test -f conftest.$ac_objext; then
5257 acx_cv_cc_gcc_supports_ada=yes
5259 rm -f conftest.*
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5262 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5264 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5265 have_gnat=yes
5266 else
5267 have_gnat=no
5272 if test -n "$ac_tool_prefix"; then
5273 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5274 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_prog_GDC+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$GDC"; then
5281 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 GDC=$ac_cv_prog_GDC
5301 if test -n "$GDC"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5303 $as_echo "$GDC" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5311 if test -z "$ac_cv_prog_GDC"; then
5312 ac_ct_GDC=$GDC
5313 # Extract the first word of "gdc", so it can be a program name with args.
5314 set dummy gdc; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$ac_ct_GDC"; then
5321 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_GDC="gdc"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5336 IFS=$as_save_IFS
5340 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5341 if test -n "$ac_ct_GDC"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5343 $as_echo "$ac_ct_GDC" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5349 if test "x$ac_ct_GDC" = x; then
5350 GDC="no"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 GDC=$ac_ct_GDC
5360 else
5361 GDC="$ac_cv_prog_GDC"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5365 $as_echo_n "checking whether the D compiler works... " >&6; }
5366 if ${acx_cv_d_compiler_works+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat >conftest.d <<EOF
5370 module conftest; int main() { return 0; }
5372 acx_cv_d_compiler_works=no
5373 if test "x$GDC" != xno; then
5374 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5375 if test x"$errors" = x && test -f conftest.$ac_objext; then
5376 acx_cv_d_compiler_works=yes
5378 rm -f conftest.*
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5382 $as_echo "$acx_cv_d_compiler_works" >&6; }
5383 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5384 have_gdc=yes
5385 else
5386 have_gdc=no
5390 # Do configure tests with the C++ compiler, since that's what we build with.
5391 ac_ext=cpp
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5398 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5399 # optimizations to be activated explicitly by the toplevel.
5400 case "$CC" in
5401 */prev-gcc/xgcc*) ;;
5402 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5403 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5404 esac
5409 # Determine PICFLAG for target gnatlib.
5414 case "${target}" in
5415 # PIC is the default on some targets or must not be used.
5416 *-*-darwin*)
5417 # For darwin, common symbols are not allowed in MH_DYLIB files
5418 case "${CFLAGS}" in
5419 # If we are using a compiler supporting mdynamic-no-pic
5420 # and the option has been tested as safe to add, then cancel
5421 # it here, since the code generated is incompatible with shared
5422 # libs.
5423 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5424 *) PICFLAG_FOR_TARGET=-fno-common ;;
5425 esac
5427 alpha*-dec-osf5*)
5428 # PIC is the default.
5430 hppa*64*-*-hpux*)
5431 # PIC is the default for 64-bit PA HP-UX.
5433 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5435 i[34567]86-*-mingw* | x86_64-*-mingw*)
5437 i[34567]86-*-interix[3-9]*)
5438 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5439 # Instead, we relocate shared libraries at runtime.
5441 i[34567]86-*-nto-qnx*)
5442 # QNX uses GNU C++, but need to define -shared option too, otherwise
5443 # it will coredump.
5444 PICFLAG_FOR_TARGET='-fPIC -shared'
5446 i[34567]86-pc-msdosdjgpp*)
5447 # DJGPP does not support shared libraries at all.
5449 ia64*-*-hpux*)
5450 # On IA64 HP-UX, PIC is the default but the pic flag
5451 # sets the default TLS model and affects inlining.
5452 PICFLAG_FOR_TARGET=-fPIC
5454 loongarch*-*-*)
5455 PICFLAG_FOR_TARGET=-fpic
5457 mips-sgi-irix6*)
5458 # PIC is the default.
5460 rs6000-ibm-aix* | powerpc-ibm-aix*)
5461 # All AIX code is PIC.
5464 # Some targets support both -fPIC and -fpic, but prefer the latter.
5465 # FIXME: Why?
5466 i[34567]86-*-* | x86_64-*-*)
5467 PICFLAG_FOR_TARGET=-fpic
5469 # FIXME: Override -fPIC default in libgcc only?
5470 sh-*-linux* | sh[2346lbe]*-*-linux*)
5471 PICFLAG_FOR_TARGET=-fpic
5473 # FIXME: Simplify to sh*-*-netbsd*?
5474 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5475 sh64-*-netbsd* | sh64l*-*-netbsd*)
5476 PICFLAG_FOR_TARGET=-fpic
5478 # Default to -fPIC unless specified otherwise.
5480 PICFLAG_FOR_TARGET=-fPIC
5482 esac
5484 # If the user explicitly uses -fpic/-fPIC, keep that.
5485 case "${CFLAGS_FOR_TARGET}" in
5486 *-fpic*)
5487 PICFLAG_FOR_TARGET=-fpic
5489 *-fPIC*)
5490 PICFLAG_FOR_TARGET=-fPIC
5492 esac
5496 # -------------------------
5497 # Check C compiler features
5498 # -------------------------
5501 ac_ext=cpp
5502 ac_cpp='$CXXCPP $CPPFLAGS'
5503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5507 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5508 if test -z "$CXXCPP"; then
5509 if ${ac_cv_prog_CXXCPP+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 # Double quotes because CXXCPP needs to be expanded
5513 for CXXCPP in "$CXX -E" "/lib/cpp"
5515 ac_preproc_ok=false
5516 for ac_cxx_preproc_warn_flag in '' yes
5518 # Use a header file that comes with gcc, so configuring glibc
5519 # with a fresh cross-compiler works.
5520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 # <limits.h> exists even on freestanding compilers.
5522 # On the NeXT, cc -E runs the code through the compiler's parser,
5523 # not just through cpp. "Syntax error" is here to catch this case.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #ifdef __STDC__
5527 # include <limits.h>
5528 #else
5529 # include <assert.h>
5530 #endif
5531 Syntax error
5532 _ACEOF
5533 if ac_fn_cxx_try_cpp "$LINENO"; then :
5535 else
5536 # Broken: fails on valid input.
5537 continue
5539 rm -f conftest.err conftest.i conftest.$ac_ext
5541 # OK, works on sane cases. Now check whether nonexistent headers
5542 # can be detected and how.
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <ac_nonexistent.h>
5546 _ACEOF
5547 if ac_fn_cxx_try_cpp "$LINENO"; then :
5548 # Broken: success on invalid input.
5549 continue
5550 else
5551 # Passes both tests.
5552 ac_preproc_ok=:
5553 break
5555 rm -f conftest.err conftest.i conftest.$ac_ext
5557 done
5558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5559 rm -f conftest.i conftest.err conftest.$ac_ext
5560 if $ac_preproc_ok; then :
5561 break
5564 done
5565 ac_cv_prog_CXXCPP=$CXXCPP
5568 CXXCPP=$ac_cv_prog_CXXCPP
5569 else
5570 ac_cv_prog_CXXCPP=$CXXCPP
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5573 $as_echo "$CXXCPP" >&6; }
5574 ac_preproc_ok=false
5575 for ac_cxx_preproc_warn_flag in '' yes
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #ifdef __STDC__
5586 # include <limits.h>
5587 #else
5588 # include <assert.h>
5589 #endif
5590 Syntax error
5591 _ACEOF
5592 if ac_fn_cxx_try_cpp "$LINENO"; then :
5594 else
5595 # Broken: fails on valid input.
5596 continue
5598 rm -f conftest.err conftest.i conftest.$ac_ext
5600 # OK, works on sane cases. Now check whether nonexistent headers
5601 # can be detected and how.
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <ac_nonexistent.h>
5605 _ACEOF
5606 if ac_fn_cxx_try_cpp "$LINENO"; then :
5607 # Broken: success on invalid input.
5608 continue
5609 else
5610 # Passes both tests.
5611 ac_preproc_ok=:
5612 break
5614 rm -f conftest.err conftest.i conftest.$ac_ext
5616 done
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.i conftest.err conftest.$ac_ext
5619 if $ac_preproc_ok; then :
5621 else
5622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5624 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5625 See \`config.log' for more details" "$LINENO" 5; }
5628 ac_ext=cpp
5629 ac_cpp='$CXXCPP $CPPFLAGS'
5630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5637 if ${ac_cv_path_GREP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -z "$GREP"; then
5641 ac_path_GREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in grep ggrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5651 as_fn_executable_p "$ac_path_GREP" || continue
5652 # Check for GNU ac_path_GREP and select it if it is found.
5653 # Check for GNU $ac_path_GREP
5654 case `"$ac_path_GREP" --version 2>&1` in
5655 *GNU*)
5656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5658 ac_count=0
5659 $as_echo_n 0123456789 >"conftest.in"
5660 while :
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'GREP' >> "conftest.nl"
5666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 as_fn_arith $ac_count + 1 && ac_count=$as_val
5669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_GREP="$ac_path_GREP"
5672 ac_path_GREP_max=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5676 done
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 esac
5680 $ac_path_GREP_found && break 3
5681 done
5682 done
5683 done
5684 IFS=$as_save_IFS
5685 if test -z "$ac_cv_path_GREP"; then
5686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 else
5689 ac_cv_path_GREP=$GREP
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5694 $as_echo "$ac_cv_path_GREP" >&6; }
5695 GREP="$ac_cv_path_GREP"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5699 $as_echo_n "checking for egrep... " >&6; }
5700 if ${ac_cv_path_EGREP+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5704 then ac_cv_path_EGREP="$GREP -E"
5705 else
5706 if test -z "$EGREP"; then
5707 ac_path_EGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_prog in egrep; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5717 as_fn_executable_p "$ac_path_EGREP" || continue
5718 # Check for GNU ac_path_EGREP and select it if it is found.
5719 # Check for GNU $ac_path_EGREP
5720 case `"$ac_path_EGREP" --version 2>&1` in
5721 *GNU*)
5722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5724 ac_count=0
5725 $as_echo_n 0123456789 >"conftest.in"
5726 while :
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'EGREP' >> "conftest.nl"
5732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_EGREP="$ac_path_EGREP"
5738 ac_path_EGREP_max=$ac_count
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5742 done
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 esac
5746 $ac_path_EGREP_found && break 3
5747 done
5748 done
5749 done
5750 IFS=$as_save_IFS
5751 if test -z "$ac_cv_path_EGREP"; then
5752 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5754 else
5755 ac_cv_path_EGREP=$EGREP
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5761 $as_echo "$ac_cv_path_EGREP" >&6; }
5762 EGREP="$ac_cv_path_EGREP"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5766 $as_echo_n "checking for ANSI C header files... " >&6; }
5767 if ${ac_cv_header_stdc+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include <stdlib.h>
5773 #include <stdarg.h>
5774 #include <string.h>
5775 #include <float.h>
5778 main ()
5782 return 0;
5784 _ACEOF
5785 if ac_fn_cxx_try_compile "$LINENO"; then :
5786 ac_cv_header_stdc=yes
5787 else
5788 ac_cv_header_stdc=no
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 if test $ac_cv_header_stdc = yes; then
5793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #include <string.h>
5798 _ACEOF
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800 $EGREP "memchr" >/dev/null 2>&1; then :
5802 else
5803 ac_cv_header_stdc=no
5805 rm -f conftest*
5809 if test $ac_cv_header_stdc = yes; then
5810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <stdlib.h>
5815 _ACEOF
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 $EGREP "free" >/dev/null 2>&1; then :
5819 else
5820 ac_cv_header_stdc=no
5822 rm -f conftest*
5826 if test $ac_cv_header_stdc = yes; then
5827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5828 if test "$cross_compiling" = yes; then :
5830 else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <ctype.h>
5834 #include <stdlib.h>
5835 #if ((' ' & 0x0FF) == 0x020)
5836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5838 #else
5839 # define ISLOWER(c) \
5840 (('a' <= (c) && (c) <= 'i') \
5841 || ('j' <= (c) && (c) <= 'r') \
5842 || ('s' <= (c) && (c) <= 'z'))
5843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5844 #endif
5846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848 main ()
5850 int i;
5851 for (i = 0; i < 256; i++)
5852 if (XOR (islower (i), ISLOWER (i))
5853 || toupper (i) != TOUPPER (i))
5854 return 2;
5855 return 0;
5857 _ACEOF
5858 if ac_fn_cxx_try_run "$LINENO"; then :
5860 else
5861 ac_cv_header_stdc=no
5863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5864 conftest.$ac_objext conftest.beam conftest.$ac_ext
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5870 $as_echo "$ac_cv_header_stdc" >&6; }
5871 if test $ac_cv_header_stdc = yes; then
5873 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5879 inttypes.h stdint.h unistd.h
5880 do :
5881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5882 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5885 cat >>confdefs.h <<_ACEOF
5886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887 _ACEOF
5891 done
5895 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5896 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5897 MINIX=yes
5898 else
5899 MINIX=
5903 if test "$MINIX" = yes; then
5905 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5908 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5911 $as_echo "#define _MINIX 1" >>confdefs.h
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5917 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5918 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5924 # define __EXTENSIONS__ 1
5925 $ac_includes_default
5927 main ()
5931 return 0;
5933 _ACEOF
5934 if ac_fn_cxx_try_compile "$LINENO"; then :
5935 ac_cv_safe_to_define___extensions__=yes
5936 else
5937 ac_cv_safe_to_define___extensions__=no
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5942 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5943 test $ac_cv_safe_to_define___extensions__ = yes &&
5944 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5946 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5948 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5950 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5952 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5956 ac_ext=c
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5963 # On Suns, sometimes $CPP names a directory.
5964 if test -n "$CPP" && test -d "$CPP"; then
5965 CPP=
5967 if test -z "$CPP"; then
5968 if ${ac_cv_prog_CPP+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 # Double quotes because CPP needs to be expanded
5972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5974 ac_preproc_ok=false
5975 for ac_c_preproc_warn_flag in '' yes
5977 # Use a header file that comes with gcc, so configuring glibc
5978 # with a fresh cross-compiler works.
5979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 # <limits.h> exists even on freestanding compilers.
5981 # On the NeXT, cc -E runs the code through the compiler's parser,
5982 # not just through cpp. "Syntax error" is here to catch this case.
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #ifdef __STDC__
5986 # include <limits.h>
5987 #else
5988 # include <assert.h>
5989 #endif
5990 Syntax error
5991 _ACEOF
5992 if ac_fn_c_try_cpp "$LINENO"; then :
5994 else
5995 # Broken: fails on valid input.
5996 continue
5998 rm -f conftest.err conftest.i conftest.$ac_ext
6000 # OK, works on sane cases. Now check whether nonexistent headers
6001 # can be detected and how.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <ac_nonexistent.h>
6005 _ACEOF
6006 if ac_fn_c_try_cpp "$LINENO"; then :
6007 # Broken: success on invalid input.
6008 continue
6009 else
6010 # Passes both tests.
6011 ac_preproc_ok=:
6012 break
6014 rm -f conftest.err conftest.i conftest.$ac_ext
6016 done
6017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018 rm -f conftest.i conftest.err conftest.$ac_ext
6019 if $ac_preproc_ok; then :
6020 break
6023 done
6024 ac_cv_prog_CPP=$CPP
6027 CPP=$ac_cv_prog_CPP
6028 else
6029 ac_cv_prog_CPP=$CPP
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6032 $as_echo "$CPP" >&6; }
6033 ac_preproc_ok=false
6034 for ac_c_preproc_warn_flag in '' yes
6036 # Use a header file that comes with gcc, so configuring glibc
6037 # with a fresh cross-compiler works.
6038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 # <limits.h> exists even on freestanding compilers.
6040 # On the NeXT, cc -E runs the code through the compiler's parser,
6041 # not just through cpp. "Syntax error" is here to catch this case.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #ifdef __STDC__
6045 # include <limits.h>
6046 #else
6047 # include <assert.h>
6048 #endif
6049 Syntax error
6050 _ACEOF
6051 if ac_fn_c_try_cpp "$LINENO"; then :
6053 else
6054 # Broken: fails on valid input.
6055 continue
6057 rm -f conftest.err conftest.i conftest.$ac_ext
6059 # OK, works on sane cases. Now check whether nonexistent headers
6060 # can be detected and how.
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <ac_nonexistent.h>
6064 _ACEOF
6065 if ac_fn_c_try_cpp "$LINENO"; then :
6066 # Broken: success on invalid input.
6067 continue
6068 else
6069 # Passes both tests.
6070 ac_preproc_ok=:
6071 break
6073 rm -f conftest.err conftest.i conftest.$ac_ext
6075 done
6076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 rm -f conftest.i conftest.err conftest.$ac_ext
6078 if $ac_preproc_ok; then :
6080 else
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6084 See \`config.log' for more details" "$LINENO" 5; }
6087 ac_ext=cpp
6088 ac_cpp='$CXXCPP $CPPFLAGS'
6089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6094 $as_echo_n "checking for inline... " >&6; }
6095 if ${ac_cv_c_inline+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 ac_cv_c_inline=no
6099 for ac_kw in inline __inline__ __inline; do
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 #ifndef __cplusplus
6103 typedef int foo_t;
6104 static $ac_kw foo_t static_foo () {return 0; }
6105 $ac_kw foo_t foo () {return 0; }
6106 #endif
6108 _ACEOF
6109 if ac_fn_cxx_try_compile "$LINENO"; then :
6110 ac_cv_c_inline=$ac_kw
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 test "$ac_cv_c_inline" != no && break
6114 done
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6118 $as_echo "$ac_cv_c_inline" >&6; }
6120 case $ac_cv_c_inline in
6121 inline | yes) ;;
6123 case $ac_cv_c_inline in
6124 no) ac_val=;;
6125 *) ac_val=$ac_cv_c_inline;;
6126 esac
6127 cat >>confdefs.h <<_ACEOF
6128 #ifndef __cplusplus
6129 #define inline $ac_val
6130 #endif
6131 _ACEOF
6133 esac
6136 # Check whether --enable-largefile was given.
6137 if test "${enable_largefile+set}" = set; then :
6138 enableval=$enable_largefile;
6141 if test "$enable_largefile" != no; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6144 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6145 if ${ac_cv_sys_largefile_CC+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 ac_cv_sys_largefile_CC=no
6149 if test "$GCC" != yes; then
6150 ac_save_CC=$CC
6151 while :; do
6152 # IRIX 6.2 and later do not support large files by default,
6153 # so use the C compiler's -n32 option if that helps.
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #include <sys/types.h>
6157 /* Check that off_t can represent 2**63 - 1 correctly.
6158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6159 since some C++ compilers masquerading as C compilers
6160 incorrectly reject 9223372036854775807. */
6161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6163 && LARGE_OFF_T % 2147483647 == 1)
6164 ? 1 : -1];
6166 main ()
6170 return 0;
6172 _ACEOF
6173 if ac_fn_cxx_try_compile "$LINENO"; then :
6174 break
6176 rm -f core conftest.err conftest.$ac_objext
6177 CC="$CC -n32"
6178 if ac_fn_cxx_try_compile "$LINENO"; then :
6179 ac_cv_sys_largefile_CC=' -n32'; break
6181 rm -f core conftest.err conftest.$ac_objext
6182 break
6183 done
6184 CC=$ac_save_CC
6185 rm -f conftest.$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6190 if test "$ac_cv_sys_largefile_CC" != no; then
6191 CC=$CC$ac_cv_sys_largefile_CC
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6196 if ${ac_cv_sys_file_offset_bits+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 while :; do
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <sys/types.h>
6203 /* Check that off_t can represent 2**63 - 1 correctly.
6204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6205 since some C++ compilers masquerading as C compilers
6206 incorrectly reject 9223372036854775807. */
6207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6209 && LARGE_OFF_T % 2147483647 == 1)
6210 ? 1 : -1];
6212 main ()
6216 return 0;
6218 _ACEOF
6219 if ac_fn_cxx_try_compile "$LINENO"; then :
6220 ac_cv_sys_file_offset_bits=no; break
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #define _FILE_OFFSET_BITS 64
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6234 ? 1 : -1];
6236 main ()
6240 return 0;
6242 _ACEOF
6243 if ac_fn_cxx_try_compile "$LINENO"; then :
6244 ac_cv_sys_file_offset_bits=64; break
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 ac_cv_sys_file_offset_bits=unknown
6248 break
6249 done
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6252 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6253 case $ac_cv_sys_file_offset_bits in #(
6254 no | unknown) ;;
6256 cat >>confdefs.h <<_ACEOF
6257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6258 _ACEOF
6260 esac
6261 rm -rf conftest*
6262 if test $ac_cv_sys_file_offset_bits = unknown; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6264 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6265 if ${ac_cv_sys_large_files+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 while :; do
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <sys/types.h>
6272 /* Check that off_t can represent 2**63 - 1 correctly.
6273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6274 since some C++ compilers masquerading as C compilers
6275 incorrectly reject 9223372036854775807. */
6276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6278 && LARGE_OFF_T % 2147483647 == 1)
6279 ? 1 : -1];
6281 main ()
6285 return 0;
6287 _ACEOF
6288 if ac_fn_cxx_try_compile "$LINENO"; then :
6289 ac_cv_sys_large_files=no; break
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #define _LARGE_FILES 1
6295 #include <sys/types.h>
6296 /* Check that off_t can represent 2**63 - 1 correctly.
6297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6298 since some C++ compilers masquerading as C compilers
6299 incorrectly reject 9223372036854775807. */
6300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6302 && LARGE_OFF_T % 2147483647 == 1)
6303 ? 1 : -1];
6305 main ()
6309 return 0;
6311 _ACEOF
6312 if ac_fn_cxx_try_compile "$LINENO"; then :
6313 ac_cv_sys_large_files=1; break
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_cv_sys_large_files=unknown
6317 break
6318 done
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6321 $as_echo "$ac_cv_sys_large_files" >&6; }
6322 case $ac_cv_sys_large_files in #(
6323 no | unknown) ;;
6325 cat >>confdefs.h <<_ACEOF
6326 #define _LARGE_FILES $ac_cv_sys_large_files
6327 _ACEOF
6329 esac
6330 rm -rf conftest*
6336 # The cast to long int works around a bug in the HP C Compiler
6337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6339 # This bug is HP SR number 8606223364.
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6341 $as_echo_n "checking size of ino_t... " >&6; }
6342 if ${ac_cv_sizeof_ino_t+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6347 else
6348 if test "$ac_cv_type_ino_t" = yes; then
6349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6351 as_fn_error 77 "cannot compute sizeof (ino_t)
6352 See \`config.log' for more details" "$LINENO" 5; }
6353 else
6354 ac_cv_sizeof_ino_t=0
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6360 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6364 cat >>confdefs.h <<_ACEOF
6365 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6366 _ACEOF
6369 # The cast to long int works around a bug in the HP C Compiler
6370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6372 # This bug is HP SR number 8606223364.
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6374 $as_echo_n "checking size of dev_t... " >&6; }
6375 if ${ac_cv_sizeof_dev_t+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6380 else
6381 if test "$ac_cv_type_dev_t" = yes; then
6382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6384 as_fn_error 77 "cannot compute sizeof (dev_t)
6385 See \`config.log' for more details" "$LINENO" 5; }
6386 else
6387 ac_cv_sizeof_dev_t=0
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6393 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6397 cat >>confdefs.h <<_ACEOF
6398 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6399 _ACEOF
6403 # Select the right stat being able to handle 64bit inodes, if needed.
6404 if test "$enable_largefile" != no; then
6405 case "$host, $build" in
6406 *-*-aix*,*|*,*-*-aix*)
6407 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6409 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6411 fi;;
6412 esac
6416 # sizeof(char) is 1 by definition.
6417 # The cast to long int works around a bug in the HP C Compiler
6418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6420 # This bug is HP SR number 8606223364.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6422 $as_echo_n "checking size of void *... " >&6; }
6423 if ${ac_cv_sizeof_void_p+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6428 else
6429 if test "$ac_cv_type_void_p" = yes; then
6430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 as_fn_error 77 "cannot compute sizeof (void *)
6433 See \`config.log' for more details" "$LINENO" 5; }
6434 else
6435 ac_cv_sizeof_void_p=0
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6441 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6445 cat >>confdefs.h <<_ACEOF
6446 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6447 _ACEOF
6450 # The cast to long int works around a bug in the HP C Compiler
6451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6453 # This bug is HP SR number 8606223364.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6455 $as_echo_n "checking size of short... " >&6; }
6456 if ${ac_cv_sizeof_short+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6461 else
6462 if test "$ac_cv_type_short" = yes; then
6463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6465 as_fn_error 77 "cannot compute sizeof (short)
6466 See \`config.log' for more details" "$LINENO" 5; }
6467 else
6468 ac_cv_sizeof_short=0
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6474 $as_echo "$ac_cv_sizeof_short" >&6; }
6478 cat >>confdefs.h <<_ACEOF
6479 #define SIZEOF_SHORT $ac_cv_sizeof_short
6480 _ACEOF
6483 # The cast to long int works around a bug in the HP C Compiler
6484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6486 # This bug is HP SR number 8606223364.
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6488 $as_echo_n "checking size of int... " >&6; }
6489 if ${ac_cv_sizeof_int+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6494 else
6495 if test "$ac_cv_type_int" = yes; then
6496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6498 as_fn_error 77 "cannot compute sizeof (int)
6499 See \`config.log' for more details" "$LINENO" 5; }
6500 else
6501 ac_cv_sizeof_int=0
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6507 $as_echo "$ac_cv_sizeof_int" >&6; }
6511 cat >>confdefs.h <<_ACEOF
6512 #define SIZEOF_INT $ac_cv_sizeof_int
6513 _ACEOF
6516 # The cast to long int works around a bug in the HP C Compiler
6517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6519 # This bug is HP SR number 8606223364.
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6521 $as_echo_n "checking size of long... " >&6; }
6522 if ${ac_cv_sizeof_long+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6527 else
6528 if test "$ac_cv_type_long" = yes; then
6529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error 77 "cannot compute sizeof (long)
6532 See \`config.log' for more details" "$LINENO" 5; }
6533 else
6534 ac_cv_sizeof_long=0
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6540 $as_echo "$ac_cv_sizeof_long" >&6; }
6544 cat >>confdefs.h <<_ACEOF
6545 #define SIZEOF_LONG $ac_cv_sizeof_long
6546 _ACEOF
6549 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6550 if test "x$ac_cv_type_long_long" = xyes; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define HAVE_LONG_LONG 1
6554 _ACEOF
6556 # The cast to long int works around a bug in the HP C Compiler
6557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6559 # This bug is HP SR number 8606223364.
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6561 $as_echo_n "checking size of long long... " >&6; }
6562 if ${ac_cv_sizeof_long_long+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6567 else
6568 if test "$ac_cv_type_long_long" = yes; then
6569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6571 as_fn_error 77 "cannot compute sizeof (long long)
6572 See \`config.log' for more details" "$LINENO" 5; }
6573 else
6574 ac_cv_sizeof_long_long=0
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6580 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6584 cat >>confdefs.h <<_ACEOF
6585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6586 _ACEOF
6591 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6592 case $ac_cv_c_int8_t in #(
6593 no|yes) ;; #(
6596 cat >>confdefs.h <<_ACEOF
6597 #define int8_t $ac_cv_c_int8_t
6598 _ACEOF
6600 esac
6602 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6603 case $ac_cv_c_int16_t in #(
6604 no|yes) ;; #(
6607 cat >>confdefs.h <<_ACEOF
6608 #define int16_t $ac_cv_c_int16_t
6609 _ACEOF
6611 esac
6613 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6614 case $ac_cv_c_int32_t in #(
6615 no|yes) ;; #(
6618 cat >>confdefs.h <<_ACEOF
6619 #define int32_t $ac_cv_c_int32_t
6620 _ACEOF
6622 esac
6624 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6625 case $ac_cv_c_int64_t in #(
6626 no|yes) ;; #(
6629 cat >>confdefs.h <<_ACEOF
6630 #define int64_t $ac_cv_c_int64_t
6631 _ACEOF
6633 esac
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6637 $as_echo_n "checking for unsigned long long int... " >&6; }
6638 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 ac_cv_type_unsigned_long_long_int=yes
6642 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6646 /* For now, do not test the preprocessor; as of 2007 there are too many
6647 implementations with broken preprocessors. Perhaps this can
6648 be revisited in 2012. In the meantime, code should not expect
6649 #if to work with literals wider than 32 bits. */
6650 /* Test literals. */
6651 long long int ll = 9223372036854775807ll;
6652 long long int nll = -9223372036854775807LL;
6653 unsigned long long int ull = 18446744073709551615ULL;
6654 /* Test constant expressions. */
6655 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6656 ? 1 : -1)];
6657 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6658 ? 1 : -1)];
6659 int i = 63;
6661 main ()
6663 /* Test availability of runtime routines for shift and division. */
6664 long long int llmax = 9223372036854775807ll;
6665 unsigned long long int ullmax = 18446744073709551615ull;
6666 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6667 | (llmax / ll) | (llmax % ll)
6668 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6669 | (ullmax / ull) | (ullmax % ull));
6671 return 0;
6674 _ACEOF
6675 if ac_fn_cxx_try_link "$LINENO"; then :
6677 else
6678 ac_cv_type_unsigned_long_long_int=no
6680 rm -f core conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6685 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6686 if test $ac_cv_type_unsigned_long_long_int = yes; then
6688 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6695 $as_echo_n "checking for long long int... " >&6; }
6696 if ${ac_cv_type_long_long_int+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 ac_cv_type_long_long_int=yes
6700 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6701 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6702 if test $ac_cv_type_long_long_int = yes; then
6703 if test "$cross_compiling" = yes; then :
6705 else
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #include <limits.h>
6709 #ifndef LLONG_MAX
6710 # define HALF \
6711 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6712 # define LLONG_MAX (HALF - 1 + HALF)
6713 #endif
6715 main ()
6717 long long int n = 1;
6718 int i;
6719 for (i = 0; ; i++)
6721 long long int m = n << i;
6722 if (m >> i != n)
6723 return 1;
6724 if (LLONG_MAX / 2 < m)
6725 break;
6727 return 0;
6729 return 0;
6731 _ACEOF
6732 if ac_fn_cxx_try_run "$LINENO"; then :
6734 else
6735 ac_cv_type_long_long_int=no
6737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6738 conftest.$ac_objext conftest.beam conftest.$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6745 $as_echo "$ac_cv_type_long_long_int" >&6; }
6746 if test $ac_cv_type_long_long_int = yes; then
6748 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6754 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6755 if test "x$ac_cv_type_intmax_t" = xyes; then :
6757 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6759 else
6760 test $ac_cv_type_long_long_int = yes \
6761 && ac_type='long long int' \
6762 || ac_type='long int'
6764 cat >>confdefs.h <<_ACEOF
6765 #define intmax_t $ac_type
6766 _ACEOF
6772 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6773 if test "x$ac_cv_type_intptr_t" = xyes; then :
6775 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6777 else
6778 for ac_type in 'int' 'long int' 'long long int'; do
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 $ac_includes_default
6783 main ()
6785 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6786 test_array [0] = 0;
6787 return test_array [0];
6790 return 0;
6792 _ACEOF
6793 if ac_fn_cxx_try_compile "$LINENO"; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define intptr_t $ac_type
6797 _ACEOF
6799 ac_type=
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 test -z "$ac_type" && break
6803 done
6807 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6808 case $ac_cv_c_uint8_t in #(
6809 no|yes) ;; #(
6812 $as_echo "#define _UINT8_T 1" >>confdefs.h
6815 cat >>confdefs.h <<_ACEOF
6816 #define uint8_t $ac_cv_c_uint8_t
6817 _ACEOF
6819 esac
6821 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6822 case $ac_cv_c_uint16_t in #(
6823 no|yes) ;; #(
6827 cat >>confdefs.h <<_ACEOF
6828 #define uint16_t $ac_cv_c_uint16_t
6829 _ACEOF
6831 esac
6833 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6834 case $ac_cv_c_uint32_t in #(
6835 no|yes) ;; #(
6838 $as_echo "#define _UINT32_T 1" >>confdefs.h
6841 cat >>confdefs.h <<_ACEOF
6842 #define uint32_t $ac_cv_c_uint32_t
6843 _ACEOF
6845 esac
6847 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6848 case $ac_cv_c_uint64_t in #(
6849 no|yes) ;; #(
6852 $as_echo "#define _UINT64_T 1" >>confdefs.h
6855 cat >>confdefs.h <<_ACEOF
6856 #define uint64_t $ac_cv_c_uint64_t
6857 _ACEOF
6859 esac
6863 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6864 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6866 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6868 else
6869 test $ac_cv_type_unsigned_long_long_int = yes \
6870 && ac_type='unsigned long long int' \
6871 || ac_type='unsigned long int'
6873 cat >>confdefs.h <<_ACEOF
6874 #define uintmax_t $ac_type
6875 _ACEOF
6881 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6882 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6884 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6886 else
6887 for ac_type in 'unsigned int' 'unsigned long int' \
6888 'unsigned long long int'; do
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 $ac_includes_default
6893 main ()
6895 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6896 test_array [0] = 0;
6897 return test_array [0];
6900 return 0;
6902 _ACEOF
6903 if ac_fn_cxx_try_compile "$LINENO"; then :
6905 cat >>confdefs.h <<_ACEOF
6906 #define uintptr_t $ac_type
6907 _ACEOF
6909 ac_type=
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 test -z "$ac_type" && break
6913 done
6929 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6930 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6933 # check what underlying integer type int64_t uses
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6935 $as_echo_n "checking for int64_t underlying type... " >&6; }
6936 if ${ac_cv_int64_t_type+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6943 #ifdef HAVE_STDINT_H
6944 #include <stdint.h>
6945 #endif
6946 template <typename T> struct X { };
6947 template <>
6948 struct X<long> { typedef long t; };
6951 main ()
6953 X<int64_t>::t x;
6955 return 0;
6957 _ACEOF
6958 if ac_fn_cxx_try_compile "$LINENO"; then :
6959 ac_cv_int64_t_type=long
6960 else
6961 ac_cv_int64_t_type="long long"
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6966 $as_echo "$ac_cv_int64_t_type" >&6; }
6967 if test "$ac_cv_int64_t_type" = "long"; then
6969 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6971 else
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6975 #ifdef HAVE_STDINT_H
6976 #include <stdint.h>
6977 #endif
6978 template <typename T> struct X { };
6979 template <>
6980 struct X<long long> { typedef long long t; };
6983 main ()
6985 X<int64_t>::t x;
6987 return 0;
6989 _ACEOF
6990 if ac_fn_cxx_try_compile "$LINENO"; then :
6992 else
6993 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6999 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7000 if ${ac_cv_std_swap_in_utility+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7007 #include <utility>
7010 main ()
7012 int a, b; std::swap(a,b);
7014 return 0;
7016 _ACEOF
7017 if ac_fn_cxx_try_compile "$LINENO"; then :
7018 ac_cv_std_swap_in_utility=yes
7019 else
7020 ac_cv_std_swap_in_utility=no
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7025 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7026 if test $ac_cv_std_swap_in_utility = yes; then
7028 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7032 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7033 # If the host compiler is affected by the bug, and we build with optimization
7034 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7035 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7036 # Since there is no reliable feature check for the presence of this bug,
7037 # we simply use a GCC version number check. (This should never trigger for
7038 # stages 2 or 3 of a native bootstrap.)
7039 aliasing_flags=
7040 if test "$GCC" = yes; then
7041 saved_CXXFLAGS="$CXXFLAGS"
7043 # The following test compilation will succeed if and only if $CXX accepts
7044 # -fno-strict-aliasing *and* is older than GCC 4.3.
7045 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7047 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7052 #error compiler not affected by placement new aliasing bug
7053 #endif
7055 _ACEOF
7056 if ac_fn_cxx_try_compile "$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 CXXFLAGS="$saved_CXXFLAGS"
7071 # ---------------------
7072 # Warnings and checking
7073 # ---------------------
7075 # Check $CC warning features (if it's GCC).
7076 # We want to use -pedantic, but we don't want warnings about
7077 # * 'long long'
7078 # * variadic macros
7079 # * overlong strings
7080 # * C++11 narrowing conversions in { }
7081 # So, we only use -pedantic if we can disable those warnings.
7083 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7084 # Check whether --enable-build-format-warnings was given.
7085 if test "${enable_build_format_warnings+set}" = set; then :
7086 enableval=$enable_build_format_warnings;
7087 else
7088 enable_build_format_warnings=yes
7091 if test $enable_build_format_warnings = no; then :
7092 wf_opt=-Wno-format
7093 else
7094 wf_opt=
7096 ac_ext=cpp
7097 ac_cpp='$CXXCPP $CPPFLAGS'
7098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7102 loose_warn=
7103 save_CXXFLAGS="$CXXFLAGS"
7104 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7105 # Do the check with the no- prefix removed since gcc silently
7106 # accepts any -Wno-* option on purpose
7107 case $real_option in
7108 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7109 *) option=$real_option ;;
7110 esac
7111 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7114 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7115 if eval \${$as_acx_Woption+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 CXXFLAGS="$option"
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7123 main ()
7127 return 0;
7129 _ACEOF
7130 if ac_fn_cxx_try_compile "$LINENO"; then :
7131 eval "$as_acx_Woption=yes"
7132 else
7133 eval "$as_acx_Woption=no"
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 eval ac_res=\$$as_acx_Woption
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7140 $as_echo "$ac_res" >&6; }
7141 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7142 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7144 done
7145 CXXFLAGS="$save_CXXFLAGS"
7146 ac_ext=cpp
7147 ac_cpp='$CXXCPP $CPPFLAGS'
7148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7154 ac_ext=c
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160 c_loose_warn=
7161 save_CFLAGS="$CFLAGS"
7162 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7163 # Do the check with the no- prefix removed since gcc silently
7164 # accepts any -Wno-* option on purpose
7165 case $real_option in
7166 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7167 *) option=$real_option ;;
7168 esac
7169 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7172 $as_echo_n "checking whether $CC supports $option... " >&6; }
7173 if eval \${$as_acx_Woption+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 CFLAGS="$option"
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7181 main ()
7185 return 0;
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 eval "$as_acx_Woption=yes"
7190 else
7191 eval "$as_acx_Woption=no"
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 eval ac_res=\$$as_acx_Woption
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7198 $as_echo "$ac_res" >&6; }
7199 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7200 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7202 done
7203 CFLAGS="$save_CFLAGS"
7204 ac_ext=cpp
7205 ac_cpp='$CXXCPP $CPPFLAGS'
7206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7211 ac_ext=cpp
7212 ac_cpp='$CXXCPP $CPPFLAGS'
7213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7217 strict_warn=
7218 save_CXXFLAGS="$CXXFLAGS"
7219 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7220 # Do the check with the no- prefix removed since gcc silently
7221 # accepts any -Wno-* option on purpose
7222 case $real_option in
7223 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7224 *) option=$real_option ;;
7225 esac
7226 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7229 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7230 if eval \${$as_acx_Woption+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 CXXFLAGS="$option"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7238 main ()
7242 return 0;
7244 _ACEOF
7245 if ac_fn_cxx_try_compile "$LINENO"; then :
7246 eval "$as_acx_Woption=yes"
7247 else
7248 eval "$as_acx_Woption=no"
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 eval ac_res=\$$as_acx_Woption
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7255 $as_echo "$ac_res" >&6; }
7256 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7257 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7259 done
7260 CXXFLAGS="$save_CXXFLAGS"
7261 ac_ext=cpp
7262 ac_cpp='$CXXCPP $CPPFLAGS'
7263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7268 ac_ext=c
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274 c_strict_warn=
7275 save_CFLAGS="$CFLAGS"
7276 for real_option in -Wold-style-definition -Wc++-compat; do
7277 # Do the check with the no- prefix removed since gcc silently
7278 # accepts any -Wno-* option on purpose
7279 case $real_option in
7280 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7281 *) option=$real_option ;;
7282 esac
7283 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7286 $as_echo_n "checking whether $CC supports $option... " >&6; }
7287 if eval \${$as_acx_Woption+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 CFLAGS="$option"
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7295 main ()
7299 return 0;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"; then :
7303 eval "$as_acx_Woption=yes"
7304 else
7305 eval "$as_acx_Woption=no"
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 eval ac_res=\$$as_acx_Woption
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7312 $as_echo "$ac_res" >&6; }
7313 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7314 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7316 done
7317 CFLAGS="$save_CFLAGS"
7318 ac_ext=cpp
7319 ac_cpp='$CXXCPP $CPPFLAGS'
7320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7325 ac_ext=cpp
7326 ac_cpp='$CXXCPP $CPPFLAGS'
7327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7331 # Do the check with the no- prefix removed from the warning options
7332 # since gcc silently accepts any -Wno-* option on purpose
7333 if test "$GXX" = yes; then :
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7335 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7336 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 save_CXXFLAGS="$CXXFLAGS"
7340 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7345 main ()
7349 return 0;
7351 _ACEOF
7352 if ac_fn_cxx_try_compile "$LINENO"; then :
7353 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7354 else
7355 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 CXXFLAGS="$save_CXXFLAGS"
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7361 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7362 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7363 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7367 ac_ext=cpp
7368 ac_cpp='$CXXCPP $CPPFLAGS'
7369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7374 ac_ext=cpp
7375 ac_cpp='$CXXCPP $CPPFLAGS'
7376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7380 # Check whether --enable-werror-always was given.
7381 if test "${enable_werror_always+set}" = set; then :
7382 enableval=$enable_werror_always;
7383 else
7384 enable_werror_always=no
7387 if test $enable_werror_always = yes; then :
7388 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7391 ac_ext=cpp
7392 ac_cpp='$CXXCPP $CPPFLAGS'
7393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7399 # The above macros do nothing if the compiler is not GCC. However, the
7400 # Makefile has more goo to add other flags, so these variables are used
7401 # to enable warnings only for GCC.
7402 warn_cflags=
7403 warn_cxxflags=
7404 if test "x$GCC" = "xyes"; then
7405 warn_cflags='$(GCC_WARN_CFLAGS)'
7406 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7411 # Disable exceptions and RTTI if building with g++
7412 ac_ext=c
7413 ac_cpp='$CPP $CPPFLAGS'
7414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418 noexception_flags=
7419 save_CFLAGS="$CFLAGS"
7420 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7421 # Do the check with the no- prefix removed since gcc silently
7422 # accepts any -Wno-* option on purpose
7423 case $real_option in
7424 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7425 *) option=$real_option ;;
7426 esac
7427 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7430 $as_echo_n "checking whether $CC supports $option... " >&6; }
7431 if eval \${$as_acx_Woption+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 CFLAGS="$option"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 main ()
7443 return 0;
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447 eval "$as_acx_Woption=yes"
7448 else
7449 eval "$as_acx_Woption=no"
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 eval ac_res=\$$as_acx_Woption
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7456 $as_echo "$ac_res" >&6; }
7457 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7458 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7460 done
7461 CFLAGS="$save_CFLAGS"
7462 ac_ext=cpp
7463 ac_cpp='$CXXCPP $CPPFLAGS'
7464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7470 # Enable expensive internal checks
7471 is_release=
7472 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7473 is_release=yes
7476 # Check whether --enable-checking was given.
7477 if test "${enable_checking+set}" = set; then :
7478 enableval=$enable_checking; ac_checking_flags="${enableval}"
7479 else
7481 # Determine the default checks.
7482 if test x$is_release = x ; then
7483 ac_checking_flags=yes,extra
7484 else
7485 ac_checking_flags=release
7489 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7490 for check in release $ac_checking_flags
7492 case $check in
7493 # these set all the flags to specific states
7494 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7495 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7496 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7497 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7498 ac_tree_checking=1 ; ac_valgrind_checking= ;
7499 ac_types_checking=1 ;;
7500 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7501 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7502 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7503 ac_rtlflag_checking= ; ac_runtime_checking= ;
7504 ac_tree_checking= ; ac_valgrind_checking= ;
7505 ac_types_checking= ;;
7506 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7507 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7508 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7509 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7510 ac_tree_checking=1 ; ac_valgrind_checking= ;
7511 ac_types_checking=1 ;;
7512 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7513 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7514 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7515 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7516 ac_tree_checking= ; ac_valgrind_checking= ;
7517 ac_types_checking= ;;
7518 # these enable particular checks
7519 assert) ac_assert_checking=1 ;;
7520 df) ac_df_checking=1 ;;
7521 extra) ac_extra_checking=1 ;;
7522 fold) ac_fold_checking=1 ;;
7523 gc) ac_gc_checking=1 ;;
7524 gcac) ac_gc_always_collect=1 ;;
7525 gimple) ac_gimple_checking=1 ;;
7526 misc) ac_checking=1 ;;
7527 rtl) ac_rtl_checking=1 ;;
7528 rtlflag) ac_rtlflag_checking=1 ;;
7529 runtime) ac_runtime_checking=1 ;;
7530 tree) ac_tree_checking=1 ;;
7531 types) ac_types_checking=1 ;;
7532 valgrind) ac_valgrind_checking=1 ;;
7533 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7534 esac
7535 done
7536 IFS="$ac_save_IFS"
7538 nocommon_flag=""
7539 if test x$ac_checking != x ; then
7541 $as_echo "#define CHECKING_P 1" >>confdefs.h
7543 nocommon_flag=-fno-common
7544 else
7545 $as_echo "#define CHECKING_P 0" >>confdefs.h
7549 if test x$ac_extra_checking != x ; then
7551 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7553 else
7554 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7557 if test x$ac_df_checking != x ; then
7559 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7562 if test x$ac_assert_checking != x ; then
7564 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7567 if test x$ac_gimple_checking != x ; then
7569 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7573 if test x$ac_runtime_checking != x ; then
7575 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7578 if test x$ac_tree_checking != x ; then
7580 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7582 TREECHECKING=yes
7584 if test x$ac_types_checking != x ; then
7586 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7590 if test x$ac_rtl_checking != x ; then
7592 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7595 if test x$ac_rtlflag_checking != x ; then
7597 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7600 if test x$ac_gc_checking != x ; then
7602 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7605 if test x$ac_gc_always_collect != x ; then
7607 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7610 if test x$ac_fold_checking != x ; then
7612 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7615 valgrind_path_defines=
7616 valgrind_command=
7618 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7619 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7620 have_valgrind_h=yes
7621 else
7622 have_valgrind_h=no
7627 # It is certainly possible that there's valgrind but no valgrind.h.
7628 # GCC relies on making annotations so we must have both.
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7630 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 #include <valgrind/memcheck.h>
7634 #ifndef VALGRIND_DISCARD
7635 #error VALGRIND_DISCARD not defined
7636 #endif
7637 _ACEOF
7638 if ac_fn_cxx_try_cpp "$LINENO"; then :
7639 gcc_cv_header_valgrind_memcheck_h=yes
7640 else
7641 gcc_cv_header_valgrind_memcheck_h=no
7643 rm -f conftest.err conftest.i conftest.$ac_ext
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7645 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7647 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <memcheck.h>
7651 #ifndef VALGRIND_DISCARD
7652 #error VALGRIND_DISCARD not defined
7653 #endif
7654 _ACEOF
7655 if ac_fn_cxx_try_cpp "$LINENO"; then :
7656 gcc_cv_header_memcheck_h=yes
7657 else
7658 gcc_cv_header_memcheck_h=no
7660 rm -f conftest.err conftest.i conftest.$ac_ext
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7662 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7663 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7665 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7668 if test $gcc_cv_header_memcheck_h = yes; then
7670 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7674 if test x$ac_valgrind_checking != x ; then
7676 # Prepare PATH_SEPARATOR.
7677 # The user is always right.
7678 if test "${PATH_SEPARATOR+set}" != set; then
7679 echo "#! /bin/sh" >conf$$.sh
7680 echo "exit 0" >>conf$$.sh
7681 chmod +x conf$$.sh
7682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7683 PATH_SEPARATOR=';'
7684 else
7685 PATH_SEPARATOR=:
7687 rm -f conf$$.sh
7690 # Find out how to test for executable files. Don't use a zero-byte file,
7691 # as systems may use methods other than mode bits to determine executability.
7692 cat >conf$$.file <<_ASEOF
7693 #! /bin/sh
7694 exit 0
7695 _ASEOF
7696 chmod +x conf$$.file
7697 if test -x conf$$.file >/dev/null 2>&1; then
7698 ac_executable_p="test -x"
7699 else
7700 ac_executable_p="test -f"
7702 rm -f conf$$.file
7704 # Extract the first word of "valgrind", so it can be a program name with args.
7705 set dummy valgrind; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_valgrind_path+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 case "$valgrind_path" in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7717 for ac_dir in $PATH; do
7718 IFS="$ac_save_IFS"
7719 test -z "$ac_dir" && ac_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7722 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7723 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7724 break 2
7727 done
7728 done
7729 IFS="$ac_save_IFS"
7731 esac
7733 valgrind_path="$ac_cv_path_valgrind_path"
7734 if test -n "$valgrind_path"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7736 $as_echo "$valgrind_path" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7742 if test "x$valgrind_path" = "x" \
7743 || (test $have_valgrind_h = no \
7744 && test $gcc_cv_header_memcheck_h = no \
7745 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7746 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7748 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7749 valgrind_command="$valgrind_path -q"
7751 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7757 # Enable code coverage collection
7758 # Check whether --enable-coverage was given.
7759 if test "${enable_coverage+set}" = set; then :
7760 enableval=$enable_coverage; case "${enableval}" in
7761 yes|noopt)
7762 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7764 opt)
7765 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7768 # a.k.a. --disable-coverage
7769 coverage_flags=""
7772 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7774 esac
7775 else
7776 coverage_flags=""
7781 # Check whether --enable-gather-detailed-mem-stats was given.
7782 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7783 enableval=$enable_gather_detailed_mem_stats;
7784 else
7785 enable_gather_detailed_mem_stats=no
7788 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7790 cat >>confdefs.h <<_ACEOF
7791 #define GATHER_STATISTICS $gather_stats
7792 _ACEOF
7795 # Check whether --enable-valgrind-annotations was given.
7796 if test "${enable_valgrind_annotations+set}" = set; then :
7797 enableval=$enable_valgrind_annotations;
7798 else
7799 enable_valgrind_annotations=no
7802 if test x$enable_valgrind_annotations != xno \
7803 || test x$ac_valgrind_checking != x; then
7804 if (test $have_valgrind_h = no \
7805 && test $gcc_cv_header_memcheck_h = no \
7806 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7807 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7810 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7814 # -------------------------------
7815 # Miscenalleous configure options
7816 # -------------------------------
7818 # Determine whether or not multilibs are enabled.
7819 # Check whether --enable-multilib was given.
7820 if test "${enable_multilib+set}" = set; then :
7821 enableval=$enable_multilib;
7822 else
7823 enable_multilib=yes
7828 # Determine whether or not multiarch is enabled.
7829 # Check whether --enable-multiarch was given.
7830 if test "${enable_multiarch+set}" = set; then :
7831 enableval=$enable_multiarch; case "${enableval}" in
7832 yes|no|auto) enable_multiarch=$enableval;;
7833 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7834 esac
7835 else
7836 enable_multiarch=auto
7839 if test x${enable_multiarch} = xauto; then
7840 if test x${with_native_system_header_dir} != x; then
7841 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7842 enable_multiarch=no
7844 if test x$host != x$target && test "x$with_sysroot" = x; then
7845 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7846 enable_multiarch=no
7849 if test x${enable_multiarch} = xyes; then
7851 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7855 $as_echo_n "checking for multiarch configuration... " >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7858 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7860 # needed for setting the multiarch name for soft-float/hard-float ABIs
7864 # default stack clash protection guard size as power of twos in bytes.
7865 # Please keep these in sync with params.def.
7866 stk_clash_min=12
7867 stk_clash_max=30
7869 # Keep the default value when the option is not used to 0, this allows us to
7870 # distinguish between the cases where the user specifially set a value via
7871 # configure and when the normal default value is used.
7873 # Check whether --with-stack-clash-protection-guard-size was given.
7874 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7875 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7876 else
7877 DEFAULT_STK_CLASH_GUARD_SIZE=0
7880 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7881 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7882 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7883 as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7887 cat >>confdefs.h <<_ACEOF
7888 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7889 _ACEOF
7892 # Enable __cxa_atexit for C++.
7893 # Check whether --enable-__cxa_atexit was given.
7894 if test "${enable___cxa_atexit+set}" = set; then :
7895 enableval=$enable___cxa_atexit;
7899 # Enable C extension for decimal float if target supports it.
7901 # Check whether --enable-decimal-float was given.
7902 if test "${enable_decimal_float+set}" = set; then :
7903 enableval=$enable_decimal_float;
7904 case $enable_decimal_float in
7905 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7906 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7907 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7908 esac
7910 else
7912 case $target in
7913 aarch64* | \
7914 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7915 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7916 i?86*-*-mingw* | x86_64*-*-mingw* | \
7917 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7918 enable_decimal_float=yes
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7922 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7923 enable_decimal_float=no
7925 esac
7930 # x86's use BID format instead of DPD
7931 case x$enable_decimal_float in
7932 xyes)
7933 case $target in
7934 aarch64* | i?86*-*-* | x86_64*-*-*)
7935 enable_decimal_float=bid
7938 enable_decimal_float=dpd
7940 esac
7941 default_decimal_float=$enable_decimal_float
7943 xno)
7944 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7945 # dependency on libdecnumber.
7946 default_decimal_float=dpd
7948 esac
7953 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7955 cat >>confdefs.h <<_ACEOF
7956 #define ENABLE_DECIMAL_FLOAT $dfp
7957 _ACEOF
7960 # Use default_decimal_float for dependency.
7961 enable_decimal_float=$default_decimal_float
7963 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7965 cat >>confdefs.h <<_ACEOF
7966 #define ENABLE_DECIMAL_BID_FORMAT $bid
7967 _ACEOF
7970 # Enable C extension for fixed-point arithmetic.
7971 # Check whether --enable-fixed-point was given.
7972 if test "${enable_fixed_point+set}" = set; then :
7973 enableval=$enable_fixed_point;
7974 else
7976 case $target in
7977 arm*)
7978 enable_fixed_point=yes
7981 mips*-*-*)
7982 enable_fixed_point=yes
7984 loongarch*-*-*)
7985 enable_fixed_point=yes
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7989 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7990 enable_fixed_point=no
7992 esac
7998 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8000 cat >>confdefs.h <<_ACEOF
8001 #define ENABLE_FIXED_POINT $fixedpoint
8002 _ACEOF
8005 # Enable threads
8006 # Pass with no value to take the default
8007 # Pass with a value to specify a thread package
8008 # Check whether --enable-threads was given.
8009 if test "${enable_threads+set}" = set; then :
8010 enableval=$enable_threads;
8011 else
8012 enable_threads=''
8016 # Check whether --enable-tls was given.
8017 if test "${enable_tls+set}" = set; then :
8018 enableval=$enable_tls;
8019 case $enable_tls in
8020 yes | no) ;;
8021 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8022 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8023 esac
8025 else
8026 enable_tls=''
8030 # Check whether --enable-vtable-verify was given.
8031 if test "${enable_vtable_verify+set}" = set; then :
8032 enableval=$enable_vtable_verify;
8033 else
8034 enable_vtable_verify=no
8037 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8039 cat >>confdefs.h <<_ACEOF
8040 #define ENABLE_VTABLE_VERIFY $vtable_verify
8041 _ACEOF
8044 # Check whether --enable-analyzer was given.
8045 if test "${enable_analyzer+set}" = set; then :
8046 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8047 analyzer=0
8048 else
8049 analyzer=1
8051 else
8052 analyzer=1
8056 cat >>confdefs.h <<_ACEOF
8057 #define ENABLE_ANALYZER $analyzer
8058 _ACEOF
8061 # Check whether --enable-objc-gc was given.
8062 if test "${enable_objc_gc+set}" = set; then :
8063 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8064 objc_boehm_gc=''
8065 else
8066 objc_boehm_gc=1
8068 else
8069 objc_boehm_gc=''
8074 # Check whether --with-dwarf2 was given.
8075 if test "${with_dwarf2+set}" = set; then :
8076 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8077 else
8078 dwarf2=no
8082 # Check whether --enable-shared was given.
8083 if test "${enable_shared+set}" = set; then :
8084 enableval=$enable_shared;
8085 case $enable_shared in
8086 yes | no) ;;
8088 enable_shared=no
8089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8090 for pkg in $enableval; do
8091 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8092 enable_shared=yes
8094 done
8095 IFS="$ac_save_ifs"
8097 esac
8099 else
8100 enable_shared=yes
8105 # Check whether --enable-gcov was given.
8106 if test "${enable_gcov+set}" = set; then :
8107 enableval=$enable_gcov;
8108 else
8109 case $target in
8110 bpf-*-*)
8111 enable_gcov=no
8114 enable_gcov=yes
8116 esac
8123 # Check whether --with-specs was given.
8124 if test "${with_specs+set}" = set; then :
8125 withval=$with_specs; CONFIGURE_SPECS=$withval
8126 else
8127 CONFIGURE_SPECS=
8135 # Check whether --with-pkgversion was given.
8136 if test "${with_pkgversion+set}" = set; then :
8137 withval=$with_pkgversion; case "$withval" in
8138 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8139 no) PKGVERSION= ;;
8140 *) PKGVERSION="($withval) " ;;
8141 esac
8142 else
8143 PKGVERSION="(GCC) "
8151 # Check whether --with-bugurl was given.
8152 if test "${with_bugurl+set}" = set; then :
8153 withval=$with_bugurl; case "$withval" in
8154 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8155 no) BUGURL=
8157 *) BUGURL="$withval"
8159 esac
8160 else
8161 BUGURL="https://gcc.gnu.org/bugs/"
8165 case ${BUGURL} in
8167 REPORT_BUGS_TO=
8168 REPORT_BUGS_TEXI=
8171 REPORT_BUGS_TO="<$BUGURL>"
8172 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8174 esac;
8179 # Allow overriding the default URL for documentation
8181 # Check whether --with-documentation-root-url was given.
8182 if test "${with_documentation_root_url+set}" = set; then :
8183 withval=$with_documentation_root_url; case "$withval" in
8184 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8185 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8186 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8187 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8188 esac
8189 else
8190 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8195 cat >>confdefs.h <<_ACEOF
8196 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8197 _ACEOF
8200 # Allow overriding the default URL for GCC changes
8202 # Check whether --with-changes-root-url was given.
8203 if test "${with_changes_root_url+set}" = set; then :
8204 withval=$with_changes_root_url; case "$withval" in
8205 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8206 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8207 */) CHANGES_ROOT_URL="$withval" ;;
8208 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8209 esac
8210 else
8211 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8216 cat >>confdefs.h <<_ACEOF
8217 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8218 _ACEOF
8221 # Sanity check enable_languages in case someone does not run the toplevel
8222 # configure # script.
8223 # Check whether --enable-languages was given.
8224 if test "${enable_languages+set}" = set; then :
8225 enableval=$enable_languages; case ,${enable_languages}, in
8226 ,,|,yes,)
8227 # go safe -- we cannot be much sure without the toplevel
8228 # configure's
8229 # analysis of which target libs are present and usable
8230 enable_languages=c
8232 *,all,*)
8233 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8235 *,c,*)
8238 enable_languages=c,${enable_languages}
8240 esac
8241 else
8242 enable_languages=c
8246 # If top-level libada has been disabled, then wire in install-gnatlib
8247 # invocation with `make install', so that one can build and install
8248 # the library manually with `make -C gcc all gnatlib gnattools install'.
8249 if test x"$enable_libada" = xno; then
8250 gnat_install_lib=gnat-install-lib
8251 else
8252 gnat_install_lib=
8256 if test x"$enable_as_accelerator_for" != x; then
8258 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8260 enable_as_accelerator=yes
8261 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8262 program_transform_name=`echo $program_transform_name | sed $sedscript`
8263 accel_dir_suffix=/accel/${target_noncanonical}
8264 real_target_noncanonical=${enable_as_accelerator_for}
8270 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8271 tgt=`echo $tgt | sed 's/=.*//'`
8273 enable_offloading=1
8274 case "$tgt" in
8275 amdgcn*)
8276 omp_device_property=omp-device-properties-gcn
8277 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8279 nvptx*)
8280 omp_device_property=omp-device-properties-nvptx
8281 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8284 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8286 esac
8287 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8288 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8290 if test x"$offload_targets" = x; then
8291 offload_targets=$tgt
8292 else
8293 offload_targets="$offload_targets,$tgt"
8295 done
8300 cat >>confdefs.h <<_ACEOF
8301 #define OFFLOAD_TARGETS "$offload_targets"
8302 _ACEOF
8304 if test x"$enable_offloading" != x; then
8306 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8308 else
8310 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8314 if test "x$enable_offload_defaulted" = xyes; then
8316 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8321 # Check whether --with-multilib-list was given.
8322 if test "${with_multilib_list+set}" = set; then :
8323 withval=$with_multilib_list; :
8324 else
8325 with_multilib_list=default
8330 # Check whether --with-multilib-generator was given.
8331 if test "${with_multilib_generator+set}" = set; then :
8332 withval=$with_multilib_generator; :
8333 else
8334 with_multilib_generator=default
8338 # -------------------------
8339 # Checks for other programs
8340 # -------------------------
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8344 set x ${MAKE-make}
8345 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8346 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat >conftest.make <<\_ACEOF
8350 SHELL = /bin/sh
8351 all:
8352 @echo '@@@%%%=$(MAKE)=@@@%%%'
8353 _ACEOF
8354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8356 *@@@%%%=?*=@@@%%%*)
8357 eval ac_cv_prog_make_${ac_make}_set=yes;;
8359 eval ac_cv_prog_make_${ac_make}_set=no;;
8360 esac
8361 rm -f conftest.make
8363 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8366 SET_MAKE=
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 SET_MAKE="MAKE=${MAKE-make}"
8374 # Find some useful tools
8375 for ac_prog in gawk mawk nawk awk
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AWK+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AWK"; then
8385 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AWK="$ac_prog"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8404 AWK=$ac_cv_prog_AWK
8405 if test -n "$AWK"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8407 $as_echo "$AWK" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8414 test -n "$AWK" && break
8415 done
8417 # We need awk to create options.cc and options.h.
8418 # Bail out if it's missing.
8419 case ${AWK} in
8420 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8421 esac
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8424 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if ${gcc_cv_prog_LN_S+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 rm -f conftestdata_t
8429 echo >conftestdata_f
8430 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8431 then
8432 gcc_cv_prog_LN_S="ln -s"
8433 else
8434 if ln conftestdata_f conftestdata_t 2>/dev/null
8435 then
8436 gcc_cv_prog_LN_S=ln
8437 else
8438 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8439 then
8440 gcc_cv_prog_LN_S="cp -p"
8441 else
8442 gcc_cv_prog_LN_S=cp
8446 rm -f conftestdata_f conftestdata_t
8449 LN_S="$gcc_cv_prog_LN_S"
8450 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8453 else
8454 if test "$gcc_cv_prog_LN_S" = "ln"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8456 $as_echo "no, using ln" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8459 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8464 $as_echo_n "checking whether ln works... " >&6; }
8465 if ${acx_cv_prog_LN+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 rm -f conftestdata_t
8469 echo >conftestdata_f
8470 if ln conftestdata_f conftestdata_t 2>/dev/null
8471 then
8472 acx_cv_prog_LN=ln
8473 else
8474 acx_cv_prog_LN=no
8476 rm -f conftestdata_f conftestdata_t
8479 if test $acx_cv_prog_LN = no; then
8480 LN="$LN_S"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8482 $as_echo "no, using $LN" >&6; }
8483 else
8484 LN="$acx_cv_prog_LN"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486 $as_echo "yes" >&6; }
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_RANLIB+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 RANLIB=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8520 $as_echo "$RANLIB" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_ac_ct_RANLIB="ranlib"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8560 $as_echo "$ac_ct_RANLIB" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x; then
8567 RANLIB=":"
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575 RANLIB=$ac_ct_RANLIB
8577 else
8578 RANLIB="$ac_cv_prog_RANLIB"
8581 ranlib_flags=""
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8590 # AIX /bin/install
8591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8593 # ./install, which can be erroneously created by make from ./install.sh.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8595 $as_echo_n "checking for a BSD compatible install... " >&6; }
8596 if test -z "$INSTALL"; then
8597 if ${ac_cv_path_install+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8601 for ac_dir in $PATH; do
8602 # Account for people who put trailing slashes in PATH elements.
8603 case "$ac_dir/" in
8604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8606 # OSF1 and SCO ODT 3.0 have their own names for install.
8607 for ac_prog in ginstall scoinst install; do
8608 if test -f $ac_dir/$ac_prog; then
8609 if test $ac_prog = install &&
8610 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 # OSF/1 installbsd also uses dspmsg, but is usable.
8614 else
8615 ac_cv_path_install="$ac_dir/$ac_prog -c"
8616 break 2
8619 done
8621 esac
8622 done
8623 IFS="$ac_save_IFS"
8626 if test "${ac_cv_path_install+set}" = set; then
8627 INSTALL="$ac_cv_path_install"
8628 else
8629 # As a last resort, use the slow shell script. We don't cache a
8630 # path for INSTALL within a source directory, because that will
8631 # break other packages using the cache if that directory is
8632 # removed, or if the path is relative.
8633 INSTALL="$ac_install_sh"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8637 $as_echo "$INSTALL" >&6; }
8639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8640 # It thinks the first close brace ends the variable substitution.
8641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8646 # See if cmp has --ignore-initial.
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8648 $as_echo_n "checking for cmp's capabilities... " >&6; }
8649 if ${gcc_cv_prog_cmp_skip+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 echo abfoo >t1
8653 echo cdfoo >t2
8654 gcc_cv_prog_cmp_skip=slowcompare
8655 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8656 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8658 else
8659 gcc_cv_prog_cmp_skip=gnucompare
8662 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8663 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8664 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8666 else
8667 gcc_cv_prog_cmp_skip=fastcompare
8671 rm t1 t2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8675 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8676 make_compare_target=$gcc_cv_prog_cmp_skip
8680 # See if we have the mktemp command.
8681 # Extract the first word of "mktemp", so it can be a program name with args.
8682 set dummy mktemp; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 if test -n "$have_mktemp_command"; then
8689 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_have_mktemp_command="yes"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8704 IFS=$as_save_IFS
8706 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8709 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8710 if test -n "$have_mktemp_command"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8712 $as_echo "$have_mktemp_command" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 # See if makeinfo has been installed and is modern enough
8721 # that we can use it.
8723 # Extract the first word of "makeinfo", so it can be a program name with args.
8724 set dummy makeinfo; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_MAKEINFO+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 if test -n "$MAKEINFO"; then
8731 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_MAKEINFO="makeinfo"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8750 MAKEINFO=$ac_cv_prog_MAKEINFO
8751 if test -n "$MAKEINFO"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8753 $as_echo "$MAKEINFO" >&6; }
8754 else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8760 if test -n "$MAKEINFO"; then
8761 # Found it, now check the version.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8763 $as_echo_n "checking for modern makeinfo... " >&6; }
8764 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8768 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') gcc_cv_prog_makeinfo_modern=no;;
8772 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8773 *) gcc_cv_prog_makeinfo_modern=no;;
8774 esac
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8778 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8779 else
8780 gcc_cv_prog_makeinfo_modern=no
8782 if test $gcc_cv_prog_makeinfo_modern = no; then
8783 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8786 if test $gcc_cv_prog_makeinfo_modern = no; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&5
8790 $as_echo "$as_me: WARNING:
8791 *** Makeinfo is missing or too old.
8792 *** Info documentation will not be built." >&2;}
8793 BUILD_INFO=
8794 else
8795 BUILD_INFO=info
8799 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8800 # If it does, we want to pass it to makeinfo in order to restore the old
8801 # behavior of @{summary,}contents placement.
8802 MAKEINFO_TOC_INLINE_FLAG=
8803 if test x"$MAKEINFO" != x; then :
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8806 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8807 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8811 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8812 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8813 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8814 gcc_cv_texi_add_toc_inline_flags=no
8815 else
8816 gcc_cv_texi_add_toc_inline_flags=yes
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8821 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8822 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8823 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8829 # Is pod2man recent enough to regenerate manpages?
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8831 $as_echo_n "checking for recent Pod::Man... " >&6; }
8832 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8834 $as_echo "yes" >&6; }
8835 GENERATED_MANPAGES=generated-manpages
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 GENERATED_MANPAGES=
8843 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8845 # How about lex?
8846 for ac_prog in flex
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy $ac_prog; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_prog_FLEX+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 if test -n "$FLEX"; then
8856 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_FLEX="$ac_prog"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8869 done
8870 done
8871 IFS=$as_save_IFS
8875 FLEX=$ac_cv_prog_FLEX
8876 if test -n "$FLEX"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8878 $as_echo "$FLEX" >&6; }
8879 else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8885 test -n "$FLEX" && break
8886 done
8887 test -n "$FLEX" || FLEX="$MISSING flex"
8890 # Bison?
8891 for ac_prog in bison
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy $ac_prog; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_BISON+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test -n "$BISON"; then
8901 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_BISON="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8914 done
8915 done
8916 IFS=$as_save_IFS
8920 BISON=$ac_cv_prog_BISON
8921 if test -n "$BISON"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8923 $as_echo "$BISON" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$BISON" && break
8931 done
8932 test -n "$BISON" || BISON="$MISSING bison"
8935 # Python3?
8937 # Extract the first word of "python3", so it can be a program name with args.
8938 set dummy python3; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_prog_PYTHON+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 if test -n "$PYTHON"; then
8945 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_prog_PYTHON="python3"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8958 done
8959 done
8960 IFS=$as_save_IFS
8964 PYTHON=$ac_cv_prog_PYTHON
8965 if test -n "$PYTHON"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8967 $as_echo "$PYTHON" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8974 if test -n "$PYTHON"; then
8975 # Found it, now check the version.
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
8977 $as_echo_n "checking for modern python3... " >&6; }
8978 if ${gcc_cv_prog_python3_modern+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 ac_prog_version=`eval $PYTHON --version 2>&1 |
8982 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
8984 case $ac_prog_version in
8985 '') gcc_cv_prog_python3_modern=no;;
8986 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
8987 *) gcc_cv_prog_python3_modern=no;;
8988 esac
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
8992 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
8993 else
8994 gcc_cv_prog_python3_modern=no
8996 if test $gcc_cv_prog_python3_modern = no; then
8997 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9000 if test $gcc_cv_prog_python3_modern = no; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9002 *** Python3 is missing.
9003 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9004 $as_echo "$as_me: WARNING:
9005 *** Python3 is missing.
9006 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9007 HAVE_PYTHON=no
9008 else
9009 HAVE_PYTHON=yes
9013 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9014 # check for build == host before using them.
9016 # NM
9017 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9018 && test -d ../binutils ; then
9019 NM='${objdir}/../binutils/nm-new'
9020 else
9021 # Extract the first word of "nm", so it can be a program name with args.
9022 set dummy nm; ac_word=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if ${ac_cv_prog_NM+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 if test -n "$NM"; then
9029 ac_cv_prog_NM="$NM" # Let the user override the test.
9030 else
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_prog_NM="nm"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9044 IFS=$as_save_IFS
9046 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9049 NM=$ac_cv_prog_NM
9050 if test -n "$NM"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9052 $as_echo "$NM" >&6; }
9053 else
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9061 # AR
9062 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9063 && test -d ../binutils ; then
9064 AR='${objdir}/../binutils/ar'
9065 else
9066 # Extract the first word of "ar", so it can be a program name with args.
9067 set dummy ar; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_prog_AR+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$AR"; then
9074 ac_cv_prog_AR="$AR" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_prog_AR="ar"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9091 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9094 AR=$ac_cv_prog_AR
9095 if test -n "$AR"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9097 $as_echo "$AR" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9106 # The jit documentation looks better if built with sphinx, but can be
9107 # built with texinfo if sphinx is not available.
9108 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9109 # Extract the first word of "sphinx-build", so it can be a program name with args.
9110 set dummy sphinx-build; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if ${ac_cv_prog_doc_build_sys+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$doc_build_sys"; then
9117 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_doc_build_sys="sphinx"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9134 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9137 doc_build_sys=$ac_cv_prog_doc_build_sys
9138 if test -n "$doc_build_sys"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9140 $as_echo "$doc_build_sys" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 # --------------------
9149 # Checks for C headers
9150 # --------------------
9152 # Need to reject headers which give warnings, so that the -Werror bootstrap
9153 # works later. *sigh* This needs to come before all header checks.
9155 ac_c_preproc_warn_flag=yes
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9158 $as_echo_n "checking for ANSI C header files... " >&6; }
9159 if ${ac_cv_header_stdc+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <stdlib.h>
9165 #include <stdarg.h>
9166 #include <string.h>
9167 #include <float.h>
9170 main ()
9174 return 0;
9176 _ACEOF
9177 if ac_fn_cxx_try_compile "$LINENO"; then :
9178 ac_cv_header_stdc=yes
9179 else
9180 ac_cv_header_stdc=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 if test $ac_cv_header_stdc = yes; then
9185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #include <string.h>
9190 _ACEOF
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "memchr" >/dev/null 2>&1; then :
9194 else
9195 ac_cv_header_stdc=no
9197 rm -f conftest*
9201 if test $ac_cv_header_stdc = yes; then
9202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205 #include <stdlib.h>
9207 _ACEOF
9208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9209 $EGREP "free" >/dev/null 2>&1; then :
9211 else
9212 ac_cv_header_stdc=no
9214 rm -f conftest*
9218 if test $ac_cv_header_stdc = yes; then
9219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9220 if test "$cross_compiling" = yes; then :
9222 else
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <ctype.h>
9226 #include <stdlib.h>
9227 #if ((' ' & 0x0FF) == 0x020)
9228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9230 #else
9231 # define ISLOWER(c) \
9232 (('a' <= (c) && (c) <= 'i') \
9233 || ('j' <= (c) && (c) <= 'r') \
9234 || ('s' <= (c) && (c) <= 'z'))
9235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9236 #endif
9238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9240 main ()
9242 int i;
9243 for (i = 0; i < 256; i++)
9244 if (XOR (islower (i), ISLOWER (i))
9245 || toupper (i) != TOUPPER (i))
9246 return 2;
9247 return 0;
9249 _ACEOF
9250 if ac_fn_cxx_try_run "$LINENO"; then :
9252 else
9253 ac_cv_header_stdc=no
9255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9256 conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9262 $as_echo "$ac_cv_header_stdc" >&6; }
9263 if test $ac_cv_header_stdc = yes; then
9265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9270 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9271 if ${ac_cv_header_time+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <sys/time.h>
9278 #include <time.h>
9281 main ()
9283 if ((struct tm *) 0)
9284 return 0;
9286 return 0;
9288 _ACEOF
9289 if ac_fn_cxx_try_compile "$LINENO"; then :
9290 ac_cv_header_time=yes
9291 else
9292 ac_cv_header_time=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9297 $as_echo "$ac_cv_header_time" >&6; }
9298 if test $ac_cv_header_time = yes; then
9300 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9305 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9306 if ${gcc_cv_header_string+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 #include <string.h>
9312 #include <strings.h>
9314 main ()
9318 return 0;
9320 _ACEOF
9321 if ac_fn_cxx_try_compile "$LINENO"; then :
9322 gcc_cv_header_string=yes
9323 else
9324 gcc_cv_header_string=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9329 $as_echo "$gcc_cv_header_string" >&6; }
9330 if test $gcc_cv_header_string = yes; then
9332 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9337 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9338 if ${ac_cv_header_sys_wait_h+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 #include <sys/types.h>
9344 #include <sys/wait.h>
9345 #ifndef WEXITSTATUS
9346 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9347 #endif
9348 #ifndef WIFEXITED
9349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9350 #endif
9353 main ()
9355 int s;
9356 wait (&s);
9357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9359 return 0;
9361 _ACEOF
9362 if ac_fn_cxx_try_compile "$LINENO"; then :
9363 ac_cv_header_sys_wait_h=yes
9364 else
9365 ac_cv_header_sys_wait_h=no
9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9371 if test $ac_cv_header_sys_wait_h = yes; then
9373 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9378 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9379 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <sys/types.h>
9385 #include <termios.h>
9386 #ifdef TIOCGWINSZ
9388 #endif
9390 _ACEOF
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 $EGREP "yes" >/dev/null 2>&1; then :
9393 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9394 else
9395 ac_cv_sys_tiocgwinsz_in_termios_h=no
9397 rm -f conftest*
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9401 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9403 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9405 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9406 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/ioctl.h>
9413 #ifdef TIOCGWINSZ
9415 #endif
9417 _ACEOF
9418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9419 $EGREP "yes" >/dev/null 2>&1; then :
9420 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9421 else
9422 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9424 rm -f conftest*
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9428 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9430 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9432 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9437 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9438 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9439 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9440 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9441 do :
9442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9443 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447 _ACEOF
9450 done
9453 # Check for thread headers.
9454 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9455 if test "x$ac_cv_header_thread_h" = xyes; then :
9456 have_thread_h=yes
9457 else
9458 have_thread_h=
9461 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9462 if test "x$ac_cv_header_pthread_h" = xyes; then :
9463 have_pthread_h=yes
9464 else
9465 have_pthread_h=
9469 # These tests can't be done till we know if we have limits.h.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9471 $as_echo_n "checking for CHAR_BIT... " >&6; }
9472 if ${gcc_cv_decl_char_bit+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 #ifdef HAVE_LIMITS_H
9478 #include <limits.h>
9479 #endif
9480 #ifdef CHAR_BIT
9481 found
9482 #endif
9483 _ACEOF
9484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9485 $EGREP "found" >/dev/null 2>&1; then :
9486 gcc_cv_decl_char_bit=yes
9487 else
9488 gcc_cv_decl_char_bit=no
9490 rm -f conftest*
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9495 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9496 if test $gcc_cv_decl_char_bit = no; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9498 $as_echo_n "checking number of bits in a byte... " >&6; }
9499 if ${gcc_cv_c_nbby+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9503 gcc_cv_c_nbby=
9504 while test $i -lt 65; do
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9509 main ()
9511 switch(0) {
9512 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9513 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9516 return 0;
9518 _ACEOF
9519 if ac_fn_cxx_try_compile "$LINENO"; then :
9520 gcc_cv_c_nbby=$i; break
9522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523 i=`expr $i + 1`
9524 done
9525 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9529 $as_echo "$gcc_cv_c_nbby" >&6; }
9530 if test $gcc_cv_c_nbby = failed; then
9531 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9532 else
9534 cat >>confdefs.h <<_ACEOF
9535 #define CHAR_BIT $gcc_cv_c_nbby
9536 _ACEOF
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9541 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9542 if ${ac_cv_c_bigendian+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 ac_cv_c_bigendian=unknown
9546 # See if we're dealing with a universal compiler.
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #ifndef __APPLE_CC__
9550 not a universal capable compiler
9551 #endif
9552 typedef int dummy;
9554 _ACEOF
9555 if ac_fn_cxx_try_compile "$LINENO"; then :
9557 # Check for potential -arch flags. It is not universal unless
9558 # there are at least two -arch flags with different values.
9559 ac_arch=
9560 ac_prev=
9561 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9562 if test -n "$ac_prev"; then
9563 case $ac_word in
9564 i?86 | x86_64 | ppc | ppc64)
9565 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9566 ac_arch=$ac_word
9567 else
9568 ac_cv_c_bigendian=universal
9569 break
9572 esac
9573 ac_prev=
9574 elif test "x$ac_word" = "x-arch"; then
9575 ac_prev=arch
9577 done
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580 if test $ac_cv_c_bigendian = unknown; then
9581 # See if sys/param.h defines the BYTE_ORDER macro.
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 #include <sys/types.h>
9585 #include <sys/param.h>
9588 main ()
9590 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9591 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9592 && LITTLE_ENDIAN)
9593 bogus endian macros
9594 #endif
9597 return 0;
9599 _ACEOF
9600 if ac_fn_cxx_try_compile "$LINENO"; then :
9601 # It does; now see whether it defined to BIG_ENDIAN or not.
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/param.h>
9608 main ()
9610 #if BYTE_ORDER != BIG_ENDIAN
9611 not big endian
9612 #endif
9615 return 0;
9617 _ACEOF
9618 if ac_fn_cxx_try_compile "$LINENO"; then :
9619 ac_cv_c_bigendian=yes
9620 else
9621 ac_cv_c_bigendian=no
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 if test $ac_cv_c_bigendian = unknown; then
9628 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 #include <limits.h>
9634 main ()
9636 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9637 bogus endian macros
9638 #endif
9641 return 0;
9643 _ACEOF
9644 if ac_fn_cxx_try_compile "$LINENO"; then :
9645 # It does; now see whether it defined to _BIG_ENDIAN or not.
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #include <limits.h>
9651 main ()
9653 #ifndef _BIG_ENDIAN
9654 not big endian
9655 #endif
9658 return 0;
9660 _ACEOF
9661 if ac_fn_cxx_try_compile "$LINENO"; then :
9662 ac_cv_c_bigendian=yes
9663 else
9664 ac_cv_c_bigendian=no
9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 if test $ac_cv_c_bigendian = unknown; then
9671 # Compile a test program.
9672 if test "$cross_compiling" = yes; then :
9673 # Try to guess by grepping values from an object file.
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 short int ascii_mm[] =
9677 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9678 short int ascii_ii[] =
9679 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9680 int use_ascii (int i) {
9681 return ascii_mm[i] + ascii_ii[i];
9683 short int ebcdic_ii[] =
9684 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9685 short int ebcdic_mm[] =
9686 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9687 int use_ebcdic (int i) {
9688 return ebcdic_mm[i] + ebcdic_ii[i];
9690 extern int foo;
9693 main ()
9695 return use_ascii (foo) == use_ebcdic (foo);
9697 return 0;
9699 _ACEOF
9700 if ac_fn_cxx_try_compile "$LINENO"; then :
9701 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9702 ac_cv_c_bigendian=yes
9704 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9705 if test "$ac_cv_c_bigendian" = unknown; then
9706 ac_cv_c_bigendian=no
9707 else
9708 # finding both strings is unlikely to happen, but who knows?
9709 ac_cv_c_bigendian=unknown
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 $ac_includes_default
9719 main ()
9722 /* Are we little or big endian? From Harbison&Steele. */
9723 union
9725 long int l;
9726 char c[sizeof (long int)];
9727 } u;
9728 u.l = 1;
9729 return u.c[sizeof (long int) - 1] == 1;
9732 return 0;
9734 _ACEOF
9735 if ac_fn_cxx_try_run "$LINENO"; then :
9736 ac_cv_c_bigendian=no
9737 else
9738 ac_cv_c_bigendian=yes
9740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9741 conftest.$ac_objext conftest.beam conftest.$ac_ext
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9747 $as_echo "$ac_cv_c_bigendian" >&6; }
9748 case $ac_cv_c_bigendian in #(
9749 yes)
9750 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9751 ;; #(
9753 ;; #(
9754 universal)
9756 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9758 ;; #(
9760 as_fn_error $? "unknown endianness
9761 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9762 esac
9765 # ----------------------
9766 # Checks for C++ headers
9767 # ----------------------
9769 ac_ext=cpp
9770 ac_cpp='$CXXCPP $CPPFLAGS'
9771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9775 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9776 if test -z "$CXXCPP"; then
9777 if ${ac_cv_prog_CXXCPP+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 # Double quotes because CXXCPP needs to be expanded
9781 for CXXCPP in "$CXX -E" "/lib/cpp"
9783 ac_preproc_ok=false
9784 for ac_cxx_preproc_warn_flag in '' yes
9786 # Use a header file that comes with gcc, so configuring glibc
9787 # with a fresh cross-compiler works.
9788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 # <limits.h> exists even on freestanding compilers.
9790 # On the NeXT, cc -E runs the code through the compiler's parser,
9791 # not just through cpp. "Syntax error" is here to catch this case.
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 #ifdef __STDC__
9795 # include <limits.h>
9796 #else
9797 # include <assert.h>
9798 #endif
9799 Syntax error
9800 _ACEOF
9801 if ac_fn_cxx_try_cpp "$LINENO"; then :
9803 else
9804 # Broken: fails on valid input.
9805 continue
9807 rm -f conftest.err conftest.i conftest.$ac_ext
9809 # OK, works on sane cases. Now check whether nonexistent headers
9810 # can be detected and how.
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 #include <ac_nonexistent.h>
9814 _ACEOF
9815 if ac_fn_cxx_try_cpp "$LINENO"; then :
9816 # Broken: success on invalid input.
9817 continue
9818 else
9819 # Passes both tests.
9820 ac_preproc_ok=:
9821 break
9823 rm -f conftest.err conftest.i conftest.$ac_ext
9825 done
9826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9827 rm -f conftest.i conftest.err conftest.$ac_ext
9828 if $ac_preproc_ok; then :
9829 break
9832 done
9833 ac_cv_prog_CXXCPP=$CXXCPP
9836 CXXCPP=$ac_cv_prog_CXXCPP
9837 else
9838 ac_cv_prog_CXXCPP=$CXXCPP
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9841 $as_echo "$CXXCPP" >&6; }
9842 ac_preproc_ok=false
9843 for ac_cxx_preproc_warn_flag in '' yes
9845 # Use a header file that comes with gcc, so configuring glibc
9846 # with a fresh cross-compiler works.
9847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 # <limits.h> exists even on freestanding compilers.
9849 # On the NeXT, cc -E runs the code through the compiler's parser,
9850 # not just through cpp. "Syntax error" is here to catch this case.
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9858 Syntax error
9859 _ACEOF
9860 if ac_fn_cxx_try_cpp "$LINENO"; then :
9862 else
9863 # Broken: fails on valid input.
9864 continue
9866 rm -f conftest.err conftest.i conftest.$ac_ext
9868 # OK, works on sane cases. Now check whether nonexistent headers
9869 # can be detected and how.
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <ac_nonexistent.h>
9873 _ACEOF
9874 if ac_fn_cxx_try_cpp "$LINENO"; then :
9875 # Broken: success on invalid input.
9876 continue
9877 else
9878 # Passes both tests.
9879 ac_preproc_ok=:
9880 break
9882 rm -f conftest.err conftest.i conftest.$ac_ext
9884 done
9885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9886 rm -f conftest.i conftest.err conftest.$ac_ext
9887 if $ac_preproc_ok; then :
9889 else
9890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9893 See \`config.log' for more details" >&5
9894 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9895 See \`config.log' for more details" >&2;}; }
9898 ac_ext=cpp
9899 ac_cpp='$CXXCPP $CPPFLAGS'
9900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9905 for ac_header in unordered_map
9906 do :
9907 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9908 if test "x$ac_cv_header_unordered_map" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_UNORDERED_MAP 1
9911 _ACEOF
9914 done
9916 for ac_header in tr1/unordered_map
9917 do :
9918 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9919 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9920 cat >>confdefs.h <<_ACEOF
9921 #define HAVE_TR1_UNORDERED_MAP 1
9922 _ACEOF
9925 done
9927 for ac_header in ext/hash_map
9928 do :
9929 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9930 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9931 cat >>confdefs.h <<_ACEOF
9932 #define HAVE_EXT_HASH_MAP 1
9933 _ACEOF
9936 done
9939 # --------
9940 # Dependency checking.
9941 # --------
9943 rm -rf .tst 2>/dev/null
9944 mkdir .tst 2>/dev/null
9945 if test -d .tst; then
9946 am__leading_dot=.
9947 else
9948 am__leading_dot=_
9950 rmdir .tst 2>/dev/null
9952 DEPDIR="${am__leading_dot}deps"
9954 ac_config_commands="$ac_config_commands depdir"
9957 ac_config_commands="$ac_config_commands gccdepdir"
9960 depcc="$CXX" am_compiler_list=
9962 am_depcomp=$ac_aux_dir/depcomp
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9964 $as_echo_n "checking dependency style of $depcc... " >&6; }
9965 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 if test -f "$am_depcomp"; then
9969 # We make a subdir and do the tests there. Otherwise we can end up
9970 # making bogus files that we don't know about and never remove. For
9971 # instance it was reported that on HP-UX the gcc test will end up
9972 # making a dummy file named `D' -- because `-MD' means `put the output
9973 # in D'.
9974 mkdir conftest.dir
9975 # Copy depcomp to subdir because otherwise we won't find it if we're
9976 # using a relative directory.
9977 cp "$am_depcomp" conftest.dir
9978 cd conftest.dir
9979 # We will build objects and dependencies in a subdirectory because
9980 # it helps to detect inapplicable dependency modes. For instance
9981 # both Tru64's cc and ICC support -MD to output dependencies as a
9982 # side effect of compilation, but ICC will put the dependencies in
9983 # the current directory while Tru64 will put them in the object
9984 # directory.
9985 mkdir sub
9987 am_cv_CXX_dependencies_compiler_type=none
9988 if test "$am_compiler_list" = ""; then
9989 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9991 for depmode in $am_compiler_list; do
9992 if test $depmode = none; then break; fi
9994 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9995 # Setup a source with many dependencies, because some compilers
9996 # like to wrap large dependency lists on column 80 (with \), and
9997 # we should not choose a depcomp mode which is confused by this.
9999 # We need to recreate these files for each test, as the compiler may
10000 # overwrite some of them when testing with obscure command lines.
10001 # This happens at least with the AIX C compiler.
10002 : > sub/conftest.c
10003 for i in 1 2 3 4 5 6; do
10004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10006 # Solaris 8's {/usr,}/bin/sh.
10007 touch sub/conftst$i.h
10008 done
10009 echo "include sub/conftest.Po" > confmf
10011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10012 # mode. It turns out that the SunPro C++ compiler does not properly
10013 # handle `-M -o', and we need to detect this.
10014 depcmd="depmode=$depmode \
10015 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10017 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10018 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10019 if env $depcmd > conftest.err 2>&1 &&
10020 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10021 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10022 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10023 # icc doesn't choke on unknown options, it will just issue warnings
10024 # or remarks (even with -Werror). So we grep stderr for any message
10025 # that says an option was ignored or not supported.
10026 # When given -MP, icc 7.0 and 7.1 complain thusly:
10027 # icc: Command line warning: ignoring option '-M'; no argument required
10028 # The diagnosis changed in icc 8.0:
10029 # icc: Command line remark: option '-MP' not supported
10030 if (grep 'ignoring option' conftest.err ||
10031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10032 am_cv_CXX_dependencies_compiler_type=$depmode
10033 $as_echo "$as_me:$LINENO: success" >&5
10034 break
10037 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10038 sed -e 's/^/| /' < conftest.err >&5
10039 done
10041 cd ..
10042 rm -rf conftest.dir
10043 else
10044 am_cv_CXX_dependencies_compiler_type=none
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10049 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10050 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10051 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10052 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10057 # --------
10058 # UNSORTED
10059 # --------
10062 # These libraries may be used by collect2.
10063 # We may need a special search path to get them linked.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10065 $as_echo_n "checking for collect2 libraries... " >&6; }
10066 if ${gcc_cv_collect2_libs+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 save_LIBS="$LIBS"
10070 for libs in '' -lld -lmld \
10071 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10072 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10074 LIBS="$libs"
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char ldopen ();
10086 main ()
10088 return ldopen ();
10090 return 0;
10092 _ACEOF
10093 if ac_fn_cxx_try_link "$LINENO"; then :
10094 gcc_cv_collect2_libs="$libs"; break
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 done
10099 LIBS="$save_LIBS"
10100 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10103 $as_echo "$gcc_cv_collect2_libs" >&6; }
10104 case $gcc_cv_collect2_libs in
10105 "none required") ;;
10106 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10107 esac
10110 # When building Ada code on Alpha, we need exc_resume which is usually in
10111 # -lexc. So test for it.
10112 save_LIBS="$LIBS"
10113 LIBS=
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10115 $as_echo_n "checking for library containing exc_resume... " >&6; }
10116 if ${ac_cv_search_exc_resume+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 ac_func_search_save_LIBS=$LIBS
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 char exc_resume ();
10131 main ()
10133 return exc_resume ();
10135 return 0;
10137 _ACEOF
10138 for ac_lib in '' exc; do
10139 if test -z "$ac_lib"; then
10140 ac_res="none required"
10141 else
10142 ac_res=-l$ac_lib
10143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10145 if ac_fn_cxx_try_link "$LINENO"; then :
10146 ac_cv_search_exc_resume=$ac_res
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext
10150 if ${ac_cv_search_exc_resume+:} false; then :
10151 break
10153 done
10154 if ${ac_cv_search_exc_resume+:} false; then :
10156 else
10157 ac_cv_search_exc_resume=no
10159 rm conftest.$ac_ext
10160 LIBS=$ac_func_search_save_LIBS
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10163 $as_echo "$ac_cv_search_exc_resume" >&6; }
10164 ac_res=$ac_cv_search_exc_resume
10165 if test "$ac_res" != no; then :
10166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10170 GNAT_LIBEXC="$LIBS"
10171 LIBS="$save_LIBS"
10174 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10175 save_LIBS="$LIBS"
10176 LIBS=
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10178 $as_echo_n "checking for library containing kstat_open... " >&6; }
10179 if ${ac_cv_search_kstat_open+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_func_search_save_LIBS=$LIBS
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char kstat_open ();
10194 main ()
10196 return kstat_open ();
10198 return 0;
10200 _ACEOF
10201 for ac_lib in '' kstat; do
10202 if test -z "$ac_lib"; then
10203 ac_res="none required"
10204 else
10205 ac_res=-l$ac_lib
10206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10208 if ac_fn_cxx_try_link "$LINENO"; then :
10209 ac_cv_search_kstat_open=$ac_res
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext
10213 if ${ac_cv_search_kstat_open+:} false; then :
10214 break
10216 done
10217 if ${ac_cv_search_kstat_open+:} false; then :
10219 else
10220 ac_cv_search_kstat_open=no
10222 rm conftest.$ac_ext
10223 LIBS=$ac_func_search_save_LIBS
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10226 $as_echo "$ac_cv_search_kstat_open" >&6; }
10227 ac_res=$ac_cv_search_kstat_open
10228 if test "$ac_res" != no; then :
10229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10233 EXTRA_GCC_LIBS="$LIBS"
10234 LIBS="$save_LIBS"
10237 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10238 # C++ needs those for libcody.
10239 save_LIBS="$LIBS"
10240 LIBS=
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10243 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10244 if ${ac_cv_search_gethostbyname+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_func_search_save_LIBS=$LIBS
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char gethostbyname ();
10259 main ()
10261 return gethostbyname ();
10263 return 0;
10265 _ACEOF
10266 for ac_lib in '' nsl; do
10267 if test -z "$ac_lib"; then
10268 ac_res="none required"
10269 else
10270 ac_res=-l$ac_lib
10271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10273 if ac_fn_cxx_try_link "$LINENO"; then :
10274 ac_cv_search_gethostbyname=$ac_res
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext
10278 if ${ac_cv_search_gethostbyname+:} false; then :
10279 break
10281 done
10282 if ${ac_cv_search_gethostbyname+:} false; then :
10284 else
10285 ac_cv_search_gethostbyname=no
10287 rm conftest.$ac_ext
10288 LIBS=$ac_func_search_save_LIBS
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10291 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10292 ac_res=$ac_cv_search_gethostbyname
10293 if test "$ac_res" != no; then :
10294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10299 $as_echo_n "checking for library containing socket... " >&6; }
10300 if ${ac_cv_search_socket+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 ac_func_search_save_LIBS=$LIBS
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char socket ();
10315 main ()
10317 return socket ();
10319 return 0;
10321 _ACEOF
10322 for ac_lib in '' socket; do
10323 if test -z "$ac_lib"; then
10324 ac_res="none required"
10325 else
10326 ac_res=-l$ac_lib
10327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10329 if ac_fn_cxx_try_link "$LINENO"; then :
10330 ac_cv_search_socket=$ac_res
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext
10334 if ${ac_cv_search_socket+:} false; then :
10335 break
10337 done
10338 if ${ac_cv_search_socket+:} false; then :
10340 else
10341 ac_cv_search_socket=no
10343 rm conftest.$ac_ext
10344 LIBS=$ac_func_search_save_LIBS
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10347 $as_echo "$ac_cv_search_socket" >&6; }
10348 ac_res=$ac_cv_search_socket
10349 if test "$ac_res" != no; then :
10350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10352 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10355 $as_echo_n "checking for socket in -lsocket... " >&6; }
10356 if ${ac_cv_lib_socket_socket+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lsocket -lnsl $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char socket ();
10372 main ()
10374 return socket ();
10376 return 0;
10378 _ACEOF
10379 if ac_fn_cxx_try_link "$LINENO"; then :
10380 ac_cv_lib_socket_socket=yes
10381 else
10382 ac_cv_lib_socket_socket=no
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10389 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10390 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10391 LIBS="-lsocket -lnsl $LIBS"
10397 NETLIBS="$LIBS"
10398 LIBS="$save_LIBS"
10401 # Some systems put ldexp and frexp in libm instead of libc; assume
10402 # they're both in the same place. jcf-dump needs them.
10403 save_LIBS="$LIBS"
10404 LIBS=
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10406 $as_echo_n "checking for library containing ldexp... " >&6; }
10407 if ${ac_cv_search_ldexp+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 ac_func_search_save_LIBS=$LIBS
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char ldexp ();
10422 main ()
10424 return ldexp ();
10426 return 0;
10428 _ACEOF
10429 for ac_lib in '' m; do
10430 if test -z "$ac_lib"; then
10431 ac_res="none required"
10432 else
10433 ac_res=-l$ac_lib
10434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10436 if ac_fn_cxx_try_link "$LINENO"; then :
10437 ac_cv_search_ldexp=$ac_res
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext
10441 if ${ac_cv_search_ldexp+:} false; then :
10442 break
10444 done
10445 if ${ac_cv_search_ldexp+:} false; then :
10447 else
10448 ac_cv_search_ldexp=no
10450 rm conftest.$ac_ext
10451 LIBS=$ac_func_search_save_LIBS
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10454 $as_echo "$ac_cv_search_ldexp" >&6; }
10455 ac_res=$ac_cv_search_ldexp
10456 if test "$ac_res" != no; then :
10457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10461 LDEXP_LIB="$LIBS"
10462 LIBS="$save_LIBS"
10465 # Some systems need dlopen
10466 save_LIBS="$LIBS"
10467 LIBS=
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10469 $as_echo_n "checking for library containing dlopen... " >&6; }
10470 if ${ac_cv_search_dlopen+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 ac_func_search_save_LIBS=$LIBS
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 /* Override any GCC internal prototype to avoid an error.
10478 Use char because int might match the return type of a GCC
10479 builtin and then its argument prototype would still apply. */
10480 #ifdef __cplusplus
10481 extern "C"
10482 #endif
10483 char dlopen ();
10485 main ()
10487 return dlopen ();
10489 return 0;
10491 _ACEOF
10492 for ac_lib in '' dl; do
10493 if test -z "$ac_lib"; then
10494 ac_res="none required"
10495 else
10496 ac_res=-l$ac_lib
10497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10499 if ac_fn_cxx_try_link "$LINENO"; then :
10500 ac_cv_search_dlopen=$ac_res
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext
10504 if ${ac_cv_search_dlopen+:} false; then :
10505 break
10507 done
10508 if ${ac_cv_search_dlopen+:} false; then :
10510 else
10511 ac_cv_search_dlopen=no
10513 rm conftest.$ac_ext
10514 LIBS=$ac_func_search_save_LIBS
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10517 $as_echo "$ac_cv_search_dlopen" >&6; }
10518 ac_res=$ac_cv_search_dlopen
10519 if test "$ac_res" != no; then :
10520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10524 DL_LIB="$LIBS"
10525 LIBS="$save_LIBS"
10528 # Use <inttypes.h> only if it exists,
10529 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10530 # PRId64
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10532 $as_echo_n "checking for inttypes.h... " >&6; }
10533 if ${gcc_cv_header_inttypes_h+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #define __STDC_FORMAT_MACROS
10539 #include <sys/types.h>
10540 #include <inttypes.h>
10542 main ()
10544 intmax_t i = -1;
10545 #ifndef PRId64
10546 choke me
10547 #endif
10549 return 0;
10551 _ACEOF
10552 if ac_fn_cxx_try_compile "$LINENO"; then :
10553 gcc_cv_header_inttypes_h=yes
10554 else
10555 gcc_cv_header_inttypes_h=no
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10561 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10562 if test $gcc_cv_header_inttypes_h = yes; then
10564 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10568 # Look for the ZSTD package.
10569 ZSTD_INCLUDE=
10570 ZSTD_LIB=
10573 ZSTD_CPPFLAGS=
10574 ZSTD_LDFLAGS=
10578 # Check whether --with-zstd was given.
10579 if test "${with_zstd+set}" = set; then :
10580 withval=$with_zstd;
10584 # Check whether --with-zstd-include was given.
10585 if test "${with_zstd_include+set}" = set; then :
10586 withval=$with_zstd_include;
10590 # Check whether --with-zstd-lib was given.
10591 if test "${with_zstd_lib+set}" = set; then :
10592 withval=$with_zstd_lib;
10595 case "x$with_zstd" in
10596 x) ;;
10597 xno)
10598 ZSTD_INCLUDE=
10599 ZSTD_LIB=
10601 *) ZSTD_INCLUDE=$with_zstd/include
10602 ZSTD_LIB=$with_zstd/lib
10604 esac
10606 if test "x$with_zstd" != xno; then
10607 if test "x$with_zstd_include" != x; then
10608 ZSTD_INCLUDE=$with_zstd_include
10610 if test "x$with_zstd_lib" != x; then
10611 ZSTD_LIB=$with_zstd_lib
10613 if test "x$ZSTD_INCLUDE" != x \
10614 && test "x$ZSTD_INCLUDE" != xno; then
10615 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10617 if test "x$ZSTD_LIB" != x \
10618 && test "x$ZSTD_LIB" != xno; then
10619 ZSTD_LDFLAGS=-L$ZSTD_LIB
10622 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10623 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10626 $as_echo_n "checking for zstd.h... " >&6; }
10627 if ${gcc_cv_header_zstd_h+:} false; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 # We require version 1.3.0 or later. This is the first version that has
10631 # ZSTD_getFrameContentSize.
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 #include <zstd.h>
10635 #if ZSTD_VERSION_NUMBER < 10300
10636 #error "need zstd 1.3.0 or better"
10637 #endif
10639 main ()
10643 return 0;
10645 _ACEOF
10646 if ac_fn_cxx_try_compile "$LINENO"; then :
10647 gcc_cv_header_zstd_h=yes
10648 else
10649 gcc_cv_header_zstd_h=no
10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10655 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10656 if test $gcc_cv_header_zstd_h = yes; then
10658 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10660 elif test "x$with_zstd" != x; then
10661 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10664 # LTO can use zstd compression algorithm
10665 save_LIBS="$LIBS"
10666 LIBS=
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10668 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10669 if ${ac_cv_search_ZSTD_compress+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ac_func_search_save_LIBS=$LIBS
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char ZSTD_compress ();
10684 main ()
10686 return ZSTD_compress ();
10688 return 0;
10690 _ACEOF
10691 for ac_lib in '' zstd; do
10692 if test -z "$ac_lib"; then
10693 ac_res="none required"
10694 else
10695 ac_res=-l$ac_lib
10696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10698 if ac_fn_cxx_try_link "$LINENO"; then :
10699 ac_cv_search_ZSTD_compress=$ac_res
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext
10703 if ${ac_cv_search_ZSTD_compress+:} false; then :
10704 break
10706 done
10707 if ${ac_cv_search_ZSTD_compress+:} false; then :
10709 else
10710 ac_cv_search_ZSTD_compress=no
10712 rm conftest.$ac_ext
10713 LIBS=$ac_func_search_save_LIBS
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10716 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10717 ac_res=$ac_cv_search_ZSTD_compress
10718 if test "$ac_res" != no; then :
10719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10723 ZSTD_LIB="$LIBS"
10724 LIBS="$save_LIBS"
10730 for ac_func in times clock kill getrlimit setrlimit atoq \
10731 popen sysconf strsignal getrusage nl_langinfo \
10732 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10733 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
10734 do :
10735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10738 cat >>confdefs.h <<_ACEOF
10739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10740 _ACEOF
10743 done
10746 if test x$ac_cv_func_mbstowcs = xyes; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10748 $as_echo_n "checking whether mbstowcs works... " >&6; }
10749 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test "$cross_compiling" = yes; then :
10753 gcc_cv_func_mbstowcs_works=yes
10754 else
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include <stdlib.h>
10758 int main()
10760 mbstowcs(0, "", 0);
10761 return 0;
10763 _ACEOF
10764 if ac_fn_cxx_try_run "$LINENO"; then :
10765 gcc_cv_func_mbstowcs_works=yes
10766 else
10767 gcc_cv_func_mbstowcs_works=no
10769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10770 conftest.$ac_objext conftest.beam conftest.$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10775 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10776 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10778 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10783 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10784 if test "x$ac_cv_type_ssize_t" = xyes; then :
10786 else
10788 cat >>confdefs.h <<_ACEOF
10789 #define ssize_t int
10790 _ACEOF
10794 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10795 if test "x$ac_cv_type_caddr_t" = xyes; then :
10797 else
10799 cat >>confdefs.h <<_ACEOF
10800 #define caddr_t char *
10801 _ACEOF
10805 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10807 if test "x$ac_cv_type_sighander_t" = xyes; then :
10809 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10815 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10816 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10817 gcc_header_sys_mman_h=yes
10818 else
10819 gcc_header_sys_mman_h=no
10822 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10823 if test "x$ac_cv_func_mmap" = xyes; then :
10824 gcc_func_mmap=yes
10825 else
10826 gcc_func_mmap=no
10829 if test "$gcc_header_sys_mman_h" != yes \
10830 || test "$gcc_func_mmap" != yes; then
10831 gcc_cv_func_mmap_file=no
10832 gcc_cv_func_mmap_dev_zero=no
10833 gcc_cv_func_mmap_anon=no
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10836 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10837 if ${gcc_cv_func_mmap_file+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 # Add a system to this blacklist if
10841 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10842 # memory area containing the same data that you'd get if you applied
10843 # read() to the same fd. The only system known to have a problem here
10844 # is VMS, where text files have record structure.
10845 case "$host_os" in
10846 *vms* | ultrix*)
10847 gcc_cv_func_mmap_file=no ;;
10849 gcc_cv_func_mmap_file=yes;;
10850 esac
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10853 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10855 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10856 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 # Add a system to this blacklist if it has mmap() but /dev/zero
10860 # does not exist, or if mmapping /dev/zero does not give anonymous
10861 # zeroed pages with both the following properties:
10862 # 1. If you map N consecutive pages in with one call, and then
10863 # unmap any subset of those pages, the pages that were not
10864 # explicitly unmapped remain accessible.
10865 # 2. If you map two adjacent blocks of memory and then unmap them
10866 # both at once, they must both go away.
10867 # Systems known to be in this category are Windows (all variants),
10868 # VMS, and Darwin.
10869 case "$host_os" in
10870 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10871 gcc_cv_func_mmap_dev_zero=no ;;
10873 gcc_cv_func_mmap_dev_zero=yes;;
10874 esac
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10877 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10879 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10881 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10882 if ${gcc_cv_decl_map_anon+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887 #include <sys/types.h>
10888 #include <sys/mman.h>
10889 #include <unistd.h>
10891 #ifndef MAP_ANONYMOUS
10892 #define MAP_ANONYMOUS MAP_ANON
10893 #endif
10896 main ()
10898 int n = MAP_ANONYMOUS;
10900 return 0;
10902 _ACEOF
10903 if ac_fn_cxx_try_compile "$LINENO"; then :
10904 gcc_cv_decl_map_anon=yes
10905 else
10906 gcc_cv_decl_map_anon=no
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10911 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10913 if test $gcc_cv_decl_map_anon = no; then
10914 gcc_cv_func_mmap_anon=no
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10917 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10918 if ${gcc_cv_func_mmap_anon+:} false; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10922 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10923 # doesn't give anonymous zeroed pages with the same properties listed
10924 # above for use of /dev/zero.
10925 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10926 case "$host_os" in
10927 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10928 gcc_cv_func_mmap_anon=no ;;
10930 gcc_cv_func_mmap_anon=yes;;
10931 esac
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10934 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10938 if test $gcc_cv_func_mmap_file = yes; then
10940 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10943 if test $gcc_cv_func_mmap_dev_zero = yes; then
10945 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10948 if test $gcc_cv_func_mmap_anon = yes; then
10950 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10955 case "${host}" in
10956 *-*-*vms*)
10957 # Under VMS, vfork works very differently than on Unix. The standard test
10958 # won't work, and it isn't easily adaptable. It makes more sense to
10959 # just force it.
10960 ac_cv_func_vfork_works=yes
10962 esac
10963 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10964 if test "x$ac_cv_type_pid_t" = xyes; then :
10966 else
10968 cat >>confdefs.h <<_ACEOF
10969 #define pid_t int
10970 _ACEOF
10974 for ac_header in vfork.h
10975 do :
10976 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10977 if test "x$ac_cv_header_vfork_h" = xyes; then :
10978 cat >>confdefs.h <<_ACEOF
10979 #define HAVE_VFORK_H 1
10980 _ACEOF
10983 done
10985 for ac_func in fork vfork
10986 do :
10987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10988 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10989 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10990 cat >>confdefs.h <<_ACEOF
10991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10992 _ACEOF
10995 done
10997 if test "x$ac_cv_func_fork" = xyes; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10999 $as_echo_n "checking for working fork... " >&6; }
11000 if ${ac_cv_func_fork_works+:} false; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 if test "$cross_compiling" = yes; then :
11004 ac_cv_func_fork_works=cross
11005 else
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 $ac_includes_default
11010 main ()
11013 /* By Ruediger Kuhlmann. */
11014 return fork () < 0;
11017 return 0;
11019 _ACEOF
11020 if ac_fn_cxx_try_run "$LINENO"; then :
11021 ac_cv_func_fork_works=yes
11022 else
11023 ac_cv_func_fork_works=no
11025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11026 conftest.$ac_objext conftest.beam conftest.$ac_ext
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11031 $as_echo "$ac_cv_func_fork_works" >&6; }
11033 else
11034 ac_cv_func_fork_works=$ac_cv_func_fork
11036 if test "x$ac_cv_func_fork_works" = xcross; then
11037 case $host in
11038 *-*-amigaos* | *-*-msdosdjgpp*)
11039 # Override, as these systems have only a dummy fork() stub
11040 ac_cv_func_fork_works=no
11043 ac_cv_func_fork_works=yes
11045 esac
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11047 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11049 ac_cv_func_vfork_works=$ac_cv_func_vfork
11050 if test "x$ac_cv_func_vfork" = xyes; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11052 $as_echo_n "checking for working vfork... " >&6; }
11053 if ${ac_cv_func_vfork_works+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 if test "$cross_compiling" = yes; then :
11057 ac_cv_func_vfork_works=cross
11058 else
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 /* Thanks to Paul Eggert for this test. */
11062 $ac_includes_default
11063 #include <sys/wait.h>
11064 #ifdef HAVE_VFORK_H
11065 # include <vfork.h>
11066 #endif
11067 /* On some sparc systems, changes by the child to local and incoming
11068 argument registers are propagated back to the parent. The compiler
11069 is told about this with #include <vfork.h>, but some compilers
11070 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11071 static variable whose address is put into a register that is
11072 clobbered by the vfork. */
11073 static void
11074 #ifdef __cplusplus
11075 sparc_address_test (int arg)
11076 # else
11077 sparc_address_test (arg) int arg;
11078 #endif
11080 static pid_t child;
11081 if (!child) {
11082 child = vfork ();
11083 if (child < 0) {
11084 perror ("vfork");
11085 _exit(2);
11087 if (!child) {
11088 arg = getpid();
11089 write(-1, "", 0);
11090 _exit (arg);
11096 main ()
11098 pid_t parent = getpid ();
11099 pid_t child;
11101 sparc_address_test (0);
11103 child = vfork ();
11105 if (child == 0) {
11106 /* Here is another test for sparc vfork register problems. This
11107 test uses lots of local variables, at least as many local
11108 variables as main has allocated so far including compiler
11109 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11110 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11111 reuse the register of parent for one of the local variables,
11112 since it will think that parent can't possibly be used any more
11113 in this routine. Assigning to the local variable will thus
11114 munge parent in the parent process. */
11115 pid_t
11116 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11117 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11118 /* Convince the compiler that p..p7 are live; otherwise, it might
11119 use the same hardware register for all 8 local variables. */
11120 if (p != p1 || p != p2 || p != p3 || p != p4
11121 || p != p5 || p != p6 || p != p7)
11122 _exit(1);
11124 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11125 from child file descriptors. If the child closes a descriptor
11126 before it execs or exits, this munges the parent's descriptor
11127 as well. Test for this by closing stdout in the child. */
11128 _exit(close(fileno(stdout)) != 0);
11129 } else {
11130 int status;
11131 struct stat st;
11133 while (wait(&status) != child)
11135 return (
11136 /* Was there some problem with vforking? */
11137 child < 0
11139 /* Did the child fail? (This shouldn't happen.) */
11140 || status
11142 /* Did the vfork/compiler bug occur? */
11143 || parent != getpid()
11145 /* Did the file descriptor bug occur? */
11146 || fstat(fileno(stdout), &st) != 0
11150 _ACEOF
11151 if ac_fn_cxx_try_run "$LINENO"; then :
11152 ac_cv_func_vfork_works=yes
11153 else
11154 ac_cv_func_vfork_works=no
11156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11157 conftest.$ac_objext conftest.beam conftest.$ac_ext
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11162 $as_echo "$ac_cv_func_vfork_works" >&6; }
11165 if test "x$ac_cv_func_fork_works" = xcross; then
11166 ac_cv_func_vfork_works=$ac_cv_func_vfork
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11168 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11171 if test "x$ac_cv_func_vfork_works" = xyes; then
11173 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11175 else
11177 $as_echo "#define vfork fork" >>confdefs.h
11180 if test "x$ac_cv_func_fork_works" = xyes; then
11182 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11188 if test "X$prefix" = "XNONE"; then
11189 acl_final_prefix="$ac_default_prefix"
11190 else
11191 acl_final_prefix="$prefix"
11193 if test "X$exec_prefix" = "XNONE"; then
11194 acl_final_exec_prefix='${prefix}'
11195 else
11196 acl_final_exec_prefix="$exec_prefix"
11198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11201 prefix="$acl_save_prefix"
11204 # Check whether --with-gnu-ld was given.
11205 if test "${with_gnu_ld+set}" = set; then :
11206 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11207 else
11208 with_gnu_ld=no
11211 # Prepare PATH_SEPARATOR.
11212 # The user is always right.
11213 if test "${PATH_SEPARATOR+set}" != set; then
11214 echo "#! /bin/sh" >conf$$.sh
11215 echo "exit 0" >>conf$$.sh
11216 chmod +x conf$$.sh
11217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11218 PATH_SEPARATOR=';'
11219 else
11220 PATH_SEPARATOR=:
11222 rm -f conf$$.sh
11224 ac_prog=ld
11225 if test "$GCC" = yes; then
11226 # Check if gcc -print-prog-name=ld gives a path.
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11228 $as_echo_n "checking for ld used by GCC... " >&6; }
11229 case $host in
11230 *-*-mingw*)
11231 # gcc leaves a trailing carriage return which upsets mingw
11232 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11234 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11235 esac
11236 case $ac_prog in
11237 # Accept absolute paths.
11238 [\\/]* | [A-Za-z]:[\\/]*)
11239 re_direlt='/[^/][^/]*/\.\./'
11240 # Canonicalize the path of ld
11241 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11242 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11243 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11244 done
11245 test -z "$LD" && LD="$ac_prog"
11248 # If it fails, then pretend we aren't using GCC.
11249 ac_prog=ld
11252 # If it is relative, then search for the first ld in PATH.
11253 with_gnu_ld=unknown
11255 esac
11256 elif test "$with_gnu_ld" = yes; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11258 $as_echo_n "checking for GNU ld... " >&6; }
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11261 $as_echo_n "checking for non-GNU ld... " >&6; }
11263 if ${acl_cv_path_LD+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 if test -z "$LD"; then
11267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11268 for ac_dir in $PATH; do
11269 test -z "$ac_dir" && ac_dir=.
11270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11271 acl_cv_path_LD="$ac_dir/$ac_prog"
11272 # Check to see if the program is GNU ld. I'd rather use --version,
11273 # but apparently some GNU ld's only accept -v.
11274 # Break only if it was the GNU/non-GNU ld that we prefer.
11275 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11276 test "$with_gnu_ld" != no && break
11277 else
11278 test "$with_gnu_ld" != yes && break
11281 done
11282 IFS="$ac_save_ifs"
11283 else
11284 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11288 LD="$acl_cv_path_LD"
11289 if test -n "$LD"; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11291 $as_echo "$LD" >&6; }
11292 else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11296 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11299 if ${acl_cv_prog_gnu_ld+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11303 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11304 acl_cv_prog_gnu_ld=yes
11305 else
11306 acl_cv_prog_gnu_ld=no
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11310 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11311 with_gnu_ld=$acl_cv_prog_gnu_ld
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11316 $as_echo_n "checking for shared library run path origin... " >&6; }
11317 if ${acl_cv_rpath+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11321 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11322 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11323 . ./conftest.sh
11324 rm -f ./conftest.sh
11325 acl_cv_rpath=done
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11329 $as_echo "$acl_cv_rpath" >&6; }
11330 wl="$acl_cv_wl"
11331 libext="$acl_cv_libext"
11332 shlibext="$acl_cv_shlibext"
11333 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11334 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11335 hardcode_direct="$acl_cv_hardcode_direct"
11336 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11337 # Check whether --enable-rpath was given.
11338 if test "${enable_rpath+set}" = set; then :
11339 enableval=$enable_rpath; :
11340 else
11341 enable_rpath=yes
11351 use_additional=yes
11353 acl_save_prefix="$prefix"
11354 prefix="$acl_final_prefix"
11355 acl_save_exec_prefix="$exec_prefix"
11356 exec_prefix="$acl_final_exec_prefix"
11358 eval additional_includedir=\"$includedir\"
11359 eval additional_libdir=\"$libdir\"
11361 exec_prefix="$acl_save_exec_prefix"
11362 prefix="$acl_save_prefix"
11365 # Check whether --with-libiconv-prefix was given.
11366 if test "${with_libiconv_prefix+set}" = set; then :
11367 withval=$with_libiconv_prefix;
11368 if test "X$withval" = "Xno"; then
11369 use_additional=no
11370 else
11371 if test "X$withval" = "X"; then
11373 acl_save_prefix="$prefix"
11374 prefix="$acl_final_prefix"
11375 acl_save_exec_prefix="$exec_prefix"
11376 exec_prefix="$acl_final_exec_prefix"
11378 eval additional_includedir=\"$includedir\"
11379 eval additional_libdir=\"$libdir\"
11381 exec_prefix="$acl_save_exec_prefix"
11382 prefix="$acl_save_prefix"
11384 else
11385 additional_includedir="$withval/include"
11386 additional_libdir="$withval/lib"
11393 # Check whether --with-libiconv-type was given.
11394 if test "${with_libiconv_type+set}" = set; then :
11395 withval=$with_libiconv_type; with_libiconv_type=$withval
11396 else
11397 with_libiconv_type=auto
11400 lib_type=`eval echo \$with_libiconv_type`
11402 LIBICONV=
11403 LTLIBICONV=
11404 INCICONV=
11405 rpathdirs=
11406 ltrpathdirs=
11407 names_already_handled=
11408 names_next_round='iconv '
11409 while test -n "$names_next_round"; do
11410 names_this_round="$names_next_round"
11411 names_next_round=
11412 for name in $names_this_round; do
11413 already_handled=
11414 for n in $names_already_handled; do
11415 if test "$n" = "$name"; then
11416 already_handled=yes
11417 break
11419 done
11420 if test -z "$already_handled"; then
11421 names_already_handled="$names_already_handled $name"
11422 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11423 eval value=\"\$HAVE_LIB$uppername\"
11424 if test -n "$value"; then
11425 if test "$value" = yes; then
11426 eval value=\"\$LIB$uppername\"
11427 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11428 eval value=\"\$LTLIB$uppername\"
11429 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11430 else
11433 else
11434 found_dir=
11435 found_la=
11436 found_so=
11437 found_a=
11438 if test $use_additional = yes; then
11439 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11440 found_dir="$additional_libdir"
11441 found_so="$additional_libdir/lib$name.$shlibext"
11442 if test -f "$additional_libdir/lib$name.la"; then
11443 found_la="$additional_libdir/lib$name.la"
11445 elif test x$lib_type != xshared; then
11446 if test -f "$additional_libdir/lib$name.$libext"; then
11447 found_dir="$additional_libdir"
11448 found_a="$additional_libdir/lib$name.$libext"
11449 if test -f "$additional_libdir/lib$name.la"; then
11450 found_la="$additional_libdir/lib$name.la"
11455 if test "X$found_dir" = "X"; then
11456 for x in $LDFLAGS $LTLIBICONV; do
11458 acl_save_prefix="$prefix"
11459 prefix="$acl_final_prefix"
11460 acl_save_exec_prefix="$exec_prefix"
11461 exec_prefix="$acl_final_exec_prefix"
11462 eval x=\"$x\"
11463 exec_prefix="$acl_save_exec_prefix"
11464 prefix="$acl_save_prefix"
11466 case "$x" in
11467 -L*)
11468 dir=`echo "X$x" | sed -e 's/^X-L//'`
11469 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11470 found_dir="$dir"
11471 found_so="$dir/lib$name.$shlibext"
11472 if test -f "$dir/lib$name.la"; then
11473 found_la="$dir/lib$name.la"
11475 elif test x$lib_type != xshared; then
11476 if test -f "$dir/lib$name.$libext"; then
11477 found_dir="$dir"
11478 found_a="$dir/lib$name.$libext"
11479 if test -f "$dir/lib$name.la"; then
11480 found_la="$dir/lib$name.la"
11485 esac
11486 if test "X$found_dir" != "X"; then
11487 break
11489 done
11491 if test "X$found_dir" != "X"; then
11492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11493 if test "X$found_so" != "X"; then
11494 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11496 else
11497 haveit=
11498 for x in $ltrpathdirs; do
11499 if test "X$x" = "X$found_dir"; then
11500 haveit=yes
11501 break
11503 done
11504 if test -z "$haveit"; then
11505 ltrpathdirs="$ltrpathdirs $found_dir"
11507 if test "$hardcode_direct" = yes; then
11508 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11509 else
11510 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11512 haveit=
11513 for x in $rpathdirs; do
11514 if test "X$x" = "X$found_dir"; then
11515 haveit=yes
11516 break
11518 done
11519 if test -z "$haveit"; then
11520 rpathdirs="$rpathdirs $found_dir"
11522 else
11523 haveit=
11524 for x in $LDFLAGS $LIBICONV; do
11526 acl_save_prefix="$prefix"
11527 prefix="$acl_final_prefix"
11528 acl_save_exec_prefix="$exec_prefix"
11529 exec_prefix="$acl_final_exec_prefix"
11530 eval x=\"$x\"
11531 exec_prefix="$acl_save_exec_prefix"
11532 prefix="$acl_save_prefix"
11534 if test "X$x" = "X-L$found_dir"; then
11535 haveit=yes
11536 break
11538 done
11539 if test -z "$haveit"; then
11540 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11542 if test "$hardcode_minus_L" != no; then
11543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11544 else
11545 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11550 else
11551 if test "X$found_a" != "X"; then
11552 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11553 else
11554 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11557 additional_includedir=
11558 case "$found_dir" in
11559 */lib | */lib/)
11560 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11561 additional_includedir="$basedir/include"
11563 esac
11564 if test "X$additional_includedir" != "X"; then
11565 if test "X$additional_includedir" != "X/usr/include"; then
11566 haveit=
11567 if test "X$additional_includedir" = "X/usr/local/include"; then
11568 if test -n "$GCC"; then
11569 case $host_os in
11570 linux*) haveit=yes;;
11571 esac
11574 if test -z "$haveit"; then
11575 for x in $CPPFLAGS $INCICONV; do
11577 acl_save_prefix="$prefix"
11578 prefix="$acl_final_prefix"
11579 acl_save_exec_prefix="$exec_prefix"
11580 exec_prefix="$acl_final_exec_prefix"
11581 eval x=\"$x\"
11582 exec_prefix="$acl_save_exec_prefix"
11583 prefix="$acl_save_prefix"
11585 if test "X$x" = "X-I$additional_includedir"; then
11586 haveit=yes
11587 break
11589 done
11590 if test -z "$haveit"; then
11591 if test -d "$additional_includedir"; then
11592 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11598 if test -n "$found_la"; then
11599 save_libdir="$libdir"
11600 case "$found_la" in
11601 */* | *\\*) . "$found_la" ;;
11602 *) . "./$found_la" ;;
11603 esac
11604 libdir="$save_libdir"
11605 for dep in $dependency_libs; do
11606 case "$dep" in
11607 -L*)
11608 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11609 if test "X$additional_libdir" != "X/usr/lib"; then
11610 haveit=
11611 if test "X$additional_libdir" = "X/usr/local/lib"; then
11612 if test -n "$GCC"; then
11613 case $host_os in
11614 linux*) haveit=yes;;
11615 esac
11618 if test -z "$haveit"; then
11619 haveit=
11620 for x in $LDFLAGS $LIBICONV; do
11622 acl_save_prefix="$prefix"
11623 prefix="$acl_final_prefix"
11624 acl_save_exec_prefix="$exec_prefix"
11625 exec_prefix="$acl_final_exec_prefix"
11626 eval x=\"$x\"
11627 exec_prefix="$acl_save_exec_prefix"
11628 prefix="$acl_save_prefix"
11630 if test "X$x" = "X-L$additional_libdir"; then
11631 haveit=yes
11632 break
11634 done
11635 if test -z "$haveit"; then
11636 if test -d "$additional_libdir"; then
11637 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11640 haveit=
11641 for x in $LDFLAGS $LTLIBICONV; do
11643 acl_save_prefix="$prefix"
11644 prefix="$acl_final_prefix"
11645 acl_save_exec_prefix="$exec_prefix"
11646 exec_prefix="$acl_final_exec_prefix"
11647 eval x=\"$x\"
11648 exec_prefix="$acl_save_exec_prefix"
11649 prefix="$acl_save_prefix"
11651 if test "X$x" = "X-L$additional_libdir"; then
11652 haveit=yes
11653 break
11655 done
11656 if test -z "$haveit"; then
11657 if test -d "$additional_libdir"; then
11658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11664 -R*)
11665 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11666 if test "$enable_rpath" != no; then
11667 haveit=
11668 for x in $rpathdirs; do
11669 if test "X$x" = "X$dir"; then
11670 haveit=yes
11671 break
11673 done
11674 if test -z "$haveit"; then
11675 rpathdirs="$rpathdirs $dir"
11677 haveit=
11678 for x in $ltrpathdirs; do
11679 if test "X$x" = "X$dir"; then
11680 haveit=yes
11681 break
11683 done
11684 if test -z "$haveit"; then
11685 ltrpathdirs="$ltrpathdirs $dir"
11689 -l*)
11690 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11692 *.la)
11693 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11696 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11699 esac
11700 done
11702 else
11703 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11704 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11705 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11706 else
11707 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11713 done
11714 done
11715 if test "X$rpathdirs" != "X"; then
11716 if test -n "$hardcode_libdir_separator"; then
11717 alldirs=
11718 for found_dir in $rpathdirs; do
11719 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11720 done
11721 acl_save_libdir="$libdir"
11722 libdir="$alldirs"
11723 eval flag=\"$hardcode_libdir_flag_spec\"
11724 libdir="$acl_save_libdir"
11725 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11726 else
11727 for found_dir in $rpathdirs; do
11728 acl_save_libdir="$libdir"
11729 libdir="$found_dir"
11730 eval flag=\"$hardcode_libdir_flag_spec\"
11731 libdir="$acl_save_libdir"
11732 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11733 done
11736 if test "X$ltrpathdirs" != "X"; then
11737 for found_dir in $ltrpathdirs; do
11738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11739 done
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11749 $as_echo_n "checking for iconv... " >&6; }
11750 if ${am_cv_func_iconv+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11754 am_cv_func_iconv="no, consider installing GNU libiconv"
11755 am_cv_lib_iconv=no
11756 am_save_CPPFLAGS="$CPPFLAGS"
11757 CPPFLAGS="$CPPFLAGS $INCICONV"
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <stdlib.h>
11761 #include <iconv.h>
11763 main ()
11765 iconv_t cd = iconv_open("","");
11766 iconv(cd,NULL,NULL,NULL,NULL);
11767 iconv_close(cd);
11769 return 0;
11771 _ACEOF
11772 if ac_fn_cxx_try_link "$LINENO"; then :
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"
11779 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11780 for _libs in .libs _libs; do
11781 am_save_CPPFLAGS="$CPPFLAGS"
11782 am_save_LIBS="$LIBS"
11783 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11784 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <stdlib.h>
11788 #include <iconv.h>
11790 main ()
11792 iconv_t cd = iconv_open("","");
11793 iconv(cd,NULL,NULL,NULL,NULL);
11794 iconv_close(cd);
11796 return 0;
11798 _ACEOF
11799 if ac_fn_cxx_try_link "$LINENO"; then :
11800 INCICONV="-I../libiconv/include"
11801 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11802 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11803 am_cv_lib_iconv=yes
11804 am_cv_func_iconv=yes
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 CPPFLAGS="$am_save_CPPFLAGS"
11809 LIBS="$am_save_LIBS"
11810 if test "$am_cv_func_iconv" = "yes"; then
11811 break
11813 done
11816 if test "$am_cv_func_iconv" != yes; then
11817 am_save_CPPFLAGS="$CPPFLAGS"
11818 am_save_LIBS="$LIBS"
11819 CPPFLAGS="$CPPFLAGS $INCICONV"
11820 LIBS="$LIBS $LIBICONV"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 #include <stdlib.h>
11824 #include <iconv.h>
11826 main ()
11828 iconv_t cd = iconv_open("","");
11829 iconv(cd,NULL,NULL,NULL,NULL);
11830 iconv_close(cd);
11832 return 0;
11834 _ACEOF
11835 if ac_fn_cxx_try_link "$LINENO"; then :
11836 am_cv_lib_iconv=yes
11837 am_cv_func_iconv=yes
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 CPPFLAGS="$am_save_CPPFLAGS"
11842 LIBS="$am_save_LIBS"
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11847 $as_echo "$am_cv_func_iconv" >&6; }
11848 if test "$am_cv_func_iconv" = yes; then
11850 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11853 if test "$am_cv_lib_iconv" = yes; then
11855 for element in $INCICONV; do
11856 haveit=
11857 for x in $CPPFLAGS; do
11859 acl_save_prefix="$prefix"
11860 prefix="$acl_final_prefix"
11861 acl_save_exec_prefix="$exec_prefix"
11862 exec_prefix="$acl_final_exec_prefix"
11863 eval x=\"$x\"
11864 exec_prefix="$acl_save_exec_prefix"
11865 prefix="$acl_save_prefix"
11867 if test "X$x" = "X$element"; then
11868 haveit=yes
11869 break
11871 done
11872 if test -z "$haveit"; then
11873 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11875 done
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11878 $as_echo_n "checking how to link with libiconv... " >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11880 $as_echo "$LIBICONV" >&6; }
11881 else
11882 LIBICONV=
11883 LTLIBICONV=
11888 if test "$am_cv_func_iconv" = yes; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11890 $as_echo_n "checking for iconv declaration... " >&6; }
11891 if ${am_cv_proto_iconv+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11898 #include <stdlib.h>
11899 #include <iconv.h>
11900 extern
11901 #ifdef __cplusplus
11903 #endif
11904 #if defined(__STDC__) || defined(__cplusplus)
11905 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11906 #else
11907 size_t iconv();
11908 #endif
11911 main ()
11915 return 0;
11917 _ACEOF
11918 if ac_fn_cxx_try_compile "$LINENO"; then :
11919 am_cv_proto_iconv_arg1=""
11920 else
11921 am_cv_proto_iconv_arg1="const"
11923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924 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);"
11927 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11929 }$am_cv_proto_iconv" >&5
11930 $as_echo "${ac_t:-
11931 }$am_cv_proto_iconv" >&6; }
11933 cat >>confdefs.h <<_ACEOF
11934 #define ICONV_CONST $am_cv_proto_iconv_arg1
11935 _ACEOF
11940 # Until we have in-tree GNU iconv:
11941 LIBICONV_DEP=
11942 if test -f "$LTLIBICONV"; then
11943 LIBICONV_DEP=$LTLIBICONV
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11949 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11950 if ${am_cv_val_LC_MESSAGES+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #include <locale.h>
11957 main ()
11959 return LC_MESSAGES
11961 return 0;
11963 _ACEOF
11964 if ac_fn_cxx_try_link "$LINENO"; then :
11965 am_cv_val_LC_MESSAGES=yes
11966 else
11967 am_cv_val_LC_MESSAGES=no
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11973 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11974 if test $am_cv_val_LC_MESSAGES = yes; then
11976 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11983 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11984 if ${am_cv_langinfo_codeset+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #include <langinfo.h>
11991 main ()
11993 char* cs = nl_langinfo(CODESET);
11995 return 0;
11997 _ACEOF
11998 if ac_fn_cxx_try_link "$LINENO"; then :
11999 am_cv_langinfo_codeset=yes
12000 else
12001 am_cv_langinfo_codeset=no
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12008 $as_echo "$am_cv_langinfo_codeset" >&6; }
12009 if test $am_cv_langinfo_codeset = yes; then
12011 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12016 # We will need to find libiberty.h and ansidecl.h
12017 saved_CFLAGS="$CFLAGS"
12018 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12019 saved_CXXFLAGS="$CXXFLAGS"
12020 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12022 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12023 # normal autoconf function for these. But force definition of
12024 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12025 # basename handling in libiberty.h.
12026 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12027 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12028 #undef HAVE_DECL_BASENAME
12029 #define HAVE_DECL_BASENAME 1
12030 #include \"ansidecl.h\"
12031 #include \"system.h\"
12033 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12034 ac_have_decl=1
12035 else
12036 ac_have_decl=0
12039 cat >>confdefs.h <<_ACEOF
12040 #define HAVE_DECL_BASENAME $ac_have_decl
12041 _ACEOF
12042 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12043 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12044 #undef HAVE_DECL_BASENAME
12045 #define HAVE_DECL_BASENAME 1
12046 #include \"ansidecl.h\"
12047 #include \"system.h\"
12049 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12050 ac_have_decl=1
12051 else
12052 ac_have_decl=0
12055 cat >>confdefs.h <<_ACEOF
12056 #define HAVE_DECL_STRSTR $ac_have_decl
12057 _ACEOF
12060 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12061 madvise stpcpy strnlen strsignal strverscmp \
12062 strtol strtoul strtoll strtoull setenv unsetenv \
12063 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12064 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
12066 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12068 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12069 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #undef $ac_tr_decl
12075 #define $ac_tr_decl 1
12077 #include "ansidecl.h"
12078 #include "system.h"
12081 main ()
12083 #ifndef $ac_func
12084 char *(*pfn) = (char *(*)) $ac_func ;
12085 #endif
12087 return 0;
12089 _ACEOF
12090 if ac_fn_cxx_try_compile "$LINENO"; then :
12091 eval "gcc_cv_have_decl_$ac_func=yes"
12092 else
12093 eval "gcc_cv_have_decl_$ac_func=no"
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12101 #define $ac_tr_decl 1
12102 _ACEOF
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12107 #define $ac_tr_decl 0
12108 _ACEOF
12112 done
12115 for ac_func in getrlimit setrlimit getrusage
12117 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12120 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #undef $ac_tr_decl
12126 #define $ac_tr_decl 1
12128 #include "ansidecl.h"
12129 #include "system.h"
12130 #ifdef HAVE_SYS_RESOURCE_H
12131 #include <sys/resource.h>
12132 #endif
12136 main ()
12138 #ifndef $ac_func
12139 char *(*pfn) = (char *(*)) $ac_func ;
12140 #endif
12142 return 0;
12144 _ACEOF
12145 if ac_fn_cxx_try_compile "$LINENO"; then :
12146 eval "gcc_cv_have_decl_$ac_func=yes"
12147 else
12148 eval "gcc_cv_have_decl_$ac_func=no"
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12155 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12156 #define $ac_tr_decl 1
12157 _ACEOF
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12162 #define $ac_tr_decl 0
12163 _ACEOF
12167 done
12170 for ac_func in mallinfo mallinfo2
12172 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12174 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12175 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 #undef $ac_tr_decl
12181 #define $ac_tr_decl 1
12183 #include "ansidecl.h"
12184 #include "system.h"
12185 #ifdef HAVE_MALLOC_H
12186 #include <malloc.h>
12187 #endif
12191 main ()
12193 #ifndef $ac_func
12194 char *(*pfn) = (char *(*)) $ac_func ;
12195 #endif
12197 return 0;
12199 _ACEOF
12200 if ac_fn_cxx_try_compile "$LINENO"; then :
12201 eval "gcc_cv_have_decl_$ac_func=yes"
12202 else
12203 eval "gcc_cv_have_decl_$ac_func=no"
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12211 #define $ac_tr_decl 1
12212 _ACEOF
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12217 #define $ac_tr_decl 0
12218 _ACEOF
12222 done
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12228 #include "ansidecl.h"
12229 #include "system.h"
12230 #ifdef HAVE_SYS_RESOURCE_H
12231 #include <sys/resource.h>
12232 #endif
12235 main ()
12237 rlim_t l = 0;
12239 return 0;
12241 _ACEOF
12242 if ac_fn_cxx_try_compile "$LINENO"; then :
12244 else
12246 $as_echo "#define rlim_t long" >>confdefs.h
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12252 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12253 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12254 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12255 for ac_func in ldgetname
12257 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12259 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12260 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 #undef $ac_tr_decl
12266 #define $ac_tr_decl 1
12268 #include "ansidecl.h"
12269 #include "system.h"
12270 #ifdef HAVE_LDFCN_H
12271 #undef FREAD
12272 #undef FWRITE
12273 #include <ldfcn.h>
12274 #endif
12278 main ()
12280 #ifndef $ac_func
12281 char *(*pfn) = (char *(*)) $ac_func ;
12282 #endif
12284 return 0;
12286 _ACEOF
12287 if ac_fn_cxx_try_compile "$LINENO"; then :
12288 eval "gcc_cv_have_decl_$ac_func=yes"
12289 else
12290 eval "gcc_cv_have_decl_$ac_func=no"
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12298 #define $ac_tr_decl 1
12299 _ACEOF
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12304 #define $ac_tr_decl 0
12305 _ACEOF
12309 done
12312 for ac_func in times
12314 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12316 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12317 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322 #undef $ac_tr_decl
12323 #define $ac_tr_decl 1
12325 #include "ansidecl.h"
12326 #include "system.h"
12327 #ifdef HAVE_SYS_TIMES_H
12328 #include <sys/times.h>
12329 #endif
12333 main ()
12335 #ifndef $ac_func
12336 char *(*pfn) = (char *(*)) $ac_func ;
12337 #endif
12339 return 0;
12341 _ACEOF
12342 if ac_fn_cxx_try_compile "$LINENO"; then :
12343 eval "gcc_cv_have_decl_$ac_func=yes"
12344 else
12345 eval "gcc_cv_have_decl_$ac_func=no"
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12353 #define $ac_tr_decl 1
12354 _ACEOF
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12359 #define $ac_tr_decl 0
12360 _ACEOF
12364 done
12367 for ac_func in sigaltstack
12369 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12371 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12372 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377 #undef $ac_tr_decl
12378 #define $ac_tr_decl 1
12380 #include "ansidecl.h"
12381 #include "system.h"
12382 #include <signal.h>
12386 main ()
12388 #ifndef $ac_func
12389 char *(*pfn) = (char *(*)) $ac_func ;
12390 #endif
12392 return 0;
12394 _ACEOF
12395 if ac_fn_cxx_try_compile "$LINENO"; then :
12396 eval "gcc_cv_have_decl_$ac_func=yes"
12397 else
12398 eval "gcc_cv_have_decl_$ac_func=no"
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12406 #define $ac_tr_decl 1
12407 _ACEOF
12409 else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12412 #define $ac_tr_decl 0
12413 _ACEOF
12417 done
12420 # More time-related stuff.
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12422 $as_echo_n "checking for struct tms... " >&6; }
12423 if ${ac_cv_struct_tms+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12430 #include "ansidecl.h"
12431 #include "system.h"
12432 #ifdef HAVE_SYS_TIMES_H
12433 #include <sys/times.h>
12434 #endif
12437 main ()
12439 struct tms tms;
12441 return 0;
12443 _ACEOF
12444 if ac_fn_cxx_try_compile "$LINENO"; then :
12445 ac_cv_struct_tms=yes
12446 else
12447 ac_cv_struct_tms=no
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12452 $as_echo "$ac_cv_struct_tms" >&6; }
12453 if test $ac_cv_struct_tms = yes; then
12455 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12459 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12460 # revisit after autoconf 2.50.
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12462 $as_echo_n "checking for clock_t... " >&6; }
12463 if ${gcc_cv_type_clock_t+:} false; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 #include "ansidecl.h"
12471 #include "system.h"
12474 main ()
12476 clock_t x;
12478 return 0;
12480 _ACEOF
12481 if ac_fn_cxx_try_compile "$LINENO"; then :
12482 gcc_cv_type_clock_t=yes
12483 else
12484 gcc_cv_type_clock_t=no
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12489 $as_echo "$gcc_cv_type_clock_t" >&6; }
12490 if test $gcc_cv_type_clock_t = yes; then
12492 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12496 # Check if F_SETLKW is supported by fcntl.
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12498 $as_echo_n "checking for F_SETLKW... " >&6; }
12499 if ${ac_cv_f_setlkw+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12506 #include <fcntl.h>
12508 main ()
12511 struct flock fl;
12512 fl.l_whence = 0;
12513 fl.l_start = 0;
12514 fl.l_len = 0;
12515 fl.l_pid = 0;
12516 return fcntl (1, F_SETLKW, &fl);
12518 return 0;
12520 _ACEOF
12521 if ac_fn_cxx_try_compile "$LINENO"; then :
12522 ac_cv_f_setlkw=yes
12523 else
12524 ac_cv_f_setlkw=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12529 $as_echo "$ac_cv_f_setlkw" >&6; }
12530 if test $ac_cv_f_setlkw = yes; then
12532 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12536 # Check if O_CLOEXEC is defined by fcntl
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12538 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12539 if ${ac_cv_o_cloexec+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 #include <fcntl.h>
12548 main ()
12551 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12553 return 0;
12555 _ACEOF
12556 if ac_fn_cxx_try_compile "$LINENO"; then :
12557 ac_cv_o_cloexec=yes
12558 else
12559 ac_cv_o_cloexec=no
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12564 $as_echo "$ac_cv_o_cloexec" >&6; }
12565 if test $ac_cv_o_cloexec = yes; then
12567 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12571 # Check if O_NONBLOCK is defined by fcntl
12572 for ac_header in fcntl.h
12573 do :
12574 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12575 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_FCNTL_H 1
12578 _ACEOF
12581 done
12583 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12585 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12589 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12591 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12596 # C++ Modules would like some networking features to provide the mapping
12597 # server. You can still use modules without them though.
12598 # The following network-related checks could probably do with some
12599 # Windows and other non-linux defenses and checking.
12601 # Local socket connectivity wants AF_UNIX networking
12602 # Check for AF_UNIX networking
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12604 $as_echo_n "checking for AF_UNIX... " >&6; }
12605 if ${ac_cv_af_unix+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <sys/socket.h>
12614 #include <sys/un.h>
12615 #include <netinet/in.h>
12617 main ()
12620 sockaddr_un un;
12621 un.sun_family = AF_UNSPEC;
12622 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12623 connect (fd, (sockaddr *)&un, sizeof (un));
12625 return 0;
12627 _ACEOF
12628 if ac_fn_cxx_try_compile "$LINENO"; then :
12629 ac_cv_af_unix=yes
12630 else
12631 ac_cv_af_unix=no
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12636 $as_echo "$ac_cv_af_unix" >&6; }
12637 if test $ac_cv_af_unix = yes; then
12639 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12643 # Remote socket connectivity wants AF_INET6 networking
12644 # Check for AF_INET6 networking
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12646 $as_echo_n "checking for AF_INET6... " >&6; }
12647 if ${ac_cv_af_inet6+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12654 #include <sys/types.h>
12655 #include <sys/socket.h>
12656 #include <netinet/in.h>
12657 #include <netdb.h>
12659 main ()
12662 sockaddr_in6 in6;
12663 in6.sin6_family = AF_UNSPEC;
12664 struct addrinfo *addrs = 0;
12665 struct addrinfo hints;
12666 hints.ai_flags = 0;
12667 hints.ai_family = AF_INET6;
12668 hints.ai_socktype = SOCK_STREAM;
12669 hints.ai_protocol = 0;
12670 hints.ai_canonname = 0;
12671 hints.ai_addr = 0;
12672 hints.ai_next = 0;
12673 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12674 const char *str = gai_strerror (e);
12675 freeaddrinfo (addrs);
12676 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12677 connect (fd, (sockaddr *)&in6, sizeof (in6));
12679 return 0;
12681 _ACEOF
12682 if ac_fn_cxx_try_compile "$LINENO"; then :
12683 ac_cv_af_inet6=yes
12684 else
12685 ac_cv_af_inet6=no
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12690 $as_echo "$ac_cv_af_inet6" >&6; }
12691 if test $ac_cv_af_inet6 = yes; then
12693 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12697 # Check if _LK_LOCK is supported by _locking
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12699 $as_echo_n "checking for _LK_LOCK... " >&6; }
12700 if ${ac_cv_lk_lock+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12707 #include <io.h>
12708 #include <sys/locking.h>
12710 main ()
12713 int fd;
12714 return _locking (fd, _LK_LOCK, 0);
12716 return 0;
12718 _ACEOF
12719 if ac_fn_cxx_try_compile "$LINENO"; then :
12720 ac_cv_lk_lock=yes
12721 else
12722 ac_cv_lk_lock=no
12724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12727 $as_echo "$ac_cv_lk_lock" >&6; }
12728 if test $ac_cv_lk_lock = yes; then
12730 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12734 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12735 CFLAGS="$saved_CFLAGS"
12736 CXXFLAGS="$saved_CXXFLAGS"
12738 # mkdir takes a single argument on some systems.
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12740 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12741 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 #include <sys/types.h>
12748 #ifdef HAVE_SYS_STAT_H
12749 # include <sys/stat.h>
12750 #endif
12751 #ifdef HAVE_UNISTD_H
12752 # include <unistd.h>
12753 #endif
12754 #ifdef HAVE_DIRECT_H
12755 # include <direct.h>
12756 #endif
12758 main ()
12760 mkdir ("foo", 0);
12762 return 0;
12764 _ACEOF
12765 if ac_fn_cxx_try_compile "$LINENO"; then :
12766 gcc_cv_mkdir_takes_one_arg=no
12767 else
12768 gcc_cv_mkdir_takes_one_arg=yes
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12773 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12774 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12776 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12781 # File extensions
12782 manext='.1'
12783 objext='.o'
12787 # With Setjmp/Longjmp based exception handling.
12788 # Check whether --enable-sjlj-exceptions was given.
12789 if test "${enable_sjlj_exceptions+set}" = set; then :
12790 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12791 else
12792 case $target in
12793 lm32*-*-*)
12794 force_sjlj_exceptions=yes
12795 enableval=yes
12798 force_sjlj_exceptions=no
12800 esac
12803 if test $force_sjlj_exceptions = yes; then
12804 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12806 cat >>confdefs.h <<_ACEOF
12807 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12808 _ACEOF
12812 # --------------------------------------------------------
12813 # Build, host, and target specific configuration fragments
12814 # --------------------------------------------------------
12816 # Collect build-machine-specific information.
12817 . ${srcdir}/config.build || exit 1
12819 # Collect host-machine-specific information.
12820 . ${srcdir}/config.host || exit 1
12822 target_gtfiles=
12824 # Collect target-machine-specific information.
12825 . ${srcdir}/config.gcc || exit 1
12827 extra_objs="${host_extra_objs} ${extra_objs}"
12828 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12830 # Default the target-machine variables that were not explicitly set.
12831 if test x"$tm_file" = x
12832 then tm_file=$cpu_type/$cpu_type.h; fi
12834 if test x"$extra_headers" = x
12835 then extra_headers=; fi
12837 if test x$md_file = x
12838 then md_file=$cpu_type/$cpu_type.md; fi
12840 if test x$out_file = x
12841 then out_file=$cpu_type/$cpu_type.cc; fi
12843 if test x"$tmake_file" = x
12844 then tmake_file=$cpu_type/t-$cpu_type
12847 # Support --enable-initfini-array.
12848 if test x$enable_initfini_array != xno; then
12849 tm_file="${tm_file} initfini-array.h"
12852 if test x"$dwarf2" = xyes
12853 then tm_file="$tm_file tm-dwarf2.h"
12856 # Say what files are being used for the output code and MD file.
12857 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12858 echo "Using \`$srcdir/config/$md_file' as machine description file."
12860 # If any of the xm_file variables contain nonexistent files, warn
12861 # about them and drop them.
12864 for x in $build_xm_file; do
12865 if test -f $srcdir/config/$x
12866 then bx="$bx $x"
12867 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12868 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12870 done
12871 build_xm_file="$bx"
12874 for x in $host_xm_file; do
12875 if test -f $srcdir/config/$x
12876 then hx="$hx $x"
12877 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12878 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12880 done
12881 host_xm_file="$hx"
12884 for x in $xm_file; do
12885 if test -f $srcdir/config/$x
12886 then tx="$tx $x"
12887 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12888 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12890 done
12891 xm_file="$tx"
12893 count=a
12894 for f in $tm_file; do
12895 count=${count}x
12896 done
12897 if test $count = ax; then
12898 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12899 else
12900 echo "Using the following target machine macro files:"
12901 for f in $tm_file; do
12902 echo " $srcdir/config/$f"
12903 done
12906 if test x$use_long_long_for_widest_fast_int = xyes; then
12908 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12912 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_GNU_LD $gnu_ld_bool
12916 _ACEOF
12919 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12921 cat >>confdefs.h <<_ACEOF
12922 #define HAVE_GNU_AS $gnu_as_bool
12923 _ACEOF
12926 count=a
12927 for f in $host_xm_file; do
12928 count=${count}x
12929 done
12930 if test $count = a; then
12932 elif test $count = ax; then
12933 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12934 else
12935 echo "Using the following host machine macro files:"
12936 for f in $host_xm_file; do
12937 echo " $srcdir/config/$f"
12938 done
12940 echo "Using ${out_host_hook_obj} for host machine hooks."
12942 if test "$host_xm_file" != "$build_xm_file"; then
12943 count=a
12944 for f in $build_xm_file; do
12945 count=${count}x
12946 done
12947 if test $count = a; then
12949 elif test $count = ax; then
12950 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12951 else
12952 echo "Using the following build machine macro files:"
12953 for f in $build_xm_file; do
12954 echo " $srcdir/config/$f"
12955 done
12959 if test -n "$configured_native_system_header_dir"; then
12960 native_system_header_dir=$configured_native_system_header_dir
12962 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12965 case ${host} in
12966 powerpc*-*-darwin*)
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12968 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12969 if ${gcc_cv_mcontext_underscores+:} false; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12975 #include <sys/cdefs.h>
12976 #include <sys/signal.h>
12977 #include <ucontext.h>
12978 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12980 _ACEOF
12981 if ac_fn_cxx_try_compile "$LINENO"; then :
12982 gcc_cv_mcontext_underscores=no
12983 else
12984 gcc_cv_mcontext_underscores=yes
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12989 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12990 if test $gcc_cv_mcontext_underscores = yes; then
12992 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12996 esac
12998 # ---------
12999 # Threading
13000 # ---------
13002 # Check if a valid thread package
13003 case ${enable_threads} in
13004 "" | no)
13005 # No threads
13006 target_thread_file='single'
13008 yes)
13009 # default
13010 target_thread_file='single'
13012 aix | dce | lynx | mipssde | posix | rtems | \
13013 single | tpf | vxworks | win32 | mcf)
13014 target_thread_file=${enable_threads}
13017 echo "${enable_threads} is an unknown thread package" 1>&2
13018 exit 1
13020 esac
13022 if test x${thread_file} = x; then
13023 # No thread file set by target-specific clauses in config.gcc,
13024 # so use file chosen by default logic above
13025 thread_file=${target_thread_file}
13028 # --------
13029 # UNSORTED
13030 # --------
13032 use_cxa_atexit=no
13033 if test x$enable___cxa_atexit = xyes || \
13034 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13035 if test x$host = x$target; then
13036 case $host in
13037 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13038 # keyed to flag_use_cxa_atexit
13039 *-*-mingw32*)
13040 use_cxa_atexit=yes
13042 powerpc-ibm-aix*)
13043 use_cxa_atexit=yes
13046 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13047 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13048 use_cxa_atexit=yes
13049 else
13050 echo "__cxa_atexit can't be enabled on this target"
13054 esac
13055 else
13056 # We can't check for __cxa_atexit when building a cross, so assume
13057 # it is available
13058 use_cxa_atexit=yes
13060 if test x$use_cxa_atexit = xyes; then
13062 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13067 # Look for a file containing extra machine modes.
13068 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13069 extra_modes_file='$(srcdir)'/config/${extra_modes}
13072 cat >>confdefs.h <<_ACEOF
13073 #define EXTRA_MODES_FILE "config/$extra_modes"
13074 _ACEOF
13078 # Convert extra_options into a form suitable for Makefile use.
13079 extra_opt_files=
13080 all_opt_files=
13081 for f in $extra_options; do
13082 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13083 all_opt_files="$all_opt_files $srcdir/config/$f"
13084 done
13087 # auto-host.h is the file containing items generated by autoconf and is
13088 # the first file included by config.h.
13089 # If host=build, it is correct to have bconfig include auto-host.h
13090 # as well. If host!=build, we are in error and need to do more
13091 # work to find out the build config parameters.
13092 if test x$host = x$build
13093 then
13094 build_auto=auto-host.h
13095 HAVE_AUTO_BUILD='# '
13096 else
13097 # We create a subdir, then run autoconf in the subdir.
13098 # To prevent recursion we set host and build for the new
13099 # invocation of configure to the build for this invocation
13100 # of configure.
13101 tempdir=build.$$
13102 rm -rf $tempdir
13103 mkdir $tempdir
13104 cd $tempdir
13105 case ${srcdir} in
13106 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13107 *) realsrcdir=../${srcdir};;
13108 esac
13109 # Clearing GMPINC is necessary to prevent host headers being
13110 # used by the build compiler. Defining GENERATOR_FILE stops
13111 # system.h from including gmp.h.
13112 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13113 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13114 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13115 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13116 ${realsrcdir}/configure \
13117 --enable-languages=${enable_languages-all} \
13118 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13119 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13120 --target=$target_alias --host=$build_alias \
13121 --build=$build_alias || exit # retaining $tempdir
13123 # We just finished tests for the build machine, so rename
13124 # the file auto-build.h in the gcc directory.
13125 mv auto-host.h ../auto-build.h
13126 cd ..
13127 rm -rf $tempdir
13128 build_auto=auto-build.h
13129 HAVE_AUTO_BUILD=
13134 tm_file="${tm_file} defaults.h"
13135 tm_p_file="${tm_p_file} tm-preds.h"
13136 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13137 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13138 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13139 # put this back in temporarily.
13140 xm_file="auto-host.h ansidecl.h ${xm_file}"
13142 # --------
13143 # UNSORTED
13144 # --------
13146 # Compile in configure arguments.
13147 if test -f configargs.h ; then
13148 # Being re-configured.
13149 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13150 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13151 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13152 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13154 else
13155 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13158 # Double all backslashes and backslash all quotes to turn
13159 # gcc_config_arguments into a C string.
13160 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13161 $gcc_config_arguments
13163 gcc_config_arguments_str=`cat conftest.out`
13164 rm -f conftest.out
13166 cat > configargs.h <<EOF
13167 /* Generated automatically. */
13168 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13169 static const char thread_model[] = "$thread_file";
13171 static const struct {
13172 const char *name, *value;
13173 } configure_default_options[] = $configure_default_options;
13176 gcc_BASEVER=`cat $srcdir/BASE-VER`
13177 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13178 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13179 if test -f $srcdir/REVISION ; then
13180 gcc_REVISION=`cat $srcdir/REVISION`
13181 else
13182 gcc_REVISION=""
13184 cat > plugin-version.h <<EOF
13185 #include "configargs.h"
13187 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13188 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13189 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13190 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13192 static char basever[] = "$gcc_BASEVER";
13193 static char datestamp[] = "$gcc_DATESTAMP";
13194 static char devphase[] = "$gcc_DEVPHASE";
13195 static char revision[] = "$gcc_REVISION";
13197 /* FIXME plugins: We should make the version information more precise.
13198 One way to do is to add a checksum. */
13200 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13201 devphase, revision,
13202 configuration_arguments};
13205 # Determine what GCC version number to use in filesystem paths.
13207 get_gcc_base_ver="cat"
13209 # Check whether --with-gcc-major-version-only was given.
13210 if test "${with_gcc_major_version_only+set}" = set; then :
13211 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13212 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13220 # Internationalization
13221 # If we haven't got the data from the intl directory,
13222 # assume NLS is disabled.
13223 USE_NLS=no
13224 LIBINTL=
13225 LIBINTL_DEP=
13226 INCINTL=
13227 XGETTEXT=
13228 GMSGFMT=
13229 POSUB=
13231 if test -f ../intl/config.intl; then
13232 . ../intl/config.intl
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13235 $as_echo_n "checking whether NLS is requested... " >&6; }
13236 if test x"$USE_NLS" != xyes; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13241 $as_echo "yes" >&6; }
13243 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13247 $as_echo_n "checking for catalogs to be installed... " >&6; }
13248 # Look for .po and .gmo files in the source directory.
13249 CATALOGS=
13250 XLINGUAS=
13251 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13252 # If there aren't any .gmo files the shell will give us the
13253 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13254 # weeded out.
13255 case "$cat" in *\**)
13256 continue;;
13257 esac
13258 # The quadruple backslash is collapsed to a double backslash
13259 # by the backticks, then collapsed again by the double quotes,
13260 # leaving us with one backslash in the sed expression (right
13261 # before the dot that mustn't act as a wildcard).
13262 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13263 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13264 # The user is allowed to set LINGUAS to a list of languages to
13265 # install catalogs for. If it's empty that means "all of them."
13266 if test "x$LINGUAS" = x; then
13267 CATALOGS="$CATALOGS $cat"
13268 XLINGUAS="$XLINGUAS $lang"
13269 else
13270 case "$LINGUAS" in *$lang*)
13271 CATALOGS="$CATALOGS $cat"
13272 XLINGUAS="$XLINGUAS $lang"
13274 esac
13276 done
13277 LINGUAS="$XLINGUAS"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13279 $as_echo "$LINGUAS" >&6; }
13282 DATADIRNAME=share
13284 INSTOBJEXT=.mo
13286 GENCAT=gencat
13288 CATOBJEXT=.gmo
13292 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13293 # -liconv on the link line twice.
13294 case "$LIBINTL" in *$LIBICONV*)
13295 LIBICONV= ;;
13296 esac
13298 # Check whether --enable-secureplt was given.
13299 if test "${enable_secureplt+set}" = set; then :
13300 enableval=$enable_secureplt;
13304 # Check whether --enable-mingw-wildcard was given.
13305 if test "${enable_mingw_wildcard+set}" = set; then :
13306 enableval=$enable_mingw_wildcard;
13307 else
13308 enable_mingw_wildcard=platform
13311 if test x"$enable_mingw_wildcard" != xplatform ; then :
13313 cat >>confdefs.h <<_ACEOF
13314 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13315 _ACEOF
13319 # Check whether --enable-large-address-aware was given.
13320 if test "${enable_large_address_aware+set}" = set; then :
13321 enableval=$enable_large_address_aware;
13324 if test x"$enable_large_address_aware" = xyes; then :
13326 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13330 # Check whether --enable-leading-mingw64-underscores was given.
13331 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13332 enableval=$enable_leading_mingw64_underscores;
13335 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13337 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13341 # Check whether --enable-cld was given.
13342 if test "${enable_cld+set}" = set; then :
13343 enableval=$enable_cld;
13344 else
13345 enable_cld=no
13349 # Check whether --enable-frame-pointer was given.
13350 if test "${enable_frame_pointer+set}" = set; then :
13351 enableval=$enable_frame_pointer;
13352 else
13354 case $target_os in
13355 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13356 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13357 enable_frame_pointer=no
13360 enable_frame_pointer=yes
13362 esac
13367 case $target in
13368 i[34567]86-*-* | x86_64-*-*)
13369 if test "x$enable_cld" = xyes; then
13370 tm_defines="${tm_defines} USE_IX86_CLD=1"
13372 if test "x$enable_frame_pointer" = xyes; then
13373 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13376 esac
13378 # Windows32 Registry support for specifying GCC installation paths.
13379 # Check whether --enable-win32-registry was given.
13380 if test "${enable_win32_registry+set}" = set; then :
13381 enableval=$enable_win32_registry;
13385 case $host_os in
13386 win32 | pe | cygwin* | mingw32*)
13387 if test "x$enable_win32_registry" != xno; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13389 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13390 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 ac_func_search_save_LIBS=$LIBS
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char RegOpenKeyExA ();
13405 main ()
13407 return RegOpenKeyExA ();
13409 return 0;
13411 _ACEOF
13412 for ac_lib in '' advapi32; do
13413 if test -z "$ac_lib"; then
13414 ac_res="none required"
13415 else
13416 ac_res=-l$ac_lib
13417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13419 if ac_fn_cxx_try_link "$LINENO"; then :
13420 ac_cv_search_RegOpenKeyExA=$ac_res
13422 rm -f core conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext
13424 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13425 break
13427 done
13428 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13430 else
13431 ac_cv_search_RegOpenKeyExA=no
13433 rm conftest.$ac_ext
13434 LIBS=$ac_func_search_save_LIBS
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13437 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13438 ac_res=$ac_cv_search_RegOpenKeyExA
13439 if test "$ac_res" != no; then :
13440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13442 else
13443 enable_win32_registry=no
13448 if test "x$enable_win32_registry" != xno; then
13450 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13453 if test "x$enable_win32_registry" != xyes \
13454 && test "x$enable_win32_registry" != x; then
13456 cat >>confdefs.h <<_ACEOF
13457 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13458 _ACEOF
13463 esac
13465 # Get an absolute path to the GCC top-level source directory
13466 holddir=`${PWDCMD-pwd}`
13467 cd $srcdir
13468 topdir=`${PWDCMD-pwd}`
13469 cd $holddir
13471 # Conditionalize the makefile for this host machine.
13472 xmake_file=
13473 for f in ${host_xmake_file}
13475 if test -f ${srcdir}/config/$f
13476 then
13477 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13479 done
13481 # Conditionalize the makefile for this target machine.
13482 tmake_file_=
13483 for f in ${tmake_file}
13485 if test -f ${srcdir}/config/$f
13486 then
13487 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13489 done
13490 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13492 out_object_file=`basename $out_file .cc`.o
13493 common_out_object_file=`basename $common_out_file .cc`.o
13495 tm_file_list="options.h"
13496 tm_include_list="options.h insn-constants.h"
13497 for f in $tm_file; do
13498 case $f in
13499 ./* )
13500 f=`echo $f | sed 's/^..//'`
13501 tm_file_list="${tm_file_list} $f"
13502 tm_include_list="${tm_include_list} $f"
13504 defaults.h )
13505 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13506 tm_include_list="${tm_include_list} $f"
13509 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13510 tm_include_list="${tm_include_list} config/$f"
13512 esac
13513 done
13515 tm_p_file_list=
13516 tm_p_include_list=
13517 for f in $tm_p_file; do
13518 case $f in
13519 tm-preds.h )
13520 tm_p_file_list="${tm_p_file_list} $f"
13521 tm_p_include_list="${tm_p_include_list} $f"
13524 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13525 tm_p_include_list="${tm_p_include_list} config/$f"
13526 esac
13527 done
13529 tm_d_file_list=
13530 tm_d_include_list=
13531 for f in $tm_d_file; do
13532 case $f in
13534 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13535 tm_d_include_list="${tm_d_include_list} config/$f"
13537 esac
13538 done
13540 xm_file_list=
13541 xm_include_list=
13542 for f in $xm_file; do
13543 case $f in
13544 ansidecl.h )
13545 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13546 xm_include_list="${xm_include_list} $f"
13548 auto-host.h )
13549 xm_file_list="${xm_file_list} $f"
13550 xm_include_list="${xm_include_list} $f"
13553 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13554 xm_include_list="${xm_include_list} config/$f"
13556 esac
13557 done
13559 host_xm_file_list=
13560 host_xm_include_list=
13561 for f in $host_xm_file; do
13562 case $f in
13563 ansidecl.h )
13564 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13565 host_xm_include_list="${host_xm_include_list} $f"
13567 auto-host.h )
13568 host_xm_file_list="${host_xm_file_list} $f"
13569 host_xm_include_list="${host_xm_include_list} $f"
13572 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13573 host_xm_include_list="${host_xm_include_list} config/$f"
13575 esac
13576 done
13578 build_xm_file_list=
13579 for f in $build_xm_file; do
13580 case $f in
13581 ansidecl.h )
13582 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13583 build_xm_include_list="${build_xm_include_list} $f"
13585 auto-build.h | auto-host.h )
13586 build_xm_file_list="${build_xm_file_list} $f"
13587 build_xm_include_list="${build_xm_include_list} $f"
13590 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13591 build_xm_include_list="${build_xm_include_list} config/$f"
13593 esac
13594 done
13596 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13597 # cross-compiler which does not use the native headers and libraries.
13598 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13599 CROSS=
13600 ALL=all.internal
13601 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13602 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13604 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13605 test x$build != x$host || test "x$with_build_sysroot" != x; then
13606 if test "x$with_build_sysroot" != x; then
13607 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13608 else
13609 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13612 if test x$host != x$target
13613 then
13614 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13615 ALL=all.cross
13616 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13617 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13618 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13621 if test "x$with_build_sysroot" != "x"; then
13622 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13623 elif test "x$with_sysroot" = x; then
13624 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13625 elif test "x$with_sysroot" = xyes; then
13626 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13627 else
13628 target_header_dir="${with_sysroot}${native_system_header_dir}"
13630 else
13631 target_header_dir=${native_system_header_dir}
13634 # If this is a cross-compiler that does not
13635 # have its own set of headers then define
13636 # inhibit_libc
13638 # If this is using newlib, without having the headers available now,
13639 # then define inhibit_libc in LIBGCC2_CFLAGS.
13640 # This prevents libgcc2 from containing any code which requires libc
13641 # support.
13642 : ${inhibit_libc=false}
13643 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13644 test x$with_newlib = xyes ; } &&
13645 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13646 inhibit_libc=true
13650 # When building gcc with a cross-compiler, we need to adjust things so
13651 # that the generator programs are still built with the native compiler.
13652 # Also, we cannot run fixincludes.
13654 # These are the normal (build=host) settings:
13655 CC_FOR_BUILD='$(CC)'
13656 CXX_FOR_BUILD='$(CXX)'
13657 BUILD_CFLAGS='$(ALL_CFLAGS)'
13658 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13659 BUILD_LDFLAGS='$(LDFLAGS)'
13660 STMP_FIXINC=stmp-fixinc
13662 # And these apply if build != host, or we are generating coverage data
13663 if test x$build != x$host || test "x$coverage_flags" != x
13664 then
13665 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13666 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13667 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13671 if test x$enable_fixincludes = xno;
13672 then
13673 STMP_FIXINC=''
13676 # Expand extra_headers to include complete path.
13677 # This substitutes for lots of t-* files.
13678 extra_headers_list=
13679 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13680 for file in ${extra_headers} ; do
13681 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13682 done
13684 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13685 if test x"$use_gcc_tgmath" = xyes
13686 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13689 # Define collect2 in Makefile.
13690 case $host_can_use_collect2 in
13691 no) collect2= ;;
13692 *) collect2='collect2$(exeext)' ;;
13693 esac
13696 # Add a definition of USE_COLLECT2 if system wants one.
13697 case $use_collect2 in
13698 no) use_collect2= ;;
13699 "") ;;
13701 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13702 xm_defines="${xm_defines} USE_COLLECT2"
13703 case $host_can_use_collect2 in
13705 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13707 esac
13709 esac
13712 cat >>confdefs.h <<_ACEOF
13713 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13714 _ACEOF
13717 # ---------------------------
13718 # Assembler & linker features
13719 # ---------------------------
13721 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13722 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13723 # However when ld-new is first executed from the build tree, libtool will
13724 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13725 # to the build tree. While doing this we need to use the previous-stage
13726 # linker, or we have an infinite loop. The presence of a shell script as
13727 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13728 # the gcc/collect-ld script. So we need to know how libtool works, or
13729 # exec-tool will fail.
13732 case `pwd` in
13733 *\ * | *\ *)
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13735 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13736 esac
13740 macro_version='2.2.7a'
13741 macro_revision='1.3134'
13755 ltmain="$ac_aux_dir/ltmain.sh"
13757 # Backslashify metacharacters that are still active within
13758 # double-quoted strings.
13759 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13761 # Same as above, but do not quote variable references.
13762 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13764 # Sed substitution to delay expansion of an escaped shell variable in a
13765 # double_quote_subst'ed string.
13766 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13768 # Sed substitution to delay expansion of an escaped single quote.
13769 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13771 # Sed substitution to avoid accidental globbing in evaled expressions
13772 no_glob_subst='s/\*/\\\*/g'
13774 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13775 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13776 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13779 $as_echo_n "checking how to print strings... " >&6; }
13780 # Test print first, because it will be a builtin if present.
13781 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13782 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13783 ECHO='print -r --'
13784 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13785 ECHO='printf %s\n'
13786 else
13787 # Use this function as a fallback that always works.
13788 func_fallback_echo ()
13790 eval 'cat <<_LTECHO_EOF
13792 _LTECHO_EOF'
13794 ECHO='func_fallback_echo'
13797 # func_echo_all arg...
13798 # Invoke $ECHO with all args, space-separated.
13799 func_echo_all ()
13801 $ECHO ""
13804 case "$ECHO" in
13805 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13806 $as_echo "printf" >&6; } ;;
13807 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13808 $as_echo "print -r" >&6; } ;;
13809 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13810 $as_echo "cat" >&6; } ;;
13811 esac
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13827 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13828 if ${ac_cv_path_SED+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13832 for ac_i in 1 2 3 4 5 6 7; do
13833 ac_script="$ac_script$as_nl$ac_script"
13834 done
13835 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13836 { ac_script=; unset ac_script;}
13837 if test -z "$SED"; then
13838 ac_path_SED_found=false
13839 # Loop through the user's path and test for each of PROGNAME-LIST
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
13845 for ac_prog in sed gsed; do
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13848 as_fn_executable_p "$ac_path_SED" || continue
13849 # Check for GNU ac_path_SED and select it if it is found.
13850 # Check for GNU $ac_path_SED
13851 case `"$ac_path_SED" --version 2>&1` in
13852 *GNU*)
13853 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13855 ac_count=0
13856 $as_echo_n 0123456789 >"conftest.in"
13857 while :
13859 cat "conftest.in" "conftest.in" >"conftest.tmp"
13860 mv "conftest.tmp" "conftest.in"
13861 cp "conftest.in" "conftest.nl"
13862 $as_echo '' >> "conftest.nl"
13863 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13865 as_fn_arith $ac_count + 1 && ac_count=$as_val
13866 if test $ac_count -gt ${ac_path_SED_max-0}; then
13867 # Best one so far, save it but keep looking for a better one
13868 ac_cv_path_SED="$ac_path_SED"
13869 ac_path_SED_max=$ac_count
13871 # 10*(2^10) chars as input seems more than enough
13872 test $ac_count -gt 10 && break
13873 done
13874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13875 esac
13877 $ac_path_SED_found && break 3
13878 done
13879 done
13880 done
13881 IFS=$as_save_IFS
13882 if test -z "$ac_cv_path_SED"; then
13883 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13885 else
13886 ac_cv_path_SED=$SED
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13891 $as_echo "$ac_cv_path_SED" >&6; }
13892 SED="$ac_cv_path_SED"
13893 rm -f conftest.sed
13895 test -z "$SED" && SED=sed
13896 Xsed="$SED -e 1s/^X//"
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13909 $as_echo_n "checking for fgrep... " >&6; }
13910 if ${ac_cv_path_FGREP+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13914 then ac_cv_path_FGREP="$GREP -F"
13915 else
13916 if test -z "$FGREP"; then
13917 ac_path_FGREP_found=false
13918 # Loop through the user's path and test for each of PROGNAME-LIST
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_prog in fgrep; do
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13927 as_fn_executable_p "$ac_path_FGREP" || continue
13928 # Check for GNU ac_path_FGREP and select it if it is found.
13929 # Check for GNU $ac_path_FGREP
13930 case `"$ac_path_FGREP" --version 2>&1` in
13931 *GNU*)
13932 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13934 ac_count=0
13935 $as_echo_n 0123456789 >"conftest.in"
13936 while :
13938 cat "conftest.in" "conftest.in" >"conftest.tmp"
13939 mv "conftest.tmp" "conftest.in"
13940 cp "conftest.in" "conftest.nl"
13941 $as_echo 'FGREP' >> "conftest.nl"
13942 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13944 as_fn_arith $ac_count + 1 && ac_count=$as_val
13945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13946 # Best one so far, save it but keep looking for a better one
13947 ac_cv_path_FGREP="$ac_path_FGREP"
13948 ac_path_FGREP_max=$ac_count
13950 # 10*(2^10) chars as input seems more than enough
13951 test $ac_count -gt 10 && break
13952 done
13953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13954 esac
13956 $ac_path_FGREP_found && break 3
13957 done
13958 done
13959 done
13960 IFS=$as_save_IFS
13961 if test -z "$ac_cv_path_FGREP"; then
13962 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13964 else
13965 ac_cv_path_FGREP=$FGREP
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13971 $as_echo "$ac_cv_path_FGREP" >&6; }
13972 FGREP="$ac_cv_path_FGREP"
13975 test -z "$GREP" && GREP=grep
13995 # Check whether --with-gnu-ld was given.
13996 if test "${with_gnu_ld+set}" = set; then :
13997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13998 else
13999 with_gnu_ld=no
14002 ac_prog=ld
14003 if test "$GCC" = yes; then
14004 # Check if gcc -print-prog-name=ld gives a path.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14006 $as_echo_n "checking for ld used by $CC... " >&6; }
14007 case $host in
14008 *-*-mingw*)
14009 # gcc leaves a trailing carriage return which upsets mingw
14010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14013 esac
14014 case $ac_prog in
14015 # Accept absolute paths.
14016 [\\/]* | ?:[\\/]*)
14017 re_direlt='/[^/][^/]*/\.\./'
14018 # Canonicalize the pathname of ld
14019 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14020 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14021 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14022 done
14023 test -z "$LD" && LD="$ac_prog"
14026 # If it fails, then pretend we aren't using GCC.
14027 ac_prog=ld
14030 # If it is relative, then search for the first ld in PATH.
14031 with_gnu_ld=unknown
14033 esac
14034 elif test "$with_gnu_ld" = yes; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14036 $as_echo_n "checking for GNU ld... " >&6; }
14037 else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14039 $as_echo_n "checking for non-GNU ld... " >&6; }
14041 if ${lt_cv_path_LD+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 if test -z "$LD"; then
14045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14046 for ac_dir in $PATH; do
14047 IFS="$lt_save_ifs"
14048 test -z "$ac_dir" && ac_dir=.
14049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14050 lt_cv_path_LD="$ac_dir/$ac_prog"
14051 # Check to see if the program is GNU ld. I'd rather use --version,
14052 # but apparently some variants of GNU ld only accept -v.
14053 # Break only if it was the GNU/non-GNU ld that we prefer.
14054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14055 *GNU* | *'with BFD'*)
14056 test "$with_gnu_ld" != no && break
14059 test "$with_gnu_ld" != yes && break
14061 esac
14063 done
14064 IFS="$lt_save_ifs"
14065 else
14066 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14070 LD="$lt_cv_path_LD"
14071 if test -n "$LD"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14073 $as_echo "$LD" >&6; }
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14078 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14080 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14081 if ${lt_cv_prog_gnu_ld+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14085 case `$LD -v 2>&1 </dev/null` in
14086 *GNU* | *'with BFD'*)
14087 lt_cv_prog_gnu_ld=yes
14090 lt_cv_prog_gnu_ld=no
14092 esac
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14095 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14096 with_gnu_ld=$lt_cv_prog_gnu_ld
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14107 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14108 if ${lt_cv_path_NM+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 if test -n "$NM"; then
14112 # Let the user override the test.
14113 lt_cv_path_NM="$NM"
14114 else
14115 lt_nm_to_check="${ac_tool_prefix}nm"
14116 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14117 lt_nm_to_check="$lt_nm_to_check nm"
14119 for lt_tmp_nm in $lt_nm_to_check; do
14120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14121 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14122 IFS="$lt_save_ifs"
14123 test -z "$ac_dir" && ac_dir=.
14124 tmp_nm="$ac_dir/$lt_tmp_nm"
14125 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14126 # Check to see if the nm accepts a BSD-compat flag.
14127 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14128 # nm: unknown option "B" ignored
14129 # Tru64's nm complains that /dev/null is an invalid object file
14130 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14131 */dev/null* | *'Invalid file or object type'*)
14132 lt_cv_path_NM="$tmp_nm -B"
14133 break
14136 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14137 */dev/null*)
14138 lt_cv_path_NM="$tmp_nm -p"
14139 break
14142 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14143 continue # so that we can try to find one that supports BSD flags
14145 esac
14147 esac
14149 done
14150 IFS="$lt_save_ifs"
14151 done
14152 : ${lt_cv_path_NM=no}
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14156 $as_echo "$lt_cv_path_NM" >&6; }
14157 if test "$lt_cv_path_NM" != "no"; then
14158 NM="$lt_cv_path_NM"
14159 else
14160 # Didn't find any BSD compatible name lister, look for dumpbin.
14161 if test -n "$DUMPBIN"; then :
14162 # Let the user override the test.
14163 else
14164 if test -n "$ac_tool_prefix"; then
14165 for ac_prog in dumpbin "link -dump"
14167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if ${ac_cv_prog_DUMPBIN+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test -n "$DUMPBIN"; then
14175 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14176 else
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14188 done
14189 done
14190 IFS=$as_save_IFS
14194 DUMPBIN=$ac_cv_prog_DUMPBIN
14195 if test -n "$DUMPBIN"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14197 $as_echo "$DUMPBIN" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14204 test -n "$DUMPBIN" && break
14205 done
14207 if test -z "$DUMPBIN"; then
14208 ac_ct_DUMPBIN=$DUMPBIN
14209 for ac_prog in dumpbin "link -dump"
14211 # Extract the first word of "$ac_prog", so it can be a program name with args.
14212 set dummy $ac_prog; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 if test -n "$ac_ct_DUMPBIN"; then
14219 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14220 else
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14228 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 break 2
14232 done
14233 done
14234 IFS=$as_save_IFS
14238 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14239 if test -n "$ac_ct_DUMPBIN"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14241 $as_echo "$ac_ct_DUMPBIN" >&6; }
14242 else
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14248 test -n "$ac_ct_DUMPBIN" && break
14249 done
14251 if test "x$ac_ct_DUMPBIN" = x; then
14252 DUMPBIN=":"
14253 else
14254 case $cross_compiling:$ac_tool_warned in
14255 yes:)
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14258 ac_tool_warned=yes ;;
14259 esac
14260 DUMPBIN=$ac_ct_DUMPBIN
14264 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14265 *COFF*)
14266 DUMPBIN="$DUMPBIN -symbols"
14269 DUMPBIN=:
14271 esac
14274 if test "$DUMPBIN" != ":"; then
14275 NM="$DUMPBIN"
14278 test -z "$NM" && NM=nm
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14286 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14287 if ${lt_cv_nm_interface+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 lt_cv_nm_interface="BSD nm"
14291 echo "int some_variable = 0;" > conftest.$ac_ext
14292 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14293 (eval "$ac_compile" 2>conftest.err)
14294 cat conftest.err >&5
14295 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14296 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14297 cat conftest.err >&5
14298 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14299 cat conftest.out >&5
14300 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14301 lt_cv_nm_interface="MS dumpbin"
14303 rm -f conftest*
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14306 $as_echo "$lt_cv_nm_interface" >&6; }
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14309 $as_echo_n "checking whether ln -s works... " >&6; }
14310 LN_S=$as_ln_s
14311 if test "$LN_S" = "ln -s"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14313 $as_echo "yes" >&6; }
14314 else
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14316 $as_echo "no, using $LN_S" >&6; }
14319 # find the maximum length of command line arguments
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14321 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14322 if ${lt_cv_sys_max_cmd_len+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14326 teststring="ABCD"
14328 case $build_os in
14329 msdosdjgpp*)
14330 # On DJGPP, this test can blow up pretty badly due to problems in libc
14331 # (any single argument exceeding 2000 bytes causes a buffer overrun
14332 # during glob expansion). Even if it were fixed, the result of this
14333 # check would be larger than it should be.
14334 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14337 gnu*)
14338 # Under GNU Hurd, this test is not required because there is
14339 # no limit to the length of command line arguments.
14340 # Libtool will interpret -1 as no limit whatsoever
14341 lt_cv_sys_max_cmd_len=-1;
14344 cygwin* | mingw* | cegcc*)
14345 # On Win9x/ME, this test blows up -- it succeeds, but takes
14346 # about 5 minutes as the teststring grows exponentially.
14347 # Worse, since 9x/ME are not pre-emptively multitasking,
14348 # you end up with a "frozen" computer, even though with patience
14349 # the test eventually succeeds (with a max line length of 256k).
14350 # Instead, let's just punt: use the minimum linelength reported by
14351 # all of the supported platforms: 8192 (on NT/2K/XP).
14352 lt_cv_sys_max_cmd_len=8192;
14355 mint*)
14356 # On MiNT this can take a long time and run out of memory.
14357 lt_cv_sys_max_cmd_len=8192;
14360 amigaos*)
14361 # On AmigaOS with pdksh, this test takes hours, literally.
14362 # So we just punt and use a minimum line length of 8192.
14363 lt_cv_sys_max_cmd_len=8192;
14366 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14367 # This has been around since 386BSD, at least. Likely further.
14368 if test -x /sbin/sysctl; then
14369 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14370 elif test -x /usr/sbin/sysctl; then
14371 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14372 else
14373 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14375 # And add a safety zone
14376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14380 interix*)
14381 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14382 lt_cv_sys_max_cmd_len=196608
14385 osf*)
14386 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14387 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14388 # nice to cause kernel panics so lets avoid the loop below.
14389 # First set a reasonable default.
14390 lt_cv_sys_max_cmd_len=16384
14392 if test -x /sbin/sysconfig; then
14393 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14394 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14395 esac
14398 sco3.2v5*)
14399 lt_cv_sys_max_cmd_len=102400
14401 sysv5* | sco5v6* | sysv4.2uw2*)
14402 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14403 if test -n "$kargmax"; then
14404 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14405 else
14406 lt_cv_sys_max_cmd_len=32768
14410 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14411 if test -n "$lt_cv_sys_max_cmd_len"; then
14412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14414 else
14415 # Make teststring a little bigger before we do anything with it.
14416 # a 1K string should be a reasonable start.
14417 for i in 1 2 3 4 5 6 7 8 ; do
14418 teststring=$teststring$teststring
14419 done
14420 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14421 # If test is not a shell built-in, we'll probably end up computing a
14422 # maximum length that is only half of the actual maximum length, but
14423 # we can't tell.
14424 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14425 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14426 test $i != 17 # 1/2 MB should be enough
14428 i=`expr $i + 1`
14429 teststring=$teststring$teststring
14430 done
14431 # Only check the string length outside the loop.
14432 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14433 teststring=
14434 # Add a significant safety factor because C++ compilers can tack on
14435 # massive amounts of additional arguments before passing them to the
14436 # linker. It appears as though 1/2 is a usable value.
14437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14440 esac
14444 if test -n $lt_cv_sys_max_cmd_len ; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14446 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14449 $as_echo "none" >&6; }
14451 max_cmd_len=$lt_cv_sys_max_cmd_len
14458 : ${CP="cp -f"}
14459 : ${MV="mv -f"}
14460 : ${RM="rm -f"}
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14463 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14464 # Try some XSI features
14465 xsi_shell=no
14466 ( _lt_dummy="a/b/c"
14467 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14468 = c,a/b,, \
14469 && eval 'test $(( 1 + 1 )) -eq 2 \
14470 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14471 && xsi_shell=yes
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14473 $as_echo "$xsi_shell" >&6; }
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14477 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14478 lt_shell_append=no
14479 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14480 >/dev/null 2>&1 \
14481 && lt_shell_append=yes
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14483 $as_echo "$lt_shell_append" >&6; }
14486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14487 lt_unset=unset
14488 else
14489 lt_unset=false
14496 # test EBCDIC or ASCII
14497 case `echo X|tr X '\101'` in
14498 A) # ASCII based system
14499 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14500 lt_SP2NL='tr \040 \012'
14501 lt_NL2SP='tr \015\012 \040\040'
14503 *) # EBCDIC based system
14504 lt_SP2NL='tr \100 \n'
14505 lt_NL2SP='tr \r\n \100\100'
14507 esac
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14518 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14519 if ${lt_cv_ld_reload_flag+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522 lt_cv_ld_reload_flag='-r'
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14525 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14526 reload_flag=$lt_cv_ld_reload_flag
14527 case $reload_flag in
14528 "" | " "*) ;;
14529 *) reload_flag=" $reload_flag" ;;
14530 esac
14531 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14532 case $host_os in
14533 darwin*)
14534 if test "$GCC" = yes; then
14535 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14536 else
14537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14540 esac
14550 if test -n "$ac_tool_prefix"; then
14551 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14552 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14554 $as_echo_n "checking for $ac_word... " >&6; }
14555 if ${ac_cv_prog_OBJDUMP+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 if test -n "$OBJDUMP"; then
14559 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14560 else
14561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14562 for as_dir in $PATH
14564 IFS=$as_save_IFS
14565 test -z "$as_dir" && as_dir=.
14566 for ac_exec_ext in '' $ac_executable_extensions; do
14567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14568 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14570 break 2
14572 done
14573 done
14574 IFS=$as_save_IFS
14578 OBJDUMP=$ac_cv_prog_OBJDUMP
14579 if test -n "$OBJDUMP"; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14581 $as_echo "$OBJDUMP" >&6; }
14582 else
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14584 $as_echo "no" >&6; }
14589 if test -z "$ac_cv_prog_OBJDUMP"; then
14590 ac_ct_OBJDUMP=$OBJDUMP
14591 # Extract the first word of "objdump", so it can be a program name with args.
14592 set dummy objdump; ac_word=$2
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594 $as_echo_n "checking for $ac_word... " >&6; }
14595 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 if test -n "$ac_ct_OBJDUMP"; then
14599 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14600 else
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14604 IFS=$as_save_IFS
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14610 break 2
14612 done
14613 done
14614 IFS=$as_save_IFS
14618 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14619 if test -n "$ac_ct_OBJDUMP"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14621 $as_echo "$ac_ct_OBJDUMP" >&6; }
14622 else
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14627 if test "x$ac_ct_OBJDUMP" = x; then
14628 OBJDUMP="false"
14629 else
14630 case $cross_compiling:$ac_tool_warned in
14631 yes:)
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14634 ac_tool_warned=yes ;;
14635 esac
14636 OBJDUMP=$ac_ct_OBJDUMP
14638 else
14639 OBJDUMP="$ac_cv_prog_OBJDUMP"
14642 test -z "$OBJDUMP" && OBJDUMP=objdump
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14653 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14654 if ${lt_cv_deplibs_check_method+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656 else
14657 lt_cv_file_magic_cmd='$MAGIC_CMD'
14658 lt_cv_file_magic_test_file=
14659 lt_cv_deplibs_check_method='unknown'
14660 # Need to set the preceding variable on all platforms that support
14661 # interlibrary dependencies.
14662 # 'none' -- dependencies not supported.
14663 # `unknown' -- same as none, but documents that we really don't know.
14664 # 'pass_all' -- all dependencies passed with no checks.
14665 # 'test_compile' -- check by making test program.
14666 # 'file_magic [[regex]]' -- check by looking for files in library path
14667 # which responds to the $file_magic_cmd with a given extended regex.
14668 # If you have `file' or equivalent on your system and you're not sure
14669 # whether `pass_all' will *always* work, you probably want this one.
14671 case $host_os in
14672 aix[4-9]*)
14673 lt_cv_deplibs_check_method=pass_all
14676 beos*)
14677 lt_cv_deplibs_check_method=pass_all
14680 bsdi[45]*)
14681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14682 lt_cv_file_magic_cmd='/usr/bin/file -L'
14683 lt_cv_file_magic_test_file=/shlib/libc.so
14686 cygwin*)
14687 # func_win32_libid is a shell function defined in ltmain.sh
14688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14689 lt_cv_file_magic_cmd='func_win32_libid'
14692 mingw* | pw32*)
14693 # Base MSYS/MinGW do not provide the 'file' command needed by
14694 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14695 # unless we find 'file', for example because we are cross-compiling.
14696 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14697 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14699 lt_cv_file_magic_cmd='func_win32_libid'
14700 else
14701 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14702 lt_cv_file_magic_cmd='$OBJDUMP -f'
14706 cegcc*)
14707 # use the weaker test based on 'objdump'. See mingw*.
14708 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14709 lt_cv_file_magic_cmd='$OBJDUMP -f'
14712 darwin* | rhapsody*)
14713 lt_cv_deplibs_check_method=pass_all
14716 freebsd* | dragonfly*)
14717 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14718 case $host_cpu in
14719 i*86 )
14720 # Not sure whether the presence of OpenBSD here was a mistake.
14721 # Let's accept both of them until this is cleared up.
14722 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14723 lt_cv_file_magic_cmd=/usr/bin/file
14724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14726 esac
14727 else
14728 lt_cv_deplibs_check_method=pass_all
14732 gnu*)
14733 lt_cv_deplibs_check_method=pass_all
14736 haiku*)
14737 lt_cv_deplibs_check_method=pass_all
14740 hpux10.20* | hpux11*)
14741 lt_cv_file_magic_cmd=/usr/bin/file
14742 case $host_cpu in
14743 ia64*)
14744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14747 hppa*64*)
14748 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]'
14749 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14753 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14755 esac
14758 interix[3-9]*)
14759 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14763 irix5* | irix6* | nonstopux*)
14764 case $LD in
14765 *-32|*"-32 ") libmagic=32-bit;;
14766 *-n32|*"-n32 ") libmagic=N32;;
14767 *-64|*"-64 ") libmagic=64-bit;;
14768 *) libmagic=never-match;;
14769 esac
14770 lt_cv_deplibs_check_method=pass_all
14773 # This must be Linux ELF.
14774 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14775 lt_cv_deplibs_check_method=pass_all
14778 netbsd*)
14779 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14781 else
14782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14786 newos6*)
14787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14788 lt_cv_file_magic_cmd=/usr/bin/file
14789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14792 *nto* | *qnx*)
14793 lt_cv_deplibs_check_method=pass_all
14796 openbsd*)
14797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14799 else
14800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14804 osf3* | osf4* | osf5*)
14805 lt_cv_deplibs_check_method=pass_all
14808 rdos*)
14809 lt_cv_deplibs_check_method=pass_all
14812 solaris*)
14813 lt_cv_deplibs_check_method=pass_all
14816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14817 lt_cv_deplibs_check_method=pass_all
14820 sysv4 | sysv4.3*)
14821 case $host_vendor in
14822 motorola)
14823 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]'
14824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14826 ncr)
14827 lt_cv_deplibs_check_method=pass_all
14829 sequent)
14830 lt_cv_file_magic_cmd='/bin/file'
14831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14833 sni)
14834 lt_cv_file_magic_cmd='/bin/file'
14835 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14836 lt_cv_file_magic_test_file=/lib/libc.so
14838 siemens)
14839 lt_cv_deplibs_check_method=pass_all
14842 lt_cv_deplibs_check_method=pass_all
14844 esac
14847 tpf*)
14848 lt_cv_deplibs_check_method=pass_all
14850 vxworks*)
14851 # Assume VxWorks cross toolchains are built on Linux, possibly
14852 # as canadian for Windows hosts.
14853 lt_cv_deplibs_check_method=pass_all
14855 esac
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14859 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14860 file_magic_cmd=$lt_cv_file_magic_cmd
14861 deplibs_check_method=$lt_cv_deplibs_check_method
14862 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14875 if test -n "$ac_tool_prefix"; then
14876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14877 set dummy ${ac_tool_prefix}ar; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14879 $as_echo_n "checking for $ac_word... " >&6; }
14880 if ${ac_cv_prog_AR+:} false; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 if test -n "$AR"; then
14884 ac_cv_prog_AR="$AR" # Let the user override the test.
14885 else
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14889 IFS=$as_save_IFS
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893 ac_cv_prog_AR="${ac_tool_prefix}ar"
14894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14895 break 2
14897 done
14898 done
14899 IFS=$as_save_IFS
14903 AR=$ac_cv_prog_AR
14904 if test -n "$AR"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14906 $as_echo "$AR" >&6; }
14907 else
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14914 if test -z "$ac_cv_prog_AR"; then
14915 ac_ct_AR=$AR
14916 # Extract the first word of "ar", so it can be a program name with args.
14917 set dummy ar; ac_word=$2
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14919 $as_echo_n "checking for $ac_word... " >&6; }
14920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 if test -n "$ac_ct_AR"; then
14924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14925 else
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $PATH
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_prog_ac_ct_AR="ar"
14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14935 break 2
14937 done
14938 done
14939 IFS=$as_save_IFS
14943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14944 if test -n "$ac_ct_AR"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14946 $as_echo "$ac_ct_AR" >&6; }
14947 else
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14952 if test "x$ac_ct_AR" = x; then
14953 AR="false"
14954 else
14955 case $cross_compiling:$ac_tool_warned in
14956 yes:)
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14959 ac_tool_warned=yes ;;
14960 esac
14961 AR=$ac_ct_AR
14963 else
14964 AR="$ac_cv_prog_AR"
14967 test -z "$AR" && AR=ar
14968 test -z "$AR_FLAGS" && AR_FLAGS=cru
14980 if test -n "$ac_tool_prefix"; then
14981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14982 set dummy ${ac_tool_prefix}strip; ac_word=$2
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14984 $as_echo_n "checking for $ac_word... " >&6; }
14985 if ${ac_cv_prog_STRIP+:} false; then :
14986 $as_echo_n "(cached) " >&6
14987 else
14988 if test -n "$STRIP"; then
14989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14990 else
14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992 for as_dir in $PATH
14994 IFS=$as_save_IFS
14995 test -z "$as_dir" && as_dir=.
14996 for ac_exec_ext in '' $ac_executable_extensions; do
14997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15000 break 2
15002 done
15003 done
15004 IFS=$as_save_IFS
15008 STRIP=$ac_cv_prog_STRIP
15009 if test -n "$STRIP"; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15011 $as_echo "$STRIP" >&6; }
15012 else
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15019 if test -z "$ac_cv_prog_STRIP"; then
15020 ac_ct_STRIP=$STRIP
15021 # Extract the first word of "strip", so it can be a program name with args.
15022 set dummy strip; ac_word=$2
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15024 $as_echo_n "checking for $ac_word... " >&6; }
15025 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 if test -n "$ac_ct_STRIP"; then
15029 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15030 else
15031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15032 for as_dir in $PATH
15034 IFS=$as_save_IFS
15035 test -z "$as_dir" && as_dir=.
15036 for ac_exec_ext in '' $ac_executable_extensions; do
15037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15038 ac_cv_prog_ac_ct_STRIP="strip"
15039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15040 break 2
15042 done
15043 done
15044 IFS=$as_save_IFS
15048 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15049 if test -n "$ac_ct_STRIP"; then
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15051 $as_echo "$ac_ct_STRIP" >&6; }
15052 else
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15057 if test "x$ac_ct_STRIP" = x; then
15058 STRIP=":"
15059 else
15060 case $cross_compiling:$ac_tool_warned in
15061 yes:)
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15064 ac_tool_warned=yes ;;
15065 esac
15066 STRIP=$ac_ct_STRIP
15068 else
15069 STRIP="$ac_cv_prog_STRIP"
15072 test -z "$STRIP" && STRIP=:
15079 if test -n "$ac_tool_prefix"; then
15080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15083 $as_echo_n "checking for $ac_word... " >&6; }
15084 if ${ac_cv_prog_RANLIB+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 if test -n "$RANLIB"; then
15088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15089 else
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15093 IFS=$as_save_IFS
15094 test -z "$as_dir" && as_dir=.
15095 for ac_exec_ext in '' $ac_executable_extensions; do
15096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15099 break 2
15101 done
15102 done
15103 IFS=$as_save_IFS
15107 RANLIB=$ac_cv_prog_RANLIB
15108 if test -n "$RANLIB"; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15110 $as_echo "$RANLIB" >&6; }
15111 else
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15118 if test -z "$ac_cv_prog_RANLIB"; then
15119 ac_ct_RANLIB=$RANLIB
15120 # Extract the first word of "ranlib", so it can be a program name with args.
15121 set dummy ranlib; ac_word=$2
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15123 $as_echo_n "checking for $ac_word... " >&6; }
15124 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 if test -n "$ac_ct_RANLIB"; then
15128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15129 else
15130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15133 IFS=$as_save_IFS
15134 test -z "$as_dir" && as_dir=.
15135 for ac_exec_ext in '' $ac_executable_extensions; do
15136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137 ac_cv_prog_ac_ct_RANLIB="ranlib"
15138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15139 break 2
15141 done
15142 done
15143 IFS=$as_save_IFS
15147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15148 if test -n "$ac_ct_RANLIB"; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15150 $as_echo "$ac_ct_RANLIB" >&6; }
15151 else
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15153 $as_echo "no" >&6; }
15156 if test "x$ac_ct_RANLIB" = x; then
15157 RANLIB=":"
15158 else
15159 case $cross_compiling:$ac_tool_warned in
15160 yes:)
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15163 ac_tool_warned=yes ;;
15164 esac
15165 RANLIB=$ac_ct_RANLIB
15167 else
15168 RANLIB="$ac_cv_prog_RANLIB"
15171 test -z "$RANLIB" && RANLIB=:
15178 # Determine commands to create old-style static archives.
15179 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15180 old_postinstall_cmds='chmod 644 $oldlib'
15181 old_postuninstall_cmds=
15183 if test -n "$RANLIB"; then
15184 case $host_os in
15185 openbsd*)
15186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15191 esac
15192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15195 case $host_os in
15196 darwin*)
15197 lock_old_archive_extraction=yes ;;
15199 lock_old_archive_extraction=no ;;
15200 esac
15240 # If no C compiler was specified, use CC.
15241 LTCC=${LTCC-"$CC"}
15243 # If no C compiler flags were specified, use CFLAGS.
15244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15246 # Allow CC to be a program name with arguments.
15247 compiler=$CC
15250 # Check for command to grab the raw symbol name followed by C symbol from nm.
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15252 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15253 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15257 # These are sane defaults that work on at least a few old systems.
15258 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15260 # Character class describing NM global symbol codes.
15261 symcode='[BCDEGRST]'
15263 # Regexp to match symbols that can be accessed directly from C.
15264 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15266 # Define system-specific variables.
15267 case $host_os in
15268 aix*)
15269 symcode='[BCDT]'
15271 cygwin* | mingw* | pw32* | cegcc*)
15272 symcode='[ABCDGISTW]'
15274 hpux*)
15275 if test "$host_cpu" = ia64; then
15276 symcode='[ABCDEGRST]'
15279 irix* | nonstopux*)
15280 symcode='[BCDEGRST]'
15282 osf*)
15283 symcode='[BCDEGQRST]'
15285 solaris*)
15286 symcode='[BDRT]'
15288 sco3.2v5*)
15289 symcode='[DT]'
15291 sysv4.2uw2*)
15292 symcode='[DT]'
15294 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15295 symcode='[ABDT]'
15297 sysv4)
15298 symcode='[DFNSTU]'
15300 esac
15302 # If we're using GNU nm, then use its standard symbol codes.
15303 case `$NM -V 2>&1` in
15304 *GNU* | *'with BFD'*)
15305 symcode='[ABCDGIRSTW]' ;;
15306 esac
15308 # Transform an extracted symbol line into a proper C declaration.
15309 # Some systems (esp. on ia64) link data and code symbols differently,
15310 # so use this general approach.
15311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15313 # Transform an extracted symbol line into symbol name and symbol address
15314 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15315 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'"
15317 # Handle CRLF in mingw tool chain
15318 opt_cr=
15319 case $build_os in
15320 mingw*)
15321 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15323 esac
15325 # Try without a prefix underscore, then with it.
15326 for ac_symprfx in "" "_"; do
15328 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15329 symxfrm="\\1 $ac_symprfx\\2 \\2"
15331 # Write the raw and C identifiers.
15332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15333 # Fake it for dumpbin and say T for any non-static function
15334 # and D for any global variable.
15335 # Also find C++ and __fastcall symbols from MSVC++,
15336 # which start with @ or ?.
15337 lt_cv_sys_global_symbol_pipe="$AWK '"\
15338 " {last_section=section; section=\$ 3};"\
15339 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15340 " \$ 0!~/External *\|/{next};"\
15341 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15342 " {if(hide[section]) next};"\
15343 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15344 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15345 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15346 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15347 " ' prfx=^$ac_symprfx"
15348 else
15349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15352 # Check to see that the pipe works correctly.
15353 pipe_works=no
15355 rm -f conftest*
15356 cat > conftest.$ac_ext <<_LT_EOF
15357 #ifdef __cplusplus
15358 extern "C" {
15359 #endif
15360 char nm_test_var;
15361 void nm_test_func(void);
15362 void nm_test_func(void){}
15363 #ifdef __cplusplus
15365 #endif
15366 int main(){nm_test_var='a';nm_test_func();return(0);}
15367 _LT_EOF
15369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15370 (eval $ac_compile) 2>&5
15371 ac_status=$?
15372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15373 test $ac_status = 0; }; then
15374 # Now try to grab the symbols.
15375 nlist=conftest.nm
15376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15377 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15378 ac_status=$?
15379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15380 test $ac_status = 0; } && test -s "$nlist"; then
15381 # Try sorting and uniquifying the output.
15382 if sort "$nlist" | uniq > "$nlist"T; then
15383 mv -f "$nlist"T "$nlist"
15384 else
15385 rm -f "$nlist"T
15388 # Make sure that we snagged all the symbols we need.
15389 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15390 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15391 cat <<_LT_EOF > conftest.$ac_ext
15392 #ifdef __cplusplus
15393 extern "C" {
15394 #endif
15396 _LT_EOF
15397 # Now generate the symbol file.
15398 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15400 cat <<_LT_EOF >> conftest.$ac_ext
15402 /* The mapping between symbol names and symbols. */
15403 const struct {
15404 const char *name;
15405 void *address;
15407 lt__PROGRAM__LTX_preloaded_symbols[] =
15409 { "@PROGRAM@", (void *) 0 },
15410 _LT_EOF
15411 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15412 cat <<\_LT_EOF >> conftest.$ac_ext
15413 {0, (void *) 0}
15416 /* This works around a problem in FreeBSD linker */
15417 #ifdef FREEBSD_WORKAROUND
15418 static const void *lt_preloaded_setup() {
15419 return lt__PROGRAM__LTX_preloaded_symbols;
15421 #endif
15423 #ifdef __cplusplus
15425 #endif
15426 _LT_EOF
15427 # Now try linking the two files.
15428 mv conftest.$ac_objext conftstm.$ac_objext
15429 lt_save_LIBS="$LIBS"
15430 lt_save_CFLAGS="$CFLAGS"
15431 LIBS="conftstm.$ac_objext"
15432 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15434 (eval $ac_link) 2>&5
15435 ac_status=$?
15436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15437 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15438 pipe_works=yes
15440 LIBS="$lt_save_LIBS"
15441 CFLAGS="$lt_save_CFLAGS"
15442 else
15443 echo "cannot find nm_test_func in $nlist" >&5
15445 else
15446 echo "cannot find nm_test_var in $nlist" >&5
15448 else
15449 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15451 else
15452 echo "$progname: failed program was:" >&5
15453 cat conftest.$ac_ext >&5
15455 rm -rf conftest* conftst*
15457 # Do not use the global_symbol_pipe unless it works.
15458 if test "$pipe_works" = yes; then
15459 break
15460 else
15461 lt_cv_sys_global_symbol_pipe=
15463 done
15467 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15468 lt_cv_sys_global_symbol_to_cdecl=
15470 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15472 $as_echo "failed" >&6; }
15473 else
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15475 $as_echo "ok" >&6; }
15499 # Check whether --enable-libtool-lock was given.
15500 if test "${enable_libtool_lock+set}" = set; then :
15501 enableval=$enable_libtool_lock;
15504 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15506 # Some flags need to be propagated to the compiler or linker for good
15507 # libtool support.
15508 case $host in
15509 ia64-*-hpux*)
15510 # Find out which ABI we are using.
15511 echo 'int i;' > conftest.$ac_ext
15512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15513 (eval $ac_compile) 2>&5
15514 ac_status=$?
15515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516 test $ac_status = 0; }; then
15517 case `/usr/bin/file conftest.$ac_objext` in
15518 *ELF-32*)
15519 HPUX_IA64_MODE="32"
15521 *ELF-64*)
15522 HPUX_IA64_MODE="64"
15524 esac
15526 rm -rf conftest*
15528 *-*-irix6*)
15529 # Find out which ABI we are using.
15530 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15532 (eval $ac_compile) 2>&5
15533 ac_status=$?
15534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15535 test $ac_status = 0; }; then
15536 if test "$lt_cv_prog_gnu_ld" = yes; then
15537 case `/usr/bin/file conftest.$ac_objext` in
15538 *32-bit*)
15539 LD="${LD-ld} -melf32bsmip"
15541 *N32*)
15542 LD="${LD-ld} -melf32bmipn32"
15544 *64-bit*)
15545 LD="${LD-ld} -melf64bmip"
15547 esac
15548 else
15549 case `/usr/bin/file conftest.$ac_objext` in
15550 *32-bit*)
15551 LD="${LD-ld} -32"
15553 *N32*)
15554 LD="${LD-ld} -n32"
15556 *64-bit*)
15557 LD="${LD-ld} -64"
15559 esac
15562 rm -rf conftest*
15565 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15566 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15567 # Find out which ABI we are using.
15568 echo 'int i;' > conftest.$ac_ext
15569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15570 (eval $ac_compile) 2>&5
15571 ac_status=$?
15572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15573 test $ac_status = 0; }; then
15574 case `/usr/bin/file conftest.o` in
15575 *32-bit*)
15576 case $host in
15577 x86_64-*kfreebsd*-gnu)
15578 LD="${LD-ld} -m elf_i386_fbsd"
15580 x86_64-*linux*)
15581 case `/usr/bin/file conftest.o` in
15582 *x86-64*)
15583 LD="${LD-ld} -m elf32_x86_64"
15586 LD="${LD-ld} -m elf_i386"
15588 esac
15590 powerpc64le-*linux*)
15591 LD="${LD-ld} -m elf32lppclinux"
15593 powerpc64-*linux*)
15594 LD="${LD-ld} -m elf32ppclinux"
15596 s390x-*linux*)
15597 LD="${LD-ld} -m elf_s390"
15599 sparc64-*linux*)
15600 LD="${LD-ld} -m elf32_sparc"
15602 esac
15604 *64-bit*)
15605 case $host in
15606 x86_64-*kfreebsd*-gnu)
15607 LD="${LD-ld} -m elf_x86_64_fbsd"
15609 x86_64-*linux*)
15610 LD="${LD-ld} -m elf_x86_64"
15612 powerpcle-*linux*)
15613 LD="${LD-ld} -m elf64lppc"
15615 powerpc-*linux*)
15616 LD="${LD-ld} -m elf64ppc"
15618 s390*-*linux*|s390*-*tpf*)
15619 LD="${LD-ld} -m elf64_s390"
15621 sparc*-*linux*)
15622 LD="${LD-ld} -m elf64_sparc"
15624 esac
15626 esac
15628 rm -rf conftest*
15631 *-*-sco3.2v5*)
15632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15633 SAVE_CFLAGS="$CFLAGS"
15634 CFLAGS="$CFLAGS -belf"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15636 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15637 if ${lt_cv_cc_needs_belf+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 ac_ext=c
15641 ac_cpp='$CPP $CPPFLAGS'
15642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15650 main ()
15654 return 0;
15656 _ACEOF
15657 if ac_fn_c_try_link "$LINENO"; then :
15658 lt_cv_cc_needs_belf=yes
15659 else
15660 lt_cv_cc_needs_belf=no
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 ac_ext=c
15665 ac_cpp='$CPP $CPPFLAGS'
15666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15672 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15675 CFLAGS="$SAVE_CFLAGS"
15678 sparc*-*solaris*)
15679 # Find out which ABI we are using.
15680 echo 'int i;' > conftest.$ac_ext
15681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15682 (eval $ac_compile) 2>&5
15683 ac_status=$?
15684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15685 test $ac_status = 0; }; then
15686 case `/usr/bin/file conftest.o` in
15687 *64-bit*)
15688 case $lt_cv_prog_gnu_ld in
15689 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15691 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15692 LD="${LD-ld} -64"
15695 esac
15697 esac
15699 rm -rf conftest*
15701 esac
15703 need_locks="$enable_libtool_lock"
15706 case $host_os in
15707 rhapsody* | darwin*)
15708 if test -n "$ac_tool_prefix"; then
15709 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15710 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15712 $as_echo_n "checking for $ac_word... " >&6; }
15713 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15714 $as_echo_n "(cached) " >&6
15715 else
15716 if test -n "$DSYMUTIL"; then
15717 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15718 else
15719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15722 IFS=$as_save_IFS
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15728 break 2
15730 done
15731 done
15732 IFS=$as_save_IFS
15736 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15737 if test -n "$DSYMUTIL"; then
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15739 $as_echo "$DSYMUTIL" >&6; }
15740 else
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742 $as_echo "no" >&6; }
15747 if test -z "$ac_cv_prog_DSYMUTIL"; then
15748 ac_ct_DSYMUTIL=$DSYMUTIL
15749 # Extract the first word of "dsymutil", so it can be a program name with args.
15750 set dummy dsymutil; ac_word=$2
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15752 $as_echo_n "checking for $ac_word... " >&6; }
15753 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15754 $as_echo_n "(cached) " >&6
15755 else
15756 if test -n "$ac_ct_DSYMUTIL"; then
15757 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15758 else
15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760 for as_dir in $PATH
15762 IFS=$as_save_IFS
15763 test -z "$as_dir" && as_dir=.
15764 for ac_exec_ext in '' $ac_executable_extensions; do
15765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15766 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15768 break 2
15770 done
15771 done
15772 IFS=$as_save_IFS
15776 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15777 if test -n "$ac_ct_DSYMUTIL"; then
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15779 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15780 else
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15782 $as_echo "no" >&6; }
15785 if test "x$ac_ct_DSYMUTIL" = x; then
15786 DSYMUTIL=":"
15787 else
15788 case $cross_compiling:$ac_tool_warned in
15789 yes:)
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15792 ac_tool_warned=yes ;;
15793 esac
15794 DSYMUTIL=$ac_ct_DSYMUTIL
15796 else
15797 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15800 if test -n "$ac_tool_prefix"; then
15801 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15802 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15804 $as_echo_n "checking for $ac_word... " >&6; }
15805 if ${ac_cv_prog_NMEDIT+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 if test -n "$NMEDIT"; then
15809 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15810 else
15811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812 for as_dir in $PATH
15814 IFS=$as_save_IFS
15815 test -z "$as_dir" && as_dir=.
15816 for ac_exec_ext in '' $ac_executable_extensions; do
15817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15818 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15820 break 2
15822 done
15823 done
15824 IFS=$as_save_IFS
15828 NMEDIT=$ac_cv_prog_NMEDIT
15829 if test -n "$NMEDIT"; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15831 $as_echo "$NMEDIT" >&6; }
15832 else
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 $as_echo "no" >&6; }
15839 if test -z "$ac_cv_prog_NMEDIT"; then
15840 ac_ct_NMEDIT=$NMEDIT
15841 # Extract the first word of "nmedit", so it can be a program name with args.
15842 set dummy nmedit; ac_word=$2
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15844 $as_echo_n "checking for $ac_word... " >&6; }
15845 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15846 $as_echo_n "(cached) " >&6
15847 else
15848 if test -n "$ac_ct_NMEDIT"; then
15849 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15850 else
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15854 IFS=$as_save_IFS
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15860 break 2
15862 done
15863 done
15864 IFS=$as_save_IFS
15868 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15869 if test -n "$ac_ct_NMEDIT"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15871 $as_echo "$ac_ct_NMEDIT" >&6; }
15872 else
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15877 if test "x$ac_ct_NMEDIT" = x; then
15878 NMEDIT=":"
15879 else
15880 case $cross_compiling:$ac_tool_warned in
15881 yes:)
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15884 ac_tool_warned=yes ;;
15885 esac
15886 NMEDIT=$ac_ct_NMEDIT
15888 else
15889 NMEDIT="$ac_cv_prog_NMEDIT"
15892 if test -n "$ac_tool_prefix"; then
15893 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15894 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15896 $as_echo_n "checking for $ac_word... " >&6; }
15897 if ${ac_cv_prog_LIPO+:} false; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 if test -n "$LIPO"; then
15901 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15902 else
15903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15904 for as_dir in $PATH
15906 IFS=$as_save_IFS
15907 test -z "$as_dir" && as_dir=.
15908 for ac_exec_ext in '' $ac_executable_extensions; do
15909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15912 break 2
15914 done
15915 done
15916 IFS=$as_save_IFS
15920 LIPO=$ac_cv_prog_LIPO
15921 if test -n "$LIPO"; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15923 $as_echo "$LIPO" >&6; }
15924 else
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926 $as_echo "no" >&6; }
15931 if test -z "$ac_cv_prog_LIPO"; then
15932 ac_ct_LIPO=$LIPO
15933 # Extract the first word of "lipo", so it can be a program name with args.
15934 set dummy lipo; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15936 $as_echo_n "checking for $ac_word... " >&6; }
15937 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 if test -n "$ac_ct_LIPO"; then
15941 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15942 else
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 for as_dir in $PATH
15946 IFS=$as_save_IFS
15947 test -z "$as_dir" && as_dir=.
15948 for ac_exec_ext in '' $ac_executable_extensions; do
15949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15950 ac_cv_prog_ac_ct_LIPO="lipo"
15951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15952 break 2
15954 done
15955 done
15956 IFS=$as_save_IFS
15960 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15961 if test -n "$ac_ct_LIPO"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15963 $as_echo "$ac_ct_LIPO" >&6; }
15964 else
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15969 if test "x$ac_ct_LIPO" = x; then
15970 LIPO=":"
15971 else
15972 case $cross_compiling:$ac_tool_warned in
15973 yes:)
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15976 ac_tool_warned=yes ;;
15977 esac
15978 LIPO=$ac_ct_LIPO
15980 else
15981 LIPO="$ac_cv_prog_LIPO"
15984 if test -n "$ac_tool_prefix"; then
15985 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15986 set dummy ${ac_tool_prefix}otool; ac_word=$2
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15988 $as_echo_n "checking for $ac_word... " >&6; }
15989 if ${ac_cv_prog_OTOOL+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 if test -n "$OTOOL"; then
15993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15994 else
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15998 IFS=$as_save_IFS
15999 test -z "$as_dir" && as_dir=.
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16004 break 2
16006 done
16007 done
16008 IFS=$as_save_IFS
16012 OTOOL=$ac_cv_prog_OTOOL
16013 if test -n "$OTOOL"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16015 $as_echo "$OTOOL" >&6; }
16016 else
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018 $as_echo "no" >&6; }
16023 if test -z "$ac_cv_prog_OTOOL"; then
16024 ac_ct_OTOOL=$OTOOL
16025 # Extract the first word of "otool", so it can be a program name with args.
16026 set dummy otool; ac_word=$2
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16028 $as_echo_n "checking for $ac_word... " >&6; }
16029 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16030 $as_echo_n "(cached) " >&6
16031 else
16032 if test -n "$ac_ct_OTOOL"; then
16033 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16034 else
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036 for as_dir in $PATH
16038 IFS=$as_save_IFS
16039 test -z "$as_dir" && as_dir=.
16040 for ac_exec_ext in '' $ac_executable_extensions; do
16041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16042 ac_cv_prog_ac_ct_OTOOL="otool"
16043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16044 break 2
16046 done
16047 done
16048 IFS=$as_save_IFS
16052 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16053 if test -n "$ac_ct_OTOOL"; then
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16055 $as_echo "$ac_ct_OTOOL" >&6; }
16056 else
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16058 $as_echo "no" >&6; }
16061 if test "x$ac_ct_OTOOL" = x; then
16062 OTOOL=":"
16063 else
16064 case $cross_compiling:$ac_tool_warned in
16065 yes:)
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16068 ac_tool_warned=yes ;;
16069 esac
16070 OTOOL=$ac_ct_OTOOL
16072 else
16073 OTOOL="$ac_cv_prog_OTOOL"
16076 if test -n "$ac_tool_prefix"; then
16077 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16078 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16080 $as_echo_n "checking for $ac_word... " >&6; }
16081 if ${ac_cv_prog_OTOOL64+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 if test -n "$OTOOL64"; then
16085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16086 else
16087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088 for as_dir in $PATH
16090 IFS=$as_save_IFS
16091 test -z "$as_dir" && as_dir=.
16092 for ac_exec_ext in '' $ac_executable_extensions; do
16093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16096 break 2
16098 done
16099 done
16100 IFS=$as_save_IFS
16104 OTOOL64=$ac_cv_prog_OTOOL64
16105 if test -n "$OTOOL64"; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16107 $as_echo "$OTOOL64" >&6; }
16108 else
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16115 if test -z "$ac_cv_prog_OTOOL64"; then
16116 ac_ct_OTOOL64=$OTOOL64
16117 # Extract the first word of "otool64", so it can be a program name with args.
16118 set dummy otool64; ac_word=$2
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16120 $as_echo_n "checking for $ac_word... " >&6; }
16121 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16122 $as_echo_n "(cached) " >&6
16123 else
16124 if test -n "$ac_ct_OTOOL64"; then
16125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16126 else
16127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128 for as_dir in $PATH
16130 IFS=$as_save_IFS
16131 test -z "$as_dir" && as_dir=.
16132 for ac_exec_ext in '' $ac_executable_extensions; do
16133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16134 ac_cv_prog_ac_ct_OTOOL64="otool64"
16135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16136 break 2
16138 done
16139 done
16140 IFS=$as_save_IFS
16144 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16145 if test -n "$ac_ct_OTOOL64"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16147 $as_echo "$ac_ct_OTOOL64" >&6; }
16148 else
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16153 if test "x$ac_ct_OTOOL64" = x; then
16154 OTOOL64=":"
16155 else
16156 case $cross_compiling:$ac_tool_warned in
16157 yes:)
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16160 ac_tool_warned=yes ;;
16161 esac
16162 OTOOL64=$ac_ct_OTOOL64
16164 else
16165 OTOOL64="$ac_cv_prog_OTOOL64"
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16195 $as_echo_n "checking for -single_module linker flag... " >&6; }
16196 if ${lt_cv_apple_cc_single_mod+:} false; then :
16197 $as_echo_n "(cached) " >&6
16198 else
16199 lt_cv_apple_cc_single_mod=no
16200 if test -z "${LT_MULTI_MODULE}"; then
16201 # By default we will add the -single_module flag. You can override
16202 # by either setting the environment variable LT_MULTI_MODULE
16203 # non-empty at configure time, or by adding -multi_module to the
16204 # link flags.
16205 rm -rf libconftest.dylib*
16206 echo "int foo(void){return 1;}" > conftest.c
16207 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16208 -dynamiclib -Wl,-single_module conftest.c" >&5
16209 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16210 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16211 _lt_result=$?
16212 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16213 lt_cv_apple_cc_single_mod=yes
16214 else
16215 cat conftest.err >&5
16217 rm -rf libconftest.dylib*
16218 rm -f conftest.*
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16222 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16224 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16225 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 lt_cv_ld_exported_symbols_list=no
16229 save_LDFLAGS=$LDFLAGS
16230 echo "_main" > conftest.sym
16231 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16236 main ()
16240 return 0;
16242 _ACEOF
16243 if ac_fn_c_try_link "$LINENO"; then :
16244 lt_cv_ld_exported_symbols_list=yes
16245 else
16246 lt_cv_ld_exported_symbols_list=no
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 LDFLAGS="$save_LDFLAGS"
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16254 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16256 $as_echo_n "checking for -force_load linker flag... " >&6; }
16257 if ${lt_cv_ld_force_load+:} false; then :
16258 $as_echo_n "(cached) " >&6
16259 else
16260 lt_cv_ld_force_load=no
16261 cat > conftest.c << _LT_EOF
16262 int forced_loaded() { return 2;}
16263 _LT_EOF
16264 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16265 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16266 echo "$AR cru libconftest.a conftest.o" >&5
16267 $AR cru libconftest.a conftest.o 2>&5
16268 cat > conftest.c << _LT_EOF
16269 int main() { return 0;}
16270 _LT_EOF
16271 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16272 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16273 _lt_result=$?
16274 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16275 lt_cv_ld_force_load=yes
16276 else
16277 cat conftest.err >&5
16279 rm -f conftest.err libconftest.a conftest conftest.c
16280 rm -rf conftest.dSYM
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16284 $as_echo "$lt_cv_ld_force_load" >&6; }
16285 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16286 # build without first building modern cctools / linker.
16287 case $host_cpu-$host_os in
16288 *-rhapsody* | *-darwin1.[012])
16289 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16290 *-darwin1.*)
16291 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16292 *-darwin*)
16293 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16294 # deployment target is forced to an earlier version.
16295 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16296 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16298 10.[012][,.]*)
16299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16303 esac
16305 esac
16306 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16307 _lt_dar_single_mod='$single_module'
16309 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16310 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16311 else
16312 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16314 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16315 _lt_dsymutil='~$DSYMUTIL $lib || :'
16316 else
16317 _lt_dsymutil=
16320 esac
16323 for ac_header in dlfcn.h
16324 do :
16325 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16326 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16327 cat >>confdefs.h <<_ACEOF
16328 #define HAVE_DLFCN_H 1
16329 _ACEOF
16332 done
16338 # Set options
16342 enable_dlopen=no
16345 enable_win32_dll=no
16348 # Check whether --enable-shared was given.
16349 if test "${enable_shared+set}" = set; then :
16350 enableval=$enable_shared; p=${PACKAGE-default}
16351 case $enableval in
16352 yes) enable_shared=yes ;;
16353 no) enable_shared=no ;;
16355 enable_shared=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_shared=yes
16363 done
16364 IFS="$lt_save_ifs"
16366 esac
16367 else
16368 enable_shared=yes
16379 # Check whether --enable-static was given.
16380 if test "${enable_static+set}" = set; then :
16381 enableval=$enable_static; p=${PACKAGE-default}
16382 case $enableval in
16383 yes) enable_static=yes ;;
16384 no) enable_static=no ;;
16386 enable_static=no
16387 # Look at the argument we got. We use all the common list separators.
16388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16389 for pkg in $enableval; do
16390 IFS="$lt_save_ifs"
16391 if test "X$pkg" = "X$p"; then
16392 enable_static=yes
16394 done
16395 IFS="$lt_save_ifs"
16397 esac
16398 else
16399 enable_static=yes
16411 # Check whether --with-pic was given.
16412 if test "${with_pic+set}" = set; then :
16413 withval=$with_pic; pic_mode="$withval"
16414 else
16415 pic_mode=default
16419 test -z "$pic_mode" && pic_mode=default
16427 # Check whether --enable-fast-install was given.
16428 if test "${enable_fast_install+set}" = set; then :
16429 enableval=$enable_fast_install; p=${PACKAGE-default}
16430 case $enableval in
16431 yes) enable_fast_install=yes ;;
16432 no) enable_fast_install=no ;;
16434 enable_fast_install=no
16435 # Look at the argument we got. We use all the common list separators.
16436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16437 for pkg in $enableval; do
16438 IFS="$lt_save_ifs"
16439 if test "X$pkg" = "X$p"; then
16440 enable_fast_install=yes
16442 done
16443 IFS="$lt_save_ifs"
16445 esac
16446 else
16447 enable_fast_install=yes
16460 # This can be used to rebuild libtool when needed
16461 LIBTOOL_DEPS="$ltmain"
16463 # Always use our own libtool.
16464 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16491 test -z "$LN_S" && LN_S="ln -s"
16506 if test -n "${ZSH_VERSION+set}" ; then
16507 setopt NO_GLOB_SUBST
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16511 $as_echo_n "checking for objdir... " >&6; }
16512 if ${lt_cv_objdir+:} false; then :
16513 $as_echo_n "(cached) " >&6
16514 else
16515 rm -f .libs 2>/dev/null
16516 mkdir .libs 2>/dev/null
16517 if test -d .libs; then
16518 lt_cv_objdir=.libs
16519 else
16520 # MS-DOS does not allow filenames that begin with a dot.
16521 lt_cv_objdir=_libs
16523 rmdir .libs 2>/dev/null
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16526 $as_echo "$lt_cv_objdir" >&6; }
16527 objdir=$lt_cv_objdir
16533 cat >>confdefs.h <<_ACEOF
16534 #define LT_OBJDIR "$lt_cv_objdir/"
16535 _ACEOF
16540 case $host_os in
16541 aix3*)
16542 # AIX sometimes has problems with the GCC collect2 program. For some
16543 # reason, if we set the COLLECT_NAMES environment variable, the problems
16544 # vanish in a puff of smoke.
16545 if test "X${COLLECT_NAMES+set}" != Xset; then
16546 COLLECT_NAMES=
16547 export COLLECT_NAMES
16550 esac
16552 # Global variables:
16553 ofile=libtool
16554 can_build_shared=yes
16556 # All known linkers require a `.a' archive for static linking (except MSVC,
16557 # which needs '.lib').
16558 libext=a
16560 with_gnu_ld="$lt_cv_prog_gnu_ld"
16562 old_CC="$CC"
16563 old_CFLAGS="$CFLAGS"
16565 # Set sane defaults for various variables
16566 test -z "$CC" && CC=cc
16567 test -z "$LTCC" && LTCC=$CC
16568 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16569 test -z "$LD" && LD=ld
16570 test -z "$ac_objext" && ac_objext=o
16572 for cc_temp in $compiler""; do
16573 case $cc_temp in
16574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16576 \-*) ;;
16577 *) break;;
16578 esac
16579 done
16580 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16583 # Only perform the check for file, if the check method requires it
16584 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16585 case $deplibs_check_method in
16586 file_magic*)
16587 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16589 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16590 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 case $MAGIC_CMD in
16594 [\\/*] | ?:[\\/]*)
16595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16598 lt_save_MAGIC_CMD="$MAGIC_CMD"
16599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16601 for ac_dir in $ac_dummy; do
16602 IFS="$lt_save_ifs"
16603 test -z "$ac_dir" && ac_dir=.
16604 if test -f $ac_dir/${ac_tool_prefix}file; then
16605 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16606 if test -n "$file_magic_test_file"; then
16607 case $deplibs_check_method in
16608 "file_magic "*)
16609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16612 $EGREP "$file_magic_regex" > /dev/null; then
16614 else
16615 cat <<_LT_EOF 1>&2
16617 *** Warning: the command libtool uses to detect shared libraries,
16618 *** $file_magic_cmd, produces output that libtool cannot recognize.
16619 *** The result is that libtool may fail to recognize shared libraries
16620 *** as such. This will affect the creation of libtool libraries that
16621 *** depend on shared libraries, but programs linked with such libtool
16622 *** libraries will work regardless of this problem. Nevertheless, you
16623 *** may want to report the problem to your system manager and/or to
16624 *** bug-libtool@gnu.org
16626 _LT_EOF
16627 fi ;;
16628 esac
16630 break
16632 done
16633 IFS="$lt_save_ifs"
16634 MAGIC_CMD="$lt_save_MAGIC_CMD"
16636 esac
16639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16640 if test -n "$MAGIC_CMD"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16642 $as_echo "$MAGIC_CMD" >&6; }
16643 else
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16645 $as_echo "no" >&6; }
16652 if test -z "$lt_cv_path_MAGIC_CMD"; then
16653 if test -n "$ac_tool_prefix"; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16655 $as_echo_n "checking for file... " >&6; }
16656 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 case $MAGIC_CMD in
16660 [\\/*] | ?:[\\/]*)
16661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16664 lt_save_MAGIC_CMD="$MAGIC_CMD"
16665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16666 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16667 for ac_dir in $ac_dummy; do
16668 IFS="$lt_save_ifs"
16669 test -z "$ac_dir" && ac_dir=.
16670 if test -f $ac_dir/file; then
16671 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16672 if test -n "$file_magic_test_file"; then
16673 case $deplibs_check_method in
16674 "file_magic "*)
16675 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16677 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16678 $EGREP "$file_magic_regex" > /dev/null; then
16680 else
16681 cat <<_LT_EOF 1>&2
16683 *** Warning: the command libtool uses to detect shared libraries,
16684 *** $file_magic_cmd, produces output that libtool cannot recognize.
16685 *** The result is that libtool may fail to recognize shared libraries
16686 *** as such. This will affect the creation of libtool libraries that
16687 *** depend on shared libraries, but programs linked with such libtool
16688 *** libraries will work regardless of this problem. Nevertheless, you
16689 *** may want to report the problem to your system manager and/or to
16690 *** bug-libtool@gnu.org
16692 _LT_EOF
16693 fi ;;
16694 esac
16696 break
16698 done
16699 IFS="$lt_save_ifs"
16700 MAGIC_CMD="$lt_save_MAGIC_CMD"
16702 esac
16705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16706 if test -n "$MAGIC_CMD"; then
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16708 $as_echo "$MAGIC_CMD" >&6; }
16709 else
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16715 else
16716 MAGIC_CMD=:
16722 esac
16724 # Use C for the default configuration in the libtool script
16726 lt_save_CC="$CC"
16727 ac_ext=c
16728 ac_cpp='$CPP $CPPFLAGS'
16729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16734 # Source file extension for C test sources.
16735 ac_ext=c
16737 # Object file extension for compiled C test sources.
16738 objext=o
16739 objext=$objext
16741 # Code to be used in simple compile tests
16742 lt_simple_compile_test_code="int some_variable = 0;"
16744 # Code to be used in simple link tests
16745 lt_simple_link_test_code='int main(){return(0);}'
16753 # If no C compiler was specified, use CC.
16754 LTCC=${LTCC-"$CC"}
16756 # If no C compiler flags were specified, use CFLAGS.
16757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16759 # Allow CC to be a program name with arguments.
16760 compiler=$CC
16762 # Save the default compiler, since it gets overwritten when the other
16763 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16764 compiler_DEFAULT=$CC
16766 # save warnings/boilerplate of simple test code
16767 ac_outfile=conftest.$ac_objext
16768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770 _lt_compiler_boilerplate=`cat conftest.err`
16771 $RM conftest*
16773 ac_outfile=conftest.$ac_objext
16774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16776 _lt_linker_boilerplate=`cat conftest.err`
16777 $RM -r conftest*
16780 ## CAVEAT EMPTOR:
16781 ## There is no encapsulation within the following macros, do not change
16782 ## the running order or otherwise move them around unless you know exactly
16783 ## what you are doing...
16784 if test -n "$compiler"; then
16786 lt_prog_compiler_no_builtin_flag=
16788 if test "$GCC" = yes; then
16789 case $cc_basename in
16790 nvcc*)
16791 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16793 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16794 esac
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16797 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16798 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801 lt_cv_prog_compiler_rtti_exceptions=no
16802 ac_outfile=conftest.$ac_objext
16803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16804 lt_compiler_flag="-fno-rtti -fno-exceptions"
16805 # Insert the option either (1) after the last *FLAGS variable, or
16806 # (2) before a word containing "conftest.", or (3) at the end.
16807 # Note that $ac_compile itself does not contain backslashes and begins
16808 # with a dollar sign (not a hyphen), so the echo should work correctly.
16809 # The option is referenced via a variable to avoid confusing sed.
16810 lt_compile=`echo "$ac_compile" | $SED \
16811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16813 -e 's:$: $lt_compiler_flag:'`
16814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16815 (eval "$lt_compile" 2>conftest.err)
16816 ac_status=$?
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 if (exit $ac_status) && test -s "$ac_outfile"; then
16820 # The compiler can only warn and ignore the option if not recognized
16821 # So say no if there are warnings other than the usual output.
16822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16825 lt_cv_prog_compiler_rtti_exceptions=yes
16828 $RM conftest*
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16832 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16834 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16835 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16836 else
16847 lt_prog_compiler_wl=
16848 lt_prog_compiler_pic=
16849 lt_prog_compiler_static=
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16852 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16854 if test "$GCC" = yes; then
16855 lt_prog_compiler_wl='-Wl,'
16856 lt_prog_compiler_static='-static'
16858 case $host_os in
16859 aix*)
16860 # All AIX code is PIC.
16861 if test "$host_cpu" = ia64; then
16862 # AIX 5 now supports IA64 processor
16863 lt_prog_compiler_static='-Bstatic'
16865 lt_prog_compiler_pic='-fPIC'
16868 amigaos*)
16869 case $host_cpu in
16870 powerpc)
16871 # see comment about AmigaOS4 .so support
16872 lt_prog_compiler_pic='-fPIC'
16874 m68k)
16875 # FIXME: we need at least 68020 code to build shared libraries, but
16876 # adding the `-m68020' flag to GCC prevents building anything better,
16877 # like `-m68040'.
16878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16880 esac
16883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16884 # PIC is the default for these OSes.
16887 mingw* | cygwin* | pw32* | os2* | cegcc*)
16888 # This hack is so that the source file can tell whether it is being
16889 # built for inclusion in a dll (and should export symbols for example).
16890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16891 # (--disable-auto-import) libraries
16892 lt_prog_compiler_pic='-DDLL_EXPORT'
16895 darwin* | rhapsody*)
16896 # PIC is the default on this platform
16897 # Common symbols not allowed in MH_DYLIB files
16898 lt_prog_compiler_pic='-fno-common'
16901 haiku*)
16902 # PIC is the default for Haiku.
16903 # The "-static" flag exists, but is broken.
16904 lt_prog_compiler_static=
16907 hpux*)
16908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16910 # sets the default TLS model and affects inlining.
16911 case $host_cpu in
16912 hppa*64*)
16913 # +Z the default
16916 lt_prog_compiler_pic='-fPIC'
16918 esac
16921 interix[3-9]*)
16922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16923 # Instead, we relocate shared libraries at runtime.
16926 msdosdjgpp*)
16927 # Just because we use GCC doesn't mean we suddenly get shared libraries
16928 # on systems that don't support them.
16929 lt_prog_compiler_can_build_shared=no
16930 enable_shared=no
16933 *nto* | *qnx*)
16934 # QNX uses GNU C++, but need to define -shared option too, otherwise
16935 # it will coredump.
16936 lt_prog_compiler_pic='-fPIC -shared'
16939 sysv4*MP*)
16940 if test -d /usr/nec; then
16941 lt_prog_compiler_pic=-Kconform_pic
16946 lt_prog_compiler_pic='-fPIC'
16948 esac
16950 case $cc_basename in
16951 nvcc*) # Cuda Compiler Driver 2.2
16952 lt_prog_compiler_wl='-Xlinker '
16953 lt_prog_compiler_pic='-Xcompiler -fPIC'
16955 esac
16956 else
16957 # PORTME Check for flag to pass linker flags through the system compiler.
16958 case $host_os in
16959 aix*)
16960 lt_prog_compiler_wl='-Wl,'
16961 if test "$host_cpu" = ia64; then
16962 # AIX 5 now supports IA64 processor
16963 lt_prog_compiler_static='-Bstatic'
16964 else
16965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16969 mingw* | cygwin* | pw32* | os2* | cegcc*)
16970 # This hack is so that the source file can tell whether it is being
16971 # built for inclusion in a dll (and should export symbols for example).
16972 lt_prog_compiler_pic='-DDLL_EXPORT'
16975 hpux9* | hpux10* | hpux11*)
16976 lt_prog_compiler_wl='-Wl,'
16977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16978 # not for PA HP-UX.
16979 case $host_cpu in
16980 hppa*64*|ia64*)
16981 # +Z the default
16984 lt_prog_compiler_pic='+Z'
16986 esac
16987 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16988 lt_prog_compiler_static='${wl}-a ${wl}archive'
16991 irix5* | irix6* | nonstopux*)
16992 lt_prog_compiler_wl='-Wl,'
16993 # PIC (with -KPIC) is the default.
16994 lt_prog_compiler_static='-non_shared'
16997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16998 case $cc_basename in
16999 # old Intel for x86_64 which still supported -KPIC.
17000 ecc*)
17001 lt_prog_compiler_wl='-Wl,'
17002 lt_prog_compiler_pic='-KPIC'
17003 lt_prog_compiler_static='-static'
17005 # icc used to be incompatible with GCC.
17006 # ICC 10 doesn't accept -KPIC any more.
17007 icc* | ifort*)
17008 lt_prog_compiler_wl='-Wl,'
17009 lt_prog_compiler_pic='-fPIC'
17010 lt_prog_compiler_static='-static'
17012 # Lahey Fortran 8.1.
17013 lf95*)
17014 lt_prog_compiler_wl='-Wl,'
17015 lt_prog_compiler_pic='--shared'
17016 lt_prog_compiler_static='--static'
17018 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17019 # Portland Group compilers (*not* the Pentium gcc compiler,
17020 # which looks to be a dead project)
17021 lt_prog_compiler_wl='-Wl,'
17022 lt_prog_compiler_pic='-fpic'
17023 lt_prog_compiler_static='-Bstatic'
17025 ccc*)
17026 lt_prog_compiler_wl='-Wl,'
17027 # All Alpha code is PIC.
17028 lt_prog_compiler_static='-non_shared'
17030 xl* | bgxl* | bgf* | mpixl*)
17031 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17032 lt_prog_compiler_wl='-Wl,'
17033 lt_prog_compiler_pic='-qpic'
17034 lt_prog_compiler_static='-qstaticlink'
17037 case `$CC -V 2>&1 | sed 5q` in
17038 *Sun\ F* | *Sun*Fortran*)
17039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17040 lt_prog_compiler_pic='-KPIC'
17041 lt_prog_compiler_static='-Bstatic'
17042 lt_prog_compiler_wl=''
17044 *Sun\ C*)
17045 # Sun C 5.9
17046 lt_prog_compiler_pic='-KPIC'
17047 lt_prog_compiler_static='-Bstatic'
17048 lt_prog_compiler_wl='-Wl,'
17050 esac
17052 esac
17055 newsos6)
17056 lt_prog_compiler_pic='-KPIC'
17057 lt_prog_compiler_static='-Bstatic'
17060 *nto* | *qnx*)
17061 # QNX uses GNU C++, but need to define -shared option too, otherwise
17062 # it will coredump.
17063 lt_prog_compiler_pic='-fPIC -shared'
17066 osf3* | osf4* | osf5*)
17067 lt_prog_compiler_wl='-Wl,'
17068 # All OSF/1 code is PIC.
17069 lt_prog_compiler_static='-non_shared'
17072 rdos*)
17073 lt_prog_compiler_static='-non_shared'
17076 solaris*)
17077 lt_prog_compiler_pic='-KPIC'
17078 lt_prog_compiler_static='-Bstatic'
17079 case $cc_basename in
17080 f77* | f90* | f95*)
17081 lt_prog_compiler_wl='-Qoption ld ';;
17083 lt_prog_compiler_wl='-Wl,';;
17084 esac
17087 sunos4*)
17088 lt_prog_compiler_wl='-Qoption ld '
17089 lt_prog_compiler_pic='-PIC'
17090 lt_prog_compiler_static='-Bstatic'
17093 sysv4 | sysv4.2uw2* | sysv4.3*)
17094 lt_prog_compiler_wl='-Wl,'
17095 lt_prog_compiler_pic='-KPIC'
17096 lt_prog_compiler_static='-Bstatic'
17099 sysv4*MP*)
17100 if test -d /usr/nec ;then
17101 lt_prog_compiler_pic='-Kconform_pic'
17102 lt_prog_compiler_static='-Bstatic'
17106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17107 lt_prog_compiler_wl='-Wl,'
17108 lt_prog_compiler_pic='-KPIC'
17109 lt_prog_compiler_static='-Bstatic'
17112 unicos*)
17113 lt_prog_compiler_wl='-Wl,'
17114 lt_prog_compiler_can_build_shared=no
17117 uts4*)
17118 lt_prog_compiler_pic='-pic'
17119 lt_prog_compiler_static='-Bstatic'
17123 lt_prog_compiler_can_build_shared=no
17125 esac
17128 case $host_os in
17129 # For platforms which do not support PIC, -DPIC is meaningless:
17130 *djgpp*)
17131 lt_prog_compiler_pic=
17134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17136 esac
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17138 $as_echo "$lt_prog_compiler_pic" >&6; }
17146 # Check to make sure the PIC flag actually works.
17148 if test -n "$lt_prog_compiler_pic"; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17150 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17151 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153 else
17154 lt_cv_prog_compiler_pic_works=no
17155 ac_outfile=conftest.$ac_objext
17156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17157 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17158 # Insert the option either (1) after the last *FLAGS variable, or
17159 # (2) before a word containing "conftest.", or (3) at the end.
17160 # Note that $ac_compile itself does not contain backslashes and begins
17161 # with a dollar sign (not a hyphen), so the echo should work correctly.
17162 # The option is referenced via a variable to avoid confusing sed.
17163 lt_compile=`echo "$ac_compile" | $SED \
17164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17166 -e 's:$: $lt_compiler_flag:'`
17167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17168 (eval "$lt_compile" 2>conftest.err)
17169 ac_status=$?
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 if (exit $ac_status) && test -s "$ac_outfile"; then
17173 # The compiler can only warn and ignore the option if not recognized
17174 # So say no if there are warnings other than the usual output.
17175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17178 lt_cv_prog_compiler_pic_works=yes
17181 $RM conftest*
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17185 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17187 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17188 case $lt_prog_compiler_pic in
17189 "" | " "*) ;;
17190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17191 esac
17192 else
17193 lt_prog_compiler_pic=
17194 lt_prog_compiler_can_build_shared=no
17205 # Check to make sure the static flag actually works.
17207 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17209 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17210 if ${lt_cv_prog_compiler_static_works+:} false; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 lt_cv_prog_compiler_static_works=no
17214 save_LDFLAGS="$LDFLAGS"
17215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218 # The linker can only warn and ignore the option if not recognized
17219 # So say no if there are warnings
17220 if test -s conftest.err; then
17221 # Append any errors to the config.log.
17222 cat conftest.err 1>&5
17223 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17225 if diff conftest.exp conftest.er2 >/dev/null; then
17226 lt_cv_prog_compiler_static_works=yes
17228 else
17229 lt_cv_prog_compiler_static_works=yes
17232 $RM -r conftest*
17233 LDFLAGS="$save_LDFLAGS"
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17237 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17239 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17241 else
17242 lt_prog_compiler_static=
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17253 if ${lt_cv_prog_compiler_c_o+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255 else
17256 lt_cv_prog_compiler_c_o=no
17257 $RM -r conftest 2>/dev/null
17258 mkdir conftest
17259 cd conftest
17260 mkdir out
17261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17263 lt_compiler_flag="-o out/conftest2.$ac_objext"
17264 # Insert the option either (1) after the last *FLAGS variable, or
17265 # (2) before a word containing "conftest.", or (3) at the end.
17266 # Note that $ac_compile itself does not contain backslashes and begins
17267 # with a dollar sign (not a hyphen), so the echo should work correctly.
17268 lt_compile=`echo "$ac_compile" | $SED \
17269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17271 -e 's:$: $lt_compiler_flag:'`
17272 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17273 (eval "$lt_compile" 2>out/conftest.err)
17274 ac_status=$?
17275 cat out/conftest.err >&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17278 then
17279 # The compiler can only warn and ignore the option if not recognized
17280 # So say no if there are warnings
17281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17284 lt_cv_prog_compiler_c_o=yes
17287 chmod u+w . 2>&5
17288 $RM conftest*
17289 # SGI C++ compiler will create directory out/ii_files/ for
17290 # template instantiation
17291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17292 $RM out/* && rmdir out
17293 cd ..
17294 $RM -r conftest
17295 $RM conftest*
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17308 if ${lt_cv_prog_compiler_c_o+:} false; then :
17309 $as_echo_n "(cached) " >&6
17310 else
17311 lt_cv_prog_compiler_c_o=no
17312 $RM -r conftest 2>/dev/null
17313 mkdir conftest
17314 cd conftest
17315 mkdir out
17316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17318 lt_compiler_flag="-o out/conftest2.$ac_objext"
17319 # Insert the option either (1) after the last *FLAGS variable, or
17320 # (2) before a word containing "conftest.", or (3) at the end.
17321 # Note that $ac_compile itself does not contain backslashes and begins
17322 # with a dollar sign (not a hyphen), so the echo should work correctly.
17323 lt_compile=`echo "$ac_compile" | $SED \
17324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17326 -e 's:$: $lt_compiler_flag:'`
17327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17328 (eval "$lt_compile" 2>out/conftest.err)
17329 ac_status=$?
17330 cat out/conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17333 then
17334 # The compiler can only warn and ignore the option if not recognized
17335 # So say no if there are warnings
17336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17339 lt_cv_prog_compiler_c_o=yes
17342 chmod u+w . 2>&5
17343 $RM conftest*
17344 # SGI C++ compiler will create directory out/ii_files/ for
17345 # template instantiation
17346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17347 $RM out/* && rmdir out
17348 cd ..
17349 $RM -r conftest
17350 $RM conftest*
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17359 hard_links="nottested"
17360 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17361 # do not overwrite the value of need_locks provided by the user
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17363 $as_echo_n "checking if we can lock with hard links... " >&6; }
17364 hard_links=yes
17365 $RM conftest*
17366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17367 touch conftest.a
17368 ln conftest.a conftest.b 2>&5 || hard_links=no
17369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17371 $as_echo "$hard_links" >&6; }
17372 if test "$hard_links" = no; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17374 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17375 need_locks=warn
17377 else
17378 need_locks=no
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17389 runpath_var=
17390 allow_undefined_flag=
17391 always_export_symbols=no
17392 archive_cmds=
17393 archive_expsym_cmds=
17394 compiler_needs_object=no
17395 enable_shared_with_static_runtimes=no
17396 export_dynamic_flag_spec=
17397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17398 hardcode_automatic=no
17399 hardcode_direct=no
17400 hardcode_direct_absolute=no
17401 hardcode_libdir_flag_spec=
17402 hardcode_libdir_flag_spec_ld=
17403 hardcode_libdir_separator=
17404 hardcode_minus_L=no
17405 hardcode_shlibpath_var=unsupported
17406 inherit_rpath=no
17407 link_all_deplibs=unknown
17408 module_cmds=
17409 module_expsym_cmds=
17410 old_archive_from_new_cmds=
17411 old_archive_from_expsyms_cmds=
17412 thread_safe_flag_spec=
17413 whole_archive_flag_spec=
17414 # include_expsyms should be a list of space-separated symbols to be *always*
17415 # included in the symbol list
17416 include_expsyms=
17417 # exclude_expsyms can be an extended regexp of symbols to exclude
17418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17420 # as well as any symbol that contains `d'.
17421 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17423 # platforms (ab)use it in PIC code, but their linkers get confused if
17424 # the symbol is explicitly referenced. Since portable code cannot
17425 # rely on this symbol name, it's probably fine to never include it in
17426 # preloaded symbol tables.
17427 # Exclude shared library initialization/finalization symbols.
17428 extract_expsyms_cmds=
17430 case $host_os in
17431 cygwin* | mingw* | pw32* | cegcc*)
17432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17433 # When not using gcc, we currently assume that we are using
17434 # Microsoft Visual C++.
17435 if test "$GCC" != yes; then
17436 with_gnu_ld=no
17439 interix*)
17440 # we just hope/assume this is gcc and not c89 (= MSVC++)
17441 with_gnu_ld=yes
17443 openbsd*)
17444 with_gnu_ld=no
17446 esac
17448 ld_shlibs=yes
17450 # On some targets, GNU ld is compatible enough with the native linker
17451 # that we're better off using the native interface for both.
17452 lt_use_gnu_ld_interface=no
17453 if test "$with_gnu_ld" = yes; then
17454 case $host_os in
17455 aix*)
17456 # The AIX port of GNU ld has always aspired to compatibility
17457 # with the native linker. However, as the warning in the GNU ld
17458 # block says, versions before 2.19.5* couldn't really create working
17459 # shared libraries, regardless of the interface used.
17460 case `$LD -v 2>&1` in
17461 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17462 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17463 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17465 lt_use_gnu_ld_interface=yes
17467 esac
17470 lt_use_gnu_ld_interface=yes
17472 esac
17475 if test "$lt_use_gnu_ld_interface" = yes; then
17476 # If archive_cmds runs LD, not CC, wlarc should be empty
17477 wlarc='${wl}'
17479 # Set some defaults for GNU ld with shared library support. These
17480 # are reset later if shared libraries are not supported. Putting them
17481 # here allows them to be overridden if necessary.
17482 runpath_var=LD_RUN_PATH
17483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17484 export_dynamic_flag_spec='${wl}--export-dynamic'
17485 # ancient GNU ld didn't support --whole-archive et. al.
17486 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17487 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17488 else
17489 whole_archive_flag_spec=
17491 supports_anon_versioning=no
17492 case `$LD -v 2>&1` in
17493 *GNU\ gold*) supports_anon_versioning=yes ;;
17494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17497 *\ 2.11.*) ;; # other 2.11 versions
17498 *) supports_anon_versioning=yes ;;
17499 esac
17501 # See if GNU ld supports shared libraries.
17502 case $host_os in
17503 aix[3-9]*)
17504 # On AIX/PPC, the GNU linker is very broken
17505 if test "$host_cpu" != ia64; then
17506 ld_shlibs=no
17507 cat <<_LT_EOF 1>&2
17509 *** Warning: the GNU linker, at least up to release 2.19, is reported
17510 *** to be unable to reliably create shared libraries on AIX.
17511 *** Therefore, libtool is disabling shared libraries support. If you
17512 *** really care for shared libraries, you may want to install binutils
17513 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17514 *** You will then need to restart the configuration process.
17516 _LT_EOF
17520 amigaos*)
17521 case $host_cpu in
17522 powerpc)
17523 # see comment about AmigaOS4 .so support
17524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 archive_expsym_cmds=''
17527 m68k)
17528 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)'
17529 hardcode_libdir_flag_spec='-L$libdir'
17530 hardcode_minus_L=yes
17532 esac
17535 beos*)
17536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17537 allow_undefined_flag=unsupported
17538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17539 # support --undefined. This deserves some investigation. FIXME
17540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541 else
17542 ld_shlibs=no
17546 cygwin* | mingw* | pw32* | cegcc*)
17547 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17548 # as there is no search path for DLLs.
17549 hardcode_libdir_flag_spec='-L$libdir'
17550 export_dynamic_flag_spec='${wl}--export-all-symbols'
17551 allow_undefined_flag=unsupported
17552 always_export_symbols=no
17553 enable_shared_with_static_runtimes=yes
17554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17556 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17558 # If the export-symbols file already is a .def file (1st line
17559 # is EXPORTS), use it as is; otherwise, prepend...
17560 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17561 cp $export_symbols $output_objdir/$soname.def;
17562 else
17563 echo EXPORTS > $output_objdir/$soname.def;
17564 cat $export_symbols >> $output_objdir/$soname.def;
17566 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17567 else
17568 ld_shlibs=no
17572 haiku*)
17573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17574 link_all_deplibs=yes
17577 interix[3-9]*)
17578 hardcode_direct=no
17579 hardcode_shlibpath_var=no
17580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17581 export_dynamic_flag_spec='${wl}-E'
17582 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17583 # Instead, shared libraries are loaded at an image base (0x10000000 by
17584 # default) and relocated if they conflict, which is a slow very memory
17585 # consuming and fragmenting process. To avoid this, we pick a random,
17586 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17587 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17588 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17589 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'
17592 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17593 tmp_diet=no
17594 if test "$host_os" = linux-dietlibc; then
17595 case $cc_basename in
17596 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17597 esac
17599 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17600 && test "$tmp_diet" = no
17601 then
17602 tmp_addflag=' $pic_flag'
17603 tmp_sharedflag='-shared'
17604 case $cc_basename,$host_cpu in
17605 pgcc*) # Portland Group C compiler
17606 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'
17607 tmp_addflag=' $pic_flag'
17609 pgf77* | pgf90* | pgf95* | pgfortran*)
17610 # Portland Group f77 and f90 compilers
17611 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'
17612 tmp_addflag=' $pic_flag -Mnomain' ;;
17613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17614 tmp_addflag=' -i_dynamic' ;;
17615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17616 tmp_addflag=' -i_dynamic -nofor_main' ;;
17617 ifc* | ifort*) # Intel Fortran compiler
17618 tmp_addflag=' -nofor_main' ;;
17619 lf95*) # Lahey Fortran 8.1
17620 whole_archive_flag_spec=
17621 tmp_sharedflag='--shared' ;;
17622 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17623 tmp_sharedflag='-qmkshrobj'
17624 tmp_addflag= ;;
17625 nvcc*) # Cuda Compiler Driver 2.2
17626 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'
17627 compiler_needs_object=yes
17629 esac
17630 case `$CC -V 2>&1 | sed 5q` in
17631 *Sun\ C*) # Sun C 5.9
17632 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'
17633 compiler_needs_object=yes
17634 tmp_sharedflag='-G' ;;
17635 *Sun\ F*) # Sun Fortran 8.3
17636 tmp_sharedflag='-G' ;;
17637 esac
17638 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17640 if test "x$supports_anon_versioning" = xyes; then
17641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17643 echo "local: *; };" >> $output_objdir/$libname.ver~
17644 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17647 case $cc_basename in
17648 xlf* | bgf* | bgxlf* | mpixlf*)
17649 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17650 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17651 hardcode_libdir_flag_spec=
17652 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17653 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17654 if test "x$supports_anon_versioning" = xyes; then
17655 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17657 echo "local: *; };" >> $output_objdir/$libname.ver~
17658 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17661 esac
17662 else
17663 ld_shlibs=no
17667 netbsd*)
17668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17669 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17670 wlarc=
17671 else
17672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17677 solaris*)
17678 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17679 ld_shlibs=no
17680 cat <<_LT_EOF 1>&2
17682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17683 *** create shared libraries on Solaris systems. Therefore, libtool
17684 *** is disabling shared libraries support. We urge you to upgrade GNU
17685 *** binutils to release 2.9.1 or newer. Another option is to modify
17686 *** your PATH or compiler configuration so that the native linker is
17687 *** used, and then restart.
17689 _LT_EOF
17690 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17693 else
17694 ld_shlibs=no
17698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17699 case `$LD -v 2>&1` in
17700 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17701 ld_shlibs=no
17702 cat <<_LT_EOF 1>&2
17704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17705 *** reliably create shared libraries on SCO systems. Therefore, libtool
17706 *** is disabling shared libraries support. We urge you to upgrade GNU
17707 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17708 *** your PATH or compiler configuration so that the native linker is
17709 *** used, and then restart.
17711 _LT_EOF
17714 # For security reasons, it is highly recommended that you always
17715 # use absolute paths for naming shared libraries, and exclude the
17716 # DT_RUNPATH tag from executables and libraries. But doing so
17717 # requires that you compile everything twice, which is a pain.
17718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17722 else
17723 ld_shlibs=no
17726 esac
17729 sunos4*)
17730 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17731 wlarc=
17732 hardcode_direct=yes
17733 hardcode_shlibpath_var=no
17737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17740 else
17741 ld_shlibs=no
17744 esac
17746 if test "$ld_shlibs" = no; then
17747 runpath_var=
17748 hardcode_libdir_flag_spec=
17749 export_dynamic_flag_spec=
17750 whole_archive_flag_spec=
17752 else
17753 # PORTME fill in a description of your system's linker (not GNU ld)
17754 case $host_os in
17755 aix3*)
17756 allow_undefined_flag=unsupported
17757 always_export_symbols=yes
17758 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'
17759 # Note: this linker hardcodes the directories in LIBPATH if there
17760 # are no directories specified by -L.
17761 hardcode_minus_L=yes
17762 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17763 # Neither direct hardcoding nor static linking is supported with a
17764 # broken collect2.
17765 hardcode_direct=unsupported
17769 aix[4-9]*)
17770 if test "$host_cpu" = ia64; then
17771 # On IA64, the linker does run time linking by default, so we don't
17772 # have to do anything special.
17773 aix_use_runtimelinking=no
17774 exp_sym_flag='-Bexport'
17775 no_entry_flag=""
17776 else
17777 # If we're using GNU nm, then we don't want the "-C" option.
17778 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17779 # Also, AIX nm treats weak defined symbols like other global
17780 # defined symbols, whereas GNU nm marks them as "W".
17781 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17782 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'
17783 else
17784 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'
17786 aix_use_runtimelinking=no
17788 # Test if we are trying to use run time linking or normal
17789 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17790 # need to do runtime linking.
17791 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17792 for ld_flag in $LDFLAGS; do
17793 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17794 aix_use_runtimelinking=yes
17795 break
17797 done
17799 esac
17801 exp_sym_flag='-bexport'
17802 no_entry_flag='-bnoentry'
17805 # When large executables or shared objects are built, AIX ld can
17806 # have problems creating the table of contents. If linking a library
17807 # or program results in "error TOC overflow" add -mminimal-toc to
17808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17811 archive_cmds=''
17812 hardcode_direct=yes
17813 hardcode_direct_absolute=yes
17814 hardcode_libdir_separator=':'
17815 link_all_deplibs=yes
17816 file_list_spec='${wl}-f,'
17818 if test "$GCC" = yes; then
17819 case $host_os in aix4.[012]|aix4.[012].*)
17820 # We only want to do this on AIX 4.2 and lower, the check
17821 # below for broken collect2 doesn't work under 4.3+
17822 collect2name=`${CC} -print-prog-name=collect2`
17823 if test -f "$collect2name" &&
17824 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17825 then
17826 # We have reworked collect2
17828 else
17829 # We have old collect2
17830 hardcode_direct=unsupported
17831 # It fails to find uninstalled libraries when the uninstalled
17832 # path is not listed in the libpath. Setting hardcode_minus_L
17833 # to unsupported forces relinking
17834 hardcode_minus_L=yes
17835 hardcode_libdir_flag_spec='-L$libdir'
17836 hardcode_libdir_separator=
17839 esac
17840 shared_flag='-shared'
17841 if test "$aix_use_runtimelinking" = yes; then
17842 shared_flag="$shared_flag "'${wl}-G'
17844 else
17845 # not using gcc
17846 if test "$host_cpu" = ia64; then
17847 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17848 # chokes on -Wl,-G. The following line is correct:
17849 shared_flag='-G'
17850 else
17851 if test "$aix_use_runtimelinking" = yes; then
17852 shared_flag='${wl}-G'
17853 else
17854 shared_flag='${wl}-bM:SRE'
17859 export_dynamic_flag_spec='${wl}-bexpall'
17860 # It seems that -bexpall does not export symbols beginning with
17861 # underscore (_), so it is better to generate a list of symbols to export.
17862 always_export_symbols=yes
17863 if test "$aix_use_runtimelinking" = yes; then
17864 # Warning - without using the other runtime loading flags (-brtl),
17865 # -berok will link without error, but may produce a broken library.
17866 allow_undefined_flag='-berok'
17867 # Determine the default libpath from the value encoded in an
17868 # empty executable.
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17873 main ()
17877 return 0;
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17882 lt_aix_libpath_sed='
17883 /Import File Strings/,/^$/ {
17884 /^0/ {
17885 s/^0 *\(.*\)$/\1/
17889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17890 # Check for a 64-bit object if we didn't find anything.
17891 if test -z "$aix_libpath"; then
17892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17895 rm -f core conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17900 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"
17901 else
17902 if test "$host_cpu" = ia64; then
17903 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17904 allow_undefined_flag="-z nodefs"
17905 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"
17906 else
17907 # Determine the default libpath from the value encoded in an
17908 # empty executable.
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17913 main ()
17917 return 0;
17919 _ACEOF
17920 if ac_fn_c_try_link "$LINENO"; then :
17922 lt_aix_libpath_sed='
17923 /Import File Strings/,/^$/ {
17924 /^0/ {
17925 s/^0 *\(.*\)$/\1/
17929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 # Check for a 64-bit object if we didn't find anything.
17931 if test -z "$aix_libpath"; then
17932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17937 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17939 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17940 # Warning - without using the other run time loading flags,
17941 # -berok will link without error, but may produce a broken library.
17942 no_undefined_flag=' ${wl}-bernotok'
17943 allow_undefined_flag=' ${wl}-berok'
17944 if test "$with_gnu_ld" = yes; then
17945 # We only use this code for GNU lds that support --whole-archive.
17946 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17947 else
17948 # Exported symbols can be pulled into shared objects from archives
17949 whole_archive_flag_spec='$convenience'
17951 archive_cmds_need_lc=yes
17952 # This is similar to how AIX traditionally builds its shared libraries.
17953 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'
17958 amigaos*)
17959 case $host_cpu in
17960 powerpc)
17961 # see comment about AmigaOS4 .so support
17962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17963 archive_expsym_cmds=''
17965 m68k)
17966 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)'
17967 hardcode_libdir_flag_spec='-L$libdir'
17968 hardcode_minus_L=yes
17970 esac
17973 bsdi[45]*)
17974 export_dynamic_flag_spec=-rdynamic
17977 cygwin* | mingw* | pw32* | cegcc*)
17978 # When not using gcc, we currently assume that we are using
17979 # Microsoft Visual C++.
17980 # hardcode_libdir_flag_spec is actually meaningless, as there is
17981 # no search path for DLLs.
17982 hardcode_libdir_flag_spec=' '
17983 allow_undefined_flag=unsupported
17984 # Tell ltmain to make .lib files, not .a files.
17985 libext=lib
17986 # Tell ltmain to make .dll files, not .so files.
17987 shrext_cmds=".dll"
17988 # FIXME: Setting linknames here is a bad hack.
17989 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17990 # The linker will automatically build a .lib file if we build a DLL.
17991 old_archive_from_new_cmds='true'
17992 # FIXME: Should let the user specify the lib program.
17993 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17994 fix_srcfile_path='`cygpath -w "$srcfile"`'
17995 enable_shared_with_static_runtimes=yes
17998 darwin* | rhapsody*)
18001 archive_cmds_need_lc=no
18002 hardcode_direct=no
18003 hardcode_automatic=yes
18004 hardcode_shlibpath_var=unsupported
18005 if test "$lt_cv_ld_force_load" = "yes"; then
18006 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\"`'
18007 else
18008 whole_archive_flag_spec=''
18010 link_all_deplibs=yes
18011 allow_undefined_flag="$_lt_dar_allow_undefined"
18012 case $cc_basename in
18013 ifort*) _lt_dar_can_shared=yes ;;
18014 *) _lt_dar_can_shared=$GCC ;;
18015 esac
18016 if test "$_lt_dar_can_shared" = "yes"; then
18017 output_verbose_link_cmd=func_echo_all
18018 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18019 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18020 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}"
18021 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}"
18023 else
18024 ld_shlibs=no
18029 dgux*)
18030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031 hardcode_libdir_flag_spec='-L$libdir'
18032 hardcode_shlibpath_var=no
18035 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18036 # support. Future versions do this automatically, but an explicit c++rt0.o
18037 # does not break anything, and helps significantly (at the cost of a little
18038 # extra space).
18039 freebsd2.2*)
18040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18041 hardcode_libdir_flag_spec='-R$libdir'
18042 hardcode_direct=yes
18043 hardcode_shlibpath_var=no
18046 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18047 freebsd2.*)
18048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18049 hardcode_direct=yes
18050 hardcode_minus_L=yes
18051 hardcode_shlibpath_var=no
18054 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18055 freebsd* | dragonfly*)
18056 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18057 hardcode_libdir_flag_spec='-R$libdir'
18058 hardcode_direct=yes
18059 hardcode_shlibpath_var=no
18062 hpux9*)
18063 if test "$GCC" = yes; then
18064 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'
18065 else
18066 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'
18068 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18069 hardcode_libdir_separator=:
18070 hardcode_direct=yes
18072 # hardcode_minus_L: Not really in the search PATH,
18073 # but as the default location of the library.
18074 hardcode_minus_L=yes
18075 export_dynamic_flag_spec='${wl}-E'
18078 hpux10*)
18079 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18081 else
18082 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18084 if test "$with_gnu_ld" = no; then
18085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18086 hardcode_libdir_flag_spec_ld='+b $libdir'
18087 hardcode_libdir_separator=:
18088 hardcode_direct=yes
18089 hardcode_direct_absolute=yes
18090 export_dynamic_flag_spec='${wl}-E'
18091 # hardcode_minus_L: Not really in the search PATH,
18092 # but as the default location of the library.
18093 hardcode_minus_L=yes
18097 hpux11*)
18098 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18099 case $host_cpu in
18100 hppa*64*)
18101 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18103 ia64*)
18104 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18109 esac
18110 else
18111 case $host_cpu in
18112 hppa*64*)
18113 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18115 ia64*)
18116 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18120 # Older versions of the 11.00 compiler do not understand -b yet
18121 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18123 $as_echo_n "checking if $CC understands -b... " >&6; }
18124 if ${lt_cv_prog_compiler__b+:} false; then :
18125 $as_echo_n "(cached) " >&6
18126 else
18127 lt_cv_prog_compiler__b=no
18128 save_LDFLAGS="$LDFLAGS"
18129 LDFLAGS="$LDFLAGS -b"
18130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18132 # The linker can only warn and ignore the option if not recognized
18133 # So say no if there are warnings
18134 if test -s conftest.err; then
18135 # Append any errors to the config.log.
18136 cat conftest.err 1>&5
18137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18139 if diff conftest.exp conftest.er2 >/dev/null; then
18140 lt_cv_prog_compiler__b=yes
18142 else
18143 lt_cv_prog_compiler__b=yes
18146 $RM -r conftest*
18147 LDFLAGS="$save_LDFLAGS"
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18151 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18153 if test x"$lt_cv_prog_compiler__b" = xyes; then
18154 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18155 else
18156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18160 esac
18162 if test "$with_gnu_ld" = no; then
18163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18164 hardcode_libdir_separator=:
18166 case $host_cpu in
18167 hppa*64*|ia64*)
18168 hardcode_direct=no
18169 hardcode_shlibpath_var=no
18172 hardcode_direct=yes
18173 hardcode_direct_absolute=yes
18174 export_dynamic_flag_spec='${wl}-E'
18176 # hardcode_minus_L: Not really in the search PATH,
18177 # but as the default location of the library.
18178 hardcode_minus_L=yes
18180 esac
18184 irix5* | irix6* | nonstopux*)
18185 if test "$GCC" = yes; then
18186 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'
18187 # Try to use the -exported_symbol ld option, if it does not
18188 # work, assume that -exports_file does not work either and
18189 # implicitly export all symbols.
18190 save_LDFLAGS="$LDFLAGS"
18191 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194 int foo(void) {}
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"; then :
18197 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'
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LDFLAGS="$save_LDFLAGS"
18203 else
18204 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'
18205 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'
18207 archive_cmds_need_lc='no'
18208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18209 hardcode_libdir_separator=:
18210 inherit_rpath=yes
18211 link_all_deplibs=yes
18214 netbsd*)
18215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18217 else
18218 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18220 hardcode_libdir_flag_spec='-R$libdir'
18221 hardcode_direct=yes
18222 hardcode_shlibpath_var=no
18225 newsos6)
18226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18227 hardcode_direct=yes
18228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18229 hardcode_libdir_separator=:
18230 hardcode_shlibpath_var=no
18233 *nto* | *qnx*)
18236 openbsd*)
18237 if test -f /usr/libexec/ld.so; then
18238 hardcode_direct=yes
18239 hardcode_shlibpath_var=no
18240 hardcode_direct_absolute=yes
18241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18243 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18245 export_dynamic_flag_spec='${wl}-E'
18246 else
18247 case $host_os in
18248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18250 hardcode_libdir_flag_spec='-R$libdir'
18253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18256 esac
18258 else
18259 ld_shlibs=no
18263 os2*)
18264 hardcode_libdir_flag_spec='-L$libdir'
18265 hardcode_minus_L=yes
18266 allow_undefined_flag=unsupported
18267 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'
18268 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18271 osf3*)
18272 if test "$GCC" = yes; then
18273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18274 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'
18275 else
18276 allow_undefined_flag=' -expect_unresolved \*'
18277 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'
18279 archive_cmds_need_lc='no'
18280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18281 hardcode_libdir_separator=:
18284 osf4* | osf5*) # as osf3* with the addition of -msym flag
18285 if test "$GCC" = yes; then
18286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18287 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'
18288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18289 else
18290 allow_undefined_flag=' -expect_unresolved \*'
18291 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'
18292 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~
18293 $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'
18295 # Both c and cxx compiler support -rpath directly
18296 hardcode_libdir_flag_spec='-rpath $libdir'
18298 archive_cmds_need_lc='no'
18299 hardcode_libdir_separator=:
18302 solaris*)
18303 no_undefined_flag=' -z defs'
18304 if test "$GCC" = yes; then
18305 wlarc='${wl}'
18306 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18308 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18309 else
18310 case `$CC -V 2>&1` in
18311 *"Compilers 5.0"*)
18312 wlarc=''
18313 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18318 wlarc='${wl}'
18319 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18321 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18323 esac
18325 hardcode_libdir_flag_spec='-R$libdir'
18326 hardcode_shlibpath_var=no
18327 case $host_os in
18328 solaris2.[0-5] | solaris2.[0-5].*) ;;
18330 # The compiler driver will combine and reorder linker options,
18331 # but understands `-z linker_flag'. GCC discards it without `$wl',
18332 # but is careful enough not to reorder.
18333 # Supported since Solaris 2.6 (maybe 2.5.1?)
18334 if test "$GCC" = yes; then
18335 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18336 else
18337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18340 esac
18341 link_all_deplibs=yes
18344 sunos4*)
18345 if test "x$host_vendor" = xsequent; then
18346 # Use $CC to link under sequent, because it throws in some extra .o
18347 # files that make .init and .fini sections work.
18348 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18349 else
18350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18352 hardcode_libdir_flag_spec='-L$libdir'
18353 hardcode_direct=yes
18354 hardcode_minus_L=yes
18355 hardcode_shlibpath_var=no
18358 sysv4)
18359 case $host_vendor in
18360 sni)
18361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18362 hardcode_direct=yes # is this really true???
18364 siemens)
18365 ## LD is ld it makes a PLAMLIB
18366 ## CC just makes a GrossModule.
18367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18368 reload_cmds='$CC -r -o $output$reload_objs'
18369 hardcode_direct=no
18371 motorola)
18372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18375 esac
18376 runpath_var='LD_RUN_PATH'
18377 hardcode_shlibpath_var=no
18380 sysv4.3*)
18381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382 hardcode_shlibpath_var=no
18383 export_dynamic_flag_spec='-Bexport'
18386 sysv4*MP*)
18387 if test -d /usr/nec; then
18388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18389 hardcode_shlibpath_var=no
18390 runpath_var=LD_RUN_PATH
18391 hardcode_runpath_var=yes
18392 ld_shlibs=yes
18396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18397 no_undefined_flag='${wl}-z,text'
18398 archive_cmds_need_lc=no
18399 hardcode_shlibpath_var=no
18400 runpath_var='LD_RUN_PATH'
18402 if test "$GCC" = yes; then
18403 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18404 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18405 else
18406 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18407 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18411 sysv5* | sco3.2v5* | sco5v6*)
18412 # Note: We can NOT use -z defs as we might desire, because we do not
18413 # link with -lc, and that would cause any symbols used from libc to
18414 # always be unresolved, which means just about no library would
18415 # ever link correctly. If we're not using GNU ld we use -z text
18416 # though, which does catch some bad symbols but isn't as heavy-handed
18417 # as -z defs.
18418 no_undefined_flag='${wl}-z,text'
18419 allow_undefined_flag='${wl}-z,nodefs'
18420 archive_cmds_need_lc=no
18421 hardcode_shlibpath_var=no
18422 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18423 hardcode_libdir_separator=':'
18424 link_all_deplibs=yes
18425 export_dynamic_flag_spec='${wl}-Bexport'
18426 runpath_var='LD_RUN_PATH'
18428 if test "$GCC" = yes; then
18429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18431 else
18432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18437 uts4*)
18438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18439 hardcode_libdir_flag_spec='-L$libdir'
18440 hardcode_shlibpath_var=no
18444 ld_shlibs=no
18446 esac
18448 if test x$host_vendor = xsni; then
18449 case $host in
18450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18451 export_dynamic_flag_spec='${wl}-Blargedynsym'
18453 esac
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18458 $as_echo "$ld_shlibs" >&6; }
18459 test "$ld_shlibs" = no && can_build_shared=no
18461 with_gnu_ld=$with_gnu_ld
18478 # Do we need to explicitly link libc?
18480 case "x$archive_cmds_need_lc" in
18481 x|xyes)
18482 # Assume -lc should be added
18483 archive_cmds_need_lc=yes
18485 if test "$enable_shared" = yes && test "$GCC" = yes; then
18486 case $archive_cmds in
18487 *'~'*)
18488 # FIXME: we may have to deal with multi-command sequences.
18490 '$CC '*)
18491 # Test whether the compiler implicitly links with -lc since on some
18492 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18493 # to ld, don't add -lc before -lgcc.
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18495 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18496 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18497 $as_echo_n "(cached) " >&6
18498 else
18499 $RM conftest*
18500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18503 (eval $ac_compile) 2>&5
18504 ac_status=$?
18505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18506 test $ac_status = 0; } 2>conftest.err; then
18507 soname=conftest
18508 lib=conftest
18509 libobjs=conftest.$ac_objext
18510 deplibs=
18511 wl=$lt_prog_compiler_wl
18512 pic_flag=$lt_prog_compiler_pic
18513 compiler_flags=-v
18514 linker_flags=-v
18515 verstring=
18516 output_objdir=.
18517 libname=conftest
18518 lt_save_allow_undefined_flag=$allow_undefined_flag
18519 allow_undefined_flag=
18520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18521 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18522 ac_status=$?
18523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18524 test $ac_status = 0; }
18525 then
18526 lt_cv_archive_cmds_need_lc=no
18527 else
18528 lt_cv_archive_cmds_need_lc=yes
18530 allow_undefined_flag=$lt_save_allow_undefined_flag
18531 else
18532 cat conftest.err 1>&5
18534 $RM conftest*
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18538 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18539 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18541 esac
18544 esac
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18703 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18705 if test "$GCC" = yes; then
18706 case $host_os in
18707 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18708 *) lt_awk_arg="/^libraries:/" ;;
18709 esac
18710 case $host_os in
18711 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18712 *) lt_sed_strip_eq="s,=/,/,g" ;;
18713 esac
18714 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18715 case $lt_search_path_spec in
18716 *\;*)
18717 # if the path contains ";" then we assume it to be the separator
18718 # otherwise default to the standard path separator (i.e. ":") - it is
18719 # assumed that no part of a normal pathname contains ";" but that should
18720 # okay in the real world where ";" in dirpaths is itself problematic.
18721 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18724 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18726 esac
18727 # Ok, now we have the path, separated by spaces, we can step through it
18728 # and add multilib dir if necessary.
18729 lt_tmp_lt_search_path_spec=
18730 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18731 for lt_sys_path in $lt_search_path_spec; do
18732 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18733 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18734 else
18735 test -d "$lt_sys_path" && \
18736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18738 done
18739 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18740 BEGIN {RS=" "; FS="/|\n";} {
18741 lt_foo="";
18742 lt_count=0;
18743 for (lt_i = NF; lt_i > 0; lt_i--) {
18744 if ($lt_i != "" && $lt_i != ".") {
18745 if ($lt_i == "..") {
18746 lt_count++;
18747 } else {
18748 if (lt_count == 0) {
18749 lt_foo="/" $lt_i lt_foo;
18750 } else {
18751 lt_count--;
18756 if (lt_foo != "") { lt_freq[lt_foo]++; }
18757 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18759 # AWK program above erroneously prepends '/' to C:/dos/paths
18760 # for these hosts.
18761 case $host_os in
18762 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18763 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18764 esac
18765 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18766 else
18767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18769 library_names_spec=
18770 libname_spec='lib$name'
18771 soname_spec=
18772 shrext_cmds=".so"
18773 postinstall_cmds=
18774 postuninstall_cmds=
18775 finish_cmds=
18776 finish_eval=
18777 shlibpath_var=
18778 shlibpath_overrides_runpath=unknown
18779 version_type=none
18780 dynamic_linker="$host_os ld.so"
18781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18782 need_lib_prefix=unknown
18783 hardcode_into_libs=no
18785 # when you set need_version to no, make sure it does not cause -set_version
18786 # flags to be left without arguments
18787 need_version=unknown
18789 case $host_os in
18790 aix3*)
18791 version_type=linux
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18793 shlibpath_var=LIBPATH
18795 # AIX 3 has no versioning support, so we append a major version to the name.
18796 soname_spec='${libname}${release}${shared_ext}$major'
18799 aix[4-9]*)
18800 version_type=linux
18801 need_lib_prefix=no
18802 need_version=no
18803 hardcode_into_libs=yes
18804 if test "$host_cpu" = ia64; then
18805 # AIX 5 supports IA64
18806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 else
18809 # With GCC up to 2.95.x, collect2 would create an import file
18810 # for dependence libraries. The import file would start with
18811 # the line `#! .'. This would cause the generated library to
18812 # depend on `.', always an invalid library. This was fixed in
18813 # development snapshots of GCC prior to 3.0.
18814 case $host_os in
18815 aix4 | aix4.[01] | aix4.[01].*)
18816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18817 echo ' yes '
18818 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18820 else
18821 can_build_shared=no
18824 esac
18825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18826 # soname into executable. Probably we can add versioning support to
18827 # collect2, so additional links can be useful in future.
18828 if test "$aix_use_runtimelinking" = yes; then
18829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18830 # instead of lib<name>.a to let people know that these are not
18831 # typical AIX shared libraries.
18832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18833 else
18834 # We preserve .a as extension for shared libraries through AIX4.2
18835 # and later when we are not doing run time linking.
18836 library_names_spec='${libname}${release}.a $libname.a'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18839 shlibpath_var=LIBPATH
18843 amigaos*)
18844 case $host_cpu in
18845 powerpc)
18846 # Since July 2007 AmigaOS4 officially supports .so libraries.
18847 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850 m68k)
18851 library_names_spec='$libname.ixlibrary $libname.a'
18852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18853 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'
18855 esac
18858 beos*)
18859 library_names_spec='${libname}${shared_ext}'
18860 dynamic_linker="$host_os ld.so"
18861 shlibpath_var=LIBRARY_PATH
18864 bsdi[45]*)
18865 version_type=linux
18866 need_version=no
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18872 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18873 # the default ld.so.conf also contains /usr/contrib/lib and
18874 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18875 # libtool to hard-code these into programs
18878 cygwin* | mingw* | pw32* | cegcc*)
18879 version_type=windows
18880 shrext_cmds=".dll"
18881 need_version=no
18882 need_lib_prefix=no
18884 case $GCC,$host_os in
18885 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18886 library_names_spec='$libname.dll.a'
18887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18888 postinstall_cmds='base_file=`basename \${file}`~
18889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18890 dldir=$destdir/`dirname \$dlpath`~
18891 test -d \$dldir || mkdir -p \$dldir~
18892 $install_prog $dir/$dlname \$dldir/$dlname~
18893 chmod a+x \$dldir/$dlname~
18894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18898 dlpath=$dir/\$dldll~
18899 $RM \$dlpath'
18900 shlibpath_overrides_runpath=yes
18902 case $host_os in
18903 cygwin*)
18904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18909 mingw* | cegcc*)
18910 # MinGW DLLs use traditional 'lib' prefix
18911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18913 pw32*)
18914 # pw32 DLLs use 'pw' prefix rather than 'lib'
18915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18917 esac
18921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18923 esac
18924 dynamic_linker='Win32 ld.exe'
18925 # FIXME: first we should search . and the directory the executable is in
18926 shlibpath_var=PATH
18929 darwin* | rhapsody*)
18930 dynamic_linker="$host_os dyld"
18931 version_type=darwin
18932 need_lib_prefix=no
18933 need_version=no
18934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18935 soname_spec='${libname}${release}${major}$shared_ext'
18936 shlibpath_overrides_runpath=yes
18937 shlibpath_var=DYLD_LIBRARY_PATH
18938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18944 dgux*)
18945 version_type=linux
18946 need_lib_prefix=no
18947 need_version=no
18948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18949 soname_spec='${libname}${release}${shared_ext}$major'
18950 shlibpath_var=LD_LIBRARY_PATH
18953 freebsd* | dragonfly*)
18954 # DragonFly does not have aout. When/if they implement a new
18955 # versioning mechanism, adjust this.
18956 if test -x /usr/bin/objformat; then
18957 objformat=`/usr/bin/objformat`
18958 else
18959 case $host_os in
18960 freebsd[23].*) objformat=aout ;;
18961 *) objformat=elf ;;
18962 esac
18964 version_type=freebsd-$objformat
18965 case $version_type in
18966 freebsd-elf*)
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18968 need_version=no
18969 need_lib_prefix=no
18971 freebsd-*)
18972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18973 need_version=yes
18975 esac
18976 shlibpath_var=LD_LIBRARY_PATH
18977 case $host_os in
18978 freebsd2.*)
18979 shlibpath_overrides_runpath=yes
18981 freebsd3.[01]* | freebsdelf3.[01]*)
18982 shlibpath_overrides_runpath=yes
18983 hardcode_into_libs=yes
18985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18987 shlibpath_overrides_runpath=no
18988 hardcode_into_libs=yes
18990 *) # from 4.6 on, and DragonFly
18991 shlibpath_overrides_runpath=yes
18992 hardcode_into_libs=yes
18994 esac
18997 haiku*)
18998 version_type=linux
18999 need_lib_prefix=no
19000 need_version=no
19001 dynamic_linker="$host_os runtime_loader"
19002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19003 soname_spec='${libname}${release}${shared_ext}$major'
19004 shlibpath_var=LIBRARY_PATH
19005 shlibpath_overrides_runpath=yes
19006 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19007 hardcode_into_libs=yes
19010 hpux9* | hpux10* | hpux11*)
19011 # Give a soname corresponding to the major version so that dld.sl refuses to
19012 # link against other versions.
19013 version_type=sunos
19014 need_lib_prefix=no
19015 need_version=no
19016 case $host_cpu in
19017 ia64*)
19018 shrext_cmds='.so'
19019 hardcode_into_libs=yes
19020 dynamic_linker="$host_os dld.so"
19021 shlibpath_var=LD_LIBRARY_PATH
19022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024 soname_spec='${libname}${release}${shared_ext}$major'
19025 if test "X$HPUX_IA64_MODE" = X32; then
19026 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19027 else
19028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19032 hppa*64*)
19033 shrext_cmds='.sl'
19034 hardcode_into_libs=yes
19035 dynamic_linker="$host_os dld.sl"
19036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039 soname_spec='${libname}${release}${shared_ext}$major'
19040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19044 shrext_cmds='.sl'
19045 dynamic_linker="$host_os dld.sl"
19046 shlibpath_var=SHLIB_PATH
19047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19049 soname_spec='${libname}${release}${shared_ext}$major'
19051 esac
19052 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19053 postinstall_cmds='chmod 555 $lib'
19054 # or fails outright, so override atomically:
19055 install_override_mode=555
19058 interix[3-9]*)
19059 version_type=linux
19060 need_lib_prefix=no
19061 need_version=no
19062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19063 soname_spec='${libname}${release}${shared_ext}$major'
19064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19065 shlibpath_var=LD_LIBRARY_PATH
19066 shlibpath_overrides_runpath=no
19067 hardcode_into_libs=yes
19070 irix5* | irix6* | nonstopux*)
19071 case $host_os in
19072 nonstopux*) version_type=nonstopux ;;
19074 if test "$lt_cv_prog_gnu_ld" = yes; then
19075 version_type=linux
19076 else
19077 version_type=irix
19078 fi ;;
19079 esac
19080 need_lib_prefix=no
19081 need_version=no
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19084 case $host_os in
19085 irix5* | nonstopux*)
19086 libsuff= shlibsuff=
19089 case $LD in # libtool.m4 will add one of these switches to LD
19090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19091 libsuff= shlibsuff= libmagic=32-bit;;
19092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19093 libsuff=32 shlibsuff=N32 libmagic=N32;;
19094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19096 *) libsuff= shlibsuff= libmagic=never-match;;
19097 esac
19099 esac
19100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19101 shlibpath_overrides_runpath=no
19102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19104 hardcode_into_libs=yes
19107 # No shared lib support for Linux oldld, aout, or coff.
19108 linux*oldld* | linux*aout* | linux*coff*)
19109 dynamic_linker=no
19112 # This must be Linux ELF.
19114 # uclinux* changes (here and below) have been submitted to the libtool
19115 # project, but have not yet been accepted: they are GCC-local changes
19116 # for the time being. (See
19117 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19118 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19119 version_type=linux
19120 need_lib_prefix=no
19121 need_version=no
19122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19123 soname_spec='${libname}${release}${shared_ext}$major'
19124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19125 shlibpath_var=LD_LIBRARY_PATH
19126 shlibpath_overrides_runpath=no
19128 # Some binutils ld are patched to set DT_RUNPATH
19129 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19130 $as_echo_n "(cached) " >&6
19131 else
19132 lt_cv_shlibpath_overrides_runpath=no
19133 save_LDFLAGS=$LDFLAGS
19134 save_libdir=$libdir
19135 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19136 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19141 main ()
19145 return 0;
19147 _ACEOF
19148 if ac_fn_c_try_link "$LINENO"; then :
19149 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19150 lt_cv_shlibpath_overrides_runpath=yes
19153 rm -f core conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
19155 LDFLAGS=$save_LDFLAGS
19156 libdir=$save_libdir
19160 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19162 # This implies no fast_install, which is unacceptable.
19163 # Some rework will be needed to allow for fast_install
19164 # before this can be enabled.
19165 hardcode_into_libs=yes
19167 # Append ld.so.conf contents to the search path
19168 if test -f /etc/ld.so.conf; then
19169 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' ' '`
19170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19173 # We used to test for /lib/ld.so.1 and disable shared libraries on
19174 # powerpc, because MkLinux only supported shared libraries with the
19175 # GNU dynamic linker. Since this was broken with cross compilers,
19176 # most powerpc-linux boxes support dynamic linking these days and
19177 # people can always --disable-shared, the test was removed, and we
19178 # assume the GNU/Linux dynamic linker is in use.
19179 dynamic_linker='GNU/Linux ld.so'
19182 netbsd*)
19183 version_type=sunos
19184 need_lib_prefix=no
19185 need_version=no
19186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19189 dynamic_linker='NetBSD (a.out) ld.so'
19190 else
19191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19192 soname_spec='${libname}${release}${shared_ext}$major'
19193 dynamic_linker='NetBSD ld.elf_so'
19195 shlibpath_var=LD_LIBRARY_PATH
19196 shlibpath_overrides_runpath=yes
19197 hardcode_into_libs=yes
19200 newsos6)
19201 version_type=linux
19202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203 shlibpath_var=LD_LIBRARY_PATH
19204 shlibpath_overrides_runpath=yes
19207 *nto* | *qnx*)
19208 version_type=qnx
19209 need_lib_prefix=no
19210 need_version=no
19211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19212 soname_spec='${libname}${release}${shared_ext}$major'
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=no
19215 hardcode_into_libs=yes
19216 dynamic_linker='ldqnx.so'
19219 openbsd*)
19220 version_type=sunos
19221 sys_lib_dlsearch_path_spec="/usr/lib"
19222 need_lib_prefix=no
19223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19224 case $host_os in
19225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19226 *) need_version=no ;;
19227 esac
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19230 shlibpath_var=LD_LIBRARY_PATH
19231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19232 case $host_os in
19233 openbsd2.[89] | openbsd2.[89].*)
19234 shlibpath_overrides_runpath=no
19237 shlibpath_overrides_runpath=yes
19239 esac
19240 else
19241 shlibpath_overrides_runpath=yes
19245 os2*)
19246 libname_spec='$name'
19247 shrext_cmds=".dll"
19248 need_lib_prefix=no
19249 library_names_spec='$libname${shared_ext} $libname.a'
19250 dynamic_linker='OS/2 ld.exe'
19251 shlibpath_var=LIBPATH
19254 osf3* | osf4* | osf5*)
19255 version_type=osf
19256 need_lib_prefix=no
19257 need_version=no
19258 soname_spec='${libname}${release}${shared_ext}$major'
19259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19260 shlibpath_var=LD_LIBRARY_PATH
19261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19265 rdos*)
19266 dynamic_linker=no
19269 solaris*)
19270 version_type=linux
19271 need_lib_prefix=no
19272 need_version=no
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 shlibpath_var=LD_LIBRARY_PATH
19276 shlibpath_overrides_runpath=yes
19277 hardcode_into_libs=yes
19278 # ldd complains unless libraries are executable
19279 postinstall_cmds='chmod +x $lib'
19282 sunos4*)
19283 version_type=sunos
19284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19286 shlibpath_var=LD_LIBRARY_PATH
19287 shlibpath_overrides_runpath=yes
19288 if test "$with_gnu_ld" = yes; then
19289 need_lib_prefix=no
19291 need_version=yes
19294 sysv4 | sysv4.3*)
19295 version_type=linux
19296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19297 soname_spec='${libname}${release}${shared_ext}$major'
19298 shlibpath_var=LD_LIBRARY_PATH
19299 case $host_vendor in
19300 sni)
19301 shlibpath_overrides_runpath=no
19302 need_lib_prefix=no
19303 runpath_var=LD_RUN_PATH
19305 siemens)
19306 need_lib_prefix=no
19308 motorola)
19309 need_lib_prefix=no
19310 need_version=no
19311 shlibpath_overrides_runpath=no
19312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19314 esac
19317 sysv4*MP*)
19318 if test -d /usr/nec ;then
19319 version_type=linux
19320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19321 soname_spec='$libname${shared_ext}.$major'
19322 shlibpath_var=LD_LIBRARY_PATH
19326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19327 version_type=freebsd-elf
19328 need_lib_prefix=no
19329 need_version=no
19330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19331 soname_spec='${libname}${release}${shared_ext}$major'
19332 shlibpath_var=LD_LIBRARY_PATH
19333 shlibpath_overrides_runpath=yes
19334 hardcode_into_libs=yes
19335 if test "$with_gnu_ld" = yes; then
19336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19337 else
19338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19339 case $host_os in
19340 sco3.2v5*)
19341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19343 esac
19345 sys_lib_dlsearch_path_spec='/usr/lib'
19348 tpf*)
19349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19350 version_type=linux
19351 need_lib_prefix=no
19352 need_version=no
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354 shlibpath_var=LD_LIBRARY_PATH
19355 shlibpath_overrides_runpath=no
19356 hardcode_into_libs=yes
19359 uts4*)
19360 version_type=linux
19361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362 soname_spec='${libname}${release}${shared_ext}$major'
19363 shlibpath_var=LD_LIBRARY_PATH
19366 # Shared libraries for VwWorks, >= 7 only at this stage
19367 # and (fpic) still incompatible with "large" code models
19368 # in a few configurations. Only for RTP mode in any case,
19369 # and upon explicit request at configure time.
19370 vxworks7*)
19371 dynamic_linker=no
19372 case ${with_multisubdir}-${enable_shared} in
19373 *large*)
19375 *mrtp*-yes)
19376 version_type=linux
19377 need_lib_prefix=no
19378 need_version=no
19379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 soname_spec='${libname}${release}${shared_ext}$major'
19381 dynamic_linker="$host_os module_loader"
19383 esac
19386 dynamic_linker=no
19388 esac
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19390 $as_echo "$dynamic_linker" >&6; }
19391 test "$dynamic_linker" = no && can_build_shared=no
19393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19394 if test "$GCC" = yes; then
19395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19398 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19399 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19401 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19402 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19497 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19498 hardcode_action=
19499 if test -n "$hardcode_libdir_flag_spec" ||
19500 test -n "$runpath_var" ||
19501 test "X$hardcode_automatic" = "Xyes" ; then
19503 # We can hardcode non-existent directories.
19504 if test "$hardcode_direct" != no &&
19505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19506 # have to relink, otherwise we might link with an installed library
19507 # when we should be linking with a yet-to-be-installed one
19508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19509 test "$hardcode_minus_L" != no; then
19510 # Linking always hardcodes the temporary library directory.
19511 hardcode_action=relink
19512 else
19513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19514 hardcode_action=immediate
19516 else
19517 # We cannot hardcode anything, or else we can only hardcode existing
19518 # directories.
19519 hardcode_action=unsupported
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19522 $as_echo "$hardcode_action" >&6; }
19524 if test "$hardcode_action" = relink ||
19525 test "$inherit_rpath" = yes; then
19526 # Fast installation is not supported
19527 enable_fast_install=no
19528 elif test "$shlibpath_overrides_runpath" = yes ||
19529 test "$enable_shared" = no; then
19530 # Fast installation is not necessary
19531 enable_fast_install=needless
19539 if test "x$enable_dlopen" != xyes; then
19540 enable_dlopen=unknown
19541 enable_dlopen_self=unknown
19542 enable_dlopen_self_static=unknown
19543 else
19544 lt_cv_dlopen=no
19545 lt_cv_dlopen_libs=
19547 case $host_os in
19548 beos*)
19549 lt_cv_dlopen="load_add_on"
19550 lt_cv_dlopen_libs=
19551 lt_cv_dlopen_self=yes
19554 mingw* | pw32* | cegcc*)
19555 lt_cv_dlopen="LoadLibrary"
19556 lt_cv_dlopen_libs=
19559 cygwin*)
19560 lt_cv_dlopen="dlopen"
19561 lt_cv_dlopen_libs=
19564 darwin*)
19565 # if libdl is installed we need to link against it
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19568 if ${ac_cv_lib_dl_dlopen+:} false; then :
19569 $as_echo_n "(cached) " >&6
19570 else
19571 ac_check_lib_save_LIBS=$LIBS
19572 LIBS="-ldl $LIBS"
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 builtin and then its argument prototype would still apply. */
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 char dlopen ();
19584 main ()
19586 return dlopen ();
19588 return 0;
19590 _ACEOF
19591 if ac_fn_c_try_link "$LINENO"; then :
19592 ac_cv_lib_dl_dlopen=yes
19593 else
19594 ac_cv_lib_dl_dlopen=no
19596 rm -f core conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19604 else
19606 lt_cv_dlopen="dyld"
19607 lt_cv_dlopen_libs=
19608 lt_cv_dlopen_self=yes
19615 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19616 if test "x$ac_cv_func_shl_load" = xyes; then :
19617 lt_cv_dlopen="shl_load"
19618 else
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19620 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19621 if ${ac_cv_lib_dld_shl_load+:} false; then :
19622 $as_echo_n "(cached) " >&6
19623 else
19624 ac_check_lib_save_LIBS=$LIBS
19625 LIBS="-ldld $LIBS"
19626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h. */
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19632 #ifdef __cplusplus
19633 extern "C"
19634 #endif
19635 char shl_load ();
19637 main ()
19639 return shl_load ();
19641 return 0;
19643 _ACEOF
19644 if ac_fn_c_try_link "$LINENO"; then :
19645 ac_cv_lib_dld_shl_load=yes
19646 else
19647 ac_cv_lib_dld_shl_load=no
19649 rm -f core conftest.err conftest.$ac_objext \
19650 conftest$ac_exeext conftest.$ac_ext
19651 LIBS=$ac_check_lib_save_LIBS
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19654 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19655 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19656 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19657 else
19658 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19659 if test "x$ac_cv_func_dlopen" = xyes; then :
19660 lt_cv_dlopen="dlopen"
19661 else
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19663 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19664 if ${ac_cv_lib_dl_dlopen+:} false; then :
19665 $as_echo_n "(cached) " >&6
19666 else
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-ldl $LIBS"
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char dlopen ();
19680 main ()
19682 return dlopen ();
19684 return 0;
19686 _ACEOF
19687 if ac_fn_c_try_link "$LINENO"; then :
19688 ac_cv_lib_dl_dlopen=yes
19689 else
19690 ac_cv_lib_dl_dlopen=no
19692 rm -f core conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
19694 LIBS=$ac_check_lib_save_LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19698 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19700 else
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19702 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19703 if ${ac_cv_lib_svld_dlopen+:} false; then :
19704 $as_echo_n "(cached) " >&6
19705 else
19706 ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lsvld $LIBS"
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19714 #ifdef __cplusplus
19715 extern "C"
19716 #endif
19717 char dlopen ();
19719 main ()
19721 return dlopen ();
19723 return 0;
19725 _ACEOF
19726 if ac_fn_c_try_link "$LINENO"; then :
19727 ac_cv_lib_svld_dlopen=yes
19728 else
19729 ac_cv_lib_svld_dlopen=no
19731 rm -f core conftest.err conftest.$ac_objext \
19732 conftest$ac_exeext conftest.$ac_ext
19733 LIBS=$ac_check_lib_save_LIBS
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19736 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19737 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19739 else
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19741 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19742 if ${ac_cv_lib_dld_dld_link+:} false; then :
19743 $as_echo_n "(cached) " >&6
19744 else
19745 ac_check_lib_save_LIBS=$LIBS
19746 LIBS="-ldld $LIBS"
19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19753 #ifdef __cplusplus
19754 extern "C"
19755 #endif
19756 char dld_link ();
19758 main ()
19760 return dld_link ();
19762 return 0;
19764 _ACEOF
19765 if ac_fn_c_try_link "$LINENO"; then :
19766 ac_cv_lib_dld_dld_link=yes
19767 else
19768 ac_cv_lib_dld_dld_link=no
19770 rm -f core conftest.err conftest.$ac_objext \
19771 conftest$ac_exeext conftest.$ac_ext
19772 LIBS=$ac_check_lib_save_LIBS
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19775 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19776 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19796 esac
19798 if test "x$lt_cv_dlopen" != xno; then
19799 enable_dlopen=yes
19800 else
19801 enable_dlopen=no
19804 case $lt_cv_dlopen in
19805 dlopen)
19806 save_CPPFLAGS="$CPPFLAGS"
19807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19809 save_LDFLAGS="$LDFLAGS"
19810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19812 save_LIBS="$LIBS"
19813 LIBS="$lt_cv_dlopen_libs $LIBS"
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19816 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19817 if ${lt_cv_dlopen_self+:} false; then :
19818 $as_echo_n "(cached) " >&6
19819 else
19820 if test "$cross_compiling" = yes; then :
19821 lt_cv_dlopen_self=cross
19822 else
19823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19824 lt_status=$lt_dlunknown
19825 cat > conftest.$ac_ext <<_LT_EOF
19826 #line 19826 "configure"
19827 #include "confdefs.h"
19829 #if HAVE_DLFCN_H
19830 #include <dlfcn.h>
19831 #endif
19833 #include <stdio.h>
19835 #ifdef RTLD_GLOBAL
19836 # define LT_DLGLOBAL RTLD_GLOBAL
19837 #else
19838 # ifdef DL_GLOBAL
19839 # define LT_DLGLOBAL DL_GLOBAL
19840 # else
19841 # define LT_DLGLOBAL 0
19842 # endif
19843 #endif
19845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19846 find out it does not work in some platform. */
19847 #ifndef LT_DLLAZY_OR_NOW
19848 # ifdef RTLD_LAZY
19849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19850 # else
19851 # ifdef DL_LAZY
19852 # define LT_DLLAZY_OR_NOW DL_LAZY
19853 # else
19854 # ifdef RTLD_NOW
19855 # define LT_DLLAZY_OR_NOW RTLD_NOW
19856 # else
19857 # ifdef DL_NOW
19858 # define LT_DLLAZY_OR_NOW DL_NOW
19859 # else
19860 # define LT_DLLAZY_OR_NOW 0
19861 # endif
19862 # endif
19863 # endif
19864 # endif
19865 #endif
19867 /* When -fvisbility=hidden is used, assume the code has been annotated
19868 correspondingly for the symbols needed. */
19869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19870 void fnord () __attribute__((visibility("default")));
19871 #endif
19873 void fnord () { int i=42; }
19874 int main ()
19876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19877 int status = $lt_dlunknown;
19879 if (self)
19881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19882 else
19884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19885 else puts (dlerror ());
19887 /* dlclose (self); */
19889 else
19890 puts (dlerror ());
19892 return status;
19894 _LT_EOF
19895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19896 (eval $ac_link) 2>&5
19897 ac_status=$?
19898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19900 (./conftest; exit; ) >&5 2>/dev/null
19901 lt_status=$?
19902 case x$lt_status in
19903 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19904 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19905 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19906 esac
19907 else :
19908 # compilation failed
19909 lt_cv_dlopen_self=no
19912 rm -fr conftest*
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19917 $as_echo "$lt_cv_dlopen_self" >&6; }
19919 if test "x$lt_cv_dlopen_self" = xyes; then
19920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19922 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19923 if ${lt_cv_dlopen_self_static+:} false; then :
19924 $as_echo_n "(cached) " >&6
19925 else
19926 if test "$cross_compiling" = yes; then :
19927 lt_cv_dlopen_self_static=cross
19928 else
19929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19930 lt_status=$lt_dlunknown
19931 cat > conftest.$ac_ext <<_LT_EOF
19932 #line 19932 "configure"
19933 #include "confdefs.h"
19935 #if HAVE_DLFCN_H
19936 #include <dlfcn.h>
19937 #endif
19939 #include <stdio.h>
19941 #ifdef RTLD_GLOBAL
19942 # define LT_DLGLOBAL RTLD_GLOBAL
19943 #else
19944 # ifdef DL_GLOBAL
19945 # define LT_DLGLOBAL DL_GLOBAL
19946 # else
19947 # define LT_DLGLOBAL 0
19948 # endif
19949 #endif
19951 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19952 find out it does not work in some platform. */
19953 #ifndef LT_DLLAZY_OR_NOW
19954 # ifdef RTLD_LAZY
19955 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19956 # else
19957 # ifdef DL_LAZY
19958 # define LT_DLLAZY_OR_NOW DL_LAZY
19959 # else
19960 # ifdef RTLD_NOW
19961 # define LT_DLLAZY_OR_NOW RTLD_NOW
19962 # else
19963 # ifdef DL_NOW
19964 # define LT_DLLAZY_OR_NOW DL_NOW
19965 # else
19966 # define LT_DLLAZY_OR_NOW 0
19967 # endif
19968 # endif
19969 # endif
19970 # endif
19971 #endif
19973 /* When -fvisbility=hidden is used, assume the code has been annotated
19974 correspondingly for the symbols needed. */
19975 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19976 void fnord () __attribute__((visibility("default")));
19977 #endif
19979 void fnord () { int i=42; }
19980 int main ()
19982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19983 int status = $lt_dlunknown;
19985 if (self)
19987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19988 else
19990 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19991 else puts (dlerror ());
19993 /* dlclose (self); */
19995 else
19996 puts (dlerror ());
19998 return status;
20000 _LT_EOF
20001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20002 (eval $ac_link) 2>&5
20003 ac_status=$?
20004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20005 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20006 (./conftest; exit; ) >&5 2>/dev/null
20007 lt_status=$?
20008 case x$lt_status in
20009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20011 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20012 esac
20013 else :
20014 # compilation failed
20015 lt_cv_dlopen_self_static=no
20018 rm -fr conftest*
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20026 CPPFLAGS="$save_CPPFLAGS"
20027 LDFLAGS="$save_LDFLAGS"
20028 LIBS="$save_LIBS"
20030 esac
20032 case $lt_cv_dlopen_self in
20033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20034 *) enable_dlopen_self=unknown ;;
20035 esac
20037 case $lt_cv_dlopen_self_static in
20038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20039 *) enable_dlopen_self_static=unknown ;;
20040 esac
20059 striplib=
20060 old_striplib=
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20062 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20063 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20067 $as_echo "yes" >&6; }
20068 else
20069 # FIXME - insert some real tests, host_os isn't really good enough
20070 case $host_os in
20071 darwin*)
20072 if test -n "$STRIP" ; then
20073 striplib="$STRIP -x"
20074 old_striplib="$STRIP -S"
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20076 $as_echo "yes" >&6; }
20077 else
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20079 $as_echo "no" >&6; }
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20084 $as_echo "no" >&6; }
20086 esac
20100 # Report which library types will actually be built
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20102 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20104 $as_echo "$can_build_shared" >&6; }
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20107 $as_echo_n "checking whether to build shared libraries... " >&6; }
20108 test "$can_build_shared" = "no" && enable_shared=no
20110 # On AIX, shared libraries and static libraries use the same namespace, and
20111 # are all built from PIC.
20112 case $host_os in
20113 aix3*)
20114 test "$enable_shared" = yes && enable_static=no
20115 if test -n "$RANLIB"; then
20116 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20117 postinstall_cmds='$RANLIB $lib'
20121 aix[4-9]*)
20122 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20123 test "$enable_shared" = yes && enable_static=no
20126 esac
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20128 $as_echo "$enable_shared" >&6; }
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20131 $as_echo_n "checking whether to build static libraries... " >&6; }
20132 # Make sure either enable_shared or enable_static is yes.
20133 test "$enable_shared" = yes || enable_static=yes
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20135 $as_echo "$enable_static" >&6; }
20141 ac_ext=cpp
20142 ac_cpp='$CXXCPP $CPPFLAGS'
20143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20147 CC="$lt_save_CC"
20149 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20150 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20151 (test "X$CXX" != "Xg++"))) ; then
20152 ac_ext=cpp
20153 ac_cpp='$CXXCPP $CPPFLAGS'
20154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20158 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20159 if test -z "$CXXCPP"; then
20160 if ${ac_cv_prog_CXXCPP+:} false; then :
20161 $as_echo_n "(cached) " >&6
20162 else
20163 # Double quotes because CXXCPP needs to be expanded
20164 for CXXCPP in "$CXX -E" "/lib/cpp"
20166 ac_preproc_ok=false
20167 for ac_cxx_preproc_warn_flag in '' yes
20169 # Use a header file that comes with gcc, so configuring glibc
20170 # with a fresh cross-compiler works.
20171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20172 # <limits.h> exists even on freestanding compilers.
20173 # On the NeXT, cc -E runs the code through the compiler's parser,
20174 # not just through cpp. "Syntax error" is here to catch this case.
20175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20176 /* end confdefs.h. */
20177 #ifdef __STDC__
20178 # include <limits.h>
20179 #else
20180 # include <assert.h>
20181 #endif
20182 Syntax error
20183 _ACEOF
20184 if ac_fn_cxx_try_cpp "$LINENO"; then :
20186 else
20187 # Broken: fails on valid input.
20188 continue
20190 rm -f conftest.err conftest.i conftest.$ac_ext
20192 # OK, works on sane cases. Now check whether nonexistent headers
20193 # can be detected and how.
20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h. */
20196 #include <ac_nonexistent.h>
20197 _ACEOF
20198 if ac_fn_cxx_try_cpp "$LINENO"; then :
20199 # Broken: success on invalid input.
20200 continue
20201 else
20202 # Passes both tests.
20203 ac_preproc_ok=:
20204 break
20206 rm -f conftest.err conftest.i conftest.$ac_ext
20208 done
20209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20210 rm -f conftest.i conftest.err conftest.$ac_ext
20211 if $ac_preproc_ok; then :
20212 break
20215 done
20216 ac_cv_prog_CXXCPP=$CXXCPP
20219 CXXCPP=$ac_cv_prog_CXXCPP
20220 else
20221 ac_cv_prog_CXXCPP=$CXXCPP
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20224 $as_echo "$CXXCPP" >&6; }
20225 ac_preproc_ok=false
20226 for ac_cxx_preproc_warn_flag in '' yes
20228 # Use a header file that comes with gcc, so configuring glibc
20229 # with a fresh cross-compiler works.
20230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20231 # <limits.h> exists even on freestanding compilers.
20232 # On the NeXT, cc -E runs the code through the compiler's parser,
20233 # not just through cpp. "Syntax error" is here to catch this case.
20234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235 /* end confdefs.h. */
20236 #ifdef __STDC__
20237 # include <limits.h>
20238 #else
20239 # include <assert.h>
20240 #endif
20241 Syntax error
20242 _ACEOF
20243 if ac_fn_cxx_try_cpp "$LINENO"; then :
20245 else
20246 # Broken: fails on valid input.
20247 continue
20249 rm -f conftest.err conftest.i conftest.$ac_ext
20251 # OK, works on sane cases. Now check whether nonexistent headers
20252 # can be detected and how.
20253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20254 /* end confdefs.h. */
20255 #include <ac_nonexistent.h>
20256 _ACEOF
20257 if ac_fn_cxx_try_cpp "$LINENO"; then :
20258 # Broken: success on invalid input.
20259 continue
20260 else
20261 # Passes both tests.
20262 ac_preproc_ok=:
20263 break
20265 rm -f conftest.err conftest.i conftest.$ac_ext
20267 done
20268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20269 rm -f conftest.i conftest.err conftest.$ac_ext
20270 if $ac_preproc_ok; then :
20272 else
20273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20275 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20276 See \`config.log' for more details" "$LINENO" 5; }
20279 ac_ext=cpp
20280 ac_cpp='$CXXCPP $CPPFLAGS'
20281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20285 else
20286 _lt_caught_CXX_error=yes
20289 ac_ext=cpp
20290 ac_cpp='$CXXCPP $CPPFLAGS'
20291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20295 archive_cmds_need_lc_CXX=no
20296 allow_undefined_flag_CXX=
20297 always_export_symbols_CXX=no
20298 archive_expsym_cmds_CXX=
20299 compiler_needs_object_CXX=no
20300 export_dynamic_flag_spec_CXX=
20301 hardcode_direct_CXX=no
20302 hardcode_direct_absolute_CXX=no
20303 hardcode_libdir_flag_spec_CXX=
20304 hardcode_libdir_flag_spec_ld_CXX=
20305 hardcode_libdir_separator_CXX=
20306 hardcode_minus_L_CXX=no
20307 hardcode_shlibpath_var_CXX=unsupported
20308 hardcode_automatic_CXX=no
20309 inherit_rpath_CXX=no
20310 module_cmds_CXX=
20311 module_expsym_cmds_CXX=
20312 link_all_deplibs_CXX=unknown
20313 old_archive_cmds_CXX=$old_archive_cmds
20314 reload_flag_CXX=$reload_flag
20315 reload_cmds_CXX=$reload_cmds
20316 no_undefined_flag_CXX=
20317 whole_archive_flag_spec_CXX=
20318 enable_shared_with_static_runtimes_CXX=no
20320 # Source file extension for C++ test sources.
20321 ac_ext=cpp
20323 # Object file extension for compiled C++ test sources.
20324 objext=o
20325 objext_CXX=$objext
20327 # No sense in running all these tests if we already determined that
20328 # the CXX compiler isn't working. Some variables (like enable_shared)
20329 # are currently assumed to apply to all compilers on this platform,
20330 # and will be corrupted by setting them based on a non-working compiler.
20331 if test "$_lt_caught_CXX_error" != yes; then
20332 # Code to be used in simple compile tests
20333 lt_simple_compile_test_code="int some_variable = 0;"
20335 # Code to be used in simple link tests
20336 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20338 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20345 # If no C compiler was specified, use CC.
20346 LTCC=${LTCC-"$CC"}
20348 # If no C compiler flags were specified, use CFLAGS.
20349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20351 # Allow CC to be a program name with arguments.
20352 compiler=$CC
20355 # save warnings/boilerplate of simple test code
20356 ac_outfile=conftest.$ac_objext
20357 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20358 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20359 _lt_compiler_boilerplate=`cat conftest.err`
20360 $RM conftest*
20362 ac_outfile=conftest.$ac_objext
20363 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20364 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20365 _lt_linker_boilerplate=`cat conftest.err`
20366 $RM -r conftest*
20369 # Allow CC to be a program name with arguments.
20370 lt_save_CC=$CC
20371 lt_save_LD=$LD
20372 lt_save_GCC=$GCC
20373 GCC=$GXX
20374 lt_save_with_gnu_ld=$with_gnu_ld
20375 lt_save_path_LD=$lt_cv_path_LD
20376 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20377 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20378 else
20379 $as_unset lt_cv_prog_gnu_ld
20381 if test -n "${lt_cv_path_LDCXX+set}"; then
20382 lt_cv_path_LD=$lt_cv_path_LDCXX
20383 else
20384 $as_unset lt_cv_path_LD
20386 test -z "${LDCXX+set}" || LD=$LDCXX
20387 CC=${CXX-"c++"}
20388 compiler=$CC
20389 compiler_CXX=$CC
20390 for cc_temp in $compiler""; do
20391 case $cc_temp in
20392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20394 \-*) ;;
20395 *) break;;
20396 esac
20397 done
20398 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20401 if test -n "$compiler"; then
20402 # We don't want -fno-exception when compiling C++ code, so set the
20403 # no_builtin_flag separately
20404 if test "$GXX" = yes; then
20405 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20406 else
20407 lt_prog_compiler_no_builtin_flag_CXX=
20410 if test "$GXX" = yes; then
20411 # Set up default GNU C++ configuration
20415 # Check whether --with-gnu-ld was given.
20416 if test "${with_gnu_ld+set}" = set; then :
20417 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20418 else
20419 with_gnu_ld=no
20422 ac_prog=ld
20423 if test "$GCC" = yes; then
20424 # Check if gcc -print-prog-name=ld gives a path.
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20426 $as_echo_n "checking for ld used by $CC... " >&6; }
20427 case $host in
20428 *-*-mingw*)
20429 # gcc leaves a trailing carriage return which upsets mingw
20430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20433 esac
20434 case $ac_prog in
20435 # Accept absolute paths.
20436 [\\/]* | ?:[\\/]*)
20437 re_direlt='/[^/][^/]*/\.\./'
20438 # Canonicalize the pathname of ld
20439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20442 done
20443 test -z "$LD" && LD="$ac_prog"
20446 # If it fails, then pretend we aren't using GCC.
20447 ac_prog=ld
20450 # If it is relative, then search for the first ld in PATH.
20451 with_gnu_ld=unknown
20453 esac
20454 elif test "$with_gnu_ld" = yes; then
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20456 $as_echo_n "checking for GNU ld... " >&6; }
20457 else
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20459 $as_echo_n "checking for non-GNU ld... " >&6; }
20461 if ${lt_cv_path_LD+:} false; then :
20462 $as_echo_n "(cached) " >&6
20463 else
20464 if test -z "$LD"; then
20465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20466 for ac_dir in $PATH; do
20467 IFS="$lt_save_ifs"
20468 test -z "$ac_dir" && ac_dir=.
20469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20470 lt_cv_path_LD="$ac_dir/$ac_prog"
20471 # Check to see if the program is GNU ld. I'd rather use --version,
20472 # but apparently some variants of GNU ld only accept -v.
20473 # Break only if it was the GNU/non-GNU ld that we prefer.
20474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20475 *GNU* | *'with BFD'*)
20476 test "$with_gnu_ld" != no && break
20479 test "$with_gnu_ld" != yes && break
20481 esac
20483 done
20484 IFS="$lt_save_ifs"
20485 else
20486 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20490 LD="$lt_cv_path_LD"
20491 if test -n "$LD"; then
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20493 $as_echo "$LD" >&6; }
20494 else
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20496 $as_echo "no" >&6; }
20498 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20500 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20501 if ${lt_cv_prog_gnu_ld+:} false; then :
20502 $as_echo_n "(cached) " >&6
20503 else
20504 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20505 case `$LD -v 2>&1 </dev/null` in
20506 *GNU* | *'with BFD'*)
20507 lt_cv_prog_gnu_ld=yes
20510 lt_cv_prog_gnu_ld=no
20512 esac
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20515 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20516 with_gnu_ld=$lt_cv_prog_gnu_ld
20524 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20525 # archiving commands below assume that GNU ld is being used.
20526 if test "$with_gnu_ld" = yes; then
20527 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20528 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'
20530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20533 # If archive_cmds runs LD, not CC, wlarc should be empty
20534 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20535 # investigate it a little bit more. (MM)
20536 wlarc='${wl}'
20538 # ancient GNU ld didn't support --whole-archive et. al.
20539 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20540 $GREP 'no-whole-archive' > /dev/null; then
20541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20542 else
20543 whole_archive_flag_spec_CXX=
20545 else
20546 with_gnu_ld=no
20547 wlarc=
20549 # A generic and very simple default shared library creation
20550 # command for GNU C++ for the case where it uses the native
20551 # linker, instead of GNU ld. If possible, this setting should
20552 # overridden to take advantage of the native linker features on
20553 # the platform it is being used on.
20554 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20557 # Commands to make compiler produce verbose output that lists
20558 # what "hidden" libraries, object files and flags are used when
20559 # linking a shared library.
20560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20562 else
20563 GXX=no
20564 with_gnu_ld=no
20565 wlarc=
20568 # PORTME: fill in a description of your system's C++ link characteristics
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20570 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20571 ld_shlibs_CXX=yes
20572 case $host_os in
20573 aix3*)
20574 # FIXME: insert proper C++ library support
20575 ld_shlibs_CXX=no
20577 aix[4-9]*)
20578 if test "$host_cpu" = ia64; then
20579 # On IA64, the linker does run time linking by default, so we don't
20580 # have to do anything special.
20581 aix_use_runtimelinking=no
20582 exp_sym_flag='-Bexport'
20583 no_entry_flag=""
20584 else
20585 aix_use_runtimelinking=no
20587 # Test if we are trying to use run time linking or normal
20588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20589 # need to do runtime linking.
20590 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20591 for ld_flag in $LDFLAGS; do
20592 case $ld_flag in
20593 *-brtl*)
20594 aix_use_runtimelinking=yes
20595 break
20597 esac
20598 done
20600 esac
20602 exp_sym_flag='-bexport'
20603 no_entry_flag='-bnoentry'
20606 # When large executables or shared objects are built, AIX ld can
20607 # have problems creating the table of contents. If linking a library
20608 # or program results in "error TOC overflow" add -mminimal-toc to
20609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20612 archive_cmds_CXX=''
20613 hardcode_direct_CXX=yes
20614 hardcode_direct_absolute_CXX=yes
20615 hardcode_libdir_separator_CXX=':'
20616 link_all_deplibs_CXX=yes
20617 file_list_spec_CXX='${wl}-f,'
20619 if test "$GXX" = yes; then
20620 case $host_os in aix4.[012]|aix4.[012].*)
20621 # We only want to do this on AIX 4.2 and lower, the check
20622 # below for broken collect2 doesn't work under 4.3+
20623 collect2name=`${CC} -print-prog-name=collect2`
20624 if test -f "$collect2name" &&
20625 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20626 then
20627 # We have reworked collect2
20629 else
20630 # We have old collect2
20631 hardcode_direct_CXX=unsupported
20632 # It fails to find uninstalled libraries when the uninstalled
20633 # path is not listed in the libpath. Setting hardcode_minus_L
20634 # to unsupported forces relinking
20635 hardcode_minus_L_CXX=yes
20636 hardcode_libdir_flag_spec_CXX='-L$libdir'
20637 hardcode_libdir_separator_CXX=
20639 esac
20640 shared_flag='-shared'
20641 if test "$aix_use_runtimelinking" = yes; then
20642 shared_flag="$shared_flag "'${wl}-G'
20644 else
20645 # not using gcc
20646 if test "$host_cpu" = ia64; then
20647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20648 # chokes on -Wl,-G. The following line is correct:
20649 shared_flag='-G'
20650 else
20651 if test "$aix_use_runtimelinking" = yes; then
20652 shared_flag='${wl}-G'
20653 else
20654 shared_flag='${wl}-bM:SRE'
20659 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20660 # It seems that -bexpall does not export symbols beginning with
20661 # underscore (_), so it is better to generate a list of symbols to
20662 # export.
20663 always_export_symbols_CXX=yes
20664 if test "$aix_use_runtimelinking" = yes; then
20665 # Warning - without using the other runtime loading flags (-brtl),
20666 # -berok will link without error, but may produce a broken library.
20667 allow_undefined_flag_CXX='-berok'
20668 # Determine the default libpath from the value encoded in an empty
20669 # executable.
20670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20674 main ()
20678 return 0;
20680 _ACEOF
20681 if ac_fn_cxx_try_link "$LINENO"; then :
20683 lt_aix_libpath_sed='
20684 /Import File Strings/,/^$/ {
20685 /^0/ {
20686 s/^0 *\(.*\)$/\1/
20690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20691 # Check for a 64-bit object if we didn't find anything.
20692 if test -z "$aix_libpath"; then
20693 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20696 rm -f core conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext conftest.$ac_ext
20698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20700 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20702 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"
20703 else
20704 if test "$host_cpu" = ia64; then
20705 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20706 allow_undefined_flag_CXX="-z nodefs"
20707 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"
20708 else
20709 # Determine the default libpath from the value encoded in an
20710 # empty executable.
20711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20715 main ()
20719 return 0;
20721 _ACEOF
20722 if ac_fn_cxx_try_link "$LINENO"; then :
20724 lt_aix_libpath_sed='
20725 /Import File Strings/,/^$/ {
20726 /^0/ {
20727 s/^0 *\(.*\)$/\1/
20731 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20732 # Check for a 64-bit object if we didn't find anything.
20733 if test -z "$aix_libpath"; then
20734 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20737 rm -f core conftest.err conftest.$ac_objext \
20738 conftest$ac_exeext conftest.$ac_ext
20739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20742 # Warning - without using the other run time loading flags,
20743 # -berok will link without error, but may produce a broken library.
20744 no_undefined_flag_CXX=' ${wl}-bernotok'
20745 allow_undefined_flag_CXX=' ${wl}-berok'
20746 if test "$with_gnu_ld" = yes; then
20747 # We only use this code for GNU lds that support --whole-archive.
20748 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20749 else
20750 # Exported symbols can be pulled into shared objects from archives
20751 whole_archive_flag_spec_CXX='$convenience'
20753 archive_cmds_need_lc_CXX=yes
20754 # This is similar to how AIX traditionally builds its shared
20755 # libraries.
20756 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'
20761 beos*)
20762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20763 allow_undefined_flag_CXX=unsupported
20764 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20765 # support --undefined. This deserves some investigation. FIXME
20766 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20767 else
20768 ld_shlibs_CXX=no
20772 chorus*)
20773 case $cc_basename in
20775 # FIXME: insert proper C++ library support
20776 ld_shlibs_CXX=no
20778 esac
20781 cygwin* | mingw* | pw32* | cegcc*)
20782 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20783 # as there is no search path for DLLs.
20784 hardcode_libdir_flag_spec_CXX='-L$libdir'
20785 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20786 allow_undefined_flag_CXX=unsupported
20787 always_export_symbols_CXX=no
20788 enable_shared_with_static_runtimes_CXX=yes
20790 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20791 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'
20792 # If the export-symbols file already is a .def file (1st line
20793 # is EXPORTS), use it as is; otherwise, prepend...
20794 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20795 cp $export_symbols $output_objdir/$soname.def;
20796 else
20797 echo EXPORTS > $output_objdir/$soname.def;
20798 cat $export_symbols >> $output_objdir/$soname.def;
20800 $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'
20801 else
20802 ld_shlibs_CXX=no
20805 darwin* | rhapsody*)
20808 archive_cmds_need_lc_CXX=no
20809 hardcode_direct_CXX=no
20810 hardcode_automatic_CXX=yes
20811 hardcode_shlibpath_var_CXX=unsupported
20812 if test "$lt_cv_ld_force_load" = "yes"; then
20813 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\"`'
20814 else
20815 whole_archive_flag_spec_CXX=''
20817 link_all_deplibs_CXX=yes
20818 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20819 case $cc_basename in
20820 ifort*) _lt_dar_can_shared=yes ;;
20821 *) _lt_dar_can_shared=$GCC ;;
20822 esac
20823 if test "$_lt_dar_can_shared" = "yes"; then
20824 output_verbose_link_cmd=func_echo_all
20825 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}"
20826 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20827 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}"
20828 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}"
20829 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20830 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}"
20831 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}"
20834 else
20835 ld_shlibs_CXX=no
20840 dgux*)
20841 case $cc_basename in
20842 ec++*)
20843 # FIXME: insert proper C++ library support
20844 ld_shlibs_CXX=no
20846 ghcx*)
20847 # Green Hills C++ Compiler
20848 # FIXME: insert proper C++ library support
20849 ld_shlibs_CXX=no
20852 # FIXME: insert proper C++ library support
20853 ld_shlibs_CXX=no
20855 esac
20858 freebsd2.*)
20859 # C++ shared libraries reported to be fairly broken before
20860 # switch to ELF
20861 ld_shlibs_CXX=no
20864 freebsd-elf*)
20865 archive_cmds_need_lc_CXX=no
20868 freebsd* | dragonfly*)
20869 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20870 # conventions
20871 ld_shlibs_CXX=yes
20874 gnu*)
20877 haiku*)
20878 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20879 link_all_deplibs_CXX=yes
20882 hpux9*)
20883 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20884 hardcode_libdir_separator_CXX=:
20885 export_dynamic_flag_spec_CXX='${wl}-E'
20886 hardcode_direct_CXX=yes
20887 hardcode_minus_L_CXX=yes # Not in the search PATH,
20888 # but as the default
20889 # location of the library.
20891 case $cc_basename in
20892 CC*)
20893 # FIXME: insert proper C++ library support
20894 ld_shlibs_CXX=no
20896 aCC*)
20897 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'
20898 # Commands to make compiler produce verbose output that lists
20899 # what "hidden" libraries, object files and flags are used when
20900 # linking a shared library.
20902 # There doesn't appear to be a way to prevent this compiler from
20903 # explicitly linking system object files so we need to strip them
20904 # from the output so that they don't get included in the library
20905 # dependencies.
20906 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"'
20909 if test "$GXX" = yes; then
20910 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'
20911 else
20912 # FIXME: insert proper C++ library support
20913 ld_shlibs_CXX=no
20916 esac
20919 hpux10*|hpux11*)
20920 if test $with_gnu_ld = no; then
20921 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20922 hardcode_libdir_separator_CXX=:
20924 case $host_cpu in
20925 hppa*64*|ia64*)
20928 export_dynamic_flag_spec_CXX='${wl}-E'
20930 esac
20932 case $host_cpu in
20933 hppa*64*|ia64*)
20934 hardcode_direct_CXX=no
20935 hardcode_shlibpath_var_CXX=no
20938 hardcode_direct_CXX=yes
20939 hardcode_direct_absolute_CXX=yes
20940 hardcode_minus_L_CXX=yes # Not in the search PATH,
20941 # but as the default
20942 # location of the library.
20944 esac
20946 case $cc_basename in
20947 CC*)
20948 # FIXME: insert proper C++ library support
20949 ld_shlibs_CXX=no
20951 aCC*)
20952 case $host_cpu in
20953 hppa*64*)
20954 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20956 ia64*)
20957 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20962 esac
20963 # Commands to make compiler produce verbose output that lists
20964 # what "hidden" libraries, object files and flags are used when
20965 # linking a shared library.
20967 # There doesn't appear to be a way to prevent this compiler from
20968 # explicitly linking system object files so we need to strip them
20969 # from the output so that they don't get included in the library
20970 # dependencies.
20971 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"'
20974 if test "$GXX" = yes; then
20975 if test $with_gnu_ld = no; then
20976 case $host_cpu in
20977 hppa*64*)
20978 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20980 ia64*)
20981 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20984 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'
20986 esac
20988 else
20989 # FIXME: insert proper C++ library support
20990 ld_shlibs_CXX=no
20993 esac
20996 interix[3-9]*)
20997 hardcode_direct_CXX=no
20998 hardcode_shlibpath_var_CXX=no
20999 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21000 export_dynamic_flag_spec_CXX='${wl}-E'
21001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21002 # Instead, shared libraries are loaded at an image base (0x10000000 by
21003 # default) and relocated if they conflict, which is a slow very memory
21004 # consuming and fragmenting process. To avoid this, we pick a random,
21005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21007 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'
21008 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'
21010 irix5* | irix6*)
21011 case $cc_basename in
21012 CC*)
21013 # SGI C++
21014 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'
21016 # Archives containing C++ object files must be created using
21017 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21018 # necessary to make sure instantiated templates are included
21019 # in the archive.
21020 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21023 if test "$GXX" = yes; then
21024 if test "$with_gnu_ld" = no; then
21025 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'
21026 else
21027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
21030 link_all_deplibs_CXX=yes
21032 esac
21033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21034 hardcode_libdir_separator_CXX=:
21035 inherit_rpath_CXX=yes
21038 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21039 case $cc_basename in
21040 KCC*)
21041 # Kuck and Associates, Inc. (KAI) C++ Compiler
21043 # KCC will only create a shared library if the output file
21044 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21045 # to its proper name (with version) after linking.
21046 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'
21047 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'
21048 # Commands to make compiler produce verbose output that lists
21049 # what "hidden" libraries, object files and flags are used when
21050 # linking a shared library.
21052 # There doesn't appear to be a way to prevent this compiler from
21053 # explicitly linking system object files so we need to strip them
21054 # from the output so that they don't get included in the library
21055 # dependencies.
21056 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"'
21058 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21061 # Archives containing C++ object files must be created using
21062 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21063 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21065 icpc* | ecpc* )
21066 # Intel C++
21067 with_gnu_ld=yes
21068 # version 8.0 and above of icpc choke on multiply defined symbols
21069 # if we add $predep_objects and $postdep_objects, however 7.1 and
21070 # earlier do not add the objects themselves.
21071 case `$CC -V 2>&1` in
21072 *"Version 7."*)
21073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21074 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'
21076 *) # Version 8.0 or newer
21077 tmp_idyn=
21078 case $host_cpu in
21079 ia64*) tmp_idyn=' -i_dynamic';;
21080 esac
21081 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21082 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'
21084 esac
21085 archive_cmds_need_lc_CXX=no
21086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21088 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21090 pgCC* | pgcpp*)
21091 # Portland Group C++ compiler
21092 case `$CC -V` in
21093 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21094 prelink_cmds_CXX='tpldir=Template.dir~
21095 rm -rf $tpldir~
21096 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21097 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21098 old_archive_cmds_CXX='tpldir=Template.dir~
21099 rm -rf $tpldir~
21100 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21101 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21102 $RANLIB $oldlib'
21103 archive_cmds_CXX='tpldir=Template.dir~
21104 rm -rf $tpldir~
21105 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21106 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21107 archive_expsym_cmds_CXX='tpldir=Template.dir~
21108 rm -rf $tpldir~
21109 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21110 $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'
21112 *) # Version 6 and above use weak symbols
21113 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21114 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'
21116 esac
21118 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21120 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'
21122 cxx*)
21123 # Compaq C++
21124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21125 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'
21127 runpath_var=LD_RUN_PATH
21128 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21129 hardcode_libdir_separator_CXX=:
21131 # Commands to make compiler produce verbose output that lists
21132 # what "hidden" libraries, object files and flags are used when
21133 # linking a shared library.
21135 # There doesn't appear to be a way to prevent this compiler from
21136 # explicitly linking system object files so we need to strip them
21137 # from the output so that they don't get included in the library
21138 # dependencies.
21139 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'
21141 xl* | mpixl* | bgxl*)
21142 # IBM XL 8.0 on PPC, with GNU ld
21143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21144 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21145 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21146 if test "x$supports_anon_versioning" = xyes; then
21147 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21149 echo "local: *; };" >> $output_objdir/$libname.ver~
21150 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21154 case `$CC -V 2>&1 | sed 5q` in
21155 *Sun\ C*)
21156 # Sun C++ 5.9
21157 no_undefined_flag_CXX=' -zdefs'
21158 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21159 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'
21160 hardcode_libdir_flag_spec_CXX='-R$libdir'
21161 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'
21162 compiler_needs_object_CXX=yes
21164 # Not sure whether something based on
21165 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21166 # would be better.
21167 output_verbose_link_cmd='func_echo_all'
21169 # Archives containing C++ object files must be created using
21170 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21171 # necessary to make sure instantiated templates are included
21172 # in the archive.
21173 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21175 esac
21177 esac
21180 lynxos*)
21181 # FIXME: insert proper C++ library support
21182 ld_shlibs_CXX=no
21185 m88k*)
21186 # FIXME: insert proper C++ library support
21187 ld_shlibs_CXX=no
21190 mvs*)
21191 case $cc_basename in
21192 cxx*)
21193 # FIXME: insert proper C++ library support
21194 ld_shlibs_CXX=no
21197 # FIXME: insert proper C++ library support
21198 ld_shlibs_CXX=no
21200 esac
21203 netbsd*)
21204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21205 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21206 wlarc=
21207 hardcode_libdir_flag_spec_CXX='-R$libdir'
21208 hardcode_direct_CXX=yes
21209 hardcode_shlibpath_var_CXX=no
21211 # Workaround some broken pre-1.5 toolchains
21212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21215 *nto* | *qnx*)
21216 ld_shlibs_CXX=yes
21219 openbsd2*)
21220 # C++ shared libraries are fairly broken
21221 ld_shlibs_CXX=no
21224 openbsd*)
21225 if test -f /usr/libexec/ld.so; then
21226 hardcode_direct_CXX=yes
21227 hardcode_shlibpath_var_CXX=no
21228 hardcode_direct_absolute_CXX=yes
21229 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21232 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21233 export_dynamic_flag_spec_CXX='${wl}-E'
21234 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21236 output_verbose_link_cmd=func_echo_all
21237 else
21238 ld_shlibs_CXX=no
21242 osf3* | osf4* | osf5*)
21243 case $cc_basename in
21244 KCC*)
21245 # Kuck and Associates, Inc. (KAI) C++ Compiler
21247 # KCC will only create a shared library if the output file
21248 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21249 # to its proper name (with version) after linking.
21250 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'
21252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21253 hardcode_libdir_separator_CXX=:
21255 # Archives containing C++ object files must be created using
21256 # the KAI C++ compiler.
21257 case $host in
21258 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21259 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21260 esac
21262 RCC*)
21263 # Rational C++ 2.4.1
21264 # FIXME: insert proper C++ library support
21265 ld_shlibs_CXX=no
21267 cxx*)
21268 case $host in
21269 osf3*)
21270 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21271 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'
21272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21275 allow_undefined_flag_CXX=' -expect_unresolved \*'
21276 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'
21277 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21278 echo "-hidden">> $lib.exp~
21279 $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~
21280 $RM $lib.exp'
21281 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21283 esac
21285 hardcode_libdir_separator_CXX=:
21287 # Commands to make compiler produce verbose output that lists
21288 # what "hidden" libraries, object files and flags are used when
21289 # linking a shared library.
21291 # There doesn't appear to be a way to prevent this compiler from
21292 # explicitly linking system object files so we need to strip them
21293 # from the output so that they don't get included in the library
21294 # dependencies.
21295 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"'
21298 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21299 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21300 case $host in
21301 osf3*)
21302 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'
21305 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'
21307 esac
21309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21310 hardcode_libdir_separator_CXX=:
21312 # Commands to make compiler produce verbose output that lists
21313 # what "hidden" libraries, object files and flags are used when
21314 # linking a shared library.
21315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21317 else
21318 # FIXME: insert proper C++ library support
21319 ld_shlibs_CXX=no
21322 esac
21325 psos*)
21326 # FIXME: insert proper C++ library support
21327 ld_shlibs_CXX=no
21330 sunos4*)
21331 case $cc_basename in
21332 CC*)
21333 # Sun C++ 4.x
21334 # FIXME: insert proper C++ library support
21335 ld_shlibs_CXX=no
21337 lcc*)
21338 # Lucid
21339 # FIXME: insert proper C++ library support
21340 ld_shlibs_CXX=no
21343 # FIXME: insert proper C++ library support
21344 ld_shlibs_CXX=no
21346 esac
21349 solaris*)
21350 case $cc_basename in
21351 CC*)
21352 # Sun C++ 4.2, 5.x and Centerline C++
21353 archive_cmds_need_lc_CXX=yes
21354 no_undefined_flag_CXX=' -zdefs'
21355 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21356 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21357 $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'
21359 hardcode_libdir_flag_spec_CXX='-R$libdir'
21360 hardcode_shlibpath_var_CXX=no
21361 case $host_os in
21362 solaris2.[0-5] | solaris2.[0-5].*) ;;
21364 # The compiler driver will combine and reorder linker options,
21365 # but understands `-z linker_flag'.
21366 # Supported since Solaris 2.6 (maybe 2.5.1?)
21367 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21369 esac
21370 link_all_deplibs_CXX=yes
21372 output_verbose_link_cmd='func_echo_all'
21374 # Archives containing C++ object files must be created using
21375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21376 # necessary to make sure instantiated templates are included
21377 # in the archive.
21378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21380 gcx*)
21381 # Green Hills C++ Compiler
21382 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21384 # The C++ compiler must be used to create the archive.
21385 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21388 # GNU C++ compiler with Solaris linker
21389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21390 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21391 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21392 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21393 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21394 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21396 # Commands to make compiler produce verbose output that lists
21397 # what "hidden" libraries, object files and flags are used when
21398 # linking a shared library.
21399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21400 else
21401 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21402 # platform.
21403 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21405 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21407 # Commands to make compiler produce verbose output that lists
21408 # what "hidden" libraries, object files and flags are used when
21409 # linking a shared library.
21410 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21413 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21414 case $host_os in
21415 solaris2.[0-5] | solaris2.[0-5].*) ;;
21417 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21419 esac
21422 esac
21425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21426 no_undefined_flag_CXX='${wl}-z,text'
21427 archive_cmds_need_lc_CXX=no
21428 hardcode_shlibpath_var_CXX=no
21429 runpath_var='LD_RUN_PATH'
21431 case $cc_basename in
21432 CC*)
21433 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21434 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21437 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21438 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21440 esac
21443 sysv5* | sco3.2v5* | sco5v6*)
21444 # Note: We can NOT use -z defs as we might desire, because we do not
21445 # link with -lc, and that would cause any symbols used from libc to
21446 # always be unresolved, which means just about no library would
21447 # ever link correctly. If we're not using GNU ld we use -z text
21448 # though, which does catch some bad symbols but isn't as heavy-handed
21449 # as -z defs.
21450 no_undefined_flag_CXX='${wl}-z,text'
21451 allow_undefined_flag_CXX='${wl}-z,nodefs'
21452 archive_cmds_need_lc_CXX=no
21453 hardcode_shlibpath_var_CXX=no
21454 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21455 hardcode_libdir_separator_CXX=':'
21456 link_all_deplibs_CXX=yes
21457 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21458 runpath_var='LD_RUN_PATH'
21460 case $cc_basename in
21461 CC*)
21462 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21464 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21465 '"$old_archive_cmds_CXX"
21466 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21467 '"$reload_cmds_CXX"
21470 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21471 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21473 esac
21476 tandem*)
21477 case $cc_basename in
21478 NCC*)
21479 # NonStop-UX NCC 3.20
21480 # FIXME: insert proper C++ library support
21481 ld_shlibs_CXX=no
21484 # FIXME: insert proper C++ library support
21485 ld_shlibs_CXX=no
21487 esac
21490 vxworks*)
21491 # For VxWorks ports, we assume the use of a GNU linker with
21492 # standard elf conventions.
21493 ld_shlibs_CXX=yes
21497 # FIXME: insert proper C++ library support
21498 ld_shlibs_CXX=no
21500 esac
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21503 $as_echo "$ld_shlibs_CXX" >&6; }
21504 test "$ld_shlibs_CXX" = no && can_build_shared=no
21506 GCC_CXX="$GXX"
21507 LD_CXX="$LD"
21509 ## CAVEAT EMPTOR:
21510 ## There is no encapsulation within the following macros, do not change
21511 ## the running order or otherwise move them around unless you know exactly
21512 ## what you are doing...
21513 # Dependencies to place before and after the object being linked:
21514 predep_objects_CXX=
21515 postdep_objects_CXX=
21516 predeps_CXX=
21517 postdeps_CXX=
21518 compiler_lib_search_path_CXX=
21520 cat > conftest.$ac_ext <<_LT_EOF
21521 class Foo
21523 public:
21524 Foo (void) { a = 0; }
21525 private:
21526 int a;
21528 _LT_EOF
21530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21531 (eval $ac_compile) 2>&5
21532 ac_status=$?
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; }; then
21535 # Parse the compiler output and extract the necessary
21536 # objects, libraries and library flags.
21538 # Sentinel used to keep track of whether or not we are before
21539 # the conftest object file.
21540 pre_test_object_deps_done=no
21542 for p in `eval "$output_verbose_link_cmd"`; do
21543 case $p in
21545 -L* | -R* | -l*)
21546 # Some compilers place space between "-{L,R}" and the path.
21547 # Remove the space.
21548 if test $p = "-L" ||
21549 test $p = "-R"; then
21550 prev=$p
21551 continue
21552 else
21553 prev=
21556 if test "$pre_test_object_deps_done" = no; then
21557 case $p in
21558 -L* | -R*)
21559 # Internal compiler library paths should come after those
21560 # provided the user. The postdeps already come after the
21561 # user supplied libs so there is no need to process them.
21562 if test -z "$compiler_lib_search_path_CXX"; then
21563 compiler_lib_search_path_CXX="${prev}${p}"
21564 else
21565 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21568 # The "-l" case would never come before the object being
21569 # linked, so don't bother handling this case.
21570 esac
21571 else
21572 if test -z "$postdeps_CXX"; then
21573 postdeps_CXX="${prev}${p}"
21574 else
21575 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21580 *.$objext)
21581 # This assumes that the test object file only shows up
21582 # once in the compiler output.
21583 if test "$p" = "conftest.$objext"; then
21584 pre_test_object_deps_done=yes
21585 continue
21588 if test "$pre_test_object_deps_done" = no; then
21589 if test -z "$predep_objects_CXX"; then
21590 predep_objects_CXX="$p"
21591 else
21592 predep_objects_CXX="$predep_objects_CXX $p"
21594 else
21595 if test -z "$postdep_objects_CXX"; then
21596 postdep_objects_CXX="$p"
21597 else
21598 postdep_objects_CXX="$postdep_objects_CXX $p"
21603 *) ;; # Ignore the rest.
21605 esac
21606 done
21608 # Clean up.
21609 rm -f a.out a.exe
21610 else
21611 echo "libtool.m4: error: problem compiling CXX test program"
21614 $RM -f confest.$objext
21616 # PORTME: override above test on systems where it is broken
21617 case $host_os in
21618 interix[3-9]*)
21619 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21620 # hack all around it, let's just trust "g++" to DTRT.
21621 predep_objects_CXX=
21622 postdep_objects_CXX=
21623 postdeps_CXX=
21626 linux*)
21627 case `$CC -V 2>&1 | sed 5q` in
21628 *Sun\ C*)
21629 # Sun C++ 5.9
21631 # The more standards-conforming stlport4 library is
21632 # incompatible with the Cstd library. Avoid specifying
21633 # it if it's in CXXFLAGS. Ignore libCrun as
21634 # -library=stlport4 depends on it.
21635 case " $CXX $CXXFLAGS " in
21636 *" -library=stlport4 "*)
21637 solaris_use_stlport4=yes
21639 esac
21641 if test "$solaris_use_stlport4" != yes; then
21642 postdeps_CXX='-library=Cstd -library=Crun'
21645 esac
21648 solaris*)
21649 case $cc_basename in
21650 CC*)
21651 # The more standards-conforming stlport4 library is
21652 # incompatible with the Cstd library. Avoid specifying
21653 # it if it's in CXXFLAGS. Ignore libCrun as
21654 # -library=stlport4 depends on it.
21655 case " $CXX $CXXFLAGS " in
21656 *" -library=stlport4 "*)
21657 solaris_use_stlport4=yes
21659 esac
21661 # Adding this requires a known-good setup of shared libraries for
21662 # Sun compiler versions before 5.6, else PIC objects from an old
21663 # archive will be linked into the output, leading to subtle bugs.
21664 if test "$solaris_use_stlport4" != yes; then
21665 postdeps_CXX='-library=Cstd -library=Crun'
21668 esac
21670 esac
21673 case " $postdeps_CXX " in
21674 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21675 esac
21676 compiler_lib_search_dirs_CXX=
21677 if test -n "${compiler_lib_search_path_CXX}"; then
21678 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21711 lt_prog_compiler_wl_CXX=
21712 lt_prog_compiler_pic_CXX=
21713 lt_prog_compiler_static_CXX=
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21716 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21718 # C++ specific cases for pic, static, wl, etc.
21719 if test "$GXX" = yes; then
21720 lt_prog_compiler_wl_CXX='-Wl,'
21721 lt_prog_compiler_static_CXX='-static'
21723 case $host_os in
21724 aix*)
21725 # All AIX code is PIC.
21726 if test "$host_cpu" = ia64; then
21727 # AIX 5 now supports IA64 processor
21728 lt_prog_compiler_static_CXX='-Bstatic'
21730 lt_prog_compiler_pic_CXX='-fPIC'
21733 amigaos*)
21734 case $host_cpu in
21735 powerpc)
21736 # see comment about AmigaOS4 .so support
21737 lt_prog_compiler_pic_CXX='-fPIC'
21739 m68k)
21740 # FIXME: we need at least 68020 code to build shared libraries, but
21741 # adding the `-m68020' flag to GCC prevents building anything better,
21742 # like `-m68040'.
21743 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21745 esac
21748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21749 # PIC is the default for these OSes.
21751 mingw* | cygwin* | os2* | pw32* | cegcc*)
21752 # This hack is so that the source file can tell whether it is being
21753 # built for inclusion in a dll (and should export symbols for example).
21754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21755 # (--disable-auto-import) libraries
21756 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21758 darwin* | rhapsody*)
21759 # PIC is the default on this platform
21760 # Common symbols not allowed in MH_DYLIB files
21761 lt_prog_compiler_pic_CXX='-fno-common'
21763 *djgpp*)
21764 # DJGPP does not support shared libraries at all
21765 lt_prog_compiler_pic_CXX=
21767 haiku*)
21768 # PIC is the default for Haiku.
21769 # The "-static" flag exists, but is broken.
21770 lt_prog_compiler_static_CXX=
21772 interix[3-9]*)
21773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21774 # Instead, we relocate shared libraries at runtime.
21776 sysv4*MP*)
21777 if test -d /usr/nec; then
21778 lt_prog_compiler_pic_CXX=-Kconform_pic
21781 hpux*)
21782 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21783 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21784 # sets the default TLS model and affects inlining.
21785 case $host_cpu in
21786 hppa*64*)
21789 lt_prog_compiler_pic_CXX='-fPIC'
21791 esac
21793 *qnx* | *nto*)
21794 # QNX uses GNU C++, but need to define -shared option too, otherwise
21795 # it will coredump.
21796 lt_prog_compiler_pic_CXX='-fPIC -shared'
21799 lt_prog_compiler_pic_CXX='-fPIC'
21801 esac
21802 else
21803 case $host_os in
21804 aix[4-9]*)
21805 # All AIX code is PIC.
21806 if test "$host_cpu" = ia64; then
21807 # AIX 5 now supports IA64 processor
21808 lt_prog_compiler_static_CXX='-Bstatic'
21809 else
21810 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21813 chorus*)
21814 case $cc_basename in
21815 cxch68*)
21816 # Green Hills C++ Compiler
21817 # _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"
21819 esac
21821 dgux*)
21822 case $cc_basename in
21823 ec++*)
21824 lt_prog_compiler_pic_CXX='-KPIC'
21826 ghcx*)
21827 # Green Hills C++ Compiler
21828 lt_prog_compiler_pic_CXX='-pic'
21832 esac
21834 freebsd* | dragonfly*)
21835 # FreeBSD uses GNU C++
21837 hpux9* | hpux10* | hpux11*)
21838 case $cc_basename in
21839 CC*)
21840 lt_prog_compiler_wl_CXX='-Wl,'
21841 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21842 if test "$host_cpu" != ia64; then
21843 lt_prog_compiler_pic_CXX='+Z'
21846 aCC*)
21847 lt_prog_compiler_wl_CXX='-Wl,'
21848 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21849 case $host_cpu in
21850 hppa*64*|ia64*)
21851 # +Z the default
21854 lt_prog_compiler_pic_CXX='+Z'
21856 esac
21860 esac
21862 interix*)
21863 # This is c89, which is MS Visual C++ (no shared libs)
21864 # Anyone wants to do a port?
21866 irix5* | irix6* | nonstopux*)
21867 case $cc_basename in
21868 CC*)
21869 lt_prog_compiler_wl_CXX='-Wl,'
21870 lt_prog_compiler_static_CXX='-non_shared'
21871 # CC pic flag -KPIC is the default.
21875 esac
21877 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21878 case $cc_basename in
21879 KCC*)
21880 # KAI C++ Compiler
21881 lt_prog_compiler_wl_CXX='--backend -Wl,'
21882 lt_prog_compiler_pic_CXX='-fPIC'
21884 ecpc* )
21885 # old Intel C++ for x86_64 which still supported -KPIC.
21886 lt_prog_compiler_wl_CXX='-Wl,'
21887 lt_prog_compiler_pic_CXX='-KPIC'
21888 lt_prog_compiler_static_CXX='-static'
21890 icpc* )
21891 # Intel C++, used to be incompatible with GCC.
21892 # ICC 10 doesn't accept -KPIC any more.
21893 lt_prog_compiler_wl_CXX='-Wl,'
21894 lt_prog_compiler_pic_CXX='-fPIC'
21895 lt_prog_compiler_static_CXX='-static'
21897 pgCC* | pgcpp*)
21898 # Portland Group C++ compiler
21899 lt_prog_compiler_wl_CXX='-Wl,'
21900 lt_prog_compiler_pic_CXX='-fpic'
21901 lt_prog_compiler_static_CXX='-Bstatic'
21903 cxx*)
21904 # Compaq C++
21905 # Make sure the PIC flag is empty. It appears that all Alpha
21906 # Linux and Compaq Tru64 Unix objects are PIC.
21907 lt_prog_compiler_pic_CXX=
21908 lt_prog_compiler_static_CXX='-non_shared'
21910 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21911 # IBM XL 8.0, 9.0 on PPC and BlueGene
21912 lt_prog_compiler_wl_CXX='-Wl,'
21913 lt_prog_compiler_pic_CXX='-qpic'
21914 lt_prog_compiler_static_CXX='-qstaticlink'
21917 case `$CC -V 2>&1 | sed 5q` in
21918 *Sun\ C*)
21919 # Sun C++ 5.9
21920 lt_prog_compiler_pic_CXX='-KPIC'
21921 lt_prog_compiler_static_CXX='-Bstatic'
21922 lt_prog_compiler_wl_CXX='-Qoption ld '
21924 esac
21926 esac
21928 lynxos*)
21930 m88k*)
21932 mvs*)
21933 case $cc_basename in
21934 cxx*)
21935 lt_prog_compiler_pic_CXX='-W c,exportall'
21939 esac
21941 netbsd*)
21943 *qnx* | *nto*)
21944 # QNX uses GNU C++, but need to define -shared option too, otherwise
21945 # it will coredump.
21946 lt_prog_compiler_pic_CXX='-fPIC -shared'
21948 osf3* | osf4* | osf5*)
21949 case $cc_basename in
21950 KCC*)
21951 lt_prog_compiler_wl_CXX='--backend -Wl,'
21953 RCC*)
21954 # Rational C++ 2.4.1
21955 lt_prog_compiler_pic_CXX='-pic'
21957 cxx*)
21958 # Digital/Compaq C++
21959 lt_prog_compiler_wl_CXX='-Wl,'
21960 # Make sure the PIC flag is empty. It appears that all Alpha
21961 # Linux and Compaq Tru64 Unix objects are PIC.
21962 lt_prog_compiler_pic_CXX=
21963 lt_prog_compiler_static_CXX='-non_shared'
21967 esac
21969 psos*)
21971 solaris*)
21972 case $cc_basename in
21973 CC*)
21974 # Sun C++ 4.2, 5.x and Centerline C++
21975 lt_prog_compiler_pic_CXX='-KPIC'
21976 lt_prog_compiler_static_CXX='-Bstatic'
21977 lt_prog_compiler_wl_CXX='-Qoption ld '
21979 gcx*)
21980 # Green Hills C++ Compiler
21981 lt_prog_compiler_pic_CXX='-PIC'
21985 esac
21987 sunos4*)
21988 case $cc_basename in
21989 CC*)
21990 # Sun C++ 4.x
21991 lt_prog_compiler_pic_CXX='-pic'
21992 lt_prog_compiler_static_CXX='-Bstatic'
21994 lcc*)
21995 # Lucid
21996 lt_prog_compiler_pic_CXX='-pic'
22000 esac
22002 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22003 case $cc_basename in
22004 CC*)
22005 lt_prog_compiler_wl_CXX='-Wl,'
22006 lt_prog_compiler_pic_CXX='-KPIC'
22007 lt_prog_compiler_static_CXX='-Bstatic'
22009 esac
22011 tandem*)
22012 case $cc_basename in
22013 NCC*)
22014 # NonStop-UX NCC 3.20
22015 lt_prog_compiler_pic_CXX='-KPIC'
22019 esac
22021 vxworks*)
22024 lt_prog_compiler_can_build_shared_CXX=no
22026 esac
22029 case $host_os in
22030 # For platforms which do not support PIC, -DPIC is meaningless:
22031 *djgpp*)
22032 lt_prog_compiler_pic_CXX=
22035 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22037 esac
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22039 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22044 # Check to make sure the PIC flag actually works.
22046 if test -n "$lt_prog_compiler_pic_CXX"; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22049 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 lt_cv_prog_compiler_pic_works_CXX=no
22053 ac_outfile=conftest.$ac_objext
22054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22055 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22056 # Insert the option either (1) after the last *FLAGS variable, or
22057 # (2) before a word containing "conftest.", or (3) at the end.
22058 # Note that $ac_compile itself does not contain backslashes and begins
22059 # with a dollar sign (not a hyphen), so the echo should work correctly.
22060 # The option is referenced via a variable to avoid confusing sed.
22061 lt_compile=`echo "$ac_compile" | $SED \
22062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22064 -e 's:$: $lt_compiler_flag:'`
22065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22066 (eval "$lt_compile" 2>conftest.err)
22067 ac_status=$?
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 if (exit $ac_status) && test -s "$ac_outfile"; then
22071 # The compiler can only warn and ignore the option if not recognized
22072 # So say no if there are warnings other than the usual output.
22073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22076 lt_cv_prog_compiler_pic_works_CXX=yes
22079 $RM conftest*
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22083 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22085 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22086 case $lt_prog_compiler_pic_CXX in
22087 "" | " "*) ;;
22088 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22089 esac
22090 else
22091 lt_prog_compiler_pic_CXX=
22092 lt_prog_compiler_can_build_shared_CXX=no
22100 # Check to make sure the static flag actually works.
22102 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22105 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22106 $as_echo_n "(cached) " >&6
22107 else
22108 lt_cv_prog_compiler_static_works_CXX=no
22109 save_LDFLAGS="$LDFLAGS"
22110 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22113 # The linker can only warn and ignore the option if not recognized
22114 # So say no if there are warnings
22115 if test -s conftest.err; then
22116 # Append any errors to the config.log.
22117 cat conftest.err 1>&5
22118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22120 if diff conftest.exp conftest.er2 >/dev/null; then
22121 lt_cv_prog_compiler_static_works_CXX=yes
22123 else
22124 lt_cv_prog_compiler_static_works_CXX=yes
22127 $RM -r conftest*
22128 LDFLAGS="$save_LDFLAGS"
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22132 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22134 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22136 else
22137 lt_prog_compiler_static_CXX=
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22145 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22146 $as_echo_n "(cached) " >&6
22147 else
22148 lt_cv_prog_compiler_c_o_CXX=no
22149 $RM -r conftest 2>/dev/null
22150 mkdir conftest
22151 cd conftest
22152 mkdir out
22153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22155 lt_compiler_flag="-o out/conftest2.$ac_objext"
22156 # Insert the option either (1) after the last *FLAGS variable, or
22157 # (2) before a word containing "conftest.", or (3) at the end.
22158 # Note that $ac_compile itself does not contain backslashes and begins
22159 # with a dollar sign (not a hyphen), so the echo should work correctly.
22160 lt_compile=`echo "$ac_compile" | $SED \
22161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22163 -e 's:$: $lt_compiler_flag:'`
22164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22165 (eval "$lt_compile" 2>out/conftest.err)
22166 ac_status=$?
22167 cat out/conftest.err >&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22170 then
22171 # The compiler can only warn and ignore the option if not recognized
22172 # So say no if there are warnings
22173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22176 lt_cv_prog_compiler_c_o_CXX=yes
22179 chmod u+w . 2>&5
22180 $RM conftest*
22181 # SGI C++ compiler will create directory out/ii_files/ for
22182 # template instantiation
22183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22184 $RM out/* && rmdir out
22185 cd ..
22186 $RM -r conftest
22187 $RM conftest*
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22191 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22197 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22198 $as_echo_n "(cached) " >&6
22199 else
22200 lt_cv_prog_compiler_c_o_CXX=no
22201 $RM -r conftest 2>/dev/null
22202 mkdir conftest
22203 cd conftest
22204 mkdir out
22205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22207 lt_compiler_flag="-o out/conftest2.$ac_objext"
22208 # Insert the option either (1) after the last *FLAGS variable, or
22209 # (2) before a word containing "conftest.", or (3) at the end.
22210 # Note that $ac_compile itself does not contain backslashes and begins
22211 # with a dollar sign (not a hyphen), so the echo should work correctly.
22212 lt_compile=`echo "$ac_compile" | $SED \
22213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22215 -e 's:$: $lt_compiler_flag:'`
22216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22217 (eval "$lt_compile" 2>out/conftest.err)
22218 ac_status=$?
22219 cat out/conftest.err >&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22222 then
22223 # The compiler can only warn and ignore the option if not recognized
22224 # So say no if there are warnings
22225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22228 lt_cv_prog_compiler_c_o_CXX=yes
22231 chmod u+w . 2>&5
22232 $RM conftest*
22233 # SGI C++ compiler will create directory out/ii_files/ for
22234 # template instantiation
22235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22236 $RM out/* && rmdir out
22237 cd ..
22238 $RM -r conftest
22239 $RM conftest*
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22243 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22248 hard_links="nottested"
22249 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22250 # do not overwrite the value of need_locks provided by the user
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22252 $as_echo_n "checking if we can lock with hard links... " >&6; }
22253 hard_links=yes
22254 $RM conftest*
22255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22256 touch conftest.a
22257 ln conftest.a conftest.b 2>&5 || hard_links=no
22258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22260 $as_echo "$hard_links" >&6; }
22261 if test "$hard_links" = no; then
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22263 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22264 need_locks=warn
22266 else
22267 need_locks=no
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22275 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22276 case $host_os in
22277 aix[4-9]*)
22278 # If we're using GNU nm, then we don't want the "-C" option.
22279 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22280 # Also, AIX nm treats weak defined symbols like other global defined
22281 # symbols, whereas GNU nm marks them as "W".
22282 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22283 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'
22284 else
22285 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'
22288 pw32*)
22289 export_symbols_cmds_CXX="$ltdll_cmds"
22291 cygwin* | mingw* | cegcc*)
22292 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'
22295 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22297 esac
22298 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22301 $as_echo "$ld_shlibs_CXX" >&6; }
22302 test "$ld_shlibs_CXX" = no && can_build_shared=no
22304 with_gnu_ld_CXX=$with_gnu_ld
22312 # Do we need to explicitly link libc?
22314 case "x$archive_cmds_need_lc_CXX" in
22315 x|xyes)
22316 # Assume -lc should be added
22317 archive_cmds_need_lc_CXX=yes
22319 if test "$enable_shared" = yes && test "$GCC" = yes; then
22320 case $archive_cmds_CXX in
22321 *'~'*)
22322 # FIXME: we may have to deal with multi-command sequences.
22324 '$CC '*)
22325 # Test whether the compiler implicitly links with -lc since on some
22326 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22327 # to ld, don't add -lc before -lgcc.
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22329 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22330 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22331 $as_echo_n "(cached) " >&6
22332 else
22333 $RM conftest*
22334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22337 (eval $ac_compile) 2>&5
22338 ac_status=$?
22339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22340 test $ac_status = 0; } 2>conftest.err; then
22341 soname=conftest
22342 lib=conftest
22343 libobjs=conftest.$ac_objext
22344 deplibs=
22345 wl=$lt_prog_compiler_wl_CXX
22346 pic_flag=$lt_prog_compiler_pic_CXX
22347 compiler_flags=-v
22348 linker_flags=-v
22349 verstring=
22350 output_objdir=.
22351 libname=conftest
22352 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22353 allow_undefined_flag_CXX=
22354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22355 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22356 ac_status=$?
22357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22358 test $ac_status = 0; }
22359 then
22360 lt_cv_archive_cmds_need_lc_CXX=no
22361 else
22362 lt_cv_archive_cmds_need_lc_CXX=yes
22364 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22365 else
22366 cat conftest.err 1>&5
22368 $RM conftest*
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22372 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22373 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22375 esac
22378 esac
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22444 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22446 library_names_spec=
22447 libname_spec='lib$name'
22448 soname_spec=
22449 shrext_cmds=".so"
22450 postinstall_cmds=
22451 postuninstall_cmds=
22452 finish_cmds=
22453 finish_eval=
22454 shlibpath_var=
22455 shlibpath_overrides_runpath=unknown
22456 version_type=none
22457 dynamic_linker="$host_os ld.so"
22458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22459 need_lib_prefix=unknown
22460 hardcode_into_libs=no
22462 # when you set need_version to no, make sure it does not cause -set_version
22463 # flags to be left without arguments
22464 need_version=unknown
22466 case $host_os in
22467 aix3*)
22468 version_type=linux
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22470 shlibpath_var=LIBPATH
22472 # AIX 3 has no versioning support, so we append a major version to the name.
22473 soname_spec='${libname}${release}${shared_ext}$major'
22476 aix[4-9]*)
22477 version_type=linux
22478 need_lib_prefix=no
22479 need_version=no
22480 hardcode_into_libs=yes
22481 if test "$host_cpu" = ia64; then
22482 # AIX 5 supports IA64
22483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 else
22486 # With GCC up to 2.95.x, collect2 would create an import file
22487 # for dependence libraries. The import file would start with
22488 # the line `#! .'. This would cause the generated library to
22489 # depend on `.', always an invalid library. This was fixed in
22490 # development snapshots of GCC prior to 3.0.
22491 case $host_os in
22492 aix4 | aix4.[01] | aix4.[01].*)
22493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22494 echo ' yes '
22495 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22497 else
22498 can_build_shared=no
22501 esac
22502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22503 # soname into executable. Probably we can add versioning support to
22504 # collect2, so additional links can be useful in future.
22505 if test "$aix_use_runtimelinking" = yes; then
22506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22507 # instead of lib<name>.a to let people know that these are not
22508 # typical AIX shared libraries.
22509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22510 else
22511 # We preserve .a as extension for shared libraries through AIX4.2
22512 # and later when we are not doing run time linking.
22513 library_names_spec='${libname}${release}.a $libname.a'
22514 soname_spec='${libname}${release}${shared_ext}$major'
22516 shlibpath_var=LIBPATH
22520 amigaos*)
22521 case $host_cpu in
22522 powerpc)
22523 # Since July 2007 AmigaOS4 officially supports .so libraries.
22524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22527 m68k)
22528 library_names_spec='$libname.ixlibrary $libname.a'
22529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22530 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'
22532 esac
22535 beos*)
22536 library_names_spec='${libname}${shared_ext}'
22537 dynamic_linker="$host_os ld.so"
22538 shlibpath_var=LIBRARY_PATH
22541 bsdi[45]*)
22542 version_type=linux
22543 need_version=no
22544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22545 soname_spec='${libname}${release}${shared_ext}$major'
22546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22547 shlibpath_var=LD_LIBRARY_PATH
22548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22550 # the default ld.so.conf also contains /usr/contrib/lib and
22551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22552 # libtool to hard-code these into programs
22555 cygwin* | mingw* | pw32* | cegcc*)
22556 version_type=windows
22557 shrext_cmds=".dll"
22558 need_version=no
22559 need_lib_prefix=no
22561 case $GCC,$host_os in
22562 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22563 library_names_spec='$libname.dll.a'
22564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22565 postinstall_cmds='base_file=`basename \${file}`~
22566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22567 dldir=$destdir/`dirname \$dlpath`~
22568 test -d \$dldir || mkdir -p \$dldir~
22569 $install_prog $dir/$dlname \$dldir/$dlname~
22570 chmod a+x \$dldir/$dlname~
22571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22575 dlpath=$dir/\$dldll~
22576 $RM \$dlpath'
22577 shlibpath_overrides_runpath=yes
22579 case $host_os in
22580 cygwin*)
22581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22585 mingw* | cegcc*)
22586 # MinGW DLLs use traditional 'lib' prefix
22587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22589 pw32*)
22590 # pw32 DLLs use 'pw' prefix rather than 'lib'
22591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22593 esac
22597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22599 esac
22600 dynamic_linker='Win32 ld.exe'
22601 # FIXME: first we should search . and the directory the executable is in
22602 shlibpath_var=PATH
22605 darwin* | rhapsody*)
22606 dynamic_linker="$host_os dyld"
22607 version_type=darwin
22608 need_lib_prefix=no
22609 need_version=no
22610 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22611 soname_spec='${libname}${release}${major}$shared_ext'
22612 shlibpath_overrides_runpath=yes
22613 shlibpath_var=DYLD_LIBRARY_PATH
22614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22619 dgux*)
22620 version_type=linux
22621 need_lib_prefix=no
22622 need_version=no
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22624 soname_spec='${libname}${release}${shared_ext}$major'
22625 shlibpath_var=LD_LIBRARY_PATH
22628 freebsd* | dragonfly*)
22629 # DragonFly does not have aout. When/if they implement a new
22630 # versioning mechanism, adjust this.
22631 if test -x /usr/bin/objformat; then
22632 objformat=`/usr/bin/objformat`
22633 else
22634 case $host_os in
22635 freebsd[23].*) objformat=aout ;;
22636 *) objformat=elf ;;
22637 esac
22639 version_type=freebsd-$objformat
22640 case $version_type in
22641 freebsd-elf*)
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22643 need_version=no
22644 need_lib_prefix=no
22646 freebsd-*)
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22648 need_version=yes
22650 esac
22651 shlibpath_var=LD_LIBRARY_PATH
22652 case $host_os in
22653 freebsd2.*)
22654 shlibpath_overrides_runpath=yes
22656 freebsd3.[01]* | freebsdelf3.[01]*)
22657 shlibpath_overrides_runpath=yes
22658 hardcode_into_libs=yes
22660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22662 shlibpath_overrides_runpath=no
22663 hardcode_into_libs=yes
22665 *) # from 4.6 on, and DragonFly
22666 shlibpath_overrides_runpath=yes
22667 hardcode_into_libs=yes
22669 esac
22672 haiku*)
22673 version_type=linux
22674 need_lib_prefix=no
22675 need_version=no
22676 dynamic_linker="$host_os runtime_loader"
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 shlibpath_var=LIBRARY_PATH
22680 shlibpath_overrides_runpath=yes
22681 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22682 hardcode_into_libs=yes
22685 hpux9* | hpux10* | hpux11*)
22686 # Give a soname corresponding to the major version so that dld.sl refuses to
22687 # link against other versions.
22688 version_type=sunos
22689 need_lib_prefix=no
22690 need_version=no
22691 case $host_cpu in
22692 ia64*)
22693 shrext_cmds='.so'
22694 hardcode_into_libs=yes
22695 dynamic_linker="$host_os dld.so"
22696 shlibpath_var=LD_LIBRARY_PATH
22697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22699 soname_spec='${libname}${release}${shared_ext}$major'
22700 if test "X$HPUX_IA64_MODE" = X32; then
22701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22702 else
22703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22707 hppa*64*)
22708 shrext_cmds='.sl'
22709 hardcode_into_libs=yes
22710 dynamic_linker="$host_os dld.sl"
22711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22714 soname_spec='${libname}${release}${shared_ext}$major'
22715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22719 shrext_cmds='.sl'
22720 dynamic_linker="$host_os dld.sl"
22721 shlibpath_var=SHLIB_PATH
22722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22724 soname_spec='${libname}${release}${shared_ext}$major'
22726 esac
22727 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22728 postinstall_cmds='chmod 555 $lib'
22729 # or fails outright, so override atomically:
22730 install_override_mode=555
22733 interix[3-9]*)
22734 version_type=linux
22735 need_lib_prefix=no
22736 need_version=no
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 shlibpath_overrides_runpath=no
22742 hardcode_into_libs=yes
22745 irix5* | irix6* | nonstopux*)
22746 case $host_os in
22747 nonstopux*) version_type=nonstopux ;;
22749 if test "$lt_cv_prog_gnu_ld" = yes; then
22750 version_type=linux
22751 else
22752 version_type=irix
22753 fi ;;
22754 esac
22755 need_lib_prefix=no
22756 need_version=no
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22759 case $host_os in
22760 irix5* | nonstopux*)
22761 libsuff= shlibsuff=
22764 case $LD in # libtool.m4 will add one of these switches to LD
22765 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22766 libsuff= shlibsuff= libmagic=32-bit;;
22767 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22768 libsuff=32 shlibsuff=N32 libmagic=N32;;
22769 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22770 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22771 *) libsuff= shlibsuff= libmagic=never-match;;
22772 esac
22774 esac
22775 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22776 shlibpath_overrides_runpath=no
22777 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22778 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22779 hardcode_into_libs=yes
22782 # No shared lib support for Linux oldld, aout, or coff.
22783 linux*oldld* | linux*aout* | linux*coff*)
22784 dynamic_linker=no
22787 # This must be Linux ELF.
22789 # uclinux* changes (here and below) have been submitted to the libtool
22790 # project, but have not yet been accepted: they are GCC-local changes
22791 # for the time being. (See
22792 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22794 version_type=linux
22795 need_lib_prefix=no
22796 need_version=no
22797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798 soname_spec='${libname}${release}${shared_ext}$major'
22799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22800 shlibpath_var=LD_LIBRARY_PATH
22801 shlibpath_overrides_runpath=no
22803 # Some binutils ld are patched to set DT_RUNPATH
22804 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22805 $as_echo_n "(cached) " >&6
22806 else
22807 lt_cv_shlibpath_overrides_runpath=no
22808 save_LDFLAGS=$LDFLAGS
22809 save_libdir=$libdir
22810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22813 /* end confdefs.h. */
22816 main ()
22820 return 0;
22822 _ACEOF
22823 if ac_fn_cxx_try_link "$LINENO"; then :
22824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22825 lt_cv_shlibpath_overrides_runpath=yes
22828 rm -f core conftest.err conftest.$ac_objext \
22829 conftest$ac_exeext conftest.$ac_ext
22830 LDFLAGS=$save_LDFLAGS
22831 libdir=$save_libdir
22835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22837 # This implies no fast_install, which is unacceptable.
22838 # Some rework will be needed to allow for fast_install
22839 # before this can be enabled.
22840 hardcode_into_libs=yes
22842 # Append ld.so.conf contents to the search path
22843 if test -f /etc/ld.so.conf; then
22844 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' ' '`
22845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22848 # We used to test for /lib/ld.so.1 and disable shared libraries on
22849 # powerpc, because MkLinux only supported shared libraries with the
22850 # GNU dynamic linker. Since this was broken with cross compilers,
22851 # most powerpc-linux boxes support dynamic linking these days and
22852 # people can always --disable-shared, the test was removed, and we
22853 # assume the GNU/Linux dynamic linker is in use.
22854 dynamic_linker='GNU/Linux ld.so'
22857 netbsd*)
22858 version_type=sunos
22859 need_lib_prefix=no
22860 need_version=no
22861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22864 dynamic_linker='NetBSD (a.out) ld.so'
22865 else
22866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22867 soname_spec='${libname}${release}${shared_ext}$major'
22868 dynamic_linker='NetBSD ld.elf_so'
22870 shlibpath_var=LD_LIBRARY_PATH
22871 shlibpath_overrides_runpath=yes
22872 hardcode_into_libs=yes
22875 newsos6)
22876 version_type=linux
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878 shlibpath_var=LD_LIBRARY_PATH
22879 shlibpath_overrides_runpath=yes
22882 *nto* | *qnx*)
22883 version_type=qnx
22884 need_lib_prefix=no
22885 need_version=no
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 shlibpath_overrides_runpath=no
22890 hardcode_into_libs=yes
22891 dynamic_linker='ldqnx.so'
22894 openbsd*)
22895 version_type=sunos
22896 sys_lib_dlsearch_path_spec="/usr/lib"
22897 need_lib_prefix=no
22898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22899 case $host_os in
22900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22901 *) need_version=no ;;
22902 esac
22903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22905 shlibpath_var=LD_LIBRARY_PATH
22906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22907 case $host_os in
22908 openbsd2.[89] | openbsd2.[89].*)
22909 shlibpath_overrides_runpath=no
22912 shlibpath_overrides_runpath=yes
22914 esac
22915 else
22916 shlibpath_overrides_runpath=yes
22920 os2*)
22921 libname_spec='$name'
22922 shrext_cmds=".dll"
22923 need_lib_prefix=no
22924 library_names_spec='$libname${shared_ext} $libname.a'
22925 dynamic_linker='OS/2 ld.exe'
22926 shlibpath_var=LIBPATH
22929 osf3* | osf4* | osf5*)
22930 version_type=osf
22931 need_lib_prefix=no
22932 need_version=no
22933 soname_spec='${libname}${release}${shared_ext}$major'
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22935 shlibpath_var=LD_LIBRARY_PATH
22936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22940 rdos*)
22941 dynamic_linker=no
22944 solaris*)
22945 version_type=linux
22946 need_lib_prefix=no
22947 need_version=no
22948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22949 soname_spec='${libname}${release}${shared_ext}$major'
22950 shlibpath_var=LD_LIBRARY_PATH
22951 shlibpath_overrides_runpath=yes
22952 hardcode_into_libs=yes
22953 # ldd complains unless libraries are executable
22954 postinstall_cmds='chmod +x $lib'
22957 sunos4*)
22958 version_type=sunos
22959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22961 shlibpath_var=LD_LIBRARY_PATH
22962 shlibpath_overrides_runpath=yes
22963 if test "$with_gnu_ld" = yes; then
22964 need_lib_prefix=no
22966 need_version=yes
22969 sysv4 | sysv4.3*)
22970 version_type=linux
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 case $host_vendor in
22975 sni)
22976 shlibpath_overrides_runpath=no
22977 need_lib_prefix=no
22978 runpath_var=LD_RUN_PATH
22980 siemens)
22981 need_lib_prefix=no
22983 motorola)
22984 need_lib_prefix=no
22985 need_version=no
22986 shlibpath_overrides_runpath=no
22987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22989 esac
22992 sysv4*MP*)
22993 if test -d /usr/nec ;then
22994 version_type=linux
22995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22996 soname_spec='$libname${shared_ext}.$major'
22997 shlibpath_var=LD_LIBRARY_PATH
23001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23002 version_type=freebsd-elf
23003 need_lib_prefix=no
23004 need_version=no
23005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23006 soname_spec='${libname}${release}${shared_ext}$major'
23007 shlibpath_var=LD_LIBRARY_PATH
23008 shlibpath_overrides_runpath=yes
23009 hardcode_into_libs=yes
23010 if test "$with_gnu_ld" = yes; then
23011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23012 else
23013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23014 case $host_os in
23015 sco3.2v5*)
23016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23018 esac
23020 sys_lib_dlsearch_path_spec='/usr/lib'
23023 tpf*)
23024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23025 version_type=linux
23026 need_lib_prefix=no
23027 need_version=no
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029 shlibpath_var=LD_LIBRARY_PATH
23030 shlibpath_overrides_runpath=no
23031 hardcode_into_libs=yes
23034 uts4*)
23035 version_type=linux
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037 soname_spec='${libname}${release}${shared_ext}$major'
23038 shlibpath_var=LD_LIBRARY_PATH
23041 # Shared libraries for VwWorks, >= 7 only at this stage
23042 # and (fpic) still incompatible with "large" code models
23043 # in a few configurations. Only for RTP mode in any case,
23044 # and upon explicit request at configure time.
23045 vxworks7*)
23046 dynamic_linker=no
23047 case ${with_multisubdir}-${enable_shared} in
23048 *large*)
23050 *mrtp*-yes)
23051 version_type=linux
23052 need_lib_prefix=no
23053 need_version=no
23054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055 soname_spec='${libname}${release}${shared_ext}$major'
23056 dynamic_linker="$host_os module_loader"
23058 esac
23061 dynamic_linker=no
23063 esac
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23065 $as_echo "$dynamic_linker" >&6; }
23066 test "$dynamic_linker" = no && can_build_shared=no
23068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23069 if test "$GCC" = yes; then
23070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23073 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23074 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23076 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23118 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23119 hardcode_action_CXX=
23120 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23121 test -n "$runpath_var_CXX" ||
23122 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23124 # We can hardcode non-existent directories.
23125 if test "$hardcode_direct_CXX" != no &&
23126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23127 # have to relink, otherwise we might link with an installed library
23128 # when we should be linking with a yet-to-be-installed one
23129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23130 test "$hardcode_minus_L_CXX" != no; then
23131 # Linking always hardcodes the temporary library directory.
23132 hardcode_action_CXX=relink
23133 else
23134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23135 hardcode_action_CXX=immediate
23137 else
23138 # We cannot hardcode anything, or else we can only hardcode existing
23139 # directories.
23140 hardcode_action_CXX=unsupported
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23143 $as_echo "$hardcode_action_CXX" >&6; }
23145 if test "$hardcode_action_CXX" = relink ||
23146 test "$inherit_rpath_CXX" = yes; then
23147 # Fast installation is not supported
23148 enable_fast_install=no
23149 elif test "$shlibpath_overrides_runpath" = yes ||
23150 test "$enable_shared" = no; then
23151 # Fast installation is not necessary
23152 enable_fast_install=needless
23161 fi # test -n "$compiler"
23163 CC=$lt_save_CC
23164 LDCXX=$LD
23165 LD=$lt_save_LD
23166 GCC=$lt_save_GCC
23167 with_gnu_ld=$lt_save_with_gnu_ld
23168 lt_cv_path_LDCXX=$lt_cv_path_LD
23169 lt_cv_path_LD=$lt_save_path_LD
23170 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23171 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23172 fi # test "$_lt_caught_CXX_error" != yes
23174 ac_ext=cpp
23175 ac_cpp='$CXXCPP $CPPFLAGS'
23176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23195 # Only expand once:
23201 # Identify the assembler which will work hand-in-glove with the newly
23202 # built GCC, so that we can examine its features. This is the assembler
23203 # which will be driven by the driver program.
23205 # If build != host, and we aren't building gas in-tree, we identify a
23206 # build->target assembler and hope that it will have the same features
23207 # as the host->target assembler we'll be using.
23208 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23210 if ${gcc_cv_as+:} false; then :
23212 else
23214 if test -x "$DEFAULT_ASSEMBLER"; then
23215 gcc_cv_as="$DEFAULT_ASSEMBLER"
23216 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23217 && test -f ../gas/Makefile \
23218 && test x$build = x$host; then
23219 gcc_cv_as=../gas/as-new$build_exeext
23220 elif test -x as$build_exeext; then
23221 # Build using assembler in the current directory.
23222 gcc_cv_as=./as$build_exeext
23223 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23224 gcc_cv_as="$AS_FOR_TARGET"
23225 else
23226 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23227 set dummy $AS_FOR_TARGET; ac_word=$2
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23229 $as_echo_n "checking for $ac_word... " >&6; }
23230 if ${ac_cv_path_gcc_cv_as+:} false; then :
23231 $as_echo_n "(cached) " >&6
23232 else
23233 case $gcc_cv_as in
23234 [\\/]* | ?:[\\/]*)
23235 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23239 for as_dir in $PATH
23241 IFS=$as_save_IFS
23242 test -z "$as_dir" && as_dir=.
23243 for ac_exec_ext in '' $ac_executable_extensions; do
23244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23245 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23247 break 2
23249 done
23250 done
23251 IFS=$as_save_IFS
23254 esac
23256 gcc_cv_as=$ac_cv_path_gcc_cv_as
23257 if test -n "$gcc_cv_as"; then
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23259 $as_echo "$gcc_cv_as" >&6; }
23260 else
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23262 $as_echo "no" >&6; }
23269 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23271 case "$ORIGINAL_AS_FOR_TARGET" in
23272 ./as | ./as$build_exeext) ;;
23273 *) ac_config_files="$ac_config_files as:exec-tool.in"
23275 esac
23277 default_ld=
23278 # Check whether --enable-ld was given.
23279 if test "${enable_ld+set}" = set; then :
23280 enableval=$enable_ld; case "${enableval}" in
23282 default_ld=ld.gold
23284 esac
23288 install_gold_as_default=no
23289 # Check whether --enable-gold was given.
23290 if test "${enable_gold+set}" = set; then :
23291 enableval=$enable_gold; case "${enableval}" in
23292 default)
23293 install_gold_as_default=yes
23295 yes)
23296 if test x${default_ld} != x; then
23297 install_gold_as_default=yes
23303 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23305 esac
23309 # Identify the linker which will work hand-in-glove with the newly
23310 # built GCC, so that we can examine its features. This is the linker
23311 # which will be driven by the driver program.
23313 # If build != host, and we aren't building gas in-tree, we identify a
23314 # build->target linker and hope that it will have the same features
23315 # as the host->target linker we'll be using.
23316 gcc_cv_gld_major_version=
23317 gcc_cv_gld_minor_version=
23318 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23319 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23320 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23322 if ${gcc_cv_ld+:} false; then :
23324 else
23326 if test -x "$DEFAULT_LINKER"; then
23327 gcc_cv_ld="$DEFAULT_LINKER"
23328 elif test $install_gold_as_default = yes \
23329 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23330 && test -f ../gold/Makefile \
23331 && test x$build = x$host; then
23332 gcc_cv_ld=../gold/ld-new$build_exeext
23333 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23334 && test -f ../ld/Makefile \
23335 && test x$build = x$host; then
23336 gcc_cv_ld=../ld/ld-new$build_exeext
23337 elif test -x collect-ld$build_exeext; then
23338 # Build using linker in the current directory.
23339 gcc_cv_ld=./collect-ld$build_exeext
23340 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23341 gcc_cv_ld="$LD_FOR_TARGET"
23342 else
23343 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23344 set dummy $LD_FOR_TARGET; ac_word=$2
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23346 $as_echo_n "checking for $ac_word... " >&6; }
23347 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23348 $as_echo_n "(cached) " >&6
23349 else
23350 case $gcc_cv_ld in
23351 [\\/]* | ?:[\\/]*)
23352 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23356 for as_dir in $PATH
23358 IFS=$as_save_IFS
23359 test -z "$as_dir" && as_dir=.
23360 for ac_exec_ext in '' $ac_executable_extensions; do
23361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23362 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23364 break 2
23366 done
23367 done
23368 IFS=$as_save_IFS
23371 esac
23373 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23374 if test -n "$gcc_cv_ld"; then
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23376 $as_echo "$gcc_cv_ld" >&6; }
23377 else
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23379 $as_echo "no" >&6; }
23386 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23387 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23388 # if the PLUGIN_LD is set ld-new, just have it as ld
23389 # as that is the installed named.
23390 if test x$PLUGIN_LD_SUFFIX = xld-new \
23391 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23392 PLUGIN_LD_SUFFIX=ld
23395 # Check whether --with-plugin-ld was given.
23396 if test "${with_plugin_ld+set}" = set; then :
23397 withval=$with_plugin_ld; if test x"$withval" != x; then
23398 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23399 PLUGIN_LD_SUFFIX="$withval"
23405 cat >>confdefs.h <<_ACEOF
23406 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23407 _ACEOF
23410 # Check to see if we are using gold instead of ld
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23412 $as_echo_n "checking whether we are using gold... " >&6; }
23413 ld_is_gold=no
23414 if test x$gcc_cv_ld != x; then
23415 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23416 | grep "GNU gold" > /dev/null; then
23417 ld_is_gold=yes
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23421 $as_echo "$ld_is_gold" >&6; }
23423 # Check to see if we are using mold instead of ld
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23425 $as_echo_n "checking whether we are using mold... " >&6; }
23426 ld_is_mold=no
23427 if test x$gcc_cv_ld != x; then
23428 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23429 | grep "mold" > /dev/null; then
23430 ld_is_mold=yes
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23434 $as_echo "$ld_is_mold" >&6; }
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23438 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23439 # Check to see if default ld is not gold, but gold is
23440 # available and has support for split stack. If gcc was configured
23441 # with gold then no checking is done.
23443 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23445 # For platforms other than powerpc64*, enable as appropriate.
23447 gold_non_default=no
23448 ld_gold=`which ${gcc_cv_ld}.gold`
23449 # Make sure this gold has minimal split stack support
23450 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23451 ld_vers=`$ld_gold --version | sed 1q`
23452 gold_vers=`echo $ld_vers | sed -n \
23453 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23454 case $target in
23455 # check that the gold version contains the complete split stack support
23456 # on powerpc64 big and little endian
23457 powerpc64*-*-*)
23458 case "$gold_vers" in
23459 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23461 *) gold_non_default=no
23463 esac
23465 esac
23467 if test $gold_non_default = yes; then
23469 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23474 $as_echo "$gold_non_default" >&6; }
23476 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23478 case "$ORIGINAL_LD_FOR_TARGET" in
23479 ./collect-ld | ./collect-ld$build_exeext) ;;
23480 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23482 esac
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23485 $as_echo_n "checking what linker to use... " >&6; }
23486 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23487 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23488 # Single tree build which includes ld. We want to prefer it
23489 # over whatever linker top-level may have detected, since
23490 # we'll use what we're building after installation anyway.
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23492 $as_echo "newly built ld" >&6; }
23493 in_tree_ld=yes
23494 in_tree_ld_is_elf=no
23495 if (grep 'EMUL = .*elf' ../ld/Makefile \
23496 || grep 'EMUL = .*linux' ../ld/Makefile \
23497 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23498 in_tree_ld_is_elf=yes
23499 elif test "$ld_is_gold" = yes; then
23500 in_tree_ld_is_elf=yes
23502 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
23504 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23505 if test x$gcc_cv_gld_version != x; then
23506 break
23508 done
23509 case $gcc_cv_gld_version in
23510 VERSION=[0-9]*) ;;
23511 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23512 esac
23513 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23514 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23515 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23516 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23517 else
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23519 $as_echo "$gcc_cv_ld" >&6; }
23520 in_tree_ld=no
23521 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23522 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23523 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23529 # Figure out what nm we will be using.
23530 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23531 if ${gcc_cv_nm+:} false; then :
23533 else
23535 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23536 && test -f ../binutils/Makefile \
23537 && test x$build = x$host; then
23538 gcc_cv_nm=../binutils/nm-new$build_exeext
23539 elif test -x nm$build_exeext; then
23540 gcc_cv_nm=./nm$build_exeext
23541 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23542 gcc_cv_nm="$NM_FOR_TARGET"
23543 else
23544 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23545 set dummy $NM_FOR_TARGET; ac_word=$2
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23547 $as_echo_n "checking for $ac_word... " >&6; }
23548 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23549 $as_echo_n "(cached) " >&6
23550 else
23551 case $gcc_cv_nm in
23552 [\\/]* | ?:[\\/]*)
23553 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23557 for as_dir in $PATH
23559 IFS=$as_save_IFS
23560 test -z "$as_dir" && as_dir=.
23561 for ac_exec_ext in '' $ac_executable_extensions; do
23562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23563 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23565 break 2
23567 done
23568 done
23569 IFS=$as_save_IFS
23572 esac
23574 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23575 if test -n "$gcc_cv_nm"; then
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23577 $as_echo "$gcc_cv_nm" >&6; }
23578 else
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23580 $as_echo "no" >&6; }
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23588 $as_echo_n "checking what nm to use... " >&6; }
23589 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23590 # Single tree build which includes binutils.
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23592 $as_echo "newly built nm" >&6; }
23593 in_tree_nm=yes
23594 else
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23596 $as_echo "$gcc_cv_nm" >&6; }
23597 in_tree_nm=no
23600 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23602 case "$ORIGINAL_NM_FOR_TARGET" in
23603 ./nm | ./nm$build_exeext) ;;
23604 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23606 esac
23609 # Figure out what objdump we will be using.
23610 if ${gcc_cv_objdump+:} false; then :
23612 else
23614 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23615 && test -f ../binutils/Makefile \
23616 && test x$build = x$host; then
23617 # Single tree build which includes binutils.
23618 gcc_cv_objdump=../binutils/objdump$build_exeext
23619 elif test -x objdump$build_exeext; then
23620 gcc_cv_objdump=./objdump$build_exeext
23621 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23622 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23623 else
23624 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23625 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23627 $as_echo_n "checking for $ac_word... " >&6; }
23628 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23629 $as_echo_n "(cached) " >&6
23630 else
23631 case $gcc_cv_objdump in
23632 [\\/]* | ?:[\\/]*)
23633 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23637 for as_dir in $PATH
23639 IFS=$as_save_IFS
23640 test -z "$as_dir" && as_dir=.
23641 for ac_exec_ext in '' $ac_executable_extensions; do
23642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23643 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23645 break 2
23647 done
23648 done
23649 IFS=$as_save_IFS
23652 esac
23654 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23655 if test -n "$gcc_cv_objdump"; then
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23657 $as_echo "$gcc_cv_objdump" >&6; }
23658 else
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23660 $as_echo "no" >&6; }
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23668 $as_echo_n "checking what objdump to use... " >&6; }
23669 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23670 # Single tree build which includes binutils.
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23672 $as_echo "newly built objdump" >&6; }
23673 elif test x$gcc_cv_objdump = x; then
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23675 $as_echo "not found" >&6; }
23676 else
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23678 $as_echo "$gcc_cv_objdump" >&6; }
23681 # Figure out what readelf we will be using.
23682 if ${gcc_cv_readelf+:} false; then :
23684 else
23686 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23687 && test -f ../binutils/Makefile \
23688 && test x$build = x$host; then
23689 # Single tree build which includes binutils.
23690 gcc_cv_readelf=../binutils/readelf$build_exeext
23691 elif test -x readelf$build_exeext; then
23692 gcc_cv_readelf=./readelf$build_exeext
23693 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23694 gcc_cv_readelf="$READELF_FOR_TARGET"
23695 else
23696 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23697 set dummy $READELF_FOR_TARGET; ac_word=$2
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23699 $as_echo_n "checking for $ac_word... " >&6; }
23700 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23701 $as_echo_n "(cached) " >&6
23702 else
23703 case $gcc_cv_readelf in
23704 [\\/]* | ?:[\\/]*)
23705 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23709 for as_dir in $PATH
23711 IFS=$as_save_IFS
23712 test -z "$as_dir" && as_dir=.
23713 for ac_exec_ext in '' $ac_executable_extensions; do
23714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23715 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23717 break 2
23719 done
23720 done
23721 IFS=$as_save_IFS
23724 esac
23726 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23727 if test -n "$gcc_cv_readelf"; then
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23729 $as_echo "$gcc_cv_readelf" >&6; }
23730 else
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23732 $as_echo "no" >&6; }
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23740 $as_echo_n "checking what readelf to use... " >&6; }
23741 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23742 # Single tree build which includes binutils.
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23744 $as_echo "newly built readelf" >&6; }
23745 elif test x$gcc_cv_readelf = x; then
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23747 $as_echo "not found" >&6; }
23748 else
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23750 $as_echo "$gcc_cv_readelf" >&6; }
23753 # Figure out what otool we will be using.
23754 if ${gcc_cv_otool+:} false; then :
23756 else
23758 if test -x otool$build_exeext; then
23759 gcc_cv_otool=./otool$build_exeext
23760 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23761 gcc_cv_otool="$OTOOL_FOR_TARGET"
23762 else
23763 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23764 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23766 $as_echo_n "checking for $ac_word... " >&6; }
23767 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23768 $as_echo_n "(cached) " >&6
23769 else
23770 case $gcc_cv_otool in
23771 [\\/]* | ?:[\\/]*)
23772 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23776 for as_dir in $PATH
23778 IFS=$as_save_IFS
23779 test -z "$as_dir" && as_dir=.
23780 for ac_exec_ext in '' $ac_executable_extensions; do
23781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23782 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23784 break 2
23786 done
23787 done
23788 IFS=$as_save_IFS
23791 esac
23793 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23794 if test -n "$gcc_cv_otool"; then
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23796 $as_echo "$gcc_cv_otool" >&6; }
23797 else
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23807 $as_echo_n "checking what otool to use... " >&6; }
23808 if test x$gcc_cv_otool = x; then
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23810 $as_echo "not found" >&6; }
23811 else
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23813 $as_echo "$gcc_cv_otool" >&6; }
23816 # Figure out the dsymutil we will use.
23817 if ${gcc_cv_dsymutil+:} false; then :
23819 else
23821 if test -x "$DEFAULT_DSYMUTIL"; then
23822 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23823 elif test -x dsymutil$build_exeext; then
23824 gcc_cv_dsymutil=./dsymutil$build_exeext
23825 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23826 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23827 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23828 gcc_cv_dsymutil=$DSYMUTIL
23829 else
23830 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23831 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23833 $as_echo_n "checking for $ac_word... " >&6; }
23834 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23835 $as_echo_n "(cached) " >&6
23836 else
23837 case $gcc_cv_dsymutil in
23838 [\\/]* | ?:[\\/]*)
23839 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23843 for as_dir in $PATH
23845 IFS=$as_save_IFS
23846 test -z "$as_dir" && as_dir=.
23847 for ac_exec_ext in '' $ac_executable_extensions; do
23848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23849 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23851 break 2
23853 done
23854 done
23855 IFS=$as_save_IFS
23858 esac
23860 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23861 if test -n "$gcc_cv_dsymutil"; then
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23863 $as_echo "$gcc_cv_dsymutil" >&6; }
23864 else
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23873 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23875 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23876 ./dsymutil | ./dsymutil$build_exeext) ;;
23877 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23879 esac
23881 # Figure out what assembler alignment features are present.
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23883 $as_echo_n "checking assembler flags... " >&6; }
23884 if ${gcc_cv_as_flags+:} false; then :
23885 $as_echo_n "(cached) " >&6
23886 else
23887 case "$target" in
23888 i[34567]86-*-linux*)
23889 gcc_cv_as_flags=--32
23891 x86_64-*-linux-gnux32)
23892 gcc_cv_as_flags=--x32
23894 x86_64-*-linux*)
23895 gcc_cv_as_flags=--64
23897 powerpc*-*-darwin*)
23898 gcc_cv_as_flags="-arch ppc"
23901 gcc_cv_as_flags=" "
23903 esac
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23906 $as_echo "$gcc_cv_as_flags" >&6; }
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23909 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23910 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23911 $as_echo_n "(cached) " >&6
23912 else
23913 gcc_cv_as_balign_and_p2align=no
23914 if test x$gcc_cv_as != x; then
23915 $as_echo '.balign 4
23916 .p2align 2' > conftest.s
23917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23920 ac_status=$?
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; }
23923 then
23924 gcc_cv_as_balign_and_p2align=yes
23925 else
23926 echo "configure: failed program was" >&5
23927 cat conftest.s >&5
23929 rm -f conftest.o conftest.s
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23933 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23934 if test $gcc_cv_as_balign_and_p2align = yes; then
23936 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23942 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23943 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23944 $as_echo_n "(cached) " >&6
23945 else
23946 gcc_cv_as_max_skip_p2align=no
23947 if test x$gcc_cv_as != x; then
23948 $as_echo '.p2align 4,,7' > conftest.s
23949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
23953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954 test $ac_status = 0; }; }
23955 then
23956 gcc_cv_as_max_skip_p2align=yes
23957 else
23958 echo "configure: failed program was" >&5
23959 cat conftest.s >&5
23961 rm -f conftest.o conftest.s
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23965 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23966 if test $gcc_cv_as_max_skip_p2align = yes; then
23968 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23974 $as_echo_n "checking assembler for .literal16... " >&6; }
23975 if ${gcc_cv_as_literal16+:} false; then :
23976 $as_echo_n "(cached) " >&6
23977 else
23978 gcc_cv_as_literal16=no
23979 if test x$gcc_cv_as != x; then
23980 $as_echo '.literal16' > conftest.s
23981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23986 test $ac_status = 0; }; }
23987 then
23988 gcc_cv_as_literal16=yes
23989 else
23990 echo "configure: failed program was" >&5
23991 cat conftest.s >&5
23993 rm -f conftest.o conftest.s
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23997 $as_echo "$gcc_cv_as_literal16" >&6; }
23998 if test $gcc_cv_as_literal16 = yes; then
24000 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24006 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24007 if ${gcc_cv_as_subsection_m1+:} false; then :
24008 $as_echo_n "(cached) " >&6
24009 else
24010 gcc_cv_as_subsection_m1=no
24011 if test x$gcc_cv_as != x; then
24012 $as_echo 'conftest_label1: .word 0
24013 .subsection -1
24014 conftest_label2: .word 0
24015 .previous' > conftest.s
24016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24019 ac_status=$?
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24022 then
24023 if test x$gcc_cv_nm != x; then
24024 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24025 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24026 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24027 then :
24028 else gcc_cv_as_subsection_m1=yes
24030 rm -f conftest.nm1 conftest.nm2
24032 else
24033 echo "configure: failed program was" >&5
24034 cat conftest.s >&5
24036 rm -f conftest.o conftest.s
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24040 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24041 if test $gcc_cv_as_subsection_m1 = yes; then
24043 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24049 $as_echo_n "checking assembler for .weak... " >&6; }
24050 if ${gcc_cv_as_weak+:} false; then :
24051 $as_echo_n "(cached) " >&6
24052 else
24053 gcc_cv_as_weak=no
24054 if test x$gcc_cv_as != x; then
24055 $as_echo ' .weak foobar' > conftest.s
24056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24061 test $ac_status = 0; }; }
24062 then
24063 gcc_cv_as_weak=yes
24064 else
24065 echo "configure: failed program was" >&5
24066 cat conftest.s >&5
24068 rm -f conftest.o conftest.s
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24072 $as_echo "$gcc_cv_as_weak" >&6; }
24073 if test $gcc_cv_as_weak = yes; then
24075 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24081 $as_echo_n "checking assembler for .weakref... " >&6; }
24082 if ${gcc_cv_as_weakref+:} false; then :
24083 $as_echo_n "(cached) " >&6
24084 else
24085 gcc_cv_as_weakref=no
24086 if test x$gcc_cv_as != x; then
24087 $as_echo ' .weakref foobar, barfnot' > conftest.s
24088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24090 (eval $ac_try) 2>&5
24091 ac_status=$?
24092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24093 test $ac_status = 0; }; }
24094 then
24095 gcc_cv_as_weakref=yes
24096 else
24097 echo "configure: failed program was" >&5
24098 cat conftest.s >&5
24100 rm -f conftest.o conftest.s
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24104 $as_echo "$gcc_cv_as_weakref" >&6; }
24105 if test $gcc_cv_as_weakref = yes; then
24107 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24113 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24114 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24115 $as_echo_n "(cached) " >&6
24116 else
24117 gcc_cv_as_nsubspa_comdat=no
24118 if test x$gcc_cv_as != x; then
24119 $as_echo ' .SPACE $TEXT$
24120 .NSUBSPA $CODE$,COMDAT' > conftest.s
24121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24127 then
24128 gcc_cv_as_nsubspa_comdat=yes
24129 else
24130 echo "configure: failed program was" >&5
24131 cat conftest.s >&5
24133 rm -f conftest.o conftest.s
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24137 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24138 if test $gcc_cv_as_nsubspa_comdat = yes; then
24140 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24145 # .hidden needs to be supported in both the assembler and the linker,
24146 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24147 # This is irritatingly difficult to feature test for; we have to check the
24148 # date string after the version number. If we've got an in-tree
24149 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24150 # to be safe.
24151 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24152 case "${target}" in
24153 *-*-aix*)
24154 conftest_s=' .globl foobar,hidden'
24157 conftest_s=' .hidden foobar
24158 foobar:'
24160 esac
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24162 $as_echo_n "checking assembler for .hidden... " >&6; }
24163 if ${gcc_cv_as_hidden+:} false; then :
24164 $as_echo_n "(cached) " >&6
24165 else
24166 gcc_cv_as_hidden=no
24167 if test x$gcc_cv_as != x; then
24168 $as_echo "$conftest_s" > conftest.s
24169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24175 then
24176 gcc_cv_as_hidden=yes
24177 else
24178 echo "configure: failed program was" >&5
24179 cat conftest.s >&5
24181 rm -f conftest.o conftest.s
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24185 $as_echo "$gcc_cv_as_hidden" >&6; }
24188 case "${target}" in
24189 *-*-darwin*)
24190 # Darwin as has some visibility support, though with a different syntax.
24191 gcc_cv_as_hidden=yes
24193 esac
24195 # gnu_indirect_function type is an extension proposed at
24196 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24197 # selection of function implementation
24198 # Check whether --enable-gnu-indirect-function was given.
24199 if test "${enable_gnu_indirect_function+set}" = set; then :
24200 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24201 yes | no) ;;
24202 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24203 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24204 esac
24205 else
24206 enable_gnu_indirect_function="$default_gnu_indirect_function"
24210 case "${target}" in
24211 riscv*-*-linux*)
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24213 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24214 cat > conftest.s <<EOF
24215 .text
24216 .type foo_resolver, @function
24217 foo_resolver:
24219 .size foo_resolver, .-foo_resolver
24221 .globl foo
24222 .type foo, %gnu_indirect_function
24223 .set foo, foo_resolver
24225 .globl bar
24226 .type bar, @function
24227 bar:
24228 call foo
24230 .size bar, .-bar
24232 if test x$gcc_cv_as != x \
24233 && test x$gcc_cv_ld != x \
24234 && test x$gcc_cv_readelf != x \
24235 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24236 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24237 && $gcc_cv_readelf --relocs --wide conftest \
24238 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24239 enable_gnu_indirect_function=yes
24241 rm -f conftest conftest.o conftest.s
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24243 $as_echo "$enable_gnu_indirect_function" >&6; }
24245 esac
24247 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24249 cat >>confdefs.h <<_ACEOF
24250 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24251 _ACEOF
24255 if test $in_tree_ld != yes ; then
24256 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24257 if echo "$ld_ver" | grep GNU > /dev/null; then
24258 if test x"$ld_is_gold" = xyes; then
24259 # GNU gold --version looks like this:
24261 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24263 # We extract the binutils version which is more familiar and specific
24264 # than the gold version.
24265 ld_vers=`echo $ld_ver | sed -n \
24266 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24267 else
24268 # GNU ld --version looks like this:
24270 # GNU ld (GNU Binutils) 2.21.51.20110225
24271 ld_vers=`echo $ld_ver | sed -n \
24272 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24274 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'`
24275 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24276 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24277 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24278 else
24279 case "${target}" in
24280 *-*-solaris2*)
24281 # Solaris 2 ld -V output looks like this for a regular version:
24283 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24285 # but test versions add stuff at the end:
24287 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24289 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24290 # numbers can be used in ld.so.1 feature checks even if a different
24291 # linker is configured.
24292 ld_ver=`$gcc_cv_ld -V 2>&1`
24293 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24294 ld_vers=`echo $ld_ver | sed -n \
24295 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24296 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24297 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24300 esac
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24305 $as_echo_n "checking linker for .hidden support... " >&6; }
24306 if ${gcc_cv_ld_hidden+:} false; then :
24307 $as_echo_n "(cached) " >&6
24308 else
24309 if test $in_tree_ld = yes ; then
24310 gcc_cv_ld_hidden=no
24311 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 \
24312 && test $in_tree_ld_is_elf = yes; then
24313 gcc_cv_ld_hidden=yes
24315 else
24316 gcc_cv_ld_hidden=yes
24317 if test x"$ld_is_gold" = xyes; then
24319 elif test x"$ld_is_mold" = xyes; then
24321 elif echo "$ld_ver" | grep GNU > /dev/null; then
24322 if test 0"$ld_date" -lt 20020404; then
24323 if test -n "$ld_date"; then
24324 # If there was date string, but was earlier than 2002-04-04, fail
24325 gcc_cv_ld_hidden=no
24326 elif test -z "$ld_vers"; then
24327 # If there was no date string nor ld version number, something is wrong
24328 gcc_cv_ld_hidden=no
24329 else
24330 test -z "$ld_vers_patch" && ld_vers_patch=0
24331 if test "$ld_vers_major" -lt 2; then
24332 gcc_cv_ld_hidden=no
24333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24334 gcc_cv_ld_hidden="no"
24335 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24336 gcc_cv_ld_hidden=no
24340 else
24341 case "${target}" in
24342 *-*-aix[789]*)
24343 gcc_cv_ld_hidden=yes
24345 *-*-darwin*)
24346 # Darwin ld has some visibility support.
24347 gcc_cv_ld_hidden=yes
24349 hppa64*-*-hpux* | ia64*-*-hpux*)
24350 gcc_cv_ld_hidden=yes
24352 *-*-solaris2*)
24353 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24354 # .symbolic was only added in Solaris 9 12/02.
24355 gcc_cv_ld_hidden=yes
24358 gcc_cv_ld_hidden=no
24360 esac
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24365 $as_echo "$gcc_cv_ld_hidden" >&6; }
24366 libgcc_visibility=no
24369 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24370 libgcc_visibility=yes
24372 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24377 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24378 gcc_cv_ld_ro_rw_mix=unknown
24379 if test $in_tree_ld = yes ; then
24380 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 \
24381 && test $in_tree_ld_is_elf = yes; then
24382 gcc_cv_ld_ro_rw_mix=read-write
24384 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24385 echo '.section myfoosect, "a"' > conftest1.s
24386 echo '.section myfoosect, "aw"' > conftest2.s
24387 echo '.byte 1' >> conftest2.s
24388 echo '.section myfoosect, "a"' > conftest3.s
24389 echo '.byte 0' >> conftest3.s
24390 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24391 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24392 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24393 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24394 conftest2.o conftest3.o > /dev/null 2>&1; then
24395 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24396 | sed -e '/myfoosect/!d' -e N`
24397 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24398 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24399 gcc_cv_ld_ro_rw_mix=read-only
24400 else
24401 gcc_cv_ld_ro_rw_mix=read-write
24405 rm -f conftest.* conftest[123].*
24407 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24409 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24413 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24415 # Check whether --enable-initfini-array was given.
24416 if test "${enable_initfini_array+set}" = set; then :
24417 enableval=$enable_initfini_array;
24418 else
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24421 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24422 if ${gcc_cv_initfini_array+:} false; then :
24423 $as_echo_n "(cached) " >&6
24424 else
24425 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24426 case "${target}" in
24427 ia64-*)
24428 if test "$cross_compiling" = yes; then :
24429 gcc_cv_initfini_array=no
24430 else
24431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h. */
24434 #ifndef __ELF__
24435 #error Not an ELF OS
24436 #endif
24437 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24438 if it can be used. */
24439 static int x = -1;
24440 int main (void) { return x; }
24441 int foo (void) { x = 0; }
24442 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24444 _ACEOF
24445 if ac_fn_cxx_try_run "$LINENO"; then :
24446 gcc_cv_initfini_array=yes
24447 else
24448 gcc_cv_initfini_array=no
24450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24451 conftest.$ac_objext conftest.beam conftest.$ac_ext
24455 gcc_cv_initfini_array=no
24456 if test $in_tree_ld = yes ; then
24457 if test "$gcc_cv_gld_major_version" -eq 2 \
24458 -a "$gcc_cv_gld_minor_version" -ge 22 \
24459 -o "$gcc_cv_gld_major_version" -gt 2 \
24460 && test $in_tree_ld_is_elf = yes; then
24461 gcc_cv_initfini_array=yes
24463 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24464 case $target:$gas in
24465 *:yes)
24466 sh_flags='"a"'
24467 sh_type='%progbits'
24469 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24470 sh_flags='"a"'
24471 sh_type='@progbits'
24473 sparc*-*-solaris2*:no)
24474 sh_flags='#alloc'
24475 sh_type='#progbits'
24476 sh_quote='"'
24478 esac
24479 case "$target:$gnu_ld" in
24480 *:yes)
24481 cat > conftest.s <<EOF
24482 .section .dtors,$sh_flags,$sh_type
24483 .balign 4
24484 .byte 'A', 'A', 'A', 'A'
24485 .section .ctors,$sh_flags,$sh_type
24486 .balign 4
24487 .byte 'B', 'B', 'B', 'B'
24488 .section .fini_array.65530,$sh_flags,$sh_type
24489 .balign 4
24490 .byte 'C', 'C', 'C', 'C'
24491 .section .init_array.65530,$sh_flags,$sh_type
24492 .balign 4
24493 .byte 'D', 'D', 'D', 'D'
24494 .section .dtors.64528,$sh_flags,$sh_type
24495 .balign 4
24496 .byte 'E', 'E', 'E', 'E'
24497 .section .ctors.64528,$sh_flags,$sh_type
24498 .balign 4
24499 .byte 'F', 'F', 'F', 'F'
24500 .section .fini_array.01005,$sh_flags,$sh_type
24501 .balign 4
24502 .byte 'G', 'G', 'G', 'G'
24503 .section .init_array.01005,$sh_flags,$sh_type
24504 .balign 4
24505 .byte 'H', 'H', 'H', 'H'
24506 .text
24507 .globl _start
24508 _start:
24510 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24511 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24512 && $gcc_cv_objdump -s -j .init_array conftest \
24513 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24514 && $gcc_cv_objdump -s -j .fini_array conftest \
24515 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24516 gcc_cv_initfini_array=yes
24519 *-*-solaris2*:no)
24520 # When Solaris ld added constructor priority support, it was
24521 # decided to only handle .init_array.N/.fini_array.N since
24522 # there was no need for backwards compatibility with
24523 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24524 # sections with correct execution order resp. to
24525 # .init_array/.fini_array, while gld merges them into
24526 # .init_array/.fini_array.
24527 cat > conftest.s <<EOF
24528 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24529 .align 4
24530 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24531 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24532 .align 4
24533 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24534 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24535 .align 4
24536 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24537 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24538 .align 4
24539 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24540 .text
24541 .globl _start
24542 _start:
24544 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24545 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24546 && $gcc_cv_objdump -s -j .init_array conftest \
24547 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24548 && $gcc_cv_objdump -s -j .fini_array conftest \
24549 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24550 gcc_cv_initfini_array=yes
24553 esac
24554 rm -f conftest conftest.*
24556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24557 /* end confdefs.h. */
24559 #ifndef __ELF__
24560 # error Not an ELF OS
24561 #endif
24562 #include <stdlib.h>
24563 #if defined __GLIBC_PREREQ
24564 # if __GLIBC_PREREQ (2, 4)
24565 # else
24566 # error GLIBC 2.4 required
24567 # endif
24568 #else
24569 # if defined __sun__ && defined __svr4__
24570 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24571 # else
24572 # error The C library not known to support .init_array/.fini_array
24573 # endif
24574 #endif
24576 _ACEOF
24577 if ac_fn_cxx_try_cpp "$LINENO"; then :
24579 else
24580 gcc_cv_initfini_array=no
24582 rm -f conftest.err conftest.i conftest.$ac_ext;;
24583 esac
24584 else
24585 case "${target}" in
24586 aarch64*-linux-gnu*)
24587 # AArch64 postdates glibc support for .init_array/.fini_array,
24588 # so we don't need the preprocessor test above.
24589 gcc_cv_initfini_array=yes
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24594 $as_echo_n "checking cross compile... guessing... " >&6; }
24595 gcc_cv_initfini_array=no
24597 esac
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24601 $as_echo "$gcc_cv_initfini_array" >&6; }
24602 enable_initfini_array=$gcc_cv_initfini_array
24607 cat >>confdefs.h <<_ACEOF
24608 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24609 _ACEOF
24613 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24614 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24615 # these directives, even when they appear to accept them.
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24617 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24618 if ${gcc_cv_as_leb128+:} false; then :
24619 $as_echo_n "(cached) " >&6
24620 else
24621 gcc_cv_as_leb128=no
24622 if test x$gcc_cv_as != x; then
24623 $as_echo ' .data
24624 .uleb128 L2 - L1
24626 .uleb128 1280
24627 .sleb128 -1010
24629 .uleb128 0x8000000000000000
24630 ' > conftest.s
24631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }
24637 then
24639 if test "x$gcc_cv_objdump" != x; then
24640 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24641 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24642 gcc_cv_as_leb128=yes
24644 elif test "x$gcc_cv_otool" != x; then
24645 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24646 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24647 gcc_cv_as_leb128=yes
24649 else
24650 # play safe, assume the assembler is broken.
24654 else
24655 echo "configure: failed program was" >&5
24656 cat conftest.s >&5
24658 rm -f conftest.o conftest.s
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24662 $as_echo "$gcc_cv_as_leb128" >&6; }
24663 if test $gcc_cv_as_leb128 = yes; then
24665 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24668 if test $gcc_cv_as_leb128 != yes; then
24670 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24674 # Determine if an .eh_frame section is read-only.
24675 gcc_fn_eh_frame_ro () {
24676 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24677 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24678 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24681 # Check if we have assembler support for unwind directives.
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24683 $as_echo_n "checking assembler for cfi directives... " >&6; }
24684 if ${gcc_cv_as_cfi_directive+:} false; then :
24685 $as_echo_n "(cached) " >&6
24686 else
24687 gcc_cv_as_cfi_directive=no
24688 if test x$gcc_cv_as != x; then
24689 $as_echo ' .text
24690 .cfi_startproc
24691 .cfi_offset 0, 0
24692 .cfi_same_value 1
24693 .cfi_def_cfa 1, 2
24694 .cfi_escape 1, 2, 3, 4, 5
24695 .cfi_endproc' > conftest.s
24696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24702 then
24703 case "$target" in
24704 *-*-solaris*)
24705 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24706 # read-only and read-write sections, we need to make sure that the
24707 # assembler used emits read-write .eh_frame sections.
24708 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24709 gcc_cv_as_cfi_directive=yes
24710 elif test "x$gcc_cv_objdump" = x; then
24711 # No objdump, err on the side of caution.
24712 gcc_cv_as_cfi_directive=no
24713 else
24714 if test x$gas = xyes; then
24715 as_32_opt="--32"
24716 as_64_opt="--64"
24717 else
24718 as_32_opt="-m32"
24719 as_64_opt="-m64"
24721 case "$target" in
24722 sparc*-*-solaris2.*)
24723 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24724 if gcc_fn_eh_frame_ro $as_32_opt \
24725 || gcc_fn_eh_frame_ro $as_64_opt; then
24726 gcc_cv_as_cfi_directive=no
24727 else
24728 gcc_cv_as_cfi_directive=yes
24731 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24732 # On Solaris/x86, make sure that GCC and assembler agree on using
24733 # read-only .eh_frame sections for 64-bit.
24734 if gcc_fn_eh_frame_ro $as_32_opt; then
24735 gcc_cv_as_cfi_directive=no
24736 elif gcc_fn_eh_frame_ro $as_64_opt; then
24737 gcc_cv_as_cfi_directive=yes
24738 else
24739 gcc_cv_as_cfi_directive=no
24742 esac
24745 *-*-*)
24746 gcc_cv_as_cfi_directive=yes
24748 esac
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24757 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24760 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24762 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24763 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24764 $as_echo_n "(cached) " >&6
24765 else
24766 gcc_cv_as_cfi_advance_working=no
24767 if test x$gcc_cv_as != x; then
24768 $as_echo ' .text
24769 .cfi_startproc
24770 .cfi_adjust_cfa_offset 64
24771 .skip 75040, 0
24772 .cfi_adjust_cfa_offset 128
24773 .cfi_endproc' > conftest.s
24774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24780 then
24782 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24783 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24784 gcc_cv_as_cfi_advance_working=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24795 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24798 else
24799 # no objdump, err on the side of caution
24800 gcc_cv_as_cfi_advance_working=no
24804 cat >>confdefs.h <<_ACEOF
24805 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24806 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24807 _ACEOF
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24812 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24813 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_cfi_personality_directive=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo ' .text
24819 .cfi_startproc
24820 .cfi_personality 0, symbol
24821 .cfi_endproc' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 gcc_cv_as_cfi_personality_directive=yes
24830 else
24831 echo "configure: failed program was" >&5
24832 cat conftest.s >&5
24834 rm -f conftest.o conftest.s
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24838 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24842 cat >>confdefs.h <<_ACEOF
24843 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24844 _ACEOF
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24848 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24849 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24850 $as_echo_n "(cached) " >&6
24851 else
24852 gcc_cv_as_cfi_sections_directive=no
24853 if test x$gcc_cv_as != x; then
24854 $as_echo ' .text
24855 .cfi_sections .debug_frame, .eh_frame
24856 .cfi_startproc
24857 .cfi_endproc' > conftest.s
24858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24864 then
24865 case $target_os in
24866 win32 | pe | cygwin* | mingw32*)
24867 # Need to check that we generated the correct relocation for the
24868 # .debug_frame section. This was fixed for binutils 2.21.
24869 gcc_cv_as_cfi_sections_directive=no
24870 if test "x$gcc_cv_objdump" != x; then
24871 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24872 grep -i secrel > /dev/null; then
24873 gcc_cv_as_cfi_sections_directive=yes
24878 gcc_cv_as_cfi_sections_directive=yes
24880 esac
24881 else
24882 echo "configure: failed program was" >&5
24883 cat conftest.s >&5
24885 rm -f conftest.o conftest.s
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24889 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24894 cat >>confdefs.h <<_ACEOF
24895 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24896 _ACEOF
24899 # GAS versions up to and including 2.11.0 may mis-optimize
24900 # .eh_frame data.
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24902 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24903 if ${gcc_cv_as_eh_frame+:} false; then :
24904 $as_echo_n "(cached) " >&6
24905 else
24906 gcc_cv_as_eh_frame=no
24907 if test x$gcc_cv_as != x; then
24908 $as_echo ' .text
24909 .LFB1:
24910 .4byte 0
24911 .L1:
24912 .4byte 0
24913 .LFE1:
24914 .section .eh_frame,"aw",@progbits
24915 __FRAME_BEGIN__:
24916 .4byte .LECIE1-.LSCIE1
24917 .LSCIE1:
24918 .4byte 0x0
24919 .byte 0x1
24920 .ascii "z\0"
24921 .byte 0x1
24922 .byte 0x78
24923 .byte 0x1a
24924 .byte 0x0
24925 .byte 0x4
24926 .4byte 1
24927 .p2align 1
24928 .LECIE1:
24929 .LSFDE1:
24930 .4byte .LEFDE1-.LASFDE1
24931 .LASFDE1:
24932 .4byte .LASFDE1-__FRAME_BEGIN__
24933 .4byte .LFB1
24934 .4byte .LFE1-.LFB1
24935 .byte 0x4
24936 .4byte .LFE1-.LFB1
24937 .byte 0x4
24938 .4byte .L1-.LFB1
24939 .LEFDE1:' > conftest.s
24940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24946 then
24947 cat > conftest.lit <<EOF
24948 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24949 0010 01000000 12000000 18000000 00000000 ................
24950 0020 08000000 04080000 0044 .........D
24952 cat > conftest.big <<EOF
24953 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24954 0010 00000001 00000012 00000018 00000000 ................
24955 0020 00000008 04000000 0844 .........D
24957 # If the assembler didn't choke, and we can objdump,
24958 # and we got the correct data, then succeed.
24959 # The text in the here-document typically retains its unix-style line
24960 # endings, while the output of objdump will use host line endings.
24961 # Therefore, use diff -b for the comparisons.
24962 if test x$gcc_cv_objdump != x \
24963 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24964 | tail -3 > conftest.got \
24965 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24966 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24967 then
24968 gcc_cv_as_eh_frame=yes
24969 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24974 test $ac_status = 0; }; }; then
24975 gcc_cv_as_eh_frame=buggy
24976 else
24977 # Uh oh, what do we do now?
24978 gcc_cv_as_eh_frame=no
24980 else
24981 echo "configure: failed program was" >&5
24982 cat conftest.s >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24988 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24992 if test $gcc_cv_as_eh_frame = buggy; then
24994 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24998 # Test if the assembler supports the section flag 'e' or #exclude for
24999 # specifying an excluded section.
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25001 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25002 if ${gcc_cv_as_section_exclude_e+:} false; then :
25003 $as_echo_n "(cached) " >&6
25004 else
25005 gcc_cv_as_section_exclude_e=no
25006 if test x$gcc_cv_as != x; then
25007 $as_echo '.section foo1,"e"
25008 .byte 0,0,0,0' > conftest.s
25009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25012 ac_status=$?
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25015 then
25016 gcc_cv_as_section_exclude_e=yes
25017 else
25018 echo "configure: failed program was" >&5
25019 cat conftest.s >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25025 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25028 if test $gcc_cv_as_section_exclude_e = no; then
25029 case "${target}" in
25030 # Solaris as uses #exclude instead.
25031 *-*-solaris2*)
25032 case "${target}" in
25033 sparc*-*-solaris2*)
25034 conftest_s='.section "foo1", #exclude'
25036 i?86-*-solaris2* | x86_64-*-solaris2*)
25037 conftest_s='.section foo1, #exclude'
25039 esac
25041 esac
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25043 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25044 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25045 $as_echo_n "(cached) " >&6
25046 else
25047 gcc_cv_as_section_exclude_hash=no
25048 if test x$gcc_cv_as != x; then
25049 $as_echo "$conftest_s
25050 .byte 0,0,0,0" > conftest.s
25051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25054 ac_status=$?
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; }
25057 then
25058 gcc_cv_as_section_exclude_hash=yes
25059 else
25060 echo "configure: failed program was" >&5
25061 cat conftest.s >&5
25063 rm -f conftest.o conftest.s
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25067 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25072 cat >>confdefs.h <<_ACEOF
25073 #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`
25074 _ACEOF
25077 # Test if the assembler supports the section flag 'R' for specifying
25078 # section with SHF_GNU_RETAIN.
25079 case "${target}" in
25080 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25081 # assembler supports the section flag 'R', it doesn't mean that
25082 # Solairs ld supports it.
25083 *-*-solaris2*)
25084 gcc_cv_as_shf_gnu_retain=no
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25088 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25089 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_shf_gnu_retain=no
25093 if test x$gcc_cv_as != x; then
25094 $as_echo '.section .foo,"awR",%progbits
25095 .byte 0' > conftest.s
25096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25102 then
25103 gcc_cv_as_shf_gnu_retain=yes
25104 else
25105 echo "configure: failed program was" >&5
25106 cat conftest.s >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25112 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25116 esac
25118 cat >>confdefs.h <<_ACEOF
25119 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25120 _ACEOF
25123 # Test if the assembler supports the section flag 'o' for specifying
25124 # section with link-order.
25125 case "${target}" in
25126 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25127 # assembler supports the section flag 'o', it doesn't mean that
25128 # Solairs ld supports it.
25129 *-*-solaris2*)
25130 gcc_cv_as_section_link_order=no
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25134 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25135 if ${gcc_cv_as_section_link_order+:} false; then :
25136 $as_echo_n "(cached) " >&6
25137 else
25138 gcc_cv_as_section_link_order=no
25139 if test x$gcc_cv_as != x; then
25140 $as_echo '.section .foo,"a"
25141 .byte 0
25142 .section __patchable_function_entries,"awo",%progbits,.foo
25143 .byte 0' > conftest.s
25144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25149 test $ac_status = 0; }; }
25150 then
25151 gcc_cv_as_section_link_order=yes
25152 else
25153 echo "configure: failed program was" >&5
25154 cat conftest.s >&5
25156 rm -f conftest.o conftest.s
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25160 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25164 esac
25166 cat >>confdefs.h <<_ACEOF
25167 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25168 _ACEOF
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25172 $as_echo_n "checking assembler for section merging support... " >&6; }
25173 if ${gcc_cv_as_shf_merge+:} false; then :
25174 $as_echo_n "(cached) " >&6
25175 else
25176 gcc_cv_as_shf_merge=no
25177 if test x$gcc_cv_as != x; then
25178 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25181 (eval $ac_try) 2>&5
25182 ac_status=$?
25183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25184 test $ac_status = 0; }; }
25185 then
25186 gcc_cv_as_shf_merge=yes
25187 else
25188 echo "configure: failed program was" >&5
25189 cat conftest.s >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25195 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25198 if test $gcc_cv_as_shf_merge = no; then
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25200 $as_echo_n "checking assembler for section merging support... " >&6; }
25201 if ${gcc_cv_as_shf_merge+:} false; then :
25202 $as_echo_n "(cached) " >&6
25203 else
25204 gcc_cv_as_shf_merge=no
25205 if test x$gcc_cv_as != x; then
25206 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212 test $ac_status = 0; }; }
25213 then
25214 gcc_cv_as_shf_merge=yes
25215 else
25216 echo "configure: failed program was" >&5
25217 cat conftest.s >&5
25219 rm -f conftest.o conftest.s
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25223 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25228 cat >>confdefs.h <<_ACEOF
25229 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25230 _ACEOF
25233 gcc_cv_ld_aligned_shf_merge=yes
25234 case "$target" in
25235 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25236 # alignment > 1.
25237 sparc*-*-solaris2.11*)
25238 if test x"$gnu_ld" = xno \
25239 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25240 gcc_cv_ld_aligned_shf_merge=no
25243 esac
25245 cat >>confdefs.h <<_ACEOF
25246 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25247 _ACEOF
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25251 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25252 if ${gcc_cv_as_comdat_group+:} false; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 gcc_cv_as_comdat_group=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=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" >&5
25274 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25277 if test $gcc_cv_as_comdat_group = yes; then
25278 gcc_cv_as_comdat_group_percent=no
25279 gcc_cv_as_comdat_group_group=no
25280 else
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25282 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25283 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25284 $as_echo_n "(cached) " >&6
25285 else
25286 gcc_cv_as_comdat_group_percent=no
25287 if test x$gcc_cv_as != x; then
25288 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25295 then
25296 gcc_cv_as_comdat_group_percent=yes
25297 else
25298 echo "configure: failed program was" >&5
25299 cat conftest.s >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25305 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25308 if test $gcc_cv_as_comdat_group_percent = yes; then
25309 gcc_cv_as_comdat_group_group=no
25310 else
25311 case "${target}" in
25312 # Sun as uses a completely different syntax.
25313 *-*-solaris2*)
25314 case "${target}" in
25315 sparc*-*-solaris2*)
25316 conftest_s='
25317 .group foo,".text%foo",#comdat
25318 .section ".text%foo", #alloc,#execinstr,#progbits
25319 .globl foo
25320 foo:
25323 i?86-*-solaris2* | x86_64-*-solaris2*)
25324 conftest_s='
25325 .group foo,.text%foo,#comdat
25326 .section .text%foo, "ax", @progbits
25327 .globl foo
25328 foo:
25331 esac
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25333 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25334 if ${gcc_cv_as_comdat_group_group+:} false; then :
25335 $as_echo_n "(cached) " >&6
25336 else
25337 gcc_cv_as_comdat_group_group=no
25338 if test x$gcc_cv_as != x; then
25339 $as_echo "$conftest_s" > conftest.s
25340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25346 then
25347 gcc_cv_as_comdat_group_group=yes
25348 else
25349 echo "configure: failed program was" >&5
25350 cat conftest.s >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25356 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25360 esac
25361 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25362 gcc_cv_as_comdat_group_group=no
25366 if test x"$ld_is_gold" = xyes; then
25367 comdat_group=yes
25368 elif test x"$ld_is_mold" = xyes; then
25369 comdat_group=yes
25370 elif test $in_tree_ld = yes ; then
25371 comdat_group=no
25372 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 \
25373 && test $in_tree_ld_is_elf = yes; then
25374 comdat_group=yes
25376 elif echo "$ld_ver" | grep GNU > /dev/null; then
25377 comdat_group=yes
25378 if test 0"$ld_date" -lt 20050308; then
25379 if test -n "$ld_date"; then
25380 # If there was date string, but was earlier than 2005-03-08, fail
25381 comdat_group=no
25382 elif test "$ld_vers_major" -lt 2; then
25383 comdat_group=no
25384 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25385 comdat_group=no
25388 else
25389 case "${target}" in
25390 *-*-solaris2.1[1-9]*)
25391 comdat_group=no
25392 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25393 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25394 # version 1.688.
25396 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25397 # least ld version 1.2267.
25398 if test "$ld_vers_major" -gt 1; then
25399 comdat_group=yes
25400 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25401 comdat_group=yes
25402 elif test "$ld_vers_minor" -ge 2267; then
25403 comdat_group=yes
25407 # Assume linkers other than GNU ld don't support COMDAT group.
25408 comdat_group=no
25410 esac
25412 # Allow overriding the automatic COMDAT group tests above.
25413 # Check whether --enable-comdat was given.
25414 if test "${enable_comdat+set}" = set; then :
25415 enableval=$enable_comdat; comdat_group="$enable_comdat"
25418 if test $comdat_group = no; then
25419 gcc_cv_as_comdat_group=no
25420 gcc_cv_as_comdat_group_percent=no
25421 gcc_cv_as_comdat_group_group=no
25424 cat >>confdefs.h <<_ACEOF
25425 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25426 || test $gcc_cv_as_comdat_group_percent = yes \
25427 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25428 _ACEOF
25431 # Restrict this test to Solaris/x86: other targets define this statically.
25432 case "${target}" in
25433 i?86-*-solaris2* | x86_64-*-solaris2*)
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25435 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25436 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25437 hidden_linkonce=yes
25438 else
25439 case "${target}" in
25440 # Full support for hidden thunks in linkonce sections only appeared in
25441 # Solaris 11/OpenSolaris.
25442 *-*-solaris2.1[1-9]*)
25443 hidden_linkonce=yes
25446 hidden_linkonce=no
25448 esac
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25451 $as_echo "$hidden_linkonce" >&6; }
25453 cat >>confdefs.h <<_ACEOF
25454 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25455 _ACEOF
25458 esac
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25461 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25462 if ${gcc_cv_as_is_stmt+:} false; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 gcc_cv_as_is_stmt=no
25466 if test x$gcc_cv_as != x; then
25467 $as_echo ' .text
25468 .file 1 "conf.c"
25469 .loc 1 1 0 is_stmt 1' > conftest.s
25470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25476 then
25477 gcc_cv_as_is_stmt=yes
25478 else
25479 echo "configure: failed program was" >&5
25480 cat conftest.s >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25486 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25487 if test $gcc_cv_as_is_stmt = yes; then
25489 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25495 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25496 if ${gcc_cv_as_discriminator+:} false; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_discriminator=no
25500 if test x$gcc_cv_as != x; then
25501 $as_echo ' .text
25502 .file 1 "conf.c"
25503 .loc 1 1 0 discriminator 1' > conftest.s
25504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25510 then
25511 gcc_cv_as_discriminator=yes
25512 else
25513 echo "configure: failed program was" >&5
25514 cat conftest.s >&5
25516 rm -f conftest.o conftest.s
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25520 $as_echo "$gcc_cv_as_discriminator" >&6; }
25521 if test $gcc_cv_as_discriminator = yes; then
25523 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25528 # Catch the newlib flag of the same name so we can gate GCC features on it.
25529 # Check whether --enable-newlib-nano-formatted-io was given.
25530 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25531 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25532 yes|no)
25535 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25537 esac
25541 # Thread-local storage - the check is heavily parameterized.
25542 conftest_s=
25543 tls_as_opt=
25544 case "$target" in
25545 alpha*-*-*)
25546 conftest_s='
25547 .section ".tdata","awT",@progbits
25548 foo: .long 25
25549 .text
25550 ldq $27,__tls_get_addr($29) !literal!1
25551 lda $16,foo($29) !tlsgd!1
25552 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25553 ldq $27,__tls_get_addr($29) !literal!2
25554 lda $16,foo($29) !tlsldm!2
25555 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25556 ldq $1,foo($29) !gotdtprel
25557 ldah $2,foo($29) !dtprelhi
25558 lda $3,foo($2) !dtprello
25559 lda $4,foo($29) !dtprel
25560 ldq $1,foo($29) !gottprel
25561 ldah $2,foo($29) !tprelhi
25562 lda $3,foo($2) !tprello
25563 lda $4,foo($29) !tprel'
25564 tls_as_opt=--fatal-warnings
25566 arc*-*-*)
25567 conftest_s='
25568 add_s r0,r0, @foo@tpoff'
25570 cris-*-*|crisv32-*-*)
25571 conftest_s='
25572 .section ".tdata","awT",@progbits
25573 x: .long 25
25574 .text
25575 move.d x:IE,$r10
25576 nop'
25577 tls_as_opt=--fatal-warnings
25579 frv*-*-*)
25580 conftest_s='
25581 .section ".tdata","awT",@progbits
25582 x: .long 25
25583 .text
25584 call #gettlsoff(x)'
25586 hppa*-*-linux*)
25587 conftest_s='
25588 t1: .reg %r20
25589 t2: .reg %r21
25590 gp: .reg %r19
25591 .section ".tdata","awT",@progbits
25592 foo: .long 25
25593 .text
25594 .align 4
25595 addil LT%foo-$tls_gdidx$,gp
25596 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25597 b __tls_get_addr
25599 addil LT%foo-$tls_ldidx$,gp
25600 b __tls_get_addr
25601 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25602 addil LR%foo-$tls_dtpoff$,%ret0
25603 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25604 mfctl %cr27,%t1
25605 addil LT%foo-$tls_ieoff$,gp
25606 ldw RT%foo-$tls_ieoff$(%r1),%t2
25607 add %t1,%t2,%t3
25608 mfctl %cr27,%t1
25609 addil LR%foo-$tls_leoff$,%t1
25610 ldo RR%foo-$tls_leoff$(%r1),%t2'
25611 tls_as_opt=--fatal-warnings
25613 arm*-*-*)
25614 conftest_s='
25615 .section ".tdata","awT",%progbits
25616 foo: .long 25
25617 .text
25618 .word foo(gottpoff)
25619 .word foo(tpoff)
25620 .word foo(tlsgd)
25621 .word foo(tlsldm)
25622 .word foo(tlsldo)'
25624 i[34567]86-*-* | x86_64-*-*)
25625 case "$target" in
25626 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25627 on_solaris=yes
25630 on_solaris=no
25632 esac
25633 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25634 conftest_s='
25635 .section .tdata,"awt",@progbits'
25636 tls_section_flag=t
25638 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25640 else
25641 conftest_s='
25642 .section ".tdata","awT",@progbits'
25643 tls_section_flag=T
25644 tls_as_opt="--fatal-warnings"
25646 case "$target" in
25647 i[34567]86-*-*)
25648 if test x$on_solaris = xyes; then
25649 case $gas_flag in
25650 yes) tls_as_opt="$tls_as_opt --32" ;;
25651 esac
25653 conftest_s="$conftest_s
25654 foo: .long 25
25655 .text
25656 movl %gs:0, %eax
25657 leal foo@tlsgd(,%ebx,1), %eax
25658 leal foo@tlsldm(%ebx), %eax
25659 leal foo@dtpoff(%eax), %edx
25660 movl foo@gottpoff(%ebx), %eax
25661 subl foo@gottpoff(%ebx), %eax
25662 addl foo@gotntpoff(%ebx), %eax
25663 movl foo@indntpoff, %eax
25664 movl \$foo@tpoff, %eax
25665 subl \$foo@tpoff, %eax
25666 leal foo@ntpoff(%ecx), %eax"
25668 x86_64-*-*)
25669 if test x$on_solaris = xyes; then
25670 case $gas_flag in
25671 yes) tls_as_opt="$tls_as_opt --64" ;;
25672 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25673 esac
25675 conftest_s="$conftest_s
25676 foo: .long 25
25677 .text
25678 movq %fs:0, %rax
25679 leaq foo@tlsgd(%rip), %rdi
25680 leaq foo@tlsld(%rip), %rdi
25681 leaq foo@dtpoff(%rax), %rdx
25682 movq foo@gottpoff(%rip), %rax
25683 movq \$foo@tpoff, %rax"
25685 esac
25687 ia64-*-*)
25688 conftest_s='
25689 .section ".tdata","awT",@progbits
25690 foo: data8 25
25691 .text
25692 addl r16 = @ltoff(@dtpmod(foo#)), gp
25693 addl r17 = @ltoff(@dtprel(foo#)), gp
25694 addl r18 = @ltoff(@tprel(foo#)), gp
25695 addl r19 = @dtprel(foo#), gp
25696 adds r21 = @dtprel(foo#), r13
25697 movl r23 = @dtprel(foo#)
25698 addl r20 = @tprel(foo#), gp
25699 adds r22 = @tprel(foo#), r13
25700 movl r24 = @tprel(foo#)'
25701 tls_as_opt=--fatal-warnings
25703 loongarch*-*-*)
25704 conftest_s='
25705 .section .tdata,"awT",@progbits
25706 x: .word 2
25707 .text
25708 la.tls.gd $a0,x
25709 bl __tls_get_addr'
25710 tls_first_major=0
25711 tls_first_minor=0
25712 tls_as_opt='--fatal-warnings'
25714 microblaze*-*-*)
25715 conftest_s='
25716 .section .tdata,"awT",@progbits
25718 .word 2
25719 .text
25720 addik r5,r20,x@TLSGD
25721 addik r5,r20,x@TLSLDM'
25722 tls_as_opt='--fatal-warnings'
25724 mips*-*-*)
25725 conftest_s='
25726 .section .tdata,"awT",@progbits
25728 .word 2
25729 .text
25730 addiu $4, $28, %tlsgd(x)
25731 addiu $4, $28, %tlsldm(x)
25732 lui $4, %dtprel_hi(x)
25733 addiu $4, $4, %dtprel_lo(x)
25734 lw $4, %gottprel(x)($28)
25735 lui $4, %tprel_hi(x)
25736 addiu $4, $4, %tprel_lo(x)'
25737 tls_as_opt='-32 --fatal-warnings'
25739 m68k-*-*)
25740 conftest_s='
25741 .section .tdata,"awT",@progbits
25743 .word 2
25744 .text
25745 foo:
25746 move.l x@TLSGD(%a5),%a0
25747 move.l x@TLSLDM(%a5),%a0
25748 move.l x@TLSLDO(%a5),%a0
25749 move.l x@TLSIE(%a5),%a0
25750 move.l x@TLSLE(%a5),%a0'
25751 tls_as_opt='--fatal-warnings'
25753 nios2-*-*)
25754 conftest_s='
25755 .section ".tdata","awT",@progbits'
25756 tls_as_opt="--fatal-warnings"
25758 aarch64*-*-*)
25759 conftest_s='
25760 .section ".tdata","awT",%progbits
25761 foo: .long 25
25762 .text
25763 adrp x0, :tlsgd:x
25764 add x0, x0, #:tlsgd_lo12:x
25765 bl __tls_get_addr
25766 nop'
25767 tls_as_opt='--fatal-warnings'
25769 or1k*-*-*)
25770 conftest_s='
25771 .section ".tdata","awT",@progbits
25772 foo: .long 25
25773 .text
25774 l.movhi r3, tpoffha(foo)
25775 l.add r3, r3, r10
25776 l.lwz r4, tpofflo(foo)(r3)'
25777 tls_as_opt=--fatal-warnings
25779 powerpc-ibm-aix*)
25780 conftest_s='
25781 .extern __get_tpointer
25782 .toc
25783 LC..1:
25784 .tc a[TC],a[TL]@le
25785 .csect .text[PR]
25786 .tlstest:
25787 lwz 9,LC..1(2)
25788 bla __get_tpointer
25789 lwzx 3,9,3
25790 .globl a
25791 .csect a[TL],4
25793 .space 4'
25795 powerpc64*-*-*)
25796 conftest_s='
25797 .section ".tdata","awT",@progbits
25798 .align 3
25799 ld0: .space 8
25800 ld1: .space 8
25801 x1: .space 8
25802 x2: .space 8
25803 x3: .space 8
25804 .text
25805 addi 3,2,ld0@got@tlsgd
25806 bl .__tls_get_addr
25808 addi 3,2,ld1@toc
25809 bl .__tls_get_addr
25811 addi 3,2,x1@got@tlsld
25812 bl .__tls_get_addr
25814 addi 9,3,x1@dtprel
25815 bl .__tls_get_addr
25817 addis 9,3,x2@dtprel@ha
25818 addi 9,9,x2@dtprel@l
25819 bl .__tls_get_addr
25821 ld 9,x3@got@dtprel(2)
25822 add 9,9,3
25823 bl .__tls_get_addr
25824 nop'
25825 tls_as_opt="-a64 --fatal-warnings"
25827 powerpc*-*-*)
25828 conftest_s='
25829 .section ".tdata","awT",@progbits
25830 .align 2
25831 ld0: .space 4
25832 ld1: .space 4
25833 x1: .space 4
25834 x2: .space 4
25835 x3: .space 4
25836 .text
25837 addi 3,31,ld0@got@tlsgd
25838 bl __tls_get_addr
25839 addi 3,31,x1@got@tlsld
25840 bl __tls_get_addr
25841 addi 9,3,x1@dtprel
25842 addis 9,3,x2@dtprel@ha
25843 addi 9,9,x2@dtprel@l
25844 lwz 9,x3@got@tprel(31)
25845 add 9,9,x@tls
25846 addi 9,2,x1@tprel
25847 addis 9,2,x2@tprel@ha
25848 addi 9,9,x2@tprel@l'
25849 tls_as_opt="-a32 --fatal-warnings"
25851 riscv*-*-*)
25852 conftest_s='
25853 .section .tdata,"awT",@progbits
25854 x: .word 2
25855 .text
25856 la.tls.gd a0,x
25857 call __tls_get_addr'
25858 tls_as_opt='--fatal-warnings'
25860 s390-*-*)
25861 conftest_s='
25862 .section ".tdata","awT",@progbits
25863 foo: .long 25
25864 .text
25865 .long foo@TLSGD
25866 .long foo@TLSLDM
25867 .long foo@DTPOFF
25868 .long foo@NTPOFF
25869 .long foo@GOTNTPOFF
25870 .long foo@INDNTPOFF
25871 l %r1,foo@GOTNTPOFF(%r12)
25872 l %r1,0(%r1):tls_load:foo
25873 bas %r14,0(%r1,%r13):tls_gdcall:foo
25874 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25875 tls_as_opt="-m31 --fatal-warnings"
25877 s390x-*-*)
25878 conftest_s='
25879 .section ".tdata","awT",@progbits
25880 foo: .long 25
25881 .text
25882 .quad foo@TLSGD
25883 .quad foo@TLSLDM
25884 .quad foo@DTPOFF
25885 .quad foo@NTPOFF
25886 .quad foo@GOTNTPOFF
25887 lg %r1,foo@GOTNTPOFF(%r12)
25888 larl %r1,foo@INDNTPOFF
25889 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25890 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25891 tls_as_opt="-m64 -Aesame --fatal-warnings"
25893 sh-*-* | sh[123456789lbe]*-*-*)
25894 conftest_s='
25895 .section ".tdata","awT",@progbits
25896 foo: .long 25
25897 .text
25898 .long foo@TLSGD
25899 .long foo@TLSLDM
25900 .long foo@DTPOFF
25901 .long foo@GOTTPOFF
25902 .long foo@TPOFF'
25903 tls_as_opt=--fatal-warnings
25905 sparc*-*-*)
25906 case "$target" in
25907 sparc*-sun-solaris2.*)
25908 on_solaris=yes
25911 on_solaris=no
25913 esac
25914 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25915 conftest_s='
25916 .section ".tdata",#alloc,#write,#tls'
25917 else
25918 conftest_s='
25919 .section ".tdata","awT",@progbits'
25920 tls_as_opt="-32 --fatal-warnings"
25922 conftest_s="$conftest_s
25923 foo: .long 25
25924 .text
25925 sethi %tgd_hi22(foo), %o0
25926 add %o0, %tgd_lo10(foo), %o1
25927 add %l7, %o1, %o0, %tgd_add(foo)
25928 call __tls_get_addr, %tgd_call(foo)
25929 sethi %tldm_hi22(foo), %l1
25930 add %l1, %tldm_lo10(foo), %l2
25931 add %l7, %l2, %o0, %tldm_add(foo)
25932 call __tls_get_addr, %tldm_call(foo)
25933 sethi %tldo_hix22(foo), %l3
25934 xor %l3, %tldo_lox10(foo), %l4
25935 add %o0, %l4, %l5, %tldo_add(foo)
25936 sethi %tie_hi22(foo), %o3
25937 add %o3, %tie_lo10(foo), %o3
25938 ld [%l7 + %o3], %o2, %tie_ld(foo)
25939 add %g7, %o2, %o4, %tie_add(foo)
25940 sethi %tle_hix22(foo), %l1
25941 xor %l1, %tle_lox10(foo), %o5
25942 ld [%g7 + %o5], %o1"
25944 xtensa*-*-*)
25945 conftest_s='
25946 .section ".tdata","awT",@progbits
25947 foo: .long 25
25948 .text
25949 movi a8, foo@TLSFUNC
25950 movi a10, foo@TLSARG
25951 callx8.tls a8, foo@TLSCALL'
25953 esac
25954 set_have_as_tls=no
25955 if test "x$enable_tls" = xno ; then
25956 : # TLS explicitly disabled.
25957 elif test "x$enable_tls" = xyes ; then
25958 set_have_as_tls=yes # TLS explicitly enabled.
25959 elif test -z "$conftest_s"; then
25960 : # If we don't have a check, assume no support.
25961 else
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25963 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25964 if ${gcc_cv_as_tls+:} false; then :
25965 $as_echo_n "(cached) " >&6
25966 else
25967 gcc_cv_as_tls=no
25968 if test x$gcc_cv_as != x; then
25969 $as_echo "$conftest_s" > conftest.s
25970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25976 then
25977 gcc_cv_as_tls=yes
25978 else
25979 echo "configure: failed program was" >&5
25980 cat conftest.s >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25986 $as_echo "$gcc_cv_as_tls" >&6; }
25987 if test $gcc_cv_as_tls = yes; then
25988 set_have_as_tls=yes
25992 if test $set_have_as_tls = yes ; then
25994 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25998 # Target-specific assembler checks.
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26001 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26002 gcc_cv_ld_static_dynamic=no
26003 gcc_cv_ld_static_option='-Bstatic'
26004 gcc_cv_ld_dynamic_option='-Bdynamic'
26005 if test $in_tree_ld = yes ; then
26006 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
26007 gcc_cv_ld_static_dynamic=yes
26009 elif test x$gcc_cv_ld != x; then
26010 # Check if linker supports -Bstatic/-Bdynamic option
26011 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26012 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26013 gcc_cv_ld_static_dynamic=yes
26014 else
26015 case "$target" in
26016 # AIX ld uses -b flags
26017 *-*-aix4.[23]* | *-*-aix[5-9]*)
26018 gcc_cv_ld_static_dynamic=yes
26019 gcc_cv_ld_static_option="-bstatic"
26020 gcc_cv_ld_dynamic_option="-bdynamic"
26022 # HP-UX ld uses -a flags to select between shared and archive.
26023 *-*-hpux*)
26024 if test x"$gnu_ld" = xno; then
26025 gcc_cv_ld_static_dynamic=yes
26026 gcc_cv_ld_static_option="-aarchive_shared"
26027 gcc_cv_ld_dynamic_option="-adefault"
26030 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26031 *-*-solaris2*)
26032 gcc_cv_ld_static_dynamic=yes
26034 esac
26037 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26039 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26042 cat >>confdefs.h <<_ACEOF
26043 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26044 _ACEOF
26047 cat >>confdefs.h <<_ACEOF
26048 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26049 _ACEOF
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26053 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26056 $as_echo_n "checking linker --version-script option... " >&6; }
26057 gcc_cv_ld_version_script=no
26058 ld_version_script_option=''
26059 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26060 gcc_cv_ld_version_script=yes
26061 ld_version_script_option='--version-script'
26062 elif test x$gcc_cv_ld != x; then
26063 case "$target" in
26064 # Solaris 2 ld always supports -M. It also supports a subset of
26065 # --version-script since Solaris 11.4, but requires
26066 # -z gnu-version-script-compat to activate.
26067 *-*-solaris2*)
26068 gcc_cv_ld_version_script=yes
26069 ld_version_script_option='-M'
26071 esac
26073 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26075 $as_echo "$gcc_cv_ld_version_script" >&6; }
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26079 $as_echo_n "checking linker soname option... " >&6; }
26080 gcc_cv_ld_soname=no
26081 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26082 gcc_cv_ld_soname=yes
26083 ld_soname_option='-soname'
26084 elif test x$gcc_cv_ld != x; then
26085 case "$target" in
26086 *-*-darwin*)
26087 gcc_cv_ld_soname=yes
26088 ld_soname_option='-install_name'
26090 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26091 # ld compatiblity since some Solaris 10 update.
26092 *-*-solaris2*)
26093 gcc_cv_ld_soname=yes
26094 ld_soname_option='-h'
26096 esac
26098 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26100 $as_echo "$gcc_cv_ld_soname" >&6; }
26103 if test x"$demangler_in_ld" = xyes; then
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26105 $as_echo_n "checking linker --demangle support... " >&6; }
26106 gcc_cv_ld_demangle=no
26107 if test $in_tree_ld = yes; then
26108 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 \
26109 gcc_cv_ld_demangle=yes
26111 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26112 # Check if the GNU linker supports --demangle option
26113 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26114 gcc_cv_ld_demangle=yes
26117 if test x"$gcc_cv_ld_demangle" = xyes; then
26119 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26123 $as_echo "$gcc_cv_ld_demangle" >&6; }
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26127 $as_echo_n "checking linker plugin support... " >&6; }
26128 gcc_cv_lto_plugin=0
26129 if test -f liblto_plugin.la; then
26130 save_ld_ver="$ld_ver"
26131 save_ld_vers_major="$ld_vers_major"
26132 save_ld_vers_minor="$ld_vers_minor"
26133 save_ld_is_gold="$ld_is_gold"
26135 ld_is_gold=no
26137 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26138 ld_ver="GNU ld"
26139 # FIXME: ld_is_gold?
26140 ld_vers_major="$gcc_cv_gld_major_version"
26141 ld_vers_minor="$gcc_cv_gld_minor_version"
26142 else
26143 # Determine plugin linker version.
26144 # FIXME: Partial duplicate from above, generalize.
26145 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26146 if echo "$ld_ver" | grep GNU > /dev/null; then
26147 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26148 ld_is_gold=yes
26149 ld_vers=`echo $ld_ver | sed -n \
26150 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26151 else
26152 ld_vers=`echo $ld_ver | sed -n \
26153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26155 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26156 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26160 # Determine plugin support.
26161 if echo "$ld_ver" | grep GNU > /dev/null; then
26162 # Require GNU ld or gold 2.21+ for plugin support by default.
26163 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26164 gcc_cv_lto_plugin=2
26165 elif test "$ld_is_mold" = yes; then
26166 gcc_cv_lto_plugin=2
26167 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26168 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26169 gcc_cv_lto_plugin=1
26173 ld_ver="$save_ld_ver"
26174 ld_vers_major="$save_ld_vers_major"
26175 ld_vers_minor="$save_ld_vers_minor"
26176 ld_is_gold="$save_ld_is_gold"
26179 cat >>confdefs.h <<_ACEOF
26180 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26181 _ACEOF
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26184 $as_echo "$gcc_cv_lto_plugin" >&6; }
26186 # Target OS-specific assembler checks.
26188 case "$target_os" in
26189 darwin*)
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26191 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26192 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26193 $as_echo_n "(cached) " >&6
26194 else
26195 gcc_cv_as_mmacosx_version_min=no
26196 if test x$gcc_cv_as != x; then
26197 $as_echo '.text' > conftest.s
26198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26200 (eval $ac_try) 2>&5
26201 ac_status=$?
26202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26203 test $ac_status = 0; }; }
26204 then
26205 gcc_cv_as_mmacosx_version_min=yes
26206 else
26207 echo "configure: failed program was" >&5
26208 cat conftest.s >&5
26210 rm -f conftest.o conftest.s
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26214 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26215 if test $gcc_cv_as_mmacosx_version_min = yes; then
26217 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26222 esac
26224 # Target CPU-specific assembler checks.
26226 case "$target" in
26227 aarch64*-*-*)
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26229 $as_echo_n "checking assembler for -mabi option... " >&6; }
26230 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26231 $as_echo_n "(cached) " >&6
26232 else
26233 gcc_cv_as_aarch64_mabi=no
26234 if test x$gcc_cv_as != x; then
26235 $as_echo '.text' > conftest.s
26236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238 (eval $ac_try) 2>&5
26239 ac_status=$?
26240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241 test $ac_status = 0; }; }
26242 then
26243 gcc_cv_as_aarch64_mabi=yes
26244 else
26245 echo "configure: failed program was" >&5
26246 cat conftest.s >&5
26248 rm -f conftest.o conftest.s
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26252 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26255 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26257 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26259 else
26260 if test x$with_abi = xilp32; then
26261 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26262 Upgrade the Assembler." "$LINENO" 5
26264 if test x"$with_multilib_list" = xdefault; then
26265 TM_MULTILIB_CONFIG=lp64
26266 else
26267 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26268 for aarch64_multilib in ${aarch64_multilibs}; do
26269 case ${aarch64_multilib} in
26270 ilp32)
26271 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26272 Upgrade the Assembler." "$LINENO" 5
26276 esac
26277 done
26280 # Check if we have binutils support for relocations types needed by -fpic
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26282 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26283 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26286 gcc_cv_as_aarch64_picreloc=no
26287 if test x$gcc_cv_as != x; then
26288 $as_echo '
26289 .text
26290 ldr x0, [x2, #:gotpage_lo15:globalsym]
26291 ' > conftest.s
26292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26294 (eval $ac_try) 2>&5
26295 ac_status=$?
26296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26297 test $ac_status = 0; }; }
26298 then
26299 gcc_cv_as_aarch64_picreloc=yes
26300 else
26301 echo "configure: failed program was" >&5
26302 cat conftest.s >&5
26304 rm -f conftest.o conftest.s
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26308 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26309 if test $gcc_cv_as_aarch64_picreloc = yes; then
26311 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26315 # Enable Branch Target Identification Mechanism and Return Address
26316 # Signing by default.
26317 # Check whether --enable-standard-branch-protection was given.
26318 if test "${enable_standard_branch_protection+set}" = set; then :
26319 enableval=$enable_standard_branch_protection;
26320 case $enableval in
26321 yes)
26322 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26327 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26328 Valid choices are 'yes' and 'no'." "$LINENO" 5
26330 esac
26334 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26335 # Check whether --enable-fix-cortex-a53-835769 was given.
26336 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26337 enableval=$enable_fix_cortex_a53_835769;
26338 case $enableval in
26339 yes)
26340 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26345 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26346 Valid choices are 'yes' and 'no'." "$LINENO" 5
26349 esac
26353 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26354 # Check whether --enable-fix-cortex-a53-843419 was given.
26355 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26356 enableval=$enable_fix_cortex_a53_843419;
26357 case $enableval in
26358 yes)
26359 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26364 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26365 Valid choices are 'yes' and 'no'." "$LINENO" 5
26368 esac
26374 # All TARGET_ABI_OSF targets.
26375 alpha*-*-linux* | alpha*-*-*bsd*)
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26377 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26378 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26379 $as_echo_n "(cached) " >&6
26380 else
26381 gcc_cv_as_alpha_explicit_relocs=no
26382 if test x$gcc_cv_as != x; then
26383 $as_echo ' .set nomacro
26384 .text
26385 extbl $3, $2, $3 !lituse_bytoff!1
26386 ldq $2, a($29) !literal!1
26387 ldq $4, b($29) !literal!2
26388 ldq_u $3, 0($2) !lituse_base!1
26389 ldq $27, f($29) !literal!5
26390 jsr $26, ($27), f !lituse_jsr!5
26391 ldah $29, 0($26) !gpdisp!3
26392 lda $0, c($29) !gprel
26393 ldah $1, d($29) !gprelhigh
26394 lda $1, d($1) !gprellow
26395 lda $29, 0($29) !gpdisp!3' > conftest.s
26396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398 (eval $ac_try) 2>&5
26399 ac_status=$?
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; }
26402 then
26403 gcc_cv_as_alpha_explicit_relocs=yes
26404 else
26405 echo "configure: failed program was" >&5
26406 cat conftest.s >&5
26408 rm -f conftest.o conftest.s
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26412 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26413 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26415 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26420 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26421 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26422 $as_echo_n "(cached) " >&6
26423 else
26424 gcc_cv_as_alpha_jsrdirect_relocs=no
26425 if test x$gcc_cv_as != x; then
26426 $as_echo ' .set nomacro
26427 .text
26428 ldq $27, a($29) !literal!1
26429 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26435 test $ac_status = 0; }; }
26436 then
26437 gcc_cv_as_alpha_jsrdirect_relocs=yes
26438 else
26439 echo "configure: failed program was" >&5
26440 cat conftest.s >&5
26442 rm -f conftest.o conftest.s
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26446 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26447 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26449 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26455 avr-*-*)
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26457 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26458 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26459 $as_echo_n "(cached) " >&6
26460 else
26461 gcc_cv_as_avr_mlink_relax=no
26462 if test x$gcc_cv_as != x; then
26463 $as_echo '.text' > conftest.s
26464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26470 then
26471 gcc_cv_as_avr_mlink_relax=yes
26472 else
26473 echo "configure: failed program was" >&5
26474 cat conftest.s >&5
26476 rm -f conftest.o conftest.s
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26480 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26481 if test $gcc_cv_as_avr_mlink_relax = yes; then
26483 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26489 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26490 if ${gcc_cv_as_avr_mrmw+:} false; then :
26491 $as_echo_n "(cached) " >&6
26492 else
26493 gcc_cv_as_avr_mrmw=no
26494 if test x$gcc_cv_as != x; then
26495 $as_echo '.text' > conftest.s
26496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26502 then
26503 gcc_cv_as_avr_mrmw=yes
26504 else
26505 echo "configure: failed program was" >&5
26506 cat conftest.s >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26512 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26513 if test $gcc_cv_as_avr_mrmw = yes; then
26515 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26521 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26522 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26523 $as_echo_n "(cached) " >&6
26524 else
26525 gcc_cv_as_avr_mgccisr=no
26526 if test x$gcc_cv_as != x; then
26527 $as_echo '.text
26528 __gcc_isr 1
26529 __gcc_isr 2
26530 __gcc_isr 0,r24
26531 ' > conftest.s
26532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26538 then
26539 gcc_cv_as_avr_mgccisr=yes
26540 else
26541 echo "configure: failed program was" >&5
26542 cat conftest.s >&5
26544 rm -f conftest.o conftest.s
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26548 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26549 if test $gcc_cv_as_avr_mgccisr = yes; then
26551 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26556 # Check how default linker description file implements .rodata for
26557 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26558 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26560 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26561 cat > conftest.s <<EOF
26562 .section .rodata,"a",@progbits
26563 .global xxvaryy
26564 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26565 xxvaryy:
26566 .word 1
26568 rm -f conftest.nm
26569 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26577 (eval $ac_try) 2>&5
26578 ac_status=$?
26579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26580 test $ac_status = 0; }; }
26581 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26586 test $ac_status = 0; }; }
26587 if test -s conftest.nm
26588 then
26589 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26591 $as_echo "yes" >&6; }
26593 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26595 else
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26597 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26598 echo "$as_me: nm output was" >&5
26599 cat conftest.nm >&5
26600 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26601 { $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
26602 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26604 else
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26606 $as_echo "test failed" >&6; }
26607 echo "$as_me: failed program was" >&5
26608 cat conftest.s >&5
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26610 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26612 rm -f conftest.s conftest.o conftest.elf conftest.nm
26615 cris-*-*)
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26617 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26618 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26619 $as_echo_n "(cached) " >&6
26620 else
26621 gcc_cv_as_cris_no_mul_bug=no
26622 if test x$gcc_cv_as != x; then
26623 $as_echo '.text' > conftest.s
26624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26629 test $ac_status = 0; }; }
26630 then
26631 gcc_cv_as_cris_no_mul_bug=yes
26632 else
26633 echo "configure: failed program was" >&5
26634 cat conftest.s >&5
26636 rm -f conftest.o conftest.s
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26640 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26641 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26643 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26649 sparc*-*-*)
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26651 $as_echo_n "checking assembler for -relax option... " >&6; }
26652 if ${gcc_cv_as_sparc_relax+:} false; then :
26653 $as_echo_n "(cached) " >&6
26654 else
26655 gcc_cv_as_sparc_relax=no
26656 if test x$gcc_cv_as != x; then
26657 $as_echo '.text' > conftest.s
26658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26660 (eval $ac_try) 2>&5
26661 ac_status=$?
26662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26663 test $ac_status = 0; }; }
26664 then
26665 gcc_cv_as_sparc_relax=yes
26666 else
26667 echo "configure: failed program was" >&5
26668 cat conftest.s >&5
26670 rm -f conftest.o conftest.s
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26674 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26675 if test $gcc_cv_as_sparc_relax = yes; then
26677 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26683 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26684 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_as_sparc_gotdata_op=no
26688 if test x$gcc_cv_as != x; then
26689 $as_echo '.text
26690 .align 4
26691 foo:
26693 bar:
26694 sethi %gdop_hix22(foo), %g1
26695 xor %g1, %gdop_lox10(foo), %g1
26696 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702 test $ac_status = 0; }; }
26703 then
26704 if test x$gcc_cv_ld != x \
26705 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26706 if test x$gcc_cv_objdump != x; then
26707 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26708 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26709 gcc_cv_as_sparc_gotdata_op=no
26710 else
26711 gcc_cv_as_sparc_gotdata_op=yes
26715 rm -f conftest
26716 else
26717 echo "configure: failed program was" >&5
26718 cat conftest.s >&5
26720 rm -f conftest.o conftest.s
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26724 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26725 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26727 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26733 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26734 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26735 $as_echo_n "(cached) " >&6
26736 else
26737 gcc_cv_as_sparc_ua_pcrel=no
26738 if test x$gcc_cv_as != x; then
26739 $as_echo '.text
26740 foo:
26742 .data
26743 .align 4
26744 .byte 0
26745 .uaword %r_disp32(foo)' > conftest.s
26746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26751 test $ac_status = 0; }; }
26752 then
26753 if test x$gcc_cv_ld != x \
26754 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26755 gcc_cv_as_sparc_ua_pcrel=yes
26757 rm -f conftest
26758 else
26759 echo "configure: failed program was" >&5
26760 cat conftest.s >&5
26762 rm -f conftest.o conftest.s
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26766 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26767 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26769 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26773 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26774 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26775 $as_echo_n "(cached) " >&6
26776 else
26777 gcc_cv_as_sparc_ua_pcrel_hidden=no
26778 if test x$gcc_cv_as != x; then
26779 $as_echo '.data
26780 .align 4
26781 .byte 0x31
26782 .uaword %r_disp32(foo)
26783 .byte 0x32, 0x33, 0x34
26784 .global foo
26785 .hidden foo
26786 foo:
26787 .skip 4' > conftest.s
26788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26790 (eval $ac_try) 2>&5
26791 ac_status=$?
26792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26793 test $ac_status = 0; }; }
26794 then
26795 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26796 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26797 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26798 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26799 if $gcc_cv_objdump -R conftest 2> /dev/null \
26800 | grep 'DISP32' > /dev/null 2>&1; then
26802 else
26803 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26806 rm -f conftest
26807 else
26808 echo "configure: failed program was" >&5
26809 cat conftest.s >&5
26811 rm -f conftest.o conftest.s
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26815 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26816 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26818 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26824 # unaligned pcrel relocs
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26827 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26828 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26829 $as_echo_n "(cached) " >&6
26830 else
26831 gcc_cv_as_sparc_offsetable_lo10=no
26832 if test x$gcc_cv_as != x; then
26833 $as_echo '.text
26834 or %g1, %lo(ab) + 12, %g1
26835 or %g1, %lo(ab + 12), %g1' > conftest.s
26836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26838 (eval $ac_try) 2>&5
26839 ac_status=$?
26840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841 test $ac_status = 0; }; }
26842 then
26843 if test x$gcc_cv_objdump != x \
26844 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26845 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26846 gcc_cv_as_sparc_offsetable_lo10=yes
26848 else
26849 echo "configure: failed program was" >&5
26850 cat conftest.s >&5
26852 rm -f conftest.o conftest.s
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26856 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26857 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26859 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26865 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26866 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_as_sparc_fmaf=no
26870 if test x$gcc_cv_as != x; then
26871 $as_echo '.text
26872 .register %g2, #scratch
26873 .register %g3, #scratch
26874 .align 4
26875 fmaddd %f0, %f2, %f4, %f6
26876 addxccc %g1, %g2, %g3
26877 fsrl32 %f2, %f4, %f8
26878 fnaddd %f10, %f12, %f14' > conftest.s
26879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26885 then
26886 gcc_cv_as_sparc_fmaf=yes
26887 else
26888 echo "configure: failed program was" >&5
26889 cat conftest.s >&5
26891 rm -f conftest.o conftest.s
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26895 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26896 if test $gcc_cv_as_sparc_fmaf = yes; then
26898 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26904 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26905 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26906 $as_echo_n "(cached) " >&6
26907 else
26908 gcc_cv_as_sparc_sparc4=no
26909 if test x$gcc_cv_as != x; then
26910 $as_echo '.text
26911 .register %g2, #scratch
26912 .register %g3, #scratch
26913 .align 4
26914 cxbe %g2, %g3, 1f
26915 1: cwbneg %g2, %g3, 1f
26916 1: sha1
26918 aes_kexpand0 %f4, %f6, %f8
26919 des_round %f38, %f40, %f42, %f44
26920 camellia_f %f54, %f56, %f58, %f60
26921 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26924 (eval $ac_try) 2>&5
26925 ac_status=$?
26926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26927 test $ac_status = 0; }; }
26928 then
26929 gcc_cv_as_sparc_sparc4=yes
26930 else
26931 echo "configure: failed program was" >&5
26932 cat conftest.s >&5
26934 rm -f conftest.o conftest.s
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26938 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26939 if test $gcc_cv_as_sparc_sparc4 = yes; then
26941 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26947 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26948 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26949 $as_echo_n "(cached) " >&6
26950 else
26951 gcc_cv_as_sparc_sparc5=no
26952 if test x$gcc_cv_as != x; then
26953 $as_echo '.text
26954 .register %g2, #scratch
26955 .register %g3, #scratch
26956 .align 4
26957 subxc %g1, %g2, %g3
26958 fpadd8 %f0, %f2, %f4' > conftest.s
26959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26961 (eval $ac_try) 2>&5
26962 ac_status=$?
26963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26964 test $ac_status = 0; }; }
26965 then
26966 gcc_cv_as_sparc_sparc5=yes
26967 else
26968 echo "configure: failed program was" >&5
26969 cat conftest.s >&5
26971 rm -f conftest.o conftest.s
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26975 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26976 if test $gcc_cv_as_sparc_sparc5 = yes; then
26978 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26984 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26985 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26986 $as_echo_n "(cached) " >&6
26987 else
26988 gcc_cv_as_sparc_sparc6=no
26989 if test x$gcc_cv_as != x; then
26990 $as_echo '.text
26991 .register %g2, #scratch
26992 .register %g3, #scratch
26993 .align 4
26994 rd %entropy, %g1
26995 fpsll64x %f0, %f2, %f4' > conftest.s
26996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26998 (eval $ac_try) 2>&5
26999 ac_status=$?
27000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001 test $ac_status = 0; }; }
27002 then
27003 gcc_cv_as_sparc_sparc6=yes
27004 else
27005 echo "configure: failed program was" >&5
27006 cat conftest.s >&5
27008 rm -f conftest.o conftest.s
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27012 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27013 if test $gcc_cv_as_sparc_sparc6 = yes; then
27015 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27021 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27022 if ${gcc_cv_as_sparc_leon+:} false; then :
27023 $as_echo_n "(cached) " >&6
27024 else
27025 gcc_cv_as_sparc_leon=no
27026 if test x$gcc_cv_as != x; then
27027 $as_echo '.text
27028 .register %g2, #scratch
27029 .register %g3, #scratch
27030 .align 4
27031 smac %g2, %g3, %g1
27032 umac %g2, %g3, %g1
27033 casa [%g2] 0xb, %g3, %g1' > conftest.s
27034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27039 test $ac_status = 0; }; }
27040 then
27041 gcc_cv_as_sparc_leon=yes
27042 else
27043 echo "configure: failed program was" >&5
27044 cat conftest.s >&5
27046 rm -f conftest.o conftest.s
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27050 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27051 if test $gcc_cv_as_sparc_leon = yes; then
27053 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27059 i[34567]86-*-* | x86_64-*-*)
27060 case $target_os in
27061 cygwin*)
27062 # Full C++ conformance when using a shared libstdc++-v3 requires some
27063 # support from the Cygwin DLL, which in more recent versions exports
27064 # wrappers to aid in interposing and redirecting operators new, delete,
27065 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27066 # are configuring for a version of Cygwin that exports the wrappers.
27067 if test x$host = x$target && test x$host_cpu = xi686; then
27068 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27069 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27070 gcc_ac_cygwin_dll_wrappers=yes
27071 else
27072 gcc_ac_cygwin_dll_wrappers=no
27075 else
27076 # Can't check presence of libc functions during cross-compile, so
27077 # we just have to assume we're building for an up-to-date target.
27078 gcc_ac_cygwin_dll_wrappers=yes
27081 cat >>confdefs.h <<_ACEOF
27082 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27083 _ACEOF
27085 esac
27086 case $target_os in
27087 cygwin* | pe | mingw32*)
27088 # Recent binutils allows the three-operand form of ".comm" on PE. This
27089 # definition is used unconditionally to initialise the default state of
27090 # the target option variable that governs usage of the feature.
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27092 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27093 if ${gcc_cv_as_comm_has_align+:} false; then :
27094 $as_echo_n "(cached) " >&6
27095 else
27096 gcc_cv_as_comm_has_align=no
27097 if test x$gcc_cv_as != x; then
27098 $as_echo '.comm foo,1,32' > conftest.s
27099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27104 test $ac_status = 0; }; }
27105 then
27106 gcc_cv_as_comm_has_align=yes
27107 else
27108 echo "configure: failed program was" >&5
27109 cat conftest.s >&5
27111 rm -f conftest.o conftest.s
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27115 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27119 cat >>confdefs.h <<_ACEOF
27120 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27121 _ACEOF
27123 # Used for DWARF 2 in PE
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27125 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27126 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27127 $as_echo_n "(cached) " >&6
27128 else
27129 gcc_cv_as_ix86_pe_secrel32=no
27130 if test x$gcc_cv_as != x; then
27131 $as_echo '.text
27132 foo: nop
27133 .data
27134 .secrel32 foo' > conftest.s
27135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; }
27141 then
27142 if test x$gcc_cv_ld != x \
27143 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27144 gcc_cv_as_ix86_pe_secrel32=yes
27146 rm -f conftest
27147 else
27148 echo "configure: failed program was" >&5
27149 cat conftest.s >&5
27151 rm -f conftest.o conftest.s
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27155 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27156 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27158 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27162 # Test if the assembler supports the extended form of the .section
27163 # directive that specifies section alignment. LTO support uses this,
27164 # but normally only after installation, so we warn but don't fail the
27165 # configure if LTO is enabled but the assembler does not support it.
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27167 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27168 if ${gcc_cv_as_section_has_align+:} false; then :
27169 $as_echo_n "(cached) " >&6
27170 else
27171 gcc_cv_as_section_has_align=no
27172 if test x$gcc_cv_as != x; then
27173 $as_echo '.section lto_test,"dr0"' > conftest.s
27174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27176 (eval $ac_try) 2>&5
27177 ac_status=$?
27178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27179 test $ac_status = 0; }; }
27180 then
27181 gcc_cv_as_section_has_align=yes
27182 else
27183 echo "configure: failed program was" >&5
27184 cat conftest.s >&5
27186 rm -f conftest.o conftest.s
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27190 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27193 if test x$gcc_cv_as_section_has_align != xyes; then
27194 case ",$enable_languages," in
27195 *,lto,*)
27196 { $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
27197 $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;}
27199 esac
27202 esac
27203 case $target_os in
27204 darwin2* | darwin19*)
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27206 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27207 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27208 $as_echo_n "(cached) " >&6
27209 else
27210 gcc_cv_as_mllvm_x86_pad_for_align=no
27211 if test x$gcc_cv_as != x; then
27212 $as_echo '.text' > conftest.s
27213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27215 (eval $ac_try) 2>&5
27216 ac_status=$?
27217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27218 test $ac_status = 0; }; }
27219 then
27220 gcc_cv_as_mllvm_x86_pad_for_align=yes
27221 else
27222 echo "configure: failed program was" >&5
27223 cat conftest.s >&5
27225 rm -f conftest.o conftest.s
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27229 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27230 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27232 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27237 esac
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27240 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27241 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_as_ix86_xbrace_comment=no
27245 if test x$gcc_cv_as != x; then
27246 $as_echo '.text' > conftest.s
27247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27252 test $ac_status = 0; }; }
27253 then
27254 gcc_cv_as_ix86_xbrace_comment=yes
27255 else
27256 echo "configure: failed program was" >&5
27257 cat conftest.s >&5
27259 rm -f conftest.o conftest.s
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27263 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27264 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27266 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27272 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27273 if ${gcc_cv_as_ix86_filds+:} false; then :
27274 $as_echo_n "(cached) " >&6
27275 else
27276 gcc_cv_as_ix86_filds=no
27277 if test x$gcc_cv_as != x; then
27278 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27285 then
27286 gcc_cv_as_ix86_filds=yes
27287 else
27288 echo "configure: failed program was" >&5
27289 cat conftest.s >&5
27291 rm -f conftest.o conftest.s
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27295 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27296 if test $gcc_cv_as_ix86_filds = yes; then
27298 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27304 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27305 if ${gcc_cv_as_ix86_fildq+:} false; then :
27306 $as_echo_n "(cached) " >&6
27307 else
27308 gcc_cv_as_ix86_fildq=no
27309 if test x$gcc_cv_as != x; then
27310 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27316 test $ac_status = 0; }; }
27317 then
27318 gcc_cv_as_ix86_fildq=yes
27319 else
27320 echo "configure: failed program was" >&5
27321 cat conftest.s >&5
27323 rm -f conftest.o conftest.s
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27327 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27328 if test $gcc_cv_as_ix86_fildq = yes; then
27330 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27336 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27337 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27338 $as_echo_n "(cached) " >&6
27339 else
27340 gcc_cv_as_ix86_cmov_sun_syntax=no
27341 if test x$gcc_cv_as != x; then
27342 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27345 (eval $ac_try) 2>&5
27346 ac_status=$?
27347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27348 test $ac_status = 0; }; }
27349 then
27350 gcc_cv_as_ix86_cmov_sun_syntax=yes
27351 else
27352 echo "configure: failed program was" >&5
27353 cat conftest.s >&5
27355 rm -f conftest.o conftest.s
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27359 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27360 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27362 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27368 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27369 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27370 $as_echo_n "(cached) " >&6
27371 else
27372 gcc_cv_as_ix86_ffreep=no
27373 if test x$gcc_cv_as != x; then
27374 $as_echo 'ffreep %st(1)' > conftest.s
27375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27380 test $ac_status = 0; }; }
27381 then
27382 gcc_cv_as_ix86_ffreep=yes
27383 else
27384 echo "configure: failed program was" >&5
27385 cat conftest.s >&5
27387 rm -f conftest.o conftest.s
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27391 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27392 if test $gcc_cv_as_ix86_ffreep = yes; then
27394 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27400 $as_echo_n "checking assembler for .quad directive... " >&6; }
27401 if ${gcc_cv_as_ix86_quad+:} false; then :
27402 $as_echo_n "(cached) " >&6
27403 else
27404 gcc_cv_as_ix86_quad=no
27405 if test x$gcc_cv_as != x; then
27406 $as_echo '.quad 0' > conftest.s
27407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27412 test $ac_status = 0; }; }
27413 then
27414 gcc_cv_as_ix86_quad=yes
27415 else
27416 echo "configure: failed program was" >&5
27417 cat conftest.s >&5
27419 rm -f conftest.o conftest.s
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27423 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27424 if test $gcc_cv_as_ix86_quad = yes; then
27426 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27432 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27433 if ${gcc_cv_as_ix86_sahf+:} false; then :
27434 $as_echo_n "(cached) " >&6
27435 else
27436 gcc_cv_as_ix86_sahf=no
27437 if test x$gcc_cv_as != x; then
27438 $as_echo '.code64
27439 sahf' > conftest.s
27440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27442 (eval $ac_try) 2>&5
27443 ac_status=$?
27444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27445 test $ac_status = 0; }; }
27446 then
27447 gcc_cv_as_ix86_sahf=yes
27448 else
27449 echo "configure: failed program was" >&5
27450 cat conftest.s >&5
27452 rm -f conftest.o conftest.s
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27456 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27457 if test $gcc_cv_as_ix86_sahf = yes; then
27459 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27465 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27466 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27467 $as_echo_n "(cached) " >&6
27468 else
27469 gcc_cv_as_ix86_interunit_movq=no
27470 if test x$gcc_cv_as != x; then
27471 $as_echo '.code64
27472 movq %mm0, %rax
27473 movq %rax, %xmm0' > conftest.s
27474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27476 (eval $ac_try) 2>&5
27477 ac_status=$?
27478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27479 test $ac_status = 0; }; }
27480 then
27481 gcc_cv_as_ix86_interunit_movq=yes
27482 else
27483 echo "configure: failed program was" >&5
27484 cat conftest.s >&5
27486 rm -f conftest.o conftest.s
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27490 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27494 cat >>confdefs.h <<_ACEOF
27495 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27496 _ACEOF
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27500 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27501 if ${gcc_cv_as_ix86_hle+:} false; then :
27502 $as_echo_n "(cached) " >&6
27503 else
27504 gcc_cv_as_ix86_hle=no
27505 if test x$gcc_cv_as != x; then
27506 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27509 (eval $ac_try) 2>&5
27510 ac_status=$?
27511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27512 test $ac_status = 0; }; }
27513 then
27514 gcc_cv_as_ix86_hle=yes
27515 else
27516 echo "configure: failed program was" >&5
27517 cat conftest.s >&5
27519 rm -f conftest.o conftest.s
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27523 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27524 if test $gcc_cv_as_ix86_hle = yes; then
27526 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27532 $as_echo_n "checking assembler for swap suffix... " >&6; }
27533 if ${gcc_cv_as_ix86_swap+:} false; then :
27534 $as_echo_n "(cached) " >&6
27535 else
27536 gcc_cv_as_ix86_swap=no
27537 if test x$gcc_cv_as != x; then
27538 $as_echo 'movl.s %esp, %ebp' > conftest.s
27539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27541 (eval $ac_try) 2>&5
27542 ac_status=$?
27543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27544 test $ac_status = 0; }; }
27545 then
27546 gcc_cv_as_ix86_swap=yes
27547 else
27548 echo "configure: failed program was" >&5
27549 cat conftest.s >&5
27551 rm -f conftest.o conftest.s
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27555 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27556 if test $gcc_cv_as_ix86_swap = yes; then
27558 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27564 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27565 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27566 $as_echo_n "(cached) " >&6
27567 else
27568 gcc_cv_as_ix86_diff_sect_delta=no
27569 if test x$gcc_cv_as != x; then
27570 $as_echo '.section .rodata
27571 .L1:
27572 .long .L2-.L1
27573 .long .L3-.L1
27574 .text
27575 .L3: nop
27576 .L2: nop' > conftest.s
27577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582 test $ac_status = 0; }; }
27583 then
27584 gcc_cv_as_ix86_diff_sect_delta=yes
27585 else
27586 echo "configure: failed program was" >&5
27587 cat conftest.s >&5
27589 rm -f conftest.o conftest.s
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27593 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27594 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27596 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27602 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27603 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_as_ix86_rep_lock_prefix=no
27607 if test x$gcc_cv_as != x; then
27608 $as_echo 'rep movsl
27609 rep ret
27610 rep nop
27611 rep bsf %ecx, %eax
27612 rep bsr %ecx, %eax
27613 lock addl %edi, (%eax,%esi)
27614 lock orl $0, (%esp)' > conftest.s
27615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27617 (eval $ac_try) 2>&5
27618 ac_status=$?
27619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27620 test $ac_status = 0; }; }
27621 then
27622 gcc_cv_as_ix86_rep_lock_prefix=yes
27623 else
27624 echo "configure: failed program was" >&5
27625 cat conftest.s >&5
27627 rm -f conftest.o conftest.s
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27631 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27632 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27634 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27640 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27641 if ${gcc_cv_as_ix86_ud2+:} false; then :
27642 $as_echo_n "(cached) " >&6
27643 else
27644 gcc_cv_as_ix86_ud2=no
27645 if test x$gcc_cv_as != x; then
27646 $as_echo 'ud2' > conftest.s
27647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27649 (eval $ac_try) 2>&5
27650 ac_status=$?
27651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27652 test $ac_status = 0; }; }
27653 then
27654 gcc_cv_as_ix86_ud2=yes
27655 else
27656 echo "configure: failed program was" >&5
27657 cat conftest.s >&5
27659 rm -f conftest.o conftest.s
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27663 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27664 if test $gcc_cv_as_ix86_ud2 = yes; then
27666 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27671 # Enforce 32-bit output with gas and gld.
27672 if test x$gas = xyes; then
27673 as_ix86_gas_32_opt="--32"
27675 if echo "$ld_ver" | grep GNU > /dev/null; then
27676 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27677 ld_ix86_gld_32_opt="-melf_i386_sol2"
27678 else
27679 ld_ix86_gld_32_opt="-melf_i386"
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27684 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27685 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27686 $as_echo_n "(cached) " >&6
27687 else
27688 gcc_cv_as_ix86_tlsgdplt=no
27689 if test x$gcc_cv_as != x; then
27690 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; }
27697 then
27698 if test x$gcc_cv_ld != x \
27699 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27700 gcc_cv_as_ix86_tlsgdplt=yes
27702 rm -f conftest
27703 else
27704 echo "configure: failed program was" >&5
27705 cat conftest.s >&5
27707 rm -f conftest.o conftest.s
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27711 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27712 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27714 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27719 conftest_s='
27720 .section .tdata,"aw'$tls_section_flag'",@progbits
27721 tls_ld:
27722 .section .text,"ax",@progbits
27723 call tls_ld@tlsldmplt'
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27726 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27727 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27728 $as_echo_n "(cached) " >&6
27729 else
27730 gcc_cv_as_ix86_tlsldmplt=no
27731 if test x$gcc_cv_as != x; then
27732 $as_echo "$conftest_s" > conftest.s
27733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27735 (eval $ac_try) 2>&5
27736 ac_status=$?
27737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27738 test $ac_status = 0; }; }
27739 then
27740 if test x$gcc_cv_ld != x \
27741 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27742 gcc_cv_as_ix86_tlsldmplt=yes
27744 rm -f conftest
27745 else
27746 echo "configure: failed program was" >&5
27747 cat conftest.s >&5
27749 rm -f conftest.o conftest.s
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27753 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27757 cat >>confdefs.h <<_ACEOF
27758 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27759 _ACEOF
27762 conftest_s='
27763 .section .text,"ax",@progbits
27764 .globl _start
27765 .type _start, @function
27766 _start:
27767 leal value@tlsldm(%ebx), %eax
27768 call ___tls_get_addr@plt
27770 .section .tdata,"aw'$tls_section_flag'",@progbits
27771 .type value, @object
27772 value:'
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27774 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27775 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27776 $as_echo_n "(cached) " >&6
27777 else
27778 gcc_cv_as_ix86_tlsldm=no
27779 if test x$gcc_cv_as != x; then
27780 $as_echo "$conftest_s" > conftest.s
27781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27783 (eval $ac_try) 2>&5
27784 ac_status=$?
27785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27786 test $ac_status = 0; }; }
27787 then
27788 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27789 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27790 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27791 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27792 gcc_cv_as_ix86_tlsldm=yes
27795 rm -f conftest
27796 else
27797 echo "configure: failed program was" >&5
27798 cat conftest.s >&5
27800 rm -f conftest.o conftest.s
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27804 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27810 _ACEOF
27813 conftest_s='
27814 .data
27815 bar:
27816 .byte 1
27817 .text
27818 .global _start
27819 _start:
27820 cmpl $0, bar@GOT
27821 jmp *_start@GOT'
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27823 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27824 if ${gcc_cv_as_ix86_got32x+:} false; then :
27825 $as_echo_n "(cached) " >&6
27826 else
27827 gcc_cv_as_ix86_got32x=no
27828 if test x$gcc_cv_as != x; then
27829 $as_echo "$conftest_s" > conftest.s
27830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27832 (eval $ac_try) 2>&5
27833 ac_status=$?
27834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27835 test $ac_status = 0; }; }
27836 then
27837 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27838 && test x$gcc_cv_readelf != x \
27839 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27840 | grep R_386_GOT32X > /dev/null 2>&1 \
27841 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27842 if $gcc_cv_objdump -dw conftest 2>&1 \
27843 | grep 0xffffff > /dev/null 2>&1; then
27844 gcc_cv_as_ix86_got32x=no
27845 else
27846 gcc_cv_as_ix86_got32x=yes
27849 rm -f conftest
27850 else
27851 echo "configure: failed program was" >&5
27852 cat conftest.s >&5
27854 rm -f conftest.o conftest.s
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27858 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27862 cat >>confdefs.h <<_ACEOF
27863 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27864 _ACEOF
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27868 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27869 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27870 $as_echo_n "(cached) " >&6
27871 else
27872 gcc_cv_as_ix86_gotoff_in_data=no
27873 if test x$gcc_cv_as != x; then
27874 $as_echo ' .text
27875 .L0:
27877 .data
27878 .long .L0@GOTOFF' > conftest.s
27879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27884 test $ac_status = 0; }; }
27885 then
27886 gcc_cv_as_ix86_gotoff_in_data=yes
27887 else
27888 echo "configure: failed program was" >&5
27889 cat conftest.s >&5
27891 rm -f conftest.o conftest.s
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27895 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27899 cat >>confdefs.h <<_ACEOF
27900 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27901 _ACEOF
27904 conftest_s='
27905 .section .text,"ax",@progbits
27906 .globl _start
27907 .type _start, @function
27908 _start:
27909 leal ld@tlsldm(%ecx), %eax
27910 call *___tls_get_addr@GOT(%ecx)
27911 leal gd@tlsgd(%ecx), %eax
27912 call *___tls_get_addr@GOT(%ecx)
27914 .section .tdata,"aw'$tls_section_flag'",@progbits
27915 .type ld, @object
27917 .byte 0
27918 .globl gd
27919 .type gd, @object
27921 .byte 0'
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27923 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27924 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27925 $as_echo_n "(cached) " >&6
27926 else
27927 gcc_cv_as_ix86_tls_get_addr_via_got=no
27928 if test x$gcc_cv_as != x; then
27929 $as_echo "$conftest_s" > conftest.s
27930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27932 (eval $ac_try) 2>&5
27933 ac_status=$?
27934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27935 test $ac_status = 0; }; }
27936 then
27937 if test x$gcc_cv_ld != x \
27938 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27939 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27941 rm -f conftest
27942 else
27943 echo "configure: failed program was" >&5
27944 cat conftest.s >&5
27946 rm -f conftest.o conftest.s
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27950 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27954 cat >>confdefs.h <<_ACEOF
27955 #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`
27956 _ACEOF
27960 ia64*-*-*)
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27962 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27963 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27964 $as_echo_n "(cached) " >&6
27965 else
27966 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27967 if test x$gcc_cv_as != x; then
27968 $as_echo ' .text
27969 addl r15 = @ltoffx(x#), gp
27971 ld8.mov r16 = [r15], x#
27972 ' > conftest.s
27973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }
27979 then
27980 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27981 else
27982 echo "configure: failed program was" >&5
27983 cat conftest.s >&5
27985 rm -f conftest.o conftest.s
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27989 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27990 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27992 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27999 powerpc*-*-*)
28001 case $target in
28002 *-*-darwin*)
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28004 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28005 if ${gcc_cv_as_machine_directive+:} false; then :
28006 $as_echo_n "(cached) " >&6
28007 else
28008 gcc_cv_as_machine_directive=no
28009 if test x$gcc_cv_as != x; then
28010 $as_echo ' .machine ppc7400' > conftest.s
28011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28013 (eval $ac_try) 2>&5
28014 ac_status=$?
28015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28016 test $ac_status = 0; }; }
28017 then
28018 gcc_cv_as_machine_directive=yes
28019 else
28020 echo "configure: failed program was" >&5
28021 cat conftest.s >&5
28023 rm -f conftest.o conftest.s
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28027 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28030 if test x$gcc_cv_as_machine_directive != xyes; then
28031 echo "*** This target requires an assembler supporting \".machine\"" >&2
28032 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28033 test x$build = x$target && exit 1
28036 esac
28038 case $target in
28039 *-*-aix*) conftest_s=' .machine "pwr5"
28040 .csect .text[PR]
28041 mfcr 3,128';;
28042 *-*-darwin*) conftest_s=' .text
28043 mfcr r3,128';;
28044 *) conftest_s=' .machine power4
28045 .text
28046 mfcr 3,128';;
28047 esac
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28050 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28051 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28052 $as_echo_n "(cached) " >&6
28053 else
28054 gcc_cv_as_powerpc_mfcrf=no
28055 if test x$gcc_cv_as != x; then
28056 $as_echo "$conftest_s" > conftest.s
28057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28059 (eval $ac_try) 2>&5
28060 ac_status=$?
28061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28062 test $ac_status = 0; }; }
28063 then
28064 gcc_cv_as_powerpc_mfcrf=yes
28065 else
28066 echo "configure: failed program was" >&5
28067 cat conftest.s >&5
28069 rm -f conftest.o conftest.s
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28073 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28074 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28076 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28081 case $target in
28082 *-*-aix*) conftest_s=' .csect .text[PR]
28083 LCF..0:
28084 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28085 *-*-darwin*)
28086 conftest_s=' .text
28087 LCF0:
28088 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28089 *) conftest_s=' .text
28090 .LCF0:
28091 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28092 esac
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28095 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28096 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28097 $as_echo_n "(cached) " >&6
28098 else
28099 gcc_cv_as_powerpc_rel16=no
28100 if test x$gcc_cv_as != x; then
28101 $as_echo "$conftest_s" > conftest.s
28102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28107 test $ac_status = 0; }; }
28108 then
28109 gcc_cv_as_powerpc_rel16=yes
28110 else
28111 echo "configure: failed program was" >&5
28112 cat conftest.s >&5
28114 rm -f conftest.o conftest.s
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28118 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28119 if test $gcc_cv_as_powerpc_rel16 = yes; then
28121 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28126 case $target in
28127 *-*-aix*) conftest_s=' .machine "pwr7"
28128 .csect .text[PR]
28129 lxvd2x 1,2,3';;
28130 *) conftest_s=' .machine power7
28131 .text
28132 lxvd2x 1,2,3';;
28133 esac
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28136 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28137 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28138 $as_echo_n "(cached) " >&6
28139 else
28140 gcc_cv_as_powerpc_vsx=no
28141 if test x$gcc_cv_as != x; then
28142 $as_echo "$conftest_s" > conftest.s
28143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; }
28149 then
28150 gcc_cv_as_powerpc_vsx=yes
28151 else
28152 echo "configure: failed program was" >&5
28153 cat conftest.s >&5
28155 rm -f conftest.o conftest.s
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28159 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28160 if test $gcc_cv_as_powerpc_vsx = yes; then
28162 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28168 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28169 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28170 $as_echo_n "(cached) " >&6
28171 else
28172 gcc_cv_as_powerpc_gnu_attribute=no
28173 if test x$gcc_cv_as != x; then
28174 $as_echo '.gnu_attribute 4,1' > conftest.s
28175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28177 (eval $ac_try) 2>&5
28178 ac_status=$?
28179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28180 test $ac_status = 0; }; }
28181 then
28182 gcc_cv_as_powerpc_gnu_attribute=yes
28183 else
28184 echo "configure: failed program was" >&5
28185 cat conftest.s >&5
28187 rm -f conftest.o conftest.s
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28191 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28192 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28194 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28200 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28201 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28202 $as_echo_n "(cached) " >&6
28203 else
28204 gcc_cv_as_powerpc_entry_markers=no
28205 if test x$gcc_cv_as != x; then
28206 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28212 test $ac_status = 0; }; }
28213 then
28214 gcc_cv_as_powerpc_entry_markers=yes
28215 else
28216 echo "configure: failed program was" >&5
28217 cat conftest.s >&5
28219 rm -f conftest.o conftest.s
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28223 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28224 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28226 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28232 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28233 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28234 $as_echo_n "(cached) " >&6
28235 else
28236 gcc_cv_as_powerpc_pltseq_markers=no
28237 if test x$gcc_cv_as != x; then
28238 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28241 (eval $ac_try) 2>&5
28242 ac_status=$?
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }; }
28245 then
28246 gcc_cv_as_powerpc_pltseq_markers=yes
28247 else
28248 echo "configure: failed program was" >&5
28249 cat conftest.s >&5
28251 rm -f conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28255 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28256 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28258 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28263 case $target in
28264 *-*-aix*)
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28266 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28267 if ${gcc_cv_as_aix_ref+:} false; then :
28268 $as_echo_n "(cached) " >&6
28269 else
28270 gcc_cv_as_aix_ref=no
28271 if test x$gcc_cv_as != x; then
28272 $as_echo ' .csect stuff[rw]
28273 stuff:
28274 .long 1
28275 .extern sym
28276 .ref sym
28277 ' > conftest.s
28278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; }
28284 then
28285 gcc_cv_as_aix_ref=yes
28286 else
28287 echo "configure: failed program was" >&5
28288 cat conftest.s >&5
28290 rm -f conftest.o conftest.s
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28294 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28295 if test $gcc_cv_as_aix_ref = yes; then
28297 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28303 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28304 if ${gcc_cv_as_aix_dwloc+:} false; then :
28305 $as_echo_n "(cached) " >&6
28306 else
28307 gcc_cv_as_aix_dwloc=no
28308 if test x$gcc_cv_as != x; then
28309 $as_echo ' .dwsect 0xA0000
28310 Lframe..0:
28311 .vbyte 4,Lframe..0
28312 ' > conftest.s
28313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28315 (eval $ac_try) 2>&5
28316 ac_status=$?
28317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28318 test $ac_status = 0; }; }
28319 then
28320 gcc_cv_as_aix_dwloc=yes
28321 else
28322 echo "configure: failed program was" >&5
28323 cat conftest.s >&5
28325 rm -f conftest.o conftest.s
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28329 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28330 if test $gcc_cv_as_aix_dwloc = yes; then
28332 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28337 esac
28340 mips*-*-*)
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28342 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28343 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28344 $as_echo_n "(cached) " >&6
28345 else
28346 gcc_cv_as_mips_explicit_relocs=no
28347 if test x$gcc_cv_as != x; then
28348 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28351 (eval $ac_try) 2>&5
28352 ac_status=$?
28353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28354 test $ac_status = 0; }; }
28355 then
28356 gcc_cv_as_mips_explicit_relocs=yes
28357 else
28358 echo "configure: failed program was" >&5
28359 cat conftest.s >&5
28361 rm -f conftest.o conftest.s
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28365 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28366 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28367 if test x$target_cpu_default = x
28368 then target_cpu_default=MASK_EXPLICIT_RELOCS
28369 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28375 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28376 if ${gcc_cv_as_mips_no_shared+:} false; then :
28377 $as_echo_n "(cached) " >&6
28378 else
28379 gcc_cv_as_mips_no_shared=no
28380 if test x$gcc_cv_as != x; then
28381 $as_echo 'nop' > conftest.s
28382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; }
28388 then
28389 gcc_cv_as_mips_no_shared=yes
28390 else
28391 echo "configure: failed program was" >&5
28392 cat conftest.s >&5
28394 rm -f conftest.o conftest.s
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28398 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28399 if test $gcc_cv_as_mips_no_shared = yes; then
28401 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28407 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28408 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28409 $as_echo_n "(cached) " >&6
28410 else
28411 gcc_cv_as_mips_gnu_attribute=no
28412 if test x$gcc_cv_as != x; then
28413 $as_echo '.gnu_attribute 4,1' > conftest.s
28414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28419 test $ac_status = 0; }; }
28420 then
28421 gcc_cv_as_mips_gnu_attribute=yes
28422 else
28423 echo "configure: failed program was" >&5
28424 cat conftest.s >&5
28426 rm -f conftest.o conftest.s
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28430 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28431 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28433 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28439 $as_echo_n "checking assembler for .module support... " >&6; }
28440 if ${gcc_cv_as_mips_dot_module+:} false; then :
28441 $as_echo_n "(cached) " >&6
28442 else
28443 gcc_cv_as_mips_dot_module=no
28444 if test x$gcc_cv_as != x; then
28445 $as_echo '.module mips2
28446 .module fp=xx' > conftest.s
28447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28452 test $ac_status = 0; }; }
28453 then
28454 gcc_cv_as_mips_dot_module=yes
28455 else
28456 echo "configure: failed program was" >&5
28457 cat conftest.s >&5
28459 rm -f conftest.o conftest.s
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28463 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28464 if test $gcc_cv_as_mips_dot_module = yes; then
28466 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28470 if test x$gcc_cv_as_mips_dot_module = xno \
28471 && test x$with_fp_32 != x; then
28472 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28476 $as_echo_n "checking assembler for .micromips support... " >&6; }
28477 if ${gcc_cv_as_micromips_support+:} false; then :
28478 $as_echo_n "(cached) " >&6
28479 else
28480 gcc_cv_as_micromips_support=no
28481 if test x$gcc_cv_as != x; then
28482 $as_echo '.set micromips' > conftest.s
28483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28485 (eval $ac_try) 2>&5
28486 ac_status=$?
28487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28488 test $ac_status = 0; }; }
28489 then
28490 gcc_cv_as_micromips_support=yes
28491 else
28492 echo "configure: failed program was" >&5
28493 cat conftest.s >&5
28495 rm -f conftest.o conftest.s
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28499 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28500 if test $gcc_cv_as_micromips_support = yes; then
28502 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28508 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28509 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28510 $as_echo_n "(cached) " >&6
28511 else
28512 gcc_cv_as_mips_dtprelword=no
28513 if test x$gcc_cv_as != x; then
28514 $as_echo '.section .tdata,"awT",@progbits
28516 .word 2
28517 .text
28518 .dtprelword x+0x8000' > conftest.s
28519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28521 (eval $ac_try) 2>&5
28522 ac_status=$?
28523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28524 test $ac_status = 0; }; }
28525 then
28526 gcc_cv_as_mips_dtprelword=yes
28527 else
28528 echo "configure: failed program was" >&5
28529 cat conftest.s >&5
28531 rm -f conftest.o conftest.s
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28535 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28536 if test $gcc_cv_as_mips_dtprelword = yes; then
28538 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28544 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28545 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28546 $as_echo_n "(cached) " >&6
28547 else
28548 gcc_cv_as_mips_dspr1_mult=no
28549 if test x$gcc_cv_as != x; then
28550 $as_echo ' .set mips32r2
28551 .set nodspr2
28552 .set dsp
28553 madd $ac3,$4,$5
28554 maddu $ac3,$4,$5
28555 msub $ac3,$4,$5
28556 msubu $ac3,$4,$5
28557 mult $ac3,$4,$5
28558 multu $ac3,$4,$5' > conftest.s
28559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28561 (eval $ac_try) 2>&5
28562 ac_status=$?
28563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564 test $ac_status = 0; }; }
28565 then
28566 gcc_cv_as_mips_dspr1_mult=yes
28567 else
28568 echo "configure: failed program was" >&5
28569 cat conftest.s >&5
28571 rm -f conftest.o conftest.s
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28575 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28576 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28578 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28584 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28585 gcc_cv_as_ld_jalr_reloc=no
28586 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28587 if test $in_tree_ld = yes ; then
28588 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 \
28589 && test $in_tree_ld_is_elf = yes; then
28590 gcc_cv_as_ld_jalr_reloc=yes
28592 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28593 echo ' .ent x' > conftest.s
28594 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28595 echo ' lw $25,%call16(y)($28)' >> conftest.s
28596 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28597 echo '1: jalr $25' >> conftest.s
28598 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28599 echo '1: jalr $25' >> conftest.s
28600 echo ' .end x' >> conftest.s
28601 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28602 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28603 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28604 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28605 gcc_cv_as_ld_jalr_reloc=yes
28608 rm -f conftest.*
28611 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28612 if test x$target_cpu_default = x; then
28613 target_cpu_default=MASK_RELAX_PIC_CALLS
28614 else
28615 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28619 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28622 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28623 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28624 $as_echo_n "(cached) " >&6
28625 else
28626 gcc_cv_ld_mips_personality_relaxation=no
28627 if test $in_tree_ld = yes ; then
28628 if test "$gcc_cv_gld_major_version" -eq 2 \
28629 -a "$gcc_cv_gld_minor_version" -ge 21 \
28630 -o "$gcc_cv_gld_major_version" -gt 2; then
28631 gcc_cv_ld_mips_personality_relaxation=yes
28633 elif test x$gcc_cv_as != x \
28634 -a x$gcc_cv_ld != x \
28635 -a x$gcc_cv_readelf != x ; then
28636 cat > conftest.s <<EOF
28637 .cfi_startproc
28638 .cfi_personality 0x80,indirect_ptr
28639 .ent test
28640 test:
28642 .end test
28643 .cfi_endproc
28645 .section .data,"aw",@progbits
28646 indirect_ptr:
28647 .dc.a personality
28649 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28650 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28651 if $gcc_cv_readelf -d conftest 2>&1 \
28652 | grep TEXTREL > /dev/null 2>&1; then
28654 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28655 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28657 else
28658 gcc_cv_ld_mips_personality_relaxation=yes
28662 rm -f conftest.s conftest.o conftest
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28665 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28666 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28668 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28673 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28674 if ${gcc_cv_as_mips_nan+:} false; then :
28675 $as_echo_n "(cached) " >&6
28676 else
28677 gcc_cv_as_mips_nan=no
28678 if test x$gcc_cv_as != x; then
28679 $as_echo '' > conftest.s
28680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28682 (eval $ac_try) 2>&5
28683 ac_status=$?
28684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28685 test $ac_status = 0; }; }
28686 then
28687 gcc_cv_as_mips_nan=yes
28688 else
28689 echo "configure: failed program was" >&5
28690 cat conftest.s >&5
28692 rm -f conftest.o conftest.s
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28696 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28697 if test $gcc_cv_as_mips_nan = yes; then
28699 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28703 if test x$gcc_cv_as_mips_nan = xno \
28704 && test x$with_nan != x; then
28705 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28708 msp430-*-*)
28709 # Earlier GAS versions generically support .gnu_attribute, but the
28710 # msp430 assembler will not do anything with it.
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28712 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28713 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28714 $as_echo_n "(cached) " >&6
28715 else
28716 gcc_cv_as_msp430_gnu_attribute=no
28717 if test x$gcc_cv_as != x; then
28718 $as_echo '.gnu_attribute 4,1' > 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_gnu_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_gnu_attribute" >&5
28735 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28736 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28738 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28743 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28744 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28745 $as_echo_n "(cached) " >&6
28746 else
28747 gcc_cv_as_msp430_mspabi_attribute=no
28748 if test x$gcc_cv_as != x; then
28749 $as_echo '.mspabi_attribute 4,2' > conftest.s
28750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28752 (eval $ac_try) 2>&5
28753 ac_status=$?
28754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28755 test $ac_status = 0; }; }
28756 then
28757 gcc_cv_as_msp430_mspabi_attribute=yes
28758 else
28759 echo "configure: failed program was" >&5
28760 cat conftest.s >&5
28762 rm -f conftest.o conftest.s
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28766 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28767 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28769 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28773 if test x$enable_newlib_nano_formatted_io = xyes; then
28775 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28779 nios2-*-*)
28780 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28781 # syntax that is documented in the ABI specification.
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28783 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28784 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28785 $as_echo_n "(cached) " >&6
28786 else
28787 gcc_cv_as_nios2_gotoff_relocation=no
28788 if test x$gcc_cv_as != x; then
28789 $as_echo ' .extern foo
28790 .data
28791 .long %gotoff(foo)' > conftest.s
28792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28797 test $ac_status = 0; }; }
28798 then
28799 gcc_cv_as_nios2_gotoff_relocation=yes
28800 else
28801 echo "configure: failed program was" >&5
28802 cat conftest.s >&5
28804 rm -f conftest.o conftest.s
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28808 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28809 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28811 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28816 riscv*-*-*)
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28818 $as_echo_n "checking assembler for .attribute support... " >&6; }
28819 if ${gcc_cv_as_riscv_attribute+:} false; then :
28820 $as_echo_n "(cached) " >&6
28821 else
28822 gcc_cv_as_riscv_attribute=no
28823 if test x$gcc_cv_as != x; then
28824 $as_echo '.attribute stack_align,4' > conftest.s
28825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_attribute=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_attribute" >&5
28841 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28842 if test $gcc_cv_as_riscv_attribute = yes; then
28844 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28849 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28850 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28851 $as_echo_n "(cached) " >&6
28852 else
28853 gcc_cv_as_riscv_isa_spec=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 -misa-spec=2.2 -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_isa_spec=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_isa_spec" >&5
28872 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28873 if test $gcc_cv_as_riscv_isa_spec = yes; then
28875 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28880 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28881 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28882 $as_echo_n "(cached) " >&6
28883 else
28884 gcc_cv_as_riscv_march_zifencei=no
28885 if test x$gcc_cv_as != x; then
28886 $as_echo '' > conftest.s
28887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28892 test $ac_status = 0; }; }
28893 then
28894 gcc_cv_as_riscv_march_zifencei=yes
28895 else
28896 echo "configure: failed program was" >&5
28897 cat conftest.s >&5
28899 rm -f conftest.o conftest.s
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28903 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28904 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28906 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28911 loongarch*-*-*)
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28913 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28914 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28915 $as_echo_n "(cached) " >&6
28916 else
28917 gcc_cv_as_loongarch_dtprelword=no
28918 if test x$gcc_cv_as != x; then
28919 $as_echo '' > conftest.s
28920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28922 (eval $ac_try) 2>&5
28923 ac_status=$?
28924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28925 test $ac_status = 0; }; }
28926 then
28927 .section .tdata,"awT",@progbits
28929 .word 2
28930 .text
28931 .dtprelword x+0x8000
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_dtprelword" >&5
28940 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28942 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28944 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28948 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28949 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28950 $as_echo_n "(cached) " >&6
28951 else
28952 gcc_cv_as_loongarch_explicit_relocs=no
28953 if test x$gcc_cv_as != x; then
28954 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28958 ac_status=$?
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }
28961 then
28962 gcc_cv_as_loongarch_explicit_relocs=yes
28963 else
28964 echo "configure: failed program was" >&5
28965 cat conftest.s >&5
28967 rm -f conftest.o conftest.s
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28971 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28972 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28974 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28979 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28980 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28981 $as_echo_n "(cached) " >&6
28982 else
28983 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28984 if test x$gcc_cv_as != x; then
28985 $as_echo '.cfi_startproc
28986 .cfi_personality 0x9b,a
28987 .cfi_lsda 0x1b,b
28988 .cfi_endproc' > conftest.s
28989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28991 (eval $ac_try) 2>&5
28992 ac_status=$?
28993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28994 test $ac_status = 0; }; }
28995 then
28996 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28997 else
28998 echo "configure: failed program was" >&5
28999 cat conftest.s >&5
29001 rm -f conftest.o conftest.s
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29005 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29006 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29008 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29013 s390*-*-*)
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29015 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29016 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29017 $as_echo_n "(cached) " >&6
29018 else
29019 gcc_cv_as_s390_gnu_attribute=no
29020 if test x$gcc_cv_as != x; then
29021 $as_echo '.gnu_attribute 8,1' > conftest.s
29022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29024 (eval $ac_try) 2>&5
29025 ac_status=$?
29026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29027 test $ac_status = 0; }; }
29028 then
29029 gcc_cv_as_s390_gnu_attribute=yes
29030 else
29031 echo "configure: failed program was" >&5
29032 cat conftest.s >&5
29034 rm -f conftest.o conftest.s
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29038 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29039 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29041 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29046 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29047 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29048 $as_echo_n "(cached) " >&6
29049 else
29050 gcc_cv_as_s390_machine_machinemode=no
29051 if test x$gcc_cv_as != x; then
29052 $as_echo ' .machinemode push
29053 .machinemode pop
29054 .machine push
29055 .machine pop' > 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_machine_machinemode=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_machine_machinemode" >&5
29072 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29073 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29075 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29080 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29081 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29082 $as_echo_n "(cached) " >&6
29083 else
29084 gcc_cv_as_s390_architecture_modifiers=no
29085 if test x$gcc_cv_as != x; then
29086 $as_echo ' .machine z13+vx ' > 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_architecture_modifiers=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_architecture_modifiers" >&5
29103 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29104 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29106 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29111 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29112 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29113 $as_echo_n "(cached) " >&6
29114 else
29115 gcc_cv_as_s390_vector_loadstore_alignment_hints=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 -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=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" >&5
29134 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29135 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29137 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29142 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29143 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29144 $as_echo_n "(cached) " >&6
29145 else
29146 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29147 if test x$gcc_cv_as != x; then
29148 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29151 (eval $ac_try) 2>&5
29152 ac_status=$?
29153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29154 test $ac_status = 0; }; }
29155 then
29156 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29157 else
29158 echo "configure: failed program was" >&5
29159 cat conftest.s >&5
29161 rm -f conftest.o conftest.s
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29165 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29166 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29168 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29174 esac
29176 # Mips, LoongArch and HP-UX need the GNU assembler.
29177 # Linux on IA64 might be able to use the Intel assembler.
29179 case "$target" in
29180 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29181 if test x$gas_flag = xyes \
29182 || test x"$host" != x"$build" \
29183 || test ! -x "$gcc_cv_as" \
29184 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29186 else
29187 echo "*** This configuration requires the GNU assembler" >&2
29188 exit 1
29191 esac
29193 # AMD GCN needs the LLVM assembler and linker.
29194 # Test that LLVM is at least 13.0.1.
29195 case "$target" in
29196 amdgcn-* | gcn-*)
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29198 $as_echo_n "checking llvm assembler version... " >&6; }
29199 gcc_cv_as_version="unknown"
29200 if test x$gcc_cv_as != x; then
29201 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29202 case "$gcc_cv_as_version" in
29203 13.0.[1-9]*) ;; # 13.0.1+
29204 13.[1-9]*) ;; # 13.1+
29205 1[4-9]*) ;; # 14..19
29206 [2-9][0-9]*) ;; # 20..99
29207 [1-9][0-9][0-9]*) ;; # 100+
29208 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29209 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29210 esac
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29213 $as_echo "$gcc_cv_as_version, ok" >&6; }
29215 esac
29217 case "$target" in
29218 arm*)
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29220 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29221 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29222 $as_echo_n "(cached) " >&6
29223 else
29224 gcc_cv_as_arm_option_extensions=no
29225 if test x$gcc_cv_as != x; then
29226 $as_echo '.text
29227 .thumb
29228 .syntax unified
29229 vmov.f32 s0, s1' > conftest.s
29230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29232 (eval $ac_try) 2>&5
29233 ac_status=$?
29234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29235 test $ac_status = 0; }; }
29236 then
29237 gcc_cv_as_arm_option_extensions=yes
29238 else
29239 echo "configure: failed program was" >&5
29240 cat conftest.s >&5
29242 rm -f conftest.o conftest.s
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29246 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29247 if test $gcc_cv_as_arm_option_extensions = yes; then
29249 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29253 esac
29255 # ??? Not all targets support dwarf2 debug_line, even within a version
29256 # of gas. Moreover, we need to emit a valid instruction to trigger any
29257 # info to the output file. So, as supported targets are added to gas 2.11,
29258 # add some instruction here to (also) show we expect this might work.
29259 # ??? Once 2.11 is released, probably need to add first known working
29260 # version to the per-target configury.
29261 case "$cpu_type" in
29262 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29263 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29264 | visium | xstormy16 | xtensa)
29265 insn="nop"
29267 ia64 | s390)
29268 insn="nop 0"
29270 mmix)
29271 insn="swym 0"
29273 esac
29274 if test x"$insn" != x; then
29275 conftest_s="\
29276 .file 1 \"conftest.s\"
29277 .loc 1 3 0
29278 $insn"
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29280 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29281 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29282 $as_echo_n "(cached) " >&6
29283 else
29284 gcc_cv_as_dwarf2_debug_line=no
29285 if test x$gcc_cv_as != x; then
29286 $as_echo "$conftest_s" > conftest.s
29287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29292 test $ac_status = 0; }; }
29293 then
29294 if test x$gcc_cv_objdump != x \
29295 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29296 | grep debug_line > /dev/null 2>&1; then
29297 gcc_cv_as_dwarf2_debug_line=yes
29298 elif test x$gcc_cv_otool != x \
29299 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29300 | grep debug_line > /dev/null 2>&1; then
29301 gcc_cv_as_dwarf2_debug_line=yes
29303 else
29304 echo "configure: failed program was" >&5
29305 cat conftest.s >&5
29307 rm -f conftest.o conftest.s
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29311 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29315 # The .debug_line file table must be in the exact order that
29316 # we specified the files, since these indices are also used
29317 # by DW_AT_decl_file. Approximate this test by testing if
29318 # the assembler bitches if the same index is assigned twice.
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29320 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29321 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29322 $as_echo_n "(cached) " >&6
29323 else
29324 gcc_cv_as_dwarf2_file_buggy=no
29325 if test x$gcc_cv_as != x; then
29326 $as_echo ' .file 1 "foo.s"
29327 .file 1 "bar.s"' > conftest.s
29328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29333 test $ac_status = 0; }; }
29334 then
29335 gcc_cv_as_dwarf2_file_buggy=yes
29336 else
29337 echo "configure: failed program was" >&5
29338 cat conftest.s >&5
29340 rm -f conftest.o conftest.s
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29344 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29348 if test $gcc_cv_as_dwarf2_debug_line = yes \
29349 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29351 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29354 if test $gcc_cv_as_leb128 = yes; then
29355 conftest_s="\
29356 .file 1 \"conftest.s\"
29357 .loc 1 3 0 view .LVU1
29358 $insn
29359 .data
29360 .uleb128 .LVU1
29361 .uleb128 .LVU1
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29364 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29365 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29366 $as_echo_n "(cached) " >&6
29367 else
29368 gcc_cv_as_dwarf2_debug_view=no
29369 if test x$gcc_cv_as != x; then
29370 $as_echo "$conftest_s" > conftest.s
29371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }; }
29377 then
29378 gcc_cv_as_dwarf2_debug_view=yes
29379 else
29380 echo "configure: failed program was" >&5
29381 cat conftest.s >&5
29383 rm -f conftest.o conftest.s
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29387 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29388 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29390 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29398 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29399 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29400 $as_echo_n "(cached) " >&6
29401 else
29402 gcc_cv_as_gdwarf2_flag=no
29403 if test x$gcc_cv_as != x; then
29404 $as_echo "$insn" > conftest.s
29405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29410 test $ac_status = 0; }; }
29411 then
29412 gcc_cv_as_gdwarf2_flag=yes
29413 else
29414 echo "configure: failed program was" >&5
29415 cat conftest.s >&5
29417 rm -f conftest.o conftest.s
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29421 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29422 if test $gcc_cv_as_gdwarf2_flag = yes; then
29424 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29430 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29431 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29432 $as_echo_n "(cached) " >&6
29433 else
29434 gcc_cv_as_gdwarf_5_flag=no
29435 if test x$gcc_cv_as != x; then
29436 $as_echo "$insn" > conftest.s
29437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29439 (eval $ac_try) 2>&5
29440 ac_status=$?
29441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29442 test $ac_status = 0; }; }
29443 then
29444 if test x$gcc_cv_objdump != x \
29445 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29446 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29447 gcc_cv_as_gdwarf_5_flag=yes;
29449 else
29450 echo "configure: failed program was" >&5
29451 cat conftest.s >&5
29453 rm -f conftest.o conftest.s
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29457 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29458 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29460 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29465 case $target_os in
29466 win32 | pe | cygwin* | mingw32*)
29467 section_flags=\"dr\"
29468 function_type=".def foo; .scl 2; .type 32; .endef"
29469 function_size="";;
29471 section_flags=\"\",%progbits
29472 function_type=".type foo, %function"
29473 function_size=".size foo, .-foo";;
29474 esac
29475 dwarf4_debug_info_size=0x46
29476 dwarf4_high_pc_form=7
29477 dwarf4_debug_aranges_size=0x2c
29478 dwarf4_line_sz=9
29479 for dwarf4_addr_size in 8 4; do
29480 conftest_s="\
29481 .file \"a.c\"
29482 .text
29483 .Ltext0:
29484 .p2align 4
29485 .globl foo
29486 $function_type
29487 foo:
29488 .LFB0:
29489 .LM1:
29490 $insn
29491 .LM2:
29492 .LFE0:
29493 $function_size
29494 .Letext0:
29495 .section .debug_info,$section_flags
29496 .Ldebug_info0:
29497 .4byte $dwarf4_debug_info_size
29498 .2byte 0x4
29499 .4byte .Ldebug_abbrev0
29500 .byte 0x$dwarf4_addr_size
29501 .byte 0x1
29502 .ascii \"GNU C17\\0\"
29503 .byte 0xc
29504 .ascii \"a.c\\0\"
29505 .ascii \"/\\0\"
29506 .${dwarf4_addr_size}byte .Ltext0
29507 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29508 .4byte .Ldebug_line0
29509 .byte 0x2
29510 .ascii \"foo\\0\"
29511 .byte 0x1
29512 .byte 0x2
29513 .byte 0x1
29514 .${dwarf4_addr_size}byte .LFB0
29515 .${dwarf4_addr_size}byte .LFE0-.LFB0
29516 .byte 0x1
29517 .byte 0x9c
29518 .byte 0
29519 .section .debug_abbrev,$section_flags
29520 .Ldebug_abbrev0:
29521 .byte 0x1
29522 .byte 0x11
29523 .byte 0x1
29524 .byte 0x25
29525 .byte 0x8
29526 .byte 0x13
29527 .byte 0xb
29528 .byte 0x3
29529 .byte 0x8
29530 .byte 0x1b
29531 .byte 0x8
29532 .byte 0x11
29533 .byte 0x1
29534 .byte 0x12
29535 .byte 0x$dwarf4_high_pc_form
29536 .byte 0x10
29537 .byte 0x17
29538 .byte 0
29539 .byte 0
29540 .byte 0x2
29541 .byte 0x2e
29542 .byte 0
29543 .byte 0x3f
29544 .byte 0x19
29545 .byte 0x3
29546 .byte 0x8
29547 .byte 0x3a
29548 .byte 0xb
29549 .byte 0x3b
29550 .byte 0xb
29551 .byte 0x39
29552 .byte 0xb
29553 .byte 0x11
29554 .byte 0x1
29555 .byte 0x12
29556 .byte 0x$dwarf4_high_pc_form
29557 .byte 0x40
29558 .byte 0x18
29559 .byte 0
29560 .byte 0
29561 .byte 0
29562 .section .debug_aranges,$section_flags
29563 .4byte $dwarf4_debug_aranges_size
29564 .2byte 0x2
29565 .4byte .Ldebug_info0
29566 .byte 0x8
29567 .byte 0
29568 .2byte 0
29569 .2byte 0
29570 .${dwarf4_addr_size}byte .Ltext0
29571 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29572 .${dwarf4_addr_size}byte 0
29573 .${dwarf4_addr_size}byte 0
29574 .section .debug_line,$section_flags
29575 .Ldebug_line0:
29576 .4byte .LELT0-.LSLT0
29577 .LSLT0:
29578 .2byte 0x4
29579 .4byte .LELTP0-.LASLTP0
29580 .LASLTP0:
29581 .byte 0x1
29582 .byte 0x1
29583 .byte 0x1
29584 .byte 0xf6
29585 .byte 0xf2
29586 .byte 0xd
29587 .byte 0
29588 .byte 0x1
29589 .byte 0x1
29590 .byte 0x1
29591 .byte 0x1
29592 .byte 0
29593 .byte 0
29594 .byte 0
29595 .byte 0x1
29596 .byte 0
29597 .byte 0
29598 .byte 0x1
29599 .byte 0
29600 .ascii \"a.c\\0\"
29601 .byte 0
29602 .byte 0
29603 .byte 0
29604 .byte 0
29605 .LELTP0:
29606 .byte 0
29607 .byte 0x$dwarf4_line_sz
29608 .byte 0x2
29609 .${dwarf4_addr_size}byte .LM1
29610 .byte 0x18
29611 .byte 0x5
29612 .byte 0x1
29613 .byte 0
29614 .byte 0x$dwarf4_line_sz
29615 .byte 0x2
29616 .${dwarf4_addr_size}byte .LM2
29617 .byte 0x1
29618 .byte 0x5
29619 .byte 0x1
29620 .byte 0
29621 .byte 0x$dwarf4_line_sz
29622 .byte 0x2
29623 .${dwarf4_addr_size}byte .Letext0
29624 .byte 0
29625 .byte 0x1
29626 .byte 0x1
29627 .LELT0:
29628 .section .debug_str,$section_flags
29629 .ident \"GCC\"
29631 dwarf4_success=no
29632 if test $dwarf4_addr_size = 4; then
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29634 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29635 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29636 $as_echo_n "(cached) " >&6
29637 else
29638 gcc_cv_as_debug_line_32_flag=no
29639 if test x$gcc_cv_as != x; then
29640 $as_echo "$conftest_s" > conftest.s
29641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29646 test $ac_status = 0; }; }
29647 then
29648 gcc_cv_as_debug_line_32_flag=yes
29649 else
29650 echo "configure: failed program was" >&5
29651 cat conftest.s >&5
29653 rm -f conftest.o conftest.s
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29657 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29658 if test $gcc_cv_as_debug_line_32_flag = yes; then
29659 dwarf4_success=yes
29662 else
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29664 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29665 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29666 $as_echo_n "(cached) " >&6
29667 else
29668 gcc_cv_as_debug_line_64_flag=no
29669 if test x$gcc_cv_as != x; then
29670 $as_echo "$conftest_s" > conftest.s
29671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29673 (eval $ac_try) 2>&5
29674 ac_status=$?
29675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29676 test $ac_status = 0; }; }
29677 then
29678 gcc_cv_as_debug_line_64_flag=yes
29679 else
29680 echo "configure: failed program was" >&5
29681 cat conftest.s >&5
29683 rm -f conftest.o conftest.s
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29687 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29688 if test $gcc_cv_as_debug_line_64_flag = yes; then
29689 dwarf4_success=yes
29693 if test $dwarf4_success = yes; then
29694 dwarf4_success=no
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29696 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29697 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29698 $as_echo_n "(cached) " >&6
29699 else
29700 gcc_cv_as_dwarf_4_debug_line_flag=no
29701 if test x$gcc_cv_as != x; then
29702 $as_echo "$conftest_s" > conftest.s
29703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29705 (eval $ac_try) 2>&5
29706 ac_status=$?
29707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29708 test $ac_status = 0; }; }
29709 then
29710 gcc_cv_as_dwarf_4_debug_line_flag=yes
29711 else
29712 echo "configure: failed program was" >&5
29713 cat conftest.s >&5
29715 rm -f conftest.o conftest.s
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29719 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29720 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29721 dwarf4_success=yes
29724 break
29726 dwarf4_debug_info_size=0x36
29727 dwarf4_high_pc_form=6
29728 dwarf4_debug_aranges_size=0x1c
29729 dwarf4_line_sz=5
29730 done
29732 if test $dwarf4_success = yes; then
29733 conftest_s="\
29734 .file \"foo.c\"
29735 .text
29736 bar:
29737 #APP
29738 # 82 \"xxx.h\" 1
29739 $insn
29740 # 0 \"\" 2
29741 #NO_APP
29742 $insn
29743 foo:
29744 .file 1 \"foo.c\"
29745 $insn
29746 .file 2 \"foo.h\"
29749 dwarf4_success=no
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29751 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29752 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29753 $as_echo_n "(cached) " >&6
29754 else
29755 gcc_cv_as_dwarf_4_app_flag=no
29756 if test x$gcc_cv_as != x; then
29757 $as_echo "$conftest_s" > conftest.s
29758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29760 (eval $ac_try) 2>&5
29761 ac_status=$?
29762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29763 test $ac_status = 0; }; }
29764 then
29765 gcc_cv_as_dwarf_4_app_flag=yes
29766 else
29767 echo "configure: failed program was" >&5
29768 cat conftest.s >&5
29770 rm -f conftest.o conftest.s
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29774 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29775 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29776 dwarf4_success=yes
29781 if test $dwarf4_success = yes; then
29782 conftest_s="\
29783 .text
29784 .globl foo
29785 $function_type
29786 foo:
29787 $insn
29788 $function_size
29789 .file 1 \"foo.c\"
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29792 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29793 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29794 $as_echo_n "(cached) " >&6
29795 else
29796 gcc_cv_as_working_gdwarf_n_flag=no
29797 if test x$gcc_cv_as != x; then
29798 $as_echo "$conftest_s" > conftest.s
29799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29801 (eval $ac_try) 2>&5
29802 ac_status=$?
29803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29804 test $ac_status = 0; }; }
29805 then
29806 if test x$gcc_cv_objdump != x \
29807 && $gcc_cv_objdump -W conftest.o 2>&1 \
29808 | grep conftest.s > /dev/null 2>&1; then
29809 gcc_cv_as_working_gdwarf_n_flag=no
29810 else
29811 gcc_cv_as_working_gdwarf_n_flag=yes
29813 else
29814 echo "configure: failed program was" >&5
29815 cat conftest.s >&5
29817 rm -f conftest.o conftest.s
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29821 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29824 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29826 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29832 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29833 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29834 $as_echo_n "(cached) " >&6
29835 else
29836 gcc_cv_as_debug_prefix_map_flag=no
29837 if test x$gcc_cv_as != x; then
29838 $as_echo "$insn" > conftest.s
29839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29844 test $ac_status = 0; }; }
29845 then
29846 gcc_cv_as_debug_prefix_map_flag=yes
29847 else
29848 echo "configure: failed program was" >&5
29849 cat conftest.s >&5
29851 rm -f conftest.o conftest.s
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29855 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29856 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29858 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29865 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29866 if ${gcc_cv_as_compress_debug+:} false; then :
29867 $as_echo_n "(cached) " >&6
29868 else
29869 gcc_cv_as_compress_debug=no
29870 if test x$gcc_cv_as != x; then
29871 $as_echo '' > conftest.s
29872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29874 (eval $ac_try) 2>&5
29875 ac_status=$?
29876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29877 test $ac_status = 0; }; }
29878 then
29879 # gas compiled without zlib cannot compress debug sections and warns
29880 # about it, but still exits successfully. So check for this, too.
29881 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29882 then
29883 gcc_cv_as_compress_debug=0
29884 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29885 then
29886 gcc_cv_as_compress_debug=1
29887 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29888 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29889 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29890 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29891 then
29892 gcc_cv_as_compress_debug=2
29894 else
29895 gcc_cv_as_compress_debug=0
29897 else
29898 echo "configure: failed program was" >&5
29899 cat conftest.s >&5
29901 rm -f conftest.o conftest.s
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29905 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29909 cat >>confdefs.h <<_ACEOF
29910 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29911 _ACEOF
29914 cat >>confdefs.h <<_ACEOF
29915 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29916 _ACEOF
29919 cat >>confdefs.h <<_ACEOF
29920 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29921 _ACEOF
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29925 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29926 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29927 $as_echo_n "(cached) " >&6
29928 else
29929 gcc_cv_as_lcomm_with_alignment=no
29930 if test x$gcc_cv_as != x; then
29931 $as_echo '.lcomm bar,4,16' > conftest.s
29932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29937 test $ac_status = 0; }; }
29938 then
29939 gcc_cv_as_lcomm_with_alignment=yes
29940 else
29941 echo "configure: failed program was" >&5
29942 cat conftest.s >&5
29944 rm -f conftest.o conftest.s
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29948 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29949 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29951 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29956 if test x$with_sysroot = x && test x$host = x$target \
29957 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29958 && test "$prefix" != "NONE"; then
29960 cat >>confdefs.h <<_ACEOF
29961 #define PREFIX_INCLUDE_DIR "$prefix/include"
29962 _ACEOF
29966 # Determine the version of glibc, if any, used on the target.
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29968 $as_echo_n "checking for target glibc version... " >&6; }
29970 # Check whether --with-glibc-version was given.
29971 if test "${with_glibc_version+set}" = set; then :
29972 withval=$with_glibc_version;
29973 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29974 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29975 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29976 else
29977 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29979 else
29981 glibc_version_major=0
29982 glibc_version_minor=0
29983 if test -f $target_header_dir/features.h \
29984 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29985 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29986 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29987 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29992 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29994 cat >>confdefs.h <<_ACEOF
29995 #define TARGET_GLIBC_MAJOR $glibc_version_major
29996 _ACEOF
29999 cat >>confdefs.h <<_ACEOF
30000 #define TARGET_GLIBC_MINOR $glibc_version_minor
30001 _ACEOF
30004 # Check whether --enable-gnu-unique-object was given.
30005 if test "${enable_gnu_unique_object+set}" = set; then :
30006 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30007 yes | no) ;;
30008 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30009 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30010 esac
30011 else
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30013 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30014 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30015 $as_echo_n "(cached) " >&6
30016 else
30017 gcc_cv_as_gnu_unique_object=no
30018 if test x$gcc_cv_as != x; then
30019 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30022 (eval $ac_try) 2>&5
30023 ac_status=$?
30024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30025 test $ac_status = 0; }; }
30026 then
30027 gcc_cv_as_gnu_unique_object=yes
30028 else
30029 echo "configure: failed program was" >&5
30030 cat conftest.s >&5
30032 rm -f conftest.o conftest.s
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30036 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30037 if test $gcc_cv_as_gnu_unique_object = yes; then
30038 # We need to unquote above to to use the definition from config.gcc.
30039 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30041 if test $glibc_version_major -gt 2 \
30042 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30043 enable_gnu_unique_object=yes
30050 if test x$enable_gnu_unique_object = xyes; then
30052 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30057 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30058 if ${gcc_cv_as_line_zero+:} false; then :
30059 $as_echo_n "(cached) " >&6
30060 else
30061 gcc_cv_as_line_zero=no
30062 if test "x$gcc_cv_as" != x; then
30063 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30064 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30066 (eval $ac_try) 2>&5
30067 ac_status=$?
30068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30069 test $ac_status = 0; }; } &&
30070 test "x`cat conftest.out`" = x
30071 then
30072 gcc_cv_as_line_zero=yes
30073 else
30074 echo "configure: failed program was" >&5
30075 cat conftest.s >&5
30076 echo "configure: error output was" >&5
30077 cat conftest.out >&5
30079 rm -f conftest.o conftest.s conftest.out
30082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30083 $as_echo "$gcc_cv_as_line_zero" >&6; }
30084 if test "x$gcc_cv_as_line_zero" = xyes; then
30086 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30091 $as_echo_n "checking support for thin archives... " >&6; }
30092 thin_archive_support=no
30093 echo 'int main (void) { return 0; }' > conftest.c
30094 if ($AR --version | sed 1q | grep "GNU ar" \
30095 && $CC $CFLAGS -c conftest.c \
30096 && $AR rcT conftest.a conftest.o \
30097 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30098 thin_archive_support=yes
30100 rm -f conftest.c conftest.o conftest.a conftest
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30102 $as_echo "$thin_archive_support" >&6; }
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30106 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30107 gcc_cv_ld_eh_frame_hdr=no
30108 if test $in_tree_ld = yes ; then
30109 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 \
30110 && test $in_tree_ld_is_elf = yes; then
30111 gcc_cv_ld_eh_frame_hdr=yes
30113 elif test x$gcc_cv_ld != x; then
30114 if echo "$ld_ver" | grep GNU > /dev/null; then
30115 # Check if linker supports --eh-frame-hdr option
30116 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30117 gcc_cv_ld_eh_frame_hdr=yes
30119 else
30120 case "$target" in
30121 *-*-solaris2*)
30122 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30123 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30124 gcc_cv_ld_eh_frame_hdr=yes
30127 esac
30131 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30133 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30137 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30140 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30141 gcc_cv_ld_eh_frame_ciev3=no
30142 if test $in_tree_ld = yes ; then
30143 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 \
30144 && test $in_tree_ld_is_elf = yes; then
30145 gcc_cv_ld_eh_frame_ciev3=yes
30147 elif test x$gcc_cv_ld != x; then
30148 if echo "$ld_ver" | grep GNU > /dev/null; then
30149 gcc_cv_ld_eh_frame_ciev3=yes
30150 if test 0"$ld_date" -lt 20040513; then
30151 if test -n "$ld_date"; then
30152 # If there was date string, but was earlier than 2004-05-13, fail
30153 gcc_cv_ld_eh_frame_ciev3=no
30154 elif test "$ld_vers_major" -lt 2; then
30155 gcc_cv_ld_eh_frame_ciev3=no
30156 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30157 gcc_cv_ld_eh_frame_ciev3=no
30160 else
30161 case "$target" in
30162 *-*-solaris2*)
30163 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30164 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30165 gcc_cv_ld_eh_frame_ciev3=yes
30168 esac
30172 cat >>confdefs.h <<_ACEOF
30173 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30174 _ACEOF
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30177 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30180 $as_echo_n "checking linker position independent executable support... " >&6; }
30181 gcc_cv_ld_pie=no
30182 if test $in_tree_ld = yes ; then
30183 case "$target" in
30184 # Full PIE support on Solaris was only introduced in gld 2.26.
30185 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30186 *) gcc_gld_pie_min_version=15 ;;
30187 esac
30188 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 \
30189 && test $in_tree_ld_is_elf = yes; then
30190 gcc_cv_ld_pie=yes
30192 elif test x$gcc_cv_ld != x; then
30193 # Check if linker supports -pie option
30194 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30195 gcc_cv_ld_pie=yes
30196 case "$target" in
30197 *-*-solaris2*)
30198 if echo "$ld_ver" | grep GNU > /dev/null \
30199 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30200 gcc_cv_ld_pie=no
30203 esac
30204 else
30205 case "$target" in
30206 *-*-solaris2.1[1-9]*)
30207 # Solaris 11.3 added PIE support.
30208 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30209 gcc_cv_ld_pie=yes
30212 esac
30215 if test x"$gcc_cv_ld_pie" = xyes; then
30217 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30221 $as_echo "$gcc_cv_ld_pie" >&6; }
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30224 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30225 gcc_cv_ld_pie_copyreloc=no
30226 if test $gcc_cv_ld_pie = yes ; then
30227 if test $in_tree_ld = yes ; then
30228 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
30229 gcc_cv_ld_pie_copyreloc=yes
30231 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30232 # Check if linker supports -pie option with copy reloc
30233 case "$target" in
30234 i?86-*-linux* | x86_64-*-linux*)
30235 cat > conftest1.s <<EOF
30236 .globl a_glob
30237 .data
30238 .type a_glob, @object
30239 .size a_glob, 4
30240 a_glob:
30241 .long 2
30243 cat > conftest2.s <<EOF
30244 .text
30245 .globl main
30246 .type main, @function
30247 main:
30248 movl %eax, a_glob(%rip)
30249 .size main, .-main
30250 .globl ptr
30251 .section .data.rel,"aw",@progbits
30252 .type ptr, @object
30253 ptr:
30254 .quad a_glob
30256 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30257 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30258 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30259 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30260 gcc_cv_ld_pie_copyreloc=yes
30262 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30264 esac
30268 cat >>confdefs.h <<_ACEOF
30269 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30270 _ACEOF
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30273 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30276 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30277 gcc_cv_ld_eh_gc_sections=no
30278 if test $in_tree_ld = yes ; then
30279 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 \
30280 && test $in_tree_ld_is_elf = yes; then
30281 gcc_cv_ld_eh_gc_sections=yes
30283 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30284 cat > conftest.s <<EOF
30285 .section .text
30286 .globl _start
30287 .type _start, @function
30288 _start:
30289 .long foo
30290 .size _start, .-_start
30291 .section .text.foo,"ax",@progbits
30292 .type foo, @function
30293 foo:
30294 .long 0
30295 .size foo, .-foo
30296 .section .gcc_except_table.foo,"a",@progbits
30297 .L0:
30298 .long 0
30299 .section .eh_frame,"a",@progbits
30300 .long .L0
30302 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30303 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30304 | grep "gc-sections option ignored" > /dev/null; then
30305 gcc_cv_ld_eh_gc_sections=no
30306 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30307 | grep gcc_except_table > /dev/null; then
30308 gcc_cv_ld_eh_gc_sections=yes
30309 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30310 if test x$gcc_cv_as_comdat_group != xyes; then
30311 gcc_cv_ld_eh_gc_sections=no
30312 cat > conftest.s <<EOF
30313 .section .text
30314 .globl _start
30315 .type _start, @function
30316 _start:
30317 .long foo
30318 .size _start, .-_start
30319 .section .gnu.linkonce.t.foo,"ax",@progbits
30320 .type foo, @function
30321 foo:
30322 .long 0
30323 .size foo, .-foo
30324 .section .gcc_except_table.foo,"a",@progbits
30325 .L0:
30326 .long 0
30327 .section .eh_frame,"a",@progbits
30328 .long .L0
30330 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30331 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30332 | grep "gc-sections option ignored" > /dev/null; then
30333 gcc_cv_ld_eh_gc_sections=no
30334 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30335 | grep gcc_except_table > /dev/null; then
30336 gcc_cv_ld_eh_gc_sections=yes
30342 rm -f conftest.s conftest.o conftest
30344 case "$target" in
30345 hppa*-*-linux*)
30346 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30347 gcc_cv_ld_eh_gc_sections=no
30349 esac
30350 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30352 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30356 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30359 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30360 gcc_cv_ld_eh_gc_sections_bug=no
30361 if test $in_tree_ld = yes ; then
30362 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 \
30363 && test $in_tree_ld_is_elf = yes; then
30364 gcc_cv_ld_eh_gc_sections_bug=yes
30366 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
30367 gcc_cv_ld_eh_gc_sections_bug=yes
30368 cat > conftest.s <<EOF
30369 .section .text
30370 .globl _start
30371 .type _start, @function
30372 _start:
30373 .long foo
30374 .size _start, .-_start
30375 .section .text.startup.foo,"ax",@progbits
30376 .type foo, @function
30377 foo:
30378 .long 0
30379 .size foo, .-foo
30380 .section .gcc_except_table.foo,"a",@progbits
30381 .L0:
30382 .long 0
30383 .section .eh_frame,"a",@progbits
30384 .long .L0
30386 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30387 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30388 | grep "gc-sections option ignored" > /dev/null; then
30390 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30391 | grep gcc_except_table > /dev/null; then
30392 gcc_cv_ld_eh_gc_sections_bug=no
30395 rm -f conftest.s conftest.o conftest
30397 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30399 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30403 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30406 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30407 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30408 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30409 gcc_cv_ld_compress_debug=1
30410 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30411 # Detect zstd debug section compression support
30412 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30413 gcc_cv_ld_compress_debug=2
30415 else
30416 case "${target}" in
30417 *-*-solaris2*)
30418 # Introduced in Solaris 11.2.
30419 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30420 gcc_cv_ld_compress_debug=1
30421 gcc_cv_ld_compress_debug_option="-z compress-sections"
30422 else
30423 gcc_cv_ld_compress_debug=0
30427 # Assume linkers other than GNU ld don't support compessed debug
30428 # sections.
30429 gcc_cv_ld_compress_debug=0
30431 esac
30434 cat >>confdefs.h <<_ACEOF
30435 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30436 _ACEOF
30439 cat >>confdefs.h <<_ACEOF
30440 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30441 _ACEOF
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30444 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30446 if test x"$ld64_flag" = x"yes"; then
30448 # Set defaults for possibly untestable items.
30449 gcc_cv_ld64_export_dynamic=0
30450 gcc_cv_ld64_platform_version=0
30452 if test "$build" = "$host"; then
30453 darwin_try_test=1
30454 else
30455 darwin_try_test=0
30458 # On Darwin, because of FAT library support, it is often possible to execute
30459 # exes from compatible archs even when the host differs from the build system.
30460 case "$build","$host" in
30461 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30462 darwin_try_test=1;;
30463 *) ;;
30464 esac
30466 # If the configurer specified a minimum ld64 version to be supported, then use
30467 # that to determine feature support.
30468 if test x"${gcc_cv_ld64_version}" != x; then
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30470 $as_echo_n "checking ld64 specified version... " >&6; }
30471 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30473 $as_echo "$gcc_cv_ld64_major" >&6; }
30474 if test "$gcc_cv_ld64_major" -ge 236; then
30475 gcc_cv_ld64_export_dynamic=1
30477 if test "$gcc_cv_ld64_major" -ge 512; then
30478 gcc_cv_ld64_platform_version=1
30480 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30481 # If the version was not specified, try to find it.
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30483 $as_echo_n "checking linker version... " >&6; }
30484 if test x"${gcc_cv_ld64_version}" = x; then
30485 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30488 $as_echo "$gcc_cv_ld64_version" >&6; }
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30491 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30492 gcc_cv_ld64_export_dynamic=1
30493 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30494 gcc_cv_ld64_export_dynamic=0
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30497 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30500 $as_echo_n "checking linker for -platform_version support... " >&6; }
30501 gcc_cv_ld64_platform_version=1
30502 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30503 gcc_cv_ld64_platform_version=0
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30506 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30509 if test x"${gcc_cv_ld64_version}" != x; then
30511 cat >>confdefs.h <<_ACEOF
30512 #define LD64_VERSION "${gcc_cv_ld64_version}"
30513 _ACEOF
30518 cat >>confdefs.h <<_ACEOF
30519 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30520 _ACEOF
30524 cat >>confdefs.h <<_ACEOF
30525 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30526 _ACEOF
30530 if test x"$dsymutil_flag" = x"yes"; then
30532 # If the user specified a dsymutil path, then we will already have the
30533 # version string, otherwise, pick it up.
30534 if test x"$gcc_cv_dsymutil" = x; then
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30536 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30537 dsymutil_vers="tool unspecified"
30538 elif test x"$dsymutil_vers" = x; then
30539 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30542 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30544 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30545 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30546 dsymutil_kind=DWARFUTILS
30547 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30548 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30549 dsymutil_kind=CLANG
30550 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30551 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30552 dsymutil_kind=LLVM
30553 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30554 else
30555 dsymutil_kind=UNKNOWN
30556 dsymutil_vers="0.0"
30558 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30559 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30560 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30561 if test x"${dsymutil_minor}" = x; then
30562 dsymutil_minor=0
30564 if test x"${dsymutil_tiny}" = x; then
30565 dsymutil_tiny=0
30568 cat >>confdefs.h <<_ACEOF
30569 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30570 _ACEOF
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30573 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30576 case $target_os in
30577 win32 | pe | cygwin* | mingw32*)
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30579 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30580 gcc_cv_ld_broken_pe_dwarf5=yes
30581 if test $in_tree_ld = yes ; then
30582 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30583 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30584 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30585 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30586 gcc_cv_ld_broken_pe_dwarf5=no
30588 else
30589 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30590 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30591 gcc_cv_ld_broken_pe_dwarf5=no
30594 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30596 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30600 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30603 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30604 gcc_cv_ld_disable_dynamicbase=no
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 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
30607 gcc_cv_ld_disable_dynamicbase=yes
30609 else
30610 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30611 gcc_cv_ld_disable_dynamicbase=yes
30614 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30616 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30620 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30622 esac
30624 # --------
30625 # UNSORTED
30626 # --------
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30629 $as_echo_n "checking linker --as-needed support... " >&6; }
30630 if ${gcc_cv_ld_as_needed+:} false; then :
30631 $as_echo_n "(cached) " >&6
30632 else
30633 gcc_cv_ld_as_needed=no
30634 gcc_cv_ld_as_needed_option='--as-needed'
30635 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30636 if test $in_tree_ld = yes ; then
30637 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 \
30638 && test $in_tree_ld_is_elf = yes; then
30639 gcc_cv_ld_as_needed=yes
30640 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30641 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30642 gcc_cv_ld_no_as_needed_option='--pop-state'
30645 elif test x$gcc_cv_ld != x; then
30646 # Check if linker supports --as-needed and --no-as-needed options
30647 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30648 gcc_cv_ld_as_needed=yes
30649 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30650 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30651 && echo "$ld_ver" | grep GNU > /dev/null \
30652 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30653 # Use these options only when both ld.bfd and ld.gold support
30654 # --push-state/--pop-state, which unfortunately wasn't added
30655 # at the same time.
30656 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30657 gcc_cv_ld_no_as_needed_option='--pop-state'
30660 case "$target:$gnu_ld" in
30661 *-*-solaris2*:no)
30662 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30663 # forms.
30664 gcc_cv_ld_as_needed=yes
30665 gcc_cv_ld_as_needed_option="-z ignore"
30666 gcc_cv_ld_no_as_needed_option="-z record"
30668 esac
30670 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30671 # dl_iterate_phdr, i.e. since Solaris 11.
30672 case "$target" in
30673 *-*-solaris2.1[1-9]*)
30674 case "$target" in
30675 i?86-*-* | x86_64-*-*)
30676 if echo "$ld_ver" | grep GNU > /dev/null; then
30677 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30678 gcc_cv_ld_as_needed=no
30681 esac
30683 *-*-solaris2*)
30684 gcc_cv_ld_as_needed=no
30686 esac
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30690 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30691 if test x"$gcc_cv_ld_as_needed" = xyes; then
30693 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30696 cat >>confdefs.h <<_ACEOF
30697 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30698 _ACEOF
30701 cat >>confdefs.h <<_ACEOF
30702 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30703 _ACEOF
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30708 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30709 saved_LDFLAGS="$LDFLAGS"
30710 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30711 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30713 /* end confdefs.h. */
30714 int main(void) {return 0;}
30715 _ACEOF
30716 if ac_fn_cxx_try_link "$LINENO"; then :
30717 gcc_cv_ld_clearcap=yes; break
30718 else
30719 gcc_cv_ld_clearcap=no
30721 rm -f core conftest.err conftest.$ac_objext \
30722 conftest$ac_exeext conftest.$ac_ext
30723 done
30724 LDFLAGS="$saved_LDFLAGS"
30725 if test "x$gcc_cv_ld_clearcap" = xyes; then
30727 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30729 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30733 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30735 case "$target" in
30736 powerpc*-*-*)
30737 case "$target" in
30738 *le-*-linux*)
30739 emul_name="-melf32lppc"
30742 emul_name="-melf32ppc"
30744 esac
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30746 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30747 if ${gcc_cv_ld_ppc_attr+:} false; then :
30748 $as_echo_n "(cached) " >&6
30749 else
30750 gcc_cv_ld_ppc_attr=no
30751 if test x"$ld_is_gold" = xyes; then
30752 gcc_cv_ld_ppc_attr=yes
30753 elif test $in_tree_ld = yes ; then
30754 if test "$gcc_cv_gld_major_version" -eq 2 \
30755 -a "$gcc_cv_gld_minor_version" -ge 28 \
30756 -o "$gcc_cv_gld_major_version" -gt 2; then
30757 gcc_cv_ld_ppc_attr=yes
30759 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30760 # check that merging the long double .gnu_attribute doesn't warn
30761 cat > conftest1.s <<EOF
30762 .gnu_attribute 4,1
30764 cat > conftest2.s <<EOF
30765 .gnu_attribute 4,9
30767 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30768 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30769 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30770 && test ! -s conftest.err; then
30771 gcc_cv_ld_ppc_attr=yes
30773 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30778 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30779 if test x$gcc_cv_ld_ppc_attr = xyes; then
30781 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30785 esac
30787 case "$target:$tm_file" in
30788 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30789 case "$target" in
30790 *le-*-linux*)
30791 emul_name="-melf64lppc"
30793 *-*-linux*)
30794 emul_name="-melf64ppc"
30796 *le-*-freebsd*)
30797 emul_name="-melf64lppc_fbsd"
30799 *-*-freebsd*)
30800 emul_name="-melf64ppc_fbsd"
30802 esac
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30804 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30805 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30806 $as_echo_n "(cached) " >&6
30807 else
30808 gcc_cv_ld_no_dot_syms=no
30809 if test x"$ld_is_gold" = xyes; then
30810 gcc_cv_ld_no_dot_syms=yes
30811 elif test $in_tree_ld = yes ; then
30812 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
30813 gcc_cv_ld_no_dot_syms=yes
30815 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30816 cat > conftest1.s <<EOF
30817 .text
30818 bl .foo
30820 cat > conftest2.s <<EOF
30821 .section ".opd","aw"
30822 .align 3
30823 .globl foo
30824 .type foo,@function
30825 foo:
30826 .quad .LEfoo,.TOC.@tocbase,0
30827 .text
30828 .LEfoo:
30830 .size foo,.-.LEfoo
30832 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30833 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30834 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30835 gcc_cv_ld_no_dot_syms=yes
30837 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30842 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30843 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30845 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30850 $as_echo_n "checking linker large toc support... " >&6; }
30851 if ${gcc_cv_ld_large_toc+:} false; then :
30852 $as_echo_n "(cached) " >&6
30853 else
30854 gcc_cv_ld_large_toc=no
30855 if test x"$ld_is_gold" = xyes; then
30856 gcc_cv_ld_large_toc=yes
30857 elif test $in_tree_ld = yes ; then
30858 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
30859 gcc_cv_ld_large_toc=yes
30861 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30862 cat > conftest.s <<EOF
30863 .section ".tbss","awT",@nobits
30864 .align 3
30865 ie0: .space 8
30866 .global _start
30867 .text
30868 _start:
30869 addis 9,13,ie0@got@tprel@ha
30870 ld 9,ie0@got@tprel@l(9)
30872 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30873 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30874 gcc_cv_ld_large_toc=yes
30876 rm -f conftest conftest.o conftest.s
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30881 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30882 if test x"$gcc_cv_ld_large_toc" = xyes; then
30884 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30889 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30890 if ${gcc_cv_ld_toc_align+:} false; then :
30891 $as_echo_n "(cached) " >&6
30892 else
30893 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30894 cat > conftest.s <<EOF
30895 .global _start
30896 .text
30897 _start:
30898 addis 9,2,x@got@ha
30899 .section .data.rel.ro,"aw",@progbits
30900 .p2align 16
30901 .space 32768
30902 x: .quad .TOC.
30904 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30905 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30906 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)) }'`
30908 rm -f conftest conftest.o conftest.s
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30913 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30914 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30916 cat >>confdefs.h <<_ACEOF
30917 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30918 _ACEOF
30922 esac
30924 case "$target" in
30925 *-*-aix*)
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30927 $as_echo_n "checking linker large toc support... " >&6; }
30928 if ${gcc_cv_ld_large_toc+:} false; then :
30929 $as_echo_n "(cached) " >&6
30930 else
30931 gcc_cv_ld_large_toc=no
30932 if test x$gcc_cv_as != x ; then
30933 cat > conftest.s <<EOF
30934 .toc
30935 LC..1:
30936 .tc a[TC],a[RW]
30937 .extern a[RW]
30938 .csect .text[PR]
30939 .largetoctest:
30940 addis 9,LC..1@u(2)
30941 ld 3,LC..1@l(9)
30943 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30944 gcc_cv_ld_large_toc=yes
30946 rm -f conftest conftest.o conftest.s
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30951 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30952 if test x"$gcc_cv_ld_large_toc" = xyes; then
30954 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30958 esac
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30961 $as_echo_n "checking linker --build-id support... " >&6; }
30962 if ${gcc_cv_ld_buildid+:} false; then :
30963 $as_echo_n "(cached) " >&6
30964 else
30965 gcc_cv_ld_buildid=no
30966 if test $in_tree_ld = yes ; then
30967 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30968 "$gcc_cv_gld_minor_version" -ge 18 -o \
30969 "$gcc_cv_gld_major_version" -gt 2 \
30970 && test $in_tree_ld_is_elf = yes; then
30971 gcc_cv_ld_buildid=yes
30973 elif test x$gcc_cv_ld != x; then
30974 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30975 gcc_cv_ld_buildid=yes
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30980 $as_echo "$gcc_cv_ld_buildid" >&6; }
30981 if test x"$gcc_cv_ld_buildid" = xyes; then
30983 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30987 # Check whether --enable-linker-build-id was given.
30988 if test "${enable_linker_build_id+set}" = set; then :
30989 enableval=$enable_linker_build_id;
30990 else
30991 enable_linker_build_id=no
30995 if test x"$enable_linker_build_id" = xyes; then
30996 if test x"$gcc_cv_ld_buildid" = xyes; then
30998 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31000 else
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31002 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31006 # In binutils 2.21, GNU ld gained support for new emulations fully
31007 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31009 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31010 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31011 $as_echo_n "(cached) " >&6
31012 else
31013 gcc_cv_ld_sol2_emulation=no
31014 if test $in_tree_ld = yes ; then
31015 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31016 "$gcc_cv_gld_minor_version" -ge 21 -o \
31017 "$gcc_cv_gld_major_version" -gt 2 \
31018 && test $in_tree_ld_is_elf = yes; then
31019 gcc_cv_ld_sol2_emulation=yes
31021 elif test x$gcc_cv_ld != x; then
31022 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31023 grep _sol2 > /dev/null; then
31024 gcc_cv_ld_sol2_emulation=yes
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31029 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31030 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31032 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31037 $as_echo_n "checking linker --sysroot support... " >&6; }
31038 if ${gcc_cv_ld_sysroot+:} false; then :
31039 $as_echo_n "(cached) " >&6
31040 else
31041 gcc_cv_ld_sysroot=no
31042 if test $in_tree_ld = yes ; then
31043 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
31044 gcc_cv_ld_sysroot=yes
31046 elif test x$gcc_cv_ld != x; then
31047 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31048 gcc_cv_ld_sysroot=yes
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31053 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31054 if test x"$gcc_cv_ld_sysroot" = xyes; then
31056 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31060 case $target in
31061 *-*-solaris2*)
31062 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31064 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31065 if ${gcc_cv_solaris_crts+:} false; then :
31066 $as_echo_n "(cached) " >&6
31067 else
31068 gcc_cv_solaris_crts=no
31069 if test x$host != x$target; then
31070 if test "x$with_sysroot" = xyes; then
31071 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31072 else
31073 target_sysroot="${with_sysroot}"
31076 target_libdir="$target_sysroot/usr/lib"
31077 # At the time they were added, gcrt1.o became a symlink for backwards
31078 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31079 case $target in
31080 i?86-*-solaris2* | x86_64-*-solaris2*)
31081 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31083 sparc*-*-solaris2*)
31084 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31086 esac
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31089 $as_echo "$gcc_cv_solaris_crts" >&6; }
31091 esac
31092 if test x$gcc_cv_solaris_crts = xyes; then
31094 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31098 # Check whether --enable-libssp was given.
31099 if test "${enable_libssp+set}" = set; then :
31100 enableval=$enable_libssp; case "${enableval}" in
31101 yes|no)
31104 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31106 esac
31110 # Test for stack protector support in target C library.
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31112 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31113 if ${gcc_cv_libc_provides_ssp+:} false; then :
31114 $as_echo_n "(cached) " >&6
31115 else
31116 gcc_cv_libc_provides_ssp=no
31117 if test "x$enable_libssp" = "xno"; then
31118 gcc_cv_libc_provides_ssp=yes
31119 elif test "x$enable_libssp" = "xyes"; then
31120 gcc_cv_libc_provides_ssp=no
31121 else
31122 case "$target" in
31123 *-*-musl*)
31124 # All versions of musl provide stack protector
31125 gcc_cv_libc_provides_ssp=yes;;
31126 *-*-linux* | *-*-kfreebsd*-gnu)
31127 # glibc 2.4 and later provides __stack_chk_fail and
31128 # either __stack_chk_guard, or TLS access to stack guard canary.
31130 if test $glibc_version_major -gt 2 \
31131 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31132 gcc_cv_libc_provides_ssp=yes
31133 else
31135 if test -f $target_header_dir/features.h \
31136 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31137 $target_header_dir/features.h > /dev/null; then
31138 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31139 $target_header_dir/features.h > /dev/null && \
31140 test -f $target_header_dir/bits/uClibc_config.h && \
31141 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31142 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31143 gcc_cv_libc_provides_ssp=yes
31145 # all versions of Bionic support stack protector
31146 elif test -f $target_header_dir/sys/cdefs.h \
31147 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31148 $target_header_dir/sys/cdefs.h > /dev/null; then
31149 gcc_cv_libc_provides_ssp=yes
31153 *-*-gnu*)
31154 # Avoid complicated tests (see
31155 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31156 # simply assert that glibc does provide this, which is true for all
31157 # realistically usable GNU/Hurd configurations.
31158 # All supported versions of musl provide it as well
31159 gcc_cv_libc_provides_ssp=yes;;
31160 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31161 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31162 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31163 gcc_cv_libc_provides_ssp=yes
31164 else
31165 echo "no __stack_chk_fail on this target"
31169 *) gcc_cv_libc_provides_ssp=no ;;
31170 esac
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31174 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31176 if test x$gcc_cv_libc_provides_ssp = xyes; then
31178 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31182 # Check whether --enable-default-ssp was given.
31183 # Check whether --enable-default-ssp was given.
31184 if test "${enable_default_ssp+set}" = set; then :
31185 enableval=$enable_default_ssp;
31186 if test x$gcc_cv_libc_provides_ssp = xyes; then
31187 case "$target" in
31188 ia64*-*-*) enable_default_ssp=no ;;
31189 *) enable_default_ssp=$enableval ;;
31190 esac
31191 else
31192 enable_default_ssp=no
31194 else
31195 enable_default_ssp=no
31198 if test x$enable_default_ssp = xyes ; then
31200 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31205 # Test for <sys/sdt.h> on the target.
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31208 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31209 if ${gcc_cv_sys_sdt_h+:} false; then :
31210 $as_echo_n "(cached) " >&6
31211 else
31213 gcc_cv_sys_sdt_h=no
31214 if test -f $target_header_dir/sys/sdt.h; then
31215 gcc_cv_sys_sdt_h=yes
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31220 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31221 if test x$gcc_cv_sys_sdt_h = xyes; then :
31224 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31229 # Check if TFmode long double should be used by default or not.
31230 # Some glibc targets used DFmode long double, but with glibc 2.4
31231 # and later they can use TFmode.
31232 case "$target" in
31233 powerpc*-*-linux* | \
31234 sparc*-*-linux* | \
31235 s390*-*-linux* | \
31236 alpha*-*-linux*)
31238 # Check whether --with-long-double-128 was given.
31239 if test "${with_long_double_128+set}" = set; then :
31240 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31241 else
31243 case "$target" in
31244 s390*-*-linux-musl*)
31245 gcc_cv_target_ldbl128=yes
31247 powerpc*-*-linux-musl*)
31248 gcc_cv_target_ldbl128=no
31252 if test $glibc_version_major -gt 2 \
31253 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31254 gcc_cv_target_ldbl128=yes
31255 else
31257 gcc_cv_target_ldbl128=no
31258 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31259 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31260 && gcc_cv_target_ldbl128=yes
31265 esac
31270 esac
31271 if test x$gcc_cv_target_ldbl128 = xyes; then
31273 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31277 # Check if TFmode long double target should use the IBM extended double or IEEE
31278 # 128-bit floating point formats if long doubles are 128-bits long. The long
31279 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31280 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31281 # libgcc.
31283 # Check whether --with-long-double-format was given.
31284 if test "${with_long_double_format+set}" = set; then :
31285 withval=$with_long_double_format;
31286 case "$target:$with_long_double_format" in
31287 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31290 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31291 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31292 case "$with_cpu" in
31293 power7 | power8 | power9 | power1*)
31297 as_fn_error $? "Configuration option --with-long-double-format is only \
31298 supported if the default cpu is power7 or newer" "$LINENO" 5
31299 with_long_double_format=""
31301 esac
31303 powerpc64*-*-linux*:*)
31304 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31305 with_long_double_format=""
31308 as_fn_error $? "Configure option --with-long-double-format is only supported \
31309 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31310 with_long_double_format=""
31312 esac
31316 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31317 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31318 gcc_cv_libc_provides_hwcap_in_tcb=no
31319 case "$target" in
31320 powerpc*-*-linux*)
31322 if test $glibc_version_major -gt 2 \
31323 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31324 gcc_cv_libc_provides_hwcap_in_tcb=yes
31327 esac
31328 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31330 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31334 # Check if the target LIBC handles PT_GNU_STACK.
31335 gcc_cv_libc_gnustack=unknown
31336 case "$target" in
31337 mips*-*-linux-musl*)
31338 gcc_cv_libc_gnustack=yes
31340 mips*-*-linux*)
31342 if test $glibc_version_major -gt 2 \
31343 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31344 gcc_cv_libc_gnustack=yes
31347 esac
31348 if test x$gcc_cv_libc_gnustack = xyes; then
31350 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31355 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31356 gcc_cv_target_dl_iterate_phdr=unknown
31357 case "$target" in
31358 *-*-solaris2*)
31359 # <link.h> needs both a dl_iterate_phdr declaration and support for
31360 # compilation with largefile support.
31361 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31362 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31363 gcc_cv_target_dl_iterate_phdr=yes
31364 else
31365 gcc_cv_target_dl_iterate_phdr=no
31368 *-*-dragonfly* | *-*-freebsd*)
31369 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31370 gcc_cv_target_dl_iterate_phdr=yes
31371 else
31372 gcc_cv_target_dl_iterate_phdr=no
31375 *-linux-musl*)
31376 gcc_cv_target_dl_iterate_phdr=yes
31378 esac
31380 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31382 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31386 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31388 # We no longer support different GC mechanisms. Emit an error if
31389 # the user configures with --with-gc.
31391 # Check whether --with-gc was given.
31392 if test "${with_gc+set}" = set; then :
31393 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31397 # Libraries to use on the host. This will normally be set by the top
31398 # level Makefile. Here we simply capture the value for our Makefile.
31399 if test -z "${HOST_LIBS+set}"; then
31400 HOST_LIBS=
31404 # Use the system's zlib library.
31406 # Use the system's zlib library.
31407 zlibdir="-L\$(top_builddir)/../zlib"
31408 zlibinc="-I\$(top_srcdir)/../zlib"
31410 # Check whether --with-system-zlib was given.
31411 if test "${with_system_zlib+set}" = set; then :
31412 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31413 zlibdir=
31414 zlibinc=
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31425 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31426 # Check whether --enable-maintainer-mode was given.
31427 if test "${enable_maintainer_mode+set}" = set; then :
31428 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31429 else
31430 maintainer_mode=no
31434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31435 $as_echo "$maintainer_mode" >&6; }
31437 if test "$maintainer_mode" = "yes"; then
31438 MAINT=''
31439 else
31440 MAINT='#'
31443 if test -z "$CTAGS"; then
31444 CTAGS=ctags
31447 if test -z "$ETAGS"; then
31448 ETAGS=etags
31451 if test -z "$CSCOPE"; then
31452 CSCOPE=cscope
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31458 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31459 # Check whether --enable-link-mutex was given.
31460 if test "${enable_link_mutex+set}" = set; then :
31461 enableval=$enable_link_mutex; do_link_mutex=$enableval
31462 else
31463 do_link_mutex=no
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31467 $as_echo "$do_link_mutex" >&6; }
31469 if test "$do_link_mutex" = "yes"; then
31470 DO_LINK_MUTEX=true
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
31472 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31473 else
31474 DO_LINK_MUTEX=false
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31480 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31481 # Check whether --enable-link-serialization was given.
31482 if test "${enable_link_serialization+set}" = set; then :
31483 enableval=$enable_link_serialization; do_link_serialization=$enableval
31484 else
31485 do_link_serialization=no
31488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31489 $as_echo "$do_link_serialization" >&6; }
31491 case "$do_link_serialization" in
31492 yes)
31493 DO_LINK_SERIALIZATION=1;;
31494 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31495 DO_LINK_SERIALIZATION=$do_link_serialization;;
31497 DO_LINK_SERIALIZATION=;;
31499 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31500 esac
31503 # --------------
31504 # Language hooks
31505 # --------------
31507 # Make empty files to contain the specs and options for each language.
31508 # Then add #include lines to for a compiler that has specs and/or options.
31510 subdirs=
31511 lang_opt_files=
31512 lang_specs_files=
31513 lang_tree_files=
31514 # These (without "all_") are set in each config-lang.in.
31515 # `language' must be a single word so is spelled singularly.
31516 all_languages=
31517 all_compilers=
31518 all_outputs='Makefile'
31519 # List of language configure and makefile fragments.
31520 all_lang_configurefrags=
31521 all_lang_makefrags=
31522 # Additional files for gengtype
31523 all_gtfiles="$target_gtfiles"
31525 # These are the languages that are set in --enable-languages,
31526 # and are available in the GCC tree.
31527 all_selected_languages=
31529 # Add the language fragments.
31530 # Languages are added via two mechanisms. Some information must be
31531 # recorded in makefile variables, these are defined in config-lang.in.
31532 # We accumulate them and plug them into the main Makefile.
31533 # The other mechanism is a set of hooks for each of the main targets
31534 # like `clean', `install', etc.
31536 language_hooks="Make-hooks"
31538 for lang in ${srcdir}/*/config-lang.in
31540 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31542 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31543 if test "x$lang_alias" = x
31544 then
31545 echo "$lang doesn't set \$language." 1>&2
31546 exit 1
31548 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31549 subdirs="$subdirs $subdir"
31551 # $gcc_subdir is where the gcc integration files are to be found
31552 # for a language, both for internal compiler purposes (compiler
31553 # sources implementing front-end to GCC tree converters), and for
31554 # build infrastructure purposes (Make-lang.in, etc.)
31556 # This will be <subdir> (relative to $srcdir) if a line like
31557 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31558 # is found in <langdir>/config-lang.in, and will remain <langdir>
31559 # otherwise.
31561 # Except for the language alias (fetched above), the regular
31562 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31563 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31564 # only this and the language alias.
31566 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31567 if [ "$gcc_subdir" = "" ]; then
31568 gcc_subdir="$subdir"
31571 case ",$enable_languages," in
31572 *,$lang_alias,*)
31573 all_selected_languages="$all_selected_languages $lang_alias"
31574 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31575 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31578 esac
31580 language=
31581 boot_language=
31582 compilers=
31583 outputs=
31584 gtfiles=
31585 subdir_requires=
31586 . ${srcdir}/$gcc_subdir/config-lang.in
31587 if test "x$language" = x
31588 then
31589 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31590 exit 1
31593 ok=:
31594 case ",$enable_languages," in
31595 *,$lang_alias,*) ;;
31597 for i in $subdir_requires; do
31598 test -f "${srcdir}/$i/config-lang.in" && continue
31599 ok=false
31600 break
31601 done
31603 esac
31604 $ok || continue
31606 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31607 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31608 # Put c/Make-lang.in fragment first to match serialization languages order.
31609 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31610 else
31611 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31613 if test -f $srcdir/$gcc_subdir/lang.opt; then
31614 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31615 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31617 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31618 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31620 all_languages="$all_languages $language"
31621 all_compilers="$all_compilers $compilers"
31622 all_outputs="$all_outputs $outputs"
31623 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31624 case ",$enable_languages," in
31625 *,lto,*)
31627 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31629 enable_lto=yes
31632 *) ;;
31633 esac
31634 done
31636 check_languages=
31637 for language in $all_selected_languages
31639 check_languages="$check_languages check-$language"
31640 done
31642 selftest_languages=
31643 for language in $all_selected_languages
31645 selftest_languages="$selftest_languages selftest-$language"
31646 done
31648 # We link each language in with a set of hooks, reached indirectly via
31649 # lang.${target}. Only do so for selected languages.
31651 rm -f Make-hooks
31652 touch Make-hooks
31653 target_list="all.cross start.encap rest.encap tags \
31654 install-common install-man install-info install-dvi install-pdf \
31655 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31656 mostlyclean clean distclean maintainer-clean install-plugin"
31658 for t in $target_list
31661 for lang in $all_selected_languages
31663 x="$x $lang.$t"
31664 done
31665 echo "lang.$t: $x" >> Make-hooks
31666 done
31668 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31669 echo "SERIAL_LIST =" >> Make-hooks
31670 echo else >> Make-hooks
31671 lang_cnt=0
31672 lang_list=
31673 prev=c
31674 serialization_languages=c
31675 for lang in $all_selected_languages
31677 test $lang = c && continue
31678 if test $lang = lto; then
31679 serialization_languages="$serialization_languages lto1 lto2"
31680 else
31681 serialization_languages="$serialization_languages $lang"
31683 done
31684 for lang in $serialization_languages
31686 test $lang = c && continue
31687 lang_cnt=`expr $lang_cnt + 1`
31688 lang_list=" $prev$lang_list"
31689 prev=${lang}
31690 done
31691 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31692 echo endif >> Make-hooks
31693 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31694 echo "INDEX.c = 0" >> Make-hooks
31695 lang_idx=1
31696 for lang in $serialization_languages
31698 test $lang = c && continue
31699 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31700 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31701 lang_cnt=`expr $lang_cnt - 1`
31702 lang_idx=`expr $lang_idx + 1`
31703 done
31705 # --------
31706 # Option include files
31707 # --------
31709 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31710 option_includes="option-includes.mk"
31713 # --------
31714 # UNSORTED
31715 # --------
31717 # Create .gdbinit.
31719 echo "dir ." > .gdbinit
31720 echo "dir ${srcdir}" >> .gdbinit
31721 if test x$gdb_needs_out_file_path = xyes
31722 then
31723 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31725 if test "x$subdirs" != x; then
31726 for s in $subdirs
31728 echo "dir ${srcdir}/$s" >> .gdbinit
31729 done
31731 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31732 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31734 # Put a breakpoint on __asan_report_error to help with debugging buffer
31735 # overflow.
31736 case "$CFLAGS" in
31737 *-fsanitize=address*)
31738 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31740 esac
31742 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31746 # Find a directory in which to install a shared libgcc.
31748 # Check whether --enable-version-specific-runtime-libs was given.
31749 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31750 enableval=$enable_version_specific_runtime_libs;
31754 # Substitute configuration variables
31824 # Echo link setup.
31825 if test x${build} = x${host} ; then
31826 if test x${host} = x${target} ; then
31827 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31828 else
31829 echo "Links are now set up to build a cross-compiler" 1>&2
31830 echo " from ${host} to ${target}." 1>&2
31832 else
31833 if test x${host} = x${target} ; then
31834 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31835 echo " for ${target}." 1>&2
31836 else
31837 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31838 echo " from ${host} to ${target}." 1>&2
31847 if test "x${ISLLIBS}" != "x" ; then
31849 $as_echo "#define HAVE_isl 1" >>confdefs.h
31853 # Check for plugin support
31854 # Check whether --enable-plugin was given.
31855 if test "${enable_plugin+set}" = set; then :
31856 enableval=$enable_plugin; enable_plugin=$enableval
31857 else
31858 enable_plugin=yes; default_plugin=yes
31862 pluginlibs=
31863 plugin_check=yes
31865 case "${host}" in
31866 *-*-mingw*)
31867 # Since plugin support under MinGW is not as straightforward as on
31868 # other platforms (e.g., we have to link import library, etc), we
31869 # only enable it if explicitly requested.
31870 if test x"$default_plugin" = x"yes"; then
31871 enable_plugin=no
31872 elif test x"$enable_plugin" = x"yes"; then
31873 # Use make's target variable to derive import library name.
31874 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31875 plugin_check=no
31878 *-*-darwin*)
31879 if test x$build = x$host; then
31880 export_sym_check="nm${exeext} -g"
31881 elif test x$host = x$target; then
31882 export_sym_check="$gcc_cv_nm -g"
31883 else
31884 export_sym_check=
31888 if test x$build = x$host; then
31889 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31890 elif test x$host = x$target; then
31891 export_sym_check="$gcc_cv_objdump -T"
31892 else
31893 export_sym_check=
31896 esac
31898 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31901 $as_echo_n "checking for exported symbols... " >&6; }
31902 if test "x$export_sym_check" != x; then
31903 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31904 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31905 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31906 : # No need to use a flag
31907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31908 $as_echo "yes" >&6; }
31909 else
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31911 $as_echo "yes" >&6; }
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31913 $as_echo_n "checking for -rdynamic... " >&6; }
31914 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31915 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31916 plugin_rdynamic=yes
31917 pluginlibs="-rdynamic"
31918 else
31919 plugin_rdynamic=no
31920 enable_plugin=no
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31923 $as_echo "$plugin_rdynamic" >&6; }
31925 else
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31927 $as_echo "unable to check" >&6; }
31930 # Check -ldl
31931 saved_LIBS="$LIBS"
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31933 $as_echo_n "checking for library containing dlopen... " >&6; }
31934 if ${ac_cv_search_dlopen+:} false; then :
31935 $as_echo_n "(cached) " >&6
31936 else
31937 ac_func_search_save_LIBS=$LIBS
31938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31939 /* end confdefs.h. */
31941 /* Override any GCC internal prototype to avoid an error.
31942 Use char because int might match the return type of a GCC
31943 builtin and then its argument prototype would still apply. */
31944 #ifdef __cplusplus
31945 extern "C"
31946 #endif
31947 char dlopen ();
31949 main ()
31951 return dlopen ();
31953 return 0;
31955 _ACEOF
31956 for ac_lib in '' dl; do
31957 if test -z "$ac_lib"; then
31958 ac_res="none required"
31959 else
31960 ac_res=-l$ac_lib
31961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31963 if ac_fn_cxx_try_link "$LINENO"; then :
31964 ac_cv_search_dlopen=$ac_res
31966 rm -f core conftest.err conftest.$ac_objext \
31967 conftest$ac_exeext
31968 if ${ac_cv_search_dlopen+:} false; then :
31969 break
31971 done
31972 if ${ac_cv_search_dlopen+:} false; then :
31974 else
31975 ac_cv_search_dlopen=no
31977 rm conftest.$ac_ext
31978 LIBS=$ac_func_search_save_LIBS
31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31981 $as_echo "$ac_cv_search_dlopen" >&6; }
31982 ac_res=$ac_cv_search_dlopen
31983 if test "$ac_res" != no; then :
31984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31988 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31989 pluginlibs="$pluginlibs -ldl"
31991 LIBS="$saved_LIBS"
31993 # Check that we can build shared objects with -fPIC -shared
31994 saved_LDFLAGS="$LDFLAGS"
31995 saved_CFLAGS="$CFLAGS"
31996 saved_CXXFLAGS="$CXXFLAGS"
31997 case "${host}" in
31998 *-*-darwin*)
31999 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32000 CFLAGS="$CFLAGS -fPIC"
32001 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32002 CXXFLAGS="$CXXFLAGS -fPIC"
32003 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32006 CFLAGS="$CFLAGS -fPIC"
32007 CXXFLAGS="$CXXFLAGS -fPIC"
32008 LDFLAGS="$LDFLAGS -fPIC -shared"
32010 esac
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32012 $as_echo_n "checking for -fPIC -shared... " >&6; }
32013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32014 /* end confdefs.h. */
32015 extern int X;
32017 main ()
32019 return X == 0;
32021 return 0;
32023 _ACEOF
32024 if ac_fn_cxx_try_link "$LINENO"; then :
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32026 $as_echo "yes" >&6; }; have_pic_shared=yes
32027 else
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32029 $as_echo "no" >&6; }; have_pic_shared=no
32031 rm -f core conftest.err conftest.$ac_objext \
32032 conftest$ac_exeext conftest.$ac_ext
32033 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32034 pluginlibs=
32035 enable_plugin=no
32037 LDFLAGS="$saved_LDFLAGS"
32038 CFLAGS="$saved_CFLAGS"
32039 CXXFLAGS="$saved_CXXFLAGS"
32041 # If plugin support had been requested but not available, fail.
32042 if test x"$enable_plugin" = x"no" ; then
32043 if test x"$default_plugin" != x"yes"; then
32044 as_fn_error $? "
32045 Building GCC with plugin support requires a host that supports
32046 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32053 if test x"$enable_plugin" = x"yes"; then
32055 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32060 # Enable --enable-host-shared
32061 # Check whether --enable-host-shared was given.
32062 if test "${enable_host_shared+set}" = set; then :
32063 enableval=$enable_host_shared; PICFLAG=-fPIC
32064 else
32065 PICFLAG=
32072 # Check whether --enable-libquadmath-support was given.
32073 if test "${enable_libquadmath_support+set}" = set; then :
32074 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32075 else
32076 ENABLE_LIBQUADMATH_SUPPORT=yes
32079 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32081 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32086 # Specify what hash style to use by default.
32088 # Check whether --with-linker-hash-style was given.
32089 if test "${with_linker_hash_style+set}" = set; then :
32090 withval=$with_linker_hash_style; case x"$withval" in
32091 xsysv)
32092 LINKER_HASH_STYLE=sysv
32094 xgnu)
32095 LINKER_HASH_STYLE=gnu
32097 xboth)
32098 LINKER_HASH_STYLE=both
32101 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32103 esac
32104 else
32105 LINKER_HASH_STYLE=''
32108 if test x"${LINKER_HASH_STYLE}" != x; then
32110 cat >>confdefs.h <<_ACEOF
32111 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32112 _ACEOF
32116 # Specify what should be the default of -fdiagnostics-color option.
32118 # Check whether --with-diagnostics-color was given.
32119 if test "${with_diagnostics_color+set}" = set; then :
32120 withval=$with_diagnostics_color; case x"$withval" in
32121 xnever)
32122 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32124 xauto)
32125 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32127 xauto-if-env)
32128 DIAGNOSTICS_COLOR_DEFAULT=-1
32130 xalways)
32131 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32134 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32136 esac
32137 else
32138 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32142 cat >>confdefs.h <<_ACEOF
32143 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32144 _ACEOF
32147 # Specify what should be the default of -fdiagnostics-urls option.
32149 # Check whether --with-diagnostics-urls was given.
32150 if test "${with_diagnostics_urls+set}" = set; then :
32151 withval=$with_diagnostics_urls; case x"$withval" in
32152 xnever)
32153 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32155 xauto)
32156 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32158 xauto-if-env)
32159 DIAGNOSTICS_URLS_DEFAULT=-1
32161 xalways)
32162 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32165 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32167 esac
32168 else
32169 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32173 cat >>confdefs.h <<_ACEOF
32174 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32175 _ACEOF
32178 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32179 # of jit/jit-playback.cc.
32180 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32181 echo "gcc_driver_version: ${gcc_driver_version}"
32182 cat > gcc-driver-name.h <<EOF
32183 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32186 # Check whether --enable-default-pie was given.
32187 # Check whether --enable-default-pie was given.
32188 if test "${enable_default_pie+set}" = set; then :
32189 enableval=$enable_default_pie; enable_default_pie=$enableval
32190 else
32191 enable_default_pie=no
32194 if test x$enable_default_pie = xyes ; then
32196 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32201 # Check if -fno-PIE works.
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32203 $as_echo_n "checking for -fno-PIE option... " >&6; }
32204 if ${gcc_cv_c_no_fpie+:} false; then :
32205 $as_echo_n "(cached) " >&6
32206 else
32207 saved_CXXFLAGS="$CXXFLAGS"
32208 CXXFLAGS="$CXXFLAGS -fno-PIE"
32209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32210 /* end confdefs.h. */
32211 int main(void) {return 0;}
32212 _ACEOF
32213 if ac_fn_cxx_try_compile "$LINENO"; then :
32214 gcc_cv_c_no_fpie=yes
32215 else
32216 gcc_cv_c_no_fpie=no
32218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32219 CXXFLAGS="$saved_CXXFLAGS"
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32222 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32223 if test "$gcc_cv_c_no_fpie" = "yes"; then
32224 NO_PIE_CFLAGS="-fno-PIE"
32228 # Check if -no-pie works.
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32230 $as_echo_n "checking for -no-pie option... " >&6; }
32231 if ${gcc_cv_no_pie+:} false; then :
32232 $as_echo_n "(cached) " >&6
32233 else
32234 saved_LDFLAGS="$LDFLAGS"
32235 LDFLAGS="$LDFLAGS -no-pie"
32236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32237 /* end confdefs.h. */
32238 int main(void) {return 0;}
32239 _ACEOF
32240 if ac_fn_cxx_try_link "$LINENO"; then :
32241 gcc_cv_no_pie=yes
32242 else
32243 gcc_cv_no_pie=no
32245 rm -f core conftest.err conftest.$ac_objext \
32246 conftest$ac_exeext conftest.$ac_ext
32247 LDFLAGS="$saved_LDFLAGS"
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32250 $as_echo "$gcc_cv_no_pie" >&6; }
32251 if test "$gcc_cv_no_pie" = "yes"; then
32252 NO_PIE_FLAG="-no-pie"
32256 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32257 # Check whether --enable-cet was given.
32258 if test "${enable_cet+set}" = set; then :
32259 enableval=$enable_cet;
32260 case "$enableval" in
32261 yes|no|auto) ;;
32262 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32263 esac
32265 else
32266 enable_cet=auto
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32271 $as_echo_n "checking for CET support... " >&6; }
32273 case "$host" in
32274 i[34567]86-*-linux* | x86_64-*-linux*)
32275 may_have_cet=yes
32276 cet_save_CFLAGS="$CFLAGS"
32277 CFLAGS="$CFLAGS -fcf-protection"
32278 case "$enable_cet" in
32279 auto)
32280 # Check if target supports multi-byte NOPs
32281 # and if compiler and assembler support CET.
32282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32283 /* end confdefs.h. */
32286 main ()
32289 #if !defined(__SSE2__)
32290 #error target does not support multi-byte NOPs
32291 #else
32292 asm ("setssbsy");
32293 #endif
32296 return 0;
32298 _ACEOF
32299 if ac_fn_cxx_try_compile "$LINENO"; then :
32300 enable_cet=yes
32301 else
32302 enable_cet=no
32304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32306 yes)
32307 # Check if compiler and assembler support CET.
32308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32309 /* end confdefs.h. */
32312 main ()
32314 asm ("setssbsy");
32316 return 0;
32318 _ACEOF
32319 if ac_fn_cxx_try_compile "$LINENO"; then :
32320 support_cet=yes
32321 else
32322 support_cet=no
32324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32325 if test $support_cet = "no"; then
32326 if test x$enable_bootstrap != xno \
32327 && test -z "${with_build_subdir}" \
32328 && (test ! -f ../stage_current \
32329 || test `cat ../stage_current` != "stage1"); then
32330 # Require CET support only for the final GCC build.
32331 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32332 else
32333 # Don't enable CET without CET support for non-bootstrap
32334 # build, in stage1 nor for build support.
32335 enable_cet=no
32339 esac
32340 CFLAGS="$cet_save_CFLAGS"
32343 may_have_cet=no
32344 enable_cet=no
32346 esac
32348 cet_save_CFLAGS="$CFLAGS"
32349 CFLAGS="$CFLAGS -fcf-protection=none"
32350 cet_save_LDFLAGS="$LDFLAGS"
32351 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32352 if test x$may_have_cet = xyes; then
32353 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32355 /* end confdefs.h. */
32358 main ()
32360 return 0;
32362 return 0;
32364 _ACEOF
32365 if ac_fn_cxx_try_link "$LINENO"; then :
32366 may_have_cet=yes
32367 else
32368 may_have_cet=no
32370 rm -f core conftest.err conftest.$ac_objext \
32371 conftest$ac_exeext conftest.$ac_ext
32374 if test x$may_have_cet = xyes; then
32375 if test x$cross_compiling = xno; then
32376 if test "$cross_compiling" = yes; then :
32377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32379 as_fn_error $? "cannot run test program while cross compiling
32380 See \`config.log' for more details" "$LINENO" 5; }
32381 else
32382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32383 /* end confdefs.h. */
32386 main ()
32388 asm ("endbr32");
32389 return 0;
32392 _ACEOF
32393 if ac_fn_cxx_try_run "$LINENO"; then :
32394 have_multi_byte_nop=yes
32395 else
32396 have_multi_byte_nop=no
32398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32399 conftest.$ac_objext conftest.beam conftest.$ac_ext
32402 have_cet=no
32403 if test x$have_multi_byte_nop = xyes; then
32404 if test "$cross_compiling" = yes; then :
32405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32407 as_fn_error $? "cannot run test program while cross compiling
32408 See \`config.log' for more details" "$LINENO" 5; }
32409 else
32410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32411 /* end confdefs.h. */
32413 static void
32414 foo (void)
32418 static void
32419 __attribute__ ((noinline, noclone))
32420 xxx (void (*f) (void))
32422 f ();
32425 static void
32426 __attribute__ ((noinline, noclone))
32427 bar (void)
32429 xxx (foo);
32433 main ()
32435 bar ();
32436 return 0;
32439 _ACEOF
32440 if ac_fn_cxx_try_run "$LINENO"; then :
32441 have_cet=no
32442 else
32443 have_cet=yes
32445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32446 conftest.$ac_objext conftest.beam conftest.$ac_ext
32450 if test x$enable_cet = xno -a x$have_cet = xyes; then
32451 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32454 else
32455 # Enable CET in cross compiler if possible so that it will run on both
32456 # CET and non-CET hosts.
32457 have_cet=yes
32459 if test x$enable_cet = xyes; then
32460 CET_HOST_FLAGS="-fcf-protection"
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32462 $as_echo "yes" >&6; }
32463 else
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32465 $as_echo "no" >&6; }
32467 CFLAGS="$cet_save_CFLAGS"
32468 LDFLAGS="$cet_save_LDFLAGS"
32470 case x$enable_languages in
32471 *jit*)
32474 CET_HOST_FLAGS=
32476 esac
32479 # Check linker supports '-z bndplt'
32480 ld_bndplt_support=no
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32482 $as_echo_n "checking linker -z bndplt option... " >&6; }
32483 if test x"$ld_is_gold" = xno; then
32484 if test $in_tree_ld = yes ; then
32485 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
32486 ld_bndplt_support=yes
32488 elif test x$gcc_cv_ld != x; then
32489 # Check if linker supports -a bndplt option
32490 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32491 ld_bndplt_support=yes
32495 if test x"$ld_bndplt_support" = xyes; then
32497 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32501 $as_echo "$ld_bndplt_support" >&6; }
32503 # Check linker supports '--push-state'/'--pop-state'
32504 ld_pushpopstate_support=no
32505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32506 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32507 if test x"$ld_is_gold" = xno; then
32508 if test $in_tree_ld = yes ; then
32509 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
32510 ld_pushpopstate_support=yes
32512 elif test x$gcc_cv_ld != x; then
32513 # Check if linker supports --push-state/--pop-state options
32514 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32515 ld_pushpopstate_support=yes
32519 if test x"$ld_pushpopstate_support" = xyes; then
32521 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32525 $as_echo "$ld_pushpopstate_support" >&6; }
32527 # On s390, float_t has historically been statically defined as double for no
32528 # good reason. To comply with the C standard in the light of this definition,
32529 # gcc has evaluated float expressions in double precision when in
32530 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32531 # a smooth transition towards the new model used by most architectures, where
32532 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32533 # float_t from that, this behavior can be configured with
32534 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32535 # the old model. When omitted, native builds and cross compiles that have target
32536 # libc headers will detect whether libc clamps float_t to double and in that
32537 # case maintain the old model. Otherwise, they will default to the new model.
32538 # Check whether --enable-s390-excess-float-precision was given.
32539 if test "${enable_s390_excess_float_precision+set}" = set; then :
32540 enableval=$enable_s390_excess_float_precision;
32541 else
32542 enable_s390_excess_float_precision=auto
32546 case $target in
32547 s390*-linux*)
32548 if test x"$enable_s390_excess_float_precision" = xauto; then
32549 # Can we autodetect the behavior of the target libc?
32550 if test "$target" = "$host" -a "$host" = "$build"; then
32551 enable_s390_excess_float_precision=autodetect
32552 elif test "x$with_headers" != xno; then
32553 # cross build. are target headers available?
32554 # carefully coerce the build-system compiler to use target headers
32555 saved_CXXFLAGS="$CXXFLAGS"
32556 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32557 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32558 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32560 /* end confdefs.h. */
32562 #include <math.h>
32564 _ACEOF
32565 if ac_fn_cxx_try_compile "$LINENO"; then :
32566 enable_s390_excess_float_precision=autodetect
32568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 CXXFLAGS="$saved_CXXFLAGS"
32572 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32573 saved_CXXFLAGS="$CXXFLAGS"
32574 if ! test "$target" = "$host" -a "$host" = "$build"; then
32575 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32576 unset CROSS_TEST_CXXFLAGS
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32579 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32580 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32581 $as_echo_n "(cached) " >&6
32582 else
32584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32585 /* end confdefs.h. */
32587 #define __FLT_EVAL_METHOD__ 0
32588 #include <math.h>
32589 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32591 _ACEOF
32592 if ac_fn_cxx_try_compile "$LINENO"; then :
32593 gcc_cv_float_t_clamped_to_double=yes
32594 else
32595 gcc_cv_float_t_clamped_to_double=no
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32600 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32601 CXXFLAGS="$saved_CXXFLAGS"
32602 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32603 else
32604 # no way to detect behavior of target libc, default to new model
32605 enable_s390_excess_float_precision=no
32610 if test x"$enable_s390_excess_float_precision" = xyes; then
32612 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32616 esac
32618 # Configure the subdirectories
32619 # AC_CONFIG_SUBDIRS($subdirs)
32621 # Create the Makefile
32622 # and configure language subdirectories
32623 ac_config_files="$ac_config_files $all_outputs"
32626 ac_config_commands="$ac_config_commands default"
32628 cat >confcache <<\_ACEOF
32629 # This file is a shell script that caches the results of configure
32630 # tests run on this system so they can be shared between configure
32631 # scripts and configure runs, see configure's option --config-cache.
32632 # It is not useful on other systems. If it contains results you don't
32633 # want to keep, you may remove or edit it.
32635 # config.status only pays attention to the cache file if you give it
32636 # the --recheck option to rerun configure.
32638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32640 # following values.
32642 _ACEOF
32644 # The following way of writing the cache mishandles newlines in values,
32645 # but we know of no workaround that is simple, portable, and efficient.
32646 # So, we kill variables containing newlines.
32647 # Ultrix sh set writes to stderr and can't be redirected directly,
32648 # and sets the high bit in the cache file unless we assign to the vars.
32650 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32651 eval ac_val=\$$ac_var
32652 case $ac_val in #(
32653 *${as_nl}*)
32654 case $ac_var in #(
32655 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32656 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32657 esac
32658 case $ac_var in #(
32659 _ | IFS | as_nl) ;; #(
32660 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32661 *) { eval $ac_var=; unset $ac_var;} ;;
32662 esac ;;
32663 esac
32664 done
32666 (set) 2>&1 |
32667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32668 *${as_nl}ac_space=\ *)
32669 # `set' does not quote correctly, so add quotes: double-quote
32670 # substitution turns \\\\ into \\, and sed turns \\ into \.
32671 sed -n \
32672 "s/'/'\\\\''/g;
32673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32674 ;; #(
32676 # `set' quotes correctly as required by POSIX, so do not add quotes.
32677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32679 esac |
32680 sort
32682 sed '
32683 /^ac_cv_env_/b end
32684 t clear
32685 :clear
32686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32687 t end
32688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32689 :end' >>confcache
32690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32691 if test -w "$cache_file"; then
32692 if test "x$cache_file" != "x/dev/null"; then
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32694 $as_echo "$as_me: updating cache $cache_file" >&6;}
32695 if test ! -f "$cache_file" || test -h "$cache_file"; then
32696 cat confcache >"$cache_file"
32697 else
32698 case $cache_file in #(
32699 */* | ?:*)
32700 mv -f confcache "$cache_file"$$ &&
32701 mv -f "$cache_file"$$ "$cache_file" ;; #(
32703 mv -f confcache "$cache_file" ;;
32704 esac
32707 else
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32709 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32712 rm -f confcache
32714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32715 # Let make expand exec_prefix.
32716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32718 DEFS=-DHAVE_CONFIG_H
32720 ac_libobjs=
32721 ac_ltlibobjs=
32723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32724 # 1. Remove the extension, and $U if already installed.
32725 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32726 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32727 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32728 # will be set to the directory where LIBOBJS objects are built.
32729 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32730 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32731 done
32732 LIBOBJS=$ac_libobjs
32734 LTLIBOBJS=$ac_ltlibobjs
32739 : "${CONFIG_STATUS=./config.status}"
32740 ac_write_fail=0
32741 ac_clean_files_save=$ac_clean_files
32742 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32744 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32745 as_write_fail=0
32746 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32747 #! $SHELL
32748 # Generated by $as_me.
32749 # Run this file to recreate the current configuration.
32750 # Compiler output produced by configure, useful for debugging
32751 # configure, is in config.log if it exists.
32753 debug=false
32754 ac_cs_recheck=false
32755 ac_cs_silent=false
32757 SHELL=\${CONFIG_SHELL-$SHELL}
32758 export SHELL
32759 _ASEOF
32760 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32761 ## -------------------- ##
32762 ## M4sh Initialization. ##
32763 ## -------------------- ##
32765 # Be more Bourne compatible
32766 DUALCASE=1; export DUALCASE # for MKS sh
32767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32768 emulate sh
32769 NULLCMD=:
32770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32771 # is contrary to our usage. Disable this feature.
32772 alias -g '${1+"$@"}'='"$@"'
32773 setopt NO_GLOB_SUBST
32774 else
32775 case `(set -o) 2>/dev/null` in #(
32776 *posix*) :
32777 set -o posix ;; #(
32778 *) :
32780 esac
32784 as_nl='
32786 export as_nl
32787 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32788 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32789 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32791 # Prefer a ksh shell builtin over an external printf program on Solaris,
32792 # but without wasting forks for bash or zsh.
32793 if test -z "$BASH_VERSION$ZSH_VERSION" \
32794 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32795 as_echo='print -r --'
32796 as_echo_n='print -rn --'
32797 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32798 as_echo='printf %s\n'
32799 as_echo_n='printf %s'
32800 else
32801 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32802 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32803 as_echo_n='/usr/ucb/echo -n'
32804 else
32805 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32806 as_echo_n_body='eval
32807 arg=$1;
32808 case $arg in #(
32809 *"$as_nl"*)
32810 expr "X$arg" : "X\\(.*\\)$as_nl";
32811 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32812 esac;
32813 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32815 export as_echo_n_body
32816 as_echo_n='sh -c $as_echo_n_body as_echo'
32818 export as_echo_body
32819 as_echo='sh -c $as_echo_body as_echo'
32822 # The user is always right.
32823 if test "${PATH_SEPARATOR+set}" != set; then
32824 PATH_SEPARATOR=:
32825 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32826 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32827 PATH_SEPARATOR=';'
32832 # IFS
32833 # We need space, tab and new line, in precisely that order. Quoting is
32834 # there to prevent editors from complaining about space-tab.
32835 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32836 # splitting by setting IFS to empty value.)
32837 IFS=" "" $as_nl"
32839 # Find who we are. Look in the path if we contain no directory separator.
32840 as_myself=
32841 case $0 in #((
32842 *[\\/]* ) as_myself=$0 ;;
32843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32844 for as_dir in $PATH
32846 IFS=$as_save_IFS
32847 test -z "$as_dir" && as_dir=.
32848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32849 done
32850 IFS=$as_save_IFS
32853 esac
32854 # We did not find ourselves, most probably we were run as `sh COMMAND'
32855 # in which case we are not to be found in the path.
32856 if test "x$as_myself" = x; then
32857 as_myself=$0
32859 if test ! -f "$as_myself"; then
32860 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32861 exit 1
32864 # Unset variables that we do not need and which cause bugs (e.g. in
32865 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32866 # suppresses any "Segmentation fault" message there. '((' could
32867 # trigger a bug in pdksh 5.2.14.
32868 for as_var in BASH_ENV ENV MAIL MAILPATH
32869 do eval test x\${$as_var+set} = xset \
32870 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32871 done
32872 PS1='$ '
32873 PS2='> '
32874 PS4='+ '
32876 # NLS nuisances.
32877 LC_ALL=C
32878 export LC_ALL
32879 LANGUAGE=C
32880 export LANGUAGE
32882 # CDPATH.
32883 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32886 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32887 # ----------------------------------------
32888 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32889 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32890 # script with STATUS, using 1 if that was 0.
32891 as_fn_error ()
32893 as_status=$1; test $as_status -eq 0 && as_status=1
32894 if test "$4"; then
32895 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32896 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32898 $as_echo "$as_me: error: $2" >&2
32899 as_fn_exit $as_status
32900 } # as_fn_error
32903 # as_fn_set_status STATUS
32904 # -----------------------
32905 # Set $? to STATUS, without forking.
32906 as_fn_set_status ()
32908 return $1
32909 } # as_fn_set_status
32911 # as_fn_exit STATUS
32912 # -----------------
32913 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32914 as_fn_exit ()
32916 set +e
32917 as_fn_set_status $1
32918 exit $1
32919 } # as_fn_exit
32921 # as_fn_unset VAR
32922 # ---------------
32923 # Portably unset VAR.
32924 as_fn_unset ()
32926 { eval $1=; unset $1;}
32928 as_unset=as_fn_unset
32929 # as_fn_append VAR VALUE
32930 # ----------------------
32931 # Append the text in VALUE to the end of the definition contained in VAR. Take
32932 # advantage of any shell optimizations that allow amortized linear growth over
32933 # repeated appends, instead of the typical quadratic growth present in naive
32934 # implementations.
32935 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32936 eval 'as_fn_append ()
32938 eval $1+=\$2
32940 else
32941 as_fn_append ()
32943 eval $1=\$$1\$2
32945 fi # as_fn_append
32947 # as_fn_arith ARG...
32948 # ------------------
32949 # Perform arithmetic evaluation on the ARGs, and store the result in the
32950 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32951 # must be portable across $(()) and expr.
32952 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32953 eval 'as_fn_arith ()
32955 as_val=$(( $* ))
32957 else
32958 as_fn_arith ()
32960 as_val=`expr "$@" || test $? -eq 1`
32962 fi # as_fn_arith
32965 if expr a : '\(a\)' >/dev/null 2>&1 &&
32966 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32967 as_expr=expr
32968 else
32969 as_expr=false
32972 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32973 as_basename=basename
32974 else
32975 as_basename=false
32978 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32979 as_dirname=dirname
32980 else
32981 as_dirname=false
32984 as_me=`$as_basename -- "$0" ||
32985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32986 X"$0" : 'X\(//\)$' \| \
32987 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32988 $as_echo X/"$0" |
32989 sed '/^.*\/\([^/][^/]*\)\/*$/{
32990 s//\1/
32993 /^X\/\(\/\/\)$/{
32994 s//\1/
32997 /^X\/\(\/\).*/{
32998 s//\1/
33001 s/.*/./; q'`
33003 # Avoid depending upon Character Ranges.
33004 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33005 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33006 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33007 as_cr_digits='0123456789'
33008 as_cr_alnum=$as_cr_Letters$as_cr_digits
33010 ECHO_C= ECHO_N= ECHO_T=
33011 case `echo -n x` in #(((((
33012 -n*)
33013 case `echo 'xy\c'` in
33014 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33015 xy) ECHO_C='\c';;
33016 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33017 ECHO_T=' ';;
33018 esac;;
33020 ECHO_N='-n';;
33021 esac
33023 rm -f conf$$ conf$$.exe conf$$.file
33024 if test -d conf$$.dir; then
33025 rm -f conf$$.dir/conf$$.file
33026 else
33027 rm -f conf$$.dir
33028 mkdir conf$$.dir 2>/dev/null
33030 if (echo >conf$$.file) 2>/dev/null; then
33031 if ln -s conf$$.file conf$$ 2>/dev/null; then
33032 as_ln_s='ln -s'
33033 # ... but there are two gotchas:
33034 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33035 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33036 # In both cases, we have to default to `cp -pR'.
33037 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33038 as_ln_s='cp -pR'
33039 elif ln conf$$.file conf$$ 2>/dev/null; then
33040 as_ln_s=ln
33041 else
33042 as_ln_s='cp -pR'
33044 else
33045 as_ln_s='cp -pR'
33047 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33048 rmdir conf$$.dir 2>/dev/null
33051 # as_fn_mkdir_p
33052 # -------------
33053 # Create "$as_dir" as a directory, including parents if necessary.
33054 as_fn_mkdir_p ()
33057 case $as_dir in #(
33058 -*) as_dir=./$as_dir;;
33059 esac
33060 test -d "$as_dir" || eval $as_mkdir_p || {
33061 as_dirs=
33062 while :; do
33063 case $as_dir in #(
33064 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33065 *) as_qdir=$as_dir;;
33066 esac
33067 as_dirs="'$as_qdir' $as_dirs"
33068 as_dir=`$as_dirname -- "$as_dir" ||
33069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33070 X"$as_dir" : 'X\(//\)[^/]' \| \
33071 X"$as_dir" : 'X\(//\)$' \| \
33072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33073 $as_echo X"$as_dir" |
33074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33075 s//\1/
33078 /^X\(\/\/\)[^/].*/{
33079 s//\1/
33082 /^X\(\/\/\)$/{
33083 s//\1/
33086 /^X\(\/\).*/{
33087 s//\1/
33090 s/.*/./; q'`
33091 test -d "$as_dir" && break
33092 done
33093 test -z "$as_dirs" || eval "mkdir $as_dirs"
33094 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33097 } # as_fn_mkdir_p
33098 if mkdir -p . 2>/dev/null; then
33099 as_mkdir_p='mkdir -p "$as_dir"'
33100 else
33101 test -d ./-p && rmdir ./-p
33102 as_mkdir_p=false
33106 # as_fn_executable_p FILE
33107 # -----------------------
33108 # Test if FILE is an executable regular file.
33109 as_fn_executable_p ()
33111 test -f "$1" && test -x "$1"
33112 } # as_fn_executable_p
33113 as_test_x='test -x'
33114 as_executable_p=as_fn_executable_p
33116 # Sed expression to map a string onto a valid CPP name.
33117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33119 # Sed expression to map a string onto a valid variable name.
33120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33123 exec 6>&1
33124 ## ----------------------------------- ##
33125 ## Main body of $CONFIG_STATUS script. ##
33126 ## ----------------------------------- ##
33127 _ASEOF
33128 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33131 # Save the log message, to keep $0 and so on meaningful, and to
33132 # report actual input values of CONFIG_FILES etc. instead of their
33133 # values after options handling.
33134 ac_log="
33135 This file was extended by $as_me, which was
33136 generated by GNU Autoconf 2.69. Invocation command line was
33138 CONFIG_FILES = $CONFIG_FILES
33139 CONFIG_HEADERS = $CONFIG_HEADERS
33140 CONFIG_LINKS = $CONFIG_LINKS
33141 CONFIG_COMMANDS = $CONFIG_COMMANDS
33142 $ $0 $@
33144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33147 _ACEOF
33149 case $ac_config_files in *"
33150 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33151 esac
33153 case $ac_config_headers in *"
33154 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33155 esac
33158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33159 # Files that config.status was made for.
33160 config_files="$ac_config_files"
33161 config_headers="$ac_config_headers"
33162 config_links="$ac_config_links"
33163 config_commands="$ac_config_commands"
33165 _ACEOF
33167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33168 ac_cs_usage="\
33169 \`$as_me' instantiates files and other configuration actions
33170 from templates according to the current configuration. Unless the files
33171 and actions are specified as TAGs, all are instantiated by default.
33173 Usage: $0 [OPTION]... [TAG]...
33175 -h, --help print this help, then exit
33176 -V, --version print version number and configuration settings, then exit
33177 --config print configuration, then exit
33178 -q, --quiet, --silent
33179 do not print progress messages
33180 -d, --debug don't remove temporary files
33181 --recheck update $as_me by reconfiguring in the same conditions
33182 --file=FILE[:TEMPLATE]
33183 instantiate the configuration file FILE
33184 --header=FILE[:TEMPLATE]
33185 instantiate the configuration header FILE
33187 Configuration files:
33188 $config_files
33190 Configuration headers:
33191 $config_headers
33193 Configuration links:
33194 $config_links
33196 Configuration commands:
33197 $config_commands
33199 Report bugs to the package provider."
33201 _ACEOF
33202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33203 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33204 ac_cs_version="\\
33205 config.status
33206 configured by $0, generated by GNU Autoconf 2.69,
33207 with options \\"\$ac_cs_config\\"
33209 Copyright (C) 2012 Free Software Foundation, Inc.
33210 This config.status script is free software; the Free Software Foundation
33211 gives unlimited permission to copy, distribute and modify it."
33213 ac_pwd='$ac_pwd'
33214 srcdir='$srcdir'
33215 AWK='$AWK'
33216 test -n "\$AWK" || AWK=awk
33217 _ACEOF
33219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33220 # The default lists apply if the user does not specify any file.
33221 ac_need_defaults=:
33222 while test $# != 0
33224 case $1 in
33225 --*=?*)
33226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33228 ac_shift=:
33230 --*=)
33231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33232 ac_optarg=
33233 ac_shift=:
33236 ac_option=$1
33237 ac_optarg=$2
33238 ac_shift=shift
33240 esac
33242 case $ac_option in
33243 # Handling of the options.
33244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33245 ac_cs_recheck=: ;;
33246 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33247 $as_echo "$ac_cs_version"; exit ;;
33248 --config | --confi | --conf | --con | --co | --c )
33249 $as_echo "$ac_cs_config"; exit ;;
33250 --debug | --debu | --deb | --de | --d | -d )
33251 debug=: ;;
33252 --file | --fil | --fi | --f )
33253 $ac_shift
33254 case $ac_optarg in
33255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33256 '') as_fn_error $? "missing file argument" ;;
33257 esac
33258 as_fn_append CONFIG_FILES " '$ac_optarg'"
33259 ac_need_defaults=false;;
33260 --header | --heade | --head | --hea )
33261 $ac_shift
33262 case $ac_optarg in
33263 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33264 esac
33265 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33266 ac_need_defaults=false;;
33267 --he | --h)
33268 # Conflict between --help and --header
33269 as_fn_error $? "ambiguous option: \`$1'
33270 Try \`$0 --help' for more information.";;
33271 --help | --hel | -h )
33272 $as_echo "$ac_cs_usage"; exit ;;
33273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33274 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33275 ac_cs_silent=: ;;
33277 # This is an error.
33278 -*) as_fn_error $? "unrecognized option: \`$1'
33279 Try \`$0 --help' for more information." ;;
33281 *) as_fn_append ac_config_targets " $1"
33282 ac_need_defaults=false ;;
33284 esac
33285 shift
33286 done
33288 ac_configure_extra_args=
33290 if $ac_cs_silent; then
33291 exec 6>/dev/null
33292 ac_configure_extra_args="$ac_configure_extra_args --silent"
33295 _ACEOF
33296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33297 if \$ac_cs_recheck; then
33298 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33299 shift
33300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33301 CONFIG_SHELL='$SHELL'
33302 export CONFIG_SHELL
33303 exec "\$@"
33306 _ACEOF
33307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33308 exec 5>>config.log
33310 echo
33311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33312 ## Running $as_me. ##
33313 _ASBOX
33314 $as_echo "$ac_log"
33315 } >&5
33317 _ACEOF
33318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33320 # INIT-COMMANDS
33322 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33323 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33324 subdirs='$subdirs'
33326 _ACEOF
33328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33330 # Handling of arguments.
33331 for ac_config_target in $ac_config_targets
33333 case $ac_config_target in
33334 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33335 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33336 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33337 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33338 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33339 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33340 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33341 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33342 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33343 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33345 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33346 esac
33347 done
33350 # If the user did not use the arguments to specify the items to instantiate,
33351 # then the envvar interface is used. Set only those that are not.
33352 # We use the long form for the default assignment because of an extremely
33353 # bizarre bug on SunOS 4.1.3.
33354 if $ac_need_defaults; then
33355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33357 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33358 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33361 # Have a temporary directory for convenience. Make it in the build tree
33362 # simply because there is no reason against having it here, and in addition,
33363 # creating and moving files from /tmp can sometimes cause problems.
33364 # Hook for its removal unless debugging.
33365 # Note that there is a small window in which the directory will not be cleaned:
33366 # after its creation but before its name has been assigned to `$tmp'.
33367 $debug ||
33369 tmp= ac_tmp=
33370 trap 'exit_status=$?
33371 : "${ac_tmp:=$tmp}"
33372 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33374 trap 'as_fn_exit 1' 1 2 13 15
33376 # Create a (secure) tmp directory for tmp files.
33379 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33380 test -d "$tmp"
33381 } ||
33383 tmp=./conf$$-$RANDOM
33384 (umask 077 && mkdir "$tmp")
33385 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33386 ac_tmp=$tmp
33388 # Set up the scripts for CONFIG_FILES section.
33389 # No need to generate them if there are no CONFIG_FILES.
33390 # This happens for instance with `./config.status config.h'.
33391 if test -n "$CONFIG_FILES"; then
33393 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33394 ac_cs_awk_getline=:
33395 ac_cs_awk_pipe_init=
33396 ac_cs_awk_read_file='
33397 while ((getline aline < (F[key])) > 0)
33398 print(aline)
33399 close(F[key])'
33400 ac_cs_awk_pipe_fini=
33401 else
33402 ac_cs_awk_getline=false
33403 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33404 ac_cs_awk_read_file='
33405 print "|#_!!_#|"
33406 print "cat " F[key] " &&"
33407 '$ac_cs_awk_pipe_init
33408 # The final `:' finishes the AND list.
33409 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33411 ac_cr=`echo X | tr X '\015'`
33412 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33413 # But we know of no other shell where ac_cr would be empty at this
33414 # point, so we can use a bashism as a fallback.
33415 if test "x$ac_cr" = x; then
33416 eval ac_cr=\$\'\\r\'
33418 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33419 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33420 ac_cs_awk_cr='\\r'
33421 else
33422 ac_cs_awk_cr=$ac_cr
33425 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33426 _ACEOF
33428 # Create commands to substitute file output variables.
33430 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33431 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33432 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33433 echo "_ACAWK" &&
33434 echo "_ACEOF"
33435 } >conf$$files.sh &&
33436 . ./conf$$files.sh ||
33437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33438 rm -f conf$$files.sh
33441 echo "cat >conf$$subs.awk <<_ACEOF" &&
33442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33443 echo "_ACEOF"
33444 } >conf$$subs.sh ||
33445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33447 ac_delim='%!_!# '
33448 for ac_last_try in false false false false false :; do
33449 . ./conf$$subs.sh ||
33450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33453 if test $ac_delim_n = $ac_delim_num; then
33454 break
33455 elif $ac_last_try; then
33456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33457 else
33458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33460 done
33461 rm -f conf$$subs.sh
33463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33464 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33465 _ACEOF
33466 sed -n '
33468 s/^/S["/; s/!.*/"]=/
33471 s/^[^!]*!//
33472 :repl
33473 t repl
33474 s/'"$ac_delim"'$//
33475 t delim
33478 s/\(.\{148\}\)..*/\1/
33479 t more1
33480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33483 b repl
33484 :more1
33485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33488 s/.\{148\}//
33489 t nl
33490 :delim
33492 s/\(.\{148\}\)..*/\1/
33493 t more2
33494 s/["\\]/\\&/g; s/^/"/; s/$/"/
33497 :more2
33498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33501 s/.\{148\}//
33502 t delim
33503 ' <conf$$subs.awk | sed '
33504 /^[^""]/{
33506 s/\n//
33508 ' >>$CONFIG_STATUS || ac_write_fail=1
33509 rm -f conf$$subs.awk
33510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33511 _ACAWK
33512 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33513 for (key in S) S_is_set[key] = 1
33514 FS = "\a"
33515 \$ac_cs_awk_pipe_init
33518 line = $ 0
33519 nfields = split(line, field, "@")
33520 substed = 0
33521 len = length(field[1])
33522 for (i = 2; i < nfields; i++) {
33523 key = field[i]
33524 keylen = length(key)
33525 if (S_is_set[key]) {
33526 value = S[key]
33527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33528 len += length(value) + length(field[++i])
33529 substed = 1
33530 } else
33531 len += 1 + keylen
33533 if (nfields == 3 && !substed) {
33534 key = field[2]
33535 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33536 \$ac_cs_awk_read_file
33537 next
33540 print line
33542 \$ac_cs_awk_pipe_fini
33543 _ACAWK
33544 _ACEOF
33545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33546 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33547 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33548 else
33550 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33551 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33552 _ACEOF
33554 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33555 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33556 # trailing colons and then remove the whole line if VPATH becomes empty
33557 # (actually we leave an empty line to preserve line numbers).
33558 if test "x$srcdir" = x.; then
33559 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33561 s///
33562 s/^/:/
33563 s/[ ]*$/:/
33564 s/:\$(srcdir):/:/g
33565 s/:\${srcdir}:/:/g
33566 s/:@srcdir@:/:/g
33567 s/^:*//
33568 s/:*$//
33570 s/\(=[ ]*\).*/\1/
33572 s/\n//
33573 s/^[^=]*=[ ]*$//
33577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33578 fi # test -n "$CONFIG_FILES"
33580 # Set up the scripts for CONFIG_HEADERS section.
33581 # No need to generate them if there are no CONFIG_HEADERS.
33582 # This happens for instance with `./config.status Makefile'.
33583 if test -n "$CONFIG_HEADERS"; then
33584 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33585 BEGIN {
33586 _ACEOF
33588 # Transform confdefs.h into an awk script `defines.awk', embedded as
33589 # here-document in config.status, that substitutes the proper values into
33590 # config.h.in to produce config.h.
33592 # Create a delimiter string that does not exist in confdefs.h, to ease
33593 # handling of long lines.
33594 ac_delim='%!_!# '
33595 for ac_last_try in false false :; do
33596 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33597 if test -z "$ac_tt"; then
33598 break
33599 elif $ac_last_try; then
33600 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33601 else
33602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33604 done
33606 # For the awk script, D is an array of macro values keyed by name,
33607 # likewise P contains macro parameters if any. Preserve backslash
33608 # newline sequences.
33610 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33611 sed -n '
33612 s/.\{148\}/&'"$ac_delim"'/g
33613 t rset
33614 :rset
33615 s/^[ ]*#[ ]*define[ ][ ]*/ /
33616 t def
33618 :def
33619 s/\\$//
33620 t bsnl
33621 s/["\\]/\\&/g
33622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33623 D["\1"]=" \3"/p
33624 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33626 :bsnl
33627 s/["\\]/\\&/g
33628 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33629 D["\1"]=" \3\\\\\\n"\\/p
33630 t cont
33631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33632 t cont
33634 :cont
33636 s/.\{148\}/&'"$ac_delim"'/g
33637 t clear
33638 :clear
33639 s/\\$//
33640 t bsnlc
33641 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33643 :bsnlc
33644 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33645 b cont
33646 ' <confdefs.h | sed '
33647 s/'"$ac_delim"'/"\\\
33648 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33651 for (key in D) D_is_set[key] = 1
33652 FS = "\a"
33654 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33655 line = \$ 0
33656 split(line, arg, " ")
33657 if (arg[1] == "#") {
33658 defundef = arg[2]
33659 mac1 = arg[3]
33660 } else {
33661 defundef = substr(arg[1], 2)
33662 mac1 = arg[2]
33664 split(mac1, mac2, "(") #)
33665 macro = mac2[1]
33666 prefix = substr(line, 1, index(line, defundef) - 1)
33667 if (D_is_set[macro]) {
33668 # Preserve the white space surrounding the "#".
33669 print prefix "define", macro P[macro] D[macro]
33670 next
33671 } else {
33672 # Replace #undef with comments. This is necessary, for example,
33673 # in the case of _POSIX_SOURCE, which is predefined and required
33674 # on some systems where configure will not decide to define it.
33675 if (defundef == "undef") {
33676 print "/*", prefix defundef, macro, "*/"
33677 next
33681 { print }
33682 _ACAWK
33683 _ACEOF
33684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33685 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33686 fi # test -n "$CONFIG_HEADERS"
33689 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33690 shift
33691 for ac_tag
33693 case $ac_tag in
33694 :[FHLC]) ac_mode=$ac_tag; continue;;
33695 esac
33696 case $ac_mode$ac_tag in
33697 :[FHL]*:*);;
33698 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33699 :[FH]-) ac_tag=-:-;;
33700 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33701 esac
33702 ac_save_IFS=$IFS
33703 IFS=:
33704 set x $ac_tag
33705 IFS=$ac_save_IFS
33706 shift
33707 ac_file=$1
33708 shift
33710 case $ac_mode in
33711 :L) ac_source=$1;;
33712 :[FH])
33713 ac_file_inputs=
33714 for ac_f
33716 case $ac_f in
33717 -) ac_f="$ac_tmp/stdin";;
33718 *) # Look for the file first in the build tree, then in the source tree
33719 # (if the path is not absolute). The absolute path cannot be DOS-style,
33720 # because $ac_f cannot contain `:'.
33721 test -f "$ac_f" ||
33722 case $ac_f in
33723 [\\/$]*) false;;
33724 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33725 esac ||
33726 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33727 esac
33728 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33729 as_fn_append ac_file_inputs " '$ac_f'"
33730 done
33732 # Let's still pretend it is `configure' which instantiates (i.e., don't
33733 # use $as_me), people would be surprised to read:
33734 # /* config.h. Generated by config.status. */
33735 configure_input='Generated from '`
33736 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33737 `' by configure.'
33738 if test x"$ac_file" != x-; then
33739 configure_input="$ac_file. $configure_input"
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33741 $as_echo "$as_me: creating $ac_file" >&6;}
33743 # Neutralize special characters interpreted by sed in replacement strings.
33744 case $configure_input in #(
33745 *\&* | *\|* | *\\* )
33746 ac_sed_conf_input=`$as_echo "$configure_input" |
33747 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33748 *) ac_sed_conf_input=$configure_input;;
33749 esac
33751 case $ac_tag in
33752 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33754 esac
33756 esac
33758 ac_dir=`$as_dirname -- "$ac_file" ||
33759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33760 X"$ac_file" : 'X\(//\)[^/]' \| \
33761 X"$ac_file" : 'X\(//\)$' \| \
33762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33763 $as_echo X"$ac_file" |
33764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33765 s//\1/
33768 /^X\(\/\/\)[^/].*/{
33769 s//\1/
33772 /^X\(\/\/\)$/{
33773 s//\1/
33776 /^X\(\/\).*/{
33777 s//\1/
33780 s/.*/./; q'`
33781 as_dir="$ac_dir"; as_fn_mkdir_p
33782 ac_builddir=.
33784 case "$ac_dir" in
33785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33788 # A ".." for each directory in $ac_dir_suffix.
33789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33790 case $ac_top_builddir_sub in
33791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33793 esac ;;
33794 esac
33795 ac_abs_top_builddir=$ac_pwd
33796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33797 # for backward compatibility:
33798 ac_top_builddir=$ac_top_build_prefix
33800 case $srcdir in
33801 .) # We are building in place.
33802 ac_srcdir=.
33803 ac_top_srcdir=$ac_top_builddir_sub
33804 ac_abs_top_srcdir=$ac_pwd ;;
33805 [\\/]* | ?:[\\/]* ) # Absolute name.
33806 ac_srcdir=$srcdir$ac_dir_suffix;
33807 ac_top_srcdir=$srcdir
33808 ac_abs_top_srcdir=$srcdir ;;
33809 *) # Relative name.
33810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33811 ac_top_srcdir=$ac_top_build_prefix$srcdir
33812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33813 esac
33814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33817 case $ac_mode in
33820 # CONFIG_FILE
33823 _ACEOF
33825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33826 # If the template does not know about datarootdir, expand it.
33827 # FIXME: This hack should be removed a few years after 2.60.
33828 ac_datarootdir_hack=; ac_datarootdir_seen=
33829 ac_sed_dataroot='
33830 /datarootdir/ {
33834 /@datadir@/p
33835 /@docdir@/p
33836 /@infodir@/p
33837 /@localedir@/p
33838 /@mandir@/p'
33839 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33840 *datarootdir*) ac_datarootdir_seen=yes;;
33841 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33843 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33844 _ACEOF
33845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33846 ac_datarootdir_hack='
33847 s&@datadir@&$datadir&g
33848 s&@docdir@&$docdir&g
33849 s&@infodir@&$infodir&g
33850 s&@localedir@&$localedir&g
33851 s&@mandir@&$mandir&g
33852 s&\\\${datarootdir}&$datarootdir&g' ;;
33853 esac
33854 _ACEOF
33856 # Neutralize VPATH when `$srcdir' = `.'.
33857 # Shell code in configure.ac might set extrasub.
33858 # FIXME: do we really want to maintain this feature?
33859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33860 ac_sed_extra="$ac_vpsub
33861 $extrasub
33862 _ACEOF
33863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33866 s|@configure_input@|$ac_sed_conf_input|;t t
33867 s&@top_builddir@&$ac_top_builddir_sub&;t t
33868 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33869 s&@srcdir@&$ac_srcdir&;t t
33870 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33871 s&@top_srcdir@&$ac_top_srcdir&;t t
33872 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33873 s&@builddir@&$ac_builddir&;t t
33874 s&@abs_builddir@&$ac_abs_builddir&;t t
33875 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33876 $ac_datarootdir_hack
33878 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33879 if $ac_cs_awk_getline; then
33880 $AWK -f "$ac_tmp/subs.awk"
33881 else
33882 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33883 fi \
33884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33889 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33891 which seems to be undefined. Please make sure it is defined" >&5
33892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33893 which seems to be undefined. Please make sure it is defined" >&2;}
33895 rm -f "$ac_tmp/stdin"
33896 case $ac_file in
33897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33899 esac \
33900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33904 # CONFIG_HEADER
33906 if test x"$ac_file" != x-; then
33908 $as_echo "/* $configure_input */" \
33909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33910 } >"$ac_tmp/config.h" \
33911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33914 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33915 else
33916 rm -f "$ac_file"
33917 mv "$ac_tmp/config.h" "$ac_file" \
33918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33920 else
33921 $as_echo "/* $configure_input */" \
33922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33923 || as_fn_error $? "could not create -" "$LINENO" 5
33928 # CONFIG_LINK
33931 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33933 else
33934 # Prefer the file from the source tree if names are identical.
33935 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33936 ac_source=$srcdir/$ac_source
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33940 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33942 if test ! -r "$ac_source"; then
33943 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33945 rm -f "$ac_file"
33947 # Try a relative symlink, then a hard link, then a copy.
33948 case $ac_source in
33949 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33950 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33951 esac
33952 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33953 ln "$ac_source" "$ac_file" 2>/dev/null ||
33954 cp -p "$ac_source" "$ac_file" ||
33955 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33958 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33959 $as_echo "$as_me: executing $ac_file commands" >&6;}
33961 esac
33964 case $ac_file$ac_mode in
33965 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33966 "gccdepdir":C)
33967 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33968 for lang in $subdirs c-family common analyzer rtl-ssa
33970 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33971 done ;;
33972 "as":F) chmod +x as ;;
33973 "collect-ld":F) chmod +x collect-ld ;;
33974 "nm":F) chmod +x nm ;;
33975 "dsymutil":F) chmod +x dsymutil ;;
33976 "default":C)
33977 case ${CONFIG_HEADERS} in
33978 *auto-host.h:config.in*)
33979 echo > cstamp-h ;;
33980 esac
33981 # Make sure all the subdirs exist.
33982 for d in $subdirs doc build common c-family
33984 test -d $d || mkdir $d
33985 done
33988 esac
33989 done # for ac_tag
33992 as_fn_exit 0
33993 _ACEOF
33994 ac_clean_files=$ac_clean_files_save
33996 test $ac_write_fail = 0 ||
33997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34000 # configure is writing to config.log, and then calls config.status.
34001 # config.status does its own redirection, appending to config.log.
34002 # Unfortunately, on DOS this fails, as config.log is still kept open
34003 # by configure, so config.status won't be able to write to it; its
34004 # output is simply discarded. So we exec the FD to /dev/null,
34005 # effectively closing config.log, so it can be properly (re)opened and
34006 # appended to by config.status. When coming back to configure, we
34007 # need to make the FD available again.
34008 if test "$no_create" != yes; then
34009 ac_cs_success=:
34010 ac_config_status_args=
34011 test "$silent" = yes &&
34012 ac_config_status_args="$ac_config_status_args --quiet"
34013 exec 5>/dev/null
34014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34015 exec 5>>config.log
34016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34017 # would make configure fail if this is the last instruction.
34018 $ac_cs_success || as_fn_exit 1
34020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}