syscall, runtime: always call XSI strerror_r
[official-gcc.git] / gcc / configure
bloba742d4406a82c4989273e636912ef8a00bafe7b5
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 BISON
809 FLEX
810 GENERATED_MANPAGES
811 BUILD_INFO
812 MAKEINFO
813 have_mktemp_command
814 make_compare_target
815 INSTALL_DATA
816 INSTALL_PROGRAM
817 INSTALL
818 ranlib_flags
819 RANLIB
821 LN_S
823 SET_MAKE
824 omp_device_property_deps
825 omp_device_properties
826 accel_dir_suffix
827 real_target_noncanonical
828 enable_as_accelerator
829 gnat_install_lib
830 REPORT_BUGS_TEXI
831 REPORT_BUGS_TO
832 PKGVERSION
833 CONFIGURE_SPECS
834 enable_gcov
835 enable_shared
836 enable_fixed_point
837 enable_decimal_float
838 with_float
839 with_cpu
840 enable_multiarch
841 enable_multilib
842 coverage_flags
843 valgrind_command
844 valgrind_path_defines
845 valgrind_path
846 TREECHECKING
847 nocommon_flag
848 noexception_flags
849 warn_cxxflags
850 warn_cflags
851 c_strict_warn
852 strict_warn
853 c_loose_warn
854 loose_warn
855 aliasing_flags
857 EGREP
858 GREP
859 CXXCPP
860 PICFLAG_FOR_TARGET
861 GDCFLAGS
863 GNATMAKE
864 GNATBIND
865 ac_ct_CXX
866 CXXFLAGS
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
875 GENINSRC
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
878 TARGET_SYSTEM_ROOT
879 SYSROOT_CFLAGS_FOR_TARGET
880 target_subdir
881 host_subdir
882 build_subdir
883 build_libsubdir
884 target_noncanonical
885 host_noncanonical
886 target_os
887 target_vendor
888 target_cpu
889 target
890 host_os
891 host_vendor
892 host_cpu
893 host
894 build_os
895 build_vendor
896 build_cpu
897 build
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files='option_includes
937 language_hooks'
938 ac_user_opts='
939 enable_option_checking
940 with_build_libsubdir
941 with_local_prefix
942 with_native_system_header_dir
943 with_build_sysroot
944 with_sysroot
945 with_gxx_include_dir
946 with_gxx_libcxx_include_dir
947 with_cpp_install_dir
948 enable_generated_files_in_srcdir
949 with_gnu_ld
950 with_ld
951 with_demangler_in_ld
952 with_dsymutil
953 with_gnu_as
954 with_as
955 enable_largefile
956 enable_build_format_warnings
957 enable_werror_always
958 enable_checking
959 enable_coverage
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
962 enable_multilib
963 enable_multiarch
964 with_stack_clash_protection_guard_size
965 enable___cxa_atexit
966 enable_decimal_float
967 enable_fixed_point
968 enable_threads
969 enable_tls
970 enable_vtable_verify
971 enable_analyzer
972 enable_objc_gc
973 with_dwarf2
974 enable_shared
975 enable_gcov
976 with_specs
977 with_pkgversion
978 with_bugurl
979 with_documentation_root_url
980 with_changes_root_url
981 enable_languages
982 with_multilib_list
983 with_multilib_generator
984 with_zstd
985 with_zstd_include
986 with_zstd_lib
987 enable_rpath
988 with_libiconv_prefix
989 with_libiconv_type
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
992 enable_secureplt
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
996 enable_cld
997 enable_frame_pointer
998 enable_win32_registry
999 enable_static
1000 with_pic
1001 enable_fast_install
1002 enable_libtool_lock
1003 enable_ld
1004 enable_gold
1005 with_plugin_ld
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1008 enable_comdat
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1013 with_glibc_version
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1016 enable_libssp
1017 enable_default_ssp
1018 with_long_double_128
1019 with_long_double_format
1020 with_gc
1021 with_system_zlib
1022 enable_maintainer_mode
1023 enable_link_mutex
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1026 enable_plugin
1027 enable_host_shared
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1032 enable_default_pie
1033 enable_cet
1034 enable_s390_excess_float_precision
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1045 CXXFLAGS
1047 CXXCPP
1049 GMPLIBS
1050 GMPINC
1051 ISLLIBS
1052 ISLINC'
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1110 ac_prev=
1111 continue
1114 case $ac_option in
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 *=) ac_optarg= ;;
1117 *) ac_optarg=yes ;;
1118 esac
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1124 ac_dashdash=yes ;;
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127 ac_prev=bindir ;;
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1147 ac_prev=datadir ;;
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1211 with_gas=yes ;;
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 ac_prev=htmldir ;;
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 | --ht=*)
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 ac_prev=infodir ;;
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1244 ac_prev=libdir ;;
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 ac_prev=mandir ;;
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1274 with_fp=no ;;
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1278 no_create=yes ;;
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 no_recursion=yes ;;
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 ac_prev=prefix ;;
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 ac_prev=pdfdir ;;
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1335 ac_prev=psdir ;;
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 psdir=$ac_optarg ;;
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1341 silent=yes ;;
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 ac_prev=sbindir ;;
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 | --sbi=* | --sb=*)
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1352 | --sha | --sh)
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 | --sha=* | --sh=*)
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1361 ac_prev=site ;;
1362 -site=* | --site=* | --sit=*)
1363 site=$ac_optarg ;;
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 ac_prev=srcdir ;;
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 verbose=yes ;;
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1388 -with-* | --with-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1442 *=*)
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448 esac
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 esac
1461 done
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1470 no) ;;
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 esac
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1484 case $ac_val in
1485 */ )
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1488 esac
1489 # Be sure to have absolute directory names.
1490 case $ac_val in
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493 esac
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495 done
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1545 /^X\(\/\/\)$/{
1546 s//\1/
1549 /^X\(\/\).*/{
1550 s//\1/
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1558 else
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1648 cat <<\_ACEOF
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1659 _ACEOF
1662 if test -n "$ac_init_help"; then
1664 cat <<\_ACEOF
1666 Optional Features:
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1699 to use
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1702 package
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1726 on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1740 glibc systems
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1784 machine
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1820 pathname)
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1835 SH and x86-64 only)
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1848 --with-gcc-major-version-only
1849 use only GCC major number in filesystem paths
1850 --with-pic try to use only PIC/non-PIC objects [default=use
1851 both]
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-plugin-ld=[ARG] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use 128-bit long double by default
1857 --with-long-double-format={ieee,ibm}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page,zone} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1862 the compiler
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv,gnu,both}
1865 specify the linker hash style
1866 --with-diagnostics-color={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-color option
1868 auto-if-env stands for -fdiagnostics-color=auto if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never,auto,auto-if-env,always}
1872 specify the default of -fdiagnostics-urls option
1873 auto-if-env stands for -fdiagnostics-urls=auto if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and -fdiagnostics-urls=never otherwise
1877 Some influential environment variables:
1878 CC C compiler command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1881 nonstandard directory <lib dir>
1882 LIBS libraries to pass to the linker, e.g. -l<library>
1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884 you have headers in a nonstandard directory <include dir>
1885 CXX C++ compiler command
1886 CXXFLAGS C++ compiler flags
1887 CXXCPP C++ preprocessor
1888 CPP C preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to find isl include files
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1898 _ACEOF
1899 ac_status=$?
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1907 continue
1908 ac_builddir=.
1910 case "$ac_dir" in
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1919 esac ;;
1920 esac
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1926 case $srcdir in
1927 .) # We are building in place.
1928 ac_srcdir=.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1935 *) # Relative name.
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1939 esac
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1945 echo &&
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1948 echo &&
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1950 else
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1952 fi || ac_status=$?
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1954 done
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1959 cat <<\_ACEOF
1960 configure
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1966 _ACEOF
1967 exit
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=1
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 ac_retval=1
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=1
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_cxx_check_header_mongrel ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115 else
2116 ac_header_compiler=no
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131 else
2132 ac_header_preproc=no
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158 esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=\$ac_header_compiler"
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_link"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2189 ac_status=$?
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2202 ac_retval=0
2203 else
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2231 #include <$2>
2232 _ACEOF
2233 if ac_fn_cxx_try_compile "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_cpp ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 ac_retval=1
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_c_try_cpp
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2288 # computed
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2301 test_array [0] = 0;
2302 return test_array [0];
2305 return 0;
2307 _ACEOF
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2309 ac_lo=0 ac_mid=0
2310 while :; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2315 main ()
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2322 return 0;
2324 _ACEOF
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2327 else
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2330 ac_lo= ac_hi=
2331 break
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 static int test_array [1 - 2 * !(($2) < 0)];
2345 test_array [0] = 0;
2346 return test_array [0];
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=-1 ac_mid=-1
2354 while :; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362 test_array [0] = 0;
2363 return test_array [0];
2366 return 0;
2368 _ACEOF
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2371 else
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2374 ac_lo= ac_hi=
2375 break
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 else
2382 ac_lo= ac_hi=
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2401 return 0;
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405 ac_hi=$ac_mid
2406 else
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 done
2411 case $ac_lo in #((
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413 '') ac_retval=1 ;;
2414 esac
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2421 #include <stdio.h>
2422 #include <stdlib.h>
2424 main ()
2427 FILE *f = fopen ("conftest.val", "w");
2428 if (! f)
2429 return 1;
2430 if (($2) < 0)
2432 long int i = longval ();
2433 if (i != ($2))
2434 return 1;
2435 fprintf (f, "%ld", i);
2437 else
2439 unsigned long int i = ulongval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2449 return 0;
2451 _ACEOF
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454 else
2455 ac_retval=1
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2459 rm -f conftest.val
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 eval "$3=no"
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2484 main ()
2486 if (sizeof ($2))
2487 return 0;
2489 return 0;
2491 _ACEOF
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2497 main ()
2499 if (sizeof (($2)))
2500 return 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 else
2508 eval "$3=yes"
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2524 # accordingly.
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 eval "$3=no"
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2543 main ()
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2546 test_array [0] = 0;
2547 return test_array [0];
2550 return 0;
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2559 main ()
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2563 test_array [0] = 0;
2564 return test_array [0];
2567 return 0;
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2572 else
2573 case $ac_type in #(
2574 int$2_t) :
2575 eval "$3=yes" ;; #(
2576 *) :
2577 eval "$3=\$ac_type" ;;
2578 esac
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2585 else
2586 break
2588 done
2590 eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2612 ac_status=$?
2613 if test -s conftest.err; then
2614 grep -v '^ *+' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest$ac_exeext
2625 }; then :
2626 ac_retval=0
2627 else
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 ac_retval=1
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2646 # accordingly.
2647 ac_fn_c_find_uintX_t ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 eval "$3=no"
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2664 main ()
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2667 test_array [0] = 0;
2668 return test_array [0];
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 case $ac_type in #(
2676 uint$2_t) :
2677 eval "$3=yes" ;; #(
2678 *) :
2679 eval "$3=\$ac_type" ;;
2680 esac
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 if eval test \"x\$"$3"\" = x"no"; then :
2685 else
2686 break
2688 done
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 #include <$2>
2711 _ACEOF
2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
2713 eval "$3=yes"
2714 else
2715 eval "$3=no"
2717 rm -f conftest.err conftest.i conftest.$ac_ext
2719 eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2754 #undef $2
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2771 main ()
2773 return $2 ();
2775 return 0;
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779 eval "$3=yes"
2780 else
2781 eval "$3=no"
2783 rm -f core conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 # accordingly.
2797 ac_fn_cxx_check_decl ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2811 main ()
2813 #ifndef $as_decl_name
2814 #ifdef __cplusplus
2815 (void) $as_decl_use;
2816 #else
2817 (void) $as_decl_name;
2818 #endif
2819 #endif
2822 return 0;
2824 _ACEOF
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2826 eval "$3=yes"
2827 else
2828 eval "$3=no"
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2842 ac_fn_c_try_link ()
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { { ac_try="$ac_link"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2854 ac_status=$?
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2867 }; then :
2868 ac_retval=0
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_retval=1
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2898 #include <$2>
2899 _ACEOF
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2901 eval "$3=yes"
2902 else
2903 eval "$3=no"
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2936 #ifdef __STDC__
2937 # include <limits.h>
2938 #else
2939 # include <assert.h>
2940 #endif
2942 #undef $2
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2947 #ifdef __cplusplus
2948 extern "C"
2949 #endif
2950 char $2 ();
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2955 choke me
2956 #endif
2959 main ()
2961 return $2 ();
2963 return 0;
2965 _ACEOF
2966 if ac_fn_c_try_link "$LINENO"; then :
2967 eval "$3=yes"
2968 else
2969 eval "$3=no"
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2974 eval ac_res=\$$3
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2987 $ $0 $@
2989 _ACEOF
2990 exec 5>>config.log
2992 cat <<_ASUNAME
2993 ## --------- ##
2994 ## Platform. ##
2995 ## --------- ##
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3014 _ASUNAME
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3022 done
3023 IFS=$as_save_IFS
3025 } >&5
3027 cat >&5 <<_ACEOF
3030 ## ----------- ##
3031 ## Core tests. ##
3032 ## ----------- ##
3034 _ACEOF
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3042 ac_configure_args=
3043 ac_configure_args0=
3044 ac_configure_args1=
3045 ac_must_keep_next=false
3046 for ac_pass in 1 2
3048 for ac_arg
3050 case $ac_arg in
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3054 continue ;;
3055 *\'*)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3057 esac
3058 case $ac_pass in
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3064 else
3065 case $ac_arg in
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3072 esac
3074 -* ) ac_must_keep_next=true ;;
3075 esac
3077 as_fn_append ac_configure_args " '$ac_arg'"
3079 esac
3080 done
3081 done
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3093 echo
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3098 echo
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3103 case $ac_val in #(
3104 *${as_nl}*)
3105 case $ac_var in #(
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3108 esac
3109 case $ac_var in #(
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3113 esac ;;
3114 esac
3115 done
3116 (set) 2>&1 |
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3119 sed -n \
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3122 ;; #(
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3126 esac |
3127 sort
3129 echo
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3134 echo
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3149 echo
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3153 case $ac_val in
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 esac
3156 $as_echo "$ac_var='\''$ac_val'\''"
3157 done | sort
3158 echo
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3163 ## confdefs.h. ##
3164 ## ----------- ##"
3165 echo
3166 cat confdefs.h
3167 echo
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179 done
3180 ac_signal=0
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3191 _ACEOF
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195 _ACEOF
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3199 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3203 _ACEOF
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207 _ACEOF
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3211 _ACEOF
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3216 ac_site_file1=NONE
3217 ac_site_file2=NONE
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3224 esac
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3228 else
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3239 . "$ac_site_file" \
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 done
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3253 case $cache_file in
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3256 esac
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3261 >$cache_file
3264 # Check that the precious variables saved in the cache have kept the same
3265 # value.
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3273 set,)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3277 ,set)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,);;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x $ac_old_val`
3286 ac_new_val_w=`echo x $ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290 ac_cache_corrupted=:
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3300 fi;;
3301 esac
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3304 case $ac_new_val in
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3307 esac
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3311 esac
3313 done
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3340 gcc_version=`cat $srcdir/BASE-VER`
3342 # Determine the host, build, and target systems
3343 ac_aux_dir=
3344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3345 if test -f "$ac_dir/install-sh"; then
3346 ac_aux_dir=$ac_dir
3347 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 break
3349 elif 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/shtool"; then
3354 ac_aux_dir=$ac_dir
3355 ac_install_sh="$ac_aux_dir/shtool install -c"
3356 break
3358 done
3359 if test -z "$ac_aux_dir"; then
3360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3363 # These three variables are undocumented and unsupported,
3364 # and are intended to be withdrawn in a future Autoconf release.
3365 # They can cause serious problems if a builder's source tree is in a directory
3366 # whose full name contains unusual characters.
3367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3372 # Make sure we can run config.sub.
3373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3377 $as_echo_n "checking build system type... " >&6; }
3378 if ${ac_cv_build+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 ac_build_alias=$build_alias
3382 test "x$ac_build_alias" = x &&
3383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3384 test "x$ac_build_alias" = x &&
3385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3391 $as_echo "$ac_cv_build" >&6; }
3392 case $ac_cv_build in
3393 *-*-*) ;;
3394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3395 esac
3396 build=$ac_cv_build
3397 ac_save_IFS=$IFS; IFS='-'
3398 set x $ac_cv_build
3399 shift
3400 build_cpu=$1
3401 build_vendor=$2
3402 shift; shift
3403 # Remember, the first character of IFS is used to create $*,
3404 # except with old shells:
3405 build_os=$*
3406 IFS=$ac_save_IFS
3407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3411 $as_echo_n "checking host system type... " >&6; }
3412 if ${ac_cv_host+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test "x$host_alias" = x; then
3416 ac_cv_host=$ac_cv_build
3417 else
3418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3424 $as_echo "$ac_cv_host" >&6; }
3425 case $ac_cv_host in
3426 *-*-*) ;;
3427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3428 esac
3429 host=$ac_cv_host
3430 ac_save_IFS=$IFS; IFS='-'
3431 set x $ac_cv_host
3432 shift
3433 host_cpu=$1
3434 host_vendor=$2
3435 shift; shift
3436 # Remember, the first character of IFS is used to create $*,
3437 # except with old shells:
3438 host_os=$*
3439 IFS=$ac_save_IFS
3440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3444 $as_echo_n "checking target system type... " >&6; }
3445 if ${ac_cv_target+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test "x$target_alias" = x; then
3449 ac_cv_target=$ac_cv_host
3450 else
3451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3457 $as_echo "$ac_cv_target" >&6; }
3458 case $ac_cv_target in
3459 *-*-*) ;;
3460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3461 esac
3462 target=$ac_cv_target
3463 ac_save_IFS=$IFS; IFS='-'
3464 set x $ac_cv_target
3465 shift
3466 target_cpu=$1
3467 target_vendor=$2
3468 shift; shift
3469 # Remember, the first character of IFS is used to create $*,
3470 # except with old shells:
3471 target_os=$*
3472 IFS=$ac_save_IFS
3473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3476 # The aliases save the names the user supplied, while $host etc.
3477 # will get canonicalized.
3478 test -n "$target_alias" &&
3479 test "$program_prefix$program_suffix$program_transform_name" = \
3480 NONENONEs,x,x, &&
3481 program_prefix=${target_alias}-
3483 # Determine the noncanonical host name, for Ada.
3484 case ${build_alias} in
3485 "") build_noncanonical=${build} ;;
3486 *) build_noncanonical=${build_alias} ;;
3487 esac
3489 case ${host_alias} in
3490 "") host_noncanonical=${build_noncanonical} ;;
3491 *) host_noncanonical=${host_alias} ;;
3492 esac
3497 # Determine the noncanonical target name, for directory use.
3498 case ${target_alias} in
3499 "") target_noncanonical=${host_noncanonical} ;;
3500 *) target_noncanonical=${target_alias} ;;
3501 esac
3506 # Used for constructing correct paths for offload compilers.
3507 real_target_noncanonical=${target_noncanonical}
3508 accel_dir_suffix=
3510 # Determine the target- and build-specific subdirectories
3512 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3513 # have matching libraries, they should use host libraries: Makefile.tpl
3514 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3515 # However, they still use the build modules, because the corresponding
3516 # host modules (e.g. bison) are only built for the host when bootstrap
3517 # finishes. So:
3518 # - build_subdir is where we find build modules, and never changes.
3519 # - build_libsubdir is where we find build libraries, and can be overridden.
3521 # Prefix 'build-' so this never conflicts with target_subdir.
3522 build_subdir="build-${build_noncanonical}"
3524 # Check whether --with-build-libsubdir was given.
3525 if test "${with_build_libsubdir+set}" = set; then :
3526 withval=$with_build_libsubdir; build_libsubdir="$withval"
3527 else
3528 build_libsubdir="$build_subdir"
3531 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3532 if ( test $srcdir = . && test -d gcc ) \
3533 || test -d $srcdir/../host-${host_noncanonical}; then
3534 host_subdir="host-${host_noncanonical}"
3535 else
3536 host_subdir=.
3538 # No prefix.
3539 target_subdir=${target_noncanonical}
3542 # Set program_transform_name
3543 test "$program_prefix" != NONE &&
3544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3545 # Use a double $ so make ignores it.
3546 test "$program_suffix" != NONE &&
3547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3548 # Double any \ or $.
3549 # By default was `s,x,x', remove it if useless.
3550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3554 # Check for bogus environment variables.
3555 # Test if LIBRARY_PATH contains the notation for the current directory
3556 # since this would lead to problems installing/building glibc.
3557 # LIBRARY_PATH contains the current directory if one of the following
3558 # is true:
3559 # - one of the terminals (":" and ";") is the first or last sign
3560 # - two terminals occur directly after each other
3561 # - the path contains an element with a dot in it
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3563 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3564 case ${LIBRARY_PATH} in
3565 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3566 library_path_setting="contains current directory"
3569 library_path_setting="ok"
3571 esac
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3573 $as_echo "$library_path_setting" >&6; }
3574 if test "$library_path_setting" != "ok"; then
3575 as_fn_error $? "
3576 *** LIBRARY_PATH shouldn't contain the current directory when
3577 *** building gcc. Please change the environment variable
3578 *** and run configure again." "$LINENO" 5
3581 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3582 # since this would lead to problems installing/building glibc.
3583 # GCC_EXEC_PREFIX contains the current directory if one of the following
3584 # is true:
3585 # - one of the terminals (":" and ";") is the first or last sign
3586 # - two terminals occur directly after each other
3587 # - the path contains an element with a dot in it
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3589 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3590 case ${GCC_EXEC_PREFIX} in
3591 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3592 gcc_exec_prefix_setting="contains current directory"
3595 gcc_exec_prefix_setting="ok"
3597 esac
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3599 $as_echo "$gcc_exec_prefix_setting" >&6; }
3600 if test "$gcc_exec_prefix_setting" != "ok"; then
3601 as_fn_error $? "
3602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3603 *** building gcc. Please change the environment variable
3604 *** and run configure again." "$LINENO" 5
3607 # -----------
3608 # Directories
3609 # -----------
3611 # Specify the local prefix
3612 local_prefix=
3614 # Check whether --with-local-prefix was given.
3615 if test "${with_local_prefix+set}" = set; then :
3616 withval=$with_local_prefix; case "${withval}" in
3617 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3618 no) ;;
3619 *) local_prefix=$with_local_prefix ;;
3620 esac
3624 # Default local prefix if it is empty
3625 if test x$local_prefix = x; then
3626 local_prefix=/usr/local
3630 # Check whether --with-native-system-header-dir was given.
3631 if test "${with_native_system_header_dir+set}" = set; then :
3632 withval=$with_native_system_header_dir;
3633 case ${with_native_system_header_dir} in
3634 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3635 /* | [A-Za-z]:[\\/]*) ;;
3636 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3637 esac
3638 configured_native_system_header_dir="${withval}"
3640 else
3641 configured_native_system_header_dir=
3646 # Check whether --with-build-sysroot was given.
3647 if test "${with_build_sysroot+set}" = set; then :
3648 withval=$with_build_sysroot; if test x"$withval" != x ; then
3649 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3651 else
3652 SYSROOT_CFLAGS_FOR_TARGET=
3657 if test "x$prefix" = xNONE; then
3658 test_prefix=/usr/local
3659 else
3660 test_prefix=$prefix
3662 if test "x$exec_prefix" = xNONE; then
3663 test_exec_prefix=$test_prefix
3664 else
3665 test_exec_prefix=$exec_prefix
3669 # Check whether --with-sysroot was given.
3670 if test "${with_sysroot+set}" = set; then :
3671 withval=$with_sysroot;
3672 case ${with_sysroot} in
3673 /) ;;
3674 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3675 esac
3676 case ${with_sysroot} in
3677 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3678 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3679 esac
3681 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3682 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3684 case ${TARGET_SYSTEM_ROOT} in
3685 "${test_prefix}"|"${test_prefix}/"*|\
3686 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3687 '${prefix}'|'${prefix}/'*|\
3688 '${exec_prefix}'|'${exec_prefix}/'*)
3689 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3690 TARGET_SYSTEM_ROOT_DEFINE="$t"
3692 esac
3694 else
3696 TARGET_SYSTEM_ROOT=
3697 TARGET_SYSTEM_ROOT_DEFINE=
3698 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3706 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3707 # passed in by the toplevel make and thus we'd get different behavior
3708 # depending on where we built the sources.
3709 gcc_gxx_include_dir=
3710 # Specify the g++ header file directory
3712 # Check whether --with-gxx-include-dir was given.
3713 if test "${with_gxx_include_dir+set}" = set; then :
3714 withval=$with_gxx_include_dir; case "${withval}" in
3715 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3716 no) ;;
3717 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3718 esac
3722 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3723 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3724 # relative to the sysroot.
3725 gcc_gxx_include_dir_add_sysroot=0
3727 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3728 if test x${gcc_gxx_include_dir} = x; then
3729 if test x${enable_version_specific_runtime_libs} = xyes; then
3730 gcc_gxx_include_dir='${libsubdir}/include/c++'
3731 else
3732 libstdcxx_incdir='include/c++/$(version)'
3733 if test x$host != x$target; then
3734 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3736 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3738 elif test "${with_sysroot+set}" = set; then
3739 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3740 if test "${gcc_gxx_without_sysroot}"; then
3741 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3742 gcc_gxx_include_dir_add_sysroot=1
3746 # Configuration for an alternate set of C++ headers.
3747 gcc_gxx_libcxx_include_dir=
3748 # Specify the alternate g++ header file directory
3750 # Check whether --with-gxx-libcxx-include-dir was given.
3751 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3752 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3753 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3754 no) ;;
3755 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3756 esac
3760 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3761 # check to see if the latter starts with the former and, upon success, compute
3762 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3763 gcc_gxx_libcxx_include_dir_add_sysroot=0
3765 if test x${gcc_gxx_libcxx_include_dir} != x; then
3767 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3769 else
3770 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3773 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3774 if test x${gcc_gxx_libcxx_include_dir} = x; then
3775 if test x${enable_version_specific_runtime_libs} = xyes; then
3776 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3777 else
3778 libcxx_incdir='libc++_include/c++/$(version)/v1'
3779 if test x$host != x$target; then
3780 libcxx_incdir="$target_alias/$libcxx_incdir"
3782 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3784 elif test "${with_sysroot+set}" = set; then
3785 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3786 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3787 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3788 gcc_gxx_libcxx_include_dir_add_sysroot=1
3793 # Check whether --with-cpp_install_dir was given.
3794 if test "${with_cpp_install_dir+set}" = set; then :
3795 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3796 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3797 elif test x$withval != xno; then
3798 cpp_install_dir=$withval
3803 # We would like to our source tree to be readonly. However when releases or
3804 # pre-releases are generated, the flex/bison generated files as well as the
3805 # various formats of manuals need to be included along with the rest of the
3806 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3807 # just that.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3810 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3811 # Check whether --enable-generated-files-in-srcdir was given.
3812 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3813 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3814 else
3815 generated_files_in_srcdir=no
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3820 $as_echo "$generated_files_in_srcdir" >&6; }
3822 if test "$generated_files_in_srcdir" = "yes"; then
3823 GENINSRC=''
3824 else
3825 GENINSRC='#'
3829 # -------------------
3830 # Find default linker
3831 # -------------------
3833 # With GNU ld
3835 # Check whether --with-gnu-ld was given.
3836 if test "${with_gnu_ld+set}" = set; then :
3837 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3838 else
3839 gnu_ld_flag=no
3843 case $target in
3844 *darwin*)
3845 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3846 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3849 ld64_flag=no
3850 dsymutil_flag=no
3852 esac
3854 # With pre-defined ld
3856 # Check whether --with-ld was given.
3857 if test "${with_ld+set}" = set; then :
3858 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3861 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3862 if test ! -x "$DEFAULT_LINKER"; then
3863 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3864 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3865 gnu_ld_flag=yes
3866 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3867 ld64_flag=yes
3870 cat >>confdefs.h <<_ACEOF
3871 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3872 _ACEOF
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3877 $as_echo_n "checking whether a default linker was specified... " >&6; }
3878 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3879 if test x"$gnu_ld_flag" = x"no"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3881 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3882 else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3884 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3891 # With demangler in GNU ld
3893 # Check whether --with-demangler-in-ld was given.
3894 if test "${with_demangler_in_ld+set}" = set; then :
3895 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3896 else
3897 demangler_in_ld=yes
3901 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3903 # Check whether --with-dsymutil was given.
3904 if test "${with_dsymutil+set}" = set; then :
3905 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3909 dsymutil_vers=
3910 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3911 if test ! -x "$DEFAULT_DSYMUTIL"; then
3912 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3913 else
3914 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3915 dsymutil_flag=yes
3919 cat >>confdefs.h <<_ACEOF
3920 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3921 _ACEOF
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3926 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3927 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3929 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3935 # ----------------------
3936 # Find default assembler
3937 # ----------------------
3939 # With GNU as
3941 # Check whether --with-gnu-as was given.
3942 if test "${with_gnu_as+set}" = set; then :
3943 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3944 else
3945 gas_flag=no
3950 # Check whether --with-as was given.
3951 if test "${with_as+set}" = set; then :
3952 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3955 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3956 if test ! -x "$DEFAULT_ASSEMBLER"; then
3957 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3958 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3959 gas_flag=yes
3962 cat >>confdefs.h <<_ACEOF
3963 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3964 _ACEOF
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3969 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3970 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3971 if test x"$gas_flag" = x"no"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3973 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3976 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3983 # ---------------
3984 # Find C compiler
3985 # ---------------
3987 # If a non-executable a.out is present (e.g. created by GNU as above even if
3988 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3989 # file, even when creating an executable, so an execution test fails.
3990 # Remove possible default executable files to avoid this.
3992 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3993 # Autoconf includes it.
3994 rm -f a.out a.exe b.out
3996 # Find the native compiler
3997 ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 if test -n "$ac_tool_prefix"; then
4003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4024 done
4025 done
4026 IFS=$as_save_IFS
4030 CC=$ac_cv_prog_CC
4031 if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4041 if test -z "$ac_cv_prog_CC"; then
4042 ac_ct_CC=$CC
4043 # Extract the first word of "gcc", so it can be a program name with args.
4044 set dummy gcc; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -n "$ac_ct_CC"; then
4051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_CC="gcc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4066 IFS=$as_save_IFS
4070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4071 if test -n "$ac_ct_CC"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4073 $as_echo "$ac_ct_CC" >&6; }
4074 else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4079 if test "x$ac_ct_CC" = x; then
4080 CC=""
4081 else
4082 case $cross_compiling:$ac_tool_warned in
4083 yes:)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4086 ac_tool_warned=yes ;;
4087 esac
4088 CC=$ac_ct_CC
4090 else
4091 CC="$ac_cv_prog_CC"
4094 if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
4096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4097 set dummy ${ac_tool_prefix}cc; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CC+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_CC="${ac_tool_prefix}cc"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4117 done
4118 done
4119 IFS=$as_save_IFS
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4135 if test -z "$CC"; then
4136 # Extract the first word of "cc", so it can be a program name with args.
4137 set dummy cc; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_CC+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$CC"; then
4144 ac_cv_prog_CC="$CC" # Let the user override the test.
4145 else
4146 ac_prog_rejected=no
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4155 ac_prog_rejected=yes
4156 continue
4158 ac_cv_prog_CC="cc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4164 IFS=$as_save_IFS
4166 if test $ac_prog_rejected = yes; then
4167 # We found a bogon in the path, so make sure we never use it.
4168 set dummy $ac_cv_prog_CC
4169 shift
4170 if test $# != 0; then
4171 # We chose a different compiler from the bogus one.
4172 # However, it has the same basename, so the bogon will be chosen
4173 # first if we set CC to just the basename; use the full file name.
4174 shift
4175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4180 CC=$ac_cv_prog_CC
4181 if test -n "$CC"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4183 $as_echo "$CC" >&6; }
4184 else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4191 if test -z "$CC"; then
4192 if test -n "$ac_tool_prefix"; then
4193 for ac_prog in cl.exe
4195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_CC+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$CC"; then
4203 ac_cv_prog_CC="$CC" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4216 done
4217 done
4218 IFS=$as_save_IFS
4222 CC=$ac_cv_prog_CC
4223 if test -n "$CC"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225 $as_echo "$CC" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4232 test -n "$CC" && break
4233 done
4235 if test -z "$CC"; then
4236 ac_ct_CC=$CC
4237 for ac_prog in cl.exe
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$ac_ct_CC"; then
4247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_ac_ct_CC="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4267 if test -n "$ac_ct_CC"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4269 $as_echo "$ac_ct_CC" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4276 test -n "$ac_ct_CC" && break
4277 done
4279 if test "x$ac_ct_CC" = x; then
4280 CC=""
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283 yes:)
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286 ac_tool_warned=yes ;;
4287 esac
4288 CC=$ac_ct_CC
4295 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4297 as_fn_error $? "no acceptable C compiler found in \$PATH
4298 See \`config.log' for more details" "$LINENO" 5; }
4300 # Provide some information about the compiler.
4301 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4302 set X $ac_compile
4303 ac_compiler=$2
4304 for ac_option in --version -v -V -qversion; do
4305 { { ac_try="$ac_compiler $ac_option >&5"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4313 ac_status=$?
4314 if test -s conftest.err; then
4315 sed '10a\
4316 ... rest of stderr output deleted ...
4317 10q' conftest.err >conftest.er1
4318 cat conftest.er1 >&5
4320 rm -f conftest.er1 conftest.err
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }
4323 done
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4329 main ()
4333 return 0;
4335 _ACEOF
4336 ac_clean_files_save=$ac_clean_files
4337 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4338 # Try to create an executable without -o first, disregard a.out.
4339 # It will help us diagnose broken compilers, and finding out an intuition
4340 # of exeext.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4342 $as_echo_n "checking whether the C compiler works... " >&6; }
4343 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4345 # The possible output files:
4346 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348 ac_rmfiles=
4349 for ac_file in $ac_files
4351 case $ac_file in
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4354 esac
4355 done
4356 rm -f $ac_rmfiles
4358 if { { ac_try="$ac_link_default"
4359 case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_link_default") 2>&5
4366 ac_status=$?
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }; then :
4369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4370 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4371 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4372 # so that the user can short-circuit this test for compilers unknown to
4373 # Autoconf.
4374 for ac_file in $ac_files ''
4376 test -f "$ac_file" || continue
4377 case $ac_file in
4378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4380 [ab].out )
4381 # We found the default executable, but exeext='' is most
4382 # certainly right.
4383 break;;
4384 *.* )
4385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4386 then :; else
4387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4389 # We set ac_cv_exeext here because the later test for it is not
4390 # safe: cross compilers may not add the suffix if given an `-o'
4391 # argument, so we may need to know it at that point already.
4392 # Even if this section looks crufty: it has the advantage of
4393 # actually working.
4394 break;;
4396 break;;
4397 esac
4398 done
4399 test "$ac_cv_exeext" = no && ac_cv_exeext=
4401 else
4402 ac_file=''
4404 if test -z "$ac_file"; then :
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error 77 "C compiler cannot create executables
4413 See \`config.log' for more details" "$LINENO" 5; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416 $as_echo "yes" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4419 $as_echo_n "checking for C compiler default output file name... " >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4421 $as_echo "$ac_file" >&6; }
4422 ac_exeext=$ac_cv_exeext
4424 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4425 ac_clean_files=$ac_clean_files_save
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4427 $as_echo_n "checking for suffix of executables... " >&6; }
4428 if { { ac_try="$ac_link"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_link") 2>&5
4436 ac_status=$?
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; then :
4439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4441 # work properly (i.e., refer to `conftest.exe'), while it won't with
4442 # `rm'.
4443 for ac_file in conftest.exe conftest conftest.*; do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4448 break;;
4449 * ) break;;
4450 esac
4451 done
4452 else
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 rm -f conftest conftest$ac_cv_exeext
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4460 $as_echo "$ac_cv_exeext" >&6; }
4462 rm -f conftest.$ac_ext
4463 EXEEXT=$ac_cv_exeext
4464 ac_exeext=$EXEEXT
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <stdio.h>
4469 main ()
4471 FILE *f = fopen ("conftest.out", "w");
4472 return ferror (f) || fclose (f) != 0;
4475 return 0;
4477 _ACEOF
4478 ac_clean_files="$ac_clean_files conftest.out"
4479 # Check that the compiler produces executables we can run. If not, either
4480 # the compiler is broken, or we cross compile.
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4482 $as_echo_n "checking whether we are cross compiling... " >&6; }
4483 if test "$cross_compiling" != yes; then
4484 { { ac_try="$ac_link"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_link") 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }
4495 if { ac_try='./conftest$ac_cv_exeext'
4496 { { case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; }; then
4506 cross_compiling=no
4507 else
4508 if test "$cross_compiling" = maybe; then
4509 cross_compiling=yes
4510 else
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error $? "cannot run C compiled programs.
4514 If you meant to cross compile, use \`--host'.
4515 See \`config.log' for more details" "$LINENO" 5; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4520 $as_echo "$cross_compiling" >&6; }
4522 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4523 ac_clean_files=$ac_clean_files_save
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4525 $as_echo_n "checking for suffix of object files... " >&6; }
4526 if ${ac_cv_objext+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4533 main ()
4537 return 0;
4539 _ACEOF
4540 rm -f conftest.o conftest.obj
4541 if { { ac_try="$ac_compile"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 $as_echo "$ac_try_echo"; } >&5
4548 (eval "$ac_compile") 2>&5
4549 ac_status=$?
4550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }; then :
4552 for ac_file in conftest.o conftest.obj conftest.*; do
4553 test -f "$ac_file" || continue;
4554 case $ac_file in
4555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4557 break;;
4558 esac
4559 done
4560 else
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error $? "cannot compute suffix of object files: cannot compile
4567 See \`config.log' for more details" "$LINENO" 5; }
4569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4572 $as_echo "$ac_cv_objext" >&6; }
4573 OBJEXT=$ac_cv_objext
4574 ac_objext=$OBJEXT
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4576 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4577 if ${ac_cv_c_compiler_gnu+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 main ()
4586 #ifndef __GNUC__
4587 choke me
4588 #endif
4591 return 0;
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_compiler_gnu=yes
4596 else
4597 ac_compiler_gnu=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4605 if test $ac_compiler_gnu = yes; then
4606 GCC=yes
4607 else
4608 GCC=
4610 ac_test_CFLAGS=${CFLAGS+set}
4611 ac_save_CFLAGS=$CFLAGS
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4613 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4614 if ${ac_cv_prog_cc_g+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 ac_save_c_werror_flag=$ac_c_werror_flag
4618 ac_c_werror_flag=yes
4619 ac_cv_prog_cc_g=no
4620 CFLAGS="-g"
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_g=yes
4634 else
4635 CFLAGS=""
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4640 main ()
4644 return 0;
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4649 else
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4651 CFLAGS="-g"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_g=yes
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 ac_c_werror_flag=$ac_save_c_werror_flag
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4674 $as_echo "$ac_cv_prog_cc_g" >&6; }
4675 if test "$ac_test_CFLAGS" = set; then
4676 CFLAGS=$ac_save_CFLAGS
4677 elif test $ac_cv_prog_cc_g = yes; then
4678 if test "$GCC" = yes; then
4679 CFLAGS="-g -O2"
4680 else
4681 CFLAGS="-g"
4683 else
4684 if test "$GCC" = yes; then
4685 CFLAGS="-O2"
4686 else
4687 CFLAGS=
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4692 if ${ac_cv_prog_cc_c89+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_cv_prog_cc_c89=no
4696 ac_save_CC=$CC
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <stdarg.h>
4700 #include <stdio.h>
4701 struct stat;
4702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4703 struct buf { int x; };
4704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4705 static char *e (p, i)
4706 char **p;
4707 int i;
4709 return p[i];
4711 static char *f (char * (*g) (char **, int), char **p, ...)
4713 char *s;
4714 va_list v;
4715 va_start (v,p);
4716 s = g (p, va_arg (v,int));
4717 va_end (v);
4718 return s;
4721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4722 function prototypes and stuff, but not '\xHH' hex character constants.
4723 These don't provoke an error unfortunately, instead are silently treated
4724 as 'x'. The following induces an error, until -std is added to get
4725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4726 array size at least. It's necessary to write '\x00'==0 to get something
4727 that's true only with -std. */
4728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4731 inside strings and character constants. */
4732 #define FOO(x) 'x'
4733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4735 int test (int i, double x);
4736 struct s1 {int (*f) (int a);};
4737 struct s2 {int (*f) (double a);};
4738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4739 int argc;
4740 char **argv;
4742 main ()
4744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4746 return 0;
4748 _ACEOF
4749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4752 CC="$ac_save_CC $ac_arg"
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_prog_cc_c89=$ac_arg
4756 rm -f core conftest.err conftest.$ac_objext
4757 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 done
4759 rm -f conftest.$ac_ext
4760 CC=$ac_save_CC
4763 # AC_CACHE_VAL
4764 case "x$ac_cv_prog_cc_c89" in
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4767 $as_echo "none needed" >&6; } ;;
4768 xno)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 $as_echo "unsupported" >&6; } ;;
4772 CC="$CC $ac_cv_prog_cc_c89"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 esac
4776 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 ac_ext=cpp
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791 if test -z "$CXX"; then
4792 if test -n "$CCC"; then
4793 CXX=$CCC
4794 else
4795 if test -n "$ac_tool_prefix"; then
4796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_CXX+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$CXX"; then
4806 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4825 CXX=$ac_cv_prog_CXX
4826 if test -n "$CXX"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4828 $as_echo "$CXX" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4835 test -n "$CXX" && break
4836 done
4838 if test -z "$CXX"; then
4839 ac_ct_CXX=$CXX
4840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$ac_ct_CXX"; then
4850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_CXX="$ac_prog"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4870 if test -n "$ac_ct_CXX"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4872 $as_echo "$ac_ct_CXX" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4879 test -n "$ac_ct_CXX" && break
4880 done
4882 if test "x$ac_ct_CXX" = x; then
4883 CXX="g++"
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4890 esac
4891 CXX=$ac_ct_CXX
4897 # Provide some information about the compiler.
4898 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4899 set X $ac_compile
4900 ac_compiler=$2
4901 for ac_option in --version -v -V -qversion; do
4902 { { ac_try="$ac_compiler $ac_option >&5"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4908 $as_echo "$ac_try_echo"; } >&5
4909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 ac_status=$?
4911 if test -s conftest.err; then
4912 sed '10a\
4913 ... rest of stderr output deleted ...
4914 10q' conftest.err >conftest.er1
4915 cat conftest.er1 >&5
4917 rm -f conftest.er1 conftest.err
4918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4919 test $ac_status = 0; }
4920 done
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4923 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4924 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4931 main ()
4933 #ifndef __GNUC__
4934 choke me
4935 #endif
4938 return 0;
4940 _ACEOF
4941 if ac_fn_cxx_try_compile "$LINENO"; then :
4942 ac_compiler_gnu=yes
4943 else
4944 ac_compiler_gnu=no
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4951 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4952 if test $ac_compiler_gnu = yes; then
4953 GXX=yes
4954 else
4955 GXX=
4957 ac_test_CXXFLAGS=${CXXFLAGS+set}
4958 ac_save_CXXFLAGS=$CXXFLAGS
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4960 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4961 if ${ac_cv_prog_cxx_g+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4965 ac_cxx_werror_flag=yes
4966 ac_cv_prog_cxx_g=no
4967 CXXFLAGS="-g"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4972 main ()
4976 return 0;
4978 _ACEOF
4979 if ac_fn_cxx_try_compile "$LINENO"; then :
4980 ac_cv_prog_cxx_g=yes
4981 else
4982 CXXFLAGS=""
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4987 main ()
4991 return 0;
4993 _ACEOF
4994 if ac_fn_cxx_try_compile "$LINENO"; then :
4996 else
4997 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4998 CXXFLAGS="-g"
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5003 main ()
5007 return 0;
5009 _ACEOF
5010 if ac_fn_cxx_try_compile "$LINENO"; then :
5011 ac_cv_prog_cxx_g=yes
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5021 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5022 if test "$ac_test_CXXFLAGS" = set; then
5023 CXXFLAGS=$ac_save_CXXFLAGS
5024 elif test $ac_cv_prog_cxx_g = yes; then
5025 if test "$GXX" = yes; then
5026 CXXFLAGS="-g -O2"
5027 else
5028 CXXFLAGS="-g"
5030 else
5031 if test "$GXX" = yes; then
5032 CXXFLAGS="-O2"
5033 else
5034 CXXFLAGS=
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_GNATBIND+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$GNATBIND"; then
5055 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 GNATBIND=$ac_cv_prog_GNATBIND
5075 if test -n "$GNATBIND"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5077 $as_echo "$GNATBIND" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5085 if test -z "$ac_cv_prog_GNATBIND"; then
5086 ac_ct_GNATBIND=$GNATBIND
5087 # Extract the first word of "gnatbind", so it can be a program name with args.
5088 set dummy gnatbind; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_GNATBIND"; then
5095 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5115 if test -n "$ac_ct_GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5117 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5123 if test "x$ac_ct_GNATBIND" = x; then
5124 GNATBIND="no"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 GNATBIND=$ac_ct_GNATBIND
5134 else
5135 GNATBIND="$ac_cv_prog_GNATBIND"
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5140 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_GNATMAKE+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$GNATMAKE"; then
5147 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5162 IFS=$as_save_IFS
5166 GNATMAKE=$ac_cv_prog_GNATMAKE
5167 if test -n "$GNATMAKE"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5169 $as_echo "$GNATMAKE" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test -z "$ac_cv_prog_GNATMAKE"; then
5178 ac_ct_GNATMAKE=$GNATMAKE
5179 # Extract the first word of "gnatmake", so it can be a program name with args.
5180 set dummy gnatmake; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ac_ct_GNATMAKE"; then
5187 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5207 if test -n "$ac_ct_GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5209 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5215 if test "x$ac_ct_GNATMAKE" = x; then
5216 GNATMAKE="no"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219 yes:)
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned=yes ;;
5223 esac
5224 GNATMAKE=$ac_ct_GNATMAKE
5226 else
5227 GNATMAKE="$ac_cv_prog_GNATMAKE"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5231 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5232 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat >conftest.adb <<EOF
5236 pragma Warnings (Off);
5237 with System.CRTL;
5238 pragma Warnings (On);
5239 use type System.CRTL.int64;
5240 procedure conftest is begin null; end conftest;
5242 acx_cv_cc_gcc_supports_ada=no
5243 # There is a bug in old released versions of GCC which causes the
5244 # driver to exit successfully when the appropriate language module
5245 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5246 # Therefore we must check for the error message as well as an
5247 # unsuccessful exit.
5248 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5249 # given a .adb file, but produce no object file. So we must check
5250 # if an object file was really produced to guard against this.
5251 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5252 if test x"$errors" = x && test -f conftest.$ac_objext; then
5253 acx_cv_cc_gcc_supports_ada=yes
5255 rm -f conftest.*
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5258 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5260 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5261 have_gnat=yes
5262 else
5263 have_gnat=no
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5270 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_GDC+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$GDC"; then
5277 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5290 done
5291 done
5292 IFS=$as_save_IFS
5296 GDC=$ac_cv_prog_GDC
5297 if test -n "$GDC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5299 $as_echo "$GDC" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5307 if test -z "$ac_cv_prog_GDC"; then
5308 ac_ct_GDC=$GDC
5309 # Extract the first word of "gdc", so it can be a program name with args.
5310 set dummy gdc; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$ac_ct_GDC"; then
5317 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_ac_ct_GDC="gdc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5336 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5337 if test -n "$ac_ct_GDC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5339 $as_echo "$ac_ct_GDC" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5345 if test "x$ac_ct_GDC" = x; then
5346 GDC="no"
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349 yes:)
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned=yes ;;
5353 esac
5354 GDC=$ac_ct_GDC
5356 else
5357 GDC="$ac_cv_prog_GDC"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5361 $as_echo_n "checking whether the D compiler works... " >&6; }
5362 if ${acx_cv_d_compiler_works+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 cat >conftest.d <<EOF
5366 module conftest; int main() { return 0; }
5368 acx_cv_d_compiler_works=no
5369 if test "x$GDC" != xno; then
5370 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5371 if test x"$errors" = x && test -f conftest.$ac_objext; then
5372 acx_cv_d_compiler_works=yes
5374 rm -f conftest.*
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5378 $as_echo "$acx_cv_d_compiler_works" >&6; }
5379 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5380 have_gdc=yes
5381 else
5382 have_gdc=no
5386 # Do configure tests with the C++ compiler, since that's what we build with.
5387 ac_ext=cpp
5388 ac_cpp='$CXXCPP $CPPFLAGS'
5389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5394 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5395 # optimizations to be activated explicitly by the toplevel.
5396 case "$CC" in
5397 */prev-gcc/xgcc*) ;;
5398 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5399 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5400 esac
5405 # Determine PICFLAG for target gnatlib.
5410 case "${target}" in
5411 # PIC is the default on some targets or must not be used.
5412 *-*-darwin*)
5413 # For darwin, common symbols are not allowed in MH_DYLIB files
5414 case "${CFLAGS}" in
5415 # If we are using a compiler supporting mdynamic-no-pic
5416 # and the option has been tested as safe to add, then cancel
5417 # it here, since the code generated is incompatible with shared
5418 # libs.
5419 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5420 *) PICFLAG_FOR_TARGET=-fno-common ;;
5421 esac
5423 alpha*-dec-osf5*)
5424 # PIC is the default.
5426 hppa*64*-*-hpux*)
5427 # PIC is the default for 64-bit PA HP-UX.
5429 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5431 i[34567]86-*-mingw* | x86_64-*-mingw*)
5433 i[34567]86-*-interix[3-9]*)
5434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5435 # Instead, we relocate shared libraries at runtime.
5437 i[34567]86-*-nto-qnx*)
5438 # QNX uses GNU C++, but need to define -shared option too, otherwise
5439 # it will coredump.
5440 PICFLAG_FOR_TARGET='-fPIC -shared'
5442 i[34567]86-pc-msdosdjgpp*)
5443 # DJGPP does not support shared libraries at all.
5445 ia64*-*-hpux*)
5446 # On IA64 HP-UX, PIC is the default but the pic flag
5447 # sets the default TLS model and affects inlining.
5448 PICFLAG_FOR_TARGET=-fPIC
5450 loongarch*-*-*)
5451 PICFLAG_FOR_TARGET=-fpic
5453 mips-sgi-irix6*)
5454 # PIC is the default.
5456 rs6000-ibm-aix* | powerpc-ibm-aix*)
5457 # All AIX code is PIC.
5460 # Some targets support both -fPIC and -fpic, but prefer the latter.
5461 # FIXME: Why?
5462 i[34567]86-*-* | x86_64-*-*)
5463 PICFLAG_FOR_TARGET=-fpic
5465 # FIXME: Override -fPIC default in libgcc only?
5466 sh-*-linux* | sh[2346lbe]*-*-linux*)
5467 PICFLAG_FOR_TARGET=-fpic
5469 # FIXME: Simplify to sh*-*-netbsd*?
5470 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5471 sh64-*-netbsd* | sh64l*-*-netbsd*)
5472 PICFLAG_FOR_TARGET=-fpic
5474 # Default to -fPIC unless specified otherwise.
5476 PICFLAG_FOR_TARGET=-fPIC
5478 esac
5480 # If the user explicitly uses -fpic/-fPIC, keep that.
5481 case "${CFLAGS_FOR_TARGET}" in
5482 *-fpic*)
5483 PICFLAG_FOR_TARGET=-fpic
5485 *-fPIC*)
5486 PICFLAG_FOR_TARGET=-fPIC
5488 esac
5492 # -------------------------
5493 # Check C compiler features
5494 # -------------------------
5497 ac_ext=cpp
5498 ac_cpp='$CXXCPP $CPPFLAGS'
5499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5503 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5504 if test -z "$CXXCPP"; then
5505 if ${ac_cv_prog_CXXCPP+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 # Double quotes because CXXCPP needs to be expanded
5509 for CXXCPP in "$CXX -E" "/lib/cpp"
5511 ac_preproc_ok=false
5512 for ac_cxx_preproc_warn_flag in '' yes
5514 # Use a header file that comes with gcc, so configuring glibc
5515 # with a fresh cross-compiler works.
5516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5517 # <limits.h> exists even on freestanding compilers.
5518 # On the NeXT, cc -E runs the code through the compiler's parser,
5519 # not just through cpp. "Syntax error" is here to catch this case.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #ifdef __STDC__
5523 # include <limits.h>
5524 #else
5525 # include <assert.h>
5526 #endif
5527 Syntax error
5528 _ACEOF
5529 if ac_fn_cxx_try_cpp "$LINENO"; then :
5531 else
5532 # Broken: fails on valid input.
5533 continue
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5537 # OK, works on sane cases. Now check whether nonexistent headers
5538 # can be detected and how.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <ac_nonexistent.h>
5542 _ACEOF
5543 if ac_fn_cxx_try_cpp "$LINENO"; then :
5544 # Broken: success on invalid input.
5545 continue
5546 else
5547 # Passes both tests.
5548 ac_preproc_ok=:
5549 break
5551 rm -f conftest.err conftest.i conftest.$ac_ext
5553 done
5554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5555 rm -f conftest.i conftest.err conftest.$ac_ext
5556 if $ac_preproc_ok; then :
5557 break
5560 done
5561 ac_cv_prog_CXXCPP=$CXXCPP
5564 CXXCPP=$ac_cv_prog_CXXCPP
5565 else
5566 ac_cv_prog_CXXCPP=$CXXCPP
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5569 $as_echo "$CXXCPP" >&6; }
5570 ac_preproc_ok=false
5571 for ac_cxx_preproc_warn_flag in '' yes
5573 # Use a header file that comes with gcc, so configuring glibc
5574 # with a fresh cross-compiler works.
5575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576 # <limits.h> exists even on freestanding compilers.
5577 # On the NeXT, cc -E runs the code through the compiler's parser,
5578 # not just through cpp. "Syntax error" is here to catch this case.
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #ifdef __STDC__
5582 # include <limits.h>
5583 #else
5584 # include <assert.h>
5585 #endif
5586 Syntax error
5587 _ACEOF
5588 if ac_fn_cxx_try_cpp "$LINENO"; then :
5590 else
5591 # Broken: fails on valid input.
5592 continue
5594 rm -f conftest.err conftest.i conftest.$ac_ext
5596 # OK, works on sane cases. Now check whether nonexistent headers
5597 # can be detected and how.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <ac_nonexistent.h>
5601 _ACEOF
5602 if ac_fn_cxx_try_cpp "$LINENO"; then :
5603 # Broken: success on invalid input.
5604 continue
5605 else
5606 # Passes both tests.
5607 ac_preproc_ok=:
5608 break
5610 rm -f conftest.err conftest.i conftest.$ac_ext
5612 done
5613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5614 rm -f conftest.i conftest.err conftest.$ac_ext
5615 if $ac_preproc_ok; then :
5617 else
5618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5620 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5621 See \`config.log' for more details" "$LINENO" 5; }
5624 ac_ext=cpp
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5632 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5633 if ${ac_cv_path_GREP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -z "$GREP"; then
5637 ac_path_GREP_found=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_prog in grep ggrep; do
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5647 as_fn_executable_p "$ac_path_GREP" || continue
5648 # Check for GNU ac_path_GREP and select it if it is found.
5649 # Check for GNU $ac_path_GREP
5650 case `"$ac_path_GREP" --version 2>&1` in
5651 *GNU*)
5652 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5654 ac_count=0
5655 $as_echo_n 0123456789 >"conftest.in"
5656 while :
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 $as_echo 'GREP' >> "conftest.nl"
5662 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664 as_fn_arith $ac_count + 1 && ac_count=$as_val
5665 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_GREP="$ac_path_GREP"
5668 ac_path_GREP_max=$ac_count
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5672 done
5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674 esac
5676 $ac_path_GREP_found && break 3
5677 done
5678 done
5679 done
5680 IFS=$as_save_IFS
5681 if test -z "$ac_cv_path_GREP"; then
5682 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5684 else
5685 ac_cv_path_GREP=$GREP
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5690 $as_echo "$ac_cv_path_GREP" >&6; }
5691 GREP="$ac_cv_path_GREP"
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5695 $as_echo_n "checking for egrep... " >&6; }
5696 if ${ac_cv_path_EGREP+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5700 then ac_cv_path_EGREP="$GREP -E"
5701 else
5702 if test -z "$EGREP"; then
5703 ac_path_EGREP_found=false
5704 # Loop through the user's path and test for each of PROGNAME-LIST
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_prog in egrep; do
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5713 as_fn_executable_p "$ac_path_EGREP" || continue
5714 # Check for GNU ac_path_EGREP and select it if it is found.
5715 # Check for GNU $ac_path_EGREP
5716 case `"$ac_path_EGREP" --version 2>&1` in
5717 *GNU*)
5718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5720 ac_count=0
5721 $as_echo_n 0123456789 >"conftest.in"
5722 while :
5724 cat "conftest.in" "conftest.in" >"conftest.tmp"
5725 mv "conftest.tmp" "conftest.in"
5726 cp "conftest.in" "conftest.nl"
5727 $as_echo 'EGREP' >> "conftest.nl"
5728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5730 as_fn_arith $ac_count + 1 && ac_count=$as_val
5731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5732 # Best one so far, save it but keep looking for a better one
5733 ac_cv_path_EGREP="$ac_path_EGREP"
5734 ac_path_EGREP_max=$ac_count
5736 # 10*(2^10) chars as input seems more than enough
5737 test $ac_count -gt 10 && break
5738 done
5739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5740 esac
5742 $ac_path_EGREP_found && break 3
5743 done
5744 done
5745 done
5746 IFS=$as_save_IFS
5747 if test -z "$ac_cv_path_EGREP"; then
5748 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5750 else
5751 ac_cv_path_EGREP=$EGREP
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5757 $as_echo "$ac_cv_path_EGREP" >&6; }
5758 EGREP="$ac_cv_path_EGREP"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5762 $as_echo_n "checking for ANSI C header files... " >&6; }
5763 if ${ac_cv_header_stdc+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <stdlib.h>
5769 #include <stdarg.h>
5770 #include <string.h>
5771 #include <float.h>
5774 main ()
5778 return 0;
5780 _ACEOF
5781 if ac_fn_cxx_try_compile "$LINENO"; then :
5782 ac_cv_header_stdc=yes
5783 else
5784 ac_cv_header_stdc=no
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 if test $ac_cv_header_stdc = yes; then
5789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <string.h>
5794 _ACEOF
5795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5796 $EGREP "memchr" >/dev/null 2>&1; then :
5798 else
5799 ac_cv_header_stdc=no
5801 rm -f conftest*
5805 if test $ac_cv_header_stdc = yes; then
5806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include <stdlib.h>
5811 _ACEOF
5812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5813 $EGREP "free" >/dev/null 2>&1; then :
5815 else
5816 ac_cv_header_stdc=no
5818 rm -f conftest*
5822 if test $ac_cv_header_stdc = yes; then
5823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5824 if test "$cross_compiling" = yes; then :
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ctype.h>
5830 #include <stdlib.h>
5831 #if ((' ' & 0x0FF) == 0x020)
5832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5834 #else
5835 # define ISLOWER(c) \
5836 (('a' <= (c) && (c) <= 'i') \
5837 || ('j' <= (c) && (c) <= 'r') \
5838 || ('s' <= (c) && (c) <= 'z'))
5839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5840 #endif
5842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5844 main ()
5846 int i;
5847 for (i = 0; i < 256; i++)
5848 if (XOR (islower (i), ISLOWER (i))
5849 || toupper (i) != TOUPPER (i))
5850 return 2;
5851 return 0;
5853 _ACEOF
5854 if ac_fn_cxx_try_run "$LINENO"; then :
5856 else
5857 ac_cv_header_stdc=no
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5860 conftest.$ac_objext conftest.beam conftest.$ac_ext
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5866 $as_echo "$ac_cv_header_stdc" >&6; }
5867 if test $ac_cv_header_stdc = yes; then
5869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5875 inttypes.h stdint.h unistd.h
5876 do :
5877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5878 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5881 cat >>confdefs.h <<_ACEOF
5882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 _ACEOF
5887 done
5891 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5892 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5893 MINIX=yes
5894 else
5895 MINIX=
5899 if test "$MINIX" = yes; then
5901 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5904 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5907 $as_echo "#define _MINIX 1" >>confdefs.h
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5914 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5920 # define __EXTENSIONS__ 1
5921 $ac_includes_default
5923 main ()
5927 return 0;
5929 _ACEOF
5930 if ac_fn_cxx_try_compile "$LINENO"; then :
5931 ac_cv_safe_to_define___extensions__=yes
5932 else
5933 ac_cv_safe_to_define___extensions__=no
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5939 test $ac_cv_safe_to_define___extensions__ = yes &&
5940 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5942 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5944 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5946 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5948 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5952 ac_ext=c
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5958 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5959 # On Suns, sometimes $CPP names a directory.
5960 if test -n "$CPP" && test -d "$CPP"; then
5961 CPP=
5963 if test -z "$CPP"; then
5964 if ${ac_cv_prog_CPP+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 # Double quotes because CPP needs to be expanded
5968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5970 ac_preproc_ok=false
5971 for ac_c_preproc_warn_flag in '' yes
5973 # Use a header file that comes with gcc, so configuring glibc
5974 # with a fresh cross-compiler works.
5975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5976 # <limits.h> exists even on freestanding compilers.
5977 # On the NeXT, cc -E runs the code through the compiler's parser,
5978 # not just through cpp. "Syntax error" is here to catch this case.
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #ifdef __STDC__
5982 # include <limits.h>
5983 #else
5984 # include <assert.h>
5985 #endif
5986 Syntax error
5987 _ACEOF
5988 if ac_fn_c_try_cpp "$LINENO"; then :
5990 else
5991 # Broken: fails on valid input.
5992 continue
5994 rm -f conftest.err conftest.i conftest.$ac_ext
5996 # OK, works on sane cases. Now check whether nonexistent headers
5997 # can be detected and how.
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #include <ac_nonexistent.h>
6001 _ACEOF
6002 if ac_fn_c_try_cpp "$LINENO"; then :
6003 # Broken: success on invalid input.
6004 continue
6005 else
6006 # Passes both tests.
6007 ac_preproc_ok=:
6008 break
6010 rm -f conftest.err conftest.i conftest.$ac_ext
6012 done
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.i conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then :
6016 break
6019 done
6020 ac_cv_prog_CPP=$CPP
6023 CPP=$ac_cv_prog_CPP
6024 else
6025 ac_cv_prog_CPP=$CPP
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6028 $as_echo "$CPP" >&6; }
6029 ac_preproc_ok=false
6030 for ac_c_preproc_warn_flag in '' yes
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #ifdef __STDC__
6041 # include <limits.h>
6042 #else
6043 # include <assert.h>
6044 #endif
6045 Syntax error
6046 _ACEOF
6047 if ac_fn_c_try_cpp "$LINENO"; then :
6049 else
6050 # Broken: fails on valid input.
6051 continue
6053 rm -f conftest.err conftest.i conftest.$ac_ext
6055 # OK, works on sane cases. Now check whether nonexistent headers
6056 # can be detected and how.
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 #include <ac_nonexistent.h>
6060 _ACEOF
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6062 # Broken: success on invalid input.
6063 continue
6064 else
6065 # Passes both tests.
6066 ac_preproc_ok=:
6067 break
6069 rm -f conftest.err conftest.i conftest.$ac_ext
6071 done
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.i conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then :
6076 else
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6080 See \`config.log' for more details" "$LINENO" 5; }
6083 ac_ext=cpp
6084 ac_cpp='$CXXCPP $CPPFLAGS'
6085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6090 $as_echo_n "checking for inline... " >&6; }
6091 if ${ac_cv_c_inline+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 ac_cv_c_inline=no
6095 for ac_kw in inline __inline__ __inline; do
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #ifndef __cplusplus
6099 typedef int foo_t;
6100 static $ac_kw foo_t static_foo () {return 0; }
6101 $ac_kw foo_t foo () {return 0; }
6102 #endif
6104 _ACEOF
6105 if ac_fn_cxx_try_compile "$LINENO"; then :
6106 ac_cv_c_inline=$ac_kw
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 test "$ac_cv_c_inline" != no && break
6110 done
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6114 $as_echo "$ac_cv_c_inline" >&6; }
6116 case $ac_cv_c_inline in
6117 inline | yes) ;;
6119 case $ac_cv_c_inline in
6120 no) ac_val=;;
6121 *) ac_val=$ac_cv_c_inline;;
6122 esac
6123 cat >>confdefs.h <<_ACEOF
6124 #ifndef __cplusplus
6125 #define inline $ac_val
6126 #endif
6127 _ACEOF
6129 esac
6132 # Check whether --enable-largefile was given.
6133 if test "${enable_largefile+set}" = set; then :
6134 enableval=$enable_largefile;
6137 if test "$enable_largefile" != no; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6140 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6141 if ${ac_cv_sys_largefile_CC+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 ac_cv_sys_largefile_CC=no
6145 if test "$GCC" != yes; then
6146 ac_save_CC=$CC
6147 while :; do
6148 # IRIX 6.2 and later do not support large files by default,
6149 # so use the C compiler's -n32 option if that helps.
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #include <sys/types.h>
6153 /* Check that off_t can represent 2**63 - 1 correctly.
6154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6155 since some C++ compilers masquerading as C compilers
6156 incorrectly reject 9223372036854775807. */
6157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6159 && LARGE_OFF_T % 2147483647 == 1)
6160 ? 1 : -1];
6162 main ()
6166 return 0;
6168 _ACEOF
6169 if ac_fn_cxx_try_compile "$LINENO"; then :
6170 break
6172 rm -f core conftest.err conftest.$ac_objext
6173 CC="$CC -n32"
6174 if ac_fn_cxx_try_compile "$LINENO"; then :
6175 ac_cv_sys_largefile_CC=' -n32'; break
6177 rm -f core conftest.err conftest.$ac_objext
6178 break
6179 done
6180 CC=$ac_save_CC
6181 rm -f conftest.$ac_ext
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6185 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6186 if test "$ac_cv_sys_largefile_CC" != no; then
6187 CC=$CC$ac_cv_sys_largefile_CC
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6191 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6192 if ${ac_cv_sys_file_offset_bits+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 while :; do
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 #include <sys/types.h>
6199 /* Check that off_t can represent 2**63 - 1 correctly.
6200 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6201 since some C++ compilers masquerading as C compilers
6202 incorrectly reject 9223372036854775807. */
6203 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6205 && LARGE_OFF_T % 2147483647 == 1)
6206 ? 1 : -1];
6208 main ()
6212 return 0;
6214 _ACEOF
6215 if ac_fn_cxx_try_compile "$LINENO"; then :
6216 ac_cv_sys_file_offset_bits=no; break
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #define _FILE_OFFSET_BITS 64
6222 #include <sys/types.h>
6223 /* Check that off_t can represent 2**63 - 1 correctly.
6224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6225 since some C++ compilers masquerading as C compilers
6226 incorrectly reject 9223372036854775807. */
6227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6229 && LARGE_OFF_T % 2147483647 == 1)
6230 ? 1 : -1];
6232 main ()
6236 return 0;
6238 _ACEOF
6239 if ac_fn_cxx_try_compile "$LINENO"; then :
6240 ac_cv_sys_file_offset_bits=64; break
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 ac_cv_sys_file_offset_bits=unknown
6244 break
6245 done
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6248 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6249 case $ac_cv_sys_file_offset_bits in #(
6250 no | unknown) ;;
6252 cat >>confdefs.h <<_ACEOF
6253 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6254 _ACEOF
6256 esac
6257 rm -rf conftest*
6258 if test $ac_cv_sys_file_offset_bits = unknown; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6260 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6261 if ${ac_cv_sys_large_files+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 while :; do
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6268 /* Check that off_t can represent 2**63 - 1 correctly.
6269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6270 since some C++ compilers masquerading as C compilers
6271 incorrectly reject 9223372036854775807. */
6272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6274 && LARGE_OFF_T % 2147483647 == 1)
6275 ? 1 : -1];
6277 main ()
6281 return 0;
6283 _ACEOF
6284 if ac_fn_cxx_try_compile "$LINENO"; then :
6285 ac_cv_sys_large_files=no; break
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #define _LARGE_FILES 1
6291 #include <sys/types.h>
6292 /* Check that off_t can represent 2**63 - 1 correctly.
6293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6294 since some C++ compilers masquerading as C compilers
6295 incorrectly reject 9223372036854775807. */
6296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6298 && LARGE_OFF_T % 2147483647 == 1)
6299 ? 1 : -1];
6301 main ()
6305 return 0;
6307 _ACEOF
6308 if ac_fn_cxx_try_compile "$LINENO"; then :
6309 ac_cv_sys_large_files=1; break
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cv_sys_large_files=unknown
6313 break
6314 done
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6317 $as_echo "$ac_cv_sys_large_files" >&6; }
6318 case $ac_cv_sys_large_files in #(
6319 no | unknown) ;;
6321 cat >>confdefs.h <<_ACEOF
6322 #define _LARGE_FILES $ac_cv_sys_large_files
6323 _ACEOF
6325 esac
6326 rm -rf conftest*
6332 # The cast to long int works around a bug in the HP C Compiler
6333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6335 # This bug is HP SR number 8606223364.
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6337 $as_echo_n "checking size of ino_t... " >&6; }
6338 if ${ac_cv_sizeof_ino_t+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6343 else
6344 if test "$ac_cv_type_ino_t" = yes; then
6345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6347 as_fn_error 77 "cannot compute sizeof (ino_t)
6348 See \`config.log' for more details" "$LINENO" 5; }
6349 else
6350 ac_cv_sizeof_ino_t=0
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6356 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6360 cat >>confdefs.h <<_ACEOF
6361 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6362 _ACEOF
6365 # The cast to long int works around a bug in the HP C Compiler
6366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6368 # This bug is HP SR number 8606223364.
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6370 $as_echo_n "checking size of dev_t... " >&6; }
6371 if ${ac_cv_sizeof_dev_t+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6376 else
6377 if test "$ac_cv_type_dev_t" = yes; then
6378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6380 as_fn_error 77 "cannot compute sizeof (dev_t)
6381 See \`config.log' for more details" "$LINENO" 5; }
6382 else
6383 ac_cv_sizeof_dev_t=0
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6389 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6393 cat >>confdefs.h <<_ACEOF
6394 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6395 _ACEOF
6399 # Select the right stat being able to handle 64bit inodes, if needed.
6400 if test "$enable_largefile" != no; then
6401 case "$host, $build" in
6402 *-*-aix*,*|*,*-*-aix*)
6403 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6405 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6407 fi;;
6408 esac
6412 # sizeof(char) is 1 by definition.
6413 # The cast to long int works around a bug in the HP C Compiler
6414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6416 # This bug is HP SR number 8606223364.
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6418 $as_echo_n "checking size of void *... " >&6; }
6419 if ${ac_cv_sizeof_void_p+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6424 else
6425 if test "$ac_cv_type_void_p" = yes; then
6426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6428 as_fn_error 77 "cannot compute sizeof (void *)
6429 See \`config.log' for more details" "$LINENO" 5; }
6430 else
6431 ac_cv_sizeof_void_p=0
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6437 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6441 cat >>confdefs.h <<_ACEOF
6442 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6443 _ACEOF
6446 # The cast to long int works around a bug in the HP C Compiler
6447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6449 # This bug is HP SR number 8606223364.
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6451 $as_echo_n "checking size of short... " >&6; }
6452 if ${ac_cv_sizeof_short+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6457 else
6458 if test "$ac_cv_type_short" = yes; then
6459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461 as_fn_error 77 "cannot compute sizeof (short)
6462 See \`config.log' for more details" "$LINENO" 5; }
6463 else
6464 ac_cv_sizeof_short=0
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6470 $as_echo "$ac_cv_sizeof_short" >&6; }
6474 cat >>confdefs.h <<_ACEOF
6475 #define SIZEOF_SHORT $ac_cv_sizeof_short
6476 _ACEOF
6479 # The cast to long int works around a bug in the HP C Compiler
6480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6482 # This bug is HP SR number 8606223364.
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6484 $as_echo_n "checking size of int... " >&6; }
6485 if ${ac_cv_sizeof_int+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6490 else
6491 if test "$ac_cv_type_int" = yes; then
6492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6494 as_fn_error 77 "cannot compute sizeof (int)
6495 See \`config.log' for more details" "$LINENO" 5; }
6496 else
6497 ac_cv_sizeof_int=0
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6503 $as_echo "$ac_cv_sizeof_int" >&6; }
6507 cat >>confdefs.h <<_ACEOF
6508 #define SIZEOF_INT $ac_cv_sizeof_int
6509 _ACEOF
6512 # The cast to long int works around a bug in the HP C Compiler
6513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6515 # This bug is HP SR number 8606223364.
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6517 $as_echo_n "checking size of long... " >&6; }
6518 if ${ac_cv_sizeof_long+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6523 else
6524 if test "$ac_cv_type_long" = yes; then
6525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6527 as_fn_error 77 "cannot compute sizeof (long)
6528 See \`config.log' for more details" "$LINENO" 5; }
6529 else
6530 ac_cv_sizeof_long=0
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6536 $as_echo "$ac_cv_sizeof_long" >&6; }
6540 cat >>confdefs.h <<_ACEOF
6541 #define SIZEOF_LONG $ac_cv_sizeof_long
6542 _ACEOF
6545 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6546 if test "x$ac_cv_type_long_long" = xyes; then :
6548 cat >>confdefs.h <<_ACEOF
6549 #define HAVE_LONG_LONG 1
6550 _ACEOF
6552 # The cast to long int works around a bug in the HP C Compiler
6553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6555 # This bug is HP SR number 8606223364.
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6557 $as_echo_n "checking size of long long... " >&6; }
6558 if ${ac_cv_sizeof_long_long+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6563 else
6564 if test "$ac_cv_type_long_long" = yes; then
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error 77 "cannot compute sizeof (long long)
6568 See \`config.log' for more details" "$LINENO" 5; }
6569 else
6570 ac_cv_sizeof_long_long=0
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6576 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6580 cat >>confdefs.h <<_ACEOF
6581 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6582 _ACEOF
6587 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6588 case $ac_cv_c_int8_t in #(
6589 no|yes) ;; #(
6592 cat >>confdefs.h <<_ACEOF
6593 #define int8_t $ac_cv_c_int8_t
6594 _ACEOF
6596 esac
6598 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6599 case $ac_cv_c_int16_t in #(
6600 no|yes) ;; #(
6603 cat >>confdefs.h <<_ACEOF
6604 #define int16_t $ac_cv_c_int16_t
6605 _ACEOF
6607 esac
6609 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6610 case $ac_cv_c_int32_t in #(
6611 no|yes) ;; #(
6614 cat >>confdefs.h <<_ACEOF
6615 #define int32_t $ac_cv_c_int32_t
6616 _ACEOF
6618 esac
6620 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6621 case $ac_cv_c_int64_t in #(
6622 no|yes) ;; #(
6625 cat >>confdefs.h <<_ACEOF
6626 #define int64_t $ac_cv_c_int64_t
6627 _ACEOF
6629 esac
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6633 $as_echo_n "checking for unsigned long long int... " >&6; }
6634 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 ac_cv_type_unsigned_long_long_int=yes
6638 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6642 /* For now, do not test the preprocessor; as of 2007 there are too many
6643 implementations with broken preprocessors. Perhaps this can
6644 be revisited in 2012. In the meantime, code should not expect
6645 #if to work with literals wider than 32 bits. */
6646 /* Test literals. */
6647 long long int ll = 9223372036854775807ll;
6648 long long int nll = -9223372036854775807LL;
6649 unsigned long long int ull = 18446744073709551615ULL;
6650 /* Test constant expressions. */
6651 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6652 ? 1 : -1)];
6653 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6654 ? 1 : -1)];
6655 int i = 63;
6657 main ()
6659 /* Test availability of runtime routines for shift and division. */
6660 long long int llmax = 9223372036854775807ll;
6661 unsigned long long int ullmax = 18446744073709551615ull;
6662 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6663 | (llmax / ll) | (llmax % ll)
6664 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6665 | (ullmax / ull) | (ullmax % ull));
6667 return 0;
6670 _ACEOF
6671 if ac_fn_cxx_try_link "$LINENO"; then :
6673 else
6674 ac_cv_type_unsigned_long_long_int=no
6676 rm -f core conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6681 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6682 if test $ac_cv_type_unsigned_long_long_int = yes; then
6684 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6691 $as_echo_n "checking for long long int... " >&6; }
6692 if ${ac_cv_type_long_long_int+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_cv_type_long_long_int=yes
6696 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6697 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6698 if test $ac_cv_type_long_long_int = yes; then
6699 if test "$cross_compiling" = yes; then :
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <limits.h>
6705 #ifndef LLONG_MAX
6706 # define HALF \
6707 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6708 # define LLONG_MAX (HALF - 1 + HALF)
6709 #endif
6711 main ()
6713 long long int n = 1;
6714 int i;
6715 for (i = 0; ; i++)
6717 long long int m = n << i;
6718 if (m >> i != n)
6719 return 1;
6720 if (LLONG_MAX / 2 < m)
6721 break;
6723 return 0;
6725 return 0;
6727 _ACEOF
6728 if ac_fn_cxx_try_run "$LINENO"; then :
6730 else
6731 ac_cv_type_long_long_int=no
6733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734 conftest.$ac_objext conftest.beam conftest.$ac_ext
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6741 $as_echo "$ac_cv_type_long_long_int" >&6; }
6742 if test $ac_cv_type_long_long_int = yes; then
6744 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6750 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6751 if test "x$ac_cv_type_intmax_t" = xyes; then :
6753 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6755 else
6756 test $ac_cv_type_long_long_int = yes \
6757 && ac_type='long long int' \
6758 || ac_type='long int'
6760 cat >>confdefs.h <<_ACEOF
6761 #define intmax_t $ac_type
6762 _ACEOF
6768 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6769 if test "x$ac_cv_type_intptr_t" = xyes; then :
6771 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6773 else
6774 for ac_type in 'int' 'long int' 'long long int'; do
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 $ac_includes_default
6779 main ()
6781 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6782 test_array [0] = 0;
6783 return test_array [0];
6786 return 0;
6788 _ACEOF
6789 if ac_fn_cxx_try_compile "$LINENO"; then :
6791 cat >>confdefs.h <<_ACEOF
6792 #define intptr_t $ac_type
6793 _ACEOF
6795 ac_type=
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 test -z "$ac_type" && break
6799 done
6803 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6804 case $ac_cv_c_uint8_t in #(
6805 no|yes) ;; #(
6808 $as_echo "#define _UINT8_T 1" >>confdefs.h
6811 cat >>confdefs.h <<_ACEOF
6812 #define uint8_t $ac_cv_c_uint8_t
6813 _ACEOF
6815 esac
6817 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6818 case $ac_cv_c_uint16_t in #(
6819 no|yes) ;; #(
6823 cat >>confdefs.h <<_ACEOF
6824 #define uint16_t $ac_cv_c_uint16_t
6825 _ACEOF
6827 esac
6829 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6830 case $ac_cv_c_uint32_t in #(
6831 no|yes) ;; #(
6834 $as_echo "#define _UINT32_T 1" >>confdefs.h
6837 cat >>confdefs.h <<_ACEOF
6838 #define uint32_t $ac_cv_c_uint32_t
6839 _ACEOF
6841 esac
6843 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6844 case $ac_cv_c_uint64_t in #(
6845 no|yes) ;; #(
6848 $as_echo "#define _UINT64_T 1" >>confdefs.h
6851 cat >>confdefs.h <<_ACEOF
6852 #define uint64_t $ac_cv_c_uint64_t
6853 _ACEOF
6855 esac
6859 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6862 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6864 else
6865 test $ac_cv_type_unsigned_long_long_int = yes \
6866 && ac_type='unsigned long long int' \
6867 || ac_type='unsigned long int'
6869 cat >>confdefs.h <<_ACEOF
6870 #define uintmax_t $ac_type
6871 _ACEOF
6877 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6878 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6880 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6882 else
6883 for ac_type in 'unsigned int' 'unsigned long int' \
6884 'unsigned long long int'; do
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 $ac_includes_default
6889 main ()
6891 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6892 test_array [0] = 0;
6893 return test_array [0];
6896 return 0;
6898 _ACEOF
6899 if ac_fn_cxx_try_compile "$LINENO"; then :
6901 cat >>confdefs.h <<_ACEOF
6902 #define uintptr_t $ac_type
6903 _ACEOF
6905 ac_type=
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 test -z "$ac_type" && break
6909 done
6925 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6926 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6929 # check what underlying integer type int64_t uses
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6931 $as_echo_n "checking for int64_t underlying type... " >&6; }
6932 if ${ac_cv_int64_t_type+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6939 #ifdef HAVE_STDINT_H
6940 #include <stdint.h>
6941 #endif
6942 template <typename T> struct X { };
6943 template <>
6944 struct X<long> { typedef long t; };
6947 main ()
6949 X<int64_t>::t x;
6951 return 0;
6953 _ACEOF
6954 if ac_fn_cxx_try_compile "$LINENO"; then :
6955 ac_cv_int64_t_type=long
6956 else
6957 ac_cv_int64_t_type="long long"
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6962 $as_echo "$ac_cv_int64_t_type" >&6; }
6963 if test "$ac_cv_int64_t_type" = "long"; then
6965 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6971 #ifdef HAVE_STDINT_H
6972 #include <stdint.h>
6973 #endif
6974 template <typename T> struct X { };
6975 template <>
6976 struct X<long long> { typedef long long t; };
6979 main ()
6981 X<int64_t>::t x;
6983 return 0;
6985 _ACEOF
6986 if ac_fn_cxx_try_compile "$LINENO"; then :
6988 else
6989 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6995 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6996 if ${ac_cv_std_swap_in_utility+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 #include <utility>
7006 main ()
7008 int a, b; std::swap(a,b);
7010 return 0;
7012 _ACEOF
7013 if ac_fn_cxx_try_compile "$LINENO"; then :
7014 ac_cv_std_swap_in_utility=yes
7015 else
7016 ac_cv_std_swap_in_utility=no
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7021 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7022 if test $ac_cv_std_swap_in_utility = yes; then
7024 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7028 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7029 # If the host compiler is affected by the bug, and we build with optimization
7030 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7031 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7032 # Since there is no reliable feature check for the presence of this bug,
7033 # we simply use a GCC version number check. (This should never trigger for
7034 # stages 2 or 3 of a native bootstrap.)
7035 aliasing_flags=
7036 if test "$GCC" = yes; then
7037 saved_CXXFLAGS="$CXXFLAGS"
7039 # The following test compilation will succeed if and only if $CXX accepts
7040 # -fno-strict-aliasing *and* is older than GCC 4.3.
7041 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7043 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7047 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7048 #error compiler not affected by placement new aliasing bug
7049 #endif
7051 _ACEOF
7052 if ac_fn_cxx_try_compile "$LINENO"; then :
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7054 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 CXXFLAGS="$saved_CXXFLAGS"
7067 # ---------------------
7068 # Warnings and checking
7069 # ---------------------
7071 # Check $CC warning features (if it's GCC).
7072 # We want to use -pedantic, but we don't want warnings about
7073 # * 'long long'
7074 # * variadic macros
7075 # * overlong strings
7076 # * C++11 narrowing conversions in { }
7077 # So, we only use -pedantic if we can disable those warnings.
7079 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7080 # Check whether --enable-build-format-warnings was given.
7081 if test "${enable_build_format_warnings+set}" = set; then :
7082 enableval=$enable_build_format_warnings;
7083 else
7084 enable_build_format_warnings=yes
7087 if test $enable_build_format_warnings = no; then :
7088 wf_opt=-Wno-format
7089 else
7090 wf_opt=
7092 ac_ext=cpp
7093 ac_cpp='$CXXCPP $CPPFLAGS'
7094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7098 loose_warn=
7099 save_CXXFLAGS="$CXXFLAGS"
7100 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7101 # Do the check with the no- prefix removed since gcc silently
7102 # accepts any -Wno-* option on purpose
7103 case $real_option in
7104 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7105 *) option=$real_option ;;
7106 esac
7107 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7110 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7111 if eval \${$as_acx_Woption+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 CXXFLAGS="$option"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 main ()
7123 return 0;
7125 _ACEOF
7126 if ac_fn_cxx_try_compile "$LINENO"; then :
7127 eval "$as_acx_Woption=yes"
7128 else
7129 eval "$as_acx_Woption=no"
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 eval ac_res=\$$as_acx_Woption
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7136 $as_echo "$ac_res" >&6; }
7137 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7138 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7140 done
7141 CXXFLAGS="$save_CXXFLAGS"
7142 ac_ext=cpp
7143 ac_cpp='$CXXCPP $CPPFLAGS'
7144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7150 ac_ext=c
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 c_loose_warn=
7157 save_CFLAGS="$CFLAGS"
7158 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7159 # Do the check with the no- prefix removed since gcc silently
7160 # accepts any -Wno-* option on purpose
7161 case $real_option in
7162 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7163 *) option=$real_option ;;
7164 esac
7165 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7168 $as_echo_n "checking whether $CC supports $option... " >&6; }
7169 if eval \${$as_acx_Woption+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 CFLAGS="$option"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7177 main ()
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 eval "$as_acx_Woption=yes"
7186 else
7187 eval "$as_acx_Woption=no"
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 eval ac_res=\$$as_acx_Woption
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7194 $as_echo "$ac_res" >&6; }
7195 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7196 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7198 done
7199 CFLAGS="$save_CFLAGS"
7200 ac_ext=cpp
7201 ac_cpp='$CXXCPP $CPPFLAGS'
7202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7207 ac_ext=cpp
7208 ac_cpp='$CXXCPP $CPPFLAGS'
7209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7213 strict_warn=
7214 save_CXXFLAGS="$CXXFLAGS"
7215 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7216 # Do the check with the no- prefix removed since gcc silently
7217 # accepts any -Wno-* option on purpose
7218 case $real_option in
7219 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7220 *) option=$real_option ;;
7221 esac
7222 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7225 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7226 if eval \${$as_acx_Woption+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 CXXFLAGS="$option"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7234 main ()
7238 return 0;
7240 _ACEOF
7241 if ac_fn_cxx_try_compile "$LINENO"; then :
7242 eval "$as_acx_Woption=yes"
7243 else
7244 eval "$as_acx_Woption=no"
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 eval ac_res=\$$as_acx_Woption
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7252 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7253 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7255 done
7256 CXXFLAGS="$save_CXXFLAGS"
7257 ac_ext=cpp
7258 ac_cpp='$CXXCPP $CPPFLAGS'
7259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7264 ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270 c_strict_warn=
7271 save_CFLAGS="$CFLAGS"
7272 for real_option in -Wold-style-definition -Wc++-compat; do
7273 # Do the check with the no- prefix removed since gcc silently
7274 # accepts any -Wno-* option on purpose
7275 case $real_option in
7276 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7277 *) option=$real_option ;;
7278 esac
7279 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7282 $as_echo_n "checking whether $CC supports $option... " >&6; }
7283 if eval \${$as_acx_Woption+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 CFLAGS="$option"
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7291 main ()
7295 return 0;
7297 _ACEOF
7298 if ac_fn_c_try_compile "$LINENO"; then :
7299 eval "$as_acx_Woption=yes"
7300 else
7301 eval "$as_acx_Woption=no"
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 eval ac_res=\$$as_acx_Woption
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7308 $as_echo "$ac_res" >&6; }
7309 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7310 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7312 done
7313 CFLAGS="$save_CFLAGS"
7314 ac_ext=cpp
7315 ac_cpp='$CXXCPP $CPPFLAGS'
7316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7321 ac_ext=cpp
7322 ac_cpp='$CXXCPP $CPPFLAGS'
7323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7327 # Do the check with the no- prefix removed from the warning options
7328 # since gcc silently accepts any -Wno-* option on purpose
7329 if test "$GXX" = yes; then :
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7331 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7332 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 save_CXXFLAGS="$CXXFLAGS"
7336 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7341 main ()
7345 return 0;
7347 _ACEOF
7348 if ac_fn_cxx_try_compile "$LINENO"; then :
7349 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7350 else
7351 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 CXXFLAGS="$save_CXXFLAGS"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7357 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7358 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7359 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7363 ac_ext=cpp
7364 ac_cpp='$CXXCPP $CPPFLAGS'
7365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7370 ac_ext=cpp
7371 ac_cpp='$CXXCPP $CPPFLAGS'
7372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7376 # Check whether --enable-werror-always was given.
7377 if test "${enable_werror_always+set}" = set; then :
7378 enableval=$enable_werror_always;
7379 else
7380 enable_werror_always=no
7383 if test $enable_werror_always = yes; then :
7384 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7387 ac_ext=cpp
7388 ac_cpp='$CXXCPP $CPPFLAGS'
7389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7395 # The above macros do nothing if the compiler is not GCC. However, the
7396 # Makefile has more goo to add other flags, so these variables are used
7397 # to enable warnings only for GCC.
7398 warn_cflags=
7399 warn_cxxflags=
7400 if test "x$GCC" = "xyes"; then
7401 warn_cflags='$(GCC_WARN_CFLAGS)'
7402 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7407 # Disable exceptions and RTTI if building with g++
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7414 noexception_flags=
7415 save_CFLAGS="$CFLAGS"
7416 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7417 # Do the check with the no- prefix removed since gcc silently
7418 # accepts any -Wno-* option on purpose
7419 case $real_option in
7420 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7421 *) option=$real_option ;;
7422 esac
7423 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7426 $as_echo_n "checking whether $CC supports $option... " >&6; }
7427 if eval \${$as_acx_Woption+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 CFLAGS="$option"
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7435 main ()
7439 return 0;
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 eval "$as_acx_Woption=yes"
7444 else
7445 eval "$as_acx_Woption=no"
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 eval ac_res=\$$as_acx_Woption
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7452 $as_echo "$ac_res" >&6; }
7453 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7454 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7456 done
7457 CFLAGS="$save_CFLAGS"
7458 ac_ext=cpp
7459 ac_cpp='$CXXCPP $CPPFLAGS'
7460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7466 # Enable expensive internal checks
7467 is_release=
7468 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7469 is_release=yes
7472 # Check whether --enable-checking was given.
7473 if test "${enable_checking+set}" = set; then :
7474 enableval=$enable_checking; ac_checking_flags="${enableval}"
7475 else
7477 # Determine the default checks.
7478 if test x$is_release = x ; then
7479 ac_checking_flags=yes,extra
7480 else
7481 ac_checking_flags=release
7485 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7486 for check in release $ac_checking_flags
7488 case $check in
7489 # these set all the flags to specific states
7490 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7491 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7492 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7493 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7494 ac_tree_checking=1 ; ac_valgrind_checking= ;
7495 ac_types_checking=1 ;;
7496 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7497 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7498 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7499 ac_rtlflag_checking= ; ac_runtime_checking= ;
7500 ac_tree_checking= ; ac_valgrind_checking= ;
7501 ac_types_checking= ;;
7502 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7503 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7504 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7505 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7506 ac_tree_checking=1 ; ac_valgrind_checking= ;
7507 ac_types_checking=1 ;;
7508 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7509 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7510 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7511 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7512 ac_tree_checking= ; ac_valgrind_checking= ;
7513 ac_types_checking= ;;
7514 # these enable particular checks
7515 assert) ac_assert_checking=1 ;;
7516 df) ac_df_checking=1 ;;
7517 extra) ac_extra_checking=1 ;;
7518 fold) ac_fold_checking=1 ;;
7519 gc) ac_gc_checking=1 ;;
7520 gcac) ac_gc_always_collect=1 ;;
7521 gimple) ac_gimple_checking=1 ;;
7522 misc) ac_checking=1 ;;
7523 rtl) ac_rtl_checking=1 ;;
7524 rtlflag) ac_rtlflag_checking=1 ;;
7525 runtime) ac_runtime_checking=1 ;;
7526 tree) ac_tree_checking=1 ;;
7527 types) ac_types_checking=1 ;;
7528 valgrind) ac_valgrind_checking=1 ;;
7529 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7530 esac
7531 done
7532 IFS="$ac_save_IFS"
7534 nocommon_flag=""
7535 if test x$ac_checking != x ; then
7537 $as_echo "#define CHECKING_P 1" >>confdefs.h
7539 nocommon_flag=-fno-common
7540 else
7541 $as_echo "#define CHECKING_P 0" >>confdefs.h
7545 if test x$ac_extra_checking != x ; then
7547 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7549 else
7550 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7553 if test x$ac_df_checking != x ; then
7555 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7558 if test x$ac_assert_checking != x ; then
7560 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7563 if test x$ac_gimple_checking != x ; then
7565 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7569 if test x$ac_runtime_checking != x ; then
7571 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7574 if test x$ac_tree_checking != x ; then
7576 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7578 TREECHECKING=yes
7580 if test x$ac_types_checking != x ; then
7582 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7586 if test x$ac_rtl_checking != x ; then
7588 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7591 if test x$ac_rtlflag_checking != x ; then
7593 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7596 if test x$ac_gc_checking != x ; then
7598 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7601 if test x$ac_gc_always_collect != x ; then
7603 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7606 if test x$ac_fold_checking != x ; then
7608 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7611 valgrind_path_defines=
7612 valgrind_command=
7614 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7615 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7616 have_valgrind_h=yes
7617 else
7618 have_valgrind_h=no
7623 # It is certainly possible that there's valgrind but no valgrind.h.
7624 # GCC relies on making annotations so we must have both.
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7626 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 #include <valgrind/memcheck.h>
7630 #ifndef VALGRIND_DISCARD
7631 #error VALGRIND_DISCARD not defined
7632 #endif
7633 _ACEOF
7634 if ac_fn_cxx_try_cpp "$LINENO"; then :
7635 gcc_cv_header_valgrind_memcheck_h=yes
7636 else
7637 gcc_cv_header_valgrind_memcheck_h=no
7639 rm -f conftest.err conftest.i conftest.$ac_ext
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7641 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7643 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <memcheck.h>
7647 #ifndef VALGRIND_DISCARD
7648 #error VALGRIND_DISCARD not defined
7649 #endif
7650 _ACEOF
7651 if ac_fn_cxx_try_cpp "$LINENO"; then :
7652 gcc_cv_header_memcheck_h=yes
7653 else
7654 gcc_cv_header_memcheck_h=no
7656 rm -f conftest.err conftest.i conftest.$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7658 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7659 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7661 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7664 if test $gcc_cv_header_memcheck_h = yes; then
7666 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7670 if test x$ac_valgrind_checking != x ; then
7672 # Prepare PATH_SEPARATOR.
7673 # The user is always right.
7674 if test "${PATH_SEPARATOR+set}" != set; then
7675 echo "#! /bin/sh" >conf$$.sh
7676 echo "exit 0" >>conf$$.sh
7677 chmod +x conf$$.sh
7678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7679 PATH_SEPARATOR=';'
7680 else
7681 PATH_SEPARATOR=:
7683 rm -f conf$$.sh
7686 # Find out how to test for executable files. Don't use a zero-byte file,
7687 # as systems may use methods other than mode bits to determine executability.
7688 cat >conf$$.file <<_ASEOF
7689 #! /bin/sh
7690 exit 0
7691 _ASEOF
7692 chmod +x conf$$.file
7693 if test -x conf$$.file >/dev/null 2>&1; then
7694 ac_executable_p="test -x"
7695 else
7696 ac_executable_p="test -f"
7698 rm -f conf$$.file
7700 # Extract the first word of "valgrind", so it can be a program name with args.
7701 set dummy valgrind; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_path_valgrind_path+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 case "$valgrind_path" in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7712 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7713 for ac_dir in $PATH; do
7714 IFS="$ac_save_IFS"
7715 test -z "$ac_dir" && ac_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7718 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7719 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7720 break 2
7723 done
7724 done
7725 IFS="$ac_save_IFS"
7727 esac
7729 valgrind_path="$ac_cv_path_valgrind_path"
7730 if test -n "$valgrind_path"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7732 $as_echo "$valgrind_path" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$valgrind_path" = "x" \
7739 || (test $have_valgrind_h = no \
7740 && test $gcc_cv_header_memcheck_h = no \
7741 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7742 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7744 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7745 valgrind_command="$valgrind_path -q"
7747 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7753 # Enable code coverage collection
7754 # Check whether --enable-coverage was given.
7755 if test "${enable_coverage+set}" = set; then :
7756 enableval=$enable_coverage; case "${enableval}" in
7757 yes|noopt)
7758 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7760 opt)
7761 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7764 # a.k.a. --disable-coverage
7765 coverage_flags=""
7768 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7770 esac
7771 else
7772 coverage_flags=""
7777 # Check whether --enable-gather-detailed-mem-stats was given.
7778 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7779 enableval=$enable_gather_detailed_mem_stats;
7780 else
7781 enable_gather_detailed_mem_stats=no
7784 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7786 cat >>confdefs.h <<_ACEOF
7787 #define GATHER_STATISTICS $gather_stats
7788 _ACEOF
7791 # Check whether --enable-valgrind-annotations was given.
7792 if test "${enable_valgrind_annotations+set}" = set; then :
7793 enableval=$enable_valgrind_annotations;
7794 else
7795 enable_valgrind_annotations=no
7798 if test x$enable_valgrind_annotations != xno \
7799 || test x$ac_valgrind_checking != x; then
7800 if (test $have_valgrind_h = no \
7801 && test $gcc_cv_header_memcheck_h = no \
7802 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7803 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7806 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7810 # -------------------------------
7811 # Miscenalleous configure options
7812 # -------------------------------
7814 # Determine whether or not multilibs are enabled.
7815 # Check whether --enable-multilib was given.
7816 if test "${enable_multilib+set}" = set; then :
7817 enableval=$enable_multilib;
7818 else
7819 enable_multilib=yes
7824 # Determine whether or not multiarch is enabled.
7825 # Check whether --enable-multiarch was given.
7826 if test "${enable_multiarch+set}" = set; then :
7827 enableval=$enable_multiarch; case "${enableval}" in
7828 yes|no|auto) enable_multiarch=$enableval;;
7829 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7830 esac
7831 else
7832 enable_multiarch=auto
7835 if test x${enable_multiarch} = xauto; then
7836 if test x${with_native_system_header_dir} != x; then
7837 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7838 enable_multiarch=no
7840 if test x$host != x$target && test "x$with_sysroot" = x; then
7841 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7842 enable_multiarch=no
7845 if test x${enable_multiarch} = xyes; then
7847 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7851 $as_echo_n "checking for multiarch configuration... " >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7854 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7856 # needed for setting the multiarch name for soft-float/hard-float ABIs
7860 # default stack clash protection guard size as power of twos in bytes.
7861 # Please keep these in sync with params.def.
7862 stk_clash_min=12
7863 stk_clash_max=30
7865 # Keep the default value when the option is not used to 0, this allows us to
7866 # distinguish between the cases where the user specifially set a value via
7867 # configure and when the normal default value is used.
7869 # Check whether --with-stack-clash-protection-guard-size was given.
7870 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7871 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7872 else
7873 DEFAULT_STK_CLASH_GUARD_SIZE=0
7876 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7877 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7878 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7879 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
7883 cat >>confdefs.h <<_ACEOF
7884 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7885 _ACEOF
7888 # Enable __cxa_atexit for C++.
7889 # Check whether --enable-__cxa_atexit was given.
7890 if test "${enable___cxa_atexit+set}" = set; then :
7891 enableval=$enable___cxa_atexit;
7895 # Enable C extension for decimal float if target supports it.
7897 # Check whether --enable-decimal-float was given.
7898 if test "${enable_decimal_float+set}" = set; then :
7899 enableval=$enable_decimal_float;
7900 case $enable_decimal_float in
7901 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7902 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7903 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7904 esac
7906 else
7908 case $target in
7909 aarch64* | \
7910 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7911 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7912 i?86*-*-mingw* | x86_64*-*-mingw* | \
7913 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7914 enable_decimal_float=yes
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7918 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7919 enable_decimal_float=no
7921 esac
7926 # x86's use BID format instead of DPD
7927 case x$enable_decimal_float in
7928 xyes)
7929 case $target in
7930 aarch64* | i?86*-*-* | x86_64*-*-*)
7931 enable_decimal_float=bid
7934 enable_decimal_float=dpd
7936 esac
7937 default_decimal_float=$enable_decimal_float
7939 xno)
7940 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7941 # dependency on libdecnumber.
7942 default_decimal_float=dpd
7944 esac
7949 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7951 cat >>confdefs.h <<_ACEOF
7952 #define ENABLE_DECIMAL_FLOAT $dfp
7953 _ACEOF
7956 # Use default_decimal_float for dependency.
7957 enable_decimal_float=$default_decimal_float
7959 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7961 cat >>confdefs.h <<_ACEOF
7962 #define ENABLE_DECIMAL_BID_FORMAT $bid
7963 _ACEOF
7966 # Enable C extension for fixed-point arithmetic.
7967 # Check whether --enable-fixed-point was given.
7968 if test "${enable_fixed_point+set}" = set; then :
7969 enableval=$enable_fixed_point;
7970 else
7972 case $target in
7973 arm*)
7974 enable_fixed_point=yes
7977 mips*-*-*)
7978 enable_fixed_point=yes
7980 loongarch*-*-*)
7981 enable_fixed_point=yes
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7985 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7986 enable_fixed_point=no
7988 esac
7994 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7996 cat >>confdefs.h <<_ACEOF
7997 #define ENABLE_FIXED_POINT $fixedpoint
7998 _ACEOF
8001 # Enable threads
8002 # Pass with no value to take the default
8003 # Pass with a value to specify a thread package
8004 # Check whether --enable-threads was given.
8005 if test "${enable_threads+set}" = set; then :
8006 enableval=$enable_threads;
8007 else
8008 enable_threads=''
8012 # Check whether --enable-tls was given.
8013 if test "${enable_tls+set}" = set; then :
8014 enableval=$enable_tls;
8015 case $enable_tls in
8016 yes | no) ;;
8017 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8018 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8019 esac
8021 else
8022 enable_tls=''
8026 # Check whether --enable-vtable-verify was given.
8027 if test "${enable_vtable_verify+set}" = set; then :
8028 enableval=$enable_vtable_verify;
8029 else
8030 enable_vtable_verify=no
8033 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8035 cat >>confdefs.h <<_ACEOF
8036 #define ENABLE_VTABLE_VERIFY $vtable_verify
8037 _ACEOF
8040 # Check whether --enable-analyzer was given.
8041 if test "${enable_analyzer+set}" = set; then :
8042 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8043 analyzer=0
8044 else
8045 analyzer=1
8047 else
8048 analyzer=1
8052 cat >>confdefs.h <<_ACEOF
8053 #define ENABLE_ANALYZER $analyzer
8054 _ACEOF
8057 # Check whether --enable-objc-gc was given.
8058 if test "${enable_objc_gc+set}" = set; then :
8059 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8060 objc_boehm_gc=''
8061 else
8062 objc_boehm_gc=1
8064 else
8065 objc_boehm_gc=''
8070 # Check whether --with-dwarf2 was given.
8071 if test "${with_dwarf2+set}" = set; then :
8072 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8073 else
8074 dwarf2=no
8078 # Check whether --enable-shared was given.
8079 if test "${enable_shared+set}" = set; then :
8080 enableval=$enable_shared;
8081 case $enable_shared in
8082 yes | no) ;;
8084 enable_shared=no
8085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8086 for pkg in $enableval; do
8087 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8088 enable_shared=yes
8090 done
8091 IFS="$ac_save_ifs"
8093 esac
8095 else
8096 enable_shared=yes
8101 # Check whether --enable-gcov was given.
8102 if test "${enable_gcov+set}" = set; then :
8103 enableval=$enable_gcov;
8104 else
8105 case $target in
8106 bpf-*-*)
8107 enable_gcov=no
8110 enable_gcov=yes
8112 esac
8119 # Check whether --with-specs was given.
8120 if test "${with_specs+set}" = set; then :
8121 withval=$with_specs; CONFIGURE_SPECS=$withval
8122 else
8123 CONFIGURE_SPECS=
8131 # Check whether --with-pkgversion was given.
8132 if test "${with_pkgversion+set}" = set; then :
8133 withval=$with_pkgversion; case "$withval" in
8134 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8135 no) PKGVERSION= ;;
8136 *) PKGVERSION="($withval) " ;;
8137 esac
8138 else
8139 PKGVERSION="(GCC) "
8147 # Check whether --with-bugurl was given.
8148 if test "${with_bugurl+set}" = set; then :
8149 withval=$with_bugurl; case "$withval" in
8150 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8151 no) BUGURL=
8153 *) BUGURL="$withval"
8155 esac
8156 else
8157 BUGURL="https://gcc.gnu.org/bugs/"
8161 case ${BUGURL} in
8163 REPORT_BUGS_TO=
8164 REPORT_BUGS_TEXI=
8167 REPORT_BUGS_TO="<$BUGURL>"
8168 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8170 esac;
8175 # Allow overriding the default URL for documentation
8177 # Check whether --with-documentation-root-url was given.
8178 if test "${with_documentation_root_url+set}" = set; then :
8179 withval=$with_documentation_root_url; case "$withval" in
8180 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8181 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8182 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8183 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8184 esac
8185 else
8186 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8191 cat >>confdefs.h <<_ACEOF
8192 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8193 _ACEOF
8196 # Allow overriding the default URL for GCC changes
8198 # Check whether --with-changes-root-url was given.
8199 if test "${with_changes_root_url+set}" = set; then :
8200 withval=$with_changes_root_url; case "$withval" in
8201 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8202 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8203 */) CHANGES_ROOT_URL="$withval" ;;
8204 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8205 esac
8206 else
8207 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8212 cat >>confdefs.h <<_ACEOF
8213 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8214 _ACEOF
8217 # Sanity check enable_languages in case someone does not run the toplevel
8218 # configure # script.
8219 # Check whether --enable-languages was given.
8220 if test "${enable_languages+set}" = set; then :
8221 enableval=$enable_languages; case ,${enable_languages}, in
8222 ,,|,yes,)
8223 # go safe -- we cannot be much sure without the toplevel
8224 # configure's
8225 # analysis of which target libs are present and usable
8226 enable_languages=c
8228 *,all,*)
8229 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8231 *,c,*)
8234 enable_languages=c,${enable_languages}
8236 esac
8237 else
8238 enable_languages=c
8242 # If top-level libada has been disabled, then wire in install-gnatlib
8243 # invocation with `make install', so that one can build and install
8244 # the library manually with `make -C gcc all gnatlib gnattools install'.
8245 if test x"$enable_libada" = xno; then
8246 gnat_install_lib=gnat-install-lib
8247 else
8248 gnat_install_lib=
8252 if test x"$enable_as_accelerator_for" != x; then
8254 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8256 enable_as_accelerator=yes
8257 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8258 program_transform_name=`echo $program_transform_name | sed $sedscript`
8259 accel_dir_suffix=/accel/${target_noncanonical}
8260 real_target_noncanonical=${enable_as_accelerator_for}
8266 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8267 tgt=`echo $tgt | sed 's/=.*//'`
8269 enable_offloading=1
8270 case "$tgt" in
8271 amdgcn*)
8272 omp_device_property=omp-device-properties-gcn
8273 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8275 nvptx*)
8276 omp_device_property=omp-device-properties-nvptx
8277 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8280 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8282 esac
8283 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8284 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8286 if test x"$offload_targets" = x; then
8287 offload_targets=$tgt
8288 else
8289 offload_targets="$offload_targets,$tgt"
8291 done
8296 cat >>confdefs.h <<_ACEOF
8297 #define OFFLOAD_TARGETS "$offload_targets"
8298 _ACEOF
8300 if test x"$enable_offloading" != x; then
8302 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8304 else
8306 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8310 if test "x$enable_offload_defaulted" = xyes; then
8312 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8317 # Check whether --with-multilib-list was given.
8318 if test "${with_multilib_list+set}" = set; then :
8319 withval=$with_multilib_list; :
8320 else
8321 with_multilib_list=default
8326 # Check whether --with-multilib-generator was given.
8327 if test "${with_multilib_generator+set}" = set; then :
8328 withval=$with_multilib_generator; :
8329 else
8330 with_multilib_generator=default
8334 # -------------------------
8335 # Checks for other programs
8336 # -------------------------
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8340 set x ${MAKE-make}
8341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8342 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 cat >conftest.make <<\_ACEOF
8346 SHELL = /bin/sh
8347 all:
8348 @echo '@@@%%%=$(MAKE)=@@@%%%'
8349 _ACEOF
8350 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8352 *@@@%%%=?*=@@@%%%*)
8353 eval ac_cv_prog_make_${ac_make}_set=yes;;
8355 eval ac_cv_prog_make_${ac_make}_set=no;;
8356 esac
8357 rm -f conftest.make
8359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8362 SET_MAKE=
8363 else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 SET_MAKE="MAKE=${MAKE-make}"
8370 # Find some useful tools
8371 for ac_prog in gawk mawk nawk awk
8373 # Extract the first word of "$ac_prog", so it can be a program name with args.
8374 set dummy $ac_prog; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_AWK+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$AWK"; then
8381 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_AWK="$ac_prog"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8394 done
8395 done
8396 IFS=$as_save_IFS
8400 AWK=$ac_cv_prog_AWK
8401 if test -n "$AWK"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8403 $as_echo "$AWK" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8410 test -n "$AWK" && break
8411 done
8413 # We need awk to create options.cc and options.h.
8414 # Bail out if it's missing.
8415 case ${AWK} in
8416 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8417 esac
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8420 $as_echo_n "checking whether ln -s works... " >&6; }
8421 if ${gcc_cv_prog_LN_S+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 rm -f conftestdata_t
8425 echo >conftestdata_f
8426 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8427 then
8428 gcc_cv_prog_LN_S="ln -s"
8429 else
8430 if ln conftestdata_f conftestdata_t 2>/dev/null
8431 then
8432 gcc_cv_prog_LN_S=ln
8433 else
8434 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8435 then
8436 gcc_cv_prog_LN_S="cp -p"
8437 else
8438 gcc_cv_prog_LN_S=cp
8442 rm -f conftestdata_f conftestdata_t
8445 LN_S="$gcc_cv_prog_LN_S"
8446 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8448 $as_echo "yes" >&6; }
8449 else
8450 if test "$gcc_cv_prog_LN_S" = "ln"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8452 $as_echo "no, using ln" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8455 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8460 $as_echo_n "checking whether ln works... " >&6; }
8461 if ${acx_cv_prog_LN+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 rm -f conftestdata_t
8465 echo >conftestdata_f
8466 if ln conftestdata_f conftestdata_t 2>/dev/null
8467 then
8468 acx_cv_prog_LN=ln
8469 else
8470 acx_cv_prog_LN=no
8472 rm -f conftestdata_f conftestdata_t
8475 if test $acx_cv_prog_LN = no; then
8476 LN="$LN_S"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8478 $as_echo "no, using $LN" >&6; }
8479 else
8480 LN="$acx_cv_prog_LN"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8482 $as_echo "yes" >&6; }
8485 if test -n "$ac_tool_prefix"; then
8486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if ${ac_cv_prog_RANLIB+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 if test -n "$RANLIB"; then
8494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8507 done
8508 done
8509 IFS=$as_save_IFS
8513 RANLIB=$ac_cv_prog_RANLIB
8514 if test -n "$RANLIB"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8516 $as_echo "$RANLIB" >&6; }
8517 else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8524 if test -z "$ac_cv_prog_RANLIB"; then
8525 ac_ct_RANLIB=$RANLIB
8526 # Extract the first word of "ranlib", so it can be a program name with args.
8527 set dummy ranlib; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 if test -n "$ac_ct_RANLIB"; then
8534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_ac_ct_RANLIB="ranlib"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8547 done
8548 done
8549 IFS=$as_save_IFS
8553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8554 if test -n "$ac_ct_RANLIB"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8556 $as_echo "$ac_ct_RANLIB" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8562 if test "x$ac_ct_RANLIB" = x; then
8563 RANLIB=":"
8564 else
8565 case $cross_compiling:$ac_tool_warned in
8566 yes:)
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8569 ac_tool_warned=yes ;;
8570 esac
8571 RANLIB=$ac_ct_RANLIB
8573 else
8574 RANLIB="$ac_cv_prog_RANLIB"
8577 ranlib_flags=""
8580 # Find a good install program. We prefer a C program (faster),
8581 # so one script is as good as another. But avoid the broken or
8582 # incompatible versions:
8583 # SysV /etc/install, /usr/sbin/install
8584 # SunOS /usr/etc/install
8585 # IRIX /sbin/install
8586 # AIX /bin/install
8587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8589 # ./install, which can be erroneously created by make from ./install.sh.
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8591 $as_echo_n "checking for a BSD compatible install... " >&6; }
8592 if test -z "$INSTALL"; then
8593 if ${ac_cv_path_install+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8597 for ac_dir in $PATH; do
8598 # Account for people who put trailing slashes in PATH elements.
8599 case "$ac_dir/" in
8600 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8602 # OSF1 and SCO ODT 3.0 have their own names for install.
8603 for ac_prog in ginstall scoinst install; do
8604 if test -f $ac_dir/$ac_prog; then
8605 if test $ac_prog = install &&
8606 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8607 # AIX install. It has an incompatible calling convention.
8608 # OSF/1 installbsd also uses dspmsg, but is usable.
8610 else
8611 ac_cv_path_install="$ac_dir/$ac_prog -c"
8612 break 2
8615 done
8617 esac
8618 done
8619 IFS="$ac_save_IFS"
8622 if test "${ac_cv_path_install+set}" = set; then
8623 INSTALL="$ac_cv_path_install"
8624 else
8625 # As a last resort, use the slow shell script. We don't cache a
8626 # path for INSTALL within a source directory, because that will
8627 # break other packages using the cache if that directory is
8628 # removed, or if the path is relative.
8629 INSTALL="$ac_install_sh"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8633 $as_echo "$INSTALL" >&6; }
8635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8636 # It thinks the first close brace ends the variable substitution.
8637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8642 # See if cmp has --ignore-initial.
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8644 $as_echo_n "checking for cmp's capabilities... " >&6; }
8645 if ${gcc_cv_prog_cmp_skip+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 echo abfoo >t1
8649 echo cdfoo >t2
8650 gcc_cv_prog_cmp_skip=slowcompare
8651 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8652 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8654 else
8655 gcc_cv_prog_cmp_skip=gnucompare
8658 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8659 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8660 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8662 else
8663 gcc_cv_prog_cmp_skip=fastcompare
8667 rm t1 t2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8671 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8672 make_compare_target=$gcc_cv_prog_cmp_skip
8676 # See if we have the mktemp command.
8677 # Extract the first word of "mktemp", so it can be a program name with args.
8678 set dummy mktemp; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 if test -n "$have_mktemp_command"; then
8685 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_have_mktemp_command="yes"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8698 done
8699 done
8700 IFS=$as_save_IFS
8702 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8705 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8706 if test -n "$have_mktemp_command"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8708 $as_echo "$have_mktemp_command" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8716 # See if makeinfo has been installed and is modern enough
8717 # that we can use it.
8719 # Extract the first word of "makeinfo", so it can be a program name with args.
8720 set dummy makeinfo; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_MAKEINFO+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 if test -n "$MAKEINFO"; then
8727 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_MAKEINFO="makeinfo"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8740 done
8741 done
8742 IFS=$as_save_IFS
8746 MAKEINFO=$ac_cv_prog_MAKEINFO
8747 if test -n "$MAKEINFO"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8749 $as_echo "$MAKEINFO" >&6; }
8750 else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8756 if test -n "$MAKEINFO"; then
8757 # Found it, now check the version.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8759 $as_echo_n "checking for modern makeinfo... " >&6; }
8760 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8764 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8766 case $ac_prog_version in
8767 '') gcc_cv_prog_makeinfo_modern=no;;
8768 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8769 *) gcc_cv_prog_makeinfo_modern=no;;
8770 esac
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8774 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8775 else
8776 gcc_cv_prog_makeinfo_modern=no
8778 if test $gcc_cv_prog_makeinfo_modern = no; then
8779 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8782 if test $gcc_cv_prog_makeinfo_modern = no; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8784 *** Makeinfo is missing or too old.
8785 *** Info documentation will not be built." >&5
8786 $as_echo "$as_me: WARNING:
8787 *** Makeinfo is missing or too old.
8788 *** Info documentation will not be built." >&2;}
8789 BUILD_INFO=
8790 else
8791 BUILD_INFO=info
8795 # Is pod2man recent enough to regenerate manpages?
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8797 $as_echo_n "checking for recent Pod::Man... " >&6; }
8798 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8800 $as_echo "yes" >&6; }
8801 GENERATED_MANPAGES=generated-manpages
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 GENERATED_MANPAGES=
8809 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8811 # How about lex?
8812 for ac_prog in flex
8814 # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy $ac_prog; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_FLEX+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$FLEX"; then
8822 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_FLEX="$ac_prog"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8841 FLEX=$ac_cv_prog_FLEX
8842 if test -n "$FLEX"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8844 $as_echo "$FLEX" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8851 test -n "$FLEX" && break
8852 done
8853 test -n "$FLEX" || FLEX="$MISSING flex"
8856 # Bison?
8857 for ac_prog in bison
8859 # Extract the first word of "$ac_prog", so it can be a program name with args.
8860 set dummy $ac_prog; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_prog_BISON+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -n "$BISON"; then
8867 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_BISON="$ac_prog"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8880 done
8881 done
8882 IFS=$as_save_IFS
8886 BISON=$ac_cv_prog_BISON
8887 if test -n "$BISON"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8889 $as_echo "$BISON" >&6; }
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8896 test -n "$BISON" && break
8897 done
8898 test -n "$BISON" || BISON="$MISSING bison"
8901 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8902 # check for build == host before using them.
8904 # NM
8905 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8906 && test -d ../binutils ; then
8907 NM='${objdir}/../binutils/nm-new'
8908 else
8909 # Extract the first word of "nm", so it can be a program name with args.
8910 set dummy nm; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if ${ac_cv_prog_NM+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 if test -n "$NM"; then
8917 ac_cv_prog_NM="$NM" # Let the user override the test.
8918 else
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_prog_NM="nm"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8930 done
8931 done
8932 IFS=$as_save_IFS
8934 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8937 NM=$ac_cv_prog_NM
8938 if test -n "$NM"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8940 $as_echo "$NM" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8949 # AR
8950 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8951 && test -d ../binutils ; then
8952 AR='${objdir}/../binutils/ar'
8953 else
8954 # Extract the first word of "ar", so it can be a program name with args.
8955 set dummy ar; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_prog_AR+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 if test -n "$AR"; then
8962 ac_cv_prog_AR="$AR" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_AR="ar"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8975 done
8976 done
8977 IFS=$as_save_IFS
8979 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8982 AR=$ac_cv_prog_AR
8983 if test -n "$AR"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8985 $as_echo "$AR" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8994 # The jit documentation looks better if built with sphinx, but can be
8995 # built with texinfo if sphinx is not available.
8996 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8997 # Extract the first word of "sphinx-build", so it can be a program name with args.
8998 set dummy sphinx-build; ac_word=$2
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 $as_echo_n "checking for $ac_word... " >&6; }
9001 if ${ac_cv_prog_doc_build_sys+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 if test -n "$doc_build_sys"; then
9005 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_doc_build_sys="sphinx"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9018 done
9019 done
9020 IFS=$as_save_IFS
9022 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9025 doc_build_sys=$ac_cv_prog_doc_build_sys
9026 if test -n "$doc_build_sys"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9028 $as_echo "$doc_build_sys" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9036 # --------------------
9037 # Checks for C headers
9038 # --------------------
9040 # Need to reject headers which give warnings, so that the -Werror bootstrap
9041 # works later. *sigh* This needs to come before all header checks.
9043 ac_c_preproc_warn_flag=yes
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9046 $as_echo_n "checking for ANSI C header files... " >&6; }
9047 if ${ac_cv_header_stdc+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 #include <stdlib.h>
9053 #include <stdarg.h>
9054 #include <string.h>
9055 #include <float.h>
9058 main ()
9062 return 0;
9064 _ACEOF
9065 if ac_fn_cxx_try_compile "$LINENO"; then :
9066 ac_cv_header_stdc=yes
9067 else
9068 ac_cv_header_stdc=no
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 if test $ac_cv_header_stdc = yes; then
9073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <string.h>
9078 _ACEOF
9079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9080 $EGREP "memchr" >/dev/null 2>&1; then :
9082 else
9083 ac_cv_header_stdc=no
9085 rm -f conftest*
9089 if test $ac_cv_header_stdc = yes; then
9090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <stdlib.h>
9095 _ACEOF
9096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9097 $EGREP "free" >/dev/null 2>&1; then :
9099 else
9100 ac_cv_header_stdc=no
9102 rm -f conftest*
9106 if test $ac_cv_header_stdc = yes; then
9107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9108 if test "$cross_compiling" = yes; then :
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #include <ctype.h>
9114 #include <stdlib.h>
9115 #if ((' ' & 0x0FF) == 0x020)
9116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9118 #else
9119 # define ISLOWER(c) \
9120 (('a' <= (c) && (c) <= 'i') \
9121 || ('j' <= (c) && (c) <= 'r') \
9122 || ('s' <= (c) && (c) <= 'z'))
9123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9124 #endif
9126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9128 main ()
9130 int i;
9131 for (i = 0; i < 256; i++)
9132 if (XOR (islower (i), ISLOWER (i))
9133 || toupper (i) != TOUPPER (i))
9134 return 2;
9135 return 0;
9137 _ACEOF
9138 if ac_fn_cxx_try_run "$LINENO"; then :
9140 else
9141 ac_cv_header_stdc=no
9143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9144 conftest.$ac_objext conftest.beam conftest.$ac_ext
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9150 $as_echo "$ac_cv_header_stdc" >&6; }
9151 if test $ac_cv_header_stdc = yes; then
9153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9159 if ${ac_cv_header_time+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <sys/types.h>
9165 #include <sys/time.h>
9166 #include <time.h>
9169 main ()
9171 if ((struct tm *) 0)
9172 return 0;
9174 return 0;
9176 _ACEOF
9177 if ac_fn_cxx_try_compile "$LINENO"; then :
9178 ac_cv_header_time=yes
9179 else
9180 ac_cv_header_time=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9185 $as_echo "$ac_cv_header_time" >&6; }
9186 if test $ac_cv_header_time = yes; then
9188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9193 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9194 if ${gcc_cv_header_string+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include <string.h>
9200 #include <strings.h>
9202 main ()
9206 return 0;
9208 _ACEOF
9209 if ac_fn_cxx_try_compile "$LINENO"; then :
9210 gcc_cv_header_string=yes
9211 else
9212 gcc_cv_header_string=no
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9217 $as_echo "$gcc_cv_header_string" >&6; }
9218 if test $gcc_cv_header_string = yes; then
9220 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9225 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9226 if ${ac_cv_header_sys_wait_h+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <sys/types.h>
9232 #include <sys/wait.h>
9233 #ifndef WEXITSTATUS
9234 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9235 #endif
9236 #ifndef WIFEXITED
9237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9238 #endif
9241 main ()
9243 int s;
9244 wait (&s);
9245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9247 return 0;
9249 _ACEOF
9250 if ac_fn_cxx_try_compile "$LINENO"; then :
9251 ac_cv_header_sys_wait_h=yes
9252 else
9253 ac_cv_header_sys_wait_h=no
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9258 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9259 if test $ac_cv_header_sys_wait_h = yes; then
9261 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9266 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9267 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 #include <sys/types.h>
9273 #include <termios.h>
9274 #ifdef TIOCGWINSZ
9276 #endif
9278 _ACEOF
9279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9280 $EGREP "yes" >/dev/null 2>&1; then :
9281 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9282 else
9283 ac_cv_sys_tiocgwinsz_in_termios_h=no
9285 rm -f conftest*
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9289 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9291 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9293 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9294 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/ioctl.h>
9301 #ifdef TIOCGWINSZ
9303 #endif
9305 _ACEOF
9306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9307 $EGREP "yes" >/dev/null 2>&1; then :
9308 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9309 else
9310 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9312 rm -f conftest*
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9316 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9318 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9320 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9325 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9326 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9327 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9328 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9329 do :
9330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9331 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9333 cat >>confdefs.h <<_ACEOF
9334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 _ACEOF
9338 done
9341 # Check for thread headers.
9342 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9343 if test "x$ac_cv_header_thread_h" = xyes; then :
9344 have_thread_h=yes
9345 else
9346 have_thread_h=
9349 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9350 if test "x$ac_cv_header_pthread_h" = xyes; then :
9351 have_pthread_h=yes
9352 else
9353 have_pthread_h=
9357 # These tests can't be done till we know if we have limits.h.
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9359 $as_echo_n "checking for CHAR_BIT... " >&6; }
9360 if ${gcc_cv_decl_char_bit+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #ifdef HAVE_LIMITS_H
9366 #include <limits.h>
9367 #endif
9368 #ifdef CHAR_BIT
9369 found
9370 #endif
9371 _ACEOF
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373 $EGREP "found" >/dev/null 2>&1; then :
9374 gcc_cv_decl_char_bit=yes
9375 else
9376 gcc_cv_decl_char_bit=no
9378 rm -f conftest*
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9383 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9384 if test $gcc_cv_decl_char_bit = no; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9386 $as_echo_n "checking number of bits in a byte... " >&6; }
9387 if ${gcc_cv_c_nbby+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9391 gcc_cv_c_nbby=
9392 while test $i -lt 65; do
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9397 main ()
9399 switch(0) {
9400 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9401 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9404 return 0;
9406 _ACEOF
9407 if ac_fn_cxx_try_compile "$LINENO"; then :
9408 gcc_cv_c_nbby=$i; break
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 i=`expr $i + 1`
9412 done
9413 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9417 $as_echo "$gcc_cv_c_nbby" >&6; }
9418 if test $gcc_cv_c_nbby = failed; then
9419 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9420 else
9422 cat >>confdefs.h <<_ACEOF
9423 #define CHAR_BIT $gcc_cv_c_nbby
9424 _ACEOF
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9429 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9430 if ${ac_cv_c_bigendian+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_cv_c_bigendian=unknown
9434 # See if we're dealing with a universal compiler.
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 #ifndef __APPLE_CC__
9438 not a universal capable compiler
9439 #endif
9440 typedef int dummy;
9442 _ACEOF
9443 if ac_fn_cxx_try_compile "$LINENO"; then :
9445 # Check for potential -arch flags. It is not universal unless
9446 # there are at least two -arch flags with different values.
9447 ac_arch=
9448 ac_prev=
9449 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9450 if test -n "$ac_prev"; then
9451 case $ac_word in
9452 i?86 | x86_64 | ppc | ppc64)
9453 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9454 ac_arch=$ac_word
9455 else
9456 ac_cv_c_bigendian=universal
9457 break
9460 esac
9461 ac_prev=
9462 elif test "x$ac_word" = "x-arch"; then
9463 ac_prev=arch
9465 done
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 if test $ac_cv_c_bigendian = unknown; then
9469 # See if sys/param.h defines the BYTE_ORDER macro.
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <sys/types.h>
9473 #include <sys/param.h>
9476 main ()
9478 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9479 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9480 && LITTLE_ENDIAN)
9481 bogus endian macros
9482 #endif
9485 return 0;
9487 _ACEOF
9488 if ac_fn_cxx_try_compile "$LINENO"; then :
9489 # It does; now see whether it defined to BIG_ENDIAN or not.
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #include <sys/types.h>
9493 #include <sys/param.h>
9496 main ()
9498 #if BYTE_ORDER != BIG_ENDIAN
9499 not big endian
9500 #endif
9503 return 0;
9505 _ACEOF
9506 if ac_fn_cxx_try_compile "$LINENO"; then :
9507 ac_cv_c_bigendian=yes
9508 else
9509 ac_cv_c_bigendian=no
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515 if test $ac_cv_c_bigendian = unknown; then
9516 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 #include <limits.h>
9522 main ()
9524 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9525 bogus endian macros
9526 #endif
9529 return 0;
9531 _ACEOF
9532 if ac_fn_cxx_try_compile "$LINENO"; then :
9533 # It does; now see whether it defined to _BIG_ENDIAN or not.
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #include <limits.h>
9539 main ()
9541 #ifndef _BIG_ENDIAN
9542 not big endian
9543 #endif
9546 return 0;
9548 _ACEOF
9549 if ac_fn_cxx_try_compile "$LINENO"; then :
9550 ac_cv_c_bigendian=yes
9551 else
9552 ac_cv_c_bigendian=no
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 if test $ac_cv_c_bigendian = unknown; then
9559 # Compile a test program.
9560 if test "$cross_compiling" = yes; then :
9561 # Try to guess by grepping values from an object file.
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 short int ascii_mm[] =
9565 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9566 short int ascii_ii[] =
9567 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9568 int use_ascii (int i) {
9569 return ascii_mm[i] + ascii_ii[i];
9571 short int ebcdic_ii[] =
9572 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9573 short int ebcdic_mm[] =
9574 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9575 int use_ebcdic (int i) {
9576 return ebcdic_mm[i] + ebcdic_ii[i];
9578 extern int foo;
9581 main ()
9583 return use_ascii (foo) == use_ebcdic (foo);
9585 return 0;
9587 _ACEOF
9588 if ac_fn_cxx_try_compile "$LINENO"; then :
9589 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9590 ac_cv_c_bigendian=yes
9592 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9593 if test "$ac_cv_c_bigendian" = unknown; then
9594 ac_cv_c_bigendian=no
9595 else
9596 # finding both strings is unlikely to happen, but who knows?
9597 ac_cv_c_bigendian=unknown
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 else
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 $ac_includes_default
9607 main ()
9610 /* Are we little or big endian? From Harbison&Steele. */
9611 union
9613 long int l;
9614 char c[sizeof (long int)];
9615 } u;
9616 u.l = 1;
9617 return u.c[sizeof (long int) - 1] == 1;
9620 return 0;
9622 _ACEOF
9623 if ac_fn_cxx_try_run "$LINENO"; then :
9624 ac_cv_c_bigendian=no
9625 else
9626 ac_cv_c_bigendian=yes
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629 conftest.$ac_objext conftest.beam conftest.$ac_ext
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9635 $as_echo "$ac_cv_c_bigendian" >&6; }
9636 case $ac_cv_c_bigendian in #(
9637 yes)
9638 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9639 ;; #(
9641 ;; #(
9642 universal)
9644 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9646 ;; #(
9648 as_fn_error $? "unknown endianness
9649 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9650 esac
9653 # ----------------------
9654 # Checks for C++ headers
9655 # ----------------------
9657 ac_ext=cpp
9658 ac_cpp='$CXXCPP $CPPFLAGS'
9659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9663 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9664 if test -z "$CXXCPP"; then
9665 if ${ac_cv_prog_CXXCPP+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 # Double quotes because CXXCPP needs to be expanded
9669 for CXXCPP in "$CXX -E" "/lib/cpp"
9671 ac_preproc_ok=false
9672 for ac_cxx_preproc_warn_flag in '' yes
9674 # Use a header file that comes with gcc, so configuring glibc
9675 # with a fresh cross-compiler works.
9676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677 # <limits.h> exists even on freestanding compilers.
9678 # On the NeXT, cc -E runs the code through the compiler's parser,
9679 # not just through cpp. "Syntax error" is here to catch this case.
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682 #ifdef __STDC__
9683 # include <limits.h>
9684 #else
9685 # include <assert.h>
9686 #endif
9687 Syntax error
9688 _ACEOF
9689 if ac_fn_cxx_try_cpp "$LINENO"; then :
9691 else
9692 # Broken: fails on valid input.
9693 continue
9695 rm -f conftest.err conftest.i conftest.$ac_ext
9697 # OK, works on sane cases. Now check whether nonexistent headers
9698 # can be detected and how.
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 #include <ac_nonexistent.h>
9702 _ACEOF
9703 if ac_fn_cxx_try_cpp "$LINENO"; then :
9704 # Broken: success on invalid input.
9705 continue
9706 else
9707 # Passes both tests.
9708 ac_preproc_ok=:
9709 break
9711 rm -f conftest.err conftest.i conftest.$ac_ext
9713 done
9714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9715 rm -f conftest.i conftest.err conftest.$ac_ext
9716 if $ac_preproc_ok; then :
9717 break
9720 done
9721 ac_cv_prog_CXXCPP=$CXXCPP
9724 CXXCPP=$ac_cv_prog_CXXCPP
9725 else
9726 ac_cv_prog_CXXCPP=$CXXCPP
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9729 $as_echo "$CXXCPP" >&6; }
9730 ac_preproc_ok=false
9731 for ac_cxx_preproc_warn_flag in '' yes
9733 # Use a header file that comes with gcc, so configuring glibc
9734 # with a fresh cross-compiler works.
9735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736 # <limits.h> exists even on freestanding compilers.
9737 # On the NeXT, cc -E runs the code through the compiler's parser,
9738 # not just through cpp. "Syntax error" is here to catch this case.
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746 Syntax error
9747 _ACEOF
9748 if ac_fn_cxx_try_cpp "$LINENO"; then :
9750 else
9751 # Broken: fails on valid input.
9752 continue
9754 rm -f conftest.err conftest.i conftest.$ac_ext
9756 # OK, works on sane cases. Now check whether nonexistent headers
9757 # can be detected and how.
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #include <ac_nonexistent.h>
9761 _ACEOF
9762 if ac_fn_cxx_try_cpp "$LINENO"; then :
9763 # Broken: success on invalid input.
9764 continue
9765 else
9766 # Passes both tests.
9767 ac_preproc_ok=:
9768 break
9770 rm -f conftest.err conftest.i conftest.$ac_ext
9772 done
9773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9774 rm -f conftest.i conftest.err conftest.$ac_ext
9775 if $ac_preproc_ok; then :
9777 else
9778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9781 See \`config.log' for more details" >&5
9782 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9783 See \`config.log' for more details" >&2;}; }
9786 ac_ext=cpp
9787 ac_cpp='$CXXCPP $CPPFLAGS'
9788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9793 for ac_header in unordered_map
9794 do :
9795 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9796 if test "x$ac_cv_header_unordered_map" = xyes; then :
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_UNORDERED_MAP 1
9799 _ACEOF
9802 done
9804 for ac_header in tr1/unordered_map
9805 do :
9806 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9807 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9808 cat >>confdefs.h <<_ACEOF
9809 #define HAVE_TR1_UNORDERED_MAP 1
9810 _ACEOF
9813 done
9815 for ac_header in ext/hash_map
9816 do :
9817 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9818 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9819 cat >>confdefs.h <<_ACEOF
9820 #define HAVE_EXT_HASH_MAP 1
9821 _ACEOF
9824 done
9827 # --------
9828 # Dependency checking.
9829 # --------
9831 rm -rf .tst 2>/dev/null
9832 mkdir .tst 2>/dev/null
9833 if test -d .tst; then
9834 am__leading_dot=.
9835 else
9836 am__leading_dot=_
9838 rmdir .tst 2>/dev/null
9840 DEPDIR="${am__leading_dot}deps"
9842 ac_config_commands="$ac_config_commands depdir"
9845 ac_config_commands="$ac_config_commands gccdepdir"
9848 depcc="$CXX" am_compiler_list=
9850 am_depcomp=$ac_aux_dir/depcomp
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9852 $as_echo_n "checking dependency style of $depcc... " >&6; }
9853 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 if test -f "$am_depcomp"; then
9857 # We make a subdir and do the tests there. Otherwise we can end up
9858 # making bogus files that we don't know about and never remove. For
9859 # instance it was reported that on HP-UX the gcc test will end up
9860 # making a dummy file named `D' -- because `-MD' means `put the output
9861 # in D'.
9862 mkdir conftest.dir
9863 # Copy depcomp to subdir because otherwise we won't find it if we're
9864 # using a relative directory.
9865 cp "$am_depcomp" conftest.dir
9866 cd conftest.dir
9867 # We will build objects and dependencies in a subdirectory because
9868 # it helps to detect inapplicable dependency modes. For instance
9869 # both Tru64's cc and ICC support -MD to output dependencies as a
9870 # side effect of compilation, but ICC will put the dependencies in
9871 # the current directory while Tru64 will put them in the object
9872 # directory.
9873 mkdir sub
9875 am_cv_CXX_dependencies_compiler_type=none
9876 if test "$am_compiler_list" = ""; then
9877 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9879 for depmode in $am_compiler_list; do
9880 if test $depmode = none; then break; fi
9882 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9883 # Setup a source with many dependencies, because some compilers
9884 # like to wrap large dependency lists on column 80 (with \), and
9885 # we should not choose a depcomp mode which is confused by this.
9887 # We need to recreate these files for each test, as the compiler may
9888 # overwrite some of them when testing with obscure command lines.
9889 # This happens at least with the AIX C compiler.
9890 : > sub/conftest.c
9891 for i in 1 2 3 4 5 6; do
9892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9893 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9894 # Solaris 8's {/usr,}/bin/sh.
9895 touch sub/conftst$i.h
9896 done
9897 echo "include sub/conftest.Po" > confmf
9899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9900 # mode. It turns out that the SunPro C++ compiler does not properly
9901 # handle `-M -o', and we need to detect this.
9902 depcmd="depmode=$depmode \
9903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9906 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9907 if env $depcmd > conftest.err 2>&1 &&
9908 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9909 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9910 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9911 # icc doesn't choke on unknown options, it will just issue warnings
9912 # or remarks (even with -Werror). So we grep stderr for any message
9913 # that says an option was ignored or not supported.
9914 # When given -MP, icc 7.0 and 7.1 complain thusly:
9915 # icc: Command line warning: ignoring option '-M'; no argument required
9916 # The diagnosis changed in icc 8.0:
9917 # icc: Command line remark: option '-MP' not supported
9918 if (grep 'ignoring option' conftest.err ||
9919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9920 am_cv_CXX_dependencies_compiler_type=$depmode
9921 $as_echo "$as_me:$LINENO: success" >&5
9922 break
9925 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9926 sed -e 's/^/| /' < conftest.err >&5
9927 done
9929 cd ..
9930 rm -rf conftest.dir
9931 else
9932 am_cv_CXX_dependencies_compiler_type=none
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9937 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9938 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9939 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9940 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9945 # --------
9946 # UNSORTED
9947 # --------
9950 # These libraries may be used by collect2.
9951 # We may need a special search path to get them linked.
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9953 $as_echo_n "checking for collect2 libraries... " >&6; }
9954 if ${gcc_cv_collect2_libs+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 save_LIBS="$LIBS"
9958 for libs in '' -lld -lmld \
9959 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9960 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9962 LIBS="$libs"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char ldopen ();
9974 main ()
9976 return ldopen ();
9978 return 0;
9980 _ACEOF
9981 if ac_fn_cxx_try_link "$LINENO"; then :
9982 gcc_cv_collect2_libs="$libs"; break
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 done
9987 LIBS="$save_LIBS"
9988 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9991 $as_echo "$gcc_cv_collect2_libs" >&6; }
9992 case $gcc_cv_collect2_libs in
9993 "none required") ;;
9994 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9995 esac
9998 # When building Ada code on Alpha, we need exc_resume which is usually in
9999 # -lexc. So test for it.
10000 save_LIBS="$LIBS"
10001 LIBS=
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10003 $as_echo_n "checking for library containing exc_resume... " >&6; }
10004 if ${ac_cv_search_exc_resume+:} false; then :
10005 $as_echo_n "(cached) " >&6
10006 else
10007 ac_func_search_save_LIBS=$LIBS
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char exc_resume ();
10019 main ()
10021 return exc_resume ();
10023 return 0;
10025 _ACEOF
10026 for ac_lib in '' exc; do
10027 if test -z "$ac_lib"; then
10028 ac_res="none required"
10029 else
10030 ac_res=-l$ac_lib
10031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10033 if ac_fn_cxx_try_link "$LINENO"; then :
10034 ac_cv_search_exc_resume=$ac_res
10036 rm -f core conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext
10038 if ${ac_cv_search_exc_resume+:} false; then :
10039 break
10041 done
10042 if ${ac_cv_search_exc_resume+:} false; then :
10044 else
10045 ac_cv_search_exc_resume=no
10047 rm conftest.$ac_ext
10048 LIBS=$ac_func_search_save_LIBS
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10051 $as_echo "$ac_cv_search_exc_resume" >&6; }
10052 ac_res=$ac_cv_search_exc_resume
10053 if test "$ac_res" != no; then :
10054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10058 GNAT_LIBEXC="$LIBS"
10059 LIBS="$save_LIBS"
10062 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10063 save_LIBS="$LIBS"
10064 LIBS=
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10066 $as_echo_n "checking for library containing kstat_open... " >&6; }
10067 if ${ac_cv_search_kstat_open+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 ac_func_search_save_LIBS=$LIBS
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char kstat_open ();
10082 main ()
10084 return kstat_open ();
10086 return 0;
10088 _ACEOF
10089 for ac_lib in '' kstat; do
10090 if test -z "$ac_lib"; then
10091 ac_res="none required"
10092 else
10093 ac_res=-l$ac_lib
10094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10096 if ac_fn_cxx_try_link "$LINENO"; then :
10097 ac_cv_search_kstat_open=$ac_res
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext
10101 if ${ac_cv_search_kstat_open+:} false; then :
10102 break
10104 done
10105 if ${ac_cv_search_kstat_open+:} false; then :
10107 else
10108 ac_cv_search_kstat_open=no
10110 rm conftest.$ac_ext
10111 LIBS=$ac_func_search_save_LIBS
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10114 $as_echo "$ac_cv_search_kstat_open" >&6; }
10115 ac_res=$ac_cv_search_kstat_open
10116 if test "$ac_res" != no; then :
10117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10121 EXTRA_GCC_LIBS="$LIBS"
10122 LIBS="$save_LIBS"
10125 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10126 # C++ needs those for libcody.
10127 save_LIBS="$LIBS"
10128 LIBS=
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10131 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10132 if ${ac_cv_search_gethostbyname+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 ac_func_search_save_LIBS=$LIBS
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char gethostbyname ();
10147 main ()
10149 return gethostbyname ();
10151 return 0;
10153 _ACEOF
10154 for ac_lib in '' nsl; do
10155 if test -z "$ac_lib"; then
10156 ac_res="none required"
10157 else
10158 ac_res=-l$ac_lib
10159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162 ac_cv_search_gethostbyname=$ac_res
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext
10166 if ${ac_cv_search_gethostbyname+:} false; then :
10167 break
10169 done
10170 if ${ac_cv_search_gethostbyname+:} false; then :
10172 else
10173 ac_cv_search_gethostbyname=no
10175 rm conftest.$ac_ext
10176 LIBS=$ac_func_search_save_LIBS
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10179 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10180 ac_res=$ac_cv_search_gethostbyname
10181 if test "$ac_res" != no; then :
10182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10187 $as_echo_n "checking for library containing socket... " >&6; }
10188 if ${ac_cv_search_socket+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_func_search_save_LIBS=$LIBS
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char socket ();
10203 main ()
10205 return socket ();
10207 return 0;
10209 _ACEOF
10210 for ac_lib in '' socket; do
10211 if test -z "$ac_lib"; then
10212 ac_res="none required"
10213 else
10214 ac_res=-l$ac_lib
10215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10217 if ac_fn_cxx_try_link "$LINENO"; then :
10218 ac_cv_search_socket=$ac_res
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext
10222 if ${ac_cv_search_socket+:} false; then :
10223 break
10225 done
10226 if ${ac_cv_search_socket+:} false; then :
10228 else
10229 ac_cv_search_socket=no
10231 rm conftest.$ac_ext
10232 LIBS=$ac_func_search_save_LIBS
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10235 $as_echo "$ac_cv_search_socket" >&6; }
10236 ac_res=$ac_cv_search_socket
10237 if test "$ac_res" != no; then :
10238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10240 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10243 $as_echo_n "checking for socket in -lsocket... " >&6; }
10244 if ${ac_cv_lib_socket_socket+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-lsocket -lnsl $LIBS"
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char socket ();
10260 main ()
10262 return socket ();
10264 return 0;
10266 _ACEOF
10267 if ac_fn_cxx_try_link "$LINENO"; then :
10268 ac_cv_lib_socket_socket=yes
10269 else
10270 ac_cv_lib_socket_socket=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10277 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10278 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10279 LIBS="-lsocket -lnsl $LIBS"
10285 NETLIBS="$LIBS"
10286 LIBS="$save_LIBS"
10289 # Some systems put ldexp and frexp in libm instead of libc; assume
10290 # they're both in the same place. jcf-dump needs them.
10291 save_LIBS="$LIBS"
10292 LIBS=
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10294 $as_echo_n "checking for library containing ldexp... " >&6; }
10295 if ${ac_cv_search_ldexp+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 ac_func_search_save_LIBS=$LIBS
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char ldexp ();
10310 main ()
10312 return ldexp ();
10314 return 0;
10316 _ACEOF
10317 for ac_lib in '' m; do
10318 if test -z "$ac_lib"; then
10319 ac_res="none required"
10320 else
10321 ac_res=-l$ac_lib
10322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10324 if ac_fn_cxx_try_link "$LINENO"; then :
10325 ac_cv_search_ldexp=$ac_res
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext
10329 if ${ac_cv_search_ldexp+:} false; then :
10330 break
10332 done
10333 if ${ac_cv_search_ldexp+:} false; then :
10335 else
10336 ac_cv_search_ldexp=no
10338 rm conftest.$ac_ext
10339 LIBS=$ac_func_search_save_LIBS
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10342 $as_echo "$ac_cv_search_ldexp" >&6; }
10343 ac_res=$ac_cv_search_ldexp
10344 if test "$ac_res" != no; then :
10345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10349 LDEXP_LIB="$LIBS"
10350 LIBS="$save_LIBS"
10353 # Some systems need dlopen
10354 save_LIBS="$LIBS"
10355 LIBS=
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10357 $as_echo_n "checking for library containing dlopen... " >&6; }
10358 if ${ac_cv_search_dlopen+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 ac_func_search_save_LIBS=$LIBS
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char dlopen ();
10373 main ()
10375 return dlopen ();
10377 return 0;
10379 _ACEOF
10380 for ac_lib in '' dl; do
10381 if test -z "$ac_lib"; then
10382 ac_res="none required"
10383 else
10384 ac_res=-l$ac_lib
10385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10387 if ac_fn_cxx_try_link "$LINENO"; then :
10388 ac_cv_search_dlopen=$ac_res
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext
10392 if ${ac_cv_search_dlopen+:} false; then :
10393 break
10395 done
10396 if ${ac_cv_search_dlopen+:} false; then :
10398 else
10399 ac_cv_search_dlopen=no
10401 rm conftest.$ac_ext
10402 LIBS=$ac_func_search_save_LIBS
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10405 $as_echo "$ac_cv_search_dlopen" >&6; }
10406 ac_res=$ac_cv_search_dlopen
10407 if test "$ac_res" != no; then :
10408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10412 DL_LIB="$LIBS"
10413 LIBS="$save_LIBS"
10416 # Use <inttypes.h> only if it exists,
10417 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10418 # PRId64
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10420 $as_echo_n "checking for inttypes.h... " >&6; }
10421 if ${gcc_cv_header_inttypes_h+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #define __STDC_FORMAT_MACROS
10427 #include <sys/types.h>
10428 #include <inttypes.h>
10430 main ()
10432 intmax_t i = -1;
10433 #ifndef PRId64
10434 choke me
10435 #endif
10437 return 0;
10439 _ACEOF
10440 if ac_fn_cxx_try_compile "$LINENO"; then :
10441 gcc_cv_header_inttypes_h=yes
10442 else
10443 gcc_cv_header_inttypes_h=no
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10449 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10450 if test $gcc_cv_header_inttypes_h = yes; then
10452 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10456 # Look for the ZSTD package.
10457 ZSTD_INCLUDE=
10458 ZSTD_LIB=
10461 ZSTD_CPPFLAGS=
10462 ZSTD_LDFLAGS=
10466 # Check whether --with-zstd was given.
10467 if test "${with_zstd+set}" = set; then :
10468 withval=$with_zstd;
10472 # Check whether --with-zstd-include was given.
10473 if test "${with_zstd_include+set}" = set; then :
10474 withval=$with_zstd_include;
10478 # Check whether --with-zstd-lib was given.
10479 if test "${with_zstd_lib+set}" = set; then :
10480 withval=$with_zstd_lib;
10483 case "x$with_zstd" in
10484 x) ;;
10485 xno)
10486 ZSTD_INCLUDE=
10487 ZSTD_LIB=
10489 *) ZSTD_INCLUDE=$with_zstd/include
10490 ZSTD_LIB=$with_zstd/lib
10492 esac
10494 if test "x$with_zstd" != xno; then
10495 if test "x$with_zstd_include" != x; then
10496 ZSTD_INCLUDE=$with_zstd_include
10498 if test "x$with_zstd_lib" != x; then
10499 ZSTD_LIB=$with_zstd_lib
10501 if test "x$ZSTD_INCLUDE" != x \
10502 && test "x$ZSTD_INCLUDE" != xno; then
10503 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10505 if test "x$ZSTD_LIB" != x \
10506 && test "x$ZSTD_LIB" != xno; then
10507 ZSTD_LDFLAGS=-L$ZSTD_LIB
10510 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10511 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10514 $as_echo_n "checking for zstd.h... " >&6; }
10515 if ${gcc_cv_header_zstd_h+:} false; then :
10516 $as_echo_n "(cached) " >&6
10517 else
10518 # We require version 1.3.0 or later. This is the first version that has
10519 # ZSTD_getFrameContentSize.
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522 #include <zstd.h>
10523 #if ZSTD_VERSION_NUMBER < 10300
10524 #error "need zstd 1.3.0 or better"
10525 #endif
10527 main ()
10531 return 0;
10533 _ACEOF
10534 if ac_fn_cxx_try_compile "$LINENO"; then :
10535 gcc_cv_header_zstd_h=yes
10536 else
10537 gcc_cv_header_zstd_h=no
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10543 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10544 if test $gcc_cv_header_zstd_h = yes; then
10546 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10548 elif test "x$with_zstd" != x; then
10549 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10552 # LTO can use zstd compression algorithm
10553 save_LIBS="$LIBS"
10554 LIBS=
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10556 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10557 if ${ac_cv_search_ZSTD_compress+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 ac_func_search_save_LIBS=$LIBS
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567 #ifdef __cplusplus
10568 extern "C"
10569 #endif
10570 char ZSTD_compress ();
10572 main ()
10574 return ZSTD_compress ();
10576 return 0;
10578 _ACEOF
10579 for ac_lib in '' zstd; do
10580 if test -z "$ac_lib"; then
10581 ac_res="none required"
10582 else
10583 ac_res=-l$ac_lib
10584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10586 if ac_fn_cxx_try_link "$LINENO"; then :
10587 ac_cv_search_ZSTD_compress=$ac_res
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext
10591 if ${ac_cv_search_ZSTD_compress+:} false; then :
10592 break
10594 done
10595 if ${ac_cv_search_ZSTD_compress+:} false; then :
10597 else
10598 ac_cv_search_ZSTD_compress=no
10600 rm conftest.$ac_ext
10601 LIBS=$ac_func_search_save_LIBS
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10604 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10605 ac_res=$ac_cv_search_ZSTD_compress
10606 if test "$ac_res" != no; then :
10607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10611 ZSTD_LIB="$LIBS"
10612 LIBS="$save_LIBS"
10618 for ac_func in times clock kill getrlimit setrlimit atoq \
10619 popen sysconf strsignal getrusage nl_langinfo \
10620 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10621 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
10622 do :
10623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10624 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10626 cat >>confdefs.h <<_ACEOF
10627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10628 _ACEOF
10631 done
10634 if test x$ac_cv_func_mbstowcs = xyes; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10636 $as_echo_n "checking whether mbstowcs works... " >&6; }
10637 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 if test "$cross_compiling" = yes; then :
10641 gcc_cv_func_mbstowcs_works=yes
10642 else
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <stdlib.h>
10646 int main()
10648 mbstowcs(0, "", 0);
10649 return 0;
10651 _ACEOF
10652 if ac_fn_cxx_try_run "$LINENO"; then :
10653 gcc_cv_func_mbstowcs_works=yes
10654 else
10655 gcc_cv_func_mbstowcs_works=no
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10658 conftest.$ac_objext conftest.beam conftest.$ac_ext
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10664 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10671 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10672 if test "x$ac_cv_type_ssize_t" = xyes; then :
10674 else
10676 cat >>confdefs.h <<_ACEOF
10677 #define ssize_t int
10678 _ACEOF
10682 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10683 if test "x$ac_cv_type_caddr_t" = xyes; then :
10685 else
10687 cat >>confdefs.h <<_ACEOF
10688 #define caddr_t char *
10689 _ACEOF
10693 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10695 if test "x$ac_cv_type_sighander_t" = xyes; then :
10697 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10703 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10704 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10705 gcc_header_sys_mman_h=yes
10706 else
10707 gcc_header_sys_mman_h=no
10710 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10711 if test "x$ac_cv_func_mmap" = xyes; then :
10712 gcc_func_mmap=yes
10713 else
10714 gcc_func_mmap=no
10717 if test "$gcc_header_sys_mman_h" != yes \
10718 || test "$gcc_func_mmap" != yes; then
10719 gcc_cv_func_mmap_file=no
10720 gcc_cv_func_mmap_dev_zero=no
10721 gcc_cv_func_mmap_anon=no
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10724 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10725 if ${gcc_cv_func_mmap_file+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 # Add a system to this blacklist if
10729 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10730 # memory area containing the same data that you'd get if you applied
10731 # read() to the same fd. The only system known to have a problem here
10732 # is VMS, where text files have record structure.
10733 case "$host_os" in
10734 *vms* | ultrix*)
10735 gcc_cv_func_mmap_file=no ;;
10737 gcc_cv_func_mmap_file=yes;;
10738 esac
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10741 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10743 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10744 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 # Add a system to this blacklist if it has mmap() but /dev/zero
10748 # does not exist, or if mmapping /dev/zero does not give anonymous
10749 # zeroed pages with both the following properties:
10750 # 1. If you map N consecutive pages in with one call, and then
10751 # unmap any subset of those pages, the pages that were not
10752 # explicitly unmapped remain accessible.
10753 # 2. If you map two adjacent blocks of memory and then unmap them
10754 # both at once, they must both go away.
10755 # Systems known to be in this category are Windows (all variants),
10756 # VMS, and Darwin.
10757 case "$host_os" in
10758 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10759 gcc_cv_func_mmap_dev_zero=no ;;
10761 gcc_cv_func_mmap_dev_zero=yes;;
10762 esac
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10765 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10767 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10769 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10770 if ${gcc_cv_decl_map_anon+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10776 #include <sys/mman.h>
10777 #include <unistd.h>
10779 #ifndef MAP_ANONYMOUS
10780 #define MAP_ANONYMOUS MAP_ANON
10781 #endif
10784 main ()
10786 int n = MAP_ANONYMOUS;
10788 return 0;
10790 _ACEOF
10791 if ac_fn_cxx_try_compile "$LINENO"; then :
10792 gcc_cv_decl_map_anon=yes
10793 else
10794 gcc_cv_decl_map_anon=no
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10799 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10801 if test $gcc_cv_decl_map_anon = no; then
10802 gcc_cv_func_mmap_anon=no
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10805 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10806 if ${gcc_cv_func_mmap_anon+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10810 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10811 # doesn't give anonymous zeroed pages with the same properties listed
10812 # above for use of /dev/zero.
10813 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10814 case "$host_os" in
10815 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10816 gcc_cv_func_mmap_anon=no ;;
10818 gcc_cv_func_mmap_anon=yes;;
10819 esac
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10822 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10826 if test $gcc_cv_func_mmap_file = yes; then
10828 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10831 if test $gcc_cv_func_mmap_dev_zero = yes; then
10833 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10836 if test $gcc_cv_func_mmap_anon = yes; then
10838 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10843 case "${host}" in
10844 *-*-*vms*)
10845 # Under VMS, vfork works very differently than on Unix. The standard test
10846 # won't work, and it isn't easily adaptable. It makes more sense to
10847 # just force it.
10848 ac_cv_func_vfork_works=yes
10850 esac
10851 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10852 if test "x$ac_cv_type_pid_t" = xyes; then :
10854 else
10856 cat >>confdefs.h <<_ACEOF
10857 #define pid_t int
10858 _ACEOF
10862 for ac_header in vfork.h
10863 do :
10864 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10865 if test "x$ac_cv_header_vfork_h" = xyes; then :
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_VFORK_H 1
10868 _ACEOF
10871 done
10873 for ac_func in fork vfork
10874 do :
10875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10878 cat >>confdefs.h <<_ACEOF
10879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10880 _ACEOF
10883 done
10885 if test "x$ac_cv_func_fork" = xyes; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10887 $as_echo_n "checking for working fork... " >&6; }
10888 if ${ac_cv_func_fork_works+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test "$cross_compiling" = yes; then :
10892 ac_cv_func_fork_works=cross
10893 else
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 $ac_includes_default
10898 main ()
10901 /* By Ruediger Kuhlmann. */
10902 return fork () < 0;
10905 return 0;
10907 _ACEOF
10908 if ac_fn_cxx_try_run "$LINENO"; then :
10909 ac_cv_func_fork_works=yes
10910 else
10911 ac_cv_func_fork_works=no
10913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10914 conftest.$ac_objext conftest.beam conftest.$ac_ext
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10919 $as_echo "$ac_cv_func_fork_works" >&6; }
10921 else
10922 ac_cv_func_fork_works=$ac_cv_func_fork
10924 if test "x$ac_cv_func_fork_works" = xcross; then
10925 case $host in
10926 *-*-amigaos* | *-*-msdosdjgpp*)
10927 # Override, as these systems have only a dummy fork() stub
10928 ac_cv_func_fork_works=no
10931 ac_cv_func_fork_works=yes
10933 esac
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10935 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10937 ac_cv_func_vfork_works=$ac_cv_func_vfork
10938 if test "x$ac_cv_func_vfork" = xyes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10940 $as_echo_n "checking for working vfork... " >&6; }
10941 if ${ac_cv_func_vfork_works+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test "$cross_compiling" = yes; then :
10945 ac_cv_func_vfork_works=cross
10946 else
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 /* Thanks to Paul Eggert for this test. */
10950 $ac_includes_default
10951 #include <sys/wait.h>
10952 #ifdef HAVE_VFORK_H
10953 # include <vfork.h>
10954 #endif
10955 /* On some sparc systems, changes by the child to local and incoming
10956 argument registers are propagated back to the parent. The compiler
10957 is told about this with #include <vfork.h>, but some compilers
10958 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10959 static variable whose address is put into a register that is
10960 clobbered by the vfork. */
10961 static void
10962 #ifdef __cplusplus
10963 sparc_address_test (int arg)
10964 # else
10965 sparc_address_test (arg) int arg;
10966 #endif
10968 static pid_t child;
10969 if (!child) {
10970 child = vfork ();
10971 if (child < 0) {
10972 perror ("vfork");
10973 _exit(2);
10975 if (!child) {
10976 arg = getpid();
10977 write(-1, "", 0);
10978 _exit (arg);
10984 main ()
10986 pid_t parent = getpid ();
10987 pid_t child;
10989 sparc_address_test (0);
10991 child = vfork ();
10993 if (child == 0) {
10994 /* Here is another test for sparc vfork register problems. This
10995 test uses lots of local variables, at least as many local
10996 variables as main has allocated so far including compiler
10997 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10998 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10999 reuse the register of parent for one of the local variables,
11000 since it will think that parent can't possibly be used any more
11001 in this routine. Assigning to the local variable will thus
11002 munge parent in the parent process. */
11003 pid_t
11004 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11005 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11006 /* Convince the compiler that p..p7 are live; otherwise, it might
11007 use the same hardware register for all 8 local variables. */
11008 if (p != p1 || p != p2 || p != p3 || p != p4
11009 || p != p5 || p != p6 || p != p7)
11010 _exit(1);
11012 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11013 from child file descriptors. If the child closes a descriptor
11014 before it execs or exits, this munges the parent's descriptor
11015 as well. Test for this by closing stdout in the child. */
11016 _exit(close(fileno(stdout)) != 0);
11017 } else {
11018 int status;
11019 struct stat st;
11021 while (wait(&status) != child)
11023 return (
11024 /* Was there some problem with vforking? */
11025 child < 0
11027 /* Did the child fail? (This shouldn't happen.) */
11028 || status
11030 /* Did the vfork/compiler bug occur? */
11031 || parent != getpid()
11033 /* Did the file descriptor bug occur? */
11034 || fstat(fileno(stdout), &st) != 0
11038 _ACEOF
11039 if ac_fn_cxx_try_run "$LINENO"; then :
11040 ac_cv_func_vfork_works=yes
11041 else
11042 ac_cv_func_vfork_works=no
11044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11045 conftest.$ac_objext conftest.beam conftest.$ac_ext
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11050 $as_echo "$ac_cv_func_vfork_works" >&6; }
11053 if test "x$ac_cv_func_fork_works" = xcross; then
11054 ac_cv_func_vfork_works=$ac_cv_func_vfork
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11056 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11059 if test "x$ac_cv_func_vfork_works" = xyes; then
11061 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11063 else
11065 $as_echo "#define vfork fork" >>confdefs.h
11068 if test "x$ac_cv_func_fork_works" = xyes; then
11070 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11076 if test "X$prefix" = "XNONE"; then
11077 acl_final_prefix="$ac_default_prefix"
11078 else
11079 acl_final_prefix="$prefix"
11081 if test "X$exec_prefix" = "XNONE"; then
11082 acl_final_exec_prefix='${prefix}'
11083 else
11084 acl_final_exec_prefix="$exec_prefix"
11086 acl_save_prefix="$prefix"
11087 prefix="$acl_final_prefix"
11088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11089 prefix="$acl_save_prefix"
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then :
11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095 else
11096 with_gnu_ld=no
11099 # Prepare PATH_SEPARATOR.
11100 # The user is always right.
11101 if test "${PATH_SEPARATOR+set}" != set; then
11102 echo "#! /bin/sh" >conf$$.sh
11103 echo "exit 0" >>conf$$.sh
11104 chmod +x conf$$.sh
11105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11106 PATH_SEPARATOR=';'
11107 else
11108 PATH_SEPARATOR=:
11110 rm -f conf$$.sh
11112 ac_prog=ld
11113 if test "$GCC" = yes; then
11114 # Check if gcc -print-prog-name=ld gives a path.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11116 $as_echo_n "checking for ld used by GCC... " >&6; }
11117 case $host in
11118 *-*-mingw*)
11119 # gcc leaves a trailing carriage return which upsets mingw
11120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11123 esac
11124 case $ac_prog in
11125 # Accept absolute paths.
11126 [\\/]* | [A-Za-z]:[\\/]*)
11127 re_direlt='/[^/][^/]*/\.\./'
11128 # Canonicalize the path of ld
11129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11132 done
11133 test -z "$LD" && LD="$ac_prog"
11136 # If it fails, then pretend we aren't using GCC.
11137 ac_prog=ld
11140 # If it is relative, then search for the first ld in PATH.
11141 with_gnu_ld=unknown
11143 esac
11144 elif test "$with_gnu_ld" = yes; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11146 $as_echo_n "checking for GNU ld... " >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11149 $as_echo_n "checking for non-GNU ld... " >&6; }
11151 if ${acl_cv_path_LD+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 if test -z "$LD"; then
11155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11156 for ac_dir in $PATH; do
11157 test -z "$ac_dir" && ac_dir=.
11158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11159 acl_cv_path_LD="$ac_dir/$ac_prog"
11160 # Check to see if the program is GNU ld. I'd rather use --version,
11161 # but apparently some GNU ld's only accept -v.
11162 # Break only if it was the GNU/non-GNU ld that we prefer.
11163 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11164 test "$with_gnu_ld" != no && break
11165 else
11166 test "$with_gnu_ld" != yes && break
11169 done
11170 IFS="$ac_save_ifs"
11171 else
11172 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11176 LD="$acl_cv_path_LD"
11177 if test -n "$LD"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11179 $as_echo "$LD" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11184 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11187 if ${acl_cv_prog_gnu_ld+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11191 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11192 acl_cv_prog_gnu_ld=yes
11193 else
11194 acl_cv_prog_gnu_ld=no
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11198 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11199 with_gnu_ld=$acl_cv_prog_gnu_ld
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11204 $as_echo_n "checking for shared library run path origin... " >&6; }
11205 if ${acl_cv_rpath+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11211 . ./conftest.sh
11212 rm -f ./conftest.sh
11213 acl_cv_rpath=done
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11217 $as_echo "$acl_cv_rpath" >&6; }
11218 wl="$acl_cv_wl"
11219 libext="$acl_cv_libext"
11220 shlibext="$acl_cv_shlibext"
11221 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11222 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11223 hardcode_direct="$acl_cv_hardcode_direct"
11224 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11225 # Check whether --enable-rpath was given.
11226 if test "${enable_rpath+set}" = set; then :
11227 enableval=$enable_rpath; :
11228 else
11229 enable_rpath=yes
11239 use_additional=yes
11241 acl_save_prefix="$prefix"
11242 prefix="$acl_final_prefix"
11243 acl_save_exec_prefix="$exec_prefix"
11244 exec_prefix="$acl_final_exec_prefix"
11246 eval additional_includedir=\"$includedir\"
11247 eval additional_libdir=\"$libdir\"
11249 exec_prefix="$acl_save_exec_prefix"
11250 prefix="$acl_save_prefix"
11253 # Check whether --with-libiconv-prefix was given.
11254 if test "${with_libiconv_prefix+set}" = set; then :
11255 withval=$with_libiconv_prefix;
11256 if test "X$withval" = "Xno"; then
11257 use_additional=no
11258 else
11259 if test "X$withval" = "X"; then
11261 acl_save_prefix="$prefix"
11262 prefix="$acl_final_prefix"
11263 acl_save_exec_prefix="$exec_prefix"
11264 exec_prefix="$acl_final_exec_prefix"
11266 eval additional_includedir=\"$includedir\"
11267 eval additional_libdir=\"$libdir\"
11269 exec_prefix="$acl_save_exec_prefix"
11270 prefix="$acl_save_prefix"
11272 else
11273 additional_includedir="$withval/include"
11274 additional_libdir="$withval/lib"
11281 # Check whether --with-libiconv-type was given.
11282 if test "${with_libiconv_type+set}" = set; then :
11283 withval=$with_libiconv_type; with_libiconv_type=$withval
11284 else
11285 with_libiconv_type=auto
11288 lib_type=`eval echo \$with_libiconv_type`
11290 LIBICONV=
11291 LTLIBICONV=
11292 INCICONV=
11293 rpathdirs=
11294 ltrpathdirs=
11295 names_already_handled=
11296 names_next_round='iconv '
11297 while test -n "$names_next_round"; do
11298 names_this_round="$names_next_round"
11299 names_next_round=
11300 for name in $names_this_round; do
11301 already_handled=
11302 for n in $names_already_handled; do
11303 if test "$n" = "$name"; then
11304 already_handled=yes
11305 break
11307 done
11308 if test -z "$already_handled"; then
11309 names_already_handled="$names_already_handled $name"
11310 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11311 eval value=\"\$HAVE_LIB$uppername\"
11312 if test -n "$value"; then
11313 if test "$value" = yes; then
11314 eval value=\"\$LIB$uppername\"
11315 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11316 eval value=\"\$LTLIB$uppername\"
11317 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11318 else
11321 else
11322 found_dir=
11323 found_la=
11324 found_so=
11325 found_a=
11326 if test $use_additional = yes; then
11327 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11328 found_dir="$additional_libdir"
11329 found_so="$additional_libdir/lib$name.$shlibext"
11330 if test -f "$additional_libdir/lib$name.la"; then
11331 found_la="$additional_libdir/lib$name.la"
11333 elif test x$lib_type != xshared; then
11334 if test -f "$additional_libdir/lib$name.$libext"; then
11335 found_dir="$additional_libdir"
11336 found_a="$additional_libdir/lib$name.$libext"
11337 if test -f "$additional_libdir/lib$name.la"; then
11338 found_la="$additional_libdir/lib$name.la"
11343 if test "X$found_dir" = "X"; then
11344 for x in $LDFLAGS $LTLIBICONV; do
11346 acl_save_prefix="$prefix"
11347 prefix="$acl_final_prefix"
11348 acl_save_exec_prefix="$exec_prefix"
11349 exec_prefix="$acl_final_exec_prefix"
11350 eval x=\"$x\"
11351 exec_prefix="$acl_save_exec_prefix"
11352 prefix="$acl_save_prefix"
11354 case "$x" in
11355 -L*)
11356 dir=`echo "X$x" | sed -e 's/^X-L//'`
11357 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11358 found_dir="$dir"
11359 found_so="$dir/lib$name.$shlibext"
11360 if test -f "$dir/lib$name.la"; then
11361 found_la="$dir/lib$name.la"
11363 elif test x$lib_type != xshared; then
11364 if test -f "$dir/lib$name.$libext"; then
11365 found_dir="$dir"
11366 found_a="$dir/lib$name.$libext"
11367 if test -f "$dir/lib$name.la"; then
11368 found_la="$dir/lib$name.la"
11373 esac
11374 if test "X$found_dir" != "X"; then
11375 break
11377 done
11379 if test "X$found_dir" != "X"; then
11380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11381 if test "X$found_so" != "X"; then
11382 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11384 else
11385 haveit=
11386 for x in $ltrpathdirs; do
11387 if test "X$x" = "X$found_dir"; then
11388 haveit=yes
11389 break
11391 done
11392 if test -z "$haveit"; then
11393 ltrpathdirs="$ltrpathdirs $found_dir"
11395 if test "$hardcode_direct" = yes; then
11396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11397 else
11398 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11400 haveit=
11401 for x in $rpathdirs; do
11402 if test "X$x" = "X$found_dir"; then
11403 haveit=yes
11404 break
11406 done
11407 if test -z "$haveit"; then
11408 rpathdirs="$rpathdirs $found_dir"
11410 else
11411 haveit=
11412 for x in $LDFLAGS $LIBICONV; do
11414 acl_save_prefix="$prefix"
11415 prefix="$acl_final_prefix"
11416 acl_save_exec_prefix="$exec_prefix"
11417 exec_prefix="$acl_final_exec_prefix"
11418 eval x=\"$x\"
11419 exec_prefix="$acl_save_exec_prefix"
11420 prefix="$acl_save_prefix"
11422 if test "X$x" = "X-L$found_dir"; then
11423 haveit=yes
11424 break
11426 done
11427 if test -z "$haveit"; then
11428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11430 if test "$hardcode_minus_L" != no; then
11431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11432 else
11433 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11438 else
11439 if test "X$found_a" != "X"; then
11440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11441 else
11442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11445 additional_includedir=
11446 case "$found_dir" in
11447 */lib | */lib/)
11448 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11449 additional_includedir="$basedir/include"
11451 esac
11452 if test "X$additional_includedir" != "X"; then
11453 if test "X$additional_includedir" != "X/usr/include"; then
11454 haveit=
11455 if test "X$additional_includedir" = "X/usr/local/include"; then
11456 if test -n "$GCC"; then
11457 case $host_os in
11458 linux*) haveit=yes;;
11459 esac
11462 if test -z "$haveit"; then
11463 for x in $CPPFLAGS $INCICONV; do
11465 acl_save_prefix="$prefix"
11466 prefix="$acl_final_prefix"
11467 acl_save_exec_prefix="$exec_prefix"
11468 exec_prefix="$acl_final_exec_prefix"
11469 eval x=\"$x\"
11470 exec_prefix="$acl_save_exec_prefix"
11471 prefix="$acl_save_prefix"
11473 if test "X$x" = "X-I$additional_includedir"; then
11474 haveit=yes
11475 break
11477 done
11478 if test -z "$haveit"; then
11479 if test -d "$additional_includedir"; then
11480 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11486 if test -n "$found_la"; then
11487 save_libdir="$libdir"
11488 case "$found_la" in
11489 */* | *\\*) . "$found_la" ;;
11490 *) . "./$found_la" ;;
11491 esac
11492 libdir="$save_libdir"
11493 for dep in $dependency_libs; do
11494 case "$dep" in
11495 -L*)
11496 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11497 if test "X$additional_libdir" != "X/usr/lib"; then
11498 haveit=
11499 if test "X$additional_libdir" = "X/usr/local/lib"; then
11500 if test -n "$GCC"; then
11501 case $host_os in
11502 linux*) haveit=yes;;
11503 esac
11506 if test -z "$haveit"; then
11507 haveit=
11508 for x in $LDFLAGS $LIBICONV; do
11510 acl_save_prefix="$prefix"
11511 prefix="$acl_final_prefix"
11512 acl_save_exec_prefix="$exec_prefix"
11513 exec_prefix="$acl_final_exec_prefix"
11514 eval x=\"$x\"
11515 exec_prefix="$acl_save_exec_prefix"
11516 prefix="$acl_save_prefix"
11518 if test "X$x" = "X-L$additional_libdir"; then
11519 haveit=yes
11520 break
11522 done
11523 if test -z "$haveit"; then
11524 if test -d "$additional_libdir"; then
11525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11528 haveit=
11529 for x in $LDFLAGS $LTLIBICONV; do
11531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11535 eval x=\"$x\"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
11539 if test "X$x" = "X-L$additional_libdir"; then
11540 haveit=yes
11541 break
11543 done
11544 if test -z "$haveit"; then
11545 if test -d "$additional_libdir"; then
11546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11552 -R*)
11553 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11554 if test "$enable_rpath" != no; then
11555 haveit=
11556 for x in $rpathdirs; do
11557 if test "X$x" = "X$dir"; then
11558 haveit=yes
11559 break
11561 done
11562 if test -z "$haveit"; then
11563 rpathdirs="$rpathdirs $dir"
11565 haveit=
11566 for x in $ltrpathdirs; do
11567 if test "X$x" = "X$dir"; then
11568 haveit=yes
11569 break
11571 done
11572 if test -z "$haveit"; then
11573 ltrpathdirs="$ltrpathdirs $dir"
11577 -l*)
11578 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11580 *.la)
11581 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11584 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11587 esac
11588 done
11590 else
11591 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11592 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11594 else
11595 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11601 done
11602 done
11603 if test "X$rpathdirs" != "X"; then
11604 if test -n "$hardcode_libdir_separator"; then
11605 alldirs=
11606 for found_dir in $rpathdirs; do
11607 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11608 done
11609 acl_save_libdir="$libdir"
11610 libdir="$alldirs"
11611 eval flag=\"$hardcode_libdir_flag_spec\"
11612 libdir="$acl_save_libdir"
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11614 else
11615 for found_dir in $rpathdirs; do
11616 acl_save_libdir="$libdir"
11617 libdir="$found_dir"
11618 eval flag=\"$hardcode_libdir_flag_spec\"
11619 libdir="$acl_save_libdir"
11620 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11621 done
11624 if test "X$ltrpathdirs" != "X"; then
11625 for found_dir in $ltrpathdirs; do
11626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11627 done
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11637 $as_echo_n "checking for iconv... " >&6; }
11638 if ${am_cv_func_iconv+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11642 am_cv_func_iconv="no, consider installing GNU libiconv"
11643 am_cv_lib_iconv=no
11644 am_save_CPPFLAGS="$CPPFLAGS"
11645 CPPFLAGS="$CPPFLAGS $INCICONV"
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11648 #include <stdlib.h>
11649 #include <iconv.h>
11651 main ()
11653 iconv_t cd = iconv_open("","");
11654 iconv(cd,NULL,NULL,NULL,NULL);
11655 iconv_close(cd);
11657 return 0;
11659 _ACEOF
11660 if ac_fn_cxx_try_link "$LINENO"; then :
11661 am_cv_func_iconv=yes
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 CPPFLAGS="$am_save_CPPFLAGS"
11667 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11668 for _libs in .libs _libs; do
11669 am_save_CPPFLAGS="$CPPFLAGS"
11670 am_save_LIBS="$LIBS"
11671 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11672 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 #include <stdlib.h>
11676 #include <iconv.h>
11678 main ()
11680 iconv_t cd = iconv_open("","");
11681 iconv(cd,NULL,NULL,NULL,NULL);
11682 iconv_close(cd);
11684 return 0;
11686 _ACEOF
11687 if ac_fn_cxx_try_link "$LINENO"; then :
11688 INCICONV="-I../libiconv/include"
11689 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11690 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11691 am_cv_lib_iconv=yes
11692 am_cv_func_iconv=yes
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 CPPFLAGS="$am_save_CPPFLAGS"
11697 LIBS="$am_save_LIBS"
11698 if test "$am_cv_func_iconv" = "yes"; then
11699 break
11701 done
11704 if test "$am_cv_func_iconv" != yes; then
11705 am_save_CPPFLAGS="$CPPFLAGS"
11706 am_save_LIBS="$LIBS"
11707 CPPFLAGS="$CPPFLAGS $INCICONV"
11708 LIBS="$LIBS $LIBICONV"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 #include <stdlib.h>
11712 #include <iconv.h>
11714 main ()
11716 iconv_t cd = iconv_open("","");
11717 iconv(cd,NULL,NULL,NULL,NULL);
11718 iconv_close(cd);
11720 return 0;
11722 _ACEOF
11723 if ac_fn_cxx_try_link "$LINENO"; then :
11724 am_cv_lib_iconv=yes
11725 am_cv_func_iconv=yes
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 CPPFLAGS="$am_save_CPPFLAGS"
11730 LIBS="$am_save_LIBS"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11735 $as_echo "$am_cv_func_iconv" >&6; }
11736 if test "$am_cv_func_iconv" = yes; then
11738 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11741 if test "$am_cv_lib_iconv" = yes; then
11743 for element in $INCICONV; do
11744 haveit=
11745 for x in $CPPFLAGS; do
11747 acl_save_prefix="$prefix"
11748 prefix="$acl_final_prefix"
11749 acl_save_exec_prefix="$exec_prefix"
11750 exec_prefix="$acl_final_exec_prefix"
11751 eval x=\"$x\"
11752 exec_prefix="$acl_save_exec_prefix"
11753 prefix="$acl_save_prefix"
11755 if test "X$x" = "X$element"; then
11756 haveit=yes
11757 break
11759 done
11760 if test -z "$haveit"; then
11761 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11763 done
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11766 $as_echo_n "checking how to link with libiconv... " >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11768 $as_echo "$LIBICONV" >&6; }
11769 else
11770 LIBICONV=
11771 LTLIBICONV=
11776 if test "$am_cv_func_iconv" = yes; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11778 $as_echo_n "checking for iconv declaration... " >&6; }
11779 if ${am_cv_proto_iconv+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 #include <stdlib.h>
11787 #include <iconv.h>
11788 extern
11789 #ifdef __cplusplus
11791 #endif
11792 #if defined(__STDC__) || defined(__cplusplus)
11793 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11794 #else
11795 size_t iconv();
11796 #endif
11799 main ()
11803 return 0;
11805 _ACEOF
11806 if ac_fn_cxx_try_compile "$LINENO"; then :
11807 am_cv_proto_iconv_arg1=""
11808 else
11809 am_cv_proto_iconv_arg1="const"
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 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);"
11815 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11817 }$am_cv_proto_iconv" >&5
11818 $as_echo "${ac_t:-
11819 }$am_cv_proto_iconv" >&6; }
11821 cat >>confdefs.h <<_ACEOF
11822 #define ICONV_CONST $am_cv_proto_iconv_arg1
11823 _ACEOF
11828 # Until we have in-tree GNU iconv:
11829 LIBICONV_DEP=
11830 if test -f "$LTLIBICONV"; then
11831 LIBICONV_DEP=$LTLIBICONV
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11837 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11838 if ${am_cv_val_LC_MESSAGES+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 #include <locale.h>
11845 main ()
11847 return LC_MESSAGES
11849 return 0;
11851 _ACEOF
11852 if ac_fn_cxx_try_link "$LINENO"; then :
11853 am_cv_val_LC_MESSAGES=yes
11854 else
11855 am_cv_val_LC_MESSAGES=no
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11861 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11862 if test $am_cv_val_LC_MESSAGES = yes; then
11864 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11871 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11872 if ${am_cv_langinfo_codeset+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877 #include <langinfo.h>
11879 main ()
11881 char* cs = nl_langinfo(CODESET);
11883 return 0;
11885 _ACEOF
11886 if ac_fn_cxx_try_link "$LINENO"; then :
11887 am_cv_langinfo_codeset=yes
11888 else
11889 am_cv_langinfo_codeset=no
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11896 $as_echo "$am_cv_langinfo_codeset" >&6; }
11897 if test $am_cv_langinfo_codeset = yes; then
11899 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11904 # We will need to find libiberty.h and ansidecl.h
11905 saved_CFLAGS="$CFLAGS"
11906 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11907 saved_CXXFLAGS="$CXXFLAGS"
11908 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11910 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11911 # normal autoconf function for these. But force definition of
11912 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11913 # basename handling in libiberty.h.
11914 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11915 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11916 #undef HAVE_DECL_BASENAME
11917 #define HAVE_DECL_BASENAME 1
11918 #include \"ansidecl.h\"
11919 #include \"system.h\"
11921 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11922 ac_have_decl=1
11923 else
11924 ac_have_decl=0
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_DECL_BASENAME $ac_have_decl
11929 _ACEOF
11930 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11931 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11932 #undef HAVE_DECL_BASENAME
11933 #define HAVE_DECL_BASENAME 1
11934 #include \"ansidecl.h\"
11935 #include \"system.h\"
11937 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11938 ac_have_decl=1
11939 else
11940 ac_have_decl=0
11943 cat >>confdefs.h <<_ACEOF
11944 #define HAVE_DECL_STRSTR $ac_have_decl
11945 _ACEOF
11948 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11949 madvise stpcpy strnlen strsignal strverscmp \
11950 strtol strtoul strtoll strtoull setenv unsetenv \
11951 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11952 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
11954 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11956 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11957 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #undef $ac_tr_decl
11963 #define $ac_tr_decl 1
11965 #include "ansidecl.h"
11966 #include "system.h"
11969 main ()
11971 #ifndef $ac_func
11972 char *(*pfn) = (char *(*)) $ac_func ;
11973 #endif
11975 return 0;
11977 _ACEOF
11978 if ac_fn_cxx_try_compile "$LINENO"; then :
11979 eval "gcc_cv_have_decl_$ac_func=yes"
11980 else
11981 eval "gcc_cv_have_decl_$ac_func=no"
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11989 #define $ac_tr_decl 1
11990 _ACEOF
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11995 #define $ac_tr_decl 0
11996 _ACEOF
12000 done
12003 for ac_func in getrlimit setrlimit getrusage
12005 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12007 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12008 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #undef $ac_tr_decl
12014 #define $ac_tr_decl 1
12016 #include "ansidecl.h"
12017 #include "system.h"
12018 #ifdef HAVE_SYS_RESOURCE_H
12019 #include <sys/resource.h>
12020 #endif
12024 main ()
12026 #ifndef $ac_func
12027 char *(*pfn) = (char *(*)) $ac_func ;
12028 #endif
12030 return 0;
12032 _ACEOF
12033 if ac_fn_cxx_try_compile "$LINENO"; then :
12034 eval "gcc_cv_have_decl_$ac_func=yes"
12035 else
12036 eval "gcc_cv_have_decl_$ac_func=no"
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12044 #define $ac_tr_decl 1
12045 _ACEOF
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12050 #define $ac_tr_decl 0
12051 _ACEOF
12055 done
12058 for ac_func in mallinfo mallinfo2
12060 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12062 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12063 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068 #undef $ac_tr_decl
12069 #define $ac_tr_decl 1
12071 #include "ansidecl.h"
12072 #include "system.h"
12073 #ifdef HAVE_MALLOC_H
12074 #include <malloc.h>
12075 #endif
12079 main ()
12081 #ifndef $ac_func
12082 char *(*pfn) = (char *(*)) $ac_func ;
12083 #endif
12085 return 0;
12087 _ACEOF
12088 if ac_fn_cxx_try_compile "$LINENO"; then :
12089 eval "gcc_cv_have_decl_$ac_func=yes"
12090 else
12091 eval "gcc_cv_have_decl_$ac_func=no"
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12099 #define $ac_tr_decl 1
12100 _ACEOF
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12105 #define $ac_tr_decl 0
12106 _ACEOF
12110 done
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 #include "ansidecl.h"
12117 #include "system.h"
12118 #ifdef HAVE_SYS_RESOURCE_H
12119 #include <sys/resource.h>
12120 #endif
12123 main ()
12125 rlim_t l = 0;
12127 return 0;
12129 _ACEOF
12130 if ac_fn_cxx_try_compile "$LINENO"; then :
12132 else
12134 $as_echo "#define rlim_t long" >>confdefs.h
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12140 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12141 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12142 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12143 for ac_func in ldgetname
12145 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12147 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12148 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 #undef $ac_tr_decl
12154 #define $ac_tr_decl 1
12156 #include "ansidecl.h"
12157 #include "system.h"
12158 #ifdef HAVE_LDFCN_H
12159 #undef FREAD
12160 #undef FWRITE
12161 #include <ldfcn.h>
12162 #endif
12166 main ()
12168 #ifndef $ac_func
12169 char *(*pfn) = (char *(*)) $ac_func ;
12170 #endif
12172 return 0;
12174 _ACEOF
12175 if ac_fn_cxx_try_compile "$LINENO"; then :
12176 eval "gcc_cv_have_decl_$ac_func=yes"
12177 else
12178 eval "gcc_cv_have_decl_$ac_func=no"
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12186 #define $ac_tr_decl 1
12187 _ACEOF
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12192 #define $ac_tr_decl 0
12193 _ACEOF
12197 done
12200 for ac_func in times
12202 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12204 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12205 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 #undef $ac_tr_decl
12211 #define $ac_tr_decl 1
12213 #include "ansidecl.h"
12214 #include "system.h"
12215 #ifdef HAVE_SYS_TIMES_H
12216 #include <sys/times.h>
12217 #endif
12221 main ()
12223 #ifndef $ac_func
12224 char *(*pfn) = (char *(*)) $ac_func ;
12225 #endif
12227 return 0;
12229 _ACEOF
12230 if ac_fn_cxx_try_compile "$LINENO"; then :
12231 eval "gcc_cv_have_decl_$ac_func=yes"
12232 else
12233 eval "gcc_cv_have_decl_$ac_func=no"
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12241 #define $ac_tr_decl 1
12242 _ACEOF
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12247 #define $ac_tr_decl 0
12248 _ACEOF
12252 done
12255 for ac_func in sigaltstack
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 #include <signal.h>
12274 main ()
12276 #ifndef $ac_func
12277 char *(*pfn) = (char *(*)) $ac_func ;
12278 #endif
12280 return 0;
12282 _ACEOF
12283 if ac_fn_cxx_try_compile "$LINENO"; then :
12284 eval "gcc_cv_have_decl_$ac_func=yes"
12285 else
12286 eval "gcc_cv_have_decl_$ac_func=no"
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12294 #define $ac_tr_decl 1
12295 _ACEOF
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12300 #define $ac_tr_decl 0
12301 _ACEOF
12305 done
12308 # More time-related stuff.
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12310 $as_echo_n "checking for struct tms... " >&6; }
12311 if ${ac_cv_struct_tms+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 #include "ansidecl.h"
12319 #include "system.h"
12320 #ifdef HAVE_SYS_TIMES_H
12321 #include <sys/times.h>
12322 #endif
12325 main ()
12327 struct tms tms;
12329 return 0;
12331 _ACEOF
12332 if ac_fn_cxx_try_compile "$LINENO"; then :
12333 ac_cv_struct_tms=yes
12334 else
12335 ac_cv_struct_tms=no
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12340 $as_echo "$ac_cv_struct_tms" >&6; }
12341 if test $ac_cv_struct_tms = yes; then
12343 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12347 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12348 # revisit after autoconf 2.50.
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12350 $as_echo_n "checking for clock_t... " >&6; }
12351 if ${gcc_cv_type_clock_t+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 #include "ansidecl.h"
12359 #include "system.h"
12362 main ()
12364 clock_t x;
12366 return 0;
12368 _ACEOF
12369 if ac_fn_cxx_try_compile "$LINENO"; then :
12370 gcc_cv_type_clock_t=yes
12371 else
12372 gcc_cv_type_clock_t=no
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12377 $as_echo "$gcc_cv_type_clock_t" >&6; }
12378 if test $gcc_cv_type_clock_t = yes; then
12380 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12384 # Check if F_SETLKW is supported by fcntl.
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12386 $as_echo_n "checking for F_SETLKW... " >&6; }
12387 if ${ac_cv_f_setlkw+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12394 #include <fcntl.h>
12396 main ()
12399 struct flock fl;
12400 fl.l_whence = 0;
12401 fl.l_start = 0;
12402 fl.l_len = 0;
12403 fl.l_pid = 0;
12404 return fcntl (1, F_SETLKW, &fl);
12406 return 0;
12408 _ACEOF
12409 if ac_fn_cxx_try_compile "$LINENO"; then :
12410 ac_cv_f_setlkw=yes
12411 else
12412 ac_cv_f_setlkw=no
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12417 $as_echo "$ac_cv_f_setlkw" >&6; }
12418 if test $ac_cv_f_setlkw = yes; then
12420 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12424 # Check if O_CLOEXEC is defined by fcntl
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12426 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12427 if ${ac_cv_o_cloexec+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12434 #include <fcntl.h>
12436 main ()
12439 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12441 return 0;
12443 _ACEOF
12444 if ac_fn_cxx_try_compile "$LINENO"; then :
12445 ac_cv_o_cloexec=yes
12446 else
12447 ac_cv_o_cloexec=no
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12452 $as_echo "$ac_cv_o_cloexec" >&6; }
12453 if test $ac_cv_o_cloexec = yes; then
12455 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12459 # Check if O_NONBLOCK is defined by fcntl
12460 for ac_header in fcntl.h
12461 do :
12462 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12463 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_FCNTL_H 1
12466 _ACEOF
12469 done
12471 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12473 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12477 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12479 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12484 # C++ Modules would like some networking features to provide the mapping
12485 # server. You can still use modules without them though.
12486 # The following network-related checks could probably do with some
12487 # Windows and other non-linux defenses and checking.
12489 # Local socket connectivity wants AF_UNIX networking
12490 # Check for AF_UNIX networking
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12492 $as_echo_n "checking for AF_UNIX... " >&6; }
12493 if ${ac_cv_af_unix+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12500 #include <sys/types.h>
12501 #include <sys/socket.h>
12502 #include <sys/un.h>
12503 #include <netinet/in.h>
12505 main ()
12508 sockaddr_un un;
12509 un.sun_family = AF_UNSPEC;
12510 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12511 connect (fd, (sockaddr *)&un, sizeof (un));
12513 return 0;
12515 _ACEOF
12516 if ac_fn_cxx_try_compile "$LINENO"; then :
12517 ac_cv_af_unix=yes
12518 else
12519 ac_cv_af_unix=no
12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12524 $as_echo "$ac_cv_af_unix" >&6; }
12525 if test $ac_cv_af_unix = yes; then
12527 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12531 # Remote socket connectivity wants AF_INET6 networking
12532 # Check for AF_INET6 networking
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12534 $as_echo_n "checking for AF_INET6... " >&6; }
12535 if ${ac_cv_af_inet6+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12542 #include <sys/types.h>
12543 #include <sys/socket.h>
12544 #include <netinet/in.h>
12545 #include <netdb.h>
12547 main ()
12550 sockaddr_in6 in6;
12551 in6.sin6_family = AF_UNSPEC;
12552 struct addrinfo *addrs = 0;
12553 struct addrinfo hints;
12554 hints.ai_flags = 0;
12555 hints.ai_family = AF_INET6;
12556 hints.ai_socktype = SOCK_STREAM;
12557 hints.ai_protocol = 0;
12558 hints.ai_canonname = 0;
12559 hints.ai_addr = 0;
12560 hints.ai_next = 0;
12561 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12562 const char *str = gai_strerror (e);
12563 freeaddrinfo (addrs);
12564 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12565 connect (fd, (sockaddr *)&in6, sizeof (in6));
12567 return 0;
12569 _ACEOF
12570 if ac_fn_cxx_try_compile "$LINENO"; then :
12571 ac_cv_af_inet6=yes
12572 else
12573 ac_cv_af_inet6=no
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12578 $as_echo "$ac_cv_af_inet6" >&6; }
12579 if test $ac_cv_af_inet6 = yes; then
12581 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12585 # Check if _LK_LOCK is supported by _locking
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12587 $as_echo_n "checking for _LK_LOCK... " >&6; }
12588 if ${ac_cv_lk_lock+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12595 #include <io.h>
12596 #include <sys/locking.h>
12598 main ()
12601 int fd;
12602 return _locking (fd, _LK_LOCK, 0);
12604 return 0;
12606 _ACEOF
12607 if ac_fn_cxx_try_compile "$LINENO"; then :
12608 ac_cv_lk_lock=yes
12609 else
12610 ac_cv_lk_lock=no
12612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12615 $as_echo "$ac_cv_lk_lock" >&6; }
12616 if test $ac_cv_lk_lock = yes; then
12618 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12622 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12623 CFLAGS="$saved_CFLAGS"
12624 CXXFLAGS="$saved_CXXFLAGS"
12626 # mkdir takes a single argument on some systems.
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12628 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12629 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 #include <sys/types.h>
12636 #ifdef HAVE_SYS_STAT_H
12637 # include <sys/stat.h>
12638 #endif
12639 #ifdef HAVE_UNISTD_H
12640 # include <unistd.h>
12641 #endif
12642 #ifdef HAVE_DIRECT_H
12643 # include <direct.h>
12644 #endif
12646 main ()
12648 mkdir ("foo", 0);
12650 return 0;
12652 _ACEOF
12653 if ac_fn_cxx_try_compile "$LINENO"; then :
12654 gcc_cv_mkdir_takes_one_arg=no
12655 else
12656 gcc_cv_mkdir_takes_one_arg=yes
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12661 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12662 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12664 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12669 # File extensions
12670 manext='.1'
12671 objext='.o'
12675 # With Setjmp/Longjmp based exception handling.
12676 # Check whether --enable-sjlj-exceptions was given.
12677 if test "${enable_sjlj_exceptions+set}" = set; then :
12678 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12679 else
12680 case $target in
12681 lm32*-*-*)
12682 force_sjlj_exceptions=yes
12683 enableval=yes
12686 force_sjlj_exceptions=no
12688 esac
12691 if test $force_sjlj_exceptions = yes; then
12692 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12694 cat >>confdefs.h <<_ACEOF
12695 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12696 _ACEOF
12700 # --------------------------------------------------------
12701 # Build, host, and target specific configuration fragments
12702 # --------------------------------------------------------
12704 # Collect build-machine-specific information.
12705 . ${srcdir}/config.build || exit 1
12707 # Collect host-machine-specific information.
12708 . ${srcdir}/config.host || exit 1
12710 target_gtfiles=
12712 # Collect target-machine-specific information.
12713 . ${srcdir}/config.gcc || exit 1
12715 extra_objs="${host_extra_objs} ${extra_objs}"
12716 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12718 # Default the target-machine variables that were not explicitly set.
12719 if test x"$tm_file" = x
12720 then tm_file=$cpu_type/$cpu_type.h; fi
12722 if test x"$extra_headers" = x
12723 then extra_headers=; fi
12725 if test x$md_file = x
12726 then md_file=$cpu_type/$cpu_type.md; fi
12728 if test x$out_file = x
12729 then out_file=$cpu_type/$cpu_type.cc; fi
12731 if test x"$tmake_file" = x
12732 then tmake_file=$cpu_type/t-$cpu_type
12735 # Support --enable-initfini-array.
12736 if test x$enable_initfini_array != xno; then
12737 tm_file="${tm_file} initfini-array.h"
12740 if test x"$dwarf2" = xyes
12741 then tm_file="$tm_file tm-dwarf2.h"
12744 # Say what files are being used for the output code and MD file.
12745 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12746 echo "Using \`$srcdir/config/$md_file' as machine description file."
12748 # If any of the xm_file variables contain nonexistent files, warn
12749 # about them and drop them.
12752 for x in $build_xm_file; do
12753 if test -f $srcdir/config/$x
12754 then bx="$bx $x"
12755 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12756 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12758 done
12759 build_xm_file="$bx"
12762 for x in $host_xm_file; do
12763 if test -f $srcdir/config/$x
12764 then hx="$hx $x"
12765 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12766 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12768 done
12769 host_xm_file="$hx"
12772 for x in $xm_file; do
12773 if test -f $srcdir/config/$x
12774 then tx="$tx $x"
12775 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12776 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12778 done
12779 xm_file="$tx"
12781 count=a
12782 for f in $tm_file; do
12783 count=${count}x
12784 done
12785 if test $count = ax; then
12786 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12787 else
12788 echo "Using the following target machine macro files:"
12789 for f in $tm_file; do
12790 echo " $srcdir/config/$f"
12791 done
12794 if test x$use_long_long_for_widest_fast_int = xyes; then
12796 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12800 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12802 cat >>confdefs.h <<_ACEOF
12803 #define HAVE_GNU_LD $gnu_ld_bool
12804 _ACEOF
12807 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12809 cat >>confdefs.h <<_ACEOF
12810 #define HAVE_GNU_AS $gnu_as_bool
12811 _ACEOF
12814 count=a
12815 for f in $host_xm_file; do
12816 count=${count}x
12817 done
12818 if test $count = a; then
12820 elif test $count = ax; then
12821 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12822 else
12823 echo "Using the following host machine macro files:"
12824 for f in $host_xm_file; do
12825 echo " $srcdir/config/$f"
12826 done
12828 echo "Using ${out_host_hook_obj} for host machine hooks."
12830 if test "$host_xm_file" != "$build_xm_file"; then
12831 count=a
12832 for f in $build_xm_file; do
12833 count=${count}x
12834 done
12835 if test $count = a; then
12837 elif test $count = ax; then
12838 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12839 else
12840 echo "Using the following build machine macro files:"
12841 for f in $build_xm_file; do
12842 echo " $srcdir/config/$f"
12843 done
12847 if test -n "$configured_native_system_header_dir"; then
12848 native_system_header_dir=$configured_native_system_header_dir
12850 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12853 case ${host} in
12854 powerpc*-*-darwin*)
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12856 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12857 if ${gcc_cv_mcontext_underscores+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12863 #include <sys/cdefs.h>
12864 #include <sys/signal.h>
12865 #include <ucontext.h>
12866 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12868 _ACEOF
12869 if ac_fn_cxx_try_compile "$LINENO"; then :
12870 gcc_cv_mcontext_underscores=no
12871 else
12872 gcc_cv_mcontext_underscores=yes
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12877 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12878 if test $gcc_cv_mcontext_underscores = yes; then
12880 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12884 esac
12886 # ---------
12887 # Threading
12888 # ---------
12890 # Check if a valid thread package
12891 case ${enable_threads} in
12892 "" | no)
12893 # No threads
12894 target_thread_file='single'
12896 yes)
12897 # default
12898 target_thread_file='single'
12900 aix | dce | lynx | mipssde | posix | rtems | \
12901 single | tpf | vxworks | win32 | mcf)
12902 target_thread_file=${enable_threads}
12905 echo "${enable_threads} is an unknown thread package" 1>&2
12906 exit 1
12908 esac
12910 if test x${thread_file} = x; then
12911 # No thread file set by target-specific clauses in config.gcc,
12912 # so use file chosen by default logic above
12913 thread_file=${target_thread_file}
12916 # --------
12917 # UNSORTED
12918 # --------
12920 use_cxa_atexit=no
12921 if test x$enable___cxa_atexit = xyes || \
12922 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12923 if test x$host = x$target; then
12924 case $host in
12925 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12926 # keyed to flag_use_cxa_atexit
12927 *-*-mingw32*)
12928 use_cxa_atexit=yes
12930 powerpc-ibm-aix*)
12931 use_cxa_atexit=yes
12934 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12935 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12936 use_cxa_atexit=yes
12937 else
12938 echo "__cxa_atexit can't be enabled on this target"
12942 esac
12943 else
12944 # We can't check for __cxa_atexit when building a cross, so assume
12945 # it is available
12946 use_cxa_atexit=yes
12948 if test x$use_cxa_atexit = xyes; then
12950 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12955 # Look for a file containing extra machine modes.
12956 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12957 extra_modes_file='$(srcdir)'/config/${extra_modes}
12960 cat >>confdefs.h <<_ACEOF
12961 #define EXTRA_MODES_FILE "config/$extra_modes"
12962 _ACEOF
12966 # Convert extra_options into a form suitable for Makefile use.
12967 extra_opt_files=
12968 all_opt_files=
12969 for f in $extra_options; do
12970 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12971 all_opt_files="$all_opt_files $srcdir/config/$f"
12972 done
12975 # auto-host.h is the file containing items generated by autoconf and is
12976 # the first file included by config.h.
12977 # If host=build, it is correct to have bconfig include auto-host.h
12978 # as well. If host!=build, we are in error and need to do more
12979 # work to find out the build config parameters.
12980 if test x$host = x$build
12981 then
12982 build_auto=auto-host.h
12983 HAVE_AUTO_BUILD='# '
12984 else
12985 # We create a subdir, then run autoconf in the subdir.
12986 # To prevent recursion we set host and build for the new
12987 # invocation of configure to the build for this invocation
12988 # of configure.
12989 tempdir=build.$$
12990 rm -rf $tempdir
12991 mkdir $tempdir
12992 cd $tempdir
12993 case ${srcdir} in
12994 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12995 *) realsrcdir=../${srcdir};;
12996 esac
12997 # Clearing GMPINC is necessary to prevent host headers being
12998 # used by the build compiler. Defining GENERATOR_FILE stops
12999 # system.h from including gmp.h.
13000 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13001 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13002 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13003 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13004 ${realsrcdir}/configure \
13005 --enable-languages=${enable_languages-all} \
13006 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13007 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13008 --target=$target_alias --host=$build_alias \
13009 --build=$build_alias || exit # retaining $tempdir
13011 # We just finished tests for the build machine, so rename
13012 # the file auto-build.h in the gcc directory.
13013 mv auto-host.h ../auto-build.h
13014 cd ..
13015 rm -rf $tempdir
13016 build_auto=auto-build.h
13017 HAVE_AUTO_BUILD=
13022 tm_file="${tm_file} defaults.h"
13023 tm_p_file="${tm_p_file} tm-preds.h"
13024 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13025 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13026 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13027 # put this back in temporarily.
13028 xm_file="auto-host.h ansidecl.h ${xm_file}"
13030 # --------
13031 # UNSORTED
13032 # --------
13034 # Compile in configure arguments.
13035 if test -f configargs.h ; then
13036 # Being re-configured.
13037 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13038 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13039 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13040 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13042 else
13043 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13046 # Double all backslashes and backslash all quotes to turn
13047 # gcc_config_arguments into a C string.
13048 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13049 $gcc_config_arguments
13051 gcc_config_arguments_str=`cat conftest.out`
13052 rm -f conftest.out
13054 cat > configargs.h <<EOF
13055 /* Generated automatically. */
13056 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13057 static const char thread_model[] = "$thread_file";
13059 static const struct {
13060 const char *name, *value;
13061 } configure_default_options[] = $configure_default_options;
13064 gcc_BASEVER=`cat $srcdir/BASE-VER`
13065 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13066 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13067 if test -f $srcdir/REVISION ; then
13068 gcc_REVISION=`cat $srcdir/REVISION`
13069 else
13070 gcc_REVISION=""
13072 cat > plugin-version.h <<EOF
13073 #include "configargs.h"
13075 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13076 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13077 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13078 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13080 static char basever[] = "$gcc_BASEVER";
13081 static char datestamp[] = "$gcc_DATESTAMP";
13082 static char devphase[] = "$gcc_DEVPHASE";
13083 static char revision[] = "$gcc_REVISION";
13085 /* FIXME plugins: We should make the version information more precise.
13086 One way to do is to add a checksum. */
13088 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13089 devphase, revision,
13090 configuration_arguments};
13093 # Determine what GCC version number to use in filesystem paths.
13095 get_gcc_base_ver="cat"
13097 # Check whether --with-gcc-major-version-only was given.
13098 if test "${with_gcc_major_version_only+set}" = set; then :
13099 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13100 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13108 # Internationalization
13109 # If we haven't got the data from the intl directory,
13110 # assume NLS is disabled.
13111 USE_NLS=no
13112 LIBINTL=
13113 LIBINTL_DEP=
13114 INCINTL=
13115 XGETTEXT=
13116 GMSGFMT=
13117 POSUB=
13119 if test -f ../intl/config.intl; then
13120 . ../intl/config.intl
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13123 $as_echo_n "checking whether NLS is requested... " >&6; }
13124 if test x"$USE_NLS" != xyes; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13129 $as_echo "yes" >&6; }
13131 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13135 $as_echo_n "checking for catalogs to be installed... " >&6; }
13136 # Look for .po and .gmo files in the source directory.
13137 CATALOGS=
13138 XLINGUAS=
13139 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13140 # If there aren't any .gmo files the shell will give us the
13141 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13142 # weeded out.
13143 case "$cat" in *\**)
13144 continue;;
13145 esac
13146 # The quadruple backslash is collapsed to a double backslash
13147 # by the backticks, then collapsed again by the double quotes,
13148 # leaving us with one backslash in the sed expression (right
13149 # before the dot that mustn't act as a wildcard).
13150 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13151 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13152 # The user is allowed to set LINGUAS to a list of languages to
13153 # install catalogs for. If it's empty that means "all of them."
13154 if test "x$LINGUAS" = x; then
13155 CATALOGS="$CATALOGS $cat"
13156 XLINGUAS="$XLINGUAS $lang"
13157 else
13158 case "$LINGUAS" in *$lang*)
13159 CATALOGS="$CATALOGS $cat"
13160 XLINGUAS="$XLINGUAS $lang"
13162 esac
13164 done
13165 LINGUAS="$XLINGUAS"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13167 $as_echo "$LINGUAS" >&6; }
13170 DATADIRNAME=share
13172 INSTOBJEXT=.mo
13174 GENCAT=gencat
13176 CATOBJEXT=.gmo
13180 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13181 # -liconv on the link line twice.
13182 case "$LIBINTL" in *$LIBICONV*)
13183 LIBICONV= ;;
13184 esac
13186 # Check whether --enable-secureplt was given.
13187 if test "${enable_secureplt+set}" = set; then :
13188 enableval=$enable_secureplt;
13192 # Check whether --enable-mingw-wildcard was given.
13193 if test "${enable_mingw_wildcard+set}" = set; then :
13194 enableval=$enable_mingw_wildcard;
13195 else
13196 enable_mingw_wildcard=platform
13199 if test x"$enable_mingw_wildcard" != xplatform ; then :
13201 cat >>confdefs.h <<_ACEOF
13202 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13203 _ACEOF
13207 # Check whether --enable-large-address-aware was given.
13208 if test "${enable_large_address_aware+set}" = set; then :
13209 enableval=$enable_large_address_aware;
13212 if test x"$enable_large_address_aware" = xyes; then :
13214 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13218 # Check whether --enable-leading-mingw64-underscores was given.
13219 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13220 enableval=$enable_leading_mingw64_underscores;
13223 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13225 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13229 # Check whether --enable-cld was given.
13230 if test "${enable_cld+set}" = set; then :
13231 enableval=$enable_cld;
13232 else
13233 enable_cld=no
13237 # Check whether --enable-frame-pointer was given.
13238 if test "${enable_frame_pointer+set}" = set; then :
13239 enableval=$enable_frame_pointer;
13240 else
13242 case $target_os in
13243 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13244 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13245 enable_frame_pointer=no
13248 enable_frame_pointer=yes
13250 esac
13255 case $target in
13256 i[34567]86-*-* | x86_64-*-*)
13257 if test "x$enable_cld" = xyes; then
13258 tm_defines="${tm_defines} USE_IX86_CLD=1"
13260 if test "x$enable_frame_pointer" = xyes; then
13261 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13264 esac
13266 # Windows32 Registry support for specifying GCC installation paths.
13267 # Check whether --enable-win32-registry was given.
13268 if test "${enable_win32_registry+set}" = set; then :
13269 enableval=$enable_win32_registry;
13273 case $host_os in
13274 win32 | pe | cygwin* | mingw32*)
13275 if test "x$enable_win32_registry" != xno; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13277 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13278 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280 else
13281 ac_func_search_save_LIBS=$LIBS
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13285 /* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 char RegOpenKeyExA ();
13293 main ()
13295 return RegOpenKeyExA ();
13297 return 0;
13299 _ACEOF
13300 for ac_lib in '' advapi32; do
13301 if test -z "$ac_lib"; then
13302 ac_res="none required"
13303 else
13304 ac_res=-l$ac_lib
13305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13307 if ac_fn_cxx_try_link "$LINENO"; then :
13308 ac_cv_search_RegOpenKeyExA=$ac_res
13310 rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext
13312 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13313 break
13315 done
13316 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13318 else
13319 ac_cv_search_RegOpenKeyExA=no
13321 rm conftest.$ac_ext
13322 LIBS=$ac_func_search_save_LIBS
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13325 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13326 ac_res=$ac_cv_search_RegOpenKeyExA
13327 if test "$ac_res" != no; then :
13328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13330 else
13331 enable_win32_registry=no
13336 if test "x$enable_win32_registry" != xno; then
13338 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13341 if test "x$enable_win32_registry" != xyes \
13342 && test "x$enable_win32_registry" != x; then
13344 cat >>confdefs.h <<_ACEOF
13345 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13346 _ACEOF
13351 esac
13353 # Get an absolute path to the GCC top-level source directory
13354 holddir=`${PWDCMD-pwd}`
13355 cd $srcdir
13356 topdir=`${PWDCMD-pwd}`
13357 cd $holddir
13359 # Conditionalize the makefile for this host machine.
13360 xmake_file=
13361 for f in ${host_xmake_file}
13363 if test -f ${srcdir}/config/$f
13364 then
13365 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13367 done
13369 # Conditionalize the makefile for this target machine.
13370 tmake_file_=
13371 for f in ${tmake_file}
13373 if test -f ${srcdir}/config/$f
13374 then
13375 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13377 done
13378 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13380 out_object_file=`basename $out_file .cc`.o
13381 common_out_object_file=`basename $common_out_file .cc`.o
13383 tm_file_list="options.h"
13384 tm_include_list="options.h insn-constants.h"
13385 for f in $tm_file; do
13386 case $f in
13387 ./* )
13388 f=`echo $f | sed 's/^..//'`
13389 tm_file_list="${tm_file_list} $f"
13390 tm_include_list="${tm_include_list} $f"
13392 defaults.h )
13393 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13394 tm_include_list="${tm_include_list} $f"
13397 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13398 tm_include_list="${tm_include_list} config/$f"
13400 esac
13401 done
13403 tm_p_file_list=
13404 tm_p_include_list=
13405 for f in $tm_p_file; do
13406 case $f in
13407 tm-preds.h )
13408 tm_p_file_list="${tm_p_file_list} $f"
13409 tm_p_include_list="${tm_p_include_list} $f"
13412 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13413 tm_p_include_list="${tm_p_include_list} config/$f"
13414 esac
13415 done
13417 tm_d_file_list=
13418 tm_d_include_list=
13419 for f in $tm_d_file; do
13420 case $f in
13422 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13423 tm_d_include_list="${tm_d_include_list} config/$f"
13425 esac
13426 done
13428 xm_file_list=
13429 xm_include_list=
13430 for f in $xm_file; do
13431 case $f in
13432 ansidecl.h )
13433 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13434 xm_include_list="${xm_include_list} $f"
13436 auto-host.h )
13437 xm_file_list="${xm_file_list} $f"
13438 xm_include_list="${xm_include_list} $f"
13441 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13442 xm_include_list="${xm_include_list} config/$f"
13444 esac
13445 done
13447 host_xm_file_list=
13448 host_xm_include_list=
13449 for f in $host_xm_file; do
13450 case $f in
13451 ansidecl.h )
13452 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13453 host_xm_include_list="${host_xm_include_list} $f"
13455 auto-host.h )
13456 host_xm_file_list="${host_xm_file_list} $f"
13457 host_xm_include_list="${host_xm_include_list} $f"
13460 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13461 host_xm_include_list="${host_xm_include_list} config/$f"
13463 esac
13464 done
13466 build_xm_file_list=
13467 for f in $build_xm_file; do
13468 case $f in
13469 ansidecl.h )
13470 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13471 build_xm_include_list="${build_xm_include_list} $f"
13473 auto-build.h | auto-host.h )
13474 build_xm_file_list="${build_xm_file_list} $f"
13475 build_xm_include_list="${build_xm_include_list} $f"
13478 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13479 build_xm_include_list="${build_xm_include_list} config/$f"
13481 esac
13482 done
13484 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13485 # cross-compiler which does not use the native headers and libraries.
13486 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13487 CROSS=
13488 ALL=all.internal
13489 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13490 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13492 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13493 test x$build != x$host || test "x$with_build_sysroot" != x; then
13494 if test "x$with_build_sysroot" != x; then
13495 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13496 else
13497 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13500 if test x$host != x$target
13501 then
13502 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13503 ALL=all.cross
13504 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13505 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13506 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13509 if test "x$with_build_sysroot" != "x"; then
13510 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13511 elif test "x$with_sysroot" = x; then
13512 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13513 elif test "x$with_sysroot" = xyes; then
13514 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13515 else
13516 target_header_dir="${with_sysroot}${native_system_header_dir}"
13518 else
13519 target_header_dir=${native_system_header_dir}
13522 # If this is a cross-compiler that does not
13523 # have its own set of headers then define
13524 # inhibit_libc
13526 # If this is using newlib, without having the headers available now,
13527 # then define inhibit_libc in LIBGCC2_CFLAGS.
13528 # This prevents libgcc2 from containing any code which requires libc
13529 # support.
13530 : ${inhibit_libc=false}
13531 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13532 test x$with_newlib = xyes ; } &&
13533 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13534 inhibit_libc=true
13538 # When building gcc with a cross-compiler, we need to adjust things so
13539 # that the generator programs are still built with the native compiler.
13540 # Also, we cannot run fixincludes.
13542 # These are the normal (build=host) settings:
13543 CC_FOR_BUILD='$(CC)'
13544 CXX_FOR_BUILD='$(CXX)'
13545 BUILD_CFLAGS='$(ALL_CFLAGS)'
13546 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13547 BUILD_LDFLAGS='$(LDFLAGS)'
13548 STMP_FIXINC=stmp-fixinc
13550 # And these apply if build != host, or we are generating coverage data
13551 if test x$build != x$host || test "x$coverage_flags" != x
13552 then
13553 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13554 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13555 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13559 if test x$enable_fixincludes = xno;
13560 then
13561 STMP_FIXINC=''
13564 # Expand extra_headers to include complete path.
13565 # This substitutes for lots of t-* files.
13566 extra_headers_list=
13567 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13568 for file in ${extra_headers} ; do
13569 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13570 done
13572 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13573 if test x"$use_gcc_tgmath" = xyes
13574 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13577 # Define collect2 in Makefile.
13578 case $host_can_use_collect2 in
13579 no) collect2= ;;
13580 *) collect2='collect2$(exeext)' ;;
13581 esac
13584 # Add a definition of USE_COLLECT2 if system wants one.
13585 case $use_collect2 in
13586 no) use_collect2= ;;
13587 "") ;;
13589 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13590 xm_defines="${xm_defines} USE_COLLECT2"
13591 case $host_can_use_collect2 in
13593 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13595 esac
13597 esac
13600 cat >>confdefs.h <<_ACEOF
13601 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13602 _ACEOF
13605 # ---------------------------
13606 # Assembler & linker features
13607 # ---------------------------
13609 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13610 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13611 # However when ld-new is first executed from the build tree, libtool will
13612 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13613 # to the build tree. While doing this we need to use the previous-stage
13614 # linker, or we have an infinite loop. The presence of a shell script as
13615 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13616 # the gcc/collect-ld script. So we need to know how libtool works, or
13617 # exec-tool will fail.
13620 case `pwd` in
13621 *\ * | *\ *)
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13623 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13624 esac
13628 macro_version='2.2.7a'
13629 macro_revision='1.3134'
13643 ltmain="$ac_aux_dir/ltmain.sh"
13645 # Backslashify metacharacters that are still active within
13646 # double-quoted strings.
13647 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13649 # Same as above, but do not quote variable references.
13650 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13652 # Sed substitution to delay expansion of an escaped shell variable in a
13653 # double_quote_subst'ed string.
13654 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13656 # Sed substitution to delay expansion of an escaped single quote.
13657 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13659 # Sed substitution to avoid accidental globbing in evaled expressions
13660 no_glob_subst='s/\*/\\\*/g'
13662 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13663 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13664 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13667 $as_echo_n "checking how to print strings... " >&6; }
13668 # Test print first, because it will be a builtin if present.
13669 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13670 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13671 ECHO='print -r --'
13672 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13673 ECHO='printf %s\n'
13674 else
13675 # Use this function as a fallback that always works.
13676 func_fallback_echo ()
13678 eval 'cat <<_LTECHO_EOF
13680 _LTECHO_EOF'
13682 ECHO='func_fallback_echo'
13685 # func_echo_all arg...
13686 # Invoke $ECHO with all args, space-separated.
13687 func_echo_all ()
13689 $ECHO ""
13692 case "$ECHO" in
13693 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13694 $as_echo "printf" >&6; } ;;
13695 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13696 $as_echo "print -r" >&6; } ;;
13697 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13698 $as_echo "cat" >&6; } ;;
13699 esac
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13715 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13716 if ${ac_cv_path_SED+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13720 for ac_i in 1 2 3 4 5 6 7; do
13721 ac_script="$ac_script$as_nl$ac_script"
13722 done
13723 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13724 { ac_script=; unset ac_script;}
13725 if test -z "$SED"; then
13726 ac_path_SED_found=false
13727 # Loop through the user's path and test for each of PROGNAME-LIST
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13731 IFS=$as_save_IFS
13732 test -z "$as_dir" && as_dir=.
13733 for ac_prog in sed gsed; do
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13736 as_fn_executable_p "$ac_path_SED" || continue
13737 # Check for GNU ac_path_SED and select it if it is found.
13738 # Check for GNU $ac_path_SED
13739 case `"$ac_path_SED" --version 2>&1` in
13740 *GNU*)
13741 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13743 ac_count=0
13744 $as_echo_n 0123456789 >"conftest.in"
13745 while :
13747 cat "conftest.in" "conftest.in" >"conftest.tmp"
13748 mv "conftest.tmp" "conftest.in"
13749 cp "conftest.in" "conftest.nl"
13750 $as_echo '' >> "conftest.nl"
13751 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13753 as_fn_arith $ac_count + 1 && ac_count=$as_val
13754 if test $ac_count -gt ${ac_path_SED_max-0}; then
13755 # Best one so far, save it but keep looking for a better one
13756 ac_cv_path_SED="$ac_path_SED"
13757 ac_path_SED_max=$ac_count
13759 # 10*(2^10) chars as input seems more than enough
13760 test $ac_count -gt 10 && break
13761 done
13762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13763 esac
13765 $ac_path_SED_found && break 3
13766 done
13767 done
13768 done
13769 IFS=$as_save_IFS
13770 if test -z "$ac_cv_path_SED"; then
13771 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13773 else
13774 ac_cv_path_SED=$SED
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13779 $as_echo "$ac_cv_path_SED" >&6; }
13780 SED="$ac_cv_path_SED"
13781 rm -f conftest.sed
13783 test -z "$SED" && SED=sed
13784 Xsed="$SED -e 1s/^X//"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13797 $as_echo_n "checking for fgrep... " >&6; }
13798 if ${ac_cv_path_FGREP+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13802 then ac_cv_path_FGREP="$GREP -F"
13803 else
13804 if test -z "$FGREP"; then
13805 ac_path_FGREP_found=false
13806 # Loop through the user's path and test for each of PROGNAME-LIST
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_prog in fgrep; do
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13815 as_fn_executable_p "$ac_path_FGREP" || continue
13816 # Check for GNU ac_path_FGREP and select it if it is found.
13817 # Check for GNU $ac_path_FGREP
13818 case `"$ac_path_FGREP" --version 2>&1` in
13819 *GNU*)
13820 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13822 ac_count=0
13823 $as_echo_n 0123456789 >"conftest.in"
13824 while :
13826 cat "conftest.in" "conftest.in" >"conftest.tmp"
13827 mv "conftest.tmp" "conftest.in"
13828 cp "conftest.in" "conftest.nl"
13829 $as_echo 'FGREP' >> "conftest.nl"
13830 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13832 as_fn_arith $ac_count + 1 && ac_count=$as_val
13833 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13834 # Best one so far, save it but keep looking for a better one
13835 ac_cv_path_FGREP="$ac_path_FGREP"
13836 ac_path_FGREP_max=$ac_count
13838 # 10*(2^10) chars as input seems more than enough
13839 test $ac_count -gt 10 && break
13840 done
13841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13842 esac
13844 $ac_path_FGREP_found && break 3
13845 done
13846 done
13847 done
13848 IFS=$as_save_IFS
13849 if test -z "$ac_cv_path_FGREP"; then
13850 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13852 else
13853 ac_cv_path_FGREP=$FGREP
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13859 $as_echo "$ac_cv_path_FGREP" >&6; }
13860 FGREP="$ac_cv_path_FGREP"
13863 test -z "$GREP" && GREP=grep
13883 # Check whether --with-gnu-ld was given.
13884 if test "${with_gnu_ld+set}" = set; then :
13885 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13886 else
13887 with_gnu_ld=no
13890 ac_prog=ld
13891 if test "$GCC" = yes; then
13892 # Check if gcc -print-prog-name=ld gives a path.
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13894 $as_echo_n "checking for ld used by $CC... " >&6; }
13895 case $host in
13896 *-*-mingw*)
13897 # gcc leaves a trailing carriage return which upsets mingw
13898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13901 esac
13902 case $ac_prog in
13903 # Accept absolute paths.
13904 [\\/]* | ?:[\\/]*)
13905 re_direlt='/[^/][^/]*/\.\./'
13906 # Canonicalize the pathname of ld
13907 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13908 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13909 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13910 done
13911 test -z "$LD" && LD="$ac_prog"
13914 # If it fails, then pretend we aren't using GCC.
13915 ac_prog=ld
13918 # If it is relative, then search for the first ld in PATH.
13919 with_gnu_ld=unknown
13921 esac
13922 elif test "$with_gnu_ld" = yes; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13924 $as_echo_n "checking for GNU ld... " >&6; }
13925 else
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13927 $as_echo_n "checking for non-GNU ld... " >&6; }
13929 if ${lt_cv_path_LD+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 if test -z "$LD"; then
13933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13934 for ac_dir in $PATH; do
13935 IFS="$lt_save_ifs"
13936 test -z "$ac_dir" && ac_dir=.
13937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13938 lt_cv_path_LD="$ac_dir/$ac_prog"
13939 # Check to see if the program is GNU ld. I'd rather use --version,
13940 # but apparently some variants of GNU ld only accept -v.
13941 # Break only if it was the GNU/non-GNU ld that we prefer.
13942 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13943 *GNU* | *'with BFD'*)
13944 test "$with_gnu_ld" != no && break
13947 test "$with_gnu_ld" != yes && break
13949 esac
13951 done
13952 IFS="$lt_save_ifs"
13953 else
13954 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13958 LD="$lt_cv_path_LD"
13959 if test -n "$LD"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13961 $as_echo "$LD" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13966 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13968 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13969 if ${lt_cv_prog_gnu_ld+:} false; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13973 case `$LD -v 2>&1 </dev/null` in
13974 *GNU* | *'with BFD'*)
13975 lt_cv_prog_gnu_ld=yes
13978 lt_cv_prog_gnu_ld=no
13980 esac
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13983 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13984 with_gnu_ld=$lt_cv_prog_gnu_ld
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13995 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13996 if ${lt_cv_path_NM+:} false; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 if test -n "$NM"; then
14000 # Let the user override the test.
14001 lt_cv_path_NM="$NM"
14002 else
14003 lt_nm_to_check="${ac_tool_prefix}nm"
14004 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14005 lt_nm_to_check="$lt_nm_to_check nm"
14007 for lt_tmp_nm in $lt_nm_to_check; do
14008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14009 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14010 IFS="$lt_save_ifs"
14011 test -z "$ac_dir" && ac_dir=.
14012 tmp_nm="$ac_dir/$lt_tmp_nm"
14013 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14014 # Check to see if the nm accepts a BSD-compat flag.
14015 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14016 # nm: unknown option "B" ignored
14017 # Tru64's nm complains that /dev/null is an invalid object file
14018 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14019 */dev/null* | *'Invalid file or object type'*)
14020 lt_cv_path_NM="$tmp_nm -B"
14021 break
14024 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14025 */dev/null*)
14026 lt_cv_path_NM="$tmp_nm -p"
14027 break
14030 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14031 continue # so that we can try to find one that supports BSD flags
14033 esac
14035 esac
14037 done
14038 IFS="$lt_save_ifs"
14039 done
14040 : ${lt_cv_path_NM=no}
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14044 $as_echo "$lt_cv_path_NM" >&6; }
14045 if test "$lt_cv_path_NM" != "no"; then
14046 NM="$lt_cv_path_NM"
14047 else
14048 # Didn't find any BSD compatible name lister, look for dumpbin.
14049 if test -n "$DUMPBIN"; then :
14050 # Let the user override the test.
14051 else
14052 if test -n "$ac_tool_prefix"; then
14053 for ac_prog in dumpbin "link -dump"
14055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_prog_DUMPBIN+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 if test -n "$DUMPBIN"; then
14063 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14064 else
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14072 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14076 done
14077 done
14078 IFS=$as_save_IFS
14082 DUMPBIN=$ac_cv_prog_DUMPBIN
14083 if test -n "$DUMPBIN"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14085 $as_echo "$DUMPBIN" >&6; }
14086 else
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14092 test -n "$DUMPBIN" && break
14093 done
14095 if test -z "$DUMPBIN"; then
14096 ac_ct_DUMPBIN=$DUMPBIN
14097 for ac_prog in dumpbin "link -dump"
14099 # Extract the first word of "$ac_prog", so it can be a program name with args.
14100 set dummy $ac_prog; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$ac_ct_DUMPBIN"; then
14107 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14116 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14120 done
14121 done
14122 IFS=$as_save_IFS
14126 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14127 if test -n "$ac_ct_DUMPBIN"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14129 $as_echo "$ac_ct_DUMPBIN" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14136 test -n "$ac_ct_DUMPBIN" && break
14137 done
14139 if test "x$ac_ct_DUMPBIN" = x; then
14140 DUMPBIN=":"
14141 else
14142 case $cross_compiling:$ac_tool_warned in
14143 yes:)
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14146 ac_tool_warned=yes ;;
14147 esac
14148 DUMPBIN=$ac_ct_DUMPBIN
14152 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14153 *COFF*)
14154 DUMPBIN="$DUMPBIN -symbols"
14157 DUMPBIN=:
14159 esac
14162 if test "$DUMPBIN" != ":"; then
14163 NM="$DUMPBIN"
14166 test -z "$NM" && NM=nm
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14174 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14175 if ${lt_cv_nm_interface+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 lt_cv_nm_interface="BSD nm"
14179 echo "int some_variable = 0;" > conftest.$ac_ext
14180 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14181 (eval "$ac_compile" 2>conftest.err)
14182 cat conftest.err >&5
14183 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14184 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14185 cat conftest.err >&5
14186 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14187 cat conftest.out >&5
14188 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14189 lt_cv_nm_interface="MS dumpbin"
14191 rm -f conftest*
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14194 $as_echo "$lt_cv_nm_interface" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14197 $as_echo_n "checking whether ln -s works... " >&6; }
14198 LN_S=$as_ln_s
14199 if test "$LN_S" = "ln -s"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14201 $as_echo "yes" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14204 $as_echo "no, using $LN_S" >&6; }
14207 # find the maximum length of command line arguments
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14209 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14210 if ${lt_cv_sys_max_cmd_len+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14214 teststring="ABCD"
14216 case $build_os in
14217 msdosdjgpp*)
14218 # On DJGPP, this test can blow up pretty badly due to problems in libc
14219 # (any single argument exceeding 2000 bytes causes a buffer overrun
14220 # during glob expansion). Even if it were fixed, the result of this
14221 # check would be larger than it should be.
14222 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14225 gnu*)
14226 # Under GNU Hurd, this test is not required because there is
14227 # no limit to the length of command line arguments.
14228 # Libtool will interpret -1 as no limit whatsoever
14229 lt_cv_sys_max_cmd_len=-1;
14232 cygwin* | mingw* | cegcc*)
14233 # On Win9x/ME, this test blows up -- it succeeds, but takes
14234 # about 5 minutes as the teststring grows exponentially.
14235 # Worse, since 9x/ME are not pre-emptively multitasking,
14236 # you end up with a "frozen" computer, even though with patience
14237 # the test eventually succeeds (with a max line length of 256k).
14238 # Instead, let's just punt: use the minimum linelength reported by
14239 # all of the supported platforms: 8192 (on NT/2K/XP).
14240 lt_cv_sys_max_cmd_len=8192;
14243 mint*)
14244 # On MiNT this can take a long time and run out of memory.
14245 lt_cv_sys_max_cmd_len=8192;
14248 amigaos*)
14249 # On AmigaOS with pdksh, this test takes hours, literally.
14250 # So we just punt and use a minimum line length of 8192.
14251 lt_cv_sys_max_cmd_len=8192;
14254 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14255 # This has been around since 386BSD, at least. Likely further.
14256 if test -x /sbin/sysctl; then
14257 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14258 elif test -x /usr/sbin/sysctl; then
14259 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14260 else
14261 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14263 # And add a safety zone
14264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14268 interix*)
14269 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14270 lt_cv_sys_max_cmd_len=196608
14273 osf*)
14274 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14275 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14276 # nice to cause kernel panics so lets avoid the loop below.
14277 # First set a reasonable default.
14278 lt_cv_sys_max_cmd_len=16384
14280 if test -x /sbin/sysconfig; then
14281 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14282 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14283 esac
14286 sco3.2v5*)
14287 lt_cv_sys_max_cmd_len=102400
14289 sysv5* | sco5v6* | sysv4.2uw2*)
14290 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14291 if test -n "$kargmax"; then
14292 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14293 else
14294 lt_cv_sys_max_cmd_len=32768
14298 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14299 if test -n "$lt_cv_sys_max_cmd_len"; then
14300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14302 else
14303 # Make teststring a little bigger before we do anything with it.
14304 # a 1K string should be a reasonable start.
14305 for i in 1 2 3 4 5 6 7 8 ; do
14306 teststring=$teststring$teststring
14307 done
14308 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14309 # If test is not a shell built-in, we'll probably end up computing a
14310 # maximum length that is only half of the actual maximum length, but
14311 # we can't tell.
14312 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14313 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14314 test $i != 17 # 1/2 MB should be enough
14316 i=`expr $i + 1`
14317 teststring=$teststring$teststring
14318 done
14319 # Only check the string length outside the loop.
14320 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14321 teststring=
14322 # Add a significant safety factor because C++ compilers can tack on
14323 # massive amounts of additional arguments before passing them to the
14324 # linker. It appears as though 1/2 is a usable value.
14325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14328 esac
14332 if test -n $lt_cv_sys_max_cmd_len ; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14334 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14337 $as_echo "none" >&6; }
14339 max_cmd_len=$lt_cv_sys_max_cmd_len
14346 : ${CP="cp -f"}
14347 : ${MV="mv -f"}
14348 : ${RM="rm -f"}
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14351 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14352 # Try some XSI features
14353 xsi_shell=no
14354 ( _lt_dummy="a/b/c"
14355 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14356 = c,a/b,, \
14357 && eval 'test $(( 1 + 1 )) -eq 2 \
14358 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14359 && xsi_shell=yes
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14361 $as_echo "$xsi_shell" >&6; }
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14365 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14366 lt_shell_append=no
14367 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14368 >/dev/null 2>&1 \
14369 && lt_shell_append=yes
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14371 $as_echo "$lt_shell_append" >&6; }
14374 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14375 lt_unset=unset
14376 else
14377 lt_unset=false
14384 # test EBCDIC or ASCII
14385 case `echo X|tr X '\101'` in
14386 A) # ASCII based system
14387 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14388 lt_SP2NL='tr \040 \012'
14389 lt_NL2SP='tr \015\012 \040\040'
14391 *) # EBCDIC based system
14392 lt_SP2NL='tr \100 \n'
14393 lt_NL2SP='tr \r\n \100\100'
14395 esac
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14406 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14407 if ${lt_cv_ld_reload_flag+:} false; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 lt_cv_ld_reload_flag='-r'
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14413 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14414 reload_flag=$lt_cv_ld_reload_flag
14415 case $reload_flag in
14416 "" | " "*) ;;
14417 *) reload_flag=" $reload_flag" ;;
14418 esac
14419 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14420 case $host_os in
14421 darwin*)
14422 if test "$GCC" = yes; then
14423 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14424 else
14425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14428 esac
14438 if test -n "$ac_tool_prefix"; then
14439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14440 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442 $as_echo_n "checking for $ac_word... " >&6; }
14443 if ${ac_cv_prog_OBJDUMP+:} false; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 if test -n "$OBJDUMP"; then
14447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14448 else
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 break 2
14460 done
14461 done
14462 IFS=$as_save_IFS
14466 OBJDUMP=$ac_cv_prog_OBJDUMP
14467 if test -n "$OBJDUMP"; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14469 $as_echo "$OBJDUMP" >&6; }
14470 else
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 $as_echo "no" >&6; }
14477 if test -z "$ac_cv_prog_OBJDUMP"; then
14478 ac_ct_OBJDUMP=$OBJDUMP
14479 # Extract the first word of "objdump", so it can be a program name with args.
14480 set dummy objdump; ac_word=$2
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14482 $as_echo_n "checking for $ac_word... " >&6; }
14483 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 if test -n "$ac_ct_OBJDUMP"; then
14487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14488 else
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14492 IFS=$as_save_IFS
14493 test -z "$as_dir" && as_dir=.
14494 for ac_exec_ext in '' $ac_executable_extensions; do
14495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14496 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14498 break 2
14500 done
14501 done
14502 IFS=$as_save_IFS
14506 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14507 if test -n "$ac_ct_OBJDUMP"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14509 $as_echo "$ac_ct_OBJDUMP" >&6; }
14510 else
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14512 $as_echo "no" >&6; }
14515 if test "x$ac_ct_OBJDUMP" = x; then
14516 OBJDUMP="false"
14517 else
14518 case $cross_compiling:$ac_tool_warned in
14519 yes:)
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14522 ac_tool_warned=yes ;;
14523 esac
14524 OBJDUMP=$ac_ct_OBJDUMP
14526 else
14527 OBJDUMP="$ac_cv_prog_OBJDUMP"
14530 test -z "$OBJDUMP" && OBJDUMP=objdump
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14541 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14542 if ${lt_cv_deplibs_check_method+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 lt_cv_file_magic_cmd='$MAGIC_CMD'
14546 lt_cv_file_magic_test_file=
14547 lt_cv_deplibs_check_method='unknown'
14548 # Need to set the preceding variable on all platforms that support
14549 # interlibrary dependencies.
14550 # 'none' -- dependencies not supported.
14551 # `unknown' -- same as none, but documents that we really don't know.
14552 # 'pass_all' -- all dependencies passed with no checks.
14553 # 'test_compile' -- check by making test program.
14554 # 'file_magic [[regex]]' -- check by looking for files in library path
14555 # which responds to the $file_magic_cmd with a given extended regex.
14556 # If you have `file' or equivalent on your system and you're not sure
14557 # whether `pass_all' will *always* work, you probably want this one.
14559 case $host_os in
14560 aix[4-9]*)
14561 lt_cv_deplibs_check_method=pass_all
14564 beos*)
14565 lt_cv_deplibs_check_method=pass_all
14568 bsdi[45]*)
14569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14570 lt_cv_file_magic_cmd='/usr/bin/file -L'
14571 lt_cv_file_magic_test_file=/shlib/libc.so
14574 cygwin*)
14575 # func_win32_libid is a shell function defined in ltmain.sh
14576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14577 lt_cv_file_magic_cmd='func_win32_libid'
14580 mingw* | pw32*)
14581 # Base MSYS/MinGW do not provide the 'file' command needed by
14582 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14583 # unless we find 'file', for example because we are cross-compiling.
14584 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14585 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14586 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14587 lt_cv_file_magic_cmd='func_win32_libid'
14588 else
14589 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14590 lt_cv_file_magic_cmd='$OBJDUMP -f'
14594 cegcc*)
14595 # use the weaker test based on 'objdump'. See mingw*.
14596 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14597 lt_cv_file_magic_cmd='$OBJDUMP -f'
14600 darwin* | rhapsody*)
14601 lt_cv_deplibs_check_method=pass_all
14604 freebsd* | dragonfly*)
14605 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14606 case $host_cpu in
14607 i*86 )
14608 # Not sure whether the presence of OpenBSD here was a mistake.
14609 # Let's accept both of them until this is cleared up.
14610 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14611 lt_cv_file_magic_cmd=/usr/bin/file
14612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14614 esac
14615 else
14616 lt_cv_deplibs_check_method=pass_all
14620 gnu*)
14621 lt_cv_deplibs_check_method=pass_all
14624 haiku*)
14625 lt_cv_deplibs_check_method=pass_all
14628 hpux10.20* | hpux11*)
14629 lt_cv_file_magic_cmd=/usr/bin/file
14630 case $host_cpu in
14631 ia64*)
14632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14633 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14635 hppa*64*)
14636 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]'
14637 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14641 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14643 esac
14646 interix[3-9]*)
14647 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14651 irix5* | irix6* | nonstopux*)
14652 case $LD in
14653 *-32|*"-32 ") libmagic=32-bit;;
14654 *-n32|*"-n32 ") libmagic=N32;;
14655 *-64|*"-64 ") libmagic=64-bit;;
14656 *) libmagic=never-match;;
14657 esac
14658 lt_cv_deplibs_check_method=pass_all
14661 # This must be Linux ELF.
14662 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14663 lt_cv_deplibs_check_method=pass_all
14666 netbsd*)
14667 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14669 else
14670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14674 newos6*)
14675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14676 lt_cv_file_magic_cmd=/usr/bin/file
14677 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14680 *nto* | *qnx*)
14681 lt_cv_deplibs_check_method=pass_all
14684 openbsd*)
14685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14687 else
14688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14692 osf3* | osf4* | osf5*)
14693 lt_cv_deplibs_check_method=pass_all
14696 rdos*)
14697 lt_cv_deplibs_check_method=pass_all
14700 solaris*)
14701 lt_cv_deplibs_check_method=pass_all
14704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14705 lt_cv_deplibs_check_method=pass_all
14708 sysv4 | sysv4.3*)
14709 case $host_vendor in
14710 motorola)
14711 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]'
14712 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14714 ncr)
14715 lt_cv_deplibs_check_method=pass_all
14717 sequent)
14718 lt_cv_file_magic_cmd='/bin/file'
14719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14721 sni)
14722 lt_cv_file_magic_cmd='/bin/file'
14723 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14724 lt_cv_file_magic_test_file=/lib/libc.so
14726 siemens)
14727 lt_cv_deplibs_check_method=pass_all
14730 lt_cv_deplibs_check_method=pass_all
14732 esac
14735 tpf*)
14736 lt_cv_deplibs_check_method=pass_all
14738 vxworks*)
14739 # Assume VxWorks cross toolchains are built on Linux, possibly
14740 # as canadian for Windows hosts.
14741 lt_cv_deplibs_check_method=pass_all
14743 esac
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14747 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14748 file_magic_cmd=$lt_cv_file_magic_cmd
14749 deplibs_check_method=$lt_cv_deplibs_check_method
14750 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14763 if test -n "$ac_tool_prefix"; then
14764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14765 set dummy ${ac_tool_prefix}ar; ac_word=$2
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14767 $as_echo_n "checking for $ac_word... " >&6; }
14768 if ${ac_cv_prog_AR+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771 if test -n "$AR"; then
14772 ac_cv_prog_AR="$AR" # Let the user override the test.
14773 else
14774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775 for as_dir in $PATH
14777 IFS=$as_save_IFS
14778 test -z "$as_dir" && as_dir=.
14779 for ac_exec_ext in '' $ac_executable_extensions; do
14780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14781 ac_cv_prog_AR="${ac_tool_prefix}ar"
14782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14783 break 2
14785 done
14786 done
14787 IFS=$as_save_IFS
14791 AR=$ac_cv_prog_AR
14792 if test -n "$AR"; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14794 $as_echo "$AR" >&6; }
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797 $as_echo "no" >&6; }
14802 if test -z "$ac_cv_prog_AR"; then
14803 ac_ct_AR=$AR
14804 # Extract the first word of "ar", so it can be a program name with args.
14805 set dummy ar; ac_word=$2
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14807 $as_echo_n "checking for $ac_word... " >&6; }
14808 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 if test -n "$ac_ct_AR"; then
14812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14813 else
14814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815 for as_dir in $PATH
14817 IFS=$as_save_IFS
14818 test -z "$as_dir" && as_dir=.
14819 for ac_exec_ext in '' $ac_executable_extensions; do
14820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14821 ac_cv_prog_ac_ct_AR="ar"
14822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14823 break 2
14825 done
14826 done
14827 IFS=$as_save_IFS
14831 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14832 if test -n "$ac_ct_AR"; then
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14834 $as_echo "$ac_ct_AR" >&6; }
14835 else
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14837 $as_echo "no" >&6; }
14840 if test "x$ac_ct_AR" = x; then
14841 AR="false"
14842 else
14843 case $cross_compiling:$ac_tool_warned in
14844 yes:)
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14847 ac_tool_warned=yes ;;
14848 esac
14849 AR=$ac_ct_AR
14851 else
14852 AR="$ac_cv_prog_AR"
14855 test -z "$AR" && AR=ar
14856 test -z "$AR_FLAGS" && AR_FLAGS=cru
14868 if test -n "$ac_tool_prefix"; then
14869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14870 set dummy ${ac_tool_prefix}strip; ac_word=$2
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872 $as_echo_n "checking for $ac_word... " >&6; }
14873 if ${ac_cv_prog_STRIP+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14876 if test -n "$STRIP"; then
14877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14878 else
14879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880 for as_dir in $PATH
14882 IFS=$as_save_IFS
14883 test -z "$as_dir" && as_dir=.
14884 for ac_exec_ext in '' $ac_executable_extensions; do
14885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888 break 2
14890 done
14891 done
14892 IFS=$as_save_IFS
14896 STRIP=$ac_cv_prog_STRIP
14897 if test -n "$STRIP"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14899 $as_echo "$STRIP" >&6; }
14900 else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14907 if test -z "$ac_cv_prog_STRIP"; then
14908 ac_ct_STRIP=$STRIP
14909 # Extract the first word of "strip", so it can be a program name with args.
14910 set dummy strip; ac_word=$2
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14912 $as_echo_n "checking for $ac_word... " >&6; }
14913 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 if test -n "$ac_ct_STRIP"; then
14917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14918 else
14919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14920 for as_dir in $PATH
14922 IFS=$as_save_IFS
14923 test -z "$as_dir" && as_dir=.
14924 for ac_exec_ext in '' $ac_executable_extensions; do
14925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14926 ac_cv_prog_ac_ct_STRIP="strip"
14927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14928 break 2
14930 done
14931 done
14932 IFS=$as_save_IFS
14936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14937 if test -n "$ac_ct_STRIP"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14939 $as_echo "$ac_ct_STRIP" >&6; }
14940 else
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14945 if test "x$ac_ct_STRIP" = x; then
14946 STRIP=":"
14947 else
14948 case $cross_compiling:$ac_tool_warned in
14949 yes:)
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14952 ac_tool_warned=yes ;;
14953 esac
14954 STRIP=$ac_ct_STRIP
14956 else
14957 STRIP="$ac_cv_prog_STRIP"
14960 test -z "$STRIP" && STRIP=:
14967 if test -n "$ac_tool_prefix"; then
14968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14971 $as_echo_n "checking for $ac_word... " >&6; }
14972 if ${ac_cv_prog_RANLIB+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 if test -n "$RANLIB"; then
14976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14977 else
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14981 IFS=$as_save_IFS
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14987 break 2
14989 done
14990 done
14991 IFS=$as_save_IFS
14995 RANLIB=$ac_cv_prog_RANLIB
14996 if test -n "$RANLIB"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14998 $as_echo "$RANLIB" >&6; }
14999 else
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 $as_echo "no" >&6; }
15006 if test -z "$ac_cv_prog_RANLIB"; then
15007 ac_ct_RANLIB=$RANLIB
15008 # Extract the first word of "ranlib", so it can be a program name with args.
15009 set dummy ranlib; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 if test -n "$ac_ct_RANLIB"; then
15016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15017 else
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_ac_ct_RANLIB="ranlib"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15029 done
15030 done
15031 IFS=$as_save_IFS
15035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15036 if test -n "$ac_ct_RANLIB"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15038 $as_echo "$ac_ct_RANLIB" >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15044 if test "x$ac_ct_RANLIB" = x; then
15045 RANLIB=":"
15046 else
15047 case $cross_compiling:$ac_tool_warned in
15048 yes:)
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15051 ac_tool_warned=yes ;;
15052 esac
15053 RANLIB=$ac_ct_RANLIB
15055 else
15056 RANLIB="$ac_cv_prog_RANLIB"
15059 test -z "$RANLIB" && RANLIB=:
15066 # Determine commands to create old-style static archives.
15067 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15068 old_postinstall_cmds='chmod 644 $oldlib'
15069 old_postuninstall_cmds=
15071 if test -n "$RANLIB"; then
15072 case $host_os in
15073 openbsd*)
15074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15079 esac
15080 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15083 case $host_os in
15084 darwin*)
15085 lock_old_archive_extraction=yes ;;
15087 lock_old_archive_extraction=no ;;
15088 esac
15128 # If no C compiler was specified, use CC.
15129 LTCC=${LTCC-"$CC"}
15131 # If no C compiler flags were specified, use CFLAGS.
15132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15134 # Allow CC to be a program name with arguments.
15135 compiler=$CC
15138 # Check for command to grab the raw symbol name followed by C symbol from nm.
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15140 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15141 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143 else
15145 # These are sane defaults that work on at least a few old systems.
15146 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15148 # Character class describing NM global symbol codes.
15149 symcode='[BCDEGRST]'
15151 # Regexp to match symbols that can be accessed directly from C.
15152 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15154 # Define system-specific variables.
15155 case $host_os in
15156 aix*)
15157 symcode='[BCDT]'
15159 cygwin* | mingw* | pw32* | cegcc*)
15160 symcode='[ABCDGISTW]'
15162 hpux*)
15163 if test "$host_cpu" = ia64; then
15164 symcode='[ABCDEGRST]'
15167 irix* | nonstopux*)
15168 symcode='[BCDEGRST]'
15170 osf*)
15171 symcode='[BCDEGQRST]'
15173 solaris*)
15174 symcode='[BDRT]'
15176 sco3.2v5*)
15177 symcode='[DT]'
15179 sysv4.2uw2*)
15180 symcode='[DT]'
15182 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15183 symcode='[ABDT]'
15185 sysv4)
15186 symcode='[DFNSTU]'
15188 esac
15190 # If we're using GNU nm, then use its standard symbol codes.
15191 case `$NM -V 2>&1` in
15192 *GNU* | *'with BFD'*)
15193 symcode='[ABCDGIRSTW]' ;;
15194 esac
15196 # Transform an extracted symbol line into a proper C declaration.
15197 # Some systems (esp. on ia64) link data and code symbols differently,
15198 # so use this general approach.
15199 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15201 # Transform an extracted symbol line into symbol name and symbol address
15202 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15203 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'"
15205 # Handle CRLF in mingw tool chain
15206 opt_cr=
15207 case $build_os in
15208 mingw*)
15209 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15211 esac
15213 # Try without a prefix underscore, then with it.
15214 for ac_symprfx in "" "_"; do
15216 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15217 symxfrm="\\1 $ac_symprfx\\2 \\2"
15219 # Write the raw and C identifiers.
15220 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15221 # Fake it for dumpbin and say T for any non-static function
15222 # and D for any global variable.
15223 # Also find C++ and __fastcall symbols from MSVC++,
15224 # which start with @ or ?.
15225 lt_cv_sys_global_symbol_pipe="$AWK '"\
15226 " {last_section=section; section=\$ 3};"\
15227 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15228 " \$ 0!~/External *\|/{next};"\
15229 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15230 " {if(hide[section]) next};"\
15231 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15232 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15233 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15234 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15235 " ' prfx=^$ac_symprfx"
15236 else
15237 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15240 # Check to see that the pipe works correctly.
15241 pipe_works=no
15243 rm -f conftest*
15244 cat > conftest.$ac_ext <<_LT_EOF
15245 #ifdef __cplusplus
15246 extern "C" {
15247 #endif
15248 char nm_test_var;
15249 void nm_test_func(void);
15250 void nm_test_func(void){}
15251 #ifdef __cplusplus
15253 #endif
15254 int main(){nm_test_var='a';nm_test_func();return(0);}
15255 _LT_EOF
15257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15258 (eval $ac_compile) 2>&5
15259 ac_status=$?
15260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15261 test $ac_status = 0; }; then
15262 # Now try to grab the symbols.
15263 nlist=conftest.nm
15264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15265 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15266 ac_status=$?
15267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15268 test $ac_status = 0; } && test -s "$nlist"; then
15269 # Try sorting and uniquifying the output.
15270 if sort "$nlist" | uniq > "$nlist"T; then
15271 mv -f "$nlist"T "$nlist"
15272 else
15273 rm -f "$nlist"T
15276 # Make sure that we snagged all the symbols we need.
15277 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15278 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15279 cat <<_LT_EOF > conftest.$ac_ext
15280 #ifdef __cplusplus
15281 extern "C" {
15282 #endif
15284 _LT_EOF
15285 # Now generate the symbol file.
15286 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15288 cat <<_LT_EOF >> conftest.$ac_ext
15290 /* The mapping between symbol names and symbols. */
15291 const struct {
15292 const char *name;
15293 void *address;
15295 lt__PROGRAM__LTX_preloaded_symbols[] =
15297 { "@PROGRAM@", (void *) 0 },
15298 _LT_EOF
15299 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15300 cat <<\_LT_EOF >> conftest.$ac_ext
15301 {0, (void *) 0}
15304 /* This works around a problem in FreeBSD linker */
15305 #ifdef FREEBSD_WORKAROUND
15306 static const void *lt_preloaded_setup() {
15307 return lt__PROGRAM__LTX_preloaded_symbols;
15309 #endif
15311 #ifdef __cplusplus
15313 #endif
15314 _LT_EOF
15315 # Now try linking the two files.
15316 mv conftest.$ac_objext conftstm.$ac_objext
15317 lt_save_LIBS="$LIBS"
15318 lt_save_CFLAGS="$CFLAGS"
15319 LIBS="conftstm.$ac_objext"
15320 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15322 (eval $ac_link) 2>&5
15323 ac_status=$?
15324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15326 pipe_works=yes
15328 LIBS="$lt_save_LIBS"
15329 CFLAGS="$lt_save_CFLAGS"
15330 else
15331 echo "cannot find nm_test_func in $nlist" >&5
15333 else
15334 echo "cannot find nm_test_var in $nlist" >&5
15336 else
15337 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15339 else
15340 echo "$progname: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15343 rm -rf conftest* conftst*
15345 # Do not use the global_symbol_pipe unless it works.
15346 if test "$pipe_works" = yes; then
15347 break
15348 else
15349 lt_cv_sys_global_symbol_pipe=
15351 done
15355 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15356 lt_cv_sys_global_symbol_to_cdecl=
15358 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15360 $as_echo "failed" >&6; }
15361 else
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15363 $as_echo "ok" >&6; }
15387 # Check whether --enable-libtool-lock was given.
15388 if test "${enable_libtool_lock+set}" = set; then :
15389 enableval=$enable_libtool_lock;
15392 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15394 # Some flags need to be propagated to the compiler or linker for good
15395 # libtool support.
15396 case $host in
15397 ia64-*-hpux*)
15398 # Find out which ABI we are using.
15399 echo 'int i;' > conftest.$ac_ext
15400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15401 (eval $ac_compile) 2>&5
15402 ac_status=$?
15403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404 test $ac_status = 0; }; then
15405 case `/usr/bin/file conftest.$ac_objext` in
15406 *ELF-32*)
15407 HPUX_IA64_MODE="32"
15409 *ELF-64*)
15410 HPUX_IA64_MODE="64"
15412 esac
15414 rm -rf conftest*
15416 *-*-irix6*)
15417 # Find out which ABI we are using.
15418 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15420 (eval $ac_compile) 2>&5
15421 ac_status=$?
15422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15423 test $ac_status = 0; }; then
15424 if test "$lt_cv_prog_gnu_ld" = yes; then
15425 case `/usr/bin/file conftest.$ac_objext` in
15426 *32-bit*)
15427 LD="${LD-ld} -melf32bsmip"
15429 *N32*)
15430 LD="${LD-ld} -melf32bmipn32"
15432 *64-bit*)
15433 LD="${LD-ld} -melf64bmip"
15435 esac
15436 else
15437 case `/usr/bin/file conftest.$ac_objext` in
15438 *32-bit*)
15439 LD="${LD-ld} -32"
15441 *N32*)
15442 LD="${LD-ld} -n32"
15444 *64-bit*)
15445 LD="${LD-ld} -64"
15447 esac
15450 rm -rf conftest*
15453 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15454 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15455 # Find out which ABI we are using.
15456 echo 'int i;' > conftest.$ac_ext
15457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15458 (eval $ac_compile) 2>&5
15459 ac_status=$?
15460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15461 test $ac_status = 0; }; then
15462 case `/usr/bin/file conftest.o` in
15463 *32-bit*)
15464 case $host in
15465 x86_64-*kfreebsd*-gnu)
15466 LD="${LD-ld} -m elf_i386_fbsd"
15468 x86_64-*linux*)
15469 case `/usr/bin/file conftest.o` in
15470 *x86-64*)
15471 LD="${LD-ld} -m elf32_x86_64"
15474 LD="${LD-ld} -m elf_i386"
15476 esac
15478 powerpc64le-*linux*)
15479 LD="${LD-ld} -m elf32lppclinux"
15481 powerpc64-*linux*)
15482 LD="${LD-ld} -m elf32ppclinux"
15484 s390x-*linux*)
15485 LD="${LD-ld} -m elf_s390"
15487 sparc64-*linux*)
15488 LD="${LD-ld} -m elf32_sparc"
15490 esac
15492 *64-bit*)
15493 case $host in
15494 x86_64-*kfreebsd*-gnu)
15495 LD="${LD-ld} -m elf_x86_64_fbsd"
15497 x86_64-*linux*)
15498 LD="${LD-ld} -m elf_x86_64"
15500 powerpcle-*linux*)
15501 LD="${LD-ld} -m elf64lppc"
15503 powerpc-*linux*)
15504 LD="${LD-ld} -m elf64ppc"
15506 s390*-*linux*|s390*-*tpf*)
15507 LD="${LD-ld} -m elf64_s390"
15509 sparc*-*linux*)
15510 LD="${LD-ld} -m elf64_sparc"
15512 esac
15514 esac
15516 rm -rf conftest*
15519 *-*-sco3.2v5*)
15520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15521 SAVE_CFLAGS="$CFLAGS"
15522 CFLAGS="$CFLAGS -belf"
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15524 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15525 if ${lt_cv_cc_needs_belf+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527 else
15528 ac_ext=c
15529 ac_cpp='$CPP $CPPFLAGS'
15530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15538 main ()
15542 return 0;
15544 _ACEOF
15545 if ac_fn_c_try_link "$LINENO"; then :
15546 lt_cv_cc_needs_belf=yes
15547 else
15548 lt_cv_cc_needs_belf=no
15550 rm -f core conftest.err conftest.$ac_objext \
15551 conftest$ac_exeext conftest.$ac_ext
15552 ac_ext=c
15553 ac_cpp='$CPP $CPPFLAGS'
15554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15560 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15563 CFLAGS="$SAVE_CFLAGS"
15566 sparc*-*solaris*)
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 *64-bit*)
15576 case $lt_cv_prog_gnu_ld in
15577 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15579 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15580 LD="${LD-ld} -64"
15583 esac
15585 esac
15587 rm -rf conftest*
15589 esac
15591 need_locks="$enable_libtool_lock"
15594 case $host_os in
15595 rhapsody* | darwin*)
15596 if test -n "$ac_tool_prefix"; then
15597 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15598 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 if test -n "$DSYMUTIL"; then
15605 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15606 else
15607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15608 for as_dir in $PATH
15610 IFS=$as_save_IFS
15611 test -z "$as_dir" && as_dir=.
15612 for ac_exec_ext in '' $ac_executable_extensions; do
15613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15614 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15616 break 2
15618 done
15619 done
15620 IFS=$as_save_IFS
15624 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15625 if test -n "$DSYMUTIL"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15627 $as_echo "$DSYMUTIL" >&6; }
15628 else
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15630 $as_echo "no" >&6; }
15635 if test -z "$ac_cv_prog_DSYMUTIL"; then
15636 ac_ct_DSYMUTIL=$DSYMUTIL
15637 # Extract the first word of "dsymutil", so it can be a program name with args.
15638 set dummy dsymutil; ac_word=$2
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15640 $as_echo_n "checking for $ac_word... " >&6; }
15641 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 if test -n "$ac_ct_DSYMUTIL"; then
15645 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15646 else
15647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15648 for as_dir in $PATH
15650 IFS=$as_save_IFS
15651 test -z "$as_dir" && as_dir=.
15652 for ac_exec_ext in '' $ac_executable_extensions; do
15653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15654 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15656 break 2
15658 done
15659 done
15660 IFS=$as_save_IFS
15664 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15665 if test -n "$ac_ct_DSYMUTIL"; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15667 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15668 else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15673 if test "x$ac_ct_DSYMUTIL" = x; then
15674 DSYMUTIL=":"
15675 else
15676 case $cross_compiling:$ac_tool_warned in
15677 yes:)
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15680 ac_tool_warned=yes ;;
15681 esac
15682 DSYMUTIL=$ac_ct_DSYMUTIL
15684 else
15685 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15688 if test -n "$ac_tool_prefix"; then
15689 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15690 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15692 $as_echo_n "checking for $ac_word... " >&6; }
15693 if ${ac_cv_prog_NMEDIT+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 if test -n "$NMEDIT"; then
15697 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15698 else
15699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15706 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15708 break 2
15710 done
15711 done
15712 IFS=$as_save_IFS
15716 NMEDIT=$ac_cv_prog_NMEDIT
15717 if test -n "$NMEDIT"; then
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15719 $as_echo "$NMEDIT" >&6; }
15720 else
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15722 $as_echo "no" >&6; }
15727 if test -z "$ac_cv_prog_NMEDIT"; then
15728 ac_ct_NMEDIT=$NMEDIT
15729 # Extract the first word of "nmedit", so it can be a program name with args.
15730 set dummy nmedit; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15732 $as_echo_n "checking for $ac_word... " >&6; }
15733 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 if test -n "$ac_ct_NMEDIT"; then
15737 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15738 else
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15742 IFS=$as_save_IFS
15743 test -z "$as_dir" && as_dir=.
15744 for ac_exec_ext in '' $ac_executable_extensions; do
15745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15746 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15748 break 2
15750 done
15751 done
15752 IFS=$as_save_IFS
15756 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15757 if test -n "$ac_ct_NMEDIT"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15759 $as_echo "$ac_ct_NMEDIT" >&6; }
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15765 if test "x$ac_ct_NMEDIT" = x; then
15766 NMEDIT=":"
15767 else
15768 case $cross_compiling:$ac_tool_warned in
15769 yes:)
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15772 ac_tool_warned=yes ;;
15773 esac
15774 NMEDIT=$ac_ct_NMEDIT
15776 else
15777 NMEDIT="$ac_cv_prog_NMEDIT"
15780 if test -n "$ac_tool_prefix"; then
15781 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15782 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15784 $as_echo_n "checking for $ac_word... " >&6; }
15785 if ${ac_cv_prog_LIPO+:} false; then :
15786 $as_echo_n "(cached) " >&6
15787 else
15788 if test -n "$LIPO"; then
15789 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15790 else
15791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15794 IFS=$as_save_IFS
15795 test -z "$as_dir" && as_dir=.
15796 for ac_exec_ext in '' $ac_executable_extensions; do
15797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15798 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15800 break 2
15802 done
15803 done
15804 IFS=$as_save_IFS
15808 LIPO=$ac_cv_prog_LIPO
15809 if test -n "$LIPO"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15811 $as_echo "$LIPO" >&6; }
15812 else
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15819 if test -z "$ac_cv_prog_LIPO"; then
15820 ac_ct_LIPO=$LIPO
15821 # Extract the first word of "lipo", so it can be a program name with args.
15822 set dummy lipo; ac_word=$2
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15824 $as_echo_n "checking for $ac_word... " >&6; }
15825 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15826 $as_echo_n "(cached) " >&6
15827 else
15828 if test -n "$ac_ct_LIPO"; then
15829 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15830 else
15831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832 for as_dir in $PATH
15834 IFS=$as_save_IFS
15835 test -z "$as_dir" && as_dir=.
15836 for ac_exec_ext in '' $ac_executable_extensions; do
15837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15838 ac_cv_prog_ac_ct_LIPO="lipo"
15839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15840 break 2
15842 done
15843 done
15844 IFS=$as_save_IFS
15848 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15849 if test -n "$ac_ct_LIPO"; then
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15851 $as_echo "$ac_ct_LIPO" >&6; }
15852 else
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15857 if test "x$ac_ct_LIPO" = x; then
15858 LIPO=":"
15859 else
15860 case $cross_compiling:$ac_tool_warned in
15861 yes:)
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15864 ac_tool_warned=yes ;;
15865 esac
15866 LIPO=$ac_ct_LIPO
15868 else
15869 LIPO="$ac_cv_prog_LIPO"
15872 if test -n "$ac_tool_prefix"; then
15873 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15874 set dummy ${ac_tool_prefix}otool; ac_word=$2
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15876 $as_echo_n "checking for $ac_word... " >&6; }
15877 if ${ac_cv_prog_OTOOL+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 if test -n "$OTOOL"; then
15881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15882 else
15883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15884 for as_dir in $PATH
15886 IFS=$as_save_IFS
15887 test -z "$as_dir" && as_dir=.
15888 for ac_exec_ext in '' $ac_executable_extensions; do
15889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15890 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15892 break 2
15894 done
15895 done
15896 IFS=$as_save_IFS
15900 OTOOL=$ac_cv_prog_OTOOL
15901 if test -n "$OTOOL"; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15903 $as_echo "$OTOOL" >&6; }
15904 else
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15911 if test -z "$ac_cv_prog_OTOOL"; then
15912 ac_ct_OTOOL=$OTOOL
15913 # Extract the first word of "otool", so it can be a program name with args.
15914 set dummy otool; ac_word=$2
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15916 $as_echo_n "checking for $ac_word... " >&6; }
15917 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920 if test -n "$ac_ct_OTOOL"; then
15921 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15922 else
15923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15924 for as_dir in $PATH
15926 IFS=$as_save_IFS
15927 test -z "$as_dir" && as_dir=.
15928 for ac_exec_ext in '' $ac_executable_extensions; do
15929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15930 ac_cv_prog_ac_ct_OTOOL="otool"
15931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15932 break 2
15934 done
15935 done
15936 IFS=$as_save_IFS
15940 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15941 if test -n "$ac_ct_OTOOL"; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15943 $as_echo "$ac_ct_OTOOL" >&6; }
15944 else
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15949 if test "x$ac_ct_OTOOL" = x; then
15950 OTOOL=":"
15951 else
15952 case $cross_compiling:$ac_tool_warned in
15953 yes:)
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15956 ac_tool_warned=yes ;;
15957 esac
15958 OTOOL=$ac_ct_OTOOL
15960 else
15961 OTOOL="$ac_cv_prog_OTOOL"
15964 if test -n "$ac_tool_prefix"; then
15965 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15966 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968 $as_echo_n "checking for $ac_word... " >&6; }
15969 if ${ac_cv_prog_OTOOL64+:} false; then :
15970 $as_echo_n "(cached) " >&6
15971 else
15972 if test -n "$OTOOL64"; then
15973 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15974 else
15975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976 for as_dir in $PATH
15978 IFS=$as_save_IFS
15979 test -z "$as_dir" && as_dir=.
15980 for ac_exec_ext in '' $ac_executable_extensions; do
15981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15982 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15984 break 2
15986 done
15987 done
15988 IFS=$as_save_IFS
15992 OTOOL64=$ac_cv_prog_OTOOL64
15993 if test -n "$OTOOL64"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15995 $as_echo "$OTOOL64" >&6; }
15996 else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
16003 if test -z "$ac_cv_prog_OTOOL64"; then
16004 ac_ct_OTOOL64=$OTOOL64
16005 # Extract the first word of "otool64", so it can be a program name with args.
16006 set dummy otool64; ac_word=$2
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008 $as_echo_n "checking for $ac_word... " >&6; }
16009 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012 if test -n "$ac_ct_OTOOL64"; then
16013 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16014 else
16015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16016 for as_dir in $PATH
16018 IFS=$as_save_IFS
16019 test -z "$as_dir" && as_dir=.
16020 for ac_exec_ext in '' $ac_executable_extensions; do
16021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16022 ac_cv_prog_ac_ct_OTOOL64="otool64"
16023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16024 break 2
16026 done
16027 done
16028 IFS=$as_save_IFS
16032 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16033 if test -n "$ac_ct_OTOOL64"; then
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16035 $as_echo "$ac_ct_OTOOL64" >&6; }
16036 else
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16038 $as_echo "no" >&6; }
16041 if test "x$ac_ct_OTOOL64" = x; then
16042 OTOOL64=":"
16043 else
16044 case $cross_compiling:$ac_tool_warned in
16045 yes:)
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16048 ac_tool_warned=yes ;;
16049 esac
16050 OTOOL64=$ac_ct_OTOOL64
16052 else
16053 OTOOL64="$ac_cv_prog_OTOOL64"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16083 $as_echo_n "checking for -single_module linker flag... " >&6; }
16084 if ${lt_cv_apple_cc_single_mod+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 lt_cv_apple_cc_single_mod=no
16088 if test -z "${LT_MULTI_MODULE}"; then
16089 # By default we will add the -single_module flag. You can override
16090 # by either setting the environment variable LT_MULTI_MODULE
16091 # non-empty at configure time, or by adding -multi_module to the
16092 # link flags.
16093 rm -rf libconftest.dylib*
16094 echo "int foo(void){return 1;}" > conftest.c
16095 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16096 -dynamiclib -Wl,-single_module conftest.c" >&5
16097 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16098 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16099 _lt_result=$?
16100 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16101 lt_cv_apple_cc_single_mod=yes
16102 else
16103 cat conftest.err >&5
16105 rm -rf libconftest.dylib*
16106 rm -f conftest.*
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16110 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16112 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16113 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 lt_cv_ld_exported_symbols_list=no
16117 save_LDFLAGS=$LDFLAGS
16118 echo "_main" > conftest.sym
16119 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16124 main ()
16128 return 0;
16130 _ACEOF
16131 if ac_fn_c_try_link "$LINENO"; then :
16132 lt_cv_ld_exported_symbols_list=yes
16133 else
16134 lt_cv_ld_exported_symbols_list=no
16136 rm -f core conftest.err conftest.$ac_objext \
16137 conftest$ac_exeext conftest.$ac_ext
16138 LDFLAGS="$save_LDFLAGS"
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16142 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16144 $as_echo_n "checking for -force_load linker flag... " >&6; }
16145 if ${lt_cv_ld_force_load+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 lt_cv_ld_force_load=no
16149 cat > conftest.c << _LT_EOF
16150 int forced_loaded() { return 2;}
16151 _LT_EOF
16152 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16153 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16154 echo "$AR cru libconftest.a conftest.o" >&5
16155 $AR cru libconftest.a conftest.o 2>&5
16156 cat > conftest.c << _LT_EOF
16157 int main() { return 0;}
16158 _LT_EOF
16159 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16160 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16161 _lt_result=$?
16162 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16163 lt_cv_ld_force_load=yes
16164 else
16165 cat conftest.err >&5
16167 rm -f conftest.err libconftest.a conftest conftest.c
16168 rm -rf conftest.dSYM
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16172 $as_echo "$lt_cv_ld_force_load" >&6; }
16173 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16174 # build without first building modern cctools / linker.
16175 case $host_cpu-$host_os in
16176 *-rhapsody* | *-darwin1.[012])
16177 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16178 *-darwin1.*)
16179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16180 *-darwin*)
16181 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16182 # deployment target is forced to an earlier version.
16183 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16184 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16186 10.[012][,.]*)
16187 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16191 esac
16193 esac
16194 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16195 _lt_dar_single_mod='$single_module'
16197 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16198 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16199 else
16200 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16202 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16203 _lt_dsymutil='~$DSYMUTIL $lib || :'
16204 else
16205 _lt_dsymutil=
16208 esac
16211 for ac_header in dlfcn.h
16212 do :
16213 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16214 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16215 cat >>confdefs.h <<_ACEOF
16216 #define HAVE_DLFCN_H 1
16217 _ACEOF
16220 done
16226 # Set options
16230 enable_dlopen=no
16233 enable_win32_dll=no
16236 # Check whether --enable-shared was given.
16237 if test "${enable_shared+set}" = set; then :
16238 enableval=$enable_shared; p=${PACKAGE-default}
16239 case $enableval in
16240 yes) enable_shared=yes ;;
16241 no) enable_shared=no ;;
16243 enable_shared=no
16244 # Look at the argument we got. We use all the common list separators.
16245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16246 for pkg in $enableval; do
16247 IFS="$lt_save_ifs"
16248 if test "X$pkg" = "X$p"; then
16249 enable_shared=yes
16251 done
16252 IFS="$lt_save_ifs"
16254 esac
16255 else
16256 enable_shared=yes
16267 # Check whether --enable-static was given.
16268 if test "${enable_static+set}" = set; then :
16269 enableval=$enable_static; p=${PACKAGE-default}
16270 case $enableval in
16271 yes) enable_static=yes ;;
16272 no) enable_static=no ;;
16274 enable_static=no
16275 # Look at the argument we got. We use all the common list separators.
16276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16277 for pkg in $enableval; do
16278 IFS="$lt_save_ifs"
16279 if test "X$pkg" = "X$p"; then
16280 enable_static=yes
16282 done
16283 IFS="$lt_save_ifs"
16285 esac
16286 else
16287 enable_static=yes
16299 # Check whether --with-pic was given.
16300 if test "${with_pic+set}" = set; then :
16301 withval=$with_pic; pic_mode="$withval"
16302 else
16303 pic_mode=default
16307 test -z "$pic_mode" && pic_mode=default
16315 # Check whether --enable-fast-install was given.
16316 if test "${enable_fast_install+set}" = set; then :
16317 enableval=$enable_fast_install; p=${PACKAGE-default}
16318 case $enableval in
16319 yes) enable_fast_install=yes ;;
16320 no) enable_fast_install=no ;;
16322 enable_fast_install=no
16323 # Look at the argument we got. We use all the common list separators.
16324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16325 for pkg in $enableval; do
16326 IFS="$lt_save_ifs"
16327 if test "X$pkg" = "X$p"; then
16328 enable_fast_install=yes
16330 done
16331 IFS="$lt_save_ifs"
16333 esac
16334 else
16335 enable_fast_install=yes
16348 # This can be used to rebuild libtool when needed
16349 LIBTOOL_DEPS="$ltmain"
16351 # Always use our own libtool.
16352 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16379 test -z "$LN_S" && LN_S="ln -s"
16394 if test -n "${ZSH_VERSION+set}" ; then
16395 setopt NO_GLOB_SUBST
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16399 $as_echo_n "checking for objdir... " >&6; }
16400 if ${lt_cv_objdir+:} false; then :
16401 $as_echo_n "(cached) " >&6
16402 else
16403 rm -f .libs 2>/dev/null
16404 mkdir .libs 2>/dev/null
16405 if test -d .libs; then
16406 lt_cv_objdir=.libs
16407 else
16408 # MS-DOS does not allow filenames that begin with a dot.
16409 lt_cv_objdir=_libs
16411 rmdir .libs 2>/dev/null
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16414 $as_echo "$lt_cv_objdir" >&6; }
16415 objdir=$lt_cv_objdir
16421 cat >>confdefs.h <<_ACEOF
16422 #define LT_OBJDIR "$lt_cv_objdir/"
16423 _ACEOF
16428 case $host_os in
16429 aix3*)
16430 # AIX sometimes has problems with the GCC collect2 program. For some
16431 # reason, if we set the COLLECT_NAMES environment variable, the problems
16432 # vanish in a puff of smoke.
16433 if test "X${COLLECT_NAMES+set}" != Xset; then
16434 COLLECT_NAMES=
16435 export COLLECT_NAMES
16438 esac
16440 # Global variables:
16441 ofile=libtool
16442 can_build_shared=yes
16444 # All known linkers require a `.a' archive for static linking (except MSVC,
16445 # which needs '.lib').
16446 libext=a
16448 with_gnu_ld="$lt_cv_prog_gnu_ld"
16450 old_CC="$CC"
16451 old_CFLAGS="$CFLAGS"
16453 # Set sane defaults for various variables
16454 test -z "$CC" && CC=cc
16455 test -z "$LTCC" && LTCC=$CC
16456 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16457 test -z "$LD" && LD=ld
16458 test -z "$ac_objext" && ac_objext=o
16460 for cc_temp in $compiler""; do
16461 case $cc_temp in
16462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16464 \-*) ;;
16465 *) break;;
16466 esac
16467 done
16468 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16471 # Only perform the check for file, if the check method requires it
16472 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16473 case $deplibs_check_method in
16474 file_magic*)
16475 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16477 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16478 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16479 $as_echo_n "(cached) " >&6
16480 else
16481 case $MAGIC_CMD in
16482 [\\/*] | ?:[\\/]*)
16483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16486 lt_save_MAGIC_CMD="$MAGIC_CMD"
16487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16488 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16489 for ac_dir in $ac_dummy; do
16490 IFS="$lt_save_ifs"
16491 test -z "$ac_dir" && ac_dir=.
16492 if test -f $ac_dir/${ac_tool_prefix}file; then
16493 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16494 if test -n "$file_magic_test_file"; then
16495 case $deplibs_check_method in
16496 "file_magic "*)
16497 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16500 $EGREP "$file_magic_regex" > /dev/null; then
16502 else
16503 cat <<_LT_EOF 1>&2
16505 *** Warning: the command libtool uses to detect shared libraries,
16506 *** $file_magic_cmd, produces output that libtool cannot recognize.
16507 *** The result is that libtool may fail to recognize shared libraries
16508 *** as such. This will affect the creation of libtool libraries that
16509 *** depend on shared libraries, but programs linked with such libtool
16510 *** libraries will work regardless of this problem. Nevertheless, you
16511 *** may want to report the problem to your system manager and/or to
16512 *** bug-libtool@gnu.org
16514 _LT_EOF
16515 fi ;;
16516 esac
16518 break
16520 done
16521 IFS="$lt_save_ifs"
16522 MAGIC_CMD="$lt_save_MAGIC_CMD"
16524 esac
16527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16528 if test -n "$MAGIC_CMD"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16530 $as_echo "$MAGIC_CMD" >&6; }
16531 else
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16540 if test -z "$lt_cv_path_MAGIC_CMD"; then
16541 if test -n "$ac_tool_prefix"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16543 $as_echo_n "checking for file... " >&6; }
16544 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 case $MAGIC_CMD in
16548 [\\/*] | ?:[\\/]*)
16549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16552 lt_save_MAGIC_CMD="$MAGIC_CMD"
16553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16555 for ac_dir in $ac_dummy; do
16556 IFS="$lt_save_ifs"
16557 test -z "$ac_dir" && ac_dir=.
16558 if test -f $ac_dir/file; then
16559 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16560 if test -n "$file_magic_test_file"; then
16561 case $deplibs_check_method in
16562 "file_magic "*)
16563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16566 $EGREP "$file_magic_regex" > /dev/null; then
16568 else
16569 cat <<_LT_EOF 1>&2
16571 *** Warning: the command libtool uses to detect shared libraries,
16572 *** $file_magic_cmd, produces output that libtool cannot recognize.
16573 *** The result is that libtool may fail to recognize shared libraries
16574 *** as such. This will affect the creation of libtool libraries that
16575 *** depend on shared libraries, but programs linked with such libtool
16576 *** libraries will work regardless of this problem. Nevertheless, you
16577 *** may want to report the problem to your system manager and/or to
16578 *** bug-libtool@gnu.org
16580 _LT_EOF
16581 fi ;;
16582 esac
16584 break
16586 done
16587 IFS="$lt_save_ifs"
16588 MAGIC_CMD="$lt_save_MAGIC_CMD"
16590 esac
16593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16594 if test -n "$MAGIC_CMD"; then
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16596 $as_echo "$MAGIC_CMD" >&6; }
16597 else
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16603 else
16604 MAGIC_CMD=:
16610 esac
16612 # Use C for the default configuration in the libtool script
16614 lt_save_CC="$CC"
16615 ac_ext=c
16616 ac_cpp='$CPP $CPPFLAGS'
16617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16622 # Source file extension for C test sources.
16623 ac_ext=c
16625 # Object file extension for compiled C test sources.
16626 objext=o
16627 objext=$objext
16629 # Code to be used in simple compile tests
16630 lt_simple_compile_test_code="int some_variable = 0;"
16632 # Code to be used in simple link tests
16633 lt_simple_link_test_code='int main(){return(0);}'
16641 # If no C compiler was specified, use CC.
16642 LTCC=${LTCC-"$CC"}
16644 # If no C compiler flags were specified, use CFLAGS.
16645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16647 # Allow CC to be a program name with arguments.
16648 compiler=$CC
16650 # Save the default compiler, since it gets overwritten when the other
16651 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16652 compiler_DEFAULT=$CC
16654 # save warnings/boilerplate of simple test code
16655 ac_outfile=conftest.$ac_objext
16656 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16658 _lt_compiler_boilerplate=`cat conftest.err`
16659 $RM conftest*
16661 ac_outfile=conftest.$ac_objext
16662 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16664 _lt_linker_boilerplate=`cat conftest.err`
16665 $RM -r conftest*
16668 ## CAVEAT EMPTOR:
16669 ## There is no encapsulation within the following macros, do not change
16670 ## the running order or otherwise move them around unless you know exactly
16671 ## what you are doing...
16672 if test -n "$compiler"; then
16674 lt_prog_compiler_no_builtin_flag=
16676 if test "$GCC" = yes; then
16677 case $cc_basename in
16678 nvcc*)
16679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16682 esac
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16685 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16686 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 lt_cv_prog_compiler_rtti_exceptions=no
16690 ac_outfile=conftest.$ac_objext
16691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16692 lt_compiler_flag="-fno-rtti -fno-exceptions"
16693 # Insert the option either (1) after the last *FLAGS variable, or
16694 # (2) before a word containing "conftest.", or (3) at the end.
16695 # Note that $ac_compile itself does not contain backslashes and begins
16696 # with a dollar sign (not a hyphen), so the echo should work correctly.
16697 # The option is referenced via a variable to avoid confusing sed.
16698 lt_compile=`echo "$ac_compile" | $SED \
16699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16701 -e 's:$: $lt_compiler_flag:'`
16702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16703 (eval "$lt_compile" 2>conftest.err)
16704 ac_status=$?
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 if (exit $ac_status) && test -s "$ac_outfile"; then
16708 # The compiler can only warn and ignore the option if not recognized
16709 # So say no if there are warnings other than the usual output.
16710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16713 lt_cv_prog_compiler_rtti_exceptions=yes
16716 $RM conftest*
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16720 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16724 else
16735 lt_prog_compiler_wl=
16736 lt_prog_compiler_pic=
16737 lt_prog_compiler_static=
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16740 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16742 if test "$GCC" = yes; then
16743 lt_prog_compiler_wl='-Wl,'
16744 lt_prog_compiler_static='-static'
16746 case $host_os in
16747 aix*)
16748 # All AIX code is PIC.
16749 if test "$host_cpu" = ia64; then
16750 # AIX 5 now supports IA64 processor
16751 lt_prog_compiler_static='-Bstatic'
16753 lt_prog_compiler_pic='-fPIC'
16756 amigaos*)
16757 case $host_cpu in
16758 powerpc)
16759 # see comment about AmigaOS4 .so support
16760 lt_prog_compiler_pic='-fPIC'
16762 m68k)
16763 # FIXME: we need at least 68020 code to build shared libraries, but
16764 # adding the `-m68020' flag to GCC prevents building anything better,
16765 # like `-m68040'.
16766 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16768 esac
16771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16772 # PIC is the default for these OSes.
16775 mingw* | cygwin* | pw32* | os2* | cegcc*)
16776 # This hack is so that the source file can tell whether it is being
16777 # built for inclusion in a dll (and should export symbols for example).
16778 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16779 # (--disable-auto-import) libraries
16780 lt_prog_compiler_pic='-DDLL_EXPORT'
16783 darwin* | rhapsody*)
16784 # PIC is the default on this platform
16785 # Common symbols not allowed in MH_DYLIB files
16786 lt_prog_compiler_pic='-fno-common'
16789 haiku*)
16790 # PIC is the default for Haiku.
16791 # The "-static" flag exists, but is broken.
16792 lt_prog_compiler_static=
16795 hpux*)
16796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16798 # sets the default TLS model and affects inlining.
16799 case $host_cpu in
16800 hppa*64*)
16801 # +Z the default
16804 lt_prog_compiler_pic='-fPIC'
16806 esac
16809 interix[3-9]*)
16810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16811 # Instead, we relocate shared libraries at runtime.
16814 msdosdjgpp*)
16815 # Just because we use GCC doesn't mean we suddenly get shared libraries
16816 # on systems that don't support them.
16817 lt_prog_compiler_can_build_shared=no
16818 enable_shared=no
16821 *nto* | *qnx*)
16822 # QNX uses GNU C++, but need to define -shared option too, otherwise
16823 # it will coredump.
16824 lt_prog_compiler_pic='-fPIC -shared'
16827 sysv4*MP*)
16828 if test -d /usr/nec; then
16829 lt_prog_compiler_pic=-Kconform_pic
16834 lt_prog_compiler_pic='-fPIC'
16836 esac
16838 case $cc_basename in
16839 nvcc*) # Cuda Compiler Driver 2.2
16840 lt_prog_compiler_wl='-Xlinker '
16841 lt_prog_compiler_pic='-Xcompiler -fPIC'
16843 esac
16844 else
16845 # PORTME Check for flag to pass linker flags through the system compiler.
16846 case $host_os in
16847 aix*)
16848 lt_prog_compiler_wl='-Wl,'
16849 if test "$host_cpu" = ia64; then
16850 # AIX 5 now supports IA64 processor
16851 lt_prog_compiler_static='-Bstatic'
16852 else
16853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16857 mingw* | cygwin* | pw32* | os2* | cegcc*)
16858 # This hack is so that the source file can tell whether it is being
16859 # built for inclusion in a dll (and should export symbols for example).
16860 lt_prog_compiler_pic='-DDLL_EXPORT'
16863 hpux9* | hpux10* | hpux11*)
16864 lt_prog_compiler_wl='-Wl,'
16865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16866 # not for PA HP-UX.
16867 case $host_cpu in
16868 hppa*64*|ia64*)
16869 # +Z the default
16872 lt_prog_compiler_pic='+Z'
16874 esac
16875 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16876 lt_prog_compiler_static='${wl}-a ${wl}archive'
16879 irix5* | irix6* | nonstopux*)
16880 lt_prog_compiler_wl='-Wl,'
16881 # PIC (with -KPIC) is the default.
16882 lt_prog_compiler_static='-non_shared'
16885 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16886 case $cc_basename in
16887 # old Intel for x86_64 which still supported -KPIC.
16888 ecc*)
16889 lt_prog_compiler_wl='-Wl,'
16890 lt_prog_compiler_pic='-KPIC'
16891 lt_prog_compiler_static='-static'
16893 # icc used to be incompatible with GCC.
16894 # ICC 10 doesn't accept -KPIC any more.
16895 icc* | ifort*)
16896 lt_prog_compiler_wl='-Wl,'
16897 lt_prog_compiler_pic='-fPIC'
16898 lt_prog_compiler_static='-static'
16900 # Lahey Fortran 8.1.
16901 lf95*)
16902 lt_prog_compiler_wl='-Wl,'
16903 lt_prog_compiler_pic='--shared'
16904 lt_prog_compiler_static='--static'
16906 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16907 # Portland Group compilers (*not* the Pentium gcc compiler,
16908 # which looks to be a dead project)
16909 lt_prog_compiler_wl='-Wl,'
16910 lt_prog_compiler_pic='-fpic'
16911 lt_prog_compiler_static='-Bstatic'
16913 ccc*)
16914 lt_prog_compiler_wl='-Wl,'
16915 # All Alpha code is PIC.
16916 lt_prog_compiler_static='-non_shared'
16918 xl* | bgxl* | bgf* | mpixl*)
16919 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16920 lt_prog_compiler_wl='-Wl,'
16921 lt_prog_compiler_pic='-qpic'
16922 lt_prog_compiler_static='-qstaticlink'
16925 case `$CC -V 2>&1 | sed 5q` in
16926 *Sun\ F* | *Sun*Fortran*)
16927 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16928 lt_prog_compiler_pic='-KPIC'
16929 lt_prog_compiler_static='-Bstatic'
16930 lt_prog_compiler_wl=''
16932 *Sun\ C*)
16933 # Sun C 5.9
16934 lt_prog_compiler_pic='-KPIC'
16935 lt_prog_compiler_static='-Bstatic'
16936 lt_prog_compiler_wl='-Wl,'
16938 esac
16940 esac
16943 newsos6)
16944 lt_prog_compiler_pic='-KPIC'
16945 lt_prog_compiler_static='-Bstatic'
16948 *nto* | *qnx*)
16949 # QNX uses GNU C++, but need to define -shared option too, otherwise
16950 # it will coredump.
16951 lt_prog_compiler_pic='-fPIC -shared'
16954 osf3* | osf4* | osf5*)
16955 lt_prog_compiler_wl='-Wl,'
16956 # All OSF/1 code is PIC.
16957 lt_prog_compiler_static='-non_shared'
16960 rdos*)
16961 lt_prog_compiler_static='-non_shared'
16964 solaris*)
16965 lt_prog_compiler_pic='-KPIC'
16966 lt_prog_compiler_static='-Bstatic'
16967 case $cc_basename in
16968 f77* | f90* | f95*)
16969 lt_prog_compiler_wl='-Qoption ld ';;
16971 lt_prog_compiler_wl='-Wl,';;
16972 esac
16975 sunos4*)
16976 lt_prog_compiler_wl='-Qoption ld '
16977 lt_prog_compiler_pic='-PIC'
16978 lt_prog_compiler_static='-Bstatic'
16981 sysv4 | sysv4.2uw2* | sysv4.3*)
16982 lt_prog_compiler_wl='-Wl,'
16983 lt_prog_compiler_pic='-KPIC'
16984 lt_prog_compiler_static='-Bstatic'
16987 sysv4*MP*)
16988 if test -d /usr/nec ;then
16989 lt_prog_compiler_pic='-Kconform_pic'
16990 lt_prog_compiler_static='-Bstatic'
16994 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16995 lt_prog_compiler_wl='-Wl,'
16996 lt_prog_compiler_pic='-KPIC'
16997 lt_prog_compiler_static='-Bstatic'
17000 unicos*)
17001 lt_prog_compiler_wl='-Wl,'
17002 lt_prog_compiler_can_build_shared=no
17005 uts4*)
17006 lt_prog_compiler_pic='-pic'
17007 lt_prog_compiler_static='-Bstatic'
17011 lt_prog_compiler_can_build_shared=no
17013 esac
17016 case $host_os in
17017 # For platforms which do not support PIC, -DPIC is meaningless:
17018 *djgpp*)
17019 lt_prog_compiler_pic=
17022 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17024 esac
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17026 $as_echo "$lt_prog_compiler_pic" >&6; }
17034 # Check to make sure the PIC flag actually works.
17036 if test -n "$lt_prog_compiler_pic"; then
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17038 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17039 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17040 $as_echo_n "(cached) " >&6
17041 else
17042 lt_cv_prog_compiler_pic_works=no
17043 ac_outfile=conftest.$ac_objext
17044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17046 # Insert the option either (1) after the last *FLAGS variable, or
17047 # (2) before a word containing "conftest.", or (3) at the end.
17048 # Note that $ac_compile itself does not contain backslashes and begins
17049 # with a dollar sign (not a hyphen), so the echo should work correctly.
17050 # The option is referenced via a variable to avoid confusing sed.
17051 lt_compile=`echo "$ac_compile" | $SED \
17052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17054 -e 's:$: $lt_compiler_flag:'`
17055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17056 (eval "$lt_compile" 2>conftest.err)
17057 ac_status=$?
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 if (exit $ac_status) && test -s "$ac_outfile"; then
17061 # The compiler can only warn and ignore the option if not recognized
17062 # So say no if there are warnings other than the usual output.
17063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17066 lt_cv_prog_compiler_pic_works=yes
17069 $RM conftest*
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17073 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17075 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17076 case $lt_prog_compiler_pic in
17077 "" | " "*) ;;
17078 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17079 esac
17080 else
17081 lt_prog_compiler_pic=
17082 lt_prog_compiler_can_build_shared=no
17093 # Check to make sure the static flag actually works.
17095 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17097 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17098 if ${lt_cv_prog_compiler_static_works+:} false; then :
17099 $as_echo_n "(cached) " >&6
17100 else
17101 lt_cv_prog_compiler_static_works=no
17102 save_LDFLAGS="$LDFLAGS"
17103 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17104 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17106 # The linker can only warn and ignore the option if not recognized
17107 # So say no if there are warnings
17108 if test -s conftest.err; then
17109 # Append any errors to the config.log.
17110 cat conftest.err 1>&5
17111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17113 if diff conftest.exp conftest.er2 >/dev/null; then
17114 lt_cv_prog_compiler_static_works=yes
17116 else
17117 lt_cv_prog_compiler_static_works=yes
17120 $RM -r conftest*
17121 LDFLAGS="$save_LDFLAGS"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17125 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17127 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17129 else
17130 lt_prog_compiler_static=
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17141 if ${lt_cv_prog_compiler_c_o+:} false; then :
17142 $as_echo_n "(cached) " >&6
17143 else
17144 lt_cv_prog_compiler_c_o=no
17145 $RM -r conftest 2>/dev/null
17146 mkdir conftest
17147 cd conftest
17148 mkdir out
17149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17151 lt_compiler_flag="-o out/conftest2.$ac_objext"
17152 # Insert the option either (1) after the last *FLAGS variable, or
17153 # (2) before a word containing "conftest.", or (3) at the end.
17154 # Note that $ac_compile itself does not contain backslashes and begins
17155 # with a dollar sign (not a hyphen), so the echo should work correctly.
17156 lt_compile=`echo "$ac_compile" | $SED \
17157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17159 -e 's:$: $lt_compiler_flag:'`
17160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17161 (eval "$lt_compile" 2>out/conftest.err)
17162 ac_status=$?
17163 cat out/conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17166 then
17167 # The compiler can only warn and ignore the option if not recognized
17168 # So say no if there are warnings
17169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17172 lt_cv_prog_compiler_c_o=yes
17175 chmod u+w . 2>&5
17176 $RM conftest*
17177 # SGI C++ compiler will create directory out/ii_files/ for
17178 # template instantiation
17179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17180 $RM out/* && rmdir out
17181 cd ..
17182 $RM -r conftest
17183 $RM conftest*
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17196 if ${lt_cv_prog_compiler_c_o+:} false; then :
17197 $as_echo_n "(cached) " >&6
17198 else
17199 lt_cv_prog_compiler_c_o=no
17200 $RM -r conftest 2>/dev/null
17201 mkdir conftest
17202 cd conftest
17203 mkdir out
17204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17206 lt_compiler_flag="-o out/conftest2.$ac_objext"
17207 # Insert the option either (1) after the last *FLAGS variable, or
17208 # (2) before a word containing "conftest.", or (3) at the end.
17209 # Note that $ac_compile itself does not contain backslashes and begins
17210 # with a dollar sign (not a hyphen), so the echo should work correctly.
17211 lt_compile=`echo "$ac_compile" | $SED \
17212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17214 -e 's:$: $lt_compiler_flag:'`
17215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17216 (eval "$lt_compile" 2>out/conftest.err)
17217 ac_status=$?
17218 cat out/conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17221 then
17222 # The compiler can only warn and ignore the option if not recognized
17223 # So say no if there are warnings
17224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17227 lt_cv_prog_compiler_c_o=yes
17230 chmod u+w . 2>&5
17231 $RM conftest*
17232 # SGI C++ compiler will create directory out/ii_files/ for
17233 # template instantiation
17234 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17235 $RM out/* && rmdir out
17236 cd ..
17237 $RM -r conftest
17238 $RM conftest*
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17242 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17247 hard_links="nottested"
17248 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17249 # do not overwrite the value of need_locks provided by the user
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17251 $as_echo_n "checking if we can lock with hard links... " >&6; }
17252 hard_links=yes
17253 $RM conftest*
17254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17255 touch conftest.a
17256 ln conftest.a conftest.b 2>&5 || hard_links=no
17257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17259 $as_echo "$hard_links" >&6; }
17260 if test "$hard_links" = no; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17262 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17263 need_locks=warn
17265 else
17266 need_locks=no
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17275 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17277 runpath_var=
17278 allow_undefined_flag=
17279 always_export_symbols=no
17280 archive_cmds=
17281 archive_expsym_cmds=
17282 compiler_needs_object=no
17283 enable_shared_with_static_runtimes=no
17284 export_dynamic_flag_spec=
17285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17286 hardcode_automatic=no
17287 hardcode_direct=no
17288 hardcode_direct_absolute=no
17289 hardcode_libdir_flag_spec=
17290 hardcode_libdir_flag_spec_ld=
17291 hardcode_libdir_separator=
17292 hardcode_minus_L=no
17293 hardcode_shlibpath_var=unsupported
17294 inherit_rpath=no
17295 link_all_deplibs=unknown
17296 module_cmds=
17297 module_expsym_cmds=
17298 old_archive_from_new_cmds=
17299 old_archive_from_expsyms_cmds=
17300 thread_safe_flag_spec=
17301 whole_archive_flag_spec=
17302 # include_expsyms should be a list of space-separated symbols to be *always*
17303 # included in the symbol list
17304 include_expsyms=
17305 # exclude_expsyms can be an extended regexp of symbols to exclude
17306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17308 # as well as any symbol that contains `d'.
17309 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17311 # platforms (ab)use it in PIC code, but their linkers get confused if
17312 # the symbol is explicitly referenced. Since portable code cannot
17313 # rely on this symbol name, it's probably fine to never include it in
17314 # preloaded symbol tables.
17315 # Exclude shared library initialization/finalization symbols.
17316 extract_expsyms_cmds=
17318 case $host_os in
17319 cygwin* | mingw* | pw32* | cegcc*)
17320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17321 # When not using gcc, we currently assume that we are using
17322 # Microsoft Visual C++.
17323 if test "$GCC" != yes; then
17324 with_gnu_ld=no
17327 interix*)
17328 # we just hope/assume this is gcc and not c89 (= MSVC++)
17329 with_gnu_ld=yes
17331 openbsd*)
17332 with_gnu_ld=no
17334 esac
17336 ld_shlibs=yes
17338 # On some targets, GNU ld is compatible enough with the native linker
17339 # that we're better off using the native interface for both.
17340 lt_use_gnu_ld_interface=no
17341 if test "$with_gnu_ld" = yes; then
17342 case $host_os in
17343 aix*)
17344 # The AIX port of GNU ld has always aspired to compatibility
17345 # with the native linker. However, as the warning in the GNU ld
17346 # block says, versions before 2.19.5* couldn't really create working
17347 # shared libraries, regardless of the interface used.
17348 case `$LD -v 2>&1` in
17349 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17350 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17351 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17353 lt_use_gnu_ld_interface=yes
17355 esac
17358 lt_use_gnu_ld_interface=yes
17360 esac
17363 if test "$lt_use_gnu_ld_interface" = yes; then
17364 # If archive_cmds runs LD, not CC, wlarc should be empty
17365 wlarc='${wl}'
17367 # Set some defaults for GNU ld with shared library support. These
17368 # are reset later if shared libraries are not supported. Putting them
17369 # here allows them to be overridden if necessary.
17370 runpath_var=LD_RUN_PATH
17371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17372 export_dynamic_flag_spec='${wl}--export-dynamic'
17373 # ancient GNU ld didn't support --whole-archive et. al.
17374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17375 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17376 else
17377 whole_archive_flag_spec=
17379 supports_anon_versioning=no
17380 case `$LD -v 2>&1` in
17381 *GNU\ gold*) supports_anon_versioning=yes ;;
17382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17385 *\ 2.11.*) ;; # other 2.11 versions
17386 *) supports_anon_versioning=yes ;;
17387 esac
17389 # See if GNU ld supports shared libraries.
17390 case $host_os in
17391 aix[3-9]*)
17392 # On AIX/PPC, the GNU linker is very broken
17393 if test "$host_cpu" != ia64; then
17394 ld_shlibs=no
17395 cat <<_LT_EOF 1>&2
17397 *** Warning: the GNU linker, at least up to release 2.19, is reported
17398 *** to be unable to reliably create shared libraries on AIX.
17399 *** Therefore, libtool is disabling shared libraries support. If you
17400 *** really care for shared libraries, you may want to install binutils
17401 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17402 *** You will then need to restart the configuration process.
17404 _LT_EOF
17408 amigaos*)
17409 case $host_cpu in
17410 powerpc)
17411 # see comment about AmigaOS4 .so support
17412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17413 archive_expsym_cmds=''
17415 m68k)
17416 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)'
17417 hardcode_libdir_flag_spec='-L$libdir'
17418 hardcode_minus_L=yes
17420 esac
17423 beos*)
17424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17425 allow_undefined_flag=unsupported
17426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17427 # support --undefined. This deserves some investigation. FIXME
17428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17429 else
17430 ld_shlibs=no
17434 cygwin* | mingw* | pw32* | cegcc*)
17435 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17436 # as there is no search path for DLLs.
17437 hardcode_libdir_flag_spec='-L$libdir'
17438 export_dynamic_flag_spec='${wl}--export-all-symbols'
17439 allow_undefined_flag=unsupported
17440 always_export_symbols=no
17441 enable_shared_with_static_runtimes=yes
17442 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17446 # If the export-symbols file already is a .def file (1st line
17447 # is EXPORTS), use it as is; otherwise, prepend...
17448 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17449 cp $export_symbols $output_objdir/$soname.def;
17450 else
17451 echo EXPORTS > $output_objdir/$soname.def;
17452 cat $export_symbols >> $output_objdir/$soname.def;
17454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17455 else
17456 ld_shlibs=no
17460 haiku*)
17461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462 link_all_deplibs=yes
17465 interix[3-9]*)
17466 hardcode_direct=no
17467 hardcode_shlibpath_var=no
17468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17469 export_dynamic_flag_spec='${wl}-E'
17470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17471 # Instead, shared libraries are loaded at an image base (0x10000000 by
17472 # default) and relocated if they conflict, which is a slow very memory
17473 # consuming and fragmenting process. To avoid this, we pick a random,
17474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17477 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'
17480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17481 tmp_diet=no
17482 if test "$host_os" = linux-dietlibc; then
17483 case $cc_basename in
17484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17485 esac
17487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17488 && test "$tmp_diet" = no
17489 then
17490 tmp_addflag=' $pic_flag'
17491 tmp_sharedflag='-shared'
17492 case $cc_basename,$host_cpu in
17493 pgcc*) # Portland Group C compiler
17494 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'
17495 tmp_addflag=' $pic_flag'
17497 pgf77* | pgf90* | pgf95* | pgfortran*)
17498 # Portland Group f77 and f90 compilers
17499 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'
17500 tmp_addflag=' $pic_flag -Mnomain' ;;
17501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17502 tmp_addflag=' -i_dynamic' ;;
17503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17504 tmp_addflag=' -i_dynamic -nofor_main' ;;
17505 ifc* | ifort*) # Intel Fortran compiler
17506 tmp_addflag=' -nofor_main' ;;
17507 lf95*) # Lahey Fortran 8.1
17508 whole_archive_flag_spec=
17509 tmp_sharedflag='--shared' ;;
17510 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17511 tmp_sharedflag='-qmkshrobj'
17512 tmp_addflag= ;;
17513 nvcc*) # Cuda Compiler Driver 2.2
17514 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'
17515 compiler_needs_object=yes
17517 esac
17518 case `$CC -V 2>&1 | sed 5q` in
17519 *Sun\ C*) # Sun C 5.9
17520 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'
17521 compiler_needs_object=yes
17522 tmp_sharedflag='-G' ;;
17523 *Sun\ F*) # Sun Fortran 8.3
17524 tmp_sharedflag='-G' ;;
17525 esac
17526 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17528 if test "x$supports_anon_versioning" = xyes; then
17529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17531 echo "local: *; };" >> $output_objdir/$libname.ver~
17532 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17535 case $cc_basename in
17536 xlf* | bgf* | bgxlf* | mpixlf*)
17537 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17538 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17539 hardcode_libdir_flag_spec=
17540 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17541 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17542 if test "x$supports_anon_versioning" = xyes; then
17543 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17545 echo "local: *; };" >> $output_objdir/$libname.ver~
17546 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17549 esac
17550 else
17551 ld_shlibs=no
17555 netbsd*)
17556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17557 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17558 wlarc=
17559 else
17560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565 solaris*)
17566 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17567 ld_shlibs=no
17568 cat <<_LT_EOF 1>&2
17570 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17571 *** create shared libraries on Solaris systems. Therefore, libtool
17572 *** is disabling shared libraries support. We urge you to upgrade GNU
17573 *** binutils to release 2.9.1 or newer. Another option is to modify
17574 *** your PATH or compiler configuration so that the native linker is
17575 *** used, and then restart.
17577 _LT_EOF
17578 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17581 else
17582 ld_shlibs=no
17586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17587 case `$LD -v 2>&1` in
17588 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17589 ld_shlibs=no
17590 cat <<_LT_EOF 1>&2
17592 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17593 *** reliably create shared libraries on SCO systems. Therefore, libtool
17594 *** is disabling shared libraries support. We urge you to upgrade GNU
17595 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17596 *** your PATH or compiler configuration so that the native linker is
17597 *** used, and then restart.
17599 _LT_EOF
17602 # For security reasons, it is highly recommended that you always
17603 # use absolute paths for naming shared libraries, and exclude the
17604 # DT_RUNPATH tag from executables and libraries. But doing so
17605 # requires that you compile everything twice, which is a pain.
17606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17610 else
17611 ld_shlibs=no
17614 esac
17617 sunos4*)
17618 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619 wlarc=
17620 hardcode_direct=yes
17621 hardcode_shlibpath_var=no
17625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17628 else
17629 ld_shlibs=no
17632 esac
17634 if test "$ld_shlibs" = no; then
17635 runpath_var=
17636 hardcode_libdir_flag_spec=
17637 export_dynamic_flag_spec=
17638 whole_archive_flag_spec=
17640 else
17641 # PORTME fill in a description of your system's linker (not GNU ld)
17642 case $host_os in
17643 aix3*)
17644 allow_undefined_flag=unsupported
17645 always_export_symbols=yes
17646 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'
17647 # Note: this linker hardcodes the directories in LIBPATH if there
17648 # are no directories specified by -L.
17649 hardcode_minus_L=yes
17650 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17651 # Neither direct hardcoding nor static linking is supported with a
17652 # broken collect2.
17653 hardcode_direct=unsupported
17657 aix[4-9]*)
17658 if test "$host_cpu" = ia64; then
17659 # On IA64, the linker does run time linking by default, so we don't
17660 # have to do anything special.
17661 aix_use_runtimelinking=no
17662 exp_sym_flag='-Bexport'
17663 no_entry_flag=""
17664 else
17665 # If we're using GNU nm, then we don't want the "-C" option.
17666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17667 # Also, AIX nm treats weak defined symbols like other global
17668 # defined symbols, whereas GNU nm marks them as "W".
17669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17670 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'
17671 else
17672 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'
17674 aix_use_runtimelinking=no
17676 # Test if we are trying to use run time linking or normal
17677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17678 # need to do runtime linking.
17679 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17680 for ld_flag in $LDFLAGS; do
17681 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17682 aix_use_runtimelinking=yes
17683 break
17685 done
17687 esac
17689 exp_sym_flag='-bexport'
17690 no_entry_flag='-bnoentry'
17693 # When large executables or shared objects are built, AIX ld can
17694 # have problems creating the table of contents. If linking a library
17695 # or program results in "error TOC overflow" add -mminimal-toc to
17696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17699 archive_cmds=''
17700 hardcode_direct=yes
17701 hardcode_direct_absolute=yes
17702 hardcode_libdir_separator=':'
17703 link_all_deplibs=yes
17704 file_list_spec='${wl}-f,'
17706 if test "$GCC" = yes; then
17707 case $host_os in aix4.[012]|aix4.[012].*)
17708 # We only want to do this on AIX 4.2 and lower, the check
17709 # below for broken collect2 doesn't work under 4.3+
17710 collect2name=`${CC} -print-prog-name=collect2`
17711 if test -f "$collect2name" &&
17712 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17713 then
17714 # We have reworked collect2
17716 else
17717 # We have old collect2
17718 hardcode_direct=unsupported
17719 # It fails to find uninstalled libraries when the uninstalled
17720 # path is not listed in the libpath. Setting hardcode_minus_L
17721 # to unsupported forces relinking
17722 hardcode_minus_L=yes
17723 hardcode_libdir_flag_spec='-L$libdir'
17724 hardcode_libdir_separator=
17727 esac
17728 shared_flag='-shared'
17729 if test "$aix_use_runtimelinking" = yes; then
17730 shared_flag="$shared_flag "'${wl}-G'
17732 else
17733 # not using gcc
17734 if test "$host_cpu" = ia64; then
17735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17736 # chokes on -Wl,-G. The following line is correct:
17737 shared_flag='-G'
17738 else
17739 if test "$aix_use_runtimelinking" = yes; then
17740 shared_flag='${wl}-G'
17741 else
17742 shared_flag='${wl}-bM:SRE'
17747 export_dynamic_flag_spec='${wl}-bexpall'
17748 # It seems that -bexpall does not export symbols beginning with
17749 # underscore (_), so it is better to generate a list of symbols to export.
17750 always_export_symbols=yes
17751 if test "$aix_use_runtimelinking" = yes; then
17752 # Warning - without using the other runtime loading flags (-brtl),
17753 # -berok will link without error, but may produce a broken library.
17754 allow_undefined_flag='-berok'
17755 # Determine the default libpath from the value encoded in an
17756 # empty executable.
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17761 main ()
17765 return 0;
17767 _ACEOF
17768 if ac_fn_c_try_link "$LINENO"; then :
17770 lt_aix_libpath_sed='
17771 /Import File Strings/,/^$/ {
17772 /^0/ {
17773 s/^0 *\(.*\)$/\1/
17777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17778 # Check for a 64-bit object if we didn't find anything.
17779 if test -z "$aix_libpath"; then
17780 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17787 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17788 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"
17789 else
17790 if test "$host_cpu" = ia64; then
17791 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17792 allow_undefined_flag="-z nodefs"
17793 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"
17794 else
17795 # Determine the default libpath from the value encoded in an
17796 # empty executable.
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17801 main ()
17805 return 0;
17807 _ACEOF
17808 if ac_fn_c_try_link "$LINENO"; then :
17810 lt_aix_libpath_sed='
17811 /Import File Strings/,/^$/ {
17812 /^0/ {
17813 s/^0 *\(.*\)$/\1/
17817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17818 # Check for a 64-bit object if we didn't find anything.
17819 if test -z "$aix_libpath"; then
17820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17827 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17828 # Warning - without using the other run time loading flags,
17829 # -berok will link without error, but may produce a broken library.
17830 no_undefined_flag=' ${wl}-bernotok'
17831 allow_undefined_flag=' ${wl}-berok'
17832 if test "$with_gnu_ld" = yes; then
17833 # We only use this code for GNU lds that support --whole-archive.
17834 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17835 else
17836 # Exported symbols can be pulled into shared objects from archives
17837 whole_archive_flag_spec='$convenience'
17839 archive_cmds_need_lc=yes
17840 # This is similar to how AIX traditionally builds its shared libraries.
17841 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'
17846 amigaos*)
17847 case $host_cpu in
17848 powerpc)
17849 # see comment about AmigaOS4 .so support
17850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17851 archive_expsym_cmds=''
17853 m68k)
17854 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)'
17855 hardcode_libdir_flag_spec='-L$libdir'
17856 hardcode_minus_L=yes
17858 esac
17861 bsdi[45]*)
17862 export_dynamic_flag_spec=-rdynamic
17865 cygwin* | mingw* | pw32* | cegcc*)
17866 # When not using gcc, we currently assume that we are using
17867 # Microsoft Visual C++.
17868 # hardcode_libdir_flag_spec is actually meaningless, as there is
17869 # no search path for DLLs.
17870 hardcode_libdir_flag_spec=' '
17871 allow_undefined_flag=unsupported
17872 # Tell ltmain to make .lib files, not .a files.
17873 libext=lib
17874 # Tell ltmain to make .dll files, not .so files.
17875 shrext_cmds=".dll"
17876 # FIXME: Setting linknames here is a bad hack.
17877 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17878 # The linker will automatically build a .lib file if we build a DLL.
17879 old_archive_from_new_cmds='true'
17880 # FIXME: Should let the user specify the lib program.
17881 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17882 fix_srcfile_path='`cygpath -w "$srcfile"`'
17883 enable_shared_with_static_runtimes=yes
17886 darwin* | rhapsody*)
17889 archive_cmds_need_lc=no
17890 hardcode_direct=no
17891 hardcode_automatic=yes
17892 hardcode_shlibpath_var=unsupported
17893 if test "$lt_cv_ld_force_load" = "yes"; then
17894 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\"`'
17895 else
17896 whole_archive_flag_spec=''
17898 link_all_deplibs=yes
17899 allow_undefined_flag="$_lt_dar_allow_undefined"
17900 case $cc_basename in
17901 ifort*) _lt_dar_can_shared=yes ;;
17902 *) _lt_dar_can_shared=$GCC ;;
17903 esac
17904 if test "$_lt_dar_can_shared" = "yes"; then
17905 output_verbose_link_cmd=func_echo_all
17906 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17907 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17908 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}"
17909 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}"
17911 else
17912 ld_shlibs=no
17917 dgux*)
17918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17919 hardcode_libdir_flag_spec='-L$libdir'
17920 hardcode_shlibpath_var=no
17923 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17924 # support. Future versions do this automatically, but an explicit c++rt0.o
17925 # does not break anything, and helps significantly (at the cost of a little
17926 # extra space).
17927 freebsd2.2*)
17928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17929 hardcode_libdir_flag_spec='-R$libdir'
17930 hardcode_direct=yes
17931 hardcode_shlibpath_var=no
17934 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17935 freebsd2.*)
17936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17937 hardcode_direct=yes
17938 hardcode_minus_L=yes
17939 hardcode_shlibpath_var=no
17942 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17943 freebsd* | dragonfly*)
17944 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17945 hardcode_libdir_flag_spec='-R$libdir'
17946 hardcode_direct=yes
17947 hardcode_shlibpath_var=no
17950 hpux9*)
17951 if test "$GCC" = yes; then
17952 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'
17953 else
17954 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'
17956 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17957 hardcode_libdir_separator=:
17958 hardcode_direct=yes
17960 # hardcode_minus_L: Not really in the search PATH,
17961 # but as the default location of the library.
17962 hardcode_minus_L=yes
17963 export_dynamic_flag_spec='${wl}-E'
17966 hpux10*)
17967 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17969 else
17970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17972 if test "$with_gnu_ld" = no; then
17973 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17974 hardcode_libdir_flag_spec_ld='+b $libdir'
17975 hardcode_libdir_separator=:
17976 hardcode_direct=yes
17977 hardcode_direct_absolute=yes
17978 export_dynamic_flag_spec='${wl}-E'
17979 # hardcode_minus_L: Not really in the search PATH,
17980 # but as the default location of the library.
17981 hardcode_minus_L=yes
17985 hpux11*)
17986 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17987 case $host_cpu in
17988 hppa*64*)
17989 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17991 ia64*)
17992 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17995 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17997 esac
17998 else
17999 case $host_cpu in
18000 hppa*64*)
18001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18003 ia64*)
18004 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18008 # Older versions of the 11.00 compiler do not understand -b yet
18009 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18011 $as_echo_n "checking if $CC understands -b... " >&6; }
18012 if ${lt_cv_prog_compiler__b+:} false; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 lt_cv_prog_compiler__b=no
18016 save_LDFLAGS="$LDFLAGS"
18017 LDFLAGS="$LDFLAGS -b"
18018 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18020 # The linker can only warn and ignore the option if not recognized
18021 # So say no if there are warnings
18022 if test -s conftest.err; then
18023 # Append any errors to the config.log.
18024 cat conftest.err 1>&5
18025 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18027 if diff conftest.exp conftest.er2 >/dev/null; then
18028 lt_cv_prog_compiler__b=yes
18030 else
18031 lt_cv_prog_compiler__b=yes
18034 $RM -r conftest*
18035 LDFLAGS="$save_LDFLAGS"
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18039 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18041 if test x"$lt_cv_prog_compiler__b" = xyes; then
18042 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18043 else
18044 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18048 esac
18050 if test "$with_gnu_ld" = no; then
18051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18052 hardcode_libdir_separator=:
18054 case $host_cpu in
18055 hppa*64*|ia64*)
18056 hardcode_direct=no
18057 hardcode_shlibpath_var=no
18060 hardcode_direct=yes
18061 hardcode_direct_absolute=yes
18062 export_dynamic_flag_spec='${wl}-E'
18064 # hardcode_minus_L: Not really in the search PATH,
18065 # but as the default location of the library.
18066 hardcode_minus_L=yes
18068 esac
18072 irix5* | irix6* | nonstopux*)
18073 if test "$GCC" = yes; then
18074 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'
18075 # Try to use the -exported_symbol ld option, if it does not
18076 # work, assume that -exports_file does not work either and
18077 # implicitly export all symbols.
18078 save_LDFLAGS="$LDFLAGS"
18079 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081 /* end confdefs.h. */
18082 int foo(void) {}
18083 _ACEOF
18084 if ac_fn_c_try_link "$LINENO"; then :
18085 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'
18088 rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090 LDFLAGS="$save_LDFLAGS"
18091 else
18092 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'
18093 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'
18095 archive_cmds_need_lc='no'
18096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18097 hardcode_libdir_separator=:
18098 inherit_rpath=yes
18099 link_all_deplibs=yes
18102 netbsd*)
18103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18105 else
18106 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18108 hardcode_libdir_flag_spec='-R$libdir'
18109 hardcode_direct=yes
18110 hardcode_shlibpath_var=no
18113 newsos6)
18114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 hardcode_direct=yes
18116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18117 hardcode_libdir_separator=:
18118 hardcode_shlibpath_var=no
18121 *nto* | *qnx*)
18124 openbsd*)
18125 if test -f /usr/libexec/ld.so; then
18126 hardcode_direct=yes
18127 hardcode_shlibpath_var=no
18128 hardcode_direct_absolute=yes
18129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18130 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18133 export_dynamic_flag_spec='${wl}-E'
18134 else
18135 case $host_os in
18136 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18138 hardcode_libdir_flag_spec='-R$libdir'
18141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18144 esac
18146 else
18147 ld_shlibs=no
18151 os2*)
18152 hardcode_libdir_flag_spec='-L$libdir'
18153 hardcode_minus_L=yes
18154 allow_undefined_flag=unsupported
18155 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'
18156 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18159 osf3*)
18160 if test "$GCC" = yes; then
18161 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18162 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'
18163 else
18164 allow_undefined_flag=' -expect_unresolved \*'
18165 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'
18167 archive_cmds_need_lc='no'
18168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18169 hardcode_libdir_separator=:
18172 osf4* | osf5*) # as osf3* with the addition of -msym flag
18173 if test "$GCC" = yes; then
18174 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18175 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'
18176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18177 else
18178 allow_undefined_flag=' -expect_unresolved \*'
18179 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'
18180 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~
18181 $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'
18183 # Both c and cxx compiler support -rpath directly
18184 hardcode_libdir_flag_spec='-rpath $libdir'
18186 archive_cmds_need_lc='no'
18187 hardcode_libdir_separator=:
18190 solaris*)
18191 no_undefined_flag=' -z defs'
18192 if test "$GCC" = yes; then
18193 wlarc='${wl}'
18194 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18195 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18196 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18197 else
18198 case `$CC -V 2>&1` in
18199 *"Compilers 5.0"*)
18200 wlarc=''
18201 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18202 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18203 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18206 wlarc='${wl}'
18207 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18208 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18209 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18211 esac
18213 hardcode_libdir_flag_spec='-R$libdir'
18214 hardcode_shlibpath_var=no
18215 case $host_os in
18216 solaris2.[0-5] | solaris2.[0-5].*) ;;
18218 # The compiler driver will combine and reorder linker options,
18219 # but understands `-z linker_flag'. GCC discards it without `$wl',
18220 # but is careful enough not to reorder.
18221 # Supported since Solaris 2.6 (maybe 2.5.1?)
18222 if test "$GCC" = yes; then
18223 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18224 else
18225 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18228 esac
18229 link_all_deplibs=yes
18232 sunos4*)
18233 if test "x$host_vendor" = xsequent; then
18234 # Use $CC to link under sequent, because it throws in some extra .o
18235 # files that make .init and .fini sections work.
18236 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18237 else
18238 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18240 hardcode_libdir_flag_spec='-L$libdir'
18241 hardcode_direct=yes
18242 hardcode_minus_L=yes
18243 hardcode_shlibpath_var=no
18246 sysv4)
18247 case $host_vendor in
18248 sni)
18249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18250 hardcode_direct=yes # is this really true???
18252 siemens)
18253 ## LD is ld it makes a PLAMLIB
18254 ## CC just makes a GrossModule.
18255 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18256 reload_cmds='$CC -r -o $output$reload_objs'
18257 hardcode_direct=no
18259 motorola)
18260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18261 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18263 esac
18264 runpath_var='LD_RUN_PATH'
18265 hardcode_shlibpath_var=no
18268 sysv4.3*)
18269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18270 hardcode_shlibpath_var=no
18271 export_dynamic_flag_spec='-Bexport'
18274 sysv4*MP*)
18275 if test -d /usr/nec; then
18276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277 hardcode_shlibpath_var=no
18278 runpath_var=LD_RUN_PATH
18279 hardcode_runpath_var=yes
18280 ld_shlibs=yes
18284 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18285 no_undefined_flag='${wl}-z,text'
18286 archive_cmds_need_lc=no
18287 hardcode_shlibpath_var=no
18288 runpath_var='LD_RUN_PATH'
18290 if test "$GCC" = yes; then
18291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18293 else
18294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18299 sysv5* | sco3.2v5* | sco5v6*)
18300 # Note: We can NOT use -z defs as we might desire, because we do not
18301 # link with -lc, and that would cause any symbols used from libc to
18302 # always be unresolved, which means just about no library would
18303 # ever link correctly. If we're not using GNU ld we use -z text
18304 # though, which does catch some bad symbols but isn't as heavy-handed
18305 # as -z defs.
18306 no_undefined_flag='${wl}-z,text'
18307 allow_undefined_flag='${wl}-z,nodefs'
18308 archive_cmds_need_lc=no
18309 hardcode_shlibpath_var=no
18310 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18311 hardcode_libdir_separator=':'
18312 link_all_deplibs=yes
18313 export_dynamic_flag_spec='${wl}-Bexport'
18314 runpath_var='LD_RUN_PATH'
18316 if test "$GCC" = yes; then
18317 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18318 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18319 else
18320 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18321 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18325 uts4*)
18326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327 hardcode_libdir_flag_spec='-L$libdir'
18328 hardcode_shlibpath_var=no
18332 ld_shlibs=no
18334 esac
18336 if test x$host_vendor = xsni; then
18337 case $host in
18338 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18339 export_dynamic_flag_spec='${wl}-Blargedynsym'
18341 esac
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18346 $as_echo "$ld_shlibs" >&6; }
18347 test "$ld_shlibs" = no && can_build_shared=no
18349 with_gnu_ld=$with_gnu_ld
18366 # Do we need to explicitly link libc?
18368 case "x$archive_cmds_need_lc" in
18369 x|xyes)
18370 # Assume -lc should be added
18371 archive_cmds_need_lc=yes
18373 if test "$enable_shared" = yes && test "$GCC" = yes; then
18374 case $archive_cmds in
18375 *'~'*)
18376 # FIXME: we may have to deal with multi-command sequences.
18378 '$CC '*)
18379 # Test whether the compiler implicitly links with -lc since on some
18380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18381 # to ld, don't add -lc before -lgcc.
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18383 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18384 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387 $RM conftest*
18388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18391 (eval $ac_compile) 2>&5
18392 ac_status=$?
18393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394 test $ac_status = 0; } 2>conftest.err; then
18395 soname=conftest
18396 lib=conftest
18397 libobjs=conftest.$ac_objext
18398 deplibs=
18399 wl=$lt_prog_compiler_wl
18400 pic_flag=$lt_prog_compiler_pic
18401 compiler_flags=-v
18402 linker_flags=-v
18403 verstring=
18404 output_objdir=.
18405 libname=conftest
18406 lt_save_allow_undefined_flag=$allow_undefined_flag
18407 allow_undefined_flag=
18408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18409 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18410 ac_status=$?
18411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18412 test $ac_status = 0; }
18413 then
18414 lt_cv_archive_cmds_need_lc=no
18415 else
18416 lt_cv_archive_cmds_need_lc=yes
18418 allow_undefined_flag=$lt_save_allow_undefined_flag
18419 else
18420 cat conftest.err 1>&5
18422 $RM conftest*
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18426 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18427 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18429 esac
18432 esac
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18593 if test "$GCC" = yes; then
18594 case $host_os in
18595 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18596 *) lt_awk_arg="/^libraries:/" ;;
18597 esac
18598 case $host_os in
18599 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18600 *) lt_sed_strip_eq="s,=/,/,g" ;;
18601 esac
18602 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18603 case $lt_search_path_spec in
18604 *\;*)
18605 # if the path contains ";" then we assume it to be the separator
18606 # otherwise default to the standard path separator (i.e. ":") - it is
18607 # assumed that no part of a normal pathname contains ";" but that should
18608 # okay in the real world where ";" in dirpaths is itself problematic.
18609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18612 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18614 esac
18615 # Ok, now we have the path, separated by spaces, we can step through it
18616 # and add multilib dir if necessary.
18617 lt_tmp_lt_search_path_spec=
18618 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18619 for lt_sys_path in $lt_search_path_spec; do
18620 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18621 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18622 else
18623 test -d "$lt_sys_path" && \
18624 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18626 done
18627 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18628 BEGIN {RS=" "; FS="/|\n";} {
18629 lt_foo="";
18630 lt_count=0;
18631 for (lt_i = NF; lt_i > 0; lt_i--) {
18632 if ($lt_i != "" && $lt_i != ".") {
18633 if ($lt_i == "..") {
18634 lt_count++;
18635 } else {
18636 if (lt_count == 0) {
18637 lt_foo="/" $lt_i lt_foo;
18638 } else {
18639 lt_count--;
18644 if (lt_foo != "") { lt_freq[lt_foo]++; }
18645 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18647 # AWK program above erroneously prepends '/' to C:/dos/paths
18648 # for these hosts.
18649 case $host_os in
18650 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18651 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18652 esac
18653 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18654 else
18655 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18657 library_names_spec=
18658 libname_spec='lib$name'
18659 soname_spec=
18660 shrext_cmds=".so"
18661 postinstall_cmds=
18662 postuninstall_cmds=
18663 finish_cmds=
18664 finish_eval=
18665 shlibpath_var=
18666 shlibpath_overrides_runpath=unknown
18667 version_type=none
18668 dynamic_linker="$host_os ld.so"
18669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18670 need_lib_prefix=unknown
18671 hardcode_into_libs=no
18673 # when you set need_version to no, make sure it does not cause -set_version
18674 # flags to be left without arguments
18675 need_version=unknown
18677 case $host_os in
18678 aix3*)
18679 version_type=linux
18680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18681 shlibpath_var=LIBPATH
18683 # AIX 3 has no versioning support, so we append a major version to the name.
18684 soname_spec='${libname}${release}${shared_ext}$major'
18687 aix[4-9]*)
18688 version_type=linux
18689 need_lib_prefix=no
18690 need_version=no
18691 hardcode_into_libs=yes
18692 if test "$host_cpu" = ia64; then
18693 # AIX 5 supports IA64
18694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 else
18697 # With GCC up to 2.95.x, collect2 would create an import file
18698 # for dependence libraries. The import file would start with
18699 # the line `#! .'. This would cause the generated library to
18700 # depend on `.', always an invalid library. This was fixed in
18701 # development snapshots of GCC prior to 3.0.
18702 case $host_os in
18703 aix4 | aix4.[01] | aix4.[01].*)
18704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18705 echo ' yes '
18706 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18708 else
18709 can_build_shared=no
18712 esac
18713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18714 # soname into executable. Probably we can add versioning support to
18715 # collect2, so additional links can be useful in future.
18716 if test "$aix_use_runtimelinking" = yes; then
18717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18718 # instead of lib<name>.a to let people know that these are not
18719 # typical AIX shared libraries.
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 else
18722 # We preserve .a as extension for shared libraries through AIX4.2
18723 # and later when we are not doing run time linking.
18724 library_names_spec='${libname}${release}.a $libname.a'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18727 shlibpath_var=LIBPATH
18731 amigaos*)
18732 case $host_cpu in
18733 powerpc)
18734 # Since July 2007 AmigaOS4 officially supports .so libraries.
18735 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18738 m68k)
18739 library_names_spec='$libname.ixlibrary $libname.a'
18740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18741 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'
18743 esac
18746 beos*)
18747 library_names_spec='${libname}${shared_ext}'
18748 dynamic_linker="$host_os ld.so"
18749 shlibpath_var=LIBRARY_PATH
18752 bsdi[45]*)
18753 version_type=linux
18754 need_version=no
18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18756 soname_spec='${libname}${release}${shared_ext}$major'
18757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18758 shlibpath_var=LD_LIBRARY_PATH
18759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18761 # the default ld.so.conf also contains /usr/contrib/lib and
18762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18763 # libtool to hard-code these into programs
18766 cygwin* | mingw* | pw32* | cegcc*)
18767 version_type=windows
18768 shrext_cmds=".dll"
18769 need_version=no
18770 need_lib_prefix=no
18772 case $GCC,$host_os in
18773 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18774 library_names_spec='$libname.dll.a'
18775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18776 postinstall_cmds='base_file=`basename \${file}`~
18777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18778 dldir=$destdir/`dirname \$dlpath`~
18779 test -d \$dldir || mkdir -p \$dldir~
18780 $install_prog $dir/$dlname \$dldir/$dlname~
18781 chmod a+x \$dldir/$dlname~
18782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18786 dlpath=$dir/\$dldll~
18787 $RM \$dlpath'
18788 shlibpath_overrides_runpath=yes
18790 case $host_os in
18791 cygwin*)
18792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18797 mingw* | cegcc*)
18798 # MinGW DLLs use traditional 'lib' prefix
18799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18801 pw32*)
18802 # pw32 DLLs use 'pw' prefix rather than 'lib'
18803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18805 esac
18809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18811 esac
18812 dynamic_linker='Win32 ld.exe'
18813 # FIXME: first we should search . and the directory the executable is in
18814 shlibpath_var=PATH
18817 darwin* | rhapsody*)
18818 dynamic_linker="$host_os dyld"
18819 version_type=darwin
18820 need_lib_prefix=no
18821 need_version=no
18822 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18823 soname_spec='${libname}${release}${major}$shared_ext'
18824 shlibpath_overrides_runpath=yes
18825 shlibpath_var=DYLD_LIBRARY_PATH
18826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18828 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18832 dgux*)
18833 version_type=linux
18834 need_lib_prefix=no
18835 need_version=no
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18841 freebsd* | dragonfly*)
18842 # DragonFly does not have aout. When/if they implement a new
18843 # versioning mechanism, adjust this.
18844 if test -x /usr/bin/objformat; then
18845 objformat=`/usr/bin/objformat`
18846 else
18847 case $host_os in
18848 freebsd[23].*) objformat=aout ;;
18849 *) objformat=elf ;;
18850 esac
18852 version_type=freebsd-$objformat
18853 case $version_type in
18854 freebsd-elf*)
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18856 need_version=no
18857 need_lib_prefix=no
18859 freebsd-*)
18860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18861 need_version=yes
18863 esac
18864 shlibpath_var=LD_LIBRARY_PATH
18865 case $host_os in
18866 freebsd2.*)
18867 shlibpath_overrides_runpath=yes
18869 freebsd3.[01]* | freebsdelf3.[01]*)
18870 shlibpath_overrides_runpath=yes
18871 hardcode_into_libs=yes
18873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18875 shlibpath_overrides_runpath=no
18876 hardcode_into_libs=yes
18878 *) # from 4.6 on, and DragonFly
18879 shlibpath_overrides_runpath=yes
18880 hardcode_into_libs=yes
18882 esac
18885 haiku*)
18886 version_type=linux
18887 need_lib_prefix=no
18888 need_version=no
18889 dynamic_linker="$host_os runtime_loader"
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18891 soname_spec='${libname}${release}${shared_ext}$major'
18892 shlibpath_var=LIBRARY_PATH
18893 shlibpath_overrides_runpath=yes
18894 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18895 hardcode_into_libs=yes
18898 hpux9* | hpux10* | hpux11*)
18899 # Give a soname corresponding to the major version so that dld.sl refuses to
18900 # link against other versions.
18901 version_type=sunos
18902 need_lib_prefix=no
18903 need_version=no
18904 case $host_cpu in
18905 ia64*)
18906 shrext_cmds='.so'
18907 hardcode_into_libs=yes
18908 dynamic_linker="$host_os dld.so"
18909 shlibpath_var=LD_LIBRARY_PATH
18910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18912 soname_spec='${libname}${release}${shared_ext}$major'
18913 if test "X$HPUX_IA64_MODE" = X32; then
18914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18915 else
18916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18920 hppa*64*)
18921 shrext_cmds='.sl'
18922 hardcode_into_libs=yes
18923 dynamic_linker="$host_os dld.sl"
18924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927 soname_spec='${libname}${release}${shared_ext}$major'
18928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18932 shrext_cmds='.sl'
18933 dynamic_linker="$host_os dld.sl"
18934 shlibpath_var=SHLIB_PATH
18935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18937 soname_spec='${libname}${release}${shared_ext}$major'
18939 esac
18940 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18941 postinstall_cmds='chmod 555 $lib'
18942 # or fails outright, so override atomically:
18943 install_override_mode=555
18946 interix[3-9]*)
18947 version_type=linux
18948 need_lib_prefix=no
18949 need_version=no
18950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18951 soname_spec='${libname}${release}${shared_ext}$major'
18952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18953 shlibpath_var=LD_LIBRARY_PATH
18954 shlibpath_overrides_runpath=no
18955 hardcode_into_libs=yes
18958 irix5* | irix6* | nonstopux*)
18959 case $host_os in
18960 nonstopux*) version_type=nonstopux ;;
18962 if test "$lt_cv_prog_gnu_ld" = yes; then
18963 version_type=linux
18964 else
18965 version_type=irix
18966 fi ;;
18967 esac
18968 need_lib_prefix=no
18969 need_version=no
18970 soname_spec='${libname}${release}${shared_ext}$major'
18971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18972 case $host_os in
18973 irix5* | nonstopux*)
18974 libsuff= shlibsuff=
18977 case $LD in # libtool.m4 will add one of these switches to LD
18978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18979 libsuff= shlibsuff= libmagic=32-bit;;
18980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18981 libsuff=32 shlibsuff=N32 libmagic=N32;;
18982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18984 *) libsuff= shlibsuff= libmagic=never-match;;
18985 esac
18987 esac
18988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18989 shlibpath_overrides_runpath=no
18990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18992 hardcode_into_libs=yes
18995 # No shared lib support for Linux oldld, aout, or coff.
18996 linux*oldld* | linux*aout* | linux*coff*)
18997 dynamic_linker=no
19000 # This must be Linux ELF.
19002 # uclinux* changes (here and below) have been submitted to the libtool
19003 # project, but have not yet been accepted: they are GCC-local changes
19004 # for the time being. (See
19005 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19006 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19007 version_type=linux
19008 need_lib_prefix=no
19009 need_version=no
19010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19011 soname_spec='${libname}${release}${shared_ext}$major'
19012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19013 shlibpath_var=LD_LIBRARY_PATH
19014 shlibpath_overrides_runpath=no
19016 # Some binutils ld are patched to set DT_RUNPATH
19017 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19018 $as_echo_n "(cached) " >&6
19019 else
19020 lt_cv_shlibpath_overrides_runpath=no
19021 save_LDFLAGS=$LDFLAGS
19022 save_libdir=$libdir
19023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19029 main ()
19033 return 0;
19035 _ACEOF
19036 if ac_fn_c_try_link "$LINENO"; then :
19037 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19038 lt_cv_shlibpath_overrides_runpath=yes
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 LDFLAGS=$save_LDFLAGS
19044 libdir=$save_libdir
19048 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19050 # This implies no fast_install, which is unacceptable.
19051 # Some rework will be needed to allow for fast_install
19052 # before this can be enabled.
19053 hardcode_into_libs=yes
19055 # Append ld.so.conf contents to the search path
19056 if test -f /etc/ld.so.conf; then
19057 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' ' '`
19058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19061 # We used to test for /lib/ld.so.1 and disable shared libraries on
19062 # powerpc, because MkLinux only supported shared libraries with the
19063 # GNU dynamic linker. Since this was broken with cross compilers,
19064 # most powerpc-linux boxes support dynamic linking these days and
19065 # people can always --disable-shared, the test was removed, and we
19066 # assume the GNU/Linux dynamic linker is in use.
19067 dynamic_linker='GNU/Linux ld.so'
19070 netbsd*)
19071 version_type=sunos
19072 need_lib_prefix=no
19073 need_version=no
19074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19077 dynamic_linker='NetBSD (a.out) ld.so'
19078 else
19079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19080 soname_spec='${libname}${release}${shared_ext}$major'
19081 dynamic_linker='NetBSD ld.elf_so'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 shlibpath_overrides_runpath=yes
19085 hardcode_into_libs=yes
19088 newsos6)
19089 version_type=linux
19090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19091 shlibpath_var=LD_LIBRARY_PATH
19092 shlibpath_overrides_runpath=yes
19095 *nto* | *qnx*)
19096 version_type=qnx
19097 need_lib_prefix=no
19098 need_version=no
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100 soname_spec='${libname}${release}${shared_ext}$major'
19101 shlibpath_var=LD_LIBRARY_PATH
19102 shlibpath_overrides_runpath=no
19103 hardcode_into_libs=yes
19104 dynamic_linker='ldqnx.so'
19107 openbsd*)
19108 version_type=sunos
19109 sys_lib_dlsearch_path_spec="/usr/lib"
19110 need_lib_prefix=no
19111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19112 case $host_os in
19113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19114 *) need_version=no ;;
19115 esac
19116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19118 shlibpath_var=LD_LIBRARY_PATH
19119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19120 case $host_os in
19121 openbsd2.[89] | openbsd2.[89].*)
19122 shlibpath_overrides_runpath=no
19125 shlibpath_overrides_runpath=yes
19127 esac
19128 else
19129 shlibpath_overrides_runpath=yes
19133 os2*)
19134 libname_spec='$name'
19135 shrext_cmds=".dll"
19136 need_lib_prefix=no
19137 library_names_spec='$libname${shared_ext} $libname.a'
19138 dynamic_linker='OS/2 ld.exe'
19139 shlibpath_var=LIBPATH
19142 osf3* | osf4* | osf5*)
19143 version_type=osf
19144 need_lib_prefix=no
19145 need_version=no
19146 soname_spec='${libname}${release}${shared_ext}$major'
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19148 shlibpath_var=LD_LIBRARY_PATH
19149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19153 rdos*)
19154 dynamic_linker=no
19157 solaris*)
19158 version_type=linux
19159 need_lib_prefix=no
19160 need_version=no
19161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19162 soname_spec='${libname}${release}${shared_ext}$major'
19163 shlibpath_var=LD_LIBRARY_PATH
19164 shlibpath_overrides_runpath=yes
19165 hardcode_into_libs=yes
19166 # ldd complains unless libraries are executable
19167 postinstall_cmds='chmod +x $lib'
19170 sunos4*)
19171 version_type=sunos
19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19174 shlibpath_var=LD_LIBRARY_PATH
19175 shlibpath_overrides_runpath=yes
19176 if test "$with_gnu_ld" = yes; then
19177 need_lib_prefix=no
19179 need_version=yes
19182 sysv4 | sysv4.3*)
19183 version_type=linux
19184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19185 soname_spec='${libname}${release}${shared_ext}$major'
19186 shlibpath_var=LD_LIBRARY_PATH
19187 case $host_vendor in
19188 sni)
19189 shlibpath_overrides_runpath=no
19190 need_lib_prefix=no
19191 runpath_var=LD_RUN_PATH
19193 siemens)
19194 need_lib_prefix=no
19196 motorola)
19197 need_lib_prefix=no
19198 need_version=no
19199 shlibpath_overrides_runpath=no
19200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19202 esac
19205 sysv4*MP*)
19206 if test -d /usr/nec ;then
19207 version_type=linux
19208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19209 soname_spec='$libname${shared_ext}.$major'
19210 shlibpath_var=LD_LIBRARY_PATH
19214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19215 version_type=freebsd-elf
19216 need_lib_prefix=no
19217 need_version=no
19218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19219 soname_spec='${libname}${release}${shared_ext}$major'
19220 shlibpath_var=LD_LIBRARY_PATH
19221 shlibpath_overrides_runpath=yes
19222 hardcode_into_libs=yes
19223 if test "$with_gnu_ld" = yes; then
19224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19225 else
19226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19227 case $host_os in
19228 sco3.2v5*)
19229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19231 esac
19233 sys_lib_dlsearch_path_spec='/usr/lib'
19236 tpf*)
19237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19238 version_type=linux
19239 need_lib_prefix=no
19240 need_version=no
19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19242 shlibpath_var=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath=no
19244 hardcode_into_libs=yes
19247 uts4*)
19248 version_type=linux
19249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250 soname_spec='${libname}${release}${shared_ext}$major'
19251 shlibpath_var=LD_LIBRARY_PATH
19254 # Shared libraries for VwWorks, >= 7 only at this stage
19255 # and (fpic) still incompatible with "large" code models
19256 # in a few configurations. Only for RTP mode in any case,
19257 # and upon explicit request at configure time.
19258 vxworks7*)
19259 dynamic_linker=no
19260 case ${with_multisubdir}-${enable_shared} in
19261 *large*)
19263 *mrtp*-yes)
19264 version_type=linux
19265 need_lib_prefix=no
19266 need_version=no
19267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19268 soname_spec='${libname}${release}${shared_ext}$major'
19269 dynamic_linker="$host_os module_loader"
19271 esac
19274 dynamic_linker=no
19276 esac
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19278 $as_echo "$dynamic_linker" >&6; }
19279 test "$dynamic_linker" = no && can_build_shared=no
19281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19282 if test "$GCC" = yes; then
19283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19385 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19386 hardcode_action=
19387 if test -n "$hardcode_libdir_flag_spec" ||
19388 test -n "$runpath_var" ||
19389 test "X$hardcode_automatic" = "Xyes" ; then
19391 # We can hardcode non-existent directories.
19392 if test "$hardcode_direct" != no &&
19393 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19394 # have to relink, otherwise we might link with an installed library
19395 # when we should be linking with a yet-to-be-installed one
19396 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19397 test "$hardcode_minus_L" != no; then
19398 # Linking always hardcodes the temporary library directory.
19399 hardcode_action=relink
19400 else
19401 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19402 hardcode_action=immediate
19404 else
19405 # We cannot hardcode anything, or else we can only hardcode existing
19406 # directories.
19407 hardcode_action=unsupported
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19410 $as_echo "$hardcode_action" >&6; }
19412 if test "$hardcode_action" = relink ||
19413 test "$inherit_rpath" = yes; then
19414 # Fast installation is not supported
19415 enable_fast_install=no
19416 elif test "$shlibpath_overrides_runpath" = yes ||
19417 test "$enable_shared" = no; then
19418 # Fast installation is not necessary
19419 enable_fast_install=needless
19427 if test "x$enable_dlopen" != xyes; then
19428 enable_dlopen=unknown
19429 enable_dlopen_self=unknown
19430 enable_dlopen_self_static=unknown
19431 else
19432 lt_cv_dlopen=no
19433 lt_cv_dlopen_libs=
19435 case $host_os in
19436 beos*)
19437 lt_cv_dlopen="load_add_on"
19438 lt_cv_dlopen_libs=
19439 lt_cv_dlopen_self=yes
19442 mingw* | pw32* | cegcc*)
19443 lt_cv_dlopen="LoadLibrary"
19444 lt_cv_dlopen_libs=
19447 cygwin*)
19448 lt_cv_dlopen="dlopen"
19449 lt_cv_dlopen_libs=
19452 darwin*)
19453 # if libdl is installed we need to link against it
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19455 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19456 if ${ac_cv_lib_dl_dlopen+:} false; then :
19457 $as_echo_n "(cached) " >&6
19458 else
19459 ac_check_lib_save_LIBS=$LIBS
19460 LIBS="-ldl $LIBS"
19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h. */
19464 /* Override any GCC internal prototype to avoid an error.
19465 Use char because int might match the return type of a GCC
19466 builtin and then its argument prototype would still apply. */
19467 #ifdef __cplusplus
19468 extern "C"
19469 #endif
19470 char dlopen ();
19472 main ()
19474 return dlopen ();
19476 return 0;
19478 _ACEOF
19479 if ac_fn_c_try_link "$LINENO"; then :
19480 ac_cv_lib_dl_dlopen=yes
19481 else
19482 ac_cv_lib_dl_dlopen=no
19484 rm -f core conftest.err conftest.$ac_objext \
19485 conftest$ac_exeext conftest.$ac_ext
19486 LIBS=$ac_check_lib_save_LIBS
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19489 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19490 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19492 else
19494 lt_cv_dlopen="dyld"
19495 lt_cv_dlopen_libs=
19496 lt_cv_dlopen_self=yes
19503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19504 if test "x$ac_cv_func_shl_load" = xyes; then :
19505 lt_cv_dlopen="shl_load"
19506 else
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19508 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19509 if ${ac_cv_lib_dld_shl_load+:} false; then :
19510 $as_echo_n "(cached) " >&6
19511 else
19512 ac_check_lib_save_LIBS=$LIBS
19513 LIBS="-ldld $LIBS"
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19520 #ifdef __cplusplus
19521 extern "C"
19522 #endif
19523 char shl_load ();
19525 main ()
19527 return shl_load ();
19529 return 0;
19531 _ACEOF
19532 if ac_fn_c_try_link "$LINENO"; then :
19533 ac_cv_lib_dld_shl_load=yes
19534 else
19535 ac_cv_lib_dld_shl_load=no
19537 rm -f core conftest.err conftest.$ac_objext \
19538 conftest$ac_exeext conftest.$ac_ext
19539 LIBS=$ac_check_lib_save_LIBS
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19542 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19543 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19545 else
19546 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19547 if test "x$ac_cv_func_dlopen" = xyes; then :
19548 lt_cv_dlopen="dlopen"
19549 else
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19552 if ${ac_cv_lib_dl_dlopen+:} false; then :
19553 $as_echo_n "(cached) " >&6
19554 else
19555 ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-ldl $LIBS"
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563 #ifdef __cplusplus
19564 extern "C"
19565 #endif
19566 char dlopen ();
19568 main ()
19570 return dlopen ();
19572 return 0;
19574 _ACEOF
19575 if ac_fn_c_try_link "$LINENO"; then :
19576 ac_cv_lib_dl_dlopen=yes
19577 else
19578 ac_cv_lib_dl_dlopen=no
19580 rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
19582 LIBS=$ac_check_lib_save_LIBS
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19585 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19586 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19588 else
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19590 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19591 if ${ac_cv_lib_svld_dlopen+:} false; then :
19592 $as_echo_n "(cached) " >&6
19593 else
19594 ac_check_lib_save_LIBS=$LIBS
19595 LIBS="-lsvld $LIBS"
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19599 /* Override any GCC internal prototype to avoid an error.
19600 Use char because int might match the return type of a GCC
19601 builtin and then its argument prototype would still apply. */
19602 #ifdef __cplusplus
19603 extern "C"
19604 #endif
19605 char dlopen ();
19607 main ()
19609 return dlopen ();
19611 return 0;
19613 _ACEOF
19614 if ac_fn_c_try_link "$LINENO"; then :
19615 ac_cv_lib_svld_dlopen=yes
19616 else
19617 ac_cv_lib_svld_dlopen=no
19619 rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19621 LIBS=$ac_check_lib_save_LIBS
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19624 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19625 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19627 else
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19629 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19630 if ${ac_cv_lib_dld_dld_link+:} false; then :
19631 $as_echo_n "(cached) " >&6
19632 else
19633 ac_check_lib_save_LIBS=$LIBS
19634 LIBS="-ldld $LIBS"
19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19638 /* Override any GCC internal prototype to avoid an error.
19639 Use char because int might match the return type of a GCC
19640 builtin and then its argument prototype would still apply. */
19641 #ifdef __cplusplus
19642 extern "C"
19643 #endif
19644 char dld_link ();
19646 main ()
19648 return dld_link ();
19650 return 0;
19652 _ACEOF
19653 if ac_fn_c_try_link "$LINENO"; then :
19654 ac_cv_lib_dld_dld_link=yes
19655 else
19656 ac_cv_lib_dld_dld_link=no
19658 rm -f core conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19663 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19664 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19665 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19684 esac
19686 if test "x$lt_cv_dlopen" != xno; then
19687 enable_dlopen=yes
19688 else
19689 enable_dlopen=no
19692 case $lt_cv_dlopen in
19693 dlopen)
19694 save_CPPFLAGS="$CPPFLAGS"
19695 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19697 save_LDFLAGS="$LDFLAGS"
19698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19700 save_LIBS="$LIBS"
19701 LIBS="$lt_cv_dlopen_libs $LIBS"
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19704 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19705 if ${lt_cv_dlopen_self+:} false; then :
19706 $as_echo_n "(cached) " >&6
19707 else
19708 if test "$cross_compiling" = yes; then :
19709 lt_cv_dlopen_self=cross
19710 else
19711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19712 lt_status=$lt_dlunknown
19713 cat > conftest.$ac_ext <<_LT_EOF
19714 #line 19714 "configure"
19715 #include "confdefs.h"
19717 #if HAVE_DLFCN_H
19718 #include <dlfcn.h>
19719 #endif
19721 #include <stdio.h>
19723 #ifdef RTLD_GLOBAL
19724 # define LT_DLGLOBAL RTLD_GLOBAL
19725 #else
19726 # ifdef DL_GLOBAL
19727 # define LT_DLGLOBAL DL_GLOBAL
19728 # else
19729 # define LT_DLGLOBAL 0
19730 # endif
19731 #endif
19733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19734 find out it does not work in some platform. */
19735 #ifndef LT_DLLAZY_OR_NOW
19736 # ifdef RTLD_LAZY
19737 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19738 # else
19739 # ifdef DL_LAZY
19740 # define LT_DLLAZY_OR_NOW DL_LAZY
19741 # else
19742 # ifdef RTLD_NOW
19743 # define LT_DLLAZY_OR_NOW RTLD_NOW
19744 # else
19745 # ifdef DL_NOW
19746 # define LT_DLLAZY_OR_NOW DL_NOW
19747 # else
19748 # define LT_DLLAZY_OR_NOW 0
19749 # endif
19750 # endif
19751 # endif
19752 # endif
19753 #endif
19755 /* When -fvisbility=hidden is used, assume the code has been annotated
19756 correspondingly for the symbols needed. */
19757 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19758 void fnord () __attribute__((visibility("default")));
19759 #endif
19761 void fnord () { int i=42; }
19762 int main ()
19764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19765 int status = $lt_dlunknown;
19767 if (self)
19769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19770 else
19772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19773 else puts (dlerror ());
19775 /* dlclose (self); */
19777 else
19778 puts (dlerror ());
19780 return status;
19782 _LT_EOF
19783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19784 (eval $ac_link) 2>&5
19785 ac_status=$?
19786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19787 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19788 (./conftest; exit; ) >&5 2>/dev/null
19789 lt_status=$?
19790 case x$lt_status in
19791 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19792 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19793 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19794 esac
19795 else :
19796 # compilation failed
19797 lt_cv_dlopen_self=no
19800 rm -fr conftest*
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19805 $as_echo "$lt_cv_dlopen_self" >&6; }
19807 if test "x$lt_cv_dlopen_self" = xyes; then
19808 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19810 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19811 if ${lt_cv_dlopen_self_static+:} false; then :
19812 $as_echo_n "(cached) " >&6
19813 else
19814 if test "$cross_compiling" = yes; then :
19815 lt_cv_dlopen_self_static=cross
19816 else
19817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19818 lt_status=$lt_dlunknown
19819 cat > conftest.$ac_ext <<_LT_EOF
19820 #line 19820 "configure"
19821 #include "confdefs.h"
19823 #if HAVE_DLFCN_H
19824 #include <dlfcn.h>
19825 #endif
19827 #include <stdio.h>
19829 #ifdef RTLD_GLOBAL
19830 # define LT_DLGLOBAL RTLD_GLOBAL
19831 #else
19832 # ifdef DL_GLOBAL
19833 # define LT_DLGLOBAL DL_GLOBAL
19834 # else
19835 # define LT_DLGLOBAL 0
19836 # endif
19837 #endif
19839 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19840 find out it does not work in some platform. */
19841 #ifndef LT_DLLAZY_OR_NOW
19842 # ifdef RTLD_LAZY
19843 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19844 # else
19845 # ifdef DL_LAZY
19846 # define LT_DLLAZY_OR_NOW DL_LAZY
19847 # else
19848 # ifdef RTLD_NOW
19849 # define LT_DLLAZY_OR_NOW RTLD_NOW
19850 # else
19851 # ifdef DL_NOW
19852 # define LT_DLLAZY_OR_NOW DL_NOW
19853 # else
19854 # define LT_DLLAZY_OR_NOW 0
19855 # endif
19856 # endif
19857 # endif
19858 # endif
19859 #endif
19861 /* When -fvisbility=hidden is used, assume the code has been annotated
19862 correspondingly for the symbols needed. */
19863 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19864 void fnord () __attribute__((visibility("default")));
19865 #endif
19867 void fnord () { int i=42; }
19868 int main ()
19870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19871 int status = $lt_dlunknown;
19873 if (self)
19875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19876 else
19878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19879 else puts (dlerror ());
19881 /* dlclose (self); */
19883 else
19884 puts (dlerror ());
19886 return status;
19888 _LT_EOF
19889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19890 (eval $ac_link) 2>&5
19891 ac_status=$?
19892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19893 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19894 (./conftest; exit; ) >&5 2>/dev/null
19895 lt_status=$?
19896 case x$lt_status in
19897 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19898 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19899 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19900 esac
19901 else :
19902 # compilation failed
19903 lt_cv_dlopen_self_static=no
19906 rm -fr conftest*
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19911 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19914 CPPFLAGS="$save_CPPFLAGS"
19915 LDFLAGS="$save_LDFLAGS"
19916 LIBS="$save_LIBS"
19918 esac
19920 case $lt_cv_dlopen_self in
19921 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19922 *) enable_dlopen_self=unknown ;;
19923 esac
19925 case $lt_cv_dlopen_self_static in
19926 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19927 *) enable_dlopen_self_static=unknown ;;
19928 esac
19947 striplib=
19948 old_striplib=
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19950 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19951 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19952 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19953 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19955 $as_echo "yes" >&6; }
19956 else
19957 # FIXME - insert some real tests, host_os isn't really good enough
19958 case $host_os in
19959 darwin*)
19960 if test -n "$STRIP" ; then
19961 striplib="$STRIP -x"
19962 old_striplib="$STRIP -S"
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19964 $as_echo "yes" >&6; }
19965 else
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967 $as_echo "no" >&6; }
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19972 $as_echo "no" >&6; }
19974 esac
19988 # Report which library types will actually be built
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19990 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19992 $as_echo "$can_build_shared" >&6; }
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19995 $as_echo_n "checking whether to build shared libraries... " >&6; }
19996 test "$can_build_shared" = "no" && enable_shared=no
19998 # On AIX, shared libraries and static libraries use the same namespace, and
19999 # are all built from PIC.
20000 case $host_os in
20001 aix3*)
20002 test "$enable_shared" = yes && enable_static=no
20003 if test -n "$RANLIB"; then
20004 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20005 postinstall_cmds='$RANLIB $lib'
20009 aix[4-9]*)
20010 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20011 test "$enable_shared" = yes && enable_static=no
20014 esac
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20016 $as_echo "$enable_shared" >&6; }
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20019 $as_echo_n "checking whether to build static libraries... " >&6; }
20020 # Make sure either enable_shared or enable_static is yes.
20021 test "$enable_shared" = yes || enable_static=yes
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20023 $as_echo "$enable_static" >&6; }
20029 ac_ext=cpp
20030 ac_cpp='$CXXCPP $CPPFLAGS'
20031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20035 CC="$lt_save_CC"
20037 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20038 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20039 (test "X$CXX" != "Xg++"))) ; then
20040 ac_ext=cpp
20041 ac_cpp='$CXXCPP $CPPFLAGS'
20042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20046 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20047 if test -z "$CXXCPP"; then
20048 if ${ac_cv_prog_CXXCPP+:} false; then :
20049 $as_echo_n "(cached) " >&6
20050 else
20051 # Double quotes because CXXCPP needs to be expanded
20052 for CXXCPP in "$CXX -E" "/lib/cpp"
20054 ac_preproc_ok=false
20055 for ac_cxx_preproc_warn_flag in '' yes
20057 # Use a header file that comes with gcc, so configuring glibc
20058 # with a fresh cross-compiler works.
20059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20060 # <limits.h> exists even on freestanding compilers.
20061 # On the NeXT, cc -E runs the code through the compiler's parser,
20062 # not just through cpp. "Syntax error" is here to catch this case.
20063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065 #ifdef __STDC__
20066 # include <limits.h>
20067 #else
20068 # include <assert.h>
20069 #endif
20070 Syntax error
20071 _ACEOF
20072 if ac_fn_cxx_try_cpp "$LINENO"; then :
20074 else
20075 # Broken: fails on valid input.
20076 continue
20078 rm -f conftest.err conftest.i conftest.$ac_ext
20080 # OK, works on sane cases. Now check whether nonexistent headers
20081 # can be detected and how.
20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083 /* end confdefs.h. */
20084 #include <ac_nonexistent.h>
20085 _ACEOF
20086 if ac_fn_cxx_try_cpp "$LINENO"; then :
20087 # Broken: success on invalid input.
20088 continue
20089 else
20090 # Passes both tests.
20091 ac_preproc_ok=:
20092 break
20094 rm -f conftest.err conftest.i conftest.$ac_ext
20096 done
20097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20098 rm -f conftest.i conftest.err conftest.$ac_ext
20099 if $ac_preproc_ok; then :
20100 break
20103 done
20104 ac_cv_prog_CXXCPP=$CXXCPP
20107 CXXCPP=$ac_cv_prog_CXXCPP
20108 else
20109 ac_cv_prog_CXXCPP=$CXXCPP
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20112 $as_echo "$CXXCPP" >&6; }
20113 ac_preproc_ok=false
20114 for ac_cxx_preproc_warn_flag in '' yes
20116 # Use a header file that comes with gcc, so configuring glibc
20117 # with a fresh cross-compiler works.
20118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20119 # <limits.h> exists even on freestanding compilers.
20120 # On the NeXT, cc -E runs the code through the compiler's parser,
20121 # not just through cpp. "Syntax error" is here to catch this case.
20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h. */
20124 #ifdef __STDC__
20125 # include <limits.h>
20126 #else
20127 # include <assert.h>
20128 #endif
20129 Syntax error
20130 _ACEOF
20131 if ac_fn_cxx_try_cpp "$LINENO"; then :
20133 else
20134 # Broken: fails on valid input.
20135 continue
20137 rm -f conftest.err conftest.i conftest.$ac_ext
20139 # OK, works on sane cases. Now check whether nonexistent headers
20140 # can be detected and how.
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20143 #include <ac_nonexistent.h>
20144 _ACEOF
20145 if ac_fn_cxx_try_cpp "$LINENO"; then :
20146 # Broken: success on invalid input.
20147 continue
20148 else
20149 # Passes both tests.
20150 ac_preproc_ok=:
20151 break
20153 rm -f conftest.err conftest.i conftest.$ac_ext
20155 done
20156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20157 rm -f conftest.i conftest.err conftest.$ac_ext
20158 if $ac_preproc_ok; then :
20160 else
20161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20163 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20164 See \`config.log' for more details" "$LINENO" 5; }
20167 ac_ext=cpp
20168 ac_cpp='$CXXCPP $CPPFLAGS'
20169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20173 else
20174 _lt_caught_CXX_error=yes
20177 ac_ext=cpp
20178 ac_cpp='$CXXCPP $CPPFLAGS'
20179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20183 archive_cmds_need_lc_CXX=no
20184 allow_undefined_flag_CXX=
20185 always_export_symbols_CXX=no
20186 archive_expsym_cmds_CXX=
20187 compiler_needs_object_CXX=no
20188 export_dynamic_flag_spec_CXX=
20189 hardcode_direct_CXX=no
20190 hardcode_direct_absolute_CXX=no
20191 hardcode_libdir_flag_spec_CXX=
20192 hardcode_libdir_flag_spec_ld_CXX=
20193 hardcode_libdir_separator_CXX=
20194 hardcode_minus_L_CXX=no
20195 hardcode_shlibpath_var_CXX=unsupported
20196 hardcode_automatic_CXX=no
20197 inherit_rpath_CXX=no
20198 module_cmds_CXX=
20199 module_expsym_cmds_CXX=
20200 link_all_deplibs_CXX=unknown
20201 old_archive_cmds_CXX=$old_archive_cmds
20202 reload_flag_CXX=$reload_flag
20203 reload_cmds_CXX=$reload_cmds
20204 no_undefined_flag_CXX=
20205 whole_archive_flag_spec_CXX=
20206 enable_shared_with_static_runtimes_CXX=no
20208 # Source file extension for C++ test sources.
20209 ac_ext=cpp
20211 # Object file extension for compiled C++ test sources.
20212 objext=o
20213 objext_CXX=$objext
20215 # No sense in running all these tests if we already determined that
20216 # the CXX compiler isn't working. Some variables (like enable_shared)
20217 # are currently assumed to apply to all compilers on this platform,
20218 # and will be corrupted by setting them based on a non-working compiler.
20219 if test "$_lt_caught_CXX_error" != yes; then
20220 # Code to be used in simple compile tests
20221 lt_simple_compile_test_code="int some_variable = 0;"
20223 # Code to be used in simple link tests
20224 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20233 # If no C compiler was specified, use CC.
20234 LTCC=${LTCC-"$CC"}
20236 # If no C compiler flags were specified, use CFLAGS.
20237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20239 # Allow CC to be a program name with arguments.
20240 compiler=$CC
20243 # save warnings/boilerplate of simple test code
20244 ac_outfile=conftest.$ac_objext
20245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20247 _lt_compiler_boilerplate=`cat conftest.err`
20248 $RM conftest*
20250 ac_outfile=conftest.$ac_objext
20251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20253 _lt_linker_boilerplate=`cat conftest.err`
20254 $RM -r conftest*
20257 # Allow CC to be a program name with arguments.
20258 lt_save_CC=$CC
20259 lt_save_LD=$LD
20260 lt_save_GCC=$GCC
20261 GCC=$GXX
20262 lt_save_with_gnu_ld=$with_gnu_ld
20263 lt_save_path_LD=$lt_cv_path_LD
20264 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20265 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20266 else
20267 $as_unset lt_cv_prog_gnu_ld
20269 if test -n "${lt_cv_path_LDCXX+set}"; then
20270 lt_cv_path_LD=$lt_cv_path_LDCXX
20271 else
20272 $as_unset lt_cv_path_LD
20274 test -z "${LDCXX+set}" || LD=$LDCXX
20275 CC=${CXX-"c++"}
20276 compiler=$CC
20277 compiler_CXX=$CC
20278 for cc_temp in $compiler""; do
20279 case $cc_temp in
20280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20282 \-*) ;;
20283 *) break;;
20284 esac
20285 done
20286 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20289 if test -n "$compiler"; then
20290 # We don't want -fno-exception when compiling C++ code, so set the
20291 # no_builtin_flag separately
20292 if test "$GXX" = yes; then
20293 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20294 else
20295 lt_prog_compiler_no_builtin_flag_CXX=
20298 if test "$GXX" = yes; then
20299 # Set up default GNU C++ configuration
20303 # Check whether --with-gnu-ld was given.
20304 if test "${with_gnu_ld+set}" = set; then :
20305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20306 else
20307 with_gnu_ld=no
20310 ac_prog=ld
20311 if test "$GCC" = yes; then
20312 # Check if gcc -print-prog-name=ld gives a path.
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20314 $as_echo_n "checking for ld used by $CC... " >&6; }
20315 case $host in
20316 *-*-mingw*)
20317 # gcc leaves a trailing carriage return which upsets mingw
20318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20321 esac
20322 case $ac_prog in
20323 # Accept absolute paths.
20324 [\\/]* | ?:[\\/]*)
20325 re_direlt='/[^/][^/]*/\.\./'
20326 # Canonicalize the pathname of ld
20327 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20328 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20329 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20330 done
20331 test -z "$LD" && LD="$ac_prog"
20334 # If it fails, then pretend we aren't using GCC.
20335 ac_prog=ld
20338 # If it is relative, then search for the first ld in PATH.
20339 with_gnu_ld=unknown
20341 esac
20342 elif test "$with_gnu_ld" = yes; then
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20344 $as_echo_n "checking for GNU ld... " >&6; }
20345 else
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20347 $as_echo_n "checking for non-GNU ld... " >&6; }
20349 if ${lt_cv_path_LD+:} false; then :
20350 $as_echo_n "(cached) " >&6
20351 else
20352 if test -z "$LD"; then
20353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20354 for ac_dir in $PATH; do
20355 IFS="$lt_save_ifs"
20356 test -z "$ac_dir" && ac_dir=.
20357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20358 lt_cv_path_LD="$ac_dir/$ac_prog"
20359 # Check to see if the program is GNU ld. I'd rather use --version,
20360 # but apparently some variants of GNU ld only accept -v.
20361 # Break only if it was the GNU/non-GNU ld that we prefer.
20362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20363 *GNU* | *'with BFD'*)
20364 test "$with_gnu_ld" != no && break
20367 test "$with_gnu_ld" != yes && break
20369 esac
20371 done
20372 IFS="$lt_save_ifs"
20373 else
20374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20378 LD="$lt_cv_path_LD"
20379 if test -n "$LD"; then
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20381 $as_echo "$LD" >&6; }
20382 else
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20384 $as_echo "no" >&6; }
20386 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20388 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20389 if ${lt_cv_prog_gnu_ld+:} false; then :
20390 $as_echo_n "(cached) " >&6
20391 else
20392 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20393 case `$LD -v 2>&1 </dev/null` in
20394 *GNU* | *'with BFD'*)
20395 lt_cv_prog_gnu_ld=yes
20398 lt_cv_prog_gnu_ld=no
20400 esac
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20403 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20404 with_gnu_ld=$lt_cv_prog_gnu_ld
20412 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20413 # archiving commands below assume that GNU ld is being used.
20414 if test "$with_gnu_ld" = yes; then
20415 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20416 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'
20418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20421 # If archive_cmds runs LD, not CC, wlarc should be empty
20422 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20423 # investigate it a little bit more. (MM)
20424 wlarc='${wl}'
20426 # ancient GNU ld didn't support --whole-archive et. al.
20427 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20428 $GREP 'no-whole-archive' > /dev/null; then
20429 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20430 else
20431 whole_archive_flag_spec_CXX=
20433 else
20434 with_gnu_ld=no
20435 wlarc=
20437 # A generic and very simple default shared library creation
20438 # command for GNU C++ for the case where it uses the native
20439 # linker, instead of GNU ld. If possible, this setting should
20440 # overridden to take advantage of the native linker features on
20441 # the platform it is being used on.
20442 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20445 # Commands to make compiler produce verbose output that lists
20446 # what "hidden" libraries, object files and flags are used when
20447 # linking a shared library.
20448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20450 else
20451 GXX=no
20452 with_gnu_ld=no
20453 wlarc=
20456 # PORTME: fill in a description of your system's C++ link characteristics
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20458 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20459 ld_shlibs_CXX=yes
20460 case $host_os in
20461 aix3*)
20462 # FIXME: insert proper C++ library support
20463 ld_shlibs_CXX=no
20465 aix[4-9]*)
20466 if test "$host_cpu" = ia64; then
20467 # On IA64, the linker does run time linking by default, so we don't
20468 # have to do anything special.
20469 aix_use_runtimelinking=no
20470 exp_sym_flag='-Bexport'
20471 no_entry_flag=""
20472 else
20473 aix_use_runtimelinking=no
20475 # Test if we are trying to use run time linking or normal
20476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20477 # need to do runtime linking.
20478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20479 for ld_flag in $LDFLAGS; do
20480 case $ld_flag in
20481 *-brtl*)
20482 aix_use_runtimelinking=yes
20483 break
20485 esac
20486 done
20488 esac
20490 exp_sym_flag='-bexport'
20491 no_entry_flag='-bnoentry'
20494 # When large executables or shared objects are built, AIX ld can
20495 # have problems creating the table of contents. If linking a library
20496 # or program results in "error TOC overflow" add -mminimal-toc to
20497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20500 archive_cmds_CXX=''
20501 hardcode_direct_CXX=yes
20502 hardcode_direct_absolute_CXX=yes
20503 hardcode_libdir_separator_CXX=':'
20504 link_all_deplibs_CXX=yes
20505 file_list_spec_CXX='${wl}-f,'
20507 if test "$GXX" = yes; then
20508 case $host_os in aix4.[012]|aix4.[012].*)
20509 # We only want to do this on AIX 4.2 and lower, the check
20510 # below for broken collect2 doesn't work under 4.3+
20511 collect2name=`${CC} -print-prog-name=collect2`
20512 if test -f "$collect2name" &&
20513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20514 then
20515 # We have reworked collect2
20517 else
20518 # We have old collect2
20519 hardcode_direct_CXX=unsupported
20520 # It fails to find uninstalled libraries when the uninstalled
20521 # path is not listed in the libpath. Setting hardcode_minus_L
20522 # to unsupported forces relinking
20523 hardcode_minus_L_CXX=yes
20524 hardcode_libdir_flag_spec_CXX='-L$libdir'
20525 hardcode_libdir_separator_CXX=
20527 esac
20528 shared_flag='-shared'
20529 if test "$aix_use_runtimelinking" = yes; then
20530 shared_flag="$shared_flag "'${wl}-G'
20532 else
20533 # not using gcc
20534 if test "$host_cpu" = ia64; then
20535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20536 # chokes on -Wl,-G. The following line is correct:
20537 shared_flag='-G'
20538 else
20539 if test "$aix_use_runtimelinking" = yes; then
20540 shared_flag='${wl}-G'
20541 else
20542 shared_flag='${wl}-bM:SRE'
20547 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20548 # It seems that -bexpall does not export symbols beginning with
20549 # underscore (_), so it is better to generate a list of symbols to
20550 # export.
20551 always_export_symbols_CXX=yes
20552 if test "$aix_use_runtimelinking" = yes; then
20553 # Warning - without using the other runtime loading flags (-brtl),
20554 # -berok will link without error, but may produce a broken library.
20555 allow_undefined_flag_CXX='-berok'
20556 # Determine the default libpath from the value encoded in an empty
20557 # executable.
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20562 main ()
20566 return 0;
20568 _ACEOF
20569 if ac_fn_cxx_try_link "$LINENO"; then :
20571 lt_aix_libpath_sed='
20572 /Import File Strings/,/^$/ {
20573 /^0/ {
20574 s/^0 *\(.*\)$/\1/
20578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20579 # Check for a 64-bit object if we didn't find anything.
20580 if test -z "$aix_libpath"; then
20581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20584 rm -f core conftest.err conftest.$ac_objext \
20585 conftest$ac_exeext conftest.$ac_ext
20586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20588 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20590 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"
20591 else
20592 if test "$host_cpu" = ia64; then
20593 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20594 allow_undefined_flag_CXX="-z nodefs"
20595 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"
20596 else
20597 # Determine the default libpath from the value encoded in an
20598 # empty executable.
20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600 /* end confdefs.h. */
20603 main ()
20607 return 0;
20609 _ACEOF
20610 if ac_fn_cxx_try_link "$LINENO"; then :
20612 lt_aix_libpath_sed='
20613 /Import File Strings/,/^$/ {
20614 /^0/ {
20615 s/^0 *\(.*\)$/\1/
20619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20620 # Check for a 64-bit object if we didn't find anything.
20621 if test -z "$aix_libpath"; then
20622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20625 rm -f core conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20629 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20630 # Warning - without using the other run time loading flags,
20631 # -berok will link without error, but may produce a broken library.
20632 no_undefined_flag_CXX=' ${wl}-bernotok'
20633 allow_undefined_flag_CXX=' ${wl}-berok'
20634 if test "$with_gnu_ld" = yes; then
20635 # We only use this code for GNU lds that support --whole-archive.
20636 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20637 else
20638 # Exported symbols can be pulled into shared objects from archives
20639 whole_archive_flag_spec_CXX='$convenience'
20641 archive_cmds_need_lc_CXX=yes
20642 # This is similar to how AIX traditionally builds its shared
20643 # libraries.
20644 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'
20649 beos*)
20650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20651 allow_undefined_flag_CXX=unsupported
20652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20653 # support --undefined. This deserves some investigation. FIXME
20654 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20655 else
20656 ld_shlibs_CXX=no
20660 chorus*)
20661 case $cc_basename in
20663 # FIXME: insert proper C++ library support
20664 ld_shlibs_CXX=no
20666 esac
20669 cygwin* | mingw* | pw32* | cegcc*)
20670 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20671 # as there is no search path for DLLs.
20672 hardcode_libdir_flag_spec_CXX='-L$libdir'
20673 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20674 allow_undefined_flag_CXX=unsupported
20675 always_export_symbols_CXX=no
20676 enable_shared_with_static_runtimes_CXX=yes
20678 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20679 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'
20680 # If the export-symbols file already is a .def file (1st line
20681 # is EXPORTS), use it as is; otherwise, prepend...
20682 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20683 cp $export_symbols $output_objdir/$soname.def;
20684 else
20685 echo EXPORTS > $output_objdir/$soname.def;
20686 cat $export_symbols >> $output_objdir/$soname.def;
20688 $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'
20689 else
20690 ld_shlibs_CXX=no
20693 darwin* | rhapsody*)
20696 archive_cmds_need_lc_CXX=no
20697 hardcode_direct_CXX=no
20698 hardcode_automatic_CXX=yes
20699 hardcode_shlibpath_var_CXX=unsupported
20700 if test "$lt_cv_ld_force_load" = "yes"; then
20701 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\"`'
20702 else
20703 whole_archive_flag_spec_CXX=''
20705 link_all_deplibs_CXX=yes
20706 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20707 case $cc_basename in
20708 ifort*) _lt_dar_can_shared=yes ;;
20709 *) _lt_dar_can_shared=$GCC ;;
20710 esac
20711 if test "$_lt_dar_can_shared" = "yes"; then
20712 output_verbose_link_cmd=func_echo_all
20713 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}"
20714 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20715 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}"
20716 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}"
20717 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20718 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}"
20719 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}"
20722 else
20723 ld_shlibs_CXX=no
20728 dgux*)
20729 case $cc_basename in
20730 ec++*)
20731 # FIXME: insert proper C++ library support
20732 ld_shlibs_CXX=no
20734 ghcx*)
20735 # Green Hills C++ Compiler
20736 # FIXME: insert proper C++ library support
20737 ld_shlibs_CXX=no
20740 # FIXME: insert proper C++ library support
20741 ld_shlibs_CXX=no
20743 esac
20746 freebsd2.*)
20747 # C++ shared libraries reported to be fairly broken before
20748 # switch to ELF
20749 ld_shlibs_CXX=no
20752 freebsd-elf*)
20753 archive_cmds_need_lc_CXX=no
20756 freebsd* | dragonfly*)
20757 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20758 # conventions
20759 ld_shlibs_CXX=yes
20762 gnu*)
20765 haiku*)
20766 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20767 link_all_deplibs_CXX=yes
20770 hpux9*)
20771 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20772 hardcode_libdir_separator_CXX=:
20773 export_dynamic_flag_spec_CXX='${wl}-E'
20774 hardcode_direct_CXX=yes
20775 hardcode_minus_L_CXX=yes # Not in the search PATH,
20776 # but as the default
20777 # location of the library.
20779 case $cc_basename in
20780 CC*)
20781 # FIXME: insert proper C++ library support
20782 ld_shlibs_CXX=no
20784 aCC*)
20785 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'
20786 # Commands to make compiler produce verbose output that lists
20787 # what "hidden" libraries, object files and flags are used when
20788 # linking a shared library.
20790 # There doesn't appear to be a way to prevent this compiler from
20791 # explicitly linking system object files so we need to strip them
20792 # from the output so that they don't get included in the library
20793 # dependencies.
20794 output_verbose_link_cmd='templist=`($CC -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"'
20797 if test "$GXX" = yes; then
20798 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'
20799 else
20800 # FIXME: insert proper C++ library support
20801 ld_shlibs_CXX=no
20804 esac
20807 hpux10*|hpux11*)
20808 if test $with_gnu_ld = no; then
20809 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20810 hardcode_libdir_separator_CXX=:
20812 case $host_cpu in
20813 hppa*64*|ia64*)
20816 export_dynamic_flag_spec_CXX='${wl}-E'
20818 esac
20820 case $host_cpu in
20821 hppa*64*|ia64*)
20822 hardcode_direct_CXX=no
20823 hardcode_shlibpath_var_CXX=no
20826 hardcode_direct_CXX=yes
20827 hardcode_direct_absolute_CXX=yes
20828 hardcode_minus_L_CXX=yes # Not in the search PATH,
20829 # but as the default
20830 # location of the library.
20832 esac
20834 case $cc_basename in
20835 CC*)
20836 # FIXME: insert proper C++ library support
20837 ld_shlibs_CXX=no
20839 aCC*)
20840 case $host_cpu in
20841 hppa*64*)
20842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20844 ia64*)
20845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20850 esac
20851 # Commands to make compiler produce verbose output that lists
20852 # what "hidden" libraries, object files and flags are used when
20853 # linking a shared library.
20855 # There doesn't appear to be a way to prevent this compiler from
20856 # explicitly linking system object files so we need to strip them
20857 # from the output so that they don't get included in the library
20858 # dependencies.
20859 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"'
20862 if test "$GXX" = yes; then
20863 if test $with_gnu_ld = no; then
20864 case $host_cpu in
20865 hppa*64*)
20866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20868 ia64*)
20869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20872 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'
20874 esac
20876 else
20877 # FIXME: insert proper C++ library support
20878 ld_shlibs_CXX=no
20881 esac
20884 interix[3-9]*)
20885 hardcode_direct_CXX=no
20886 hardcode_shlibpath_var_CXX=no
20887 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20888 export_dynamic_flag_spec_CXX='${wl}-E'
20889 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20890 # Instead, shared libraries are loaded at an image base (0x10000000 by
20891 # default) and relocated if they conflict, which is a slow very memory
20892 # consuming and fragmenting process. To avoid this, we pick a random,
20893 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20894 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20895 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'
20896 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'
20898 irix5* | irix6*)
20899 case $cc_basename in
20900 CC*)
20901 # SGI C++
20902 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'
20904 # Archives containing C++ object files must be created using
20905 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20906 # necessary to make sure instantiated templates are included
20907 # in the archive.
20908 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20911 if test "$GXX" = yes; then
20912 if test "$with_gnu_ld" = no; then
20913 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'
20914 else
20915 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'
20918 link_all_deplibs_CXX=yes
20920 esac
20921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20922 hardcode_libdir_separator_CXX=:
20923 inherit_rpath_CXX=yes
20926 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20927 case $cc_basename in
20928 KCC*)
20929 # Kuck and Associates, Inc. (KAI) C++ Compiler
20931 # KCC will only create a shared library if the output file
20932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20933 # to its proper name (with version) after linking.
20934 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'
20935 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'
20936 # Commands to make compiler produce verbose output that lists
20937 # what "hidden" libraries, object files and flags are used when
20938 # linking a shared library.
20940 # There doesn't appear to be a way to prevent this compiler from
20941 # explicitly linking system object files so we need to strip them
20942 # from the output so that they don't get included in the library
20943 # dependencies.
20944 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"'
20946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20949 # Archives containing C++ object files must be created using
20950 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20951 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20953 icpc* | ecpc* )
20954 # Intel C++
20955 with_gnu_ld=yes
20956 # version 8.0 and above of icpc choke on multiply defined symbols
20957 # if we add $predep_objects and $postdep_objects, however 7.1 and
20958 # earlier do not add the objects themselves.
20959 case `$CC -V 2>&1` in
20960 *"Version 7."*)
20961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20962 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'
20964 *) # Version 8.0 or newer
20965 tmp_idyn=
20966 case $host_cpu in
20967 ia64*) tmp_idyn=' -i_dynamic';;
20968 esac
20969 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20970 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'
20972 esac
20973 archive_cmds_need_lc_CXX=no
20974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20976 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20978 pgCC* | pgcpp*)
20979 # Portland Group C++ compiler
20980 case `$CC -V` in
20981 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20982 prelink_cmds_CXX='tpldir=Template.dir~
20983 rm -rf $tpldir~
20984 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20985 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20986 old_archive_cmds_CXX='tpldir=Template.dir~
20987 rm -rf $tpldir~
20988 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20989 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20990 $RANLIB $oldlib'
20991 archive_cmds_CXX='tpldir=Template.dir~
20992 rm -rf $tpldir~
20993 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20994 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20995 archive_expsym_cmds_CXX='tpldir=Template.dir~
20996 rm -rf $tpldir~
20997 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20998 $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'
21000 *) # Version 6 and above use weak symbols
21001 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21002 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'
21004 esac
21006 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21008 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'
21010 cxx*)
21011 # Compaq C++
21012 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21013 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'
21015 runpath_var=LD_RUN_PATH
21016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21017 hardcode_libdir_separator_CXX=:
21019 # Commands to make compiler produce verbose output that lists
21020 # what "hidden" libraries, object files and flags are used when
21021 # linking a shared library.
21023 # There doesn't appear to be a way to prevent this compiler from
21024 # explicitly linking system object files so we need to strip them
21025 # from the output so that they don't get included in the library
21026 # dependencies.
21027 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'
21029 xl* | mpixl* | bgxl*)
21030 # IBM XL 8.0 on PPC, with GNU ld
21031 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21033 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21034 if test "x$supports_anon_versioning" = xyes; then
21035 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21037 echo "local: *; };" >> $output_objdir/$libname.ver~
21038 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21042 case `$CC -V 2>&1 | sed 5q` in
21043 *Sun\ C*)
21044 # Sun C++ 5.9
21045 no_undefined_flag_CXX=' -zdefs'
21046 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21047 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'
21048 hardcode_libdir_flag_spec_CXX='-R$libdir'
21049 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'
21050 compiler_needs_object_CXX=yes
21052 # Not sure whether something based on
21053 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21054 # would be better.
21055 output_verbose_link_cmd='func_echo_all'
21057 # Archives containing C++ object files must be created using
21058 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21059 # necessary to make sure instantiated templates are included
21060 # in the archive.
21061 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21063 esac
21065 esac
21068 lynxos*)
21069 # FIXME: insert proper C++ library support
21070 ld_shlibs_CXX=no
21073 m88k*)
21074 # FIXME: insert proper C++ library support
21075 ld_shlibs_CXX=no
21078 mvs*)
21079 case $cc_basename in
21080 cxx*)
21081 # FIXME: insert proper C++ library support
21082 ld_shlibs_CXX=no
21085 # FIXME: insert proper C++ library support
21086 ld_shlibs_CXX=no
21088 esac
21091 netbsd*)
21092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21093 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21094 wlarc=
21095 hardcode_libdir_flag_spec_CXX='-R$libdir'
21096 hardcode_direct_CXX=yes
21097 hardcode_shlibpath_var_CXX=no
21099 # Workaround some broken pre-1.5 toolchains
21100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21103 *nto* | *qnx*)
21104 ld_shlibs_CXX=yes
21107 openbsd2*)
21108 # C++ shared libraries are fairly broken
21109 ld_shlibs_CXX=no
21112 openbsd*)
21113 if test -f /usr/libexec/ld.so; then
21114 hardcode_direct_CXX=yes
21115 hardcode_shlibpath_var_CXX=no
21116 hardcode_direct_absolute_CXX=yes
21117 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21120 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21121 export_dynamic_flag_spec_CXX='${wl}-E'
21122 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21124 output_verbose_link_cmd=func_echo_all
21125 else
21126 ld_shlibs_CXX=no
21130 osf3* | osf4* | osf5*)
21131 case $cc_basename in
21132 KCC*)
21133 # Kuck and Associates, Inc. (KAI) C++ Compiler
21135 # KCC will only create a shared library if the output file
21136 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21137 # to its proper name (with version) after linking.
21138 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'
21140 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21141 hardcode_libdir_separator_CXX=:
21143 # Archives containing C++ object files must be created using
21144 # the KAI C++ compiler.
21145 case $host in
21146 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21147 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21148 esac
21150 RCC*)
21151 # Rational C++ 2.4.1
21152 # FIXME: insert proper C++ library support
21153 ld_shlibs_CXX=no
21155 cxx*)
21156 case $host in
21157 osf3*)
21158 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21159 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'
21160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21163 allow_undefined_flag_CXX=' -expect_unresolved \*'
21164 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'
21165 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21166 echo "-hidden">> $lib.exp~
21167 $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~
21168 $RM $lib.exp'
21169 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21171 esac
21173 hardcode_libdir_separator_CXX=:
21175 # Commands to make compiler produce verbose output that lists
21176 # what "hidden" libraries, object files and flags are used when
21177 # linking a shared library.
21179 # There doesn't appear to be a way to prevent this compiler from
21180 # explicitly linking system object files so we need to strip them
21181 # from the output so that they don't get included in the library
21182 # dependencies.
21183 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"'
21186 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21187 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21188 case $host in
21189 osf3*)
21190 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'
21193 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'
21195 esac
21197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21198 hardcode_libdir_separator_CXX=:
21200 # Commands to make compiler produce verbose output that lists
21201 # what "hidden" libraries, object files and flags are used when
21202 # linking a shared library.
21203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21205 else
21206 # FIXME: insert proper C++ library support
21207 ld_shlibs_CXX=no
21210 esac
21213 psos*)
21214 # FIXME: insert proper C++ library support
21215 ld_shlibs_CXX=no
21218 sunos4*)
21219 case $cc_basename in
21220 CC*)
21221 # Sun C++ 4.x
21222 # FIXME: insert proper C++ library support
21223 ld_shlibs_CXX=no
21225 lcc*)
21226 # Lucid
21227 # FIXME: insert proper C++ library support
21228 ld_shlibs_CXX=no
21231 # FIXME: insert proper C++ library support
21232 ld_shlibs_CXX=no
21234 esac
21237 solaris*)
21238 case $cc_basename in
21239 CC*)
21240 # Sun C++ 4.2, 5.x and Centerline C++
21241 archive_cmds_need_lc_CXX=yes
21242 no_undefined_flag_CXX=' -zdefs'
21243 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21244 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21245 $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'
21247 hardcode_libdir_flag_spec_CXX='-R$libdir'
21248 hardcode_shlibpath_var_CXX=no
21249 case $host_os in
21250 solaris2.[0-5] | solaris2.[0-5].*) ;;
21252 # The compiler driver will combine and reorder linker options,
21253 # but understands `-z linker_flag'.
21254 # Supported since Solaris 2.6 (maybe 2.5.1?)
21255 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21257 esac
21258 link_all_deplibs_CXX=yes
21260 output_verbose_link_cmd='func_echo_all'
21262 # Archives containing C++ object files must be created using
21263 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21264 # necessary to make sure instantiated templates are included
21265 # in the archive.
21266 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21268 gcx*)
21269 # Green Hills C++ Compiler
21270 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21272 # The C++ compiler must be used to create the archive.
21273 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21276 # GNU C++ compiler with Solaris linker
21277 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21278 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21279 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21280 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21281 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21282 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21284 # Commands to make compiler produce verbose output that lists
21285 # what "hidden" libraries, object files and flags are used when
21286 # linking a shared library.
21287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21288 else
21289 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21290 # platform.
21291 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21292 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21293 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21295 # Commands to make compiler produce verbose output that lists
21296 # what "hidden" libraries, object files and flags are used when
21297 # linking a shared library.
21298 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21301 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21302 case $host_os in
21303 solaris2.[0-5] | solaris2.[0-5].*) ;;
21305 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21307 esac
21310 esac
21313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21314 no_undefined_flag_CXX='${wl}-z,text'
21315 archive_cmds_need_lc_CXX=no
21316 hardcode_shlibpath_var_CXX=no
21317 runpath_var='LD_RUN_PATH'
21319 case $cc_basename in
21320 CC*)
21321 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21322 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21325 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21326 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21328 esac
21331 sysv5* | sco3.2v5* | sco5v6*)
21332 # Note: We can NOT use -z defs as we might desire, because we do not
21333 # link with -lc, and that would cause any symbols used from libc to
21334 # always be unresolved, which means just about no library would
21335 # ever link correctly. If we're not using GNU ld we use -z text
21336 # though, which does catch some bad symbols but isn't as heavy-handed
21337 # as -z defs.
21338 no_undefined_flag_CXX='${wl}-z,text'
21339 allow_undefined_flag_CXX='${wl}-z,nodefs'
21340 archive_cmds_need_lc_CXX=no
21341 hardcode_shlibpath_var_CXX=no
21342 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21343 hardcode_libdir_separator_CXX=':'
21344 link_all_deplibs_CXX=yes
21345 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21346 runpath_var='LD_RUN_PATH'
21348 case $cc_basename in
21349 CC*)
21350 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21351 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21352 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21353 '"$old_archive_cmds_CXX"
21354 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21355 '"$reload_cmds_CXX"
21358 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21359 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21361 esac
21364 tandem*)
21365 case $cc_basename in
21366 NCC*)
21367 # NonStop-UX NCC 3.20
21368 # FIXME: insert proper C++ library support
21369 ld_shlibs_CXX=no
21372 # FIXME: insert proper C++ library support
21373 ld_shlibs_CXX=no
21375 esac
21378 vxworks*)
21379 # For VxWorks ports, we assume the use of a GNU linker with
21380 # standard elf conventions.
21381 ld_shlibs_CXX=yes
21385 # FIXME: insert proper C++ library support
21386 ld_shlibs_CXX=no
21388 esac
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21391 $as_echo "$ld_shlibs_CXX" >&6; }
21392 test "$ld_shlibs_CXX" = no && can_build_shared=no
21394 GCC_CXX="$GXX"
21395 LD_CXX="$LD"
21397 ## CAVEAT EMPTOR:
21398 ## There is no encapsulation within the following macros, do not change
21399 ## the running order or otherwise move them around unless you know exactly
21400 ## what you are doing...
21401 # Dependencies to place before and after the object being linked:
21402 predep_objects_CXX=
21403 postdep_objects_CXX=
21404 predeps_CXX=
21405 postdeps_CXX=
21406 compiler_lib_search_path_CXX=
21408 cat > conftest.$ac_ext <<_LT_EOF
21409 class Foo
21411 public:
21412 Foo (void) { a = 0; }
21413 private:
21414 int a;
21416 _LT_EOF
21418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21419 (eval $ac_compile) 2>&5
21420 ac_status=$?
21421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21422 test $ac_status = 0; }; then
21423 # Parse the compiler output and extract the necessary
21424 # objects, libraries and library flags.
21426 # Sentinel used to keep track of whether or not we are before
21427 # the conftest object file.
21428 pre_test_object_deps_done=no
21430 for p in `eval "$output_verbose_link_cmd"`; do
21431 case $p in
21433 -L* | -R* | -l*)
21434 # Some compilers place space between "-{L,R}" and the path.
21435 # Remove the space.
21436 if test $p = "-L" ||
21437 test $p = "-R"; then
21438 prev=$p
21439 continue
21440 else
21441 prev=
21444 if test "$pre_test_object_deps_done" = no; then
21445 case $p in
21446 -L* | -R*)
21447 # Internal compiler library paths should come after those
21448 # provided the user. The postdeps already come after the
21449 # user supplied libs so there is no need to process them.
21450 if test -z "$compiler_lib_search_path_CXX"; then
21451 compiler_lib_search_path_CXX="${prev}${p}"
21452 else
21453 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21456 # The "-l" case would never come before the object being
21457 # linked, so don't bother handling this case.
21458 esac
21459 else
21460 if test -z "$postdeps_CXX"; then
21461 postdeps_CXX="${prev}${p}"
21462 else
21463 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21468 *.$objext)
21469 # This assumes that the test object file only shows up
21470 # once in the compiler output.
21471 if test "$p" = "conftest.$objext"; then
21472 pre_test_object_deps_done=yes
21473 continue
21476 if test "$pre_test_object_deps_done" = no; then
21477 if test -z "$predep_objects_CXX"; then
21478 predep_objects_CXX="$p"
21479 else
21480 predep_objects_CXX="$predep_objects_CXX $p"
21482 else
21483 if test -z "$postdep_objects_CXX"; then
21484 postdep_objects_CXX="$p"
21485 else
21486 postdep_objects_CXX="$postdep_objects_CXX $p"
21491 *) ;; # Ignore the rest.
21493 esac
21494 done
21496 # Clean up.
21497 rm -f a.out a.exe
21498 else
21499 echo "libtool.m4: error: problem compiling CXX test program"
21502 $RM -f confest.$objext
21504 # PORTME: override above test on systems where it is broken
21505 case $host_os in
21506 interix[3-9]*)
21507 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21508 # hack all around it, let's just trust "g++" to DTRT.
21509 predep_objects_CXX=
21510 postdep_objects_CXX=
21511 postdeps_CXX=
21514 linux*)
21515 case `$CC -V 2>&1 | sed 5q` in
21516 *Sun\ C*)
21517 # Sun C++ 5.9
21519 # The more standards-conforming stlport4 library is
21520 # incompatible with the Cstd library. Avoid specifying
21521 # it if it's in CXXFLAGS. Ignore libCrun as
21522 # -library=stlport4 depends on it.
21523 case " $CXX $CXXFLAGS " in
21524 *" -library=stlport4 "*)
21525 solaris_use_stlport4=yes
21527 esac
21529 if test "$solaris_use_stlport4" != yes; then
21530 postdeps_CXX='-library=Cstd -library=Crun'
21533 esac
21536 solaris*)
21537 case $cc_basename in
21538 CC*)
21539 # The more standards-conforming stlport4 library is
21540 # incompatible with the Cstd library. Avoid specifying
21541 # it if it's in CXXFLAGS. Ignore libCrun as
21542 # -library=stlport4 depends on it.
21543 case " $CXX $CXXFLAGS " in
21544 *" -library=stlport4 "*)
21545 solaris_use_stlport4=yes
21547 esac
21549 # Adding this requires a known-good setup of shared libraries for
21550 # Sun compiler versions before 5.6, else PIC objects from an old
21551 # archive will be linked into the output, leading to subtle bugs.
21552 if test "$solaris_use_stlport4" != yes; then
21553 postdeps_CXX='-library=Cstd -library=Crun'
21556 esac
21558 esac
21561 case " $postdeps_CXX " in
21562 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21563 esac
21564 compiler_lib_search_dirs_CXX=
21565 if test -n "${compiler_lib_search_path_CXX}"; then
21566 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21599 lt_prog_compiler_wl_CXX=
21600 lt_prog_compiler_pic_CXX=
21601 lt_prog_compiler_static_CXX=
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21606 # C++ specific cases for pic, static, wl, etc.
21607 if test "$GXX" = yes; then
21608 lt_prog_compiler_wl_CXX='-Wl,'
21609 lt_prog_compiler_static_CXX='-static'
21611 case $host_os in
21612 aix*)
21613 # All AIX code is PIC.
21614 if test "$host_cpu" = ia64; then
21615 # AIX 5 now supports IA64 processor
21616 lt_prog_compiler_static_CXX='-Bstatic'
21618 lt_prog_compiler_pic_CXX='-fPIC'
21621 amigaos*)
21622 case $host_cpu in
21623 powerpc)
21624 # see comment about AmigaOS4 .so support
21625 lt_prog_compiler_pic_CXX='-fPIC'
21627 m68k)
21628 # FIXME: we need at least 68020 code to build shared libraries, but
21629 # adding the `-m68020' flag to GCC prevents building anything better,
21630 # like `-m68040'.
21631 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21633 esac
21636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21637 # PIC is the default for these OSes.
21639 mingw* | cygwin* | os2* | pw32* | cegcc*)
21640 # This hack is so that the source file can tell whether it is being
21641 # built for inclusion in a dll (and should export symbols for example).
21642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21643 # (--disable-auto-import) libraries
21644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21646 darwin* | rhapsody*)
21647 # PIC is the default on this platform
21648 # Common symbols not allowed in MH_DYLIB files
21649 lt_prog_compiler_pic_CXX='-fno-common'
21651 *djgpp*)
21652 # DJGPP does not support shared libraries at all
21653 lt_prog_compiler_pic_CXX=
21655 haiku*)
21656 # PIC is the default for Haiku.
21657 # The "-static" flag exists, but is broken.
21658 lt_prog_compiler_static_CXX=
21660 interix[3-9]*)
21661 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21662 # Instead, we relocate shared libraries at runtime.
21664 sysv4*MP*)
21665 if test -d /usr/nec; then
21666 lt_prog_compiler_pic_CXX=-Kconform_pic
21669 hpux*)
21670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21672 # sets the default TLS model and affects inlining.
21673 case $host_cpu in
21674 hppa*64*)
21677 lt_prog_compiler_pic_CXX='-fPIC'
21679 esac
21681 *qnx* | *nto*)
21682 # QNX uses GNU C++, but need to define -shared option too, otherwise
21683 # it will coredump.
21684 lt_prog_compiler_pic_CXX='-fPIC -shared'
21687 lt_prog_compiler_pic_CXX='-fPIC'
21689 esac
21690 else
21691 case $host_os in
21692 aix[4-9]*)
21693 # All AIX code is PIC.
21694 if test "$host_cpu" = ia64; then
21695 # AIX 5 now supports IA64 processor
21696 lt_prog_compiler_static_CXX='-Bstatic'
21697 else
21698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21701 chorus*)
21702 case $cc_basename in
21703 cxch68*)
21704 # Green Hills C++ Compiler
21705 # _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"
21707 esac
21709 dgux*)
21710 case $cc_basename in
21711 ec++*)
21712 lt_prog_compiler_pic_CXX='-KPIC'
21714 ghcx*)
21715 # Green Hills C++ Compiler
21716 lt_prog_compiler_pic_CXX='-pic'
21720 esac
21722 freebsd* | dragonfly*)
21723 # FreeBSD uses GNU C++
21725 hpux9* | hpux10* | hpux11*)
21726 case $cc_basename in
21727 CC*)
21728 lt_prog_compiler_wl_CXX='-Wl,'
21729 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21730 if test "$host_cpu" != ia64; then
21731 lt_prog_compiler_pic_CXX='+Z'
21734 aCC*)
21735 lt_prog_compiler_wl_CXX='-Wl,'
21736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21737 case $host_cpu in
21738 hppa*64*|ia64*)
21739 # +Z the default
21742 lt_prog_compiler_pic_CXX='+Z'
21744 esac
21748 esac
21750 interix*)
21751 # This is c89, which is MS Visual C++ (no shared libs)
21752 # Anyone wants to do a port?
21754 irix5* | irix6* | nonstopux*)
21755 case $cc_basename in
21756 CC*)
21757 lt_prog_compiler_wl_CXX='-Wl,'
21758 lt_prog_compiler_static_CXX='-non_shared'
21759 # CC pic flag -KPIC is the default.
21763 esac
21765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21766 case $cc_basename in
21767 KCC*)
21768 # KAI C++ Compiler
21769 lt_prog_compiler_wl_CXX='--backend -Wl,'
21770 lt_prog_compiler_pic_CXX='-fPIC'
21772 ecpc* )
21773 # old Intel C++ for x86_64 which still supported -KPIC.
21774 lt_prog_compiler_wl_CXX='-Wl,'
21775 lt_prog_compiler_pic_CXX='-KPIC'
21776 lt_prog_compiler_static_CXX='-static'
21778 icpc* )
21779 # Intel C++, used to be incompatible with GCC.
21780 # ICC 10 doesn't accept -KPIC any more.
21781 lt_prog_compiler_wl_CXX='-Wl,'
21782 lt_prog_compiler_pic_CXX='-fPIC'
21783 lt_prog_compiler_static_CXX='-static'
21785 pgCC* | pgcpp*)
21786 # Portland Group C++ compiler
21787 lt_prog_compiler_wl_CXX='-Wl,'
21788 lt_prog_compiler_pic_CXX='-fpic'
21789 lt_prog_compiler_static_CXX='-Bstatic'
21791 cxx*)
21792 # Compaq C++
21793 # Make sure the PIC flag is empty. It appears that all Alpha
21794 # Linux and Compaq Tru64 Unix objects are PIC.
21795 lt_prog_compiler_pic_CXX=
21796 lt_prog_compiler_static_CXX='-non_shared'
21798 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21799 # IBM XL 8.0, 9.0 on PPC and BlueGene
21800 lt_prog_compiler_wl_CXX='-Wl,'
21801 lt_prog_compiler_pic_CXX='-qpic'
21802 lt_prog_compiler_static_CXX='-qstaticlink'
21805 case `$CC -V 2>&1 | sed 5q` in
21806 *Sun\ C*)
21807 # Sun C++ 5.9
21808 lt_prog_compiler_pic_CXX='-KPIC'
21809 lt_prog_compiler_static_CXX='-Bstatic'
21810 lt_prog_compiler_wl_CXX='-Qoption ld '
21812 esac
21814 esac
21816 lynxos*)
21818 m88k*)
21820 mvs*)
21821 case $cc_basename in
21822 cxx*)
21823 lt_prog_compiler_pic_CXX='-W c,exportall'
21827 esac
21829 netbsd*)
21831 *qnx* | *nto*)
21832 # QNX uses GNU C++, but need to define -shared option too, otherwise
21833 # it will coredump.
21834 lt_prog_compiler_pic_CXX='-fPIC -shared'
21836 osf3* | osf4* | osf5*)
21837 case $cc_basename in
21838 KCC*)
21839 lt_prog_compiler_wl_CXX='--backend -Wl,'
21841 RCC*)
21842 # Rational C++ 2.4.1
21843 lt_prog_compiler_pic_CXX='-pic'
21845 cxx*)
21846 # Digital/Compaq C++
21847 lt_prog_compiler_wl_CXX='-Wl,'
21848 # Make sure the PIC flag is empty. It appears that all Alpha
21849 # Linux and Compaq Tru64 Unix objects are PIC.
21850 lt_prog_compiler_pic_CXX=
21851 lt_prog_compiler_static_CXX='-non_shared'
21855 esac
21857 psos*)
21859 solaris*)
21860 case $cc_basename in
21861 CC*)
21862 # Sun C++ 4.2, 5.x and Centerline C++
21863 lt_prog_compiler_pic_CXX='-KPIC'
21864 lt_prog_compiler_static_CXX='-Bstatic'
21865 lt_prog_compiler_wl_CXX='-Qoption ld '
21867 gcx*)
21868 # Green Hills C++ Compiler
21869 lt_prog_compiler_pic_CXX='-PIC'
21873 esac
21875 sunos4*)
21876 case $cc_basename in
21877 CC*)
21878 # Sun C++ 4.x
21879 lt_prog_compiler_pic_CXX='-pic'
21880 lt_prog_compiler_static_CXX='-Bstatic'
21882 lcc*)
21883 # Lucid
21884 lt_prog_compiler_pic_CXX='-pic'
21888 esac
21890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21891 case $cc_basename in
21892 CC*)
21893 lt_prog_compiler_wl_CXX='-Wl,'
21894 lt_prog_compiler_pic_CXX='-KPIC'
21895 lt_prog_compiler_static_CXX='-Bstatic'
21897 esac
21899 tandem*)
21900 case $cc_basename in
21901 NCC*)
21902 # NonStop-UX NCC 3.20
21903 lt_prog_compiler_pic_CXX='-KPIC'
21907 esac
21909 vxworks*)
21912 lt_prog_compiler_can_build_shared_CXX=no
21914 esac
21917 case $host_os in
21918 # For platforms which do not support PIC, -DPIC is meaningless:
21919 *djgpp*)
21920 lt_prog_compiler_pic_CXX=
21923 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21925 esac
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21927 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21932 # Check to make sure the PIC flag actually works.
21934 if test -n "$lt_prog_compiler_pic_CXX"; then
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21937 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21938 $as_echo_n "(cached) " >&6
21939 else
21940 lt_cv_prog_compiler_pic_works_CXX=no
21941 ac_outfile=conftest.$ac_objext
21942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21943 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21944 # Insert the option either (1) after the last *FLAGS variable, or
21945 # (2) before a word containing "conftest.", or (3) at the end.
21946 # Note that $ac_compile itself does not contain backslashes and begins
21947 # with a dollar sign (not a hyphen), so the echo should work correctly.
21948 # The option is referenced via a variable to avoid confusing sed.
21949 lt_compile=`echo "$ac_compile" | $SED \
21950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21952 -e 's:$: $lt_compiler_flag:'`
21953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21954 (eval "$lt_compile" 2>conftest.err)
21955 ac_status=$?
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 if (exit $ac_status) && test -s "$ac_outfile"; then
21959 # The compiler can only warn and ignore the option if not recognized
21960 # So say no if there are warnings other than the usual output.
21961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21964 lt_cv_prog_compiler_pic_works_CXX=yes
21967 $RM conftest*
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21971 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21974 case $lt_prog_compiler_pic_CXX in
21975 "" | " "*) ;;
21976 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21977 esac
21978 else
21979 lt_prog_compiler_pic_CXX=
21980 lt_prog_compiler_can_build_shared_CXX=no
21988 # Check to make sure the static flag actually works.
21990 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21992 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21993 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21994 $as_echo_n "(cached) " >&6
21995 else
21996 lt_cv_prog_compiler_static_works_CXX=no
21997 save_LDFLAGS="$LDFLAGS"
21998 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21999 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22000 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22001 # The linker can only warn and ignore the option if not recognized
22002 # So say no if there are warnings
22003 if test -s conftest.err; then
22004 # Append any errors to the config.log.
22005 cat conftest.err 1>&5
22006 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22008 if diff conftest.exp conftest.er2 >/dev/null; then
22009 lt_cv_prog_compiler_static_works_CXX=yes
22011 else
22012 lt_cv_prog_compiler_static_works_CXX=yes
22015 $RM -r conftest*
22016 LDFLAGS="$save_LDFLAGS"
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22020 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22022 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22024 else
22025 lt_prog_compiler_static_CXX=
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22033 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 lt_cv_prog_compiler_c_o_CXX=no
22037 $RM -r conftest 2>/dev/null
22038 mkdir conftest
22039 cd conftest
22040 mkdir out
22041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22043 lt_compiler_flag="-o out/conftest2.$ac_objext"
22044 # Insert the option either (1) after the last *FLAGS variable, or
22045 # (2) before a word containing "conftest.", or (3) at the end.
22046 # Note that $ac_compile itself does not contain backslashes and begins
22047 # with a dollar sign (not a hyphen), so the echo should work correctly.
22048 lt_compile=`echo "$ac_compile" | $SED \
22049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22051 -e 's:$: $lt_compiler_flag:'`
22052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22053 (eval "$lt_compile" 2>out/conftest.err)
22054 ac_status=$?
22055 cat out/conftest.err >&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22058 then
22059 # The compiler can only warn and ignore the option if not recognized
22060 # So say no if there are warnings
22061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22064 lt_cv_prog_compiler_c_o_CXX=yes
22067 chmod u+w . 2>&5
22068 $RM conftest*
22069 # SGI C++ compiler will create directory out/ii_files/ for
22070 # template instantiation
22071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22072 $RM out/* && rmdir out
22073 cd ..
22074 $RM -r conftest
22075 $RM conftest*
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22079 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22084 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22085 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22086 $as_echo_n "(cached) " >&6
22087 else
22088 lt_cv_prog_compiler_c_o_CXX=no
22089 $RM -r conftest 2>/dev/null
22090 mkdir conftest
22091 cd conftest
22092 mkdir out
22093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22095 lt_compiler_flag="-o out/conftest2.$ac_objext"
22096 # Insert the option either (1) after the last *FLAGS variable, or
22097 # (2) before a word containing "conftest.", or (3) at the end.
22098 # Note that $ac_compile itself does not contain backslashes and begins
22099 # with a dollar sign (not a hyphen), so the echo should work correctly.
22100 lt_compile=`echo "$ac_compile" | $SED \
22101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22103 -e 's:$: $lt_compiler_flag:'`
22104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22105 (eval "$lt_compile" 2>out/conftest.err)
22106 ac_status=$?
22107 cat out/conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22110 then
22111 # The compiler can only warn and ignore the option if not recognized
22112 # So say no if there are warnings
22113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22114 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22115 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22116 lt_cv_prog_compiler_c_o_CXX=yes
22119 chmod u+w . 2>&5
22120 $RM conftest*
22121 # SGI C++ compiler will create directory out/ii_files/ for
22122 # template instantiation
22123 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22124 $RM out/* && rmdir out
22125 cd ..
22126 $RM -r conftest
22127 $RM conftest*
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22131 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22136 hard_links="nottested"
22137 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22138 # do not overwrite the value of need_locks provided by the user
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22140 $as_echo_n "checking if we can lock with hard links... " >&6; }
22141 hard_links=yes
22142 $RM conftest*
22143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22144 touch conftest.a
22145 ln conftest.a conftest.b 2>&5 || hard_links=no
22146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22148 $as_echo "$hard_links" >&6; }
22149 if test "$hard_links" = no; then
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22151 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22152 need_locks=warn
22154 else
22155 need_locks=no
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22164 case $host_os in
22165 aix[4-9]*)
22166 # If we're using GNU nm, then we don't want the "-C" option.
22167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22168 # Also, AIX nm treats weak defined symbols like other global defined
22169 # symbols, whereas GNU nm marks them as "W".
22170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22171 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'
22172 else
22173 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'
22176 pw32*)
22177 export_symbols_cmds_CXX="$ltdll_cmds"
22179 cygwin* | mingw* | cegcc*)
22180 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'
22183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22185 esac
22186 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22189 $as_echo "$ld_shlibs_CXX" >&6; }
22190 test "$ld_shlibs_CXX" = no && can_build_shared=no
22192 with_gnu_ld_CXX=$with_gnu_ld
22200 # Do we need to explicitly link libc?
22202 case "x$archive_cmds_need_lc_CXX" in
22203 x|xyes)
22204 # Assume -lc should be added
22205 archive_cmds_need_lc_CXX=yes
22207 if test "$enable_shared" = yes && test "$GCC" = yes; then
22208 case $archive_cmds_CXX in
22209 *'~'*)
22210 # FIXME: we may have to deal with multi-command sequences.
22212 '$CC '*)
22213 # Test whether the compiler implicitly links with -lc since on some
22214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22215 # to ld, don't add -lc before -lgcc.
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22217 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22218 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22219 $as_echo_n "(cached) " >&6
22220 else
22221 $RM conftest*
22222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22225 (eval $ac_compile) 2>&5
22226 ac_status=$?
22227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22228 test $ac_status = 0; } 2>conftest.err; then
22229 soname=conftest
22230 lib=conftest
22231 libobjs=conftest.$ac_objext
22232 deplibs=
22233 wl=$lt_prog_compiler_wl_CXX
22234 pic_flag=$lt_prog_compiler_pic_CXX
22235 compiler_flags=-v
22236 linker_flags=-v
22237 verstring=
22238 output_objdir=.
22239 libname=conftest
22240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22241 allow_undefined_flag_CXX=
22242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22243 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22244 ac_status=$?
22245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22246 test $ac_status = 0; }
22247 then
22248 lt_cv_archive_cmds_need_lc_CXX=no
22249 else
22250 lt_cv_archive_cmds_need_lc_CXX=yes
22252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22253 else
22254 cat conftest.err 1>&5
22256 $RM conftest*
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22260 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22261 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22263 esac
22266 esac
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22332 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22334 library_names_spec=
22335 libname_spec='lib$name'
22336 soname_spec=
22337 shrext_cmds=".so"
22338 postinstall_cmds=
22339 postuninstall_cmds=
22340 finish_cmds=
22341 finish_eval=
22342 shlibpath_var=
22343 shlibpath_overrides_runpath=unknown
22344 version_type=none
22345 dynamic_linker="$host_os ld.so"
22346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22347 need_lib_prefix=unknown
22348 hardcode_into_libs=no
22350 # when you set need_version to no, make sure it does not cause -set_version
22351 # flags to be left without arguments
22352 need_version=unknown
22354 case $host_os in
22355 aix3*)
22356 version_type=linux
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22358 shlibpath_var=LIBPATH
22360 # AIX 3 has no versioning support, so we append a major version to the name.
22361 soname_spec='${libname}${release}${shared_ext}$major'
22364 aix[4-9]*)
22365 version_type=linux
22366 need_lib_prefix=no
22367 need_version=no
22368 hardcode_into_libs=yes
22369 if test "$host_cpu" = ia64; then
22370 # AIX 5 supports IA64
22371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22372 shlibpath_var=LD_LIBRARY_PATH
22373 else
22374 # With GCC up to 2.95.x, collect2 would create an import file
22375 # for dependence libraries. The import file would start with
22376 # the line `#! .'. This would cause the generated library to
22377 # depend on `.', always an invalid library. This was fixed in
22378 # development snapshots of GCC prior to 3.0.
22379 case $host_os in
22380 aix4 | aix4.[01] | aix4.[01].*)
22381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22382 echo ' yes '
22383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22385 else
22386 can_build_shared=no
22389 esac
22390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22391 # soname into executable. Probably we can add versioning support to
22392 # collect2, so additional links can be useful in future.
22393 if test "$aix_use_runtimelinking" = yes; then
22394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22395 # instead of lib<name>.a to let people know that these are not
22396 # typical AIX shared libraries.
22397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22398 else
22399 # We preserve .a as extension for shared libraries through AIX4.2
22400 # and later when we are not doing run time linking.
22401 library_names_spec='${libname}${release}.a $libname.a'
22402 soname_spec='${libname}${release}${shared_ext}$major'
22404 shlibpath_var=LIBPATH
22408 amigaos*)
22409 case $host_cpu in
22410 powerpc)
22411 # Since July 2007 AmigaOS4 officially supports .so libraries.
22412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22415 m68k)
22416 library_names_spec='$libname.ixlibrary $libname.a'
22417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22418 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'
22420 esac
22423 beos*)
22424 library_names_spec='${libname}${shared_ext}'
22425 dynamic_linker="$host_os ld.so"
22426 shlibpath_var=LIBRARY_PATH
22429 bsdi[45]*)
22430 version_type=linux
22431 need_version=no
22432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22433 soname_spec='${libname}${release}${shared_ext}$major'
22434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22435 shlibpath_var=LD_LIBRARY_PATH
22436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22438 # the default ld.so.conf also contains /usr/contrib/lib and
22439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22440 # libtool to hard-code these into programs
22443 cygwin* | mingw* | pw32* | cegcc*)
22444 version_type=windows
22445 shrext_cmds=".dll"
22446 need_version=no
22447 need_lib_prefix=no
22449 case $GCC,$host_os in
22450 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22451 library_names_spec='$libname.dll.a'
22452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22453 postinstall_cmds='base_file=`basename \${file}`~
22454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22455 dldir=$destdir/`dirname \$dlpath`~
22456 test -d \$dldir || mkdir -p \$dldir~
22457 $install_prog $dir/$dlname \$dldir/$dlname~
22458 chmod a+x \$dldir/$dlname~
22459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22463 dlpath=$dir/\$dldll~
22464 $RM \$dlpath'
22465 shlibpath_overrides_runpath=yes
22467 case $host_os in
22468 cygwin*)
22469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22473 mingw* | cegcc*)
22474 # MinGW DLLs use traditional 'lib' prefix
22475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22477 pw32*)
22478 # pw32 DLLs use 'pw' prefix rather than 'lib'
22479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22481 esac
22485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22487 esac
22488 dynamic_linker='Win32 ld.exe'
22489 # FIXME: first we should search . and the directory the executable is in
22490 shlibpath_var=PATH
22493 darwin* | rhapsody*)
22494 dynamic_linker="$host_os dyld"
22495 version_type=darwin
22496 need_lib_prefix=no
22497 need_version=no
22498 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22499 soname_spec='${libname}${release}${major}$shared_ext'
22500 shlibpath_overrides_runpath=yes
22501 shlibpath_var=DYLD_LIBRARY_PATH
22502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22507 dgux*)
22508 version_type=linux
22509 need_lib_prefix=no
22510 need_version=no
22511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22512 soname_spec='${libname}${release}${shared_ext}$major'
22513 shlibpath_var=LD_LIBRARY_PATH
22516 freebsd* | dragonfly*)
22517 # DragonFly does not have aout. When/if they implement a new
22518 # versioning mechanism, adjust this.
22519 if test -x /usr/bin/objformat; then
22520 objformat=`/usr/bin/objformat`
22521 else
22522 case $host_os in
22523 freebsd[23].*) objformat=aout ;;
22524 *) objformat=elf ;;
22525 esac
22527 version_type=freebsd-$objformat
22528 case $version_type in
22529 freebsd-elf*)
22530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22531 need_version=no
22532 need_lib_prefix=no
22534 freebsd-*)
22535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22536 need_version=yes
22538 esac
22539 shlibpath_var=LD_LIBRARY_PATH
22540 case $host_os in
22541 freebsd2.*)
22542 shlibpath_overrides_runpath=yes
22544 freebsd3.[01]* | freebsdelf3.[01]*)
22545 shlibpath_overrides_runpath=yes
22546 hardcode_into_libs=yes
22548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22550 shlibpath_overrides_runpath=no
22551 hardcode_into_libs=yes
22553 *) # from 4.6 on, and DragonFly
22554 shlibpath_overrides_runpath=yes
22555 hardcode_into_libs=yes
22557 esac
22560 haiku*)
22561 version_type=linux
22562 need_lib_prefix=no
22563 need_version=no
22564 dynamic_linker="$host_os runtime_loader"
22565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22566 soname_spec='${libname}${release}${shared_ext}$major'
22567 shlibpath_var=LIBRARY_PATH
22568 shlibpath_overrides_runpath=yes
22569 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22570 hardcode_into_libs=yes
22573 hpux9* | hpux10* | hpux11*)
22574 # Give a soname corresponding to the major version so that dld.sl refuses to
22575 # link against other versions.
22576 version_type=sunos
22577 need_lib_prefix=no
22578 need_version=no
22579 case $host_cpu in
22580 ia64*)
22581 shrext_cmds='.so'
22582 hardcode_into_libs=yes
22583 dynamic_linker="$host_os dld.so"
22584 shlibpath_var=LD_LIBRARY_PATH
22585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22587 soname_spec='${libname}${release}${shared_ext}$major'
22588 if test "X$HPUX_IA64_MODE" = X32; then
22589 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22590 else
22591 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22595 hppa*64*)
22596 shrext_cmds='.sl'
22597 hardcode_into_libs=yes
22598 dynamic_linker="$host_os dld.sl"
22599 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22602 soname_spec='${libname}${release}${shared_ext}$major'
22603 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22607 shrext_cmds='.sl'
22608 dynamic_linker="$host_os dld.sl"
22609 shlibpath_var=SHLIB_PATH
22610 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22614 esac
22615 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22616 postinstall_cmds='chmod 555 $lib'
22617 # or fails outright, so override atomically:
22618 install_override_mode=555
22621 interix[3-9]*)
22622 version_type=linux
22623 need_lib_prefix=no
22624 need_version=no
22625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22626 soname_spec='${libname}${release}${shared_ext}$major'
22627 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22628 shlibpath_var=LD_LIBRARY_PATH
22629 shlibpath_overrides_runpath=no
22630 hardcode_into_libs=yes
22633 irix5* | irix6* | nonstopux*)
22634 case $host_os in
22635 nonstopux*) version_type=nonstopux ;;
22637 if test "$lt_cv_prog_gnu_ld" = yes; then
22638 version_type=linux
22639 else
22640 version_type=irix
22641 fi ;;
22642 esac
22643 need_lib_prefix=no
22644 need_version=no
22645 soname_spec='${libname}${release}${shared_ext}$major'
22646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22647 case $host_os in
22648 irix5* | nonstopux*)
22649 libsuff= shlibsuff=
22652 case $LD in # libtool.m4 will add one of these switches to LD
22653 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22654 libsuff= shlibsuff= libmagic=32-bit;;
22655 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22656 libsuff=32 shlibsuff=N32 libmagic=N32;;
22657 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22658 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22659 *) libsuff= shlibsuff= libmagic=never-match;;
22660 esac
22662 esac
22663 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22664 shlibpath_overrides_runpath=no
22665 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22666 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22667 hardcode_into_libs=yes
22670 # No shared lib support for Linux oldld, aout, or coff.
22671 linux*oldld* | linux*aout* | linux*coff*)
22672 dynamic_linker=no
22675 # This must be Linux ELF.
22677 # uclinux* changes (here and below) have been submitted to the libtool
22678 # project, but have not yet been accepted: they are GCC-local changes
22679 # for the time being. (See
22680 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22682 version_type=linux
22683 need_lib_prefix=no
22684 need_version=no
22685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 shlibpath_overrides_runpath=no
22691 # Some binutils ld are patched to set DT_RUNPATH
22692 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22693 $as_echo_n "(cached) " >&6
22694 else
22695 lt_cv_shlibpath_overrides_runpath=no
22696 save_LDFLAGS=$LDFLAGS
22697 save_libdir=$libdir
22698 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22699 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22704 main ()
22708 return 0;
22710 _ACEOF
22711 if ac_fn_cxx_try_link "$LINENO"; then :
22712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22713 lt_cv_shlibpath_overrides_runpath=yes
22716 rm -f core conftest.err conftest.$ac_objext \
22717 conftest$ac_exeext conftest.$ac_ext
22718 LDFLAGS=$save_LDFLAGS
22719 libdir=$save_libdir
22723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22725 # This implies no fast_install, which is unacceptable.
22726 # Some rework will be needed to allow for fast_install
22727 # before this can be enabled.
22728 hardcode_into_libs=yes
22730 # Append ld.so.conf contents to the search path
22731 if test -f /etc/ld.so.conf; then
22732 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' ' '`
22733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22736 # We used to test for /lib/ld.so.1 and disable shared libraries on
22737 # powerpc, because MkLinux only supported shared libraries with the
22738 # GNU dynamic linker. Since this was broken with cross compilers,
22739 # most powerpc-linux boxes support dynamic linking these days and
22740 # people can always --disable-shared, the test was removed, and we
22741 # assume the GNU/Linux dynamic linker is in use.
22742 dynamic_linker='GNU/Linux ld.so'
22745 netbsd*)
22746 version_type=sunos
22747 need_lib_prefix=no
22748 need_version=no
22749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22752 dynamic_linker='NetBSD (a.out) ld.so'
22753 else
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22755 soname_spec='${libname}${release}${shared_ext}$major'
22756 dynamic_linker='NetBSD ld.elf_so'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 shlibpath_overrides_runpath=yes
22760 hardcode_into_libs=yes
22763 newsos6)
22764 version_type=linux
22765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22766 shlibpath_var=LD_LIBRARY_PATH
22767 shlibpath_overrides_runpath=yes
22770 *nto* | *qnx*)
22771 version_type=qnx
22772 need_lib_prefix=no
22773 need_version=no
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22776 shlibpath_var=LD_LIBRARY_PATH
22777 shlibpath_overrides_runpath=no
22778 hardcode_into_libs=yes
22779 dynamic_linker='ldqnx.so'
22782 openbsd*)
22783 version_type=sunos
22784 sys_lib_dlsearch_path_spec="/usr/lib"
22785 need_lib_prefix=no
22786 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22787 case $host_os in
22788 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22789 *) need_version=no ;;
22790 esac
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22795 case $host_os in
22796 openbsd2.[89] | openbsd2.[89].*)
22797 shlibpath_overrides_runpath=no
22800 shlibpath_overrides_runpath=yes
22802 esac
22803 else
22804 shlibpath_overrides_runpath=yes
22808 os2*)
22809 libname_spec='$name'
22810 shrext_cmds=".dll"
22811 need_lib_prefix=no
22812 library_names_spec='$libname${shared_ext} $libname.a'
22813 dynamic_linker='OS/2 ld.exe'
22814 shlibpath_var=LIBPATH
22817 osf3* | osf4* | osf5*)
22818 version_type=osf
22819 need_lib_prefix=no
22820 need_version=no
22821 soname_spec='${libname}${release}${shared_ext}$major'
22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22823 shlibpath_var=LD_LIBRARY_PATH
22824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22828 rdos*)
22829 dynamic_linker=no
22832 solaris*)
22833 version_type=linux
22834 need_lib_prefix=no
22835 need_version=no
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 soname_spec='${libname}${release}${shared_ext}$major'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 shlibpath_overrides_runpath=yes
22840 hardcode_into_libs=yes
22841 # ldd complains unless libraries are executable
22842 postinstall_cmds='chmod +x $lib'
22845 sunos4*)
22846 version_type=sunos
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 shlibpath_overrides_runpath=yes
22851 if test "$with_gnu_ld" = yes; then
22852 need_lib_prefix=no
22854 need_version=yes
22857 sysv4 | sysv4.3*)
22858 version_type=linux
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 case $host_vendor in
22863 sni)
22864 shlibpath_overrides_runpath=no
22865 need_lib_prefix=no
22866 runpath_var=LD_RUN_PATH
22868 siemens)
22869 need_lib_prefix=no
22871 motorola)
22872 need_lib_prefix=no
22873 need_version=no
22874 shlibpath_overrides_runpath=no
22875 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22877 esac
22880 sysv4*MP*)
22881 if test -d /usr/nec ;then
22882 version_type=linux
22883 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22884 soname_spec='$libname${shared_ext}.$major'
22885 shlibpath_var=LD_LIBRARY_PATH
22889 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22890 version_type=freebsd-elf
22891 need_lib_prefix=no
22892 need_version=no
22893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22894 soname_spec='${libname}${release}${shared_ext}$major'
22895 shlibpath_var=LD_LIBRARY_PATH
22896 shlibpath_overrides_runpath=yes
22897 hardcode_into_libs=yes
22898 if test "$with_gnu_ld" = yes; then
22899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22900 else
22901 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22902 case $host_os in
22903 sco3.2v5*)
22904 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22906 esac
22908 sys_lib_dlsearch_path_spec='/usr/lib'
22911 tpf*)
22912 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22913 version_type=linux
22914 need_lib_prefix=no
22915 need_version=no
22916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 shlibpath_overrides_runpath=no
22919 hardcode_into_libs=yes
22922 uts4*)
22923 version_type=linux
22924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22925 soname_spec='${libname}${release}${shared_ext}$major'
22926 shlibpath_var=LD_LIBRARY_PATH
22929 # Shared libraries for VwWorks, >= 7 only at this stage
22930 # and (fpic) still incompatible with "large" code models
22931 # in a few configurations. Only for RTP mode in any case,
22932 # and upon explicit request at configure time.
22933 vxworks7*)
22934 dynamic_linker=no
22935 case ${with_multisubdir}-${enable_shared} in
22936 *large*)
22938 *mrtp*-yes)
22939 version_type=linux
22940 need_lib_prefix=no
22941 need_version=no
22942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 dynamic_linker="$host_os module_loader"
22946 esac
22949 dynamic_linker=no
22951 esac
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22953 $as_echo "$dynamic_linker" >&6; }
22954 test "$dynamic_linker" = no && can_build_shared=no
22956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22957 if test "$GCC" = yes; then
22958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22962 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22965 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23006 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23007 hardcode_action_CXX=
23008 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23009 test -n "$runpath_var_CXX" ||
23010 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23012 # We can hardcode non-existent directories.
23013 if test "$hardcode_direct_CXX" != no &&
23014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23015 # have to relink, otherwise we might link with an installed library
23016 # when we should be linking with a yet-to-be-installed one
23017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23018 test "$hardcode_minus_L_CXX" != no; then
23019 # Linking always hardcodes the temporary library directory.
23020 hardcode_action_CXX=relink
23021 else
23022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23023 hardcode_action_CXX=immediate
23025 else
23026 # We cannot hardcode anything, or else we can only hardcode existing
23027 # directories.
23028 hardcode_action_CXX=unsupported
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23031 $as_echo "$hardcode_action_CXX" >&6; }
23033 if test "$hardcode_action_CXX" = relink ||
23034 test "$inherit_rpath_CXX" = yes; then
23035 # Fast installation is not supported
23036 enable_fast_install=no
23037 elif test "$shlibpath_overrides_runpath" = yes ||
23038 test "$enable_shared" = no; then
23039 # Fast installation is not necessary
23040 enable_fast_install=needless
23049 fi # test -n "$compiler"
23051 CC=$lt_save_CC
23052 LDCXX=$LD
23053 LD=$lt_save_LD
23054 GCC=$lt_save_GCC
23055 with_gnu_ld=$lt_save_with_gnu_ld
23056 lt_cv_path_LDCXX=$lt_cv_path_LD
23057 lt_cv_path_LD=$lt_save_path_LD
23058 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23059 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23060 fi # test "$_lt_caught_CXX_error" != yes
23062 ac_ext=cpp
23063 ac_cpp='$CXXCPP $CPPFLAGS'
23064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23083 # Only expand once:
23089 # Identify the assembler which will work hand-in-glove with the newly
23090 # built GCC, so that we can examine its features. This is the assembler
23091 # which will be driven by the driver program.
23093 # If build != host, and we aren't building gas in-tree, we identify a
23094 # build->target assembler and hope that it will have the same features
23095 # as the host->target assembler we'll be using.
23096 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23098 if ${gcc_cv_as+:} false; then :
23100 else
23102 if test -x "$DEFAULT_ASSEMBLER"; then
23103 gcc_cv_as="$DEFAULT_ASSEMBLER"
23104 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23105 && test -f ../gas/Makefile \
23106 && test x$build = x$host; then
23107 gcc_cv_as=../gas/as-new$build_exeext
23108 elif test -x as$build_exeext; then
23109 # Build using assembler in the current directory.
23110 gcc_cv_as=./as$build_exeext
23111 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23112 gcc_cv_as="$AS_FOR_TARGET"
23113 else
23114 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23115 set dummy $AS_FOR_TARGET; ac_word=$2
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23117 $as_echo_n "checking for $ac_word... " >&6; }
23118 if ${ac_cv_path_gcc_cv_as+:} false; then :
23119 $as_echo_n "(cached) " >&6
23120 else
23121 case $gcc_cv_as in
23122 [\\/]* | ?:[\\/]*)
23123 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23127 for as_dir in $PATH
23129 IFS=$as_save_IFS
23130 test -z "$as_dir" && as_dir=.
23131 for ac_exec_ext in '' $ac_executable_extensions; do
23132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23133 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23135 break 2
23137 done
23138 done
23139 IFS=$as_save_IFS
23142 esac
23144 gcc_cv_as=$ac_cv_path_gcc_cv_as
23145 if test -n "$gcc_cv_as"; then
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23147 $as_echo "$gcc_cv_as" >&6; }
23148 else
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23150 $as_echo "no" >&6; }
23157 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23159 case "$ORIGINAL_AS_FOR_TARGET" in
23160 ./as | ./as$build_exeext) ;;
23161 *) ac_config_files="$ac_config_files as:exec-tool.in"
23163 esac
23165 default_ld=
23166 # Check whether --enable-ld was given.
23167 if test "${enable_ld+set}" = set; then :
23168 enableval=$enable_ld; case "${enableval}" in
23170 default_ld=ld.gold
23172 esac
23176 install_gold_as_default=no
23177 # Check whether --enable-gold was given.
23178 if test "${enable_gold+set}" = set; then :
23179 enableval=$enable_gold; case "${enableval}" in
23180 default)
23181 install_gold_as_default=yes
23183 yes)
23184 if test x${default_ld} != x; then
23185 install_gold_as_default=yes
23191 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23193 esac
23197 # Identify the linker which will work hand-in-glove with the newly
23198 # built GCC, so that we can examine its features. This is the linker
23199 # which will be driven by the driver program.
23201 # If build != host, and we aren't building gas in-tree, we identify a
23202 # build->target linker and hope that it will have the same features
23203 # as the host->target linker we'll be using.
23204 gcc_cv_gld_major_version=
23205 gcc_cv_gld_minor_version=
23206 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23207 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23208 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23210 if ${gcc_cv_ld+:} false; then :
23212 else
23214 if test -x "$DEFAULT_LINKER"; then
23215 gcc_cv_ld="$DEFAULT_LINKER"
23216 elif test $install_gold_as_default = yes \
23217 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23218 && test -f ../gold/Makefile \
23219 && test x$build = x$host; then
23220 gcc_cv_ld=../gold/ld-new$build_exeext
23221 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23222 && test -f ../ld/Makefile \
23223 && test x$build = x$host; then
23224 gcc_cv_ld=../ld/ld-new$build_exeext
23225 elif test -x collect-ld$build_exeext; then
23226 # Build using linker in the current directory.
23227 gcc_cv_ld=./collect-ld$build_exeext
23228 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23229 gcc_cv_ld="$LD_FOR_TARGET"
23230 else
23231 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23232 set dummy $LD_FOR_TARGET; ac_word=$2
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23234 $as_echo_n "checking for $ac_word... " >&6; }
23235 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23236 $as_echo_n "(cached) " >&6
23237 else
23238 case $gcc_cv_ld in
23239 [\\/]* | ?:[\\/]*)
23240 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23244 for as_dir in $PATH
23246 IFS=$as_save_IFS
23247 test -z "$as_dir" && as_dir=.
23248 for ac_exec_ext in '' $ac_executable_extensions; do
23249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23250 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23252 break 2
23254 done
23255 done
23256 IFS=$as_save_IFS
23259 esac
23261 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23262 if test -n "$gcc_cv_ld"; then
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23264 $as_echo "$gcc_cv_ld" >&6; }
23265 else
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 $as_echo "no" >&6; }
23274 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23275 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23276 # if the PLUGIN_LD is set ld-new, just have it as ld
23277 # as that is the installed named.
23278 if test x$PLUGIN_LD_SUFFIX = xld-new \
23279 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23280 PLUGIN_LD_SUFFIX=ld
23283 # Check whether --with-plugin-ld was given.
23284 if test "${with_plugin_ld+set}" = set; then :
23285 withval=$with_plugin_ld; if test x"$withval" != x; then
23286 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23287 PLUGIN_LD_SUFFIX="$withval"
23293 cat >>confdefs.h <<_ACEOF
23294 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23295 _ACEOF
23298 # Check to see if we are using gold instead of ld
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23300 $as_echo_n "checking whether we are using gold... " >&6; }
23301 ld_is_gold=no
23302 if test x$gcc_cv_ld != x; then
23303 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23304 | grep "GNU gold" > /dev/null; then
23305 ld_is_gold=yes
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23309 $as_echo "$ld_is_gold" >&6; }
23311 # Check to see if we are using mold instead of ld
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23313 $as_echo_n "checking whether we are using mold... " >&6; }
23314 ld_is_mold=no
23315 if test x$gcc_cv_ld != x; then
23316 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23317 | grep "mold" > /dev/null; then
23318 ld_is_mold=yes
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23322 $as_echo "$ld_is_mold" >&6; }
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23326 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23327 # Check to see if default ld is not gold, but gold is
23328 # available and has support for split stack. If gcc was configured
23329 # with gold then no checking is done.
23331 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23333 # For platforms other than powerpc64*, enable as appropriate.
23335 gold_non_default=no
23336 ld_gold=`which ${gcc_cv_ld}.gold`
23337 # Make sure this gold has minimal split stack support
23338 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23339 ld_vers=`$ld_gold --version | sed 1q`
23340 gold_vers=`echo $ld_vers | sed -n \
23341 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23342 case $target in
23343 # check that the gold version contains the complete split stack support
23344 # on powerpc64 big and little endian
23345 powerpc64*-*-*)
23346 case "$gold_vers" in
23347 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23349 *) gold_non_default=no
23351 esac
23353 esac
23355 if test $gold_non_default = yes; then
23357 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23362 $as_echo "$gold_non_default" >&6; }
23364 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23366 case "$ORIGINAL_LD_FOR_TARGET" in
23367 ./collect-ld | ./collect-ld$build_exeext) ;;
23368 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23370 esac
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23373 $as_echo_n "checking what linker to use... " >&6; }
23374 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23375 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23376 # Single tree build which includes ld. We want to prefer it
23377 # over whatever linker top-level may have detected, since
23378 # we'll use what we're building after installation anyway.
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23380 $as_echo "newly built ld" >&6; }
23381 in_tree_ld=yes
23382 in_tree_ld_is_elf=no
23383 if (grep 'EMUL = .*elf' ../ld/Makefile \
23384 || grep 'EMUL = .*linux' ../ld/Makefile \
23385 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23386 in_tree_ld_is_elf=yes
23387 elif test "$ld_is_gold" = yes; then
23388 in_tree_ld_is_elf=yes
23390 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
23392 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23393 if test x$gcc_cv_gld_version != x; then
23394 break
23396 done
23397 case $gcc_cv_gld_version in
23398 VERSION=[0-9]*) ;;
23399 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23400 esac
23401 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23402 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23403 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23404 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23405 else
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23407 $as_echo "$gcc_cv_ld" >&6; }
23408 in_tree_ld=no
23409 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23410 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23411 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23417 # Figure out what nm we will be using.
23418 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23419 if ${gcc_cv_nm+:} false; then :
23421 else
23423 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23424 && test -f ../binutils/Makefile \
23425 && test x$build = x$host; then
23426 gcc_cv_nm=../binutils/nm-new$build_exeext
23427 elif test -x nm$build_exeext; then
23428 gcc_cv_nm=./nm$build_exeext
23429 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23430 gcc_cv_nm="$NM_FOR_TARGET"
23431 else
23432 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23433 set dummy $NM_FOR_TARGET; ac_word=$2
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23435 $as_echo_n "checking for $ac_word... " >&6; }
23436 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23437 $as_echo_n "(cached) " >&6
23438 else
23439 case $gcc_cv_nm in
23440 [\\/]* | ?:[\\/]*)
23441 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23445 for as_dir in $PATH
23447 IFS=$as_save_IFS
23448 test -z "$as_dir" && as_dir=.
23449 for ac_exec_ext in '' $ac_executable_extensions; do
23450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23451 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23453 break 2
23455 done
23456 done
23457 IFS=$as_save_IFS
23460 esac
23462 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23463 if test -n "$gcc_cv_nm"; then
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23465 $as_echo "$gcc_cv_nm" >&6; }
23466 else
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23468 $as_echo "no" >&6; }
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23476 $as_echo_n "checking what nm to use... " >&6; }
23477 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23478 # Single tree build which includes binutils.
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23480 $as_echo "newly built nm" >&6; }
23481 in_tree_nm=yes
23482 else
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23484 $as_echo "$gcc_cv_nm" >&6; }
23485 in_tree_nm=no
23488 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23490 case "$ORIGINAL_NM_FOR_TARGET" in
23491 ./nm | ./nm$build_exeext) ;;
23492 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23494 esac
23497 # Figure out what objdump we will be using.
23498 if ${gcc_cv_objdump+:} false; then :
23500 else
23502 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23503 && test -f ../binutils/Makefile \
23504 && test x$build = x$host; then
23505 # Single tree build which includes binutils.
23506 gcc_cv_objdump=../binutils/objdump$build_exeext
23507 elif test -x objdump$build_exeext; then
23508 gcc_cv_objdump=./objdump$build_exeext
23509 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23510 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23511 else
23512 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23513 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23515 $as_echo_n "checking for $ac_word... " >&6; }
23516 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23517 $as_echo_n "(cached) " >&6
23518 else
23519 case $gcc_cv_objdump in
23520 [\\/]* | ?:[\\/]*)
23521 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23525 for as_dir in $PATH
23527 IFS=$as_save_IFS
23528 test -z "$as_dir" && as_dir=.
23529 for ac_exec_ext in '' $ac_executable_extensions; do
23530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23531 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23533 break 2
23535 done
23536 done
23537 IFS=$as_save_IFS
23540 esac
23542 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23543 if test -n "$gcc_cv_objdump"; then
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23545 $as_echo "$gcc_cv_objdump" >&6; }
23546 else
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23548 $as_echo "no" >&6; }
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23556 $as_echo_n "checking what objdump to use... " >&6; }
23557 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23558 # Single tree build which includes binutils.
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23560 $as_echo "newly built objdump" >&6; }
23561 elif test x$gcc_cv_objdump = x; then
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23563 $as_echo "not found" >&6; }
23564 else
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23566 $as_echo "$gcc_cv_objdump" >&6; }
23569 # Figure out what readelf we will be using.
23570 if ${gcc_cv_readelf+:} false; then :
23572 else
23574 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23575 && test -f ../binutils/Makefile \
23576 && test x$build = x$host; then
23577 # Single tree build which includes binutils.
23578 gcc_cv_readelf=../binutils/readelf$build_exeext
23579 elif test -x readelf$build_exeext; then
23580 gcc_cv_readelf=./readelf$build_exeext
23581 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23582 gcc_cv_readelf="$READELF_FOR_TARGET"
23583 else
23584 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23585 set dummy $READELF_FOR_TARGET; ac_word=$2
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23587 $as_echo_n "checking for $ac_word... " >&6; }
23588 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23589 $as_echo_n "(cached) " >&6
23590 else
23591 case $gcc_cv_readelf in
23592 [\\/]* | ?:[\\/]*)
23593 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23597 for as_dir in $PATH
23599 IFS=$as_save_IFS
23600 test -z "$as_dir" && as_dir=.
23601 for ac_exec_ext in '' $ac_executable_extensions; do
23602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23603 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23605 break 2
23607 done
23608 done
23609 IFS=$as_save_IFS
23612 esac
23614 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23615 if test -n "$gcc_cv_readelf"; then
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23617 $as_echo "$gcc_cv_readelf" >&6; }
23618 else
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23620 $as_echo "no" >&6; }
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23628 $as_echo_n "checking what readelf to use... " >&6; }
23629 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23630 # Single tree build which includes binutils.
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23632 $as_echo "newly built readelf" >&6; }
23633 elif test x$gcc_cv_readelf = x; then
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23635 $as_echo "not found" >&6; }
23636 else
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23638 $as_echo "$gcc_cv_readelf" >&6; }
23641 # Figure out what otool we will be using.
23642 if ${gcc_cv_otool+:} false; then :
23644 else
23646 if test -x otool$build_exeext; then
23647 gcc_cv_otool=./otool$build_exeext
23648 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23649 gcc_cv_otool="$OTOOL_FOR_TARGET"
23650 else
23651 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23652 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23654 $as_echo_n "checking for $ac_word... " >&6; }
23655 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23656 $as_echo_n "(cached) " >&6
23657 else
23658 case $gcc_cv_otool in
23659 [\\/]* | ?:[\\/]*)
23660 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23664 for as_dir in $PATH
23666 IFS=$as_save_IFS
23667 test -z "$as_dir" && as_dir=.
23668 for ac_exec_ext in '' $ac_executable_extensions; do
23669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23670 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23672 break 2
23674 done
23675 done
23676 IFS=$as_save_IFS
23679 esac
23681 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23682 if test -n "$gcc_cv_otool"; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23684 $as_echo "$gcc_cv_otool" >&6; }
23685 else
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687 $as_echo "no" >&6; }
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23695 $as_echo_n "checking what otool to use... " >&6; }
23696 if test x$gcc_cv_otool = x; then
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23698 $as_echo "not found" >&6; }
23699 else
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23701 $as_echo "$gcc_cv_otool" >&6; }
23704 # Figure out the dsymutil we will use.
23705 if ${gcc_cv_dsymutil+:} false; then :
23707 else
23709 if test -x "$DEFAULT_DSYMUTIL"; then
23710 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23711 elif test -x dsymutil$build_exeext; then
23712 gcc_cv_dsymutil=./dsymutil$build_exeext
23713 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23714 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23715 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23716 gcc_cv_dsymutil=$DSYMUTIL
23717 else
23718 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23719 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23721 $as_echo_n "checking for $ac_word... " >&6; }
23722 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23723 $as_echo_n "(cached) " >&6
23724 else
23725 case $gcc_cv_dsymutil in
23726 [\\/]* | ?:[\\/]*)
23727 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23731 for as_dir in $PATH
23733 IFS=$as_save_IFS
23734 test -z "$as_dir" && as_dir=.
23735 for ac_exec_ext in '' $ac_executable_extensions; do
23736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23737 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23739 break 2
23741 done
23742 done
23743 IFS=$as_save_IFS
23746 esac
23748 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23749 if test -n "$gcc_cv_dsymutil"; then
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23751 $as_echo "$gcc_cv_dsymutil" >&6; }
23752 else
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23754 $as_echo "no" >&6; }
23761 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23763 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23764 ./dsymutil | ./dsymutil$build_exeext) ;;
23765 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23767 esac
23769 # Figure out what assembler alignment features are present.
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23771 $as_echo_n "checking assembler flags... " >&6; }
23772 if ${gcc_cv_as_flags+:} false; then :
23773 $as_echo_n "(cached) " >&6
23774 else
23775 case "$target" in
23776 i[34567]86-*-linux*)
23777 gcc_cv_as_flags=--32
23779 x86_64-*-linux-gnux32)
23780 gcc_cv_as_flags=--x32
23782 x86_64-*-linux*)
23783 gcc_cv_as_flags=--64
23785 powerpc*-*-darwin*)
23786 gcc_cv_as_flags="-arch ppc"
23789 gcc_cv_as_flags=" "
23791 esac
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23794 $as_echo "$gcc_cv_as_flags" >&6; }
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23797 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23798 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23799 $as_echo_n "(cached) " >&6
23800 else
23801 gcc_cv_as_balign_and_p2align=no
23802 if test x$gcc_cv_as != x; then
23803 $as_echo '.balign 4
23804 .p2align 2' > conftest.s
23805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23807 (eval $ac_try) 2>&5
23808 ac_status=$?
23809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23810 test $ac_status = 0; }; }
23811 then
23812 gcc_cv_as_balign_and_p2align=yes
23813 else
23814 echo "configure: failed program was" >&5
23815 cat conftest.s >&5
23817 rm -f conftest.o conftest.s
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23821 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23822 if test $gcc_cv_as_balign_and_p2align = yes; then
23824 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23830 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23831 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23832 $as_echo_n "(cached) " >&6
23833 else
23834 gcc_cv_as_max_skip_p2align=no
23835 if test x$gcc_cv_as != x; then
23836 $as_echo '.p2align 4,,7' > conftest.s
23837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23842 test $ac_status = 0; }; }
23843 then
23844 gcc_cv_as_max_skip_p2align=yes
23845 else
23846 echo "configure: failed program was" >&5
23847 cat conftest.s >&5
23849 rm -f conftest.o conftest.s
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23853 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23854 if test $gcc_cv_as_max_skip_p2align = yes; then
23856 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23862 $as_echo_n "checking assembler for .literal16... " >&6; }
23863 if ${gcc_cv_as_literal16+:} false; then :
23864 $as_echo_n "(cached) " >&6
23865 else
23866 gcc_cv_as_literal16=no
23867 if test x$gcc_cv_as != x; then
23868 $as_echo '.literal16' > conftest.s
23869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23874 test $ac_status = 0; }; }
23875 then
23876 gcc_cv_as_literal16=yes
23877 else
23878 echo "configure: failed program was" >&5
23879 cat conftest.s >&5
23881 rm -f conftest.o conftest.s
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23885 $as_echo "$gcc_cv_as_literal16" >&6; }
23886 if test $gcc_cv_as_literal16 = yes; then
23888 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23894 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23895 if ${gcc_cv_as_subsection_m1+:} false; then :
23896 $as_echo_n "(cached) " >&6
23897 else
23898 gcc_cv_as_subsection_m1=no
23899 if test x$gcc_cv_as != x; then
23900 $as_echo 'conftest_label1: .word 0
23901 .subsection -1
23902 conftest_label2: .word 0
23903 .previous' > conftest.s
23904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909 test $ac_status = 0; }; }
23910 then
23911 if test x$gcc_cv_nm != x; then
23912 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23913 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23914 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23915 then :
23916 else gcc_cv_as_subsection_m1=yes
23918 rm -f conftest.nm1 conftest.nm2
23920 else
23921 echo "configure: failed program was" >&5
23922 cat conftest.s >&5
23924 rm -f conftest.o conftest.s
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23928 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23929 if test $gcc_cv_as_subsection_m1 = yes; then
23931 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23937 $as_echo_n "checking assembler for .weak... " >&6; }
23938 if ${gcc_cv_as_weak+:} false; then :
23939 $as_echo_n "(cached) " >&6
23940 else
23941 gcc_cv_as_weak=no
23942 if test x$gcc_cv_as != x; then
23943 $as_echo ' .weak foobar' > conftest.s
23944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23950 then
23951 gcc_cv_as_weak=yes
23952 else
23953 echo "configure: failed program was" >&5
23954 cat conftest.s >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23960 $as_echo "$gcc_cv_as_weak" >&6; }
23961 if test $gcc_cv_as_weak = yes; then
23963 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23969 $as_echo_n "checking assembler for .weakref... " >&6; }
23970 if ${gcc_cv_as_weakref+:} false; then :
23971 $as_echo_n "(cached) " >&6
23972 else
23973 gcc_cv_as_weakref=no
23974 if test x$gcc_cv_as != x; then
23975 $as_echo ' .weakref foobar, barfnot' > conftest.s
23976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23982 then
23983 gcc_cv_as_weakref=yes
23984 else
23985 echo "configure: failed program was" >&5
23986 cat conftest.s >&5
23988 rm -f conftest.o conftest.s
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23992 $as_echo "$gcc_cv_as_weakref" >&6; }
23993 if test $gcc_cv_as_weakref = yes; then
23995 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24001 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24002 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 gcc_cv_as_nsubspa_comdat=no
24006 if test x$gcc_cv_as != x; then
24007 $as_echo ' .SPACE $TEXT$
24008 .NSUBSPA $CODE$,COMDAT' > conftest.s
24009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014 test $ac_status = 0; }; }
24015 then
24016 gcc_cv_as_nsubspa_comdat=yes
24017 else
24018 echo "configure: failed program was" >&5
24019 cat conftest.s >&5
24021 rm -f conftest.o conftest.s
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24025 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24026 if test $gcc_cv_as_nsubspa_comdat = yes; then
24028 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24033 # .hidden needs to be supported in both the assembler and the linker,
24034 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24035 # This is irritatingly difficult to feature test for; we have to check the
24036 # date string after the version number. If we've got an in-tree
24037 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24038 # to be safe.
24039 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24040 case "${target}" in
24041 *-*-aix*)
24042 conftest_s=' .globl foobar,hidden'
24045 conftest_s=' .hidden foobar
24046 foobar:'
24048 esac
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24050 $as_echo_n "checking assembler for .hidden... " >&6; }
24051 if ${gcc_cv_as_hidden+:} false; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24054 gcc_cv_as_hidden=no
24055 if test x$gcc_cv_as != x; then
24056 $as_echo "$conftest_s" > conftest.s
24057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24063 then
24064 gcc_cv_as_hidden=yes
24065 else
24066 echo "configure: failed program was" >&5
24067 cat conftest.s >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24073 $as_echo "$gcc_cv_as_hidden" >&6; }
24076 case "${target}" in
24077 *-*-darwin*)
24078 # Darwin as has some visibility support, though with a different syntax.
24079 gcc_cv_as_hidden=yes
24081 esac
24083 # gnu_indirect_function type is an extension proposed at
24084 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24085 # selection of function implementation
24086 # Check whether --enable-gnu-indirect-function was given.
24087 if test "${enable_gnu_indirect_function+set}" = set; then :
24088 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24089 yes | no) ;;
24090 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24091 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24092 esac
24093 else
24094 enable_gnu_indirect_function="$default_gnu_indirect_function"
24098 case "${target}" in
24099 riscv*-*-linux*)
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24101 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24102 cat > conftest.s <<EOF
24103 .text
24104 .type foo_resolver, @function
24105 foo_resolver:
24107 .size foo_resolver, .-foo_resolver
24109 .globl foo
24110 .type foo, %gnu_indirect_function
24111 .set foo, foo_resolver
24113 .globl bar
24114 .type bar, @function
24115 bar:
24116 call foo
24118 .size bar, .-bar
24120 if test x$gcc_cv_as != x \
24121 && test x$gcc_cv_ld != x \
24122 && test x$gcc_cv_readelf != x \
24123 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24124 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24125 && $gcc_cv_readelf --relocs --wide conftest \
24126 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24127 enable_gnu_indirect_function=yes
24129 rm -f conftest conftest.o conftest.s
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24131 $as_echo "$enable_gnu_indirect_function" >&6; }
24133 esac
24135 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24137 cat >>confdefs.h <<_ACEOF
24138 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24139 _ACEOF
24143 if test $in_tree_ld != yes ; then
24144 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24145 if echo "$ld_ver" | grep GNU > /dev/null; then
24146 if test x"$ld_is_gold" = xyes; then
24147 # GNU gold --version looks like this:
24149 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24151 # We extract the binutils version which is more familiar and specific
24152 # than the gold version.
24153 ld_vers=`echo $ld_ver | sed -n \
24154 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24155 else
24156 # GNU ld --version looks like this:
24158 # GNU ld (GNU Binutils) 2.21.51.20110225
24159 ld_vers=`echo $ld_ver | sed -n \
24160 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24162 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'`
24163 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24164 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24165 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24166 else
24167 case "${target}" in
24168 *-*-solaris2*)
24169 # Solaris 2 ld -V output looks like this for a regular version:
24171 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24173 # but test versions add stuff at the end:
24175 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24177 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24178 # numbers can be used in ld.so.1 feature checks even if a different
24179 # linker is configured.
24180 ld_ver=`$gcc_cv_ld -V 2>&1`
24181 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24182 ld_vers=`echo $ld_ver | sed -n \
24183 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24184 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24185 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24188 esac
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24193 $as_echo_n "checking linker for .hidden support... " >&6; }
24194 if ${gcc_cv_ld_hidden+:} false; then :
24195 $as_echo_n "(cached) " >&6
24196 else
24197 if test $in_tree_ld = yes ; then
24198 gcc_cv_ld_hidden=no
24199 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 \
24200 && test $in_tree_ld_is_elf = yes; then
24201 gcc_cv_ld_hidden=yes
24203 else
24204 gcc_cv_ld_hidden=yes
24205 if test x"$ld_is_gold" = xyes; then
24207 elif test x"$ld_is_mold" = xyes; then
24209 elif echo "$ld_ver" | grep GNU > /dev/null; then
24210 if test 0"$ld_date" -lt 20020404; then
24211 if test -n "$ld_date"; then
24212 # If there was date string, but was earlier than 2002-04-04, fail
24213 gcc_cv_ld_hidden=no
24214 elif test -z "$ld_vers"; then
24215 # If there was no date string nor ld version number, something is wrong
24216 gcc_cv_ld_hidden=no
24217 else
24218 test -z "$ld_vers_patch" && ld_vers_patch=0
24219 if test "$ld_vers_major" -lt 2; then
24220 gcc_cv_ld_hidden=no
24221 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24222 gcc_cv_ld_hidden="no"
24223 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24224 gcc_cv_ld_hidden=no
24228 else
24229 case "${target}" in
24230 *-*-aix[789]*)
24231 gcc_cv_ld_hidden=yes
24233 *-*-darwin*)
24234 # Darwin ld has some visibility support.
24235 gcc_cv_ld_hidden=yes
24237 hppa64*-*-hpux* | ia64*-*-hpux*)
24238 gcc_cv_ld_hidden=yes
24240 *-*-solaris2*)
24241 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24242 # .symbolic was only added in Solaris 9 12/02.
24243 gcc_cv_ld_hidden=yes
24246 gcc_cv_ld_hidden=no
24248 esac
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24253 $as_echo "$gcc_cv_ld_hidden" >&6; }
24254 libgcc_visibility=no
24257 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24258 libgcc_visibility=yes
24260 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24265 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24266 gcc_cv_ld_ro_rw_mix=unknown
24267 if test $in_tree_ld = yes ; then
24268 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 \
24269 && test $in_tree_ld_is_elf = yes; then
24270 gcc_cv_ld_ro_rw_mix=read-write
24272 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24273 echo '.section myfoosect, "a"' > conftest1.s
24274 echo '.section myfoosect, "aw"' > conftest2.s
24275 echo '.byte 1' >> conftest2.s
24276 echo '.section myfoosect, "a"' > conftest3.s
24277 echo '.byte 0' >> conftest3.s
24278 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24279 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24280 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24281 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24282 conftest2.o conftest3.o > /dev/null 2>&1; then
24283 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24284 | sed -e '/myfoosect/!d' -e N`
24285 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24286 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24287 gcc_cv_ld_ro_rw_mix=read-only
24288 else
24289 gcc_cv_ld_ro_rw_mix=read-write
24293 rm -f conftest.* conftest[123].*
24295 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24297 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24301 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24303 # Check whether --enable-initfini-array was given.
24304 if test "${enable_initfini_array+set}" = set; then :
24305 enableval=$enable_initfini_array;
24306 else
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24309 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24310 if ${gcc_cv_initfini_array+:} false; then :
24311 $as_echo_n "(cached) " >&6
24312 else
24313 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24314 case "${target}" in
24315 ia64-*)
24316 if test "$cross_compiling" = yes; then :
24317 gcc_cv_initfini_array=no
24318 else
24319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h. */
24322 #ifndef __ELF__
24323 #error Not an ELF OS
24324 #endif
24325 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24326 if it can be used. */
24327 static int x = -1;
24328 int main (void) { return x; }
24329 int foo (void) { x = 0; }
24330 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24332 _ACEOF
24333 if ac_fn_cxx_try_run "$LINENO"; then :
24334 gcc_cv_initfini_array=yes
24335 else
24336 gcc_cv_initfini_array=no
24338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24339 conftest.$ac_objext conftest.beam conftest.$ac_ext
24343 gcc_cv_initfini_array=no
24344 if test $in_tree_ld = yes ; then
24345 if test "$gcc_cv_gld_major_version" -eq 2 \
24346 -a "$gcc_cv_gld_minor_version" -ge 22 \
24347 -o "$gcc_cv_gld_major_version" -gt 2 \
24348 && test $in_tree_ld_is_elf = yes; then
24349 gcc_cv_initfini_array=yes
24351 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24352 case $target:$gas in
24353 *:yes)
24354 sh_flags='"a"'
24355 sh_type='%progbits'
24357 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24358 sh_flags='"a"'
24359 sh_type='@progbits'
24361 sparc*-*-solaris2*:no)
24362 sh_flags='#alloc'
24363 sh_type='#progbits'
24364 sh_quote='"'
24366 esac
24367 case "$target:$gnu_ld" in
24368 *:yes)
24369 cat > conftest.s <<EOF
24370 .section .dtors,$sh_flags,$sh_type
24371 .balign 4
24372 .byte 'A', 'A', 'A', 'A'
24373 .section .ctors,$sh_flags,$sh_type
24374 .balign 4
24375 .byte 'B', 'B', 'B', 'B'
24376 .section .fini_array.65530,$sh_flags,$sh_type
24377 .balign 4
24378 .byte 'C', 'C', 'C', 'C'
24379 .section .init_array.65530,$sh_flags,$sh_type
24380 .balign 4
24381 .byte 'D', 'D', 'D', 'D'
24382 .section .dtors.64528,$sh_flags,$sh_type
24383 .balign 4
24384 .byte 'E', 'E', 'E', 'E'
24385 .section .ctors.64528,$sh_flags,$sh_type
24386 .balign 4
24387 .byte 'F', 'F', 'F', 'F'
24388 .section .fini_array.01005,$sh_flags,$sh_type
24389 .balign 4
24390 .byte 'G', 'G', 'G', 'G'
24391 .section .init_array.01005,$sh_flags,$sh_type
24392 .balign 4
24393 .byte 'H', 'H', 'H', 'H'
24394 .text
24395 .globl _start
24396 _start:
24398 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24399 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24400 && $gcc_cv_objdump -s -j .init_array conftest \
24401 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24402 && $gcc_cv_objdump -s -j .fini_array conftest \
24403 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24404 gcc_cv_initfini_array=yes
24407 *-*-solaris2*:no)
24408 # When Solaris ld added constructor priority support, it was
24409 # decided to only handle .init_array.N/.fini_array.N since
24410 # there was no need for backwards compatibility with
24411 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24412 # sections with correct execution order resp. to
24413 # .init_array/.fini_array, while gld merges them into
24414 # .init_array/.fini_array.
24415 cat > conftest.s <<EOF
24416 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24417 .align 4
24418 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24419 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24420 .align 4
24421 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24422 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24423 .align 4
24424 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24425 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24426 .align 4
24427 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24428 .text
24429 .globl _start
24430 _start:
24432 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24433 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24434 && $gcc_cv_objdump -s -j .init_array conftest \
24435 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24436 && $gcc_cv_objdump -s -j .fini_array conftest \
24437 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24438 gcc_cv_initfini_array=yes
24441 esac
24442 rm -f conftest conftest.*
24444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h. */
24447 #ifndef __ELF__
24448 # error Not an ELF OS
24449 #endif
24450 #include <stdlib.h>
24451 #if defined __GLIBC_PREREQ
24452 # if __GLIBC_PREREQ (2, 4)
24453 # else
24454 # error GLIBC 2.4 required
24455 # endif
24456 #else
24457 # if defined __sun__ && defined __svr4__
24458 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24459 # else
24460 # error The C library not known to support .init_array/.fini_array
24461 # endif
24462 #endif
24464 _ACEOF
24465 if ac_fn_cxx_try_cpp "$LINENO"; then :
24467 else
24468 gcc_cv_initfini_array=no
24470 rm -f conftest.err conftest.i conftest.$ac_ext;;
24471 esac
24472 else
24473 case "${target}" in
24474 aarch64*-linux-gnu*)
24475 # AArch64 postdates glibc support for .init_array/.fini_array,
24476 # so we don't need the preprocessor test above.
24477 gcc_cv_initfini_array=yes
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24482 $as_echo_n "checking cross compile... guessing... " >&6; }
24483 gcc_cv_initfini_array=no
24485 esac
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24489 $as_echo "$gcc_cv_initfini_array" >&6; }
24490 enable_initfini_array=$gcc_cv_initfini_array
24495 cat >>confdefs.h <<_ACEOF
24496 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24497 _ACEOF
24501 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24502 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24503 # these directives, even when they appear to accept them.
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24505 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24506 if ${gcc_cv_as_leb128+:} false; then :
24507 $as_echo_n "(cached) " >&6
24508 else
24509 gcc_cv_as_leb128=no
24510 if test x$gcc_cv_as != x; then
24511 $as_echo ' .data
24512 .uleb128 L2 - L1
24514 .uleb128 1280
24515 .sleb128 -1010
24517 .uleb128 0x8000000000000000
24518 ' > conftest.s
24519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24521 (eval $ac_try) 2>&5
24522 ac_status=$?
24523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24524 test $ac_status = 0; }; }
24525 then
24527 if test "x$gcc_cv_objdump" != x; then
24528 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24529 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24530 gcc_cv_as_leb128=yes
24532 elif test "x$gcc_cv_otool" != x; then
24533 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24534 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24535 gcc_cv_as_leb128=yes
24537 else
24538 # play safe, assume the assembler is broken.
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24550 $as_echo "$gcc_cv_as_leb128" >&6; }
24551 if test $gcc_cv_as_leb128 = yes; then
24553 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24556 if test $gcc_cv_as_leb128 != yes; then
24558 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24562 # Determine if an .eh_frame section is read-only.
24563 gcc_fn_eh_frame_ro () {
24564 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24565 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24566 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24569 # Check if we have assembler support for unwind directives.
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24571 $as_echo_n "checking assembler for cfi directives... " >&6; }
24572 if ${gcc_cv_as_cfi_directive+:} false; then :
24573 $as_echo_n "(cached) " >&6
24574 else
24575 gcc_cv_as_cfi_directive=no
24576 if test x$gcc_cv_as != x; then
24577 $as_echo ' .text
24578 .cfi_startproc
24579 .cfi_offset 0, 0
24580 .cfi_same_value 1
24581 .cfi_def_cfa 1, 2
24582 .cfi_escape 1, 2, 3, 4, 5
24583 .cfi_endproc' > conftest.s
24584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24589 test $ac_status = 0; }; }
24590 then
24591 case "$target" in
24592 *-*-solaris*)
24593 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24594 # read-only and read-write sections, we need to make sure that the
24595 # assembler used emits read-write .eh_frame sections.
24596 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24597 gcc_cv_as_cfi_directive=yes
24598 elif test "x$gcc_cv_objdump" = x; then
24599 # No objdump, err on the side of caution.
24600 gcc_cv_as_cfi_directive=no
24601 else
24602 if test x$gas = xyes; then
24603 as_32_opt="--32"
24604 as_64_opt="--64"
24605 else
24606 as_32_opt="-m32"
24607 as_64_opt="-m64"
24609 case "$target" in
24610 sparc*-*-solaris2.*)
24611 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24612 if gcc_fn_eh_frame_ro $as_32_opt \
24613 || gcc_fn_eh_frame_ro $as_64_opt; then
24614 gcc_cv_as_cfi_directive=no
24615 else
24616 gcc_cv_as_cfi_directive=yes
24619 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24620 # On Solaris/x86, make sure that GCC and assembler agree on using
24621 # read-only .eh_frame sections for 64-bit.
24622 if gcc_fn_eh_frame_ro $as_32_opt; then
24623 gcc_cv_as_cfi_directive=no
24624 elif gcc_fn_eh_frame_ro $as_64_opt; then
24625 gcc_cv_as_cfi_directive=yes
24626 else
24627 gcc_cv_as_cfi_directive=no
24630 esac
24633 *-*-*)
24634 gcc_cv_as_cfi_directive=yes
24636 esac
24637 else
24638 echo "configure: failed program was" >&5
24639 cat conftest.s >&5
24641 rm -f conftest.o conftest.s
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24645 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24648 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24650 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24651 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24652 $as_echo_n "(cached) " >&6
24653 else
24654 gcc_cv_as_cfi_advance_working=no
24655 if test x$gcc_cv_as != x; then
24656 $as_echo ' .text
24657 .cfi_startproc
24658 .cfi_adjust_cfa_offset 64
24659 .skip 75040, 0
24660 .cfi_adjust_cfa_offset 128
24661 .cfi_endproc' > conftest.s
24662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24668 then
24670 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24671 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24672 gcc_cv_as_cfi_advance_working=yes
24675 else
24676 echo "configure: failed program was" >&5
24677 cat conftest.s >&5
24679 rm -f conftest.o conftest.s
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24683 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24686 else
24687 # no objdump, err on the side of caution
24688 gcc_cv_as_cfi_advance_working=no
24692 cat >>confdefs.h <<_ACEOF
24693 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24694 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24695 _ACEOF
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24700 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24701 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24702 $as_echo_n "(cached) " >&6
24703 else
24704 gcc_cv_as_cfi_personality_directive=no
24705 if test x$gcc_cv_as != x; then
24706 $as_echo ' .text
24707 .cfi_startproc
24708 .cfi_personality 0, symbol
24709 .cfi_endproc' > conftest.s
24710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24716 then
24717 gcc_cv_as_cfi_personality_directive=yes
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24726 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24730 cat >>confdefs.h <<_ACEOF
24731 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24732 _ACEOF
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24736 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24737 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24738 $as_echo_n "(cached) " >&6
24739 else
24740 gcc_cv_as_cfi_sections_directive=no
24741 if test x$gcc_cv_as != x; then
24742 $as_echo ' .text
24743 .cfi_sections .debug_frame, .eh_frame
24744 .cfi_startproc
24745 .cfi_endproc' > conftest.s
24746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24752 then
24753 case $target_os in
24754 win32 | pe | cygwin* | mingw32*)
24755 # Need to check that we generated the correct relocation for the
24756 # .debug_frame section. This was fixed for binutils 2.21.
24757 gcc_cv_as_cfi_sections_directive=no
24758 if test "x$gcc_cv_objdump" != x; then
24759 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24760 grep secrel > /dev/null; then
24761 gcc_cv_as_cfi_sections_directive=yes
24766 gcc_cv_as_cfi_sections_directive=yes
24768 esac
24769 else
24770 echo "configure: failed program was" >&5
24771 cat conftest.s >&5
24773 rm -f conftest.o conftest.s
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24777 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24782 cat >>confdefs.h <<_ACEOF
24783 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24784 _ACEOF
24787 # GAS versions up to and including 2.11.0 may mis-optimize
24788 # .eh_frame data.
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24790 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24791 if ${gcc_cv_as_eh_frame+:} false; then :
24792 $as_echo_n "(cached) " >&6
24793 else
24794 gcc_cv_as_eh_frame=no
24795 if test x$gcc_cv_as != x; then
24796 $as_echo ' .text
24797 .LFB1:
24798 .4byte 0
24799 .L1:
24800 .4byte 0
24801 .LFE1:
24802 .section .eh_frame,"aw",@progbits
24803 __FRAME_BEGIN__:
24804 .4byte .LECIE1-.LSCIE1
24805 .LSCIE1:
24806 .4byte 0x0
24807 .byte 0x1
24808 .ascii "z\0"
24809 .byte 0x1
24810 .byte 0x78
24811 .byte 0x1a
24812 .byte 0x0
24813 .byte 0x4
24814 .4byte 1
24815 .p2align 1
24816 .LECIE1:
24817 .LSFDE1:
24818 .4byte .LEFDE1-.LASFDE1
24819 .LASFDE1:
24820 .4byte .LASFDE1-__FRAME_BEGIN__
24821 .4byte .LFB1
24822 .4byte .LFE1-.LFB1
24823 .byte 0x4
24824 .4byte .LFE1-.LFB1
24825 .byte 0x4
24826 .4byte .L1-.LFB1
24827 .LEFDE1:' > conftest.s
24828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24831 ac_status=$?
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; }
24834 then
24835 cat > conftest.lit <<EOF
24836 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24837 0010 01000000 12000000 18000000 00000000 ................
24838 0020 08000000 04080000 0044 .........D
24840 cat > conftest.big <<EOF
24841 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24842 0010 00000001 00000012 00000018 00000000 ................
24843 0020 00000008 04000000 0844 .........D
24845 # If the assembler didn't choke, and we can objdump,
24846 # and we got the correct data, then succeed.
24847 # The text in the here-document typically retains its unix-style line
24848 # endings, while the output of objdump will use host line endings.
24849 # Therefore, use diff -b for the comparisons.
24850 if test x$gcc_cv_objdump != x \
24851 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24852 | tail -3 > conftest.got \
24853 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24854 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24855 then
24856 gcc_cv_as_eh_frame=yes
24857 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24859 (eval $ac_try) 2>&5
24860 ac_status=$?
24861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24862 test $ac_status = 0; }; }; then
24863 gcc_cv_as_eh_frame=buggy
24864 else
24865 # Uh oh, what do we do now?
24866 gcc_cv_as_eh_frame=no
24868 else
24869 echo "configure: failed program was" >&5
24870 cat conftest.s >&5
24872 rm -f conftest.o conftest.s
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24876 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24880 if test $gcc_cv_as_eh_frame = buggy; then
24882 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24886 # Test if the assembler supports the section flag 'e' or #exclude for
24887 # specifying an excluded section.
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24889 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24890 if ${gcc_cv_as_section_exclude_e+:} false; then :
24891 $as_echo_n "(cached) " >&6
24892 else
24893 gcc_cv_as_section_exclude_e=no
24894 if test x$gcc_cv_as != x; then
24895 $as_echo '.section foo1,"e"
24896 .byte 0,0,0,0' > conftest.s
24897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24900 ac_status=$?
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }
24903 then
24904 gcc_cv_as_section_exclude_e=yes
24905 else
24906 echo "configure: failed program was" >&5
24907 cat conftest.s >&5
24909 rm -f conftest.o conftest.s
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24913 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24916 if test $gcc_cv_as_section_exclude_e = no; then
24917 case "${target}" in
24918 # Solaris as uses #exclude instead.
24919 *-*-solaris2*)
24920 case "${target}" in
24921 sparc*-*-solaris2*)
24922 conftest_s='.section "foo1", #exclude'
24924 i?86-*-solaris2* | x86_64-*-solaris2*)
24925 conftest_s='.section foo1, #exclude'
24927 esac
24929 esac
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24931 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24932 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24933 $as_echo_n "(cached) " >&6
24934 else
24935 gcc_cv_as_section_exclude_hash=no
24936 if test x$gcc_cv_as != x; then
24937 $as_echo "$conftest_s
24938 .byte 0,0,0,0" > conftest.s
24939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; }
24945 then
24946 gcc_cv_as_section_exclude_hash=yes
24947 else
24948 echo "configure: failed program was" >&5
24949 cat conftest.s >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24955 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24960 cat >>confdefs.h <<_ACEOF
24961 #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`
24962 _ACEOF
24965 # Test if the assembler supports the section flag 'R' for specifying
24966 # section with SHF_GNU_RETAIN.
24967 case "${target}" in
24968 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24969 # assembler supports the section flag 'R', it doesn't mean that
24970 # Solairs ld supports it.
24971 *-*-solaris2*)
24972 gcc_cv_as_shf_gnu_retain=no
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24976 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24977 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24978 $as_echo_n "(cached) " >&6
24979 else
24980 gcc_cv_as_shf_gnu_retain=no
24981 if test x$gcc_cv_as != x; then
24982 $as_echo '.section .foo,"awR",%progbits
24983 .byte 0' > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24990 then
24991 gcc_cv_as_shf_gnu_retain=yes
24992 else
24993 echo "configure: failed program was" >&5
24994 cat conftest.s >&5
24996 rm -f conftest.o conftest.s
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25000 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25004 esac
25006 cat >>confdefs.h <<_ACEOF
25007 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25008 _ACEOF
25011 # Test if the assembler supports the section flag 'o' for specifying
25012 # section with link-order.
25013 case "${target}" in
25014 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25015 # assembler supports the section flag 'o', it doesn't mean that
25016 # Solairs ld supports it.
25017 *-*-solaris2*)
25018 gcc_cv_as_section_link_order=no
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25022 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25023 if ${gcc_cv_as_section_link_order+:} false; then :
25024 $as_echo_n "(cached) " >&6
25025 else
25026 gcc_cv_as_section_link_order=no
25027 if test x$gcc_cv_as != x; then
25028 $as_echo '.section .foo,"a"
25029 .byte 0
25030 .section __patchable_function_entries,"awo",%progbits,.foo
25031 .byte 0' > conftest.s
25032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; }; }
25038 then
25039 gcc_cv_as_section_link_order=yes
25040 else
25041 echo "configure: failed program was" >&5
25042 cat conftest.s >&5
25044 rm -f conftest.o conftest.s
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25048 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25052 esac
25054 cat >>confdefs.h <<_ACEOF
25055 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25056 _ACEOF
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25060 $as_echo_n "checking assembler for section merging support... " >&6; }
25061 if ${gcc_cv_as_shf_merge+:} false; then :
25062 $as_echo_n "(cached) " >&6
25063 else
25064 gcc_cv_as_shf_merge=no
25065 if test x$gcc_cv_as != x; then
25066 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; }
25073 then
25074 gcc_cv_as_shf_merge=yes
25075 else
25076 echo "configure: failed program was" >&5
25077 cat conftest.s >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25083 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25086 if test $gcc_cv_as_shf_merge = no; then
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25088 $as_echo_n "checking assembler for section merging support... " >&6; }
25089 if ${gcc_cv_as_shf_merge+:} false; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_shf_merge=no
25093 if test x$gcc_cv_as != x; then
25094 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100 test $ac_status = 0; }; }
25101 then
25102 gcc_cv_as_shf_merge=yes
25103 else
25104 echo "configure: failed program was" >&5
25105 cat conftest.s >&5
25107 rm -f conftest.o conftest.s
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25111 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25116 cat >>confdefs.h <<_ACEOF
25117 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25118 _ACEOF
25121 gcc_cv_ld_aligned_shf_merge=yes
25122 case "$target" in
25123 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25124 # alignment > 1.
25125 sparc*-*-solaris2.11*)
25126 if test x"$gnu_ld" = xno \
25127 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25128 gcc_cv_ld_aligned_shf_merge=no
25131 esac
25133 cat >>confdefs.h <<_ACEOF
25134 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25135 _ACEOF
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25139 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25140 if ${gcc_cv_as_comdat_group+:} false; then :
25141 $as_echo_n "(cached) " >&6
25142 else
25143 gcc_cv_as_comdat_group=no
25144 if test x$gcc_cv_as != x; then
25145 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25151 test $ac_status = 0; }; }
25152 then
25153 gcc_cv_as_comdat_group=yes
25154 else
25155 echo "configure: failed program was" >&5
25156 cat conftest.s >&5
25158 rm -f conftest.o conftest.s
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25162 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25165 if test $gcc_cv_as_comdat_group = yes; then
25166 gcc_cv_as_comdat_group_percent=no
25167 gcc_cv_as_comdat_group_group=no
25168 else
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25170 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25171 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25172 $as_echo_n "(cached) " >&6
25173 else
25174 gcc_cv_as_comdat_group_percent=no
25175 if test x$gcc_cv_as != x; then
25176 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_comdat_group_percent=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25193 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25196 if test $gcc_cv_as_comdat_group_percent = yes; then
25197 gcc_cv_as_comdat_group_group=no
25198 else
25199 case "${target}" in
25200 # Sun as uses a completely different syntax.
25201 *-*-solaris2*)
25202 case "${target}" in
25203 sparc*-*-solaris2*)
25204 conftest_s='
25205 .group foo,".text%foo",#comdat
25206 .section ".text%foo", #alloc,#execinstr,#progbits
25207 .globl foo
25208 foo:
25211 i?86-*-solaris2* | x86_64-*-solaris2*)
25212 conftest_s='
25213 .group foo,.text%foo,#comdat
25214 .section .text%foo, "ax", @progbits
25215 .globl foo
25216 foo:
25219 esac
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25221 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25222 if ${gcc_cv_as_comdat_group_group+:} false; then :
25223 $as_echo_n "(cached) " >&6
25224 else
25225 gcc_cv_as_comdat_group_group=no
25226 if test x$gcc_cv_as != x; then
25227 $as_echo "$conftest_s" > conftest.s
25228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233 test $ac_status = 0; }; }
25234 then
25235 gcc_cv_as_comdat_group_group=yes
25236 else
25237 echo "configure: failed program was" >&5
25238 cat conftest.s >&5
25240 rm -f conftest.o conftest.s
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25244 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25248 esac
25249 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25250 gcc_cv_as_comdat_group_group=no
25254 if test x"$ld_is_gold" = xyes; then
25255 comdat_group=yes
25256 elif test x"$ld_is_mold" = xyes; then
25257 comdat_group=yes
25258 elif test $in_tree_ld = yes ; then
25259 comdat_group=no
25260 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 \
25261 && test $in_tree_ld_is_elf = yes; then
25262 comdat_group=yes
25264 elif echo "$ld_ver" | grep GNU > /dev/null; then
25265 comdat_group=yes
25266 if test 0"$ld_date" -lt 20050308; then
25267 if test -n "$ld_date"; then
25268 # If there was date string, but was earlier than 2005-03-08, fail
25269 comdat_group=no
25270 elif test "$ld_vers_major" -lt 2; then
25271 comdat_group=no
25272 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25273 comdat_group=no
25276 else
25277 case "${target}" in
25278 *-*-solaris2.1[1-9]*)
25279 comdat_group=no
25280 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25281 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25282 # version 1.688.
25284 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25285 # least ld version 1.2267.
25286 if test "$ld_vers_major" -gt 1; then
25287 comdat_group=yes
25288 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25289 comdat_group=yes
25290 elif test "$ld_vers_minor" -ge 2267; then
25291 comdat_group=yes
25295 # Assume linkers other than GNU ld don't support COMDAT group.
25296 comdat_group=no
25298 esac
25300 # Allow overriding the automatic COMDAT group tests above.
25301 # Check whether --enable-comdat was given.
25302 if test "${enable_comdat+set}" = set; then :
25303 enableval=$enable_comdat; comdat_group="$enable_comdat"
25306 if test $comdat_group = no; then
25307 gcc_cv_as_comdat_group=no
25308 gcc_cv_as_comdat_group_percent=no
25309 gcc_cv_as_comdat_group_group=no
25312 cat >>confdefs.h <<_ACEOF
25313 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25314 || test $gcc_cv_as_comdat_group_percent = yes \
25315 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25316 _ACEOF
25319 # Restrict this test to Solaris/x86: other targets define this statically.
25320 case "${target}" in
25321 i?86-*-solaris2* | x86_64-*-solaris2*)
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25323 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25324 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25325 hidden_linkonce=yes
25326 else
25327 case "${target}" in
25328 # Full support for hidden thunks in linkonce sections only appeared in
25329 # Solaris 11/OpenSolaris.
25330 *-*-solaris2.1[1-9]*)
25331 hidden_linkonce=yes
25334 hidden_linkonce=no
25336 esac
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25339 $as_echo "$hidden_linkonce" >&6; }
25341 cat >>confdefs.h <<_ACEOF
25342 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25343 _ACEOF
25346 esac
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25349 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25350 if ${gcc_cv_as_is_stmt+:} false; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25353 gcc_cv_as_is_stmt=no
25354 if test x$gcc_cv_as != x; then
25355 $as_echo ' .text
25356 .file 1 "conf.c"
25357 .loc 1 1 0 is_stmt 1' > conftest.s
25358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25363 test $ac_status = 0; }; }
25364 then
25365 gcc_cv_as_is_stmt=yes
25366 else
25367 echo "configure: failed program was" >&5
25368 cat conftest.s >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25374 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25375 if test $gcc_cv_as_is_stmt = yes; then
25377 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25383 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25384 if ${gcc_cv_as_discriminator+:} false; then :
25385 $as_echo_n "(cached) " >&6
25386 else
25387 gcc_cv_as_discriminator=no
25388 if test x$gcc_cv_as != x; then
25389 $as_echo ' .text
25390 .file 1 "conf.c"
25391 .loc 1 1 0 discriminator 1' > conftest.s
25392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25397 test $ac_status = 0; }; }
25398 then
25399 gcc_cv_as_discriminator=yes
25400 else
25401 echo "configure: failed program was" >&5
25402 cat conftest.s >&5
25404 rm -f conftest.o conftest.s
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25408 $as_echo "$gcc_cv_as_discriminator" >&6; }
25409 if test $gcc_cv_as_discriminator = yes; then
25411 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25416 # Catch the newlib flag of the same name so we can gate GCC features on it.
25417 # Check whether --enable-newlib-nano-formatted-io was given.
25418 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25419 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25420 yes|no)
25423 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25425 esac
25429 # Thread-local storage - the check is heavily parameterized.
25430 conftest_s=
25431 tls_as_opt=
25432 case "$target" in
25433 alpha*-*-*)
25434 conftest_s='
25435 .section ".tdata","awT",@progbits
25436 foo: .long 25
25437 .text
25438 ldq $27,__tls_get_addr($29) !literal!1
25439 lda $16,foo($29) !tlsgd!1
25440 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25441 ldq $27,__tls_get_addr($29) !literal!2
25442 lda $16,foo($29) !tlsldm!2
25443 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25444 ldq $1,foo($29) !gotdtprel
25445 ldah $2,foo($29) !dtprelhi
25446 lda $3,foo($2) !dtprello
25447 lda $4,foo($29) !dtprel
25448 ldq $1,foo($29) !gottprel
25449 ldah $2,foo($29) !tprelhi
25450 lda $3,foo($2) !tprello
25451 lda $4,foo($29) !tprel'
25452 tls_as_opt=--fatal-warnings
25454 arc*-*-*)
25455 conftest_s='
25456 add_s r0,r0, @foo@tpoff'
25458 cris-*-*|crisv32-*-*)
25459 conftest_s='
25460 .section ".tdata","awT",@progbits
25461 x: .long 25
25462 .text
25463 move.d x:IE,$r10
25464 nop'
25465 tls_as_opt=--fatal-warnings
25467 frv*-*-*)
25468 conftest_s='
25469 .section ".tdata","awT",@progbits
25470 x: .long 25
25471 .text
25472 call #gettlsoff(x)'
25474 hppa*-*-linux*)
25475 conftest_s='
25476 t1: .reg %r20
25477 t2: .reg %r21
25478 gp: .reg %r19
25479 .section ".tdata","awT",@progbits
25480 foo: .long 25
25481 .text
25482 .align 4
25483 addil LT%foo-$tls_gdidx$,gp
25484 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25485 b __tls_get_addr
25487 addil LT%foo-$tls_ldidx$,gp
25488 b __tls_get_addr
25489 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25490 addil LR%foo-$tls_dtpoff$,%ret0
25491 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25492 mfctl %cr27,%t1
25493 addil LT%foo-$tls_ieoff$,gp
25494 ldw RT%foo-$tls_ieoff$(%r1),%t2
25495 add %t1,%t2,%t3
25496 mfctl %cr27,%t1
25497 addil LR%foo-$tls_leoff$,%t1
25498 ldo RR%foo-$tls_leoff$(%r1),%t2'
25499 tls_as_opt=--fatal-warnings
25501 arm*-*-*)
25502 conftest_s='
25503 .section ".tdata","awT",%progbits
25504 foo: .long 25
25505 .text
25506 .word foo(gottpoff)
25507 .word foo(tpoff)
25508 .word foo(tlsgd)
25509 .word foo(tlsldm)
25510 .word foo(tlsldo)'
25512 i[34567]86-*-* | x86_64-*-*)
25513 case "$target" in
25514 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25515 on_solaris=yes
25518 on_solaris=no
25520 esac
25521 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25522 conftest_s='
25523 .section .tdata,"awt",@progbits'
25524 tls_section_flag=t
25526 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25528 else
25529 conftest_s='
25530 .section ".tdata","awT",@progbits'
25531 tls_section_flag=T
25532 tls_as_opt="--fatal-warnings"
25534 case "$target" in
25535 i[34567]86-*-*)
25536 if test x$on_solaris = xyes; then
25537 case $gas_flag in
25538 yes) tls_as_opt="$tls_as_opt --32" ;;
25539 esac
25541 conftest_s="$conftest_s
25542 foo: .long 25
25543 .text
25544 movl %gs:0, %eax
25545 leal foo@tlsgd(,%ebx,1), %eax
25546 leal foo@tlsldm(%ebx), %eax
25547 leal foo@dtpoff(%eax), %edx
25548 movl foo@gottpoff(%ebx), %eax
25549 subl foo@gottpoff(%ebx), %eax
25550 addl foo@gotntpoff(%ebx), %eax
25551 movl foo@indntpoff, %eax
25552 movl \$foo@tpoff, %eax
25553 subl \$foo@tpoff, %eax
25554 leal foo@ntpoff(%ecx), %eax"
25556 x86_64-*-*)
25557 if test x$on_solaris = xyes; then
25558 case $gas_flag in
25559 yes) tls_as_opt="$tls_as_opt --64" ;;
25560 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25561 esac
25563 conftest_s="$conftest_s
25564 foo: .long 25
25565 .text
25566 movq %fs:0, %rax
25567 leaq foo@tlsgd(%rip), %rdi
25568 leaq foo@tlsld(%rip), %rdi
25569 leaq foo@dtpoff(%rax), %rdx
25570 movq foo@gottpoff(%rip), %rax
25571 movq \$foo@tpoff, %rax"
25573 esac
25575 ia64-*-*)
25576 conftest_s='
25577 .section ".tdata","awT",@progbits
25578 foo: data8 25
25579 .text
25580 addl r16 = @ltoff(@dtpmod(foo#)), gp
25581 addl r17 = @ltoff(@dtprel(foo#)), gp
25582 addl r18 = @ltoff(@tprel(foo#)), gp
25583 addl r19 = @dtprel(foo#), gp
25584 adds r21 = @dtprel(foo#), r13
25585 movl r23 = @dtprel(foo#)
25586 addl r20 = @tprel(foo#), gp
25587 adds r22 = @tprel(foo#), r13
25588 movl r24 = @tprel(foo#)'
25589 tls_as_opt=--fatal-warnings
25591 loongarch*-*-*)
25592 conftest_s='
25593 .section .tdata,"awT",@progbits
25594 x: .word 2
25595 .text
25596 la.tls.gd $a0,x
25597 bl __tls_get_addr'
25598 tls_first_major=0
25599 tls_first_minor=0
25600 tls_as_opt='--fatal-warnings'
25602 microblaze*-*-*)
25603 conftest_s='
25604 .section .tdata,"awT",@progbits
25606 .word 2
25607 .text
25608 addik r5,r20,x@TLSGD
25609 addik r5,r20,x@TLSLDM'
25610 tls_as_opt='--fatal-warnings'
25612 mips*-*-*)
25613 conftest_s='
25614 .section .tdata,"awT",@progbits
25616 .word 2
25617 .text
25618 addiu $4, $28, %tlsgd(x)
25619 addiu $4, $28, %tlsldm(x)
25620 lui $4, %dtprel_hi(x)
25621 addiu $4, $4, %dtprel_lo(x)
25622 lw $4, %gottprel(x)($28)
25623 lui $4, %tprel_hi(x)
25624 addiu $4, $4, %tprel_lo(x)'
25625 tls_as_opt='-32 --fatal-warnings'
25627 m68k-*-*)
25628 conftest_s='
25629 .section .tdata,"awT",@progbits
25631 .word 2
25632 .text
25633 foo:
25634 move.l x@TLSGD(%a5),%a0
25635 move.l x@TLSLDM(%a5),%a0
25636 move.l x@TLSLDO(%a5),%a0
25637 move.l x@TLSIE(%a5),%a0
25638 move.l x@TLSLE(%a5),%a0'
25639 tls_as_opt='--fatal-warnings'
25641 nios2-*-*)
25642 conftest_s='
25643 .section ".tdata","awT",@progbits'
25644 tls_as_opt="--fatal-warnings"
25646 aarch64*-*-*)
25647 conftest_s='
25648 .section ".tdata","awT",%progbits
25649 foo: .long 25
25650 .text
25651 adrp x0, :tlsgd:x
25652 add x0, x0, #:tlsgd_lo12:x
25653 bl __tls_get_addr
25654 nop'
25655 tls_as_opt='--fatal-warnings'
25657 or1k*-*-*)
25658 conftest_s='
25659 .section ".tdata","awT",@progbits
25660 foo: .long 25
25661 .text
25662 l.movhi r3, tpoffha(foo)
25663 l.add r3, r3, r10
25664 l.lwz r4, tpofflo(foo)(r3)'
25665 tls_as_opt=--fatal-warnings
25667 powerpc-ibm-aix*)
25668 conftest_s='
25669 .extern __get_tpointer
25670 .toc
25671 LC..1:
25672 .tc a[TC],a[TL]@le
25673 .csect .text[PR]
25674 .tlstest:
25675 lwz 9,LC..1(2)
25676 bla __get_tpointer
25677 lwzx 3,9,3
25678 .globl a
25679 .csect a[TL],4
25681 .space 4'
25683 powerpc64*-*-*)
25684 conftest_s='
25685 .section ".tdata","awT",@progbits
25686 .align 3
25687 ld0: .space 8
25688 ld1: .space 8
25689 x1: .space 8
25690 x2: .space 8
25691 x3: .space 8
25692 .text
25693 addi 3,2,ld0@got@tlsgd
25694 bl .__tls_get_addr
25696 addi 3,2,ld1@toc
25697 bl .__tls_get_addr
25699 addi 3,2,x1@got@tlsld
25700 bl .__tls_get_addr
25702 addi 9,3,x1@dtprel
25703 bl .__tls_get_addr
25705 addis 9,3,x2@dtprel@ha
25706 addi 9,9,x2@dtprel@l
25707 bl .__tls_get_addr
25709 ld 9,x3@got@dtprel(2)
25710 add 9,9,3
25711 bl .__tls_get_addr
25712 nop'
25713 tls_as_opt="-a64 --fatal-warnings"
25715 powerpc*-*-*)
25716 conftest_s='
25717 .section ".tdata","awT",@progbits
25718 .align 2
25719 ld0: .space 4
25720 ld1: .space 4
25721 x1: .space 4
25722 x2: .space 4
25723 x3: .space 4
25724 .text
25725 addi 3,31,ld0@got@tlsgd
25726 bl __tls_get_addr
25727 addi 3,31,x1@got@tlsld
25728 bl __tls_get_addr
25729 addi 9,3,x1@dtprel
25730 addis 9,3,x2@dtprel@ha
25731 addi 9,9,x2@dtprel@l
25732 lwz 9,x3@got@tprel(31)
25733 add 9,9,x@tls
25734 addi 9,2,x1@tprel
25735 addis 9,2,x2@tprel@ha
25736 addi 9,9,x2@tprel@l'
25737 tls_as_opt="-a32 --fatal-warnings"
25739 riscv*-*-*)
25740 conftest_s='
25741 .section .tdata,"awT",@progbits
25742 x: .word 2
25743 .text
25744 la.tls.gd a0,x
25745 call __tls_get_addr'
25746 tls_as_opt='--fatal-warnings'
25748 s390-*-*)
25749 conftest_s='
25750 .section ".tdata","awT",@progbits
25751 foo: .long 25
25752 .text
25753 .long foo@TLSGD
25754 .long foo@TLSLDM
25755 .long foo@DTPOFF
25756 .long foo@NTPOFF
25757 .long foo@GOTNTPOFF
25758 .long foo@INDNTPOFF
25759 l %r1,foo@GOTNTPOFF(%r12)
25760 l %r1,0(%r1):tls_load:foo
25761 bas %r14,0(%r1,%r13):tls_gdcall:foo
25762 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25763 tls_as_opt="-m31 --fatal-warnings"
25765 s390x-*-*)
25766 conftest_s='
25767 .section ".tdata","awT",@progbits
25768 foo: .long 25
25769 .text
25770 .quad foo@TLSGD
25771 .quad foo@TLSLDM
25772 .quad foo@DTPOFF
25773 .quad foo@NTPOFF
25774 .quad foo@GOTNTPOFF
25775 lg %r1,foo@GOTNTPOFF(%r12)
25776 larl %r1,foo@INDNTPOFF
25777 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25778 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25779 tls_as_opt="-m64 -Aesame --fatal-warnings"
25781 sh-*-* | sh[123456789lbe]*-*-*)
25782 conftest_s='
25783 .section ".tdata","awT",@progbits
25784 foo: .long 25
25785 .text
25786 .long foo@TLSGD
25787 .long foo@TLSLDM
25788 .long foo@DTPOFF
25789 .long foo@GOTTPOFF
25790 .long foo@TPOFF'
25791 tls_as_opt=--fatal-warnings
25793 sparc*-*-*)
25794 case "$target" in
25795 sparc*-sun-solaris2.*)
25796 on_solaris=yes
25799 on_solaris=no
25801 esac
25802 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25803 conftest_s='
25804 .section ".tdata",#alloc,#write,#tls'
25805 else
25806 conftest_s='
25807 .section ".tdata","awT",@progbits'
25808 tls_as_opt="-32 --fatal-warnings"
25810 conftest_s="$conftest_s
25811 foo: .long 25
25812 .text
25813 sethi %tgd_hi22(foo), %o0
25814 add %o0, %tgd_lo10(foo), %o1
25815 add %l7, %o1, %o0, %tgd_add(foo)
25816 call __tls_get_addr, %tgd_call(foo)
25817 sethi %tldm_hi22(foo), %l1
25818 add %l1, %tldm_lo10(foo), %l2
25819 add %l7, %l2, %o0, %tldm_add(foo)
25820 call __tls_get_addr, %tldm_call(foo)
25821 sethi %tldo_hix22(foo), %l3
25822 xor %l3, %tldo_lox10(foo), %l4
25823 add %o0, %l4, %l5, %tldo_add(foo)
25824 sethi %tie_hi22(foo), %o3
25825 add %o3, %tie_lo10(foo), %o3
25826 ld [%l7 + %o3], %o2, %tie_ld(foo)
25827 add %g7, %o2, %o4, %tie_add(foo)
25828 sethi %tle_hix22(foo), %l1
25829 xor %l1, %tle_lox10(foo), %o5
25830 ld [%g7 + %o5], %o1"
25832 xtensa*-*-*)
25833 conftest_s='
25834 .section ".tdata","awT",@progbits
25835 foo: .long 25
25836 .text
25837 movi a8, foo@TLSFUNC
25838 movi a10, foo@TLSARG
25839 callx8.tls a8, foo@TLSCALL'
25841 esac
25842 set_have_as_tls=no
25843 if test "x$enable_tls" = xno ; then
25844 : # TLS explicitly disabled.
25845 elif test "x$enable_tls" = xyes ; then
25846 set_have_as_tls=yes # TLS explicitly enabled.
25847 elif test -z "$conftest_s"; then
25848 : # If we don't have a check, assume no support.
25849 else
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25851 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25852 if ${gcc_cv_as_tls+:} false; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 gcc_cv_as_tls=no
25856 if test x$gcc_cv_as != x; then
25857 $as_echo "$conftest_s" > conftest.s
25858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25863 test $ac_status = 0; }; }
25864 then
25865 gcc_cv_as_tls=yes
25866 else
25867 echo "configure: failed program was" >&5
25868 cat conftest.s >&5
25870 rm -f conftest.o conftest.s
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25874 $as_echo "$gcc_cv_as_tls" >&6; }
25875 if test $gcc_cv_as_tls = yes; then
25876 set_have_as_tls=yes
25880 if test $set_have_as_tls = yes ; then
25882 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25886 # Target-specific assembler checks.
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25889 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25890 gcc_cv_ld_static_dynamic=no
25891 gcc_cv_ld_static_option='-Bstatic'
25892 gcc_cv_ld_dynamic_option='-Bdynamic'
25893 if test $in_tree_ld = yes ; then
25894 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
25895 gcc_cv_ld_static_dynamic=yes
25897 elif test x$gcc_cv_ld != x; then
25898 # Check if linker supports -Bstatic/-Bdynamic option
25899 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25900 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25901 gcc_cv_ld_static_dynamic=yes
25902 else
25903 case "$target" in
25904 # AIX ld uses -b flags
25905 *-*-aix4.[23]* | *-*-aix[5-9]*)
25906 gcc_cv_ld_static_dynamic=yes
25907 gcc_cv_ld_static_option="-bstatic"
25908 gcc_cv_ld_dynamic_option="-bdynamic"
25910 # HP-UX ld uses -a flags to select between shared and archive.
25911 *-*-hpux*)
25912 if test x"$gnu_ld" = xno; then
25913 gcc_cv_ld_static_dynamic=yes
25914 gcc_cv_ld_static_option="-aarchive_shared"
25915 gcc_cv_ld_dynamic_option="-adefault"
25918 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25919 *-*-solaris2*)
25920 gcc_cv_ld_static_dynamic=yes
25922 esac
25925 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25927 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25930 cat >>confdefs.h <<_ACEOF
25931 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25932 _ACEOF
25935 cat >>confdefs.h <<_ACEOF
25936 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25937 _ACEOF
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25941 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25944 $as_echo_n "checking linker --version-script option... " >&6; }
25945 gcc_cv_ld_version_script=no
25946 ld_version_script_option=''
25947 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25948 gcc_cv_ld_version_script=yes
25949 ld_version_script_option='--version-script'
25950 elif test x$gcc_cv_ld != x; then
25951 case "$target" in
25952 # Solaris 2 ld always supports -M. It also supports a subset of
25953 # --version-script since Solaris 11.4, but requires
25954 # -z gnu-version-script-compat to activate.
25955 *-*-solaris2*)
25956 gcc_cv_ld_version_script=yes
25957 ld_version_script_option='-M'
25959 esac
25961 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25963 $as_echo "$gcc_cv_ld_version_script" >&6; }
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25967 $as_echo_n "checking linker soname option... " >&6; }
25968 gcc_cv_ld_soname=no
25969 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25970 gcc_cv_ld_soname=yes
25971 ld_soname_option='-soname'
25972 elif test x$gcc_cv_ld != x; then
25973 case "$target" in
25974 *-*-darwin*)
25975 gcc_cv_ld_soname=yes
25976 ld_soname_option='-install_name'
25978 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25979 # ld compatiblity since some Solaris 10 update.
25980 *-*-solaris2*)
25981 gcc_cv_ld_soname=yes
25982 ld_soname_option='-h'
25984 esac
25986 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25988 $as_echo "$gcc_cv_ld_soname" >&6; }
25991 if test x"$demangler_in_ld" = xyes; then
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25993 $as_echo_n "checking linker --demangle support... " >&6; }
25994 gcc_cv_ld_demangle=no
25995 if test $in_tree_ld = yes; then
25996 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 \
25997 gcc_cv_ld_demangle=yes
25999 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26000 # Check if the GNU linker supports --demangle option
26001 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26002 gcc_cv_ld_demangle=yes
26005 if test x"$gcc_cv_ld_demangle" = xyes; then
26007 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26011 $as_echo "$gcc_cv_ld_demangle" >&6; }
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26015 $as_echo_n "checking linker plugin support... " >&6; }
26016 gcc_cv_lto_plugin=0
26017 if test -f liblto_plugin.la; then
26018 save_ld_ver="$ld_ver"
26019 save_ld_vers_major="$ld_vers_major"
26020 save_ld_vers_minor="$ld_vers_minor"
26021 save_ld_is_gold="$ld_is_gold"
26023 ld_is_gold=no
26025 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26026 ld_ver="GNU ld"
26027 # FIXME: ld_is_gold?
26028 ld_vers_major="$gcc_cv_gld_major_version"
26029 ld_vers_minor="$gcc_cv_gld_minor_version"
26030 else
26031 # Determine plugin linker version.
26032 # FIXME: Partial duplicate from above, generalize.
26033 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26034 if echo "$ld_ver" | grep GNU > /dev/null; then
26035 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26036 ld_is_gold=yes
26037 ld_vers=`echo $ld_ver | sed -n \
26038 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26039 else
26040 ld_vers=`echo $ld_ver | sed -n \
26041 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26043 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26044 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26048 # Determine plugin support.
26049 if echo "$ld_ver" | grep GNU > /dev/null; then
26050 # Require GNU ld or gold 2.21+ for plugin support by default.
26051 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26052 gcc_cv_lto_plugin=2
26053 elif test "$ld_is_mold" = yes; then
26054 gcc_cv_lto_plugin=2
26055 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26056 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26057 gcc_cv_lto_plugin=1
26061 ld_ver="$save_ld_ver"
26062 ld_vers_major="$save_ld_vers_major"
26063 ld_vers_minor="$save_ld_vers_minor"
26064 ld_is_gold="$save_ld_is_gold"
26067 cat >>confdefs.h <<_ACEOF
26068 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26069 _ACEOF
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26072 $as_echo "$gcc_cv_lto_plugin" >&6; }
26074 # Target OS-specific assembler checks.
26076 case "$target_os" in
26077 darwin*)
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26079 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26080 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26081 $as_echo_n "(cached) " >&6
26082 else
26083 gcc_cv_as_mmacosx_version_min=no
26084 if test x$gcc_cv_as != x; then
26085 $as_echo '.text' > conftest.s
26086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26091 test $ac_status = 0; }; }
26092 then
26093 gcc_cv_as_mmacosx_version_min=yes
26094 else
26095 echo "configure: failed program was" >&5
26096 cat conftest.s >&5
26098 rm -f conftest.o conftest.s
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26102 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26103 if test $gcc_cv_as_mmacosx_version_min = yes; then
26105 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26110 esac
26112 # Target CPU-specific assembler checks.
26114 case "$target" in
26115 aarch64*-*-*)
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26117 $as_echo_n "checking assembler for -mabi option... " >&6; }
26118 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26119 $as_echo_n "(cached) " >&6
26120 else
26121 gcc_cv_as_aarch64_mabi=no
26122 if test x$gcc_cv_as != x; then
26123 $as_echo '.text' > conftest.s
26124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126 (eval $ac_try) 2>&5
26127 ac_status=$?
26128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129 test $ac_status = 0; }; }
26130 then
26131 gcc_cv_as_aarch64_mabi=yes
26132 else
26133 echo "configure: failed program was" >&5
26134 cat conftest.s >&5
26136 rm -f conftest.o conftest.s
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26140 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26143 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26145 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26147 else
26148 if test x$with_abi = xilp32; then
26149 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26150 Upgrade the Assembler." "$LINENO" 5
26152 if test x"$with_multilib_list" = xdefault; then
26153 TM_MULTILIB_CONFIG=lp64
26154 else
26155 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26156 for aarch64_multilib in ${aarch64_multilibs}; do
26157 case ${aarch64_multilib} in
26158 ilp32)
26159 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26160 Upgrade the Assembler." "$LINENO" 5
26164 esac
26165 done
26168 # Check if we have binutils support for relocations types needed by -fpic
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26170 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26171 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26172 $as_echo_n "(cached) " >&6
26173 else
26174 gcc_cv_as_aarch64_picreloc=no
26175 if test x$gcc_cv_as != x; then
26176 $as_echo '
26177 .text
26178 ldr x0, [x2, #:gotpage_lo15:globalsym]
26179 ' > conftest.s
26180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26183 ac_status=$?
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; }
26186 then
26187 gcc_cv_as_aarch64_picreloc=yes
26188 else
26189 echo "configure: failed program was" >&5
26190 cat conftest.s >&5
26192 rm -f conftest.o conftest.s
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26196 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26197 if test $gcc_cv_as_aarch64_picreloc = yes; then
26199 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26203 # Enable Branch Target Identification Mechanism and Return Address
26204 # Signing by default.
26205 # Check whether --enable-standard-branch-protection was given.
26206 if test "${enable_standard_branch_protection+set}" = set; then :
26207 enableval=$enable_standard_branch_protection;
26208 case $enableval in
26209 yes)
26210 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26215 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26216 Valid choices are 'yes' and 'no'." "$LINENO" 5
26218 esac
26222 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26223 # Check whether --enable-fix-cortex-a53-835769 was given.
26224 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26225 enableval=$enable_fix_cortex_a53_835769;
26226 case $enableval in
26227 yes)
26228 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26233 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26234 Valid choices are 'yes' and 'no'." "$LINENO" 5
26237 esac
26241 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26242 # Check whether --enable-fix-cortex-a53-843419 was given.
26243 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26244 enableval=$enable_fix_cortex_a53_843419;
26245 case $enableval in
26246 yes)
26247 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26252 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26253 Valid choices are 'yes' and 'no'." "$LINENO" 5
26256 esac
26262 # All TARGET_ABI_OSF targets.
26263 alpha*-*-linux* | alpha*-*-*bsd*)
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26265 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26266 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26267 $as_echo_n "(cached) " >&6
26268 else
26269 gcc_cv_as_alpha_explicit_relocs=no
26270 if test x$gcc_cv_as != x; then
26271 $as_echo ' .set nomacro
26272 .text
26273 extbl $3, $2, $3 !lituse_bytoff!1
26274 ldq $2, a($29) !literal!1
26275 ldq $4, b($29) !literal!2
26276 ldq_u $3, 0($2) !lituse_base!1
26277 ldq $27, f($29) !literal!5
26278 jsr $26, ($27), f !lituse_jsr!5
26279 ldah $29, 0($26) !gpdisp!3
26280 lda $0, c($29) !gprel
26281 ldah $1, d($29) !gprelhigh
26282 lda $1, d($1) !gprellow
26283 lda $29, 0($29) !gpdisp!3' > conftest.s
26284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26289 test $ac_status = 0; }; }
26290 then
26291 gcc_cv_as_alpha_explicit_relocs=yes
26292 else
26293 echo "configure: failed program was" >&5
26294 cat conftest.s >&5
26296 rm -f conftest.o conftest.s
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26300 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26301 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26303 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26308 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26309 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26310 $as_echo_n "(cached) " >&6
26311 else
26312 gcc_cv_as_alpha_jsrdirect_relocs=no
26313 if test x$gcc_cv_as != x; then
26314 $as_echo ' .set nomacro
26315 .text
26316 ldq $27, a($29) !literal!1
26317 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }
26324 then
26325 gcc_cv_as_alpha_jsrdirect_relocs=yes
26326 else
26327 echo "configure: failed program was" >&5
26328 cat conftest.s >&5
26330 rm -f conftest.o conftest.s
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26334 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26335 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26337 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26343 avr-*-*)
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26345 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26346 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26349 gcc_cv_as_avr_mlink_relax=no
26350 if test x$gcc_cv_as != x; then
26351 $as_echo '.text' > conftest.s
26352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357 test $ac_status = 0; }; }
26358 then
26359 gcc_cv_as_avr_mlink_relax=yes
26360 else
26361 echo "configure: failed program was" >&5
26362 cat conftest.s >&5
26364 rm -f conftest.o conftest.s
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26368 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26369 if test $gcc_cv_as_avr_mlink_relax = yes; then
26371 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26377 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26378 if ${gcc_cv_as_avr_mrmw+:} false; then :
26379 $as_echo_n "(cached) " >&6
26380 else
26381 gcc_cv_as_avr_mrmw=no
26382 if test x$gcc_cv_as != x; then
26383 $as_echo '.text' > conftest.s
26384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26389 test $ac_status = 0; }; }
26390 then
26391 gcc_cv_as_avr_mrmw=yes
26392 else
26393 echo "configure: failed program was" >&5
26394 cat conftest.s >&5
26396 rm -f conftest.o conftest.s
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26400 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26401 if test $gcc_cv_as_avr_mrmw = yes; then
26403 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26409 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26410 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26411 $as_echo_n "(cached) " >&6
26412 else
26413 gcc_cv_as_avr_mgccisr=no
26414 if test x$gcc_cv_as != x; then
26415 $as_echo '.text
26416 __gcc_isr 1
26417 __gcc_isr 2
26418 __gcc_isr 0,r24
26419 ' > conftest.s
26420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425 test $ac_status = 0; }; }
26426 then
26427 gcc_cv_as_avr_mgccisr=yes
26428 else
26429 echo "configure: failed program was" >&5
26430 cat conftest.s >&5
26432 rm -f conftest.o conftest.s
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26436 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26437 if test $gcc_cv_as_avr_mgccisr = yes; then
26439 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26444 # Check how default linker description file implements .rodata for
26445 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26446 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26448 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26449 cat > conftest.s <<EOF
26450 .section .rodata,"a",@progbits
26451 .global xxvaryy
26452 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26453 xxvaryy:
26454 .word 1
26456 rm -f conftest.nm
26457 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26459 (eval $ac_try) 2>&5
26460 ac_status=$?
26461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26462 test $ac_status = 0; }; }
26463 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26465 (eval $ac_try) 2>&5
26466 ac_status=$?
26467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26468 test $ac_status = 0; }; }
26469 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26475 if test -s conftest.nm
26476 then
26477 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26479 $as_echo "yes" >&6; }
26481 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26483 else
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26485 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26486 echo "$as_me: nm output was" >&5
26487 cat conftest.nm >&5
26488 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26489 { $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
26490 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26492 else
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26494 $as_echo "test failed" >&6; }
26495 echo "$as_me: failed program was" >&5
26496 cat conftest.s >&5
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26498 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26500 rm -f conftest.s conftest.o conftest.elf conftest.nm
26503 cris-*-*)
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26505 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26506 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26507 $as_echo_n "(cached) " >&6
26508 else
26509 gcc_cv_as_cris_no_mul_bug=no
26510 if test x$gcc_cv_as != x; then
26511 $as_echo '.text' > conftest.s
26512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26517 test $ac_status = 0; }; }
26518 then
26519 gcc_cv_as_cris_no_mul_bug=yes
26520 else
26521 echo "configure: failed program was" >&5
26522 cat conftest.s >&5
26524 rm -f conftest.o conftest.s
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26528 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26529 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26531 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26537 sparc*-*-*)
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26539 $as_echo_n "checking assembler for -relax option... " >&6; }
26540 if ${gcc_cv_as_sparc_relax+:} false; then :
26541 $as_echo_n "(cached) " >&6
26542 else
26543 gcc_cv_as_sparc_relax=no
26544 if test x$gcc_cv_as != x; then
26545 $as_echo '.text' > conftest.s
26546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26551 test $ac_status = 0; }; }
26552 then
26553 gcc_cv_as_sparc_relax=yes
26554 else
26555 echo "configure: failed program was" >&5
26556 cat conftest.s >&5
26558 rm -f conftest.o conftest.s
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26562 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26563 if test $gcc_cv_as_sparc_relax = yes; then
26565 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26571 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26572 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26573 $as_echo_n "(cached) " >&6
26574 else
26575 gcc_cv_as_sparc_gotdata_op=no
26576 if test x$gcc_cv_as != x; then
26577 $as_echo '.text
26578 .align 4
26579 foo:
26581 bar:
26582 sethi %gdop_hix22(foo), %g1
26583 xor %g1, %gdop_lox10(foo), %g1
26584 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26590 test $ac_status = 0; }; }
26591 then
26592 if test x$gcc_cv_ld != x \
26593 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26594 if test x$gcc_cv_objdump != x; then
26595 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26596 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26597 gcc_cv_as_sparc_gotdata_op=no
26598 else
26599 gcc_cv_as_sparc_gotdata_op=yes
26603 rm -f conftest
26604 else
26605 echo "configure: failed program was" >&5
26606 cat conftest.s >&5
26608 rm -f conftest.o conftest.s
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26612 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26613 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26615 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26621 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26622 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26623 $as_echo_n "(cached) " >&6
26624 else
26625 gcc_cv_as_sparc_ua_pcrel=no
26626 if test x$gcc_cv_as != x; then
26627 $as_echo '.text
26628 foo:
26630 .data
26631 .align 4
26632 .byte 0
26633 .uaword %r_disp32(foo)' > conftest.s
26634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26639 test $ac_status = 0; }; }
26640 then
26641 if test x$gcc_cv_ld != x \
26642 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26643 gcc_cv_as_sparc_ua_pcrel=yes
26645 rm -f conftest
26646 else
26647 echo "configure: failed program was" >&5
26648 cat conftest.s >&5
26650 rm -f conftest.o conftest.s
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26654 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26655 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26657 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26661 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26662 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26663 $as_echo_n "(cached) " >&6
26664 else
26665 gcc_cv_as_sparc_ua_pcrel_hidden=no
26666 if test x$gcc_cv_as != x; then
26667 $as_echo '.data
26668 .align 4
26669 .byte 0x31
26670 .uaword %r_disp32(foo)
26671 .byte 0x32, 0x33, 0x34
26672 .global foo
26673 .hidden foo
26674 foo:
26675 .skip 4' > conftest.s
26676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26681 test $ac_status = 0; }; }
26682 then
26683 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26684 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26685 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26686 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26687 if $gcc_cv_objdump -R conftest 2> /dev/null \
26688 | grep 'DISP32' > /dev/null 2>&1; then
26690 else
26691 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26694 rm -f conftest
26695 else
26696 echo "configure: failed program was" >&5
26697 cat conftest.s >&5
26699 rm -f conftest.o conftest.s
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26703 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26704 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26706 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26712 # unaligned pcrel relocs
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26715 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26716 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26717 $as_echo_n "(cached) " >&6
26718 else
26719 gcc_cv_as_sparc_offsetable_lo10=no
26720 if test x$gcc_cv_as != x; then
26721 $as_echo '.text
26722 or %g1, %lo(ab) + 12, %g1
26723 or %g1, %lo(ab + 12), %g1' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 if test x$gcc_cv_objdump != x \
26732 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26733 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26734 gcc_cv_as_sparc_offsetable_lo10=yes
26736 else
26737 echo "configure: failed program was" >&5
26738 cat conftest.s >&5
26740 rm -f conftest.o conftest.s
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26744 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26745 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26747 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26753 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26754 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26755 $as_echo_n "(cached) " >&6
26756 else
26757 gcc_cv_as_sparc_fmaf=no
26758 if test x$gcc_cv_as != x; then
26759 $as_echo '.text
26760 .register %g2, #scratch
26761 .register %g3, #scratch
26762 .align 4
26763 fmaddd %f0, %f2, %f4, %f6
26764 addxccc %g1, %g2, %g3
26765 fsrl32 %f2, %f4, %f8
26766 fnaddd %f10, %f12, %f14' > conftest.s
26767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26773 then
26774 gcc_cv_as_sparc_fmaf=yes
26775 else
26776 echo "configure: failed program was" >&5
26777 cat conftest.s >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26783 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26784 if test $gcc_cv_as_sparc_fmaf = yes; then
26786 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26792 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26793 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26794 $as_echo_n "(cached) " >&6
26795 else
26796 gcc_cv_as_sparc_sparc4=no
26797 if test x$gcc_cv_as != x; then
26798 $as_echo '.text
26799 .register %g2, #scratch
26800 .register %g3, #scratch
26801 .align 4
26802 cxbe %g2, %g3, 1f
26803 1: cwbneg %g2, %g3, 1f
26804 1: sha1
26806 aes_kexpand0 %f4, %f6, %f8
26807 des_round %f38, %f40, %f42, %f44
26808 camellia_f %f54, %f56, %f58, %f60
26809 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26812 (eval $ac_try) 2>&5
26813 ac_status=$?
26814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26815 test $ac_status = 0; }; }
26816 then
26817 gcc_cv_as_sparc_sparc4=yes
26818 else
26819 echo "configure: failed program was" >&5
26820 cat conftest.s >&5
26822 rm -f conftest.o conftest.s
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26826 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26827 if test $gcc_cv_as_sparc_sparc4 = yes; then
26829 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26835 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26836 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26837 $as_echo_n "(cached) " >&6
26838 else
26839 gcc_cv_as_sparc_sparc5=no
26840 if test x$gcc_cv_as != x; then
26841 $as_echo '.text
26842 .register %g2, #scratch
26843 .register %g3, #scratch
26844 .align 4
26845 subxc %g1, %g2, %g3
26846 fpadd8 %f0, %f2, %f4' > conftest.s
26847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26849 (eval $ac_try) 2>&5
26850 ac_status=$?
26851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26852 test $ac_status = 0; }; }
26853 then
26854 gcc_cv_as_sparc_sparc5=yes
26855 else
26856 echo "configure: failed program was" >&5
26857 cat conftest.s >&5
26859 rm -f conftest.o conftest.s
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26863 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26864 if test $gcc_cv_as_sparc_sparc5 = yes; then
26866 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26872 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26873 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26874 $as_echo_n "(cached) " >&6
26875 else
26876 gcc_cv_as_sparc_sparc6=no
26877 if test x$gcc_cv_as != x; then
26878 $as_echo '.text
26879 .register %g2, #scratch
26880 .register %g3, #scratch
26881 .align 4
26882 rd %entropy, %g1
26883 fpsll64x %f0, %f2, %f4' > conftest.s
26884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }
26890 then
26891 gcc_cv_as_sparc_sparc6=yes
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26900 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26901 if test $gcc_cv_as_sparc_sparc6 = yes; then
26903 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26909 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26910 if ${gcc_cv_as_sparc_leon+:} false; then :
26911 $as_echo_n "(cached) " >&6
26912 else
26913 gcc_cv_as_sparc_leon=no
26914 if test x$gcc_cv_as != x; then
26915 $as_echo '.text
26916 .register %g2, #scratch
26917 .register %g3, #scratch
26918 .align 4
26919 smac %g2, %g3, %g1
26920 umac %g2, %g3, %g1
26921 casa [%g2] 0xb, %g3, %g1' > conftest.s
26922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -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_leon=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_leon" >&5
26938 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26939 if test $gcc_cv_as_sparc_leon = yes; then
26941 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26947 i[34567]86-*-* | x86_64-*-*)
26948 case $target_os in
26949 cygwin*)
26950 # Full C++ conformance when using a shared libstdc++-v3 requires some
26951 # support from the Cygwin DLL, which in more recent versions exports
26952 # wrappers to aid in interposing and redirecting operators new, delete,
26953 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26954 # are configuring for a version of Cygwin that exports the wrappers.
26955 if test x$host = x$target && test x$host_cpu = xi686; then
26956 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26957 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26958 gcc_ac_cygwin_dll_wrappers=yes
26959 else
26960 gcc_ac_cygwin_dll_wrappers=no
26963 else
26964 # Can't check presence of libc functions during cross-compile, so
26965 # we just have to assume we're building for an up-to-date target.
26966 gcc_ac_cygwin_dll_wrappers=yes
26969 cat >>confdefs.h <<_ACEOF
26970 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26971 _ACEOF
26973 esac
26974 case $target_os in
26975 cygwin* | pe | mingw32*)
26976 # Recent binutils allows the three-operand form of ".comm" on PE. This
26977 # definition is used unconditionally to initialise the default state of
26978 # the target option variable that governs usage of the feature.
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26980 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26981 if ${gcc_cv_as_comm_has_align+:} false; then :
26982 $as_echo_n "(cached) " >&6
26983 else
26984 gcc_cv_as_comm_has_align=no
26985 if test x$gcc_cv_as != x; then
26986 $as_echo '.comm foo,1,32' > conftest.s
26987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26992 test $ac_status = 0; }; }
26993 then
26994 gcc_cv_as_comm_has_align=yes
26995 else
26996 echo "configure: failed program was" >&5
26997 cat conftest.s >&5
26999 rm -f conftest.o conftest.s
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27003 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27007 cat >>confdefs.h <<_ACEOF
27008 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27009 _ACEOF
27011 # Used for DWARF 2 in PE
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27013 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27014 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_ix86_pe_secrel32=no
27018 if test x$gcc_cv_as != x; then
27019 $as_echo '.text
27020 foo: nop
27021 .data
27022 .secrel32 foo' > conftest.s
27023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27028 test $ac_status = 0; }; }
27029 then
27030 if test x$gcc_cv_ld != x \
27031 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27032 gcc_cv_as_ix86_pe_secrel32=yes
27034 rm -f conftest
27035 else
27036 echo "configure: failed program was" >&5
27037 cat conftest.s >&5
27039 rm -f conftest.o conftest.s
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27043 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27044 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27046 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27050 # Test if the assembler supports the extended form of the .section
27051 # directive that specifies section alignment. LTO support uses this,
27052 # but normally only after installation, so we warn but don't fail the
27053 # configure if LTO is enabled but the assembler does not support it.
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27055 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27056 if ${gcc_cv_as_section_has_align+:} false; then :
27057 $as_echo_n "(cached) " >&6
27058 else
27059 gcc_cv_as_section_has_align=no
27060 if test x$gcc_cv_as != x; then
27061 $as_echo '.section lto_test,"dr0"' > conftest.s
27062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; }
27068 then
27069 gcc_cv_as_section_has_align=yes
27070 else
27071 echo "configure: failed program was" >&5
27072 cat conftest.s >&5
27074 rm -f conftest.o conftest.s
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27078 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27081 if test x$gcc_cv_as_section_has_align != xyes; then
27082 case ",$enable_languages," in
27083 *,lto,*)
27084 { $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
27085 $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;}
27087 esac
27090 esac
27091 case $target_os in
27092 darwin2* | darwin19*)
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27094 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27095 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27096 $as_echo_n "(cached) " >&6
27097 else
27098 gcc_cv_as_mllvm_x86_pad_for_align=no
27099 if test x$gcc_cv_as != x; then
27100 $as_echo '.text' > conftest.s
27101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27103 (eval $ac_try) 2>&5
27104 ac_status=$?
27105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27106 test $ac_status = 0; }; }
27107 then
27108 gcc_cv_as_mllvm_x86_pad_for_align=yes
27109 else
27110 echo "configure: failed program was" >&5
27111 cat conftest.s >&5
27113 rm -f conftest.o conftest.s
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27117 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27118 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27120 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27125 esac
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27128 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27129 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27130 $as_echo_n "(cached) " >&6
27131 else
27132 gcc_cv_as_ix86_xbrace_comment=no
27133 if test x$gcc_cv_as != x; then
27134 $as_echo '.text' > conftest.s
27135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -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 gcc_cv_as_ix86_xbrace_comment=yes
27143 else
27144 echo "configure: failed program was" >&5
27145 cat conftest.s >&5
27147 rm -f conftest.o conftest.s
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27151 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27152 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27154 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27160 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27161 if ${gcc_cv_as_ix86_filds+:} false; then :
27162 $as_echo_n "(cached) " >&6
27163 else
27164 gcc_cv_as_ix86_filds=no
27165 if test x$gcc_cv_as != x; then
27166 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27169 (eval $ac_try) 2>&5
27170 ac_status=$?
27171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27172 test $ac_status = 0; }; }
27173 then
27174 gcc_cv_as_ix86_filds=yes
27175 else
27176 echo "configure: failed program was" >&5
27177 cat conftest.s >&5
27179 rm -f conftest.o conftest.s
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27183 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27184 if test $gcc_cv_as_ix86_filds = yes; then
27186 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27192 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27193 if ${gcc_cv_as_ix86_fildq+:} false; then :
27194 $as_echo_n "(cached) " >&6
27195 else
27196 gcc_cv_as_ix86_fildq=no
27197 if test x$gcc_cv_as != x; then
27198 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27204 test $ac_status = 0; }; }
27205 then
27206 gcc_cv_as_ix86_fildq=yes
27207 else
27208 echo "configure: failed program was" >&5
27209 cat conftest.s >&5
27211 rm -f conftest.o conftest.s
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27215 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27216 if test $gcc_cv_as_ix86_fildq = yes; then
27218 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27224 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27225 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27226 $as_echo_n "(cached) " >&6
27227 else
27228 gcc_cv_as_ix86_cmov_sun_syntax=no
27229 if test x$gcc_cv_as != x; then
27230 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27233 (eval $ac_try) 2>&5
27234 ac_status=$?
27235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27236 test $ac_status = 0; }; }
27237 then
27238 gcc_cv_as_ix86_cmov_sun_syntax=yes
27239 else
27240 echo "configure: failed program was" >&5
27241 cat conftest.s >&5
27243 rm -f conftest.o conftest.s
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27247 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27248 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27250 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27256 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27257 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27258 $as_echo_n "(cached) " >&6
27259 else
27260 gcc_cv_as_ix86_ffreep=no
27261 if test x$gcc_cv_as != x; then
27262 $as_echo 'ffreep %st(1)' > conftest.s
27263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27265 (eval $ac_try) 2>&5
27266 ac_status=$?
27267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27268 test $ac_status = 0; }; }
27269 then
27270 gcc_cv_as_ix86_ffreep=yes
27271 else
27272 echo "configure: failed program was" >&5
27273 cat conftest.s >&5
27275 rm -f conftest.o conftest.s
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27279 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27280 if test $gcc_cv_as_ix86_ffreep = yes; then
27282 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27288 $as_echo_n "checking assembler for .quad directive... " >&6; }
27289 if ${gcc_cv_as_ix86_quad+:} false; then :
27290 $as_echo_n "(cached) " >&6
27291 else
27292 gcc_cv_as_ix86_quad=no
27293 if test x$gcc_cv_as != x; then
27294 $as_echo '.quad 0' > conftest.s
27295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27297 (eval $ac_try) 2>&5
27298 ac_status=$?
27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27300 test $ac_status = 0; }; }
27301 then
27302 gcc_cv_as_ix86_quad=yes
27303 else
27304 echo "configure: failed program was" >&5
27305 cat conftest.s >&5
27307 rm -f conftest.o conftest.s
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27311 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27312 if test $gcc_cv_as_ix86_quad = yes; then
27314 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27320 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27321 if ${gcc_cv_as_ix86_sahf+:} false; then :
27322 $as_echo_n "(cached) " >&6
27323 else
27324 gcc_cv_as_ix86_sahf=no
27325 if test x$gcc_cv_as != x; then
27326 $as_echo '.code64
27327 sahf' > conftest.s
27328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27330 (eval $ac_try) 2>&5
27331 ac_status=$?
27332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27333 test $ac_status = 0; }; }
27334 then
27335 gcc_cv_as_ix86_sahf=yes
27336 else
27337 echo "configure: failed program was" >&5
27338 cat conftest.s >&5
27340 rm -f conftest.o conftest.s
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27344 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27345 if test $gcc_cv_as_ix86_sahf = yes; then
27347 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27353 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27354 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27355 $as_echo_n "(cached) " >&6
27356 else
27357 gcc_cv_as_ix86_interunit_movq=no
27358 if test x$gcc_cv_as != x; then
27359 $as_echo '.code64
27360 movq %mm0, %rax
27361 movq %rax, %xmm0' > conftest.s
27362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27364 (eval $ac_try) 2>&5
27365 ac_status=$?
27366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27367 test $ac_status = 0; }; }
27368 then
27369 gcc_cv_as_ix86_interunit_movq=yes
27370 else
27371 echo "configure: failed program was" >&5
27372 cat conftest.s >&5
27374 rm -f conftest.o conftest.s
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27378 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27382 cat >>confdefs.h <<_ACEOF
27383 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27384 _ACEOF
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27388 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27389 if ${gcc_cv_as_ix86_hle+:} false; then :
27390 $as_echo_n "(cached) " >&6
27391 else
27392 gcc_cv_as_ix86_hle=no
27393 if test x$gcc_cv_as != x; then
27394 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27401 then
27402 gcc_cv_as_ix86_hle=yes
27403 else
27404 echo "configure: failed program was" >&5
27405 cat conftest.s >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27411 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27412 if test $gcc_cv_as_ix86_hle = yes; then
27414 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27420 $as_echo_n "checking assembler for swap suffix... " >&6; }
27421 if ${gcc_cv_as_ix86_swap+:} false; then :
27422 $as_echo_n "(cached) " >&6
27423 else
27424 gcc_cv_as_ix86_swap=no
27425 if test x$gcc_cv_as != x; then
27426 $as_echo 'movl.s %esp, %ebp' > conftest.s
27427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27429 (eval $ac_try) 2>&5
27430 ac_status=$?
27431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27432 test $ac_status = 0; }; }
27433 then
27434 gcc_cv_as_ix86_swap=yes
27435 else
27436 echo "configure: failed program was" >&5
27437 cat conftest.s >&5
27439 rm -f conftest.o conftest.s
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27443 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27444 if test $gcc_cv_as_ix86_swap = yes; then
27446 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27452 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27453 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27454 $as_echo_n "(cached) " >&6
27455 else
27456 gcc_cv_as_ix86_diff_sect_delta=no
27457 if test x$gcc_cv_as != x; then
27458 $as_echo '.section .rodata
27459 .L1:
27460 .long .L2-.L1
27461 .long .L3-.L1
27462 .text
27463 .L3: nop
27464 .L2: nop' > conftest.s
27465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27470 test $ac_status = 0; }; }
27471 then
27472 gcc_cv_as_ix86_diff_sect_delta=yes
27473 else
27474 echo "configure: failed program was" >&5
27475 cat conftest.s >&5
27477 rm -f conftest.o conftest.s
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27481 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27482 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27484 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27490 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27491 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27492 $as_echo_n "(cached) " >&6
27493 else
27494 gcc_cv_as_ix86_rep_lock_prefix=no
27495 if test x$gcc_cv_as != x; then
27496 $as_echo 'rep movsl
27497 rep ret
27498 rep nop
27499 rep bsf %ecx, %eax
27500 rep bsr %ecx, %eax
27501 lock addl %edi, (%eax,%esi)
27502 lock orl $0, (%esp)' > conftest.s
27503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27505 (eval $ac_try) 2>&5
27506 ac_status=$?
27507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27508 test $ac_status = 0; }; }
27509 then
27510 gcc_cv_as_ix86_rep_lock_prefix=yes
27511 else
27512 echo "configure: failed program was" >&5
27513 cat conftest.s >&5
27515 rm -f conftest.o conftest.s
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27519 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27520 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27522 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27528 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27529 if ${gcc_cv_as_ix86_ud2+:} false; then :
27530 $as_echo_n "(cached) " >&6
27531 else
27532 gcc_cv_as_ix86_ud2=no
27533 if test x$gcc_cv_as != x; then
27534 $as_echo 'ud2' > conftest.s
27535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27537 (eval $ac_try) 2>&5
27538 ac_status=$?
27539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27540 test $ac_status = 0; }; }
27541 then
27542 gcc_cv_as_ix86_ud2=yes
27543 else
27544 echo "configure: failed program was" >&5
27545 cat conftest.s >&5
27547 rm -f conftest.o conftest.s
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27551 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27552 if test $gcc_cv_as_ix86_ud2 = yes; then
27554 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27559 # Enforce 32-bit output with gas and gld.
27560 if test x$gas = xyes; then
27561 as_ix86_gas_32_opt="--32"
27563 if echo "$ld_ver" | grep GNU > /dev/null; then
27564 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27565 ld_ix86_gld_32_opt="-melf_i386_sol2"
27566 else
27567 ld_ix86_gld_32_opt="-melf_i386"
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27572 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27573 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27574 $as_echo_n "(cached) " >&6
27575 else
27576 gcc_cv_as_ix86_tlsgdplt=no
27577 if test x$gcc_cv_as != x; then
27578 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; }
27585 then
27586 if test x$gcc_cv_ld != x \
27587 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27588 gcc_cv_as_ix86_tlsgdplt=yes
27590 rm -f conftest
27591 else
27592 echo "configure: failed program was" >&5
27593 cat conftest.s >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27599 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27600 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27602 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27607 conftest_s='
27608 .section .tdata,"aw'$tls_section_flag'",@progbits
27609 tls_ld:
27610 .section .text,"ax",@progbits
27611 call tls_ld@tlsldmplt'
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27614 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27615 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27616 $as_echo_n "(cached) " >&6
27617 else
27618 gcc_cv_as_ix86_tlsldmplt=no
27619 if test x$gcc_cv_as != x; then
27620 $as_echo "$conftest_s" > conftest.s
27621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27626 test $ac_status = 0; }; }
27627 then
27628 if test x$gcc_cv_ld != x \
27629 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27630 gcc_cv_as_ix86_tlsldmplt=yes
27632 rm -f conftest
27633 else
27634 echo "configure: failed program was" >&5
27635 cat conftest.s >&5
27637 rm -f conftest.o conftest.s
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27641 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27645 cat >>confdefs.h <<_ACEOF
27646 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27647 _ACEOF
27650 conftest_s='
27651 .section .text,"ax",@progbits
27652 .globl _start
27653 .type _start, @function
27654 _start:
27655 leal value@tlsldm(%ebx), %eax
27656 call ___tls_get_addr@plt
27658 .section .tdata,"aw'$tls_section_flag'",@progbits
27659 .type value, @object
27660 value:'
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27662 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27663 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27664 $as_echo_n "(cached) " >&6
27665 else
27666 gcc_cv_as_ix86_tlsldm=no
27667 if test x$gcc_cv_as != x; then
27668 $as_echo "$conftest_s" > conftest.s
27669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27671 (eval $ac_try) 2>&5
27672 ac_status=$?
27673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27674 test $ac_status = 0; }; }
27675 then
27676 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27677 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27678 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27679 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27680 gcc_cv_as_ix86_tlsldm=yes
27683 rm -f conftest
27684 else
27685 echo "configure: failed program was" >&5
27686 cat conftest.s >&5
27688 rm -f conftest.o conftest.s
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27692 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27696 cat >>confdefs.h <<_ACEOF
27697 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27698 _ACEOF
27701 conftest_s='
27702 .data
27703 bar:
27704 .byte 1
27705 .text
27706 .global _start
27707 _start:
27708 cmpl $0, bar@GOT
27709 jmp *_start@GOT'
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27711 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27712 if ${gcc_cv_as_ix86_got32x+:} false; then :
27713 $as_echo_n "(cached) " >&6
27714 else
27715 gcc_cv_as_ix86_got32x=no
27716 if test x$gcc_cv_as != x; then
27717 $as_echo "$conftest_s" > conftest.s
27718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27723 test $ac_status = 0; }; }
27724 then
27725 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27726 && test x$gcc_cv_readelf != x \
27727 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27728 | grep R_386_GOT32X > /dev/null 2>&1 \
27729 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27730 if $gcc_cv_objdump -dw conftest 2>&1 \
27731 | grep 0xffffff > /dev/null 2>&1; then
27732 gcc_cv_as_ix86_got32x=no
27733 else
27734 gcc_cv_as_ix86_got32x=yes
27737 rm -f conftest
27738 else
27739 echo "configure: failed program was" >&5
27740 cat conftest.s >&5
27742 rm -f conftest.o conftest.s
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27746 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27750 cat >>confdefs.h <<_ACEOF
27751 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27752 _ACEOF
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27756 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27757 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27758 $as_echo_n "(cached) " >&6
27759 else
27760 gcc_cv_as_ix86_gotoff_in_data=no
27761 if test x$gcc_cv_as != x; then
27762 $as_echo ' .text
27763 .L0:
27765 .data
27766 .long .L0@GOTOFF' > conftest.s
27767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27769 (eval $ac_try) 2>&5
27770 ac_status=$?
27771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27772 test $ac_status = 0; }; }
27773 then
27774 gcc_cv_as_ix86_gotoff_in_data=yes
27775 else
27776 echo "configure: failed program was" >&5
27777 cat conftest.s >&5
27779 rm -f conftest.o conftest.s
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27783 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27787 cat >>confdefs.h <<_ACEOF
27788 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27789 _ACEOF
27792 conftest_s='
27793 .section .text,"ax",@progbits
27794 .globl _start
27795 .type _start, @function
27796 _start:
27797 leal ld@tlsldm(%ecx), %eax
27798 call *___tls_get_addr@GOT(%ecx)
27799 leal gd@tlsgd(%ecx), %eax
27800 call *___tls_get_addr@GOT(%ecx)
27802 .section .tdata,"aw'$tls_section_flag'",@progbits
27803 .type ld, @object
27805 .byte 0
27806 .globl gd
27807 .type gd, @object
27809 .byte 0'
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27811 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27812 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27813 $as_echo_n "(cached) " >&6
27814 else
27815 gcc_cv_as_ix86_tls_get_addr_via_got=no
27816 if test x$gcc_cv_as != x; then
27817 $as_echo "$conftest_s" > conftest.s
27818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27820 (eval $ac_try) 2>&5
27821 ac_status=$?
27822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27823 test $ac_status = 0; }; }
27824 then
27825 if test x$gcc_cv_ld != x \
27826 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27827 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27829 rm -f conftest
27830 else
27831 echo "configure: failed program was" >&5
27832 cat conftest.s >&5
27834 rm -f conftest.o conftest.s
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27838 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27842 cat >>confdefs.h <<_ACEOF
27843 #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`
27844 _ACEOF
27848 ia64*-*-*)
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27850 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27851 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27852 $as_echo_n "(cached) " >&6
27853 else
27854 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27855 if test x$gcc_cv_as != x; then
27856 $as_echo ' .text
27857 addl r15 = @ltoffx(x#), gp
27859 ld8.mov r16 = [r15], x#
27860 ' > conftest.s
27861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27863 (eval $ac_try) 2>&5
27864 ac_status=$?
27865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27866 test $ac_status = 0; }; }
27867 then
27868 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27869 else
27870 echo "configure: failed program was" >&5
27871 cat conftest.s >&5
27873 rm -f conftest.o conftest.s
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27877 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27878 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27880 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27887 powerpc*-*-*)
27889 case $target in
27890 *-*-darwin*)
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27892 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27893 if ${gcc_cv_as_machine_directive+:} false; then :
27894 $as_echo_n "(cached) " >&6
27895 else
27896 gcc_cv_as_machine_directive=no
27897 if test x$gcc_cv_as != x; then
27898 $as_echo ' .machine ppc7400' > conftest.s
27899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27904 test $ac_status = 0; }; }
27905 then
27906 gcc_cv_as_machine_directive=yes
27907 else
27908 echo "configure: failed program was" >&5
27909 cat conftest.s >&5
27911 rm -f conftest.o conftest.s
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27915 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27918 if test x$gcc_cv_as_machine_directive != xyes; then
27919 echo "*** This target requires an assembler supporting \".machine\"" >&2
27920 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27921 test x$build = x$target && exit 1
27924 esac
27926 case $target in
27927 *-*-aix*) conftest_s=' .machine "pwr5"
27928 .csect .text[PR]
27929 mfcr 3,128';;
27930 *-*-darwin*) conftest_s=' .text
27931 mfcr r3,128';;
27932 *) conftest_s=' .machine power4
27933 .text
27934 mfcr 3,128';;
27935 esac
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27938 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27939 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27940 $as_echo_n "(cached) " >&6
27941 else
27942 gcc_cv_as_powerpc_mfcrf=no
27943 if test x$gcc_cv_as != x; then
27944 $as_echo "$conftest_s" > conftest.s
27945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27950 test $ac_status = 0; }; }
27951 then
27952 gcc_cv_as_powerpc_mfcrf=yes
27953 else
27954 echo "configure: failed program was" >&5
27955 cat conftest.s >&5
27957 rm -f conftest.o conftest.s
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27961 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27962 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27964 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27969 case $target in
27970 *-*-aix*) conftest_s=' .csect .text[PR]
27971 LCF..0:
27972 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27973 *-*-darwin*)
27974 conftest_s=' .text
27975 LCF0:
27976 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27977 *) conftest_s=' .text
27978 .LCF0:
27979 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27980 esac
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27983 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27984 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27985 $as_echo_n "(cached) " >&6
27986 else
27987 gcc_cv_as_powerpc_rel16=no
27988 if test x$gcc_cv_as != x; then
27989 $as_echo "$conftest_s" > conftest.s
27990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27992 (eval $ac_try) 2>&5
27993 ac_status=$?
27994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27995 test $ac_status = 0; }; }
27996 then
27997 gcc_cv_as_powerpc_rel16=yes
27998 else
27999 echo "configure: failed program was" >&5
28000 cat conftest.s >&5
28002 rm -f conftest.o conftest.s
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28006 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28007 if test $gcc_cv_as_powerpc_rel16 = yes; then
28009 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28014 case $target in
28015 *-*-aix*) conftest_s=' .machine "pwr7"
28016 .csect .text[PR]
28017 lxvd2x 1,2,3';;
28018 *) conftest_s=' .machine power7
28019 .text
28020 lxvd2x 1,2,3';;
28021 esac
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28024 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28025 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28026 $as_echo_n "(cached) " >&6
28027 else
28028 gcc_cv_as_powerpc_vsx=no
28029 if test x$gcc_cv_as != x; then
28030 $as_echo "$conftest_s" > conftest.s
28031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28033 (eval $ac_try) 2>&5
28034 ac_status=$?
28035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28036 test $ac_status = 0; }; }
28037 then
28038 gcc_cv_as_powerpc_vsx=yes
28039 else
28040 echo "configure: failed program was" >&5
28041 cat conftest.s >&5
28043 rm -f conftest.o conftest.s
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28047 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28048 if test $gcc_cv_as_powerpc_vsx = yes; then
28050 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28056 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28057 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28058 $as_echo_n "(cached) " >&6
28059 else
28060 gcc_cv_as_powerpc_gnu_attribute=no
28061 if test x$gcc_cv_as != x; then
28062 $as_echo '.gnu_attribute 4,1' > conftest.s
28063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28065 (eval $ac_try) 2>&5
28066 ac_status=$?
28067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28068 test $ac_status = 0; }; }
28069 then
28070 gcc_cv_as_powerpc_gnu_attribute=yes
28071 else
28072 echo "configure: failed program was" >&5
28073 cat conftest.s >&5
28075 rm -f conftest.o conftest.s
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28079 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28080 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28082 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28088 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28089 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28090 $as_echo_n "(cached) " >&6
28091 else
28092 gcc_cv_as_powerpc_entry_markers=no
28093 if test x$gcc_cv_as != x; then
28094 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28100 test $ac_status = 0; }; }
28101 then
28102 gcc_cv_as_powerpc_entry_markers=yes
28103 else
28104 echo "configure: failed program was" >&5
28105 cat conftest.s >&5
28107 rm -f conftest.o conftest.s
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28111 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28112 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28114 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28120 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28121 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28122 $as_echo_n "(cached) " >&6
28123 else
28124 gcc_cv_as_powerpc_pltseq_markers=no
28125 if test x$gcc_cv_as != x; then
28126 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28129 (eval $ac_try) 2>&5
28130 ac_status=$?
28131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28132 test $ac_status = 0; }; }
28133 then
28134 gcc_cv_as_powerpc_pltseq_markers=yes
28135 else
28136 echo "configure: failed program was" >&5
28137 cat conftest.s >&5
28139 rm -f conftest.o conftest.s
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28143 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28144 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28146 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28151 case $target in
28152 *-*-aix*)
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28154 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28155 if ${gcc_cv_as_aix_ref+:} false; then :
28156 $as_echo_n "(cached) " >&6
28157 else
28158 gcc_cv_as_aix_ref=no
28159 if test x$gcc_cv_as != x; then
28160 $as_echo ' .csect stuff[rw]
28161 stuff:
28162 .long 1
28163 .extern sym
28164 .ref sym
28165 ' > conftest.s
28166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28168 (eval $ac_try) 2>&5
28169 ac_status=$?
28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171 test $ac_status = 0; }; }
28172 then
28173 gcc_cv_as_aix_ref=yes
28174 else
28175 echo "configure: failed program was" >&5
28176 cat conftest.s >&5
28178 rm -f conftest.o conftest.s
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28182 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28183 if test $gcc_cv_as_aix_ref = yes; then
28185 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28191 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28192 if ${gcc_cv_as_aix_dwloc+:} false; then :
28193 $as_echo_n "(cached) " >&6
28194 else
28195 gcc_cv_as_aix_dwloc=no
28196 if test x$gcc_cv_as != x; then
28197 $as_echo ' .dwsect 0xA0000
28198 Lframe..0:
28199 .vbyte 4,Lframe..0
28200 ' > conftest.s
28201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28206 test $ac_status = 0; }; }
28207 then
28208 gcc_cv_as_aix_dwloc=yes
28209 else
28210 echo "configure: failed program was" >&5
28211 cat conftest.s >&5
28213 rm -f conftest.o conftest.s
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28217 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28218 if test $gcc_cv_as_aix_dwloc = yes; then
28220 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28225 esac
28228 mips*-*-*)
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28230 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28231 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28232 $as_echo_n "(cached) " >&6
28233 else
28234 gcc_cv_as_mips_explicit_relocs=no
28235 if test x$gcc_cv_as != x; then
28236 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28242 test $ac_status = 0; }; }
28243 then
28244 gcc_cv_as_mips_explicit_relocs=yes
28245 else
28246 echo "configure: failed program was" >&5
28247 cat conftest.s >&5
28249 rm -f conftest.o conftest.s
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28253 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28254 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28255 if test x$target_cpu_default = x
28256 then target_cpu_default=MASK_EXPLICIT_RELOCS
28257 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28263 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28264 if ${gcc_cv_as_mips_no_shared+:} false; then :
28265 $as_echo_n "(cached) " >&6
28266 else
28267 gcc_cv_as_mips_no_shared=no
28268 if test x$gcc_cv_as != x; then
28269 $as_echo 'nop' > conftest.s
28270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28272 (eval $ac_try) 2>&5
28273 ac_status=$?
28274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28275 test $ac_status = 0; }; }
28276 then
28277 gcc_cv_as_mips_no_shared=yes
28278 else
28279 echo "configure: failed program was" >&5
28280 cat conftest.s >&5
28282 rm -f conftest.o conftest.s
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28286 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28287 if test $gcc_cv_as_mips_no_shared = yes; then
28289 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28295 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28296 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28297 $as_echo_n "(cached) " >&6
28298 else
28299 gcc_cv_as_mips_gnu_attribute=no
28300 if test x$gcc_cv_as != x; then
28301 $as_echo '.gnu_attribute 4,1' > conftest.s
28302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28304 (eval $ac_try) 2>&5
28305 ac_status=$?
28306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28307 test $ac_status = 0; }; }
28308 then
28309 gcc_cv_as_mips_gnu_attribute=yes
28310 else
28311 echo "configure: failed program was" >&5
28312 cat conftest.s >&5
28314 rm -f conftest.o conftest.s
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28318 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28319 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28321 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28327 $as_echo_n "checking assembler for .module support... " >&6; }
28328 if ${gcc_cv_as_mips_dot_module+:} false; then :
28329 $as_echo_n "(cached) " >&6
28330 else
28331 gcc_cv_as_mips_dot_module=no
28332 if test x$gcc_cv_as != x; then
28333 $as_echo '.module mips2
28334 .module fp=xx' > conftest.s
28335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28337 (eval $ac_try) 2>&5
28338 ac_status=$?
28339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28340 test $ac_status = 0; }; }
28341 then
28342 gcc_cv_as_mips_dot_module=yes
28343 else
28344 echo "configure: failed program was" >&5
28345 cat conftest.s >&5
28347 rm -f conftest.o conftest.s
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28351 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28352 if test $gcc_cv_as_mips_dot_module = yes; then
28354 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28358 if test x$gcc_cv_as_mips_dot_module = xno \
28359 && test x$with_fp_32 != x; then
28360 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28364 $as_echo_n "checking assembler for .micromips support... " >&6; }
28365 if ${gcc_cv_as_micromips_support+:} false; then :
28366 $as_echo_n "(cached) " >&6
28367 else
28368 gcc_cv_as_micromips_support=no
28369 if test x$gcc_cv_as != x; then
28370 $as_echo '.set micromips' > conftest.s
28371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28373 (eval $ac_try) 2>&5
28374 ac_status=$?
28375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28376 test $ac_status = 0; }; }
28377 then
28378 gcc_cv_as_micromips_support=yes
28379 else
28380 echo "configure: failed program was" >&5
28381 cat conftest.s >&5
28383 rm -f conftest.o conftest.s
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28387 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28388 if test $gcc_cv_as_micromips_support = yes; then
28390 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28396 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28397 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28398 $as_echo_n "(cached) " >&6
28399 else
28400 gcc_cv_as_mips_dtprelword=no
28401 if test x$gcc_cv_as != x; then
28402 $as_echo '.section .tdata,"awT",@progbits
28404 .word 2
28405 .text
28406 .dtprelword x+0x8000' > conftest.s
28407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28412 test $ac_status = 0; }; }
28413 then
28414 gcc_cv_as_mips_dtprelword=yes
28415 else
28416 echo "configure: failed program was" >&5
28417 cat conftest.s >&5
28419 rm -f conftest.o conftest.s
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28423 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28424 if test $gcc_cv_as_mips_dtprelword = yes; then
28426 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28432 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28433 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28434 $as_echo_n "(cached) " >&6
28435 else
28436 gcc_cv_as_mips_dspr1_mult=no
28437 if test x$gcc_cv_as != x; then
28438 $as_echo ' .set mips32r2
28439 .set nodspr2
28440 .set dsp
28441 madd $ac3,$4,$5
28442 maddu $ac3,$4,$5
28443 msub $ac3,$4,$5
28444 msubu $ac3,$4,$5
28445 mult $ac3,$4,$5
28446 multu $ac3,$4,$5' > conftest.s
28447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_dspr1_mult=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_dspr1_mult" >&5
28463 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28464 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28466 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28472 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28473 gcc_cv_as_ld_jalr_reloc=no
28474 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28475 if test $in_tree_ld = yes ; then
28476 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 \
28477 && test $in_tree_ld_is_elf = yes; then
28478 gcc_cv_as_ld_jalr_reloc=yes
28480 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28481 echo ' .ent x' > conftest.s
28482 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28483 echo ' lw $25,%call16(y)($28)' >> conftest.s
28484 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28485 echo '1: jalr $25' >> conftest.s
28486 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28487 echo '1: jalr $25' >> conftest.s
28488 echo ' .end x' >> conftest.s
28489 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28490 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28491 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28492 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28493 gcc_cv_as_ld_jalr_reloc=yes
28496 rm -f conftest.*
28499 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28500 if test x$target_cpu_default = x; then
28501 target_cpu_default=MASK_RELAX_PIC_CALLS
28502 else
28503 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28507 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28510 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28511 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28512 $as_echo_n "(cached) " >&6
28513 else
28514 gcc_cv_ld_mips_personality_relaxation=no
28515 if test $in_tree_ld = yes ; then
28516 if test "$gcc_cv_gld_major_version" -eq 2 \
28517 -a "$gcc_cv_gld_minor_version" -ge 21 \
28518 -o "$gcc_cv_gld_major_version" -gt 2; then
28519 gcc_cv_ld_mips_personality_relaxation=yes
28521 elif test x$gcc_cv_as != x \
28522 -a x$gcc_cv_ld != x \
28523 -a x$gcc_cv_readelf != x ; then
28524 cat > conftest.s <<EOF
28525 .cfi_startproc
28526 .cfi_personality 0x80,indirect_ptr
28527 .ent test
28528 test:
28530 .end test
28531 .cfi_endproc
28533 .section .data,"aw",@progbits
28534 indirect_ptr:
28535 .dc.a personality
28537 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28538 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28539 if $gcc_cv_readelf -d conftest 2>&1 \
28540 | grep TEXTREL > /dev/null 2>&1; then
28542 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28543 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28545 else
28546 gcc_cv_ld_mips_personality_relaxation=yes
28550 rm -f conftest.s conftest.o conftest
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28553 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28554 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28556 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28561 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28562 if ${gcc_cv_as_mips_nan+:} false; then :
28563 $as_echo_n "(cached) " >&6
28564 else
28565 gcc_cv_as_mips_nan=no
28566 if test x$gcc_cv_as != x; then
28567 $as_echo '' > conftest.s
28568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28573 test $ac_status = 0; }; }
28574 then
28575 gcc_cv_as_mips_nan=yes
28576 else
28577 echo "configure: failed program was" >&5
28578 cat conftest.s >&5
28580 rm -f conftest.o conftest.s
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28584 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28585 if test $gcc_cv_as_mips_nan = yes; then
28587 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28591 if test x$gcc_cv_as_mips_nan = xno \
28592 && test x$with_nan != x; then
28593 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28596 msp430-*-*)
28597 # Earlier GAS versions generically support .gnu_attribute, but the
28598 # msp430 assembler will not do anything with it.
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28600 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28601 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28602 $as_echo_n "(cached) " >&6
28603 else
28604 gcc_cv_as_msp430_gnu_attribute=no
28605 if test x$gcc_cv_as != x; then
28606 $as_echo '.gnu_attribute 4,1' > conftest.s
28607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28612 test $ac_status = 0; }; }
28613 then
28614 gcc_cv_as_msp430_gnu_attribute=yes
28615 else
28616 echo "configure: failed program was" >&5
28617 cat conftest.s >&5
28619 rm -f conftest.o conftest.s
28622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28623 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28624 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28626 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28631 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28632 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28633 $as_echo_n "(cached) " >&6
28634 else
28635 gcc_cv_as_msp430_mspabi_attribute=no
28636 if test x$gcc_cv_as != x; then
28637 $as_echo '.mspabi_attribute 4,2' > conftest.s
28638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28640 (eval $ac_try) 2>&5
28641 ac_status=$?
28642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28643 test $ac_status = 0; }; }
28644 then
28645 gcc_cv_as_msp430_mspabi_attribute=yes
28646 else
28647 echo "configure: failed program was" >&5
28648 cat conftest.s >&5
28650 rm -f conftest.o conftest.s
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28654 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28655 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28657 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28661 if test x$enable_newlib_nano_formatted_io = xyes; then
28663 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28667 nios2-*-*)
28668 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28669 # syntax that is documented in the ABI specification.
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28671 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28672 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28673 $as_echo_n "(cached) " >&6
28674 else
28675 gcc_cv_as_nios2_gotoff_relocation=no
28676 if test x$gcc_cv_as != x; then
28677 $as_echo ' .extern foo
28678 .data
28679 .long %gotoff(foo)' > conftest.s
28680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_nios2_gotoff_relocation=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_nios2_gotoff_relocation" >&5
28696 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28697 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28699 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28704 riscv*-*-*)
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28706 $as_echo_n "checking assembler for .attribute support... " >&6; }
28707 if ${gcc_cv_as_riscv_attribute+:} false; then :
28708 $as_echo_n "(cached) " >&6
28709 else
28710 gcc_cv_as_riscv_attribute=no
28711 if test x$gcc_cv_as != x; then
28712 $as_echo '.attribute stack_align,4' > conftest.s
28713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28718 test $ac_status = 0; }; }
28719 then
28720 gcc_cv_as_riscv_attribute=yes
28721 else
28722 echo "configure: failed program was" >&5
28723 cat conftest.s >&5
28725 rm -f conftest.o conftest.s
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28729 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28730 if test $gcc_cv_as_riscv_attribute = yes; then
28732 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28737 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28738 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28739 $as_echo_n "(cached) " >&6
28740 else
28741 gcc_cv_as_riscv_isa_spec=no
28742 if test x$gcc_cv_as != x; then
28743 $as_echo '' > conftest.s
28744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28746 (eval $ac_try) 2>&5
28747 ac_status=$?
28748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28749 test $ac_status = 0; }; }
28750 then
28751 gcc_cv_as_riscv_isa_spec=yes
28752 else
28753 echo "configure: failed program was" >&5
28754 cat conftest.s >&5
28756 rm -f conftest.o conftest.s
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28760 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28761 if test $gcc_cv_as_riscv_isa_spec = yes; then
28763 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28768 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28769 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28770 $as_echo_n "(cached) " >&6
28771 else
28772 gcc_cv_as_riscv_march_zifencei=no
28773 if test x$gcc_cv_as != x; then
28774 $as_echo '' > conftest.s
28775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28777 (eval $ac_try) 2>&5
28778 ac_status=$?
28779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28780 test $ac_status = 0; }; }
28781 then
28782 gcc_cv_as_riscv_march_zifencei=yes
28783 else
28784 echo "configure: failed program was" >&5
28785 cat conftest.s >&5
28787 rm -f conftest.o conftest.s
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28791 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28792 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28794 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28799 loongarch*-*-*)
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28801 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28802 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28803 $as_echo_n "(cached) " >&6
28804 else
28805 gcc_cv_as_loongarch_dtprelword=no
28806 if test x$gcc_cv_as != x; then
28807 $as_echo '' > conftest.s
28808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28810 (eval $ac_try) 2>&5
28811 ac_status=$?
28812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28813 test $ac_status = 0; }; }
28814 then
28815 .section .tdata,"awT",@progbits
28817 .word 2
28818 .text
28819 .dtprelword x+0x8000
28820 else
28821 echo "configure: failed program was" >&5
28822 cat conftest.s >&5
28824 rm -f conftest.o conftest.s
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28828 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28830 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28832 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28836 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28837 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28838 $as_echo_n "(cached) " >&6
28839 else
28840 gcc_cv_as_loongarch_explicit_relocs=no
28841 if test x$gcc_cv_as != x; then
28842 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28845 (eval $ac_try) 2>&5
28846 ac_status=$?
28847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28848 test $ac_status = 0; }; }
28849 then
28850 gcc_cv_as_loongarch_explicit_relocs=yes
28851 else
28852 echo "configure: failed program was" >&5
28853 cat conftest.s >&5
28855 rm -f conftest.o conftest.s
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28859 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28860 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28862 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28867 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28868 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28869 $as_echo_n "(cached) " >&6
28870 else
28871 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28872 if test x$gcc_cv_as != x; then
28873 $as_echo '.cfi_startproc
28874 .cfi_personality 0x9b,a
28875 .cfi_lsda 0x1b,b
28876 .cfi_endproc' > conftest.s
28877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28879 (eval $ac_try) 2>&5
28880 ac_status=$?
28881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882 test $ac_status = 0; }; }
28883 then
28884 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28885 else
28886 echo "configure: failed program was" >&5
28887 cat conftest.s >&5
28889 rm -f conftest.o conftest.s
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28893 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28894 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28896 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28901 s390*-*-*)
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28903 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28904 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28905 $as_echo_n "(cached) " >&6
28906 else
28907 gcc_cv_as_s390_gnu_attribute=no
28908 if test x$gcc_cv_as != x; then
28909 $as_echo '.gnu_attribute 8,1' > conftest.s
28910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28912 (eval $ac_try) 2>&5
28913 ac_status=$?
28914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28915 test $ac_status = 0; }; }
28916 then
28917 gcc_cv_as_s390_gnu_attribute=yes
28918 else
28919 echo "configure: failed program was" >&5
28920 cat conftest.s >&5
28922 rm -f conftest.o conftest.s
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28926 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28927 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28929 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28934 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28935 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28936 $as_echo_n "(cached) " >&6
28937 else
28938 gcc_cv_as_s390_machine_machinemode=no
28939 if test x$gcc_cv_as != x; then
28940 $as_echo ' .machinemode push
28941 .machinemode pop
28942 .machine push
28943 .machine pop' > conftest.s
28944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28946 (eval $ac_try) 2>&5
28947 ac_status=$?
28948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28949 test $ac_status = 0; }; }
28950 then
28951 gcc_cv_as_s390_machine_machinemode=yes
28952 else
28953 echo "configure: failed program was" >&5
28954 cat conftest.s >&5
28956 rm -f conftest.o conftest.s
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28960 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28961 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28963 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28968 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28969 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28970 $as_echo_n "(cached) " >&6
28971 else
28972 gcc_cv_as_s390_architecture_modifiers=no
28973 if test x$gcc_cv_as != x; then
28974 $as_echo ' .machine z13+vx ' > conftest.s
28975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28980 test $ac_status = 0; }; }
28981 then
28982 gcc_cv_as_s390_architecture_modifiers=yes
28983 else
28984 echo "configure: failed program was" >&5
28985 cat conftest.s >&5
28987 rm -f conftest.o conftest.s
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28991 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28992 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28994 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28999 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29000 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29001 $as_echo_n "(cached) " >&6
29002 else
29003 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29004 if test x$gcc_cv_as != x; then
29005 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29008 (eval $ac_try) 2>&5
29009 ac_status=$?
29010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29011 test $ac_status = 0; }; }
29012 then
29013 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29014 else
29015 echo "configure: failed program was" >&5
29016 cat conftest.s >&5
29018 rm -f conftest.o conftest.s
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29022 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29023 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29025 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29030 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29031 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29032 $as_echo_n "(cached) " >&6
29033 else
29034 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29035 if test x$gcc_cv_as != x; then
29036 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29039 (eval $ac_try) 2>&5
29040 ac_status=$?
29041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29042 test $ac_status = 0; }; }
29043 then
29044 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29045 else
29046 echo "configure: failed program was" >&5
29047 cat conftest.s >&5
29049 rm -f conftest.o conftest.s
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29053 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29054 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29056 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29062 esac
29064 # Mips, LoongArch and HP-UX need the GNU assembler.
29065 # Linux on IA64 might be able to use the Intel assembler.
29067 case "$target" in
29068 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29069 if test x$gas_flag = xyes \
29070 || test x"$host" != x"$build" \
29071 || test ! -x "$gcc_cv_as" \
29072 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29074 else
29075 echo "*** This configuration requires the GNU assembler" >&2
29076 exit 1
29079 esac
29081 # AMD GCN needs the LLVM assembler and linker.
29082 # Test that LLVM is at least 13.0.1.
29083 case "$target" in
29084 amdgcn-* | gcn-*)
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29086 $as_echo_n "checking llvm assembler version... " >&6; }
29087 gcc_cv_as_version="unknown"
29088 if test x$gcc_cv_as != x; then
29089 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29090 case "$gcc_cv_as_version" in
29091 13.0.[1-9]*) ;; # 13.0.1+
29092 13.[1-9]*) ;; # 13.1+
29093 1[4-9]*) ;; # 14..19
29094 [2-9][0-9]*) ;; # 20..99
29095 [1-9][0-9][0-9]*) ;; # 100+
29096 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29097 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29098 esac
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29101 $as_echo "$gcc_cv_as_version, ok" >&6; }
29103 esac
29105 case "$target" in
29106 arm*)
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29108 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29109 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29110 $as_echo_n "(cached) " >&6
29111 else
29112 gcc_cv_as_arm_option_extensions=no
29113 if test x$gcc_cv_as != x; then
29114 $as_echo '.text
29115 .thumb
29116 .syntax unified
29117 vmov.f32 s0, s1' > conftest.s
29118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -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_arm_option_extensions=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_arm_option_extensions" >&5
29134 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29135 if test $gcc_cv_as_arm_option_extensions = yes; then
29137 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29141 esac
29143 # ??? Not all targets support dwarf2 debug_line, even within a version
29144 # of gas. Moreover, we need to emit a valid instruction to trigger any
29145 # info to the output file. So, as supported targets are added to gas 2.11,
29146 # add some instruction here to (also) show we expect this might work.
29147 # ??? Once 2.11 is released, probably need to add first known working
29148 # version to the per-target configury.
29149 case "$cpu_type" in
29150 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29151 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29152 | visium | xstormy16 | xtensa)
29153 insn="nop"
29155 ia64 | s390)
29156 insn="nop 0"
29158 mmix)
29159 insn="swym 0"
29161 esac
29162 if test x"$insn" != x; then
29163 conftest_s="\
29164 .file 1 \"conftest.s\"
29165 .loc 1 3 0
29166 $insn"
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29168 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29169 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29170 $as_echo_n "(cached) " >&6
29171 else
29172 gcc_cv_as_dwarf2_debug_line=no
29173 if test x$gcc_cv_as != x; then
29174 $as_echo "$conftest_s" > conftest.s
29175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29177 (eval $ac_try) 2>&5
29178 ac_status=$?
29179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29180 test $ac_status = 0; }; }
29181 then
29182 if test x$gcc_cv_objdump != x \
29183 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29184 | grep debug_line > /dev/null 2>&1; then
29185 gcc_cv_as_dwarf2_debug_line=yes
29186 elif test x$gcc_cv_otool != x \
29187 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29188 | grep debug_line > /dev/null 2>&1; then
29189 gcc_cv_as_dwarf2_debug_line=yes
29191 else
29192 echo "configure: failed program was" >&5
29193 cat conftest.s >&5
29195 rm -f conftest.o conftest.s
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29199 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29203 # The .debug_line file table must be in the exact order that
29204 # we specified the files, since these indices are also used
29205 # by DW_AT_decl_file. Approximate this test by testing if
29206 # the assembler bitches if the same index is assigned twice.
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29208 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29209 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29210 $as_echo_n "(cached) " >&6
29211 else
29212 gcc_cv_as_dwarf2_file_buggy=no
29213 if test x$gcc_cv_as != x; then
29214 $as_echo ' .file 1 "foo.s"
29215 .file 1 "bar.s"' > conftest.s
29216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29218 (eval $ac_try) 2>&5
29219 ac_status=$?
29220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29221 test $ac_status = 0; }; }
29222 then
29223 gcc_cv_as_dwarf2_file_buggy=yes
29224 else
29225 echo "configure: failed program was" >&5
29226 cat conftest.s >&5
29228 rm -f conftest.o conftest.s
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29232 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29236 if test $gcc_cv_as_dwarf2_debug_line = yes \
29237 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29239 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29242 if test $gcc_cv_as_leb128 = yes; then
29243 conftest_s="\
29244 .file 1 \"conftest.s\"
29245 .loc 1 3 0 view .LVU1
29246 $insn
29247 .data
29248 .uleb128 .LVU1
29249 .uleb128 .LVU1
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29252 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29253 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29254 $as_echo_n "(cached) " >&6
29255 else
29256 gcc_cv_as_dwarf2_debug_view=no
29257 if test x$gcc_cv_as != x; then
29258 $as_echo "$conftest_s" > conftest.s
29259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29261 (eval $ac_try) 2>&5
29262 ac_status=$?
29263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29264 test $ac_status = 0; }; }
29265 then
29266 gcc_cv_as_dwarf2_debug_view=yes
29267 else
29268 echo "configure: failed program was" >&5
29269 cat conftest.s >&5
29271 rm -f conftest.o conftest.s
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29275 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29276 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29278 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29286 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29287 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29288 $as_echo_n "(cached) " >&6
29289 else
29290 gcc_cv_as_gdwarf2_flag=no
29291 if test x$gcc_cv_as != x; then
29292 $as_echo "$insn" > conftest.s
29293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29295 (eval $ac_try) 2>&5
29296 ac_status=$?
29297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29298 test $ac_status = 0; }; }
29299 then
29300 gcc_cv_as_gdwarf2_flag=yes
29301 else
29302 echo "configure: failed program was" >&5
29303 cat conftest.s >&5
29305 rm -f conftest.o conftest.s
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29309 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29310 if test $gcc_cv_as_gdwarf2_flag = yes; then
29312 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29318 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29319 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29320 $as_echo_n "(cached) " >&6
29321 else
29322 gcc_cv_as_gdwarf_5_flag=no
29323 if test x$gcc_cv_as != x; then
29324 $as_echo "$insn" > conftest.s
29325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29327 (eval $ac_try) 2>&5
29328 ac_status=$?
29329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29330 test $ac_status = 0; }; }
29331 then
29332 if test x$gcc_cv_objdump != x \
29333 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29334 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29335 gcc_cv_as_gdwarf_5_flag=yes;
29337 else
29338 echo "configure: failed program was" >&5
29339 cat conftest.s >&5
29341 rm -f conftest.o conftest.s
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29345 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29346 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29348 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29353 case $target_os in
29354 win32 | pe | cygwin* | mingw32*)
29355 section_flags=\"dr\"
29356 function_type=".def foo; .scl 2; .type 32; .endef"
29357 function_size="";;
29359 section_flags=\"\",%progbits
29360 function_type=".type foo, %function"
29361 function_size=".size foo, .-foo";;
29362 esac
29363 dwarf4_debug_info_size=0x46
29364 dwarf4_high_pc_form=7
29365 dwarf4_debug_aranges_size=0x2c
29366 dwarf4_line_sz=9
29367 for dwarf4_addr_size in 8 4; do
29368 conftest_s="\
29369 .file \"a.c\"
29370 .text
29371 .Ltext0:
29372 .p2align 4
29373 .globl foo
29374 $function_type
29375 foo:
29376 .LFB0:
29377 .LM1:
29378 $insn
29379 .LM2:
29380 .LFE0:
29381 $function_size
29382 .Letext0:
29383 .section .debug_info,$section_flags
29384 .Ldebug_info0:
29385 .4byte $dwarf4_debug_info_size
29386 .2byte 0x4
29387 .4byte .Ldebug_abbrev0
29388 .byte 0x$dwarf4_addr_size
29389 .byte 0x1
29390 .ascii \"GNU C17\\0\"
29391 .byte 0xc
29392 .ascii \"a.c\\0\"
29393 .ascii \"/\\0\"
29394 .${dwarf4_addr_size}byte .Ltext0
29395 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29396 .4byte .Ldebug_line0
29397 .byte 0x2
29398 .ascii \"foo\\0\"
29399 .byte 0x1
29400 .byte 0x2
29401 .byte 0x1
29402 .${dwarf4_addr_size}byte .LFB0
29403 .${dwarf4_addr_size}byte .LFE0-.LFB0
29404 .byte 0x1
29405 .byte 0x9c
29406 .byte 0
29407 .section .debug_abbrev,$section_flags
29408 .Ldebug_abbrev0:
29409 .byte 0x1
29410 .byte 0x11
29411 .byte 0x1
29412 .byte 0x25
29413 .byte 0x8
29414 .byte 0x13
29415 .byte 0xb
29416 .byte 0x3
29417 .byte 0x8
29418 .byte 0x1b
29419 .byte 0x8
29420 .byte 0x11
29421 .byte 0x1
29422 .byte 0x12
29423 .byte 0x$dwarf4_high_pc_form
29424 .byte 0x10
29425 .byte 0x17
29426 .byte 0
29427 .byte 0
29428 .byte 0x2
29429 .byte 0x2e
29430 .byte 0
29431 .byte 0x3f
29432 .byte 0x19
29433 .byte 0x3
29434 .byte 0x8
29435 .byte 0x3a
29436 .byte 0xb
29437 .byte 0x3b
29438 .byte 0xb
29439 .byte 0x39
29440 .byte 0xb
29441 .byte 0x11
29442 .byte 0x1
29443 .byte 0x12
29444 .byte 0x$dwarf4_high_pc_form
29445 .byte 0x40
29446 .byte 0x18
29447 .byte 0
29448 .byte 0
29449 .byte 0
29450 .section .debug_aranges,$section_flags
29451 .4byte $dwarf4_debug_aranges_size
29452 .2byte 0x2
29453 .4byte .Ldebug_info0
29454 .byte 0x8
29455 .byte 0
29456 .2byte 0
29457 .2byte 0
29458 .${dwarf4_addr_size}byte .Ltext0
29459 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29460 .${dwarf4_addr_size}byte 0
29461 .${dwarf4_addr_size}byte 0
29462 .section .debug_line,$section_flags
29463 .Ldebug_line0:
29464 .4byte .LELT0-.LSLT0
29465 .LSLT0:
29466 .2byte 0x4
29467 .4byte .LELTP0-.LASLTP0
29468 .LASLTP0:
29469 .byte 0x1
29470 .byte 0x1
29471 .byte 0x1
29472 .byte 0xf6
29473 .byte 0xf2
29474 .byte 0xd
29475 .byte 0
29476 .byte 0x1
29477 .byte 0x1
29478 .byte 0x1
29479 .byte 0x1
29480 .byte 0
29481 .byte 0
29482 .byte 0
29483 .byte 0x1
29484 .byte 0
29485 .byte 0
29486 .byte 0x1
29487 .byte 0
29488 .ascii \"a.c\\0\"
29489 .byte 0
29490 .byte 0
29491 .byte 0
29492 .byte 0
29493 .LELTP0:
29494 .byte 0
29495 .byte 0x$dwarf4_line_sz
29496 .byte 0x2
29497 .${dwarf4_addr_size}byte .LM1
29498 .byte 0x18
29499 .byte 0x5
29500 .byte 0x1
29501 .byte 0
29502 .byte 0x$dwarf4_line_sz
29503 .byte 0x2
29504 .${dwarf4_addr_size}byte .LM2
29505 .byte 0x1
29506 .byte 0x5
29507 .byte 0x1
29508 .byte 0
29509 .byte 0x$dwarf4_line_sz
29510 .byte 0x2
29511 .${dwarf4_addr_size}byte .Letext0
29512 .byte 0
29513 .byte 0x1
29514 .byte 0x1
29515 .LELT0:
29516 .section .debug_str,$section_flags
29517 .ident \"GCC\"
29519 dwarf4_success=no
29520 if test $dwarf4_addr_size = 4; then
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29522 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29523 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29524 $as_echo_n "(cached) " >&6
29525 else
29526 gcc_cv_as_debug_line_32_flag=no
29527 if test x$gcc_cv_as != x; then
29528 $as_echo "$conftest_s" > conftest.s
29529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29531 (eval $ac_try) 2>&5
29532 ac_status=$?
29533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29534 test $ac_status = 0; }; }
29535 then
29536 gcc_cv_as_debug_line_32_flag=yes
29537 else
29538 echo "configure: failed program was" >&5
29539 cat conftest.s >&5
29541 rm -f conftest.o conftest.s
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29545 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29546 if test $gcc_cv_as_debug_line_32_flag = yes; then
29547 dwarf4_success=yes
29550 else
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29552 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29553 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29554 $as_echo_n "(cached) " >&6
29555 else
29556 gcc_cv_as_debug_line_64_flag=no
29557 if test x$gcc_cv_as != x; then
29558 $as_echo "$conftest_s" > conftest.s
29559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29564 test $ac_status = 0; }; }
29565 then
29566 gcc_cv_as_debug_line_64_flag=yes
29567 else
29568 echo "configure: failed program was" >&5
29569 cat conftest.s >&5
29571 rm -f conftest.o conftest.s
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29575 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29576 if test $gcc_cv_as_debug_line_64_flag = yes; then
29577 dwarf4_success=yes
29581 if test $dwarf4_success = yes; then
29582 dwarf4_success=no
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29584 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29585 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29586 $as_echo_n "(cached) " >&6
29587 else
29588 gcc_cv_as_dwarf_4_debug_line_flag=no
29589 if test x$gcc_cv_as != x; then
29590 $as_echo "$conftest_s" > conftest.s
29591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29593 (eval $ac_try) 2>&5
29594 ac_status=$?
29595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29596 test $ac_status = 0; }; }
29597 then
29598 gcc_cv_as_dwarf_4_debug_line_flag=yes
29599 else
29600 echo "configure: failed program was" >&5
29601 cat conftest.s >&5
29603 rm -f conftest.o conftest.s
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29607 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29608 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29609 dwarf4_success=yes
29612 break
29614 dwarf4_debug_info_size=0x36
29615 dwarf4_high_pc_form=6
29616 dwarf4_debug_aranges_size=0x1c
29617 dwarf4_line_sz=5
29618 done
29620 if test $dwarf4_success = yes; then
29621 conftest_s="\
29622 .file \"foo.c\"
29623 .text
29624 bar:
29625 #APP
29626 # 82 \"xxx.h\" 1
29627 $insn
29628 # 0 \"\" 2
29629 #NO_APP
29630 $insn
29631 foo:
29632 .file 1 \"foo.c\"
29633 $insn
29634 .file 2 \"foo.h\"
29637 dwarf4_success=no
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29639 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29640 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29641 $as_echo_n "(cached) " >&6
29642 else
29643 gcc_cv_as_dwarf_4_app_flag=no
29644 if test x$gcc_cv_as != x; then
29645 $as_echo "$conftest_s" > conftest.s
29646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29648 (eval $ac_try) 2>&5
29649 ac_status=$?
29650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29651 test $ac_status = 0; }; }
29652 then
29653 gcc_cv_as_dwarf_4_app_flag=yes
29654 else
29655 echo "configure: failed program was" >&5
29656 cat conftest.s >&5
29658 rm -f conftest.o conftest.s
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29662 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29663 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29664 dwarf4_success=yes
29669 if test $dwarf4_success = yes; then
29670 conftest_s="\
29671 .text
29672 .globl foo
29673 $function_type
29674 foo:
29675 $insn
29676 $function_size
29677 .file 1 \"foo.c\"
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29680 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29681 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29682 $as_echo_n "(cached) " >&6
29683 else
29684 gcc_cv_as_working_gdwarf_n_flag=no
29685 if test x$gcc_cv_as != x; then
29686 $as_echo "$conftest_s" > conftest.s
29687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29692 test $ac_status = 0; }; }
29693 then
29694 if test x$gcc_cv_objdump != x \
29695 && $gcc_cv_objdump -W conftest.o 2>&1 \
29696 | grep conftest.s > /dev/null 2>&1; then
29697 gcc_cv_as_working_gdwarf_n_flag=no
29698 else
29699 gcc_cv_as_working_gdwarf_n_flag=yes
29701 else
29702 echo "configure: failed program was" >&5
29703 cat conftest.s >&5
29705 rm -f conftest.o conftest.s
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29709 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29712 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29714 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29720 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29721 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29722 $as_echo_n "(cached) " >&6
29723 else
29724 gcc_cv_as_debug_prefix_map_flag=no
29725 if test x$gcc_cv_as != x; then
29726 $as_echo "$insn" > conftest.s
29727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29732 test $ac_status = 0; }; }
29733 then
29734 gcc_cv_as_debug_prefix_map_flag=yes
29735 else
29736 echo "configure: failed program was" >&5
29737 cat conftest.s >&5
29739 rm -f conftest.o conftest.s
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29743 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29744 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29746 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29753 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29754 if ${gcc_cv_as_compress_debug+:} false; then :
29755 $as_echo_n "(cached) " >&6
29756 else
29757 gcc_cv_as_compress_debug=no
29758 if test x$gcc_cv_as != x; then
29759 $as_echo '' > conftest.s
29760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29765 test $ac_status = 0; }; }
29766 then
29767 # gas compiled without zlib cannot compress debug sections and warns
29768 # about it, but still exits successfully. So check for this, too.
29769 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29770 then
29771 gcc_cv_as_compress_debug=0
29772 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29773 then
29774 gcc_cv_as_compress_debug=1
29775 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29776 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29777 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29778 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29779 then
29780 gcc_cv_as_compress_debug=2
29782 else
29783 gcc_cv_as_compress_debug=0
29785 else
29786 echo "configure: failed program was" >&5
29787 cat conftest.s >&5
29789 rm -f conftest.o conftest.s
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29793 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29797 cat >>confdefs.h <<_ACEOF
29798 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29799 _ACEOF
29802 cat >>confdefs.h <<_ACEOF
29803 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29804 _ACEOF
29807 cat >>confdefs.h <<_ACEOF
29808 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29809 _ACEOF
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29813 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29814 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29815 $as_echo_n "(cached) " >&6
29816 else
29817 gcc_cv_as_lcomm_with_alignment=no
29818 if test x$gcc_cv_as != x; then
29819 $as_echo '.lcomm bar,4,16' > conftest.s
29820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29822 (eval $ac_try) 2>&5
29823 ac_status=$?
29824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29825 test $ac_status = 0; }; }
29826 then
29827 gcc_cv_as_lcomm_with_alignment=yes
29828 else
29829 echo "configure: failed program was" >&5
29830 cat conftest.s >&5
29832 rm -f conftest.o conftest.s
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29836 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29837 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29839 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29844 if test x$with_sysroot = x && test x$host = x$target \
29845 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29846 && test "$prefix" != "NONE"; then
29848 cat >>confdefs.h <<_ACEOF
29849 #define PREFIX_INCLUDE_DIR "$prefix/include"
29850 _ACEOF
29854 # Determine the version of glibc, if any, used on the target.
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29856 $as_echo_n "checking for target glibc version... " >&6; }
29858 # Check whether --with-glibc-version was given.
29859 if test "${with_glibc_version+set}" = set; then :
29860 withval=$with_glibc_version;
29861 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29862 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29863 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29864 else
29865 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29867 else
29869 glibc_version_major=0
29870 glibc_version_minor=0
29871 if test -f $target_header_dir/features.h \
29872 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29873 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29874 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29875 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29880 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29882 cat >>confdefs.h <<_ACEOF
29883 #define TARGET_GLIBC_MAJOR $glibc_version_major
29884 _ACEOF
29887 cat >>confdefs.h <<_ACEOF
29888 #define TARGET_GLIBC_MINOR $glibc_version_minor
29889 _ACEOF
29892 # Check whether --enable-gnu-unique-object was given.
29893 if test "${enable_gnu_unique_object+set}" = set; then :
29894 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29895 yes | no) ;;
29896 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29897 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29898 esac
29899 else
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29901 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29902 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29903 $as_echo_n "(cached) " >&6
29904 else
29905 gcc_cv_as_gnu_unique_object=no
29906 if test x$gcc_cv_as != x; then
29907 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29910 (eval $ac_try) 2>&5
29911 ac_status=$?
29912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29913 test $ac_status = 0; }; }
29914 then
29915 gcc_cv_as_gnu_unique_object=yes
29916 else
29917 echo "configure: failed program was" >&5
29918 cat conftest.s >&5
29920 rm -f conftest.o conftest.s
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29924 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29925 if test $gcc_cv_as_gnu_unique_object = yes; then
29926 # We need to unquote above to to use the definition from config.gcc.
29927 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29929 if test $glibc_version_major -gt 2 \
29930 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29931 enable_gnu_unique_object=yes
29938 if test x$enable_gnu_unique_object = xyes; then
29940 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29945 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29946 if ${gcc_cv_as_line_zero+:} false; then :
29947 $as_echo_n "(cached) " >&6
29948 else
29949 gcc_cv_as_line_zero=no
29950 if test "x$gcc_cv_as" != x; then
29951 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29952 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29954 (eval $ac_try) 2>&5
29955 ac_status=$?
29956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29957 test $ac_status = 0; }; } &&
29958 test "x`cat conftest.out`" = x
29959 then
29960 gcc_cv_as_line_zero=yes
29961 else
29962 echo "configure: failed program was" >&5
29963 cat conftest.s >&5
29964 echo "configure: error output was" >&5
29965 cat conftest.out >&5
29967 rm -f conftest.o conftest.s conftest.out
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29971 $as_echo "$gcc_cv_as_line_zero" >&6; }
29972 if test "x$gcc_cv_as_line_zero" = xyes; then
29974 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29979 $as_echo_n "checking support for thin archives... " >&6; }
29980 thin_archive_support=no
29981 echo 'int main (void) { return 0; }' > conftest.c
29982 if ($AR --version | sed 1q | grep "GNU ar" \
29983 && $CC $CFLAGS -c conftest.c \
29984 && $AR rcT conftest.a conftest.o \
29985 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29986 thin_archive_support=yes
29988 rm -f conftest.c conftest.o conftest.a conftest
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29990 $as_echo "$thin_archive_support" >&6; }
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29994 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29995 gcc_cv_ld_eh_frame_hdr=no
29996 if test $in_tree_ld = yes ; then
29997 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 \
29998 && test $in_tree_ld_is_elf = yes; then
29999 gcc_cv_ld_eh_frame_hdr=yes
30001 elif test x$gcc_cv_ld != x; then
30002 if echo "$ld_ver" | grep GNU > /dev/null; then
30003 # Check if linker supports --eh-frame-hdr option
30004 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30005 gcc_cv_ld_eh_frame_hdr=yes
30007 else
30008 case "$target" in
30009 *-*-solaris2*)
30010 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30011 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30012 gcc_cv_ld_eh_frame_hdr=yes
30015 esac
30019 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30021 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30025 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30028 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30029 gcc_cv_ld_eh_frame_ciev3=no
30030 if test $in_tree_ld = yes ; then
30031 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 \
30032 && test $in_tree_ld_is_elf = yes; then
30033 gcc_cv_ld_eh_frame_ciev3=yes
30035 elif test x$gcc_cv_ld != x; then
30036 if echo "$ld_ver" | grep GNU > /dev/null; then
30037 gcc_cv_ld_eh_frame_ciev3=yes
30038 if test 0"$ld_date" -lt 20040513; then
30039 if test -n "$ld_date"; then
30040 # If there was date string, but was earlier than 2004-05-13, fail
30041 gcc_cv_ld_eh_frame_ciev3=no
30042 elif test "$ld_vers_major" -lt 2; then
30043 gcc_cv_ld_eh_frame_ciev3=no
30044 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30045 gcc_cv_ld_eh_frame_ciev3=no
30048 else
30049 case "$target" in
30050 *-*-solaris2*)
30051 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30052 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30053 gcc_cv_ld_eh_frame_ciev3=yes
30056 esac
30060 cat >>confdefs.h <<_ACEOF
30061 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30062 _ACEOF
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30065 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30068 $as_echo_n "checking linker position independent executable support... " >&6; }
30069 gcc_cv_ld_pie=no
30070 if test $in_tree_ld = yes ; then
30071 case "$target" in
30072 # Full PIE support on Solaris was only introduced in gld 2.26.
30073 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30074 *) gcc_gld_pie_min_version=15 ;;
30075 esac
30076 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 \
30077 && test $in_tree_ld_is_elf = yes; then
30078 gcc_cv_ld_pie=yes
30080 elif test x$gcc_cv_ld != x; then
30081 # Check if linker supports -pie option
30082 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30083 gcc_cv_ld_pie=yes
30084 case "$target" in
30085 *-*-solaris2*)
30086 if echo "$ld_ver" | grep GNU > /dev/null \
30087 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30088 gcc_cv_ld_pie=no
30091 esac
30092 else
30093 case "$target" in
30094 *-*-solaris2.1[1-9]*)
30095 # Solaris 11.3 added PIE support.
30096 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30097 gcc_cv_ld_pie=yes
30100 esac
30103 if test x"$gcc_cv_ld_pie" = xyes; then
30105 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30109 $as_echo "$gcc_cv_ld_pie" >&6; }
30111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30112 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30113 gcc_cv_ld_pie_copyreloc=no
30114 if test $gcc_cv_ld_pie = yes ; then
30115 if test $in_tree_ld = yes ; then
30116 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
30117 gcc_cv_ld_pie_copyreloc=yes
30119 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30120 # Check if linker supports -pie option with copy reloc
30121 case "$target" in
30122 i?86-*-linux* | x86_64-*-linux*)
30123 cat > conftest1.s <<EOF
30124 .globl a_glob
30125 .data
30126 .type a_glob, @object
30127 .size a_glob, 4
30128 a_glob:
30129 .long 2
30131 cat > conftest2.s <<EOF
30132 .text
30133 .globl main
30134 .type main, @function
30135 main:
30136 movl %eax, a_glob(%rip)
30137 .size main, .-main
30138 .globl ptr
30139 .section .data.rel,"aw",@progbits
30140 .type ptr, @object
30141 ptr:
30142 .quad a_glob
30144 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30145 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30146 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30147 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30148 gcc_cv_ld_pie_copyreloc=yes
30150 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30152 esac
30156 cat >>confdefs.h <<_ACEOF
30157 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30158 _ACEOF
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30161 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30164 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30165 gcc_cv_ld_eh_gc_sections=no
30166 if test $in_tree_ld = yes ; then
30167 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 \
30168 && test $in_tree_ld_is_elf = yes; then
30169 gcc_cv_ld_eh_gc_sections=yes
30171 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30172 cat > conftest.s <<EOF
30173 .section .text
30174 .globl _start
30175 .type _start, @function
30176 _start:
30177 .long foo
30178 .size _start, .-_start
30179 .section .text.foo,"ax",@progbits
30180 .type foo, @function
30181 foo:
30182 .long 0
30183 .size foo, .-foo
30184 .section .gcc_except_table.foo,"a",@progbits
30185 .L0:
30186 .long 0
30187 .section .eh_frame,"a",@progbits
30188 .long .L0
30190 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30191 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30192 | grep "gc-sections option ignored" > /dev/null; then
30193 gcc_cv_ld_eh_gc_sections=no
30194 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30195 | grep gcc_except_table > /dev/null; then
30196 gcc_cv_ld_eh_gc_sections=yes
30197 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30198 if test x$gcc_cv_as_comdat_group != xyes; then
30199 gcc_cv_ld_eh_gc_sections=no
30200 cat > conftest.s <<EOF
30201 .section .text
30202 .globl _start
30203 .type _start, @function
30204 _start:
30205 .long foo
30206 .size _start, .-_start
30207 .section .gnu.linkonce.t.foo,"ax",@progbits
30208 .type foo, @function
30209 foo:
30210 .long 0
30211 .size foo, .-foo
30212 .section .gcc_except_table.foo,"a",@progbits
30213 .L0:
30214 .long 0
30215 .section .eh_frame,"a",@progbits
30216 .long .L0
30218 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30219 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30220 | grep "gc-sections option ignored" > /dev/null; then
30221 gcc_cv_ld_eh_gc_sections=no
30222 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30223 | grep gcc_except_table > /dev/null; then
30224 gcc_cv_ld_eh_gc_sections=yes
30230 rm -f conftest.s conftest.o conftest
30232 case "$target" in
30233 hppa*-*-linux*)
30234 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30235 gcc_cv_ld_eh_gc_sections=no
30237 esac
30238 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30240 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30244 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30247 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30248 gcc_cv_ld_eh_gc_sections_bug=no
30249 if test $in_tree_ld = yes ; then
30250 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 \
30251 && test $in_tree_ld_is_elf = yes; then
30252 gcc_cv_ld_eh_gc_sections_bug=yes
30254 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
30255 gcc_cv_ld_eh_gc_sections_bug=yes
30256 cat > conftest.s <<EOF
30257 .section .text
30258 .globl _start
30259 .type _start, @function
30260 _start:
30261 .long foo
30262 .size _start, .-_start
30263 .section .text.startup.foo,"ax",@progbits
30264 .type foo, @function
30265 foo:
30266 .long 0
30267 .size foo, .-foo
30268 .section .gcc_except_table.foo,"a",@progbits
30269 .L0:
30270 .long 0
30271 .section .eh_frame,"a",@progbits
30272 .long .L0
30274 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30275 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30276 | grep "gc-sections option ignored" > /dev/null; then
30278 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30279 | grep gcc_except_table > /dev/null; then
30280 gcc_cv_ld_eh_gc_sections_bug=no
30283 rm -f conftest.s conftest.o conftest
30285 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30287 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30291 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30294 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30295 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30296 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30297 gcc_cv_ld_compress_debug=1
30298 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30299 # Detect zstd debug section compression support
30300 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30301 gcc_cv_ld_compress_debug=2
30303 else
30304 case "${target}" in
30305 *-*-solaris2*)
30306 # Introduced in Solaris 11.2.
30307 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30308 gcc_cv_ld_compress_debug=1
30309 gcc_cv_ld_compress_debug_option="-z compress-sections"
30310 else
30311 gcc_cv_ld_compress_debug=0
30315 # Assume linkers other than GNU ld don't support compessed debug
30316 # sections.
30317 gcc_cv_ld_compress_debug=0
30319 esac
30322 cat >>confdefs.h <<_ACEOF
30323 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30324 _ACEOF
30327 cat >>confdefs.h <<_ACEOF
30328 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30329 _ACEOF
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30332 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30334 if test x"$ld64_flag" = x"yes"; then
30336 # Set defaults for possibly untestable items.
30337 gcc_cv_ld64_export_dynamic=0
30338 gcc_cv_ld64_platform_version=0
30340 if test "$build" = "$host"; then
30341 darwin_try_test=1
30342 else
30343 darwin_try_test=0
30346 # On Darwin, because of FAT library support, it is often possible to execute
30347 # exes from compatible archs even when the host differs from the build system.
30348 case "$build","$host" in
30349 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30350 darwin_try_test=1;;
30351 *) ;;
30352 esac
30354 # If the configurer specified a minimum ld64 version to be supported, then use
30355 # that to determine feature support.
30356 if test x"${gcc_cv_ld64_version}" != x; then
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30358 $as_echo_n "checking ld64 specified version... " >&6; }
30359 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30361 $as_echo "$gcc_cv_ld64_major" >&6; }
30362 if test "$gcc_cv_ld64_major" -ge 236; then
30363 gcc_cv_ld64_export_dynamic=1
30365 if test "$gcc_cv_ld64_major" -ge 512; then
30366 gcc_cv_ld64_platform_version=1
30368 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30369 # If the version was not specified, try to find it.
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30371 $as_echo_n "checking linker version... " >&6; }
30372 if test x"${gcc_cv_ld64_version}" = x; then
30373 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30376 $as_echo "$gcc_cv_ld64_version" >&6; }
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30379 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30380 gcc_cv_ld64_export_dynamic=1
30381 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30382 gcc_cv_ld64_export_dynamic=0
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30385 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30388 $as_echo_n "checking linker for -platform_version support... " >&6; }
30389 gcc_cv_ld64_platform_version=1
30390 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30391 gcc_cv_ld64_platform_version=0
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30394 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30397 if test x"${gcc_cv_ld64_version}" != x; then
30399 cat >>confdefs.h <<_ACEOF
30400 #define LD64_VERSION "${gcc_cv_ld64_version}"
30401 _ACEOF
30406 cat >>confdefs.h <<_ACEOF
30407 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30408 _ACEOF
30412 cat >>confdefs.h <<_ACEOF
30413 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30414 _ACEOF
30418 if test x"$dsymutil_flag" = x"yes"; then
30420 # If the user specified a dsymutil path, then we will already have the
30421 # version string, otherwise, pick it up.
30422 if test x"$gcc_cv_dsymutil" = x; then
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30424 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30425 dsymutil_vers="tool unspecified"
30426 elif test x"$dsymutil_vers" = x; then
30427 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30430 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30432 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30433 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30434 dsymutil_kind=DWARFUTILS
30435 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30436 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30437 dsymutil_kind=CLANG
30438 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30439 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30440 dsymutil_kind=LLVM
30441 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30442 else
30443 dsymutil_kind=UNKNOWN
30444 dsymutil_vers="0.0"
30446 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30447 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30448 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30449 if test x"${dsymutil_minor}" = x; then
30450 dsymutil_minor=0
30452 if test x"${dsymutil_tiny}" = x; then
30453 dsymutil_tiny=0
30456 cat >>confdefs.h <<_ACEOF
30457 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30458 _ACEOF
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30461 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30464 case $target_os in
30465 win32 | pe | cygwin* | mingw32*)
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30467 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30468 gcc_cv_ld_broken_pe_dwarf5=yes
30469 if test $in_tree_ld = yes ; then
30470 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30471 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30472 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30473 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30474 gcc_cv_ld_broken_pe_dwarf5=no
30476 else
30477 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30478 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30479 gcc_cv_ld_broken_pe_dwarf5=no
30482 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30484 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30488 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30491 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30492 gcc_cv_ld_disable_dynamicbase=no
30493 if test $in_tree_ld = yes; then
30494 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 \
30495 gcc_cv_ld_disable_dynamicbase=yes
30497 else
30498 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30499 gcc_cv_ld_disable_dynamicbase=yes
30502 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30504 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30508 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30510 esac
30512 # --------
30513 # UNSORTED
30514 # --------
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30517 $as_echo_n "checking linker --as-needed support... " >&6; }
30518 if ${gcc_cv_ld_as_needed+:} false; then :
30519 $as_echo_n "(cached) " >&6
30520 else
30521 gcc_cv_ld_as_needed=no
30522 gcc_cv_ld_as_needed_option='--as-needed'
30523 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30524 if test $in_tree_ld = yes ; then
30525 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 \
30526 && test $in_tree_ld_is_elf = yes; then
30527 gcc_cv_ld_as_needed=yes
30528 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30529 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30530 gcc_cv_ld_no_as_needed_option='--pop-state'
30533 elif test x$gcc_cv_ld != x; then
30534 # Check if linker supports --as-needed and --no-as-needed options
30535 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30536 gcc_cv_ld_as_needed=yes
30537 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30538 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30539 && echo "$ld_ver" | grep GNU > /dev/null \
30540 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30541 # Use these options only when both ld.bfd and ld.gold support
30542 # --push-state/--pop-state, which unfortunately wasn't added
30543 # at the same time.
30544 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30545 gcc_cv_ld_no_as_needed_option='--pop-state'
30548 case "$target:$gnu_ld" in
30549 *-*-solaris2*:no)
30550 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30551 # forms.
30552 gcc_cv_ld_as_needed=yes
30553 gcc_cv_ld_as_needed_option="-z ignore"
30554 gcc_cv_ld_no_as_needed_option="-z record"
30556 esac
30558 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30559 # dl_iterate_phdr, i.e. since Solaris 11.
30560 case "$target" in
30561 *-*-solaris2.1[1-9]*)
30562 case "$target" in
30563 i?86-*-* | x86_64-*-*)
30564 if echo "$ld_ver" | grep GNU > /dev/null; then
30565 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30566 gcc_cv_ld_as_needed=no
30569 esac
30571 *-*-solaris2*)
30572 gcc_cv_ld_as_needed=no
30574 esac
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30578 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30579 if test x"$gcc_cv_ld_as_needed" = xyes; then
30581 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30584 cat >>confdefs.h <<_ACEOF
30585 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30586 _ACEOF
30589 cat >>confdefs.h <<_ACEOF
30590 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30591 _ACEOF
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30596 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30597 saved_LDFLAGS="$LDFLAGS"
30598 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30599 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30601 /* end confdefs.h. */
30602 int main(void) {return 0;}
30603 _ACEOF
30604 if ac_fn_cxx_try_link "$LINENO"; then :
30605 gcc_cv_ld_clearcap=yes; break
30606 else
30607 gcc_cv_ld_clearcap=no
30609 rm -f core conftest.err conftest.$ac_objext \
30610 conftest$ac_exeext conftest.$ac_ext
30611 done
30612 LDFLAGS="$saved_LDFLAGS"
30613 if test "x$gcc_cv_ld_clearcap" = xyes; then
30615 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30617 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30621 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30623 case "$target" in
30624 powerpc*-*-*)
30625 case "$target" in
30626 *le-*-linux*)
30627 emul_name="-melf32lppc"
30630 emul_name="-melf32ppc"
30632 esac
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30634 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30635 if ${gcc_cv_ld_ppc_attr+:} false; then :
30636 $as_echo_n "(cached) " >&6
30637 else
30638 gcc_cv_ld_ppc_attr=no
30639 if test x"$ld_is_gold" = xyes; then
30640 gcc_cv_ld_ppc_attr=yes
30641 elif test $in_tree_ld = yes ; then
30642 if test "$gcc_cv_gld_major_version" -eq 2 \
30643 -a "$gcc_cv_gld_minor_version" -ge 28 \
30644 -o "$gcc_cv_gld_major_version" -gt 2; then
30645 gcc_cv_ld_ppc_attr=yes
30647 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30648 # check that merging the long double .gnu_attribute doesn't warn
30649 cat > conftest1.s <<EOF
30650 .gnu_attribute 4,1
30652 cat > conftest2.s <<EOF
30653 .gnu_attribute 4,9
30655 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30656 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30657 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30658 && test ! -s conftest.err; then
30659 gcc_cv_ld_ppc_attr=yes
30661 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30666 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30667 if test x$gcc_cv_ld_ppc_attr = xyes; then
30669 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30673 esac
30675 case "$target:$tm_file" in
30676 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30677 case "$target" in
30678 *le-*-linux*)
30679 emul_name="-melf64lppc"
30681 *-*-linux*)
30682 emul_name="-melf64ppc"
30684 *le-*-freebsd*)
30685 emul_name="-melf64lppc_fbsd"
30687 *-*-freebsd*)
30688 emul_name="-melf64ppc_fbsd"
30690 esac
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30692 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30693 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30694 $as_echo_n "(cached) " >&6
30695 else
30696 gcc_cv_ld_no_dot_syms=no
30697 if test x"$ld_is_gold" = xyes; then
30698 gcc_cv_ld_no_dot_syms=yes
30699 elif test $in_tree_ld = yes ; then
30700 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
30701 gcc_cv_ld_no_dot_syms=yes
30703 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30704 cat > conftest1.s <<EOF
30705 .text
30706 bl .foo
30708 cat > conftest2.s <<EOF
30709 .section ".opd","aw"
30710 .align 3
30711 .globl foo
30712 .type foo,@function
30713 foo:
30714 .quad .LEfoo,.TOC.@tocbase,0
30715 .text
30716 .LEfoo:
30718 .size foo,.-.LEfoo
30720 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30721 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30722 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30723 gcc_cv_ld_no_dot_syms=yes
30725 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30730 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30731 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30733 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30738 $as_echo_n "checking linker large toc support... " >&6; }
30739 if ${gcc_cv_ld_large_toc+:} false; then :
30740 $as_echo_n "(cached) " >&6
30741 else
30742 gcc_cv_ld_large_toc=no
30743 if test x"$ld_is_gold" = xyes; then
30744 gcc_cv_ld_large_toc=yes
30745 elif test $in_tree_ld = yes ; then
30746 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
30747 gcc_cv_ld_large_toc=yes
30749 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30750 cat > conftest.s <<EOF
30751 .section ".tbss","awT",@nobits
30752 .align 3
30753 ie0: .space 8
30754 .global _start
30755 .text
30756 _start:
30757 addis 9,13,ie0@got@tprel@ha
30758 ld 9,ie0@got@tprel@l(9)
30760 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30761 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30762 gcc_cv_ld_large_toc=yes
30764 rm -f conftest conftest.o conftest.s
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30769 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30770 if test x"$gcc_cv_ld_large_toc" = xyes; then
30772 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30777 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30778 if ${gcc_cv_ld_toc_align+:} false; then :
30779 $as_echo_n "(cached) " >&6
30780 else
30781 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30782 cat > conftest.s <<EOF
30783 .global _start
30784 .text
30785 _start:
30786 addis 9,2,x@got@ha
30787 .section .data.rel.ro,"aw",@progbits
30788 .p2align 16
30789 .space 32768
30790 x: .quad .TOC.
30792 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30793 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30794 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)) }'`
30796 rm -f conftest conftest.o conftest.s
30800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30801 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30802 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30804 cat >>confdefs.h <<_ACEOF
30805 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30806 _ACEOF
30810 esac
30812 case "$target" in
30813 *-*-aix*)
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30815 $as_echo_n "checking linker large toc support... " >&6; }
30816 if ${gcc_cv_ld_large_toc+:} false; then :
30817 $as_echo_n "(cached) " >&6
30818 else
30819 gcc_cv_ld_large_toc=no
30820 if test x$gcc_cv_as != x ; then
30821 cat > conftest.s <<EOF
30822 .toc
30823 LC..1:
30824 .tc a[TC],a[RW]
30825 .extern a[RW]
30826 .csect .text[PR]
30827 .largetoctest:
30828 addis 9,LC..1@u(2)
30829 ld 3,LC..1@l(9)
30831 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30832 gcc_cv_ld_large_toc=yes
30834 rm -f conftest conftest.o conftest.s
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30839 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30840 if test x"$gcc_cv_ld_large_toc" = xyes; then
30842 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30846 esac
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30849 $as_echo_n "checking linker --build-id support... " >&6; }
30850 if ${gcc_cv_ld_buildid+:} false; then :
30851 $as_echo_n "(cached) " >&6
30852 else
30853 gcc_cv_ld_buildid=no
30854 if test $in_tree_ld = yes ; then
30855 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30856 "$gcc_cv_gld_minor_version" -ge 18 -o \
30857 "$gcc_cv_gld_major_version" -gt 2 \
30858 && test $in_tree_ld_is_elf = yes; then
30859 gcc_cv_ld_buildid=yes
30861 elif test x$gcc_cv_ld != x; then
30862 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30863 gcc_cv_ld_buildid=yes
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30868 $as_echo "$gcc_cv_ld_buildid" >&6; }
30869 if test x"$gcc_cv_ld_buildid" = xyes; then
30871 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30875 # Check whether --enable-linker-build-id was given.
30876 if test "${enable_linker_build_id+set}" = set; then :
30877 enableval=$enable_linker_build_id;
30878 else
30879 enable_linker_build_id=no
30883 if test x"$enable_linker_build_id" = xyes; then
30884 if test x"$gcc_cv_ld_buildid" = xyes; then
30886 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30888 else
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30890 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30894 # In binutils 2.21, GNU ld gained support for new emulations fully
30895 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30897 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30898 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30899 $as_echo_n "(cached) " >&6
30900 else
30901 gcc_cv_ld_sol2_emulation=no
30902 if test $in_tree_ld = yes ; then
30903 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30904 "$gcc_cv_gld_minor_version" -ge 21 -o \
30905 "$gcc_cv_gld_major_version" -gt 2 \
30906 && test $in_tree_ld_is_elf = yes; then
30907 gcc_cv_ld_sol2_emulation=yes
30909 elif test x$gcc_cv_ld != x; then
30910 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30911 grep _sol2 > /dev/null; then
30912 gcc_cv_ld_sol2_emulation=yes
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30917 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30918 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30920 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30925 $as_echo_n "checking linker --sysroot support... " >&6; }
30926 if ${gcc_cv_ld_sysroot+:} false; then :
30927 $as_echo_n "(cached) " >&6
30928 else
30929 gcc_cv_ld_sysroot=no
30930 if test $in_tree_ld = yes ; then
30931 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
30932 gcc_cv_ld_sysroot=yes
30934 elif test x$gcc_cv_ld != x; then
30935 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30936 gcc_cv_ld_sysroot=yes
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30941 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30942 if test x"$gcc_cv_ld_sysroot" = xyes; then
30944 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30948 case $target in
30949 *-*-solaris2*)
30950 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30952 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30953 if ${gcc_cv_solaris_crts+:} false; then :
30954 $as_echo_n "(cached) " >&6
30955 else
30956 gcc_cv_solaris_crts=no
30957 if test x$host != x$target; then
30958 if test "x$with_sysroot" = xyes; then
30959 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30960 else
30961 target_sysroot="${with_sysroot}"
30964 target_libdir="$target_sysroot/usr/lib"
30965 # At the time they were added, gcrt1.o became a symlink for backwards
30966 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30967 case $target in
30968 i?86-*-solaris2* | x86_64-*-solaris2*)
30969 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30971 sparc*-*-solaris2*)
30972 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30974 esac
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30977 $as_echo "$gcc_cv_solaris_crts" >&6; }
30979 esac
30980 if test x$gcc_cv_solaris_crts = xyes; then
30982 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30986 # Check whether --enable-libssp was given.
30987 if test "${enable_libssp+set}" = set; then :
30988 enableval=$enable_libssp; case "${enableval}" in
30989 yes|no)
30992 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30994 esac
30998 # Test for stack protector support in target C library.
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31000 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31001 if ${gcc_cv_libc_provides_ssp+:} false; then :
31002 $as_echo_n "(cached) " >&6
31003 else
31004 gcc_cv_libc_provides_ssp=no
31005 if test "x$enable_libssp" = "xno"; then
31006 gcc_cv_libc_provides_ssp=yes
31007 elif test "x$enable_libssp" = "xyes"; then
31008 gcc_cv_libc_provides_ssp=no
31009 else
31010 case "$target" in
31011 *-*-musl*)
31012 # All versions of musl provide stack protector
31013 gcc_cv_libc_provides_ssp=yes;;
31014 *-*-linux* | *-*-kfreebsd*-gnu)
31015 # glibc 2.4 and later provides __stack_chk_fail and
31016 # either __stack_chk_guard, or TLS access to stack guard canary.
31018 if test $glibc_version_major -gt 2 \
31019 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31020 gcc_cv_libc_provides_ssp=yes
31021 else
31023 if test -f $target_header_dir/features.h \
31024 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31025 $target_header_dir/features.h > /dev/null; then
31026 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31027 $target_header_dir/features.h > /dev/null && \
31028 test -f $target_header_dir/bits/uClibc_config.h && \
31029 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31030 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31031 gcc_cv_libc_provides_ssp=yes
31033 # all versions of Bionic support stack protector
31034 elif test -f $target_header_dir/sys/cdefs.h \
31035 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31036 $target_header_dir/sys/cdefs.h > /dev/null; then
31037 gcc_cv_libc_provides_ssp=yes
31041 *-*-gnu*)
31042 # Avoid complicated tests (see
31043 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31044 # simply assert that glibc does provide this, which is true for all
31045 # realistically usable GNU/Hurd configurations.
31046 # All supported versions of musl provide it as well
31047 gcc_cv_libc_provides_ssp=yes;;
31048 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31049 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31050 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31051 gcc_cv_libc_provides_ssp=yes
31052 else
31053 echo "no __stack_chk_fail on this target"
31057 *) gcc_cv_libc_provides_ssp=no ;;
31058 esac
31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31062 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31064 if test x$gcc_cv_libc_provides_ssp = xyes; then
31066 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31070 # Check whether --enable-default-ssp was given.
31071 # Check whether --enable-default-ssp was given.
31072 if test "${enable_default_ssp+set}" = set; then :
31073 enableval=$enable_default_ssp;
31074 if test x$gcc_cv_libc_provides_ssp = xyes; then
31075 case "$target" in
31076 ia64*-*-*) enable_default_ssp=no ;;
31077 *) enable_default_ssp=$enableval ;;
31078 esac
31079 else
31080 enable_default_ssp=no
31082 else
31083 enable_default_ssp=no
31086 if test x$enable_default_ssp = xyes ; then
31088 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31093 # Test for <sys/sdt.h> on the target.
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31096 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31097 if ${gcc_cv_sys_sdt_h+:} false; then :
31098 $as_echo_n "(cached) " >&6
31099 else
31101 gcc_cv_sys_sdt_h=no
31102 if test -f $target_header_dir/sys/sdt.h; then
31103 gcc_cv_sys_sdt_h=yes
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31108 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31109 if test x$gcc_cv_sys_sdt_h = xyes; then :
31112 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31117 # Check if TFmode long double should be used by default or not.
31118 # Some glibc targets used DFmode long double, but with glibc 2.4
31119 # and later they can use TFmode.
31120 case "$target" in
31121 powerpc*-*-linux* | \
31122 sparc*-*-linux* | \
31123 s390*-*-linux* | \
31124 alpha*-*-linux*)
31126 # Check whether --with-long-double-128 was given.
31127 if test "${with_long_double_128+set}" = set; then :
31128 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31129 else
31131 case "$target" in
31132 s390*-*-linux-musl*)
31133 gcc_cv_target_ldbl128=yes
31135 powerpc*-*-linux-musl*)
31136 gcc_cv_target_ldbl128=no
31140 if test $glibc_version_major -gt 2 \
31141 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31142 gcc_cv_target_ldbl128=yes
31143 else
31145 gcc_cv_target_ldbl128=no
31146 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31147 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31148 && gcc_cv_target_ldbl128=yes
31153 esac
31158 esac
31159 if test x$gcc_cv_target_ldbl128 = xyes; then
31161 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31165 # Check if TFmode long double target should use the IBM extended double or IEEE
31166 # 128-bit floating point formats if long doubles are 128-bits long. The long
31167 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31168 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31169 # libgcc.
31171 # Check whether --with-long-double-format was given.
31172 if test "${with_long_double_format+set}" = set; then :
31173 withval=$with_long_double_format;
31174 case "$target:$with_long_double_format" in
31175 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31178 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31179 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31180 case "$with_cpu" in
31181 power7 | power8 | power9 | power1*)
31185 as_fn_error $? "Configuration option --with-long-double-format is only \
31186 supported if the default cpu is power7 or newer" "$LINENO" 5
31187 with_long_double_format=""
31189 esac
31191 powerpc64*-*-linux*:*)
31192 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31193 with_long_double_format=""
31196 as_fn_error $? "Configure option --with-long-double-format is only supported \
31197 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31198 with_long_double_format=""
31200 esac
31204 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31205 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31206 gcc_cv_libc_provides_hwcap_in_tcb=no
31207 case "$target" in
31208 powerpc*-*-linux*)
31210 if test $glibc_version_major -gt 2 \
31211 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31212 gcc_cv_libc_provides_hwcap_in_tcb=yes
31215 esac
31216 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31218 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31222 # Check if the target LIBC handles PT_GNU_STACK.
31223 gcc_cv_libc_gnustack=unknown
31224 case "$target" in
31225 mips*-*-linux-musl*)
31226 gcc_cv_libc_gnustack=yes
31228 mips*-*-linux*)
31230 if test $glibc_version_major -gt 2 \
31231 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31232 gcc_cv_libc_gnustack=yes
31235 esac
31236 if test x$gcc_cv_libc_gnustack = xyes; then
31238 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31243 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31244 gcc_cv_target_dl_iterate_phdr=unknown
31245 case "$target" in
31246 *-*-solaris2*)
31247 # <link.h> needs both a dl_iterate_phdr declaration and support for
31248 # compilation with largefile support.
31249 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31250 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31251 gcc_cv_target_dl_iterate_phdr=yes
31252 else
31253 gcc_cv_target_dl_iterate_phdr=no
31256 *-*-dragonfly* | *-*-freebsd*)
31257 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31258 gcc_cv_target_dl_iterate_phdr=yes
31259 else
31260 gcc_cv_target_dl_iterate_phdr=no
31263 *-linux-musl*)
31264 gcc_cv_target_dl_iterate_phdr=yes
31266 esac
31268 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31270 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31274 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31276 # We no longer support different GC mechanisms. Emit an error if
31277 # the user configures with --with-gc.
31279 # Check whether --with-gc was given.
31280 if test "${with_gc+set}" = set; then :
31281 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31285 # Libraries to use on the host. This will normally be set by the top
31286 # level Makefile. Here we simply capture the value for our Makefile.
31287 if test -z "${HOST_LIBS+set}"; then
31288 HOST_LIBS=
31292 # Use the system's zlib library.
31294 # Use the system's zlib library.
31295 zlibdir="-L\$(top_builddir)/../zlib"
31296 zlibinc="-I\$(top_srcdir)/../zlib"
31298 # Check whether --with-system-zlib was given.
31299 if test "${with_system_zlib+set}" = set; then :
31300 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31301 zlibdir=
31302 zlibinc=
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31313 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31314 # Check whether --enable-maintainer-mode was given.
31315 if test "${enable_maintainer_mode+set}" = set; then :
31316 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31317 else
31318 maintainer_mode=no
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31323 $as_echo "$maintainer_mode" >&6; }
31325 if test "$maintainer_mode" = "yes"; then
31326 MAINT=''
31327 else
31328 MAINT='#'
31331 if test -z "$CTAGS"; then
31332 CTAGS=ctags
31335 if test -z "$ETAGS"; then
31336 ETAGS=etags
31339 if test -z "$CSCOPE"; then
31340 CSCOPE=cscope
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31346 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31347 # Check whether --enable-link-mutex was given.
31348 if test "${enable_link_mutex+set}" = set; then :
31349 enableval=$enable_link_mutex; do_link_mutex=$enableval
31350 else
31351 do_link_mutex=no
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31355 $as_echo "$do_link_mutex" >&6; }
31357 if test "$do_link_mutex" = "yes"; then
31358 DO_LINK_MUTEX=true
31359 else
31360 DO_LINK_MUTEX=false
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31366 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31367 # Check whether --enable-link-serialization was given.
31368 if test "${enable_link_serialization+set}" = set; then :
31369 enableval=$enable_link_serialization; do_link_serialization=$enableval
31370 else
31371 do_link_serialization=no
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31375 $as_echo "$do_link_serialization" >&6; }
31377 case "$do_link_serialization" in
31378 yes)
31379 DO_LINK_SERIALIZATION=1;;
31380 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31381 DO_LINK_SERIALIZATION=$do_link_serialization;;
31383 DO_LINK_SERIALIZATION=;;
31385 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31386 esac
31389 # --------------
31390 # Language hooks
31391 # --------------
31393 # Make empty files to contain the specs and options for each language.
31394 # Then add #include lines to for a compiler that has specs and/or options.
31396 subdirs=
31397 lang_opt_files=
31398 lang_specs_files=
31399 lang_tree_files=
31400 # These (without "all_") are set in each config-lang.in.
31401 # `language' must be a single word so is spelled singularly.
31402 all_languages=
31403 all_compilers=
31404 all_outputs='Makefile'
31405 # List of language configure and makefile fragments.
31406 all_lang_configurefrags=
31407 all_lang_makefrags=
31408 # Additional files for gengtype
31409 all_gtfiles="$target_gtfiles"
31411 # These are the languages that are set in --enable-languages,
31412 # and are available in the GCC tree.
31413 all_selected_languages=
31415 # Add the language fragments.
31416 # Languages are added via two mechanisms. Some information must be
31417 # recorded in makefile variables, these are defined in config-lang.in.
31418 # We accumulate them and plug them into the main Makefile.
31419 # The other mechanism is a set of hooks for each of the main targets
31420 # like `clean', `install', etc.
31422 language_hooks="Make-hooks"
31424 for lang in ${srcdir}/*/config-lang.in
31426 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31428 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31429 if test "x$lang_alias" = x
31430 then
31431 echo "$lang doesn't set \$language." 1>&2
31432 exit 1
31434 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31435 subdirs="$subdirs $subdir"
31437 # $gcc_subdir is where the gcc integration files are to be found
31438 # for a language, both for internal compiler purposes (compiler
31439 # sources implementing front-end to GCC tree converters), and for
31440 # build infrastructure purposes (Make-lang.in, etc.)
31442 # This will be <subdir> (relative to $srcdir) if a line like
31443 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31444 # is found in <langdir>/config-lang.in, and will remain <langdir>
31445 # otherwise.
31447 # Except for the language alias (fetched above), the regular
31448 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31449 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31450 # only this and the language alias.
31452 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31453 if [ "$gcc_subdir" = "" ]; then
31454 gcc_subdir="$subdir"
31457 case ",$enable_languages," in
31458 *,$lang_alias,*)
31459 all_selected_languages="$all_selected_languages $lang_alias"
31460 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31461 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31464 esac
31466 language=
31467 boot_language=
31468 compilers=
31469 outputs=
31470 gtfiles=
31471 subdir_requires=
31472 . ${srcdir}/$gcc_subdir/config-lang.in
31473 if test "x$language" = x
31474 then
31475 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31476 exit 1
31479 ok=:
31480 case ",$enable_languages," in
31481 *,$lang_alias,*) ;;
31483 for i in $subdir_requires; do
31484 test -f "${srcdir}/$i/config-lang.in" && continue
31485 ok=false
31486 break
31487 done
31489 esac
31490 $ok || continue
31492 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31493 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31494 # Put c/Make-lang.in fragment first to match serialization languages order.
31495 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31496 else
31497 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31499 if test -f $srcdir/$gcc_subdir/lang.opt; then
31500 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31501 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31503 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31504 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31506 all_languages="$all_languages $language"
31507 all_compilers="$all_compilers $compilers"
31508 all_outputs="$all_outputs $outputs"
31509 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31510 case ",$enable_languages," in
31511 *,lto,*)
31513 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31515 enable_lto=yes
31518 *) ;;
31519 esac
31520 done
31522 check_languages=
31523 for language in $all_selected_languages
31525 check_languages="$check_languages check-$language"
31526 done
31528 selftest_languages=
31529 for language in $all_selected_languages
31531 selftest_languages="$selftest_languages selftest-$language"
31532 done
31534 # We link each language in with a set of hooks, reached indirectly via
31535 # lang.${target}. Only do so for selected languages.
31537 rm -f Make-hooks
31538 touch Make-hooks
31539 target_list="all.cross start.encap rest.encap tags \
31540 install-common install-man install-info install-dvi install-pdf \
31541 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31542 mostlyclean clean distclean maintainer-clean install-plugin"
31544 for t in $target_list
31547 for lang in $all_selected_languages
31549 x="$x $lang.$t"
31550 done
31551 echo "lang.$t: $x" >> Make-hooks
31552 done
31554 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31555 echo "SERIAL_LIST =" >> Make-hooks
31556 echo else >> Make-hooks
31557 lang_cnt=0
31558 lang_list=
31559 prev=c
31560 serialization_languages=c
31561 for lang in $all_selected_languages
31563 test $lang = c && continue
31564 if test $lang = lto; then
31565 serialization_languages="$serialization_languages lto1 lto2"
31566 else
31567 serialization_languages="$serialization_languages $lang"
31569 done
31570 for lang in $serialization_languages
31572 test $lang = c && continue
31573 lang_cnt=`expr $lang_cnt + 1`
31574 lang_list=" $prev$lang_list"
31575 prev=${lang}
31576 done
31577 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31578 echo endif >> Make-hooks
31579 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31580 echo "INDEX.c = 0" >> Make-hooks
31581 lang_idx=1
31582 for lang in $serialization_languages
31584 test $lang = c && continue
31585 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31586 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31587 lang_cnt=`expr $lang_cnt - 1`
31588 lang_idx=`expr $lang_idx + 1`
31589 done
31591 # --------
31592 # Option include files
31593 # --------
31595 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31596 option_includes="option-includes.mk"
31599 # --------
31600 # UNSORTED
31601 # --------
31603 # Create .gdbinit.
31605 echo "dir ." > .gdbinit
31606 echo "dir ${srcdir}" >> .gdbinit
31607 if test x$gdb_needs_out_file_path = xyes
31608 then
31609 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31611 if test "x$subdirs" != x; then
31612 for s in $subdirs
31614 echo "dir ${srcdir}/$s" >> .gdbinit
31615 done
31617 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31618 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31620 # Put a breakpoint on __asan_report_error to help with debugging buffer
31621 # overflow.
31622 case "$CFLAGS" in
31623 *-fsanitize=address*)
31624 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31626 esac
31628 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31632 # Find a directory in which to install a shared libgcc.
31634 # Check whether --enable-version-specific-runtime-libs was given.
31635 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31636 enableval=$enable_version_specific_runtime_libs;
31640 # Substitute configuration variables
31710 # Echo link setup.
31711 if test x${build} = x${host} ; then
31712 if test x${host} = x${target} ; then
31713 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31714 else
31715 echo "Links are now set up to build a cross-compiler" 1>&2
31716 echo " from ${host} to ${target}." 1>&2
31718 else
31719 if test x${host} = x${target} ; then
31720 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31721 echo " for ${target}." 1>&2
31722 else
31723 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31724 echo " from ${host} to ${target}." 1>&2
31733 if test "x${ISLLIBS}" != "x" ; then
31735 $as_echo "#define HAVE_isl 1" >>confdefs.h
31739 # Check for plugin support
31740 # Check whether --enable-plugin was given.
31741 if test "${enable_plugin+set}" = set; then :
31742 enableval=$enable_plugin; enable_plugin=$enableval
31743 else
31744 enable_plugin=yes; default_plugin=yes
31748 pluginlibs=
31749 plugin_check=yes
31751 case "${host}" in
31752 *-*-mingw*)
31753 # Since plugin support under MinGW is not as straightforward as on
31754 # other platforms (e.g., we have to link import library, etc), we
31755 # only enable it if explicitly requested.
31756 if test x"$default_plugin" = x"yes"; then
31757 enable_plugin=no
31758 elif test x"$enable_plugin" = x"yes"; then
31759 # Use make's target variable to derive import library name.
31760 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31761 plugin_check=no
31764 *-*-darwin*)
31765 if test x$build = x$host; then
31766 export_sym_check="nm${exeext} -g"
31767 elif test x$host = x$target; then
31768 export_sym_check="$gcc_cv_nm -g"
31769 else
31770 export_sym_check=
31774 if test x$build = x$host; then
31775 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31776 elif test x$host = x$target; then
31777 export_sym_check="$gcc_cv_objdump -T"
31778 else
31779 export_sym_check=
31782 esac
31784 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31787 $as_echo_n "checking for exported symbols... " >&6; }
31788 if test "x$export_sym_check" != x; then
31789 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31790 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31791 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31792 : # No need to use a flag
31793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31794 $as_echo "yes" >&6; }
31795 else
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31797 $as_echo "yes" >&6; }
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31799 $as_echo_n "checking for -rdynamic... " >&6; }
31800 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31801 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31802 plugin_rdynamic=yes
31803 pluginlibs="-rdynamic"
31804 else
31805 plugin_rdynamic=no
31806 enable_plugin=no
31808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31809 $as_echo "$plugin_rdynamic" >&6; }
31811 else
31812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31813 $as_echo "unable to check" >&6; }
31816 # Check -ldl
31817 saved_LIBS="$LIBS"
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31819 $as_echo_n "checking for library containing dlopen... " >&6; }
31820 if ${ac_cv_search_dlopen+:} false; then :
31821 $as_echo_n "(cached) " >&6
31822 else
31823 ac_func_search_save_LIBS=$LIBS
31824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31825 /* end confdefs.h. */
31827 /* Override any GCC internal prototype to avoid an error.
31828 Use char because int might match the return type of a GCC
31829 builtin and then its argument prototype would still apply. */
31830 #ifdef __cplusplus
31831 extern "C"
31832 #endif
31833 char dlopen ();
31835 main ()
31837 return dlopen ();
31839 return 0;
31841 _ACEOF
31842 for ac_lib in '' dl; do
31843 if test -z "$ac_lib"; then
31844 ac_res="none required"
31845 else
31846 ac_res=-l$ac_lib
31847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31849 if ac_fn_cxx_try_link "$LINENO"; then :
31850 ac_cv_search_dlopen=$ac_res
31852 rm -f core conftest.err conftest.$ac_objext \
31853 conftest$ac_exeext
31854 if ${ac_cv_search_dlopen+:} false; then :
31855 break
31857 done
31858 if ${ac_cv_search_dlopen+:} false; then :
31860 else
31861 ac_cv_search_dlopen=no
31863 rm conftest.$ac_ext
31864 LIBS=$ac_func_search_save_LIBS
31866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31867 $as_echo "$ac_cv_search_dlopen" >&6; }
31868 ac_res=$ac_cv_search_dlopen
31869 if test "$ac_res" != no; then :
31870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31874 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31875 pluginlibs="$pluginlibs -ldl"
31877 LIBS="$saved_LIBS"
31879 # Check that we can build shared objects with -fPIC -shared
31880 saved_LDFLAGS="$LDFLAGS"
31881 saved_CFLAGS="$CFLAGS"
31882 saved_CXXFLAGS="$CXXFLAGS"
31883 case "${host}" in
31884 *-*-darwin*)
31885 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31886 CFLAGS="$CFLAGS -fPIC"
31887 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31888 CXXFLAGS="$CXXFLAGS -fPIC"
31889 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31892 CFLAGS="$CFLAGS -fPIC"
31893 CXXFLAGS="$CXXFLAGS -fPIC"
31894 LDFLAGS="$LDFLAGS -fPIC -shared"
31896 esac
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31898 $as_echo_n "checking for -fPIC -shared... " >&6; }
31899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31900 /* end confdefs.h. */
31901 extern int X;
31903 main ()
31905 return X == 0;
31907 return 0;
31909 _ACEOF
31910 if ac_fn_cxx_try_link "$LINENO"; then :
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31912 $as_echo "yes" >&6; }; have_pic_shared=yes
31913 else
31914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31915 $as_echo "no" >&6; }; have_pic_shared=no
31917 rm -f core conftest.err conftest.$ac_objext \
31918 conftest$ac_exeext conftest.$ac_ext
31919 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31920 pluginlibs=
31921 enable_plugin=no
31923 LDFLAGS="$saved_LDFLAGS"
31924 CFLAGS="$saved_CFLAGS"
31925 CXXFLAGS="$saved_CXXFLAGS"
31927 # If plugin support had been requested but not available, fail.
31928 if test x"$enable_plugin" = x"no" ; then
31929 if test x"$default_plugin" != x"yes"; then
31930 as_fn_error $? "
31931 Building GCC with plugin support requires a host that supports
31932 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31939 if test x"$enable_plugin" = x"yes"; then
31941 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31946 # Enable --enable-host-shared
31947 # Check whether --enable-host-shared was given.
31948 if test "${enable_host_shared+set}" = set; then :
31949 enableval=$enable_host_shared; PICFLAG=-fPIC
31950 else
31951 PICFLAG=
31958 # Check whether --enable-libquadmath-support was given.
31959 if test "${enable_libquadmath_support+set}" = set; then :
31960 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31961 else
31962 ENABLE_LIBQUADMATH_SUPPORT=yes
31965 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31967 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31972 # Specify what hash style to use by default.
31974 # Check whether --with-linker-hash-style was given.
31975 if test "${with_linker_hash_style+set}" = set; then :
31976 withval=$with_linker_hash_style; case x"$withval" in
31977 xsysv)
31978 LINKER_HASH_STYLE=sysv
31980 xgnu)
31981 LINKER_HASH_STYLE=gnu
31983 xboth)
31984 LINKER_HASH_STYLE=both
31987 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31989 esac
31990 else
31991 LINKER_HASH_STYLE=''
31994 if test x"${LINKER_HASH_STYLE}" != x; then
31996 cat >>confdefs.h <<_ACEOF
31997 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31998 _ACEOF
32002 # Specify what should be the default of -fdiagnostics-color option.
32004 # Check whether --with-diagnostics-color was given.
32005 if test "${with_diagnostics_color+set}" = set; then :
32006 withval=$with_diagnostics_color; case x"$withval" in
32007 xnever)
32008 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32010 xauto)
32011 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32013 xauto-if-env)
32014 DIAGNOSTICS_COLOR_DEFAULT=-1
32016 xalways)
32017 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32020 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32022 esac
32023 else
32024 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32028 cat >>confdefs.h <<_ACEOF
32029 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32030 _ACEOF
32033 # Specify what should be the default of -fdiagnostics-urls option.
32035 # Check whether --with-diagnostics-urls was given.
32036 if test "${with_diagnostics_urls+set}" = set; then :
32037 withval=$with_diagnostics_urls; case x"$withval" in
32038 xnever)
32039 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32041 xauto)
32042 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32044 xauto-if-env)
32045 DIAGNOSTICS_URLS_DEFAULT=-1
32047 xalways)
32048 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32051 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32053 esac
32054 else
32055 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32059 cat >>confdefs.h <<_ACEOF
32060 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32061 _ACEOF
32064 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32065 # of jit/jit-playback.cc.
32066 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32067 echo "gcc_driver_version: ${gcc_driver_version}"
32068 cat > gcc-driver-name.h <<EOF
32069 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32072 # Check whether --enable-default-pie was given.
32073 # Check whether --enable-default-pie was given.
32074 if test "${enable_default_pie+set}" = set; then :
32075 enableval=$enable_default_pie; enable_default_pie=$enableval
32076 else
32077 enable_default_pie=no
32080 if test x$enable_default_pie = xyes ; then
32082 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32087 # Check if -fno-PIE works.
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32089 $as_echo_n "checking for -fno-PIE option... " >&6; }
32090 if ${gcc_cv_c_no_fpie+:} false; then :
32091 $as_echo_n "(cached) " >&6
32092 else
32093 saved_CXXFLAGS="$CXXFLAGS"
32094 CXXFLAGS="$CXXFLAGS -fno-PIE"
32095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32096 /* end confdefs.h. */
32097 int main(void) {return 0;}
32098 _ACEOF
32099 if ac_fn_cxx_try_compile "$LINENO"; then :
32100 gcc_cv_c_no_fpie=yes
32101 else
32102 gcc_cv_c_no_fpie=no
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 CXXFLAGS="$saved_CXXFLAGS"
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32108 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32109 if test "$gcc_cv_c_no_fpie" = "yes"; then
32110 NO_PIE_CFLAGS="-fno-PIE"
32114 # Check if -no-pie works.
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32116 $as_echo_n "checking for -no-pie option... " >&6; }
32117 if ${gcc_cv_no_pie+:} false; then :
32118 $as_echo_n "(cached) " >&6
32119 else
32120 saved_LDFLAGS="$LDFLAGS"
32121 LDFLAGS="$LDFLAGS -no-pie"
32122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32123 /* end confdefs.h. */
32124 int main(void) {return 0;}
32125 _ACEOF
32126 if ac_fn_cxx_try_link "$LINENO"; then :
32127 gcc_cv_no_pie=yes
32128 else
32129 gcc_cv_no_pie=no
32131 rm -f core conftest.err conftest.$ac_objext \
32132 conftest$ac_exeext conftest.$ac_ext
32133 LDFLAGS="$saved_LDFLAGS"
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32136 $as_echo "$gcc_cv_no_pie" >&6; }
32137 if test "$gcc_cv_no_pie" = "yes"; then
32138 NO_PIE_FLAG="-no-pie"
32142 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32143 # Check whether --enable-cet was given.
32144 if test "${enable_cet+set}" = set; then :
32145 enableval=$enable_cet;
32146 case "$enableval" in
32147 yes|no|auto) ;;
32148 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32149 esac
32151 else
32152 enable_cet=auto
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32157 $as_echo_n "checking for CET support... " >&6; }
32159 case "$host" in
32160 i[34567]86-*-linux* | x86_64-*-linux*)
32161 may_have_cet=yes
32162 cet_save_CFLAGS="$CFLAGS"
32163 CFLAGS="$CFLAGS -fcf-protection"
32164 case "$enable_cet" in
32165 auto)
32166 # Check if target supports multi-byte NOPs
32167 # and if compiler and assembler support CET.
32168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32169 /* end confdefs.h. */
32172 main ()
32175 #if !defined(__SSE2__)
32176 #error target does not support multi-byte NOPs
32177 #else
32178 asm ("setssbsy");
32179 #endif
32182 return 0;
32184 _ACEOF
32185 if ac_fn_cxx_try_compile "$LINENO"; then :
32186 enable_cet=yes
32187 else
32188 enable_cet=no
32190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32192 yes)
32193 # Check if compiler and assembler support CET.
32194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32195 /* end confdefs.h. */
32198 main ()
32200 asm ("setssbsy");
32202 return 0;
32204 _ACEOF
32205 if ac_fn_cxx_try_compile "$LINENO"; then :
32206 support_cet=yes
32207 else
32208 support_cet=no
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32211 if test $support_cet = "no"; then
32212 if test x$enable_bootstrap != xno \
32213 && test -z "${with_build_subdir}" \
32214 && (test ! -f ../stage_current \
32215 || test `cat ../stage_current` != "stage1"); then
32216 # Require CET support only for the final GCC build.
32217 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32218 else
32219 # Don't enable CET without CET support for non-bootstrap
32220 # build, in stage1 nor for build support.
32221 enable_cet=no
32225 esac
32226 CFLAGS="$cet_save_CFLAGS"
32229 may_have_cet=no
32230 enable_cet=no
32232 esac
32234 cet_save_CFLAGS="$CFLAGS"
32235 CFLAGS="$CFLAGS -fcf-protection=none"
32236 cet_save_LDFLAGS="$LDFLAGS"
32237 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32238 if test x$may_have_cet = xyes; then
32239 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32241 /* end confdefs.h. */
32244 main ()
32246 return 0;
32248 return 0;
32250 _ACEOF
32251 if ac_fn_cxx_try_link "$LINENO"; then :
32252 may_have_cet=yes
32253 else
32254 may_have_cet=no
32256 rm -f core conftest.err conftest.$ac_objext \
32257 conftest$ac_exeext conftest.$ac_ext
32260 if test x$may_have_cet = xyes; then
32261 if test x$cross_compiling = xno; then
32262 if test "$cross_compiling" = yes; then :
32263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32265 as_fn_error $? "cannot run test program while cross compiling
32266 See \`config.log' for more details" "$LINENO" 5; }
32267 else
32268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32269 /* end confdefs.h. */
32272 main ()
32274 asm ("endbr32");
32275 return 0;
32278 _ACEOF
32279 if ac_fn_cxx_try_run "$LINENO"; then :
32280 have_multi_byte_nop=yes
32281 else
32282 have_multi_byte_nop=no
32284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32285 conftest.$ac_objext conftest.beam conftest.$ac_ext
32288 have_cet=no
32289 if test x$have_multi_byte_nop = xyes; then
32290 if test "$cross_compiling" = yes; then :
32291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32293 as_fn_error $? "cannot run test program while cross compiling
32294 See \`config.log' for more details" "$LINENO" 5; }
32295 else
32296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32297 /* end confdefs.h. */
32299 static void
32300 foo (void)
32304 static void
32305 __attribute__ ((noinline, noclone))
32306 xxx (void (*f) (void))
32308 f ();
32311 static void
32312 __attribute__ ((noinline, noclone))
32313 bar (void)
32315 xxx (foo);
32319 main ()
32321 bar ();
32322 return 0;
32325 _ACEOF
32326 if ac_fn_cxx_try_run "$LINENO"; then :
32327 have_cet=no
32328 else
32329 have_cet=yes
32331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32332 conftest.$ac_objext conftest.beam conftest.$ac_ext
32336 if test x$enable_cet = xno -a x$have_cet = xyes; then
32337 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32340 else
32341 # Enable CET in cross compiler if possible so that it will run on both
32342 # CET and non-CET hosts.
32343 have_cet=yes
32345 if test x$enable_cet = xyes; then
32346 CET_HOST_FLAGS="-fcf-protection"
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32348 $as_echo "yes" >&6; }
32349 else
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 $as_echo "no" >&6; }
32353 CFLAGS="$cet_save_CFLAGS"
32354 LDFLAGS="$cet_save_LDFLAGS"
32356 case x$enable_languages in
32357 *jit*)
32360 CET_HOST_FLAGS=
32362 esac
32365 # Check linker supports '-z bndplt'
32366 ld_bndplt_support=no
32367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32368 $as_echo_n "checking linker -z bndplt option... " >&6; }
32369 if test x"$ld_is_gold" = xno; then
32370 if test $in_tree_ld = yes ; then
32371 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
32372 ld_bndplt_support=yes
32374 elif test x$gcc_cv_ld != x; then
32375 # Check if linker supports -a bndplt option
32376 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32377 ld_bndplt_support=yes
32381 if test x"$ld_bndplt_support" = xyes; then
32383 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32387 $as_echo "$ld_bndplt_support" >&6; }
32389 # Check linker supports '--push-state'/'--pop-state'
32390 ld_pushpopstate_support=no
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32392 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32393 if test x"$ld_is_gold" = xno; then
32394 if test $in_tree_ld = yes ; then
32395 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
32396 ld_pushpopstate_support=yes
32398 elif test x$gcc_cv_ld != x; then
32399 # Check if linker supports --push-state/--pop-state options
32400 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32401 ld_pushpopstate_support=yes
32405 if test x"$ld_pushpopstate_support" = xyes; then
32407 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32411 $as_echo "$ld_pushpopstate_support" >&6; }
32413 # On s390, float_t has historically been statically defined as double for no
32414 # good reason. To comply with the C standard in the light of this definition,
32415 # gcc has evaluated float expressions in double precision when in
32416 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32417 # a smooth transition towards the new model used by most architectures, where
32418 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32419 # float_t from that, this behavior can be configured with
32420 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32421 # the old model. When omitted, native builds and cross compiles that have target
32422 # libc headers will detect whether libc clamps float_t to double and in that
32423 # case maintain the old model. Otherwise, they will default to the new model.
32424 # Check whether --enable-s390-excess-float-precision was given.
32425 if test "${enable_s390_excess_float_precision+set}" = set; then :
32426 enableval=$enable_s390_excess_float_precision;
32427 else
32428 enable_s390_excess_float_precision=auto
32432 case $target in
32433 s390*-linux*)
32434 if test x"$enable_s390_excess_float_precision" = xauto; then
32435 # Can we autodetect the behavior of the target libc?
32436 if test "$target" = "$host" -a "$host" = "$build"; then
32437 enable_s390_excess_float_precision=autodetect
32438 elif test "x$with_headers" != xno; then
32439 # cross build. are target headers available?
32440 # carefully coerce the build-system compiler to use target headers
32441 saved_CXXFLAGS="$CXXFLAGS"
32442 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32443 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32444 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32446 /* end confdefs.h. */
32448 #include <math.h>
32450 _ACEOF
32451 if ac_fn_cxx_try_compile "$LINENO"; then :
32452 enable_s390_excess_float_precision=autodetect
32454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32455 CXXFLAGS="$saved_CXXFLAGS"
32458 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32459 saved_CXXFLAGS="$CXXFLAGS"
32460 if ! test "$target" = "$host" -a "$host" = "$build"; then
32461 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32462 unset CROSS_TEST_CXXFLAGS
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32465 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32466 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32467 $as_echo_n "(cached) " >&6
32468 else
32470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32471 /* end confdefs.h. */
32473 #define __FLT_EVAL_METHOD__ 0
32474 #include <math.h>
32475 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32477 _ACEOF
32478 if ac_fn_cxx_try_compile "$LINENO"; then :
32479 gcc_cv_float_t_clamped_to_double=yes
32480 else
32481 gcc_cv_float_t_clamped_to_double=no
32483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32486 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32487 CXXFLAGS="$saved_CXXFLAGS"
32488 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32489 else
32490 # no way to detect behavior of target libc, default to new model
32491 enable_s390_excess_float_precision=no
32496 if test x"$enable_s390_excess_float_precision" = xyes; then
32498 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32502 esac
32504 # Configure the subdirectories
32505 # AC_CONFIG_SUBDIRS($subdirs)
32507 # Create the Makefile
32508 # and configure language subdirectories
32509 ac_config_files="$ac_config_files $all_outputs"
32512 ac_config_commands="$ac_config_commands default"
32514 cat >confcache <<\_ACEOF
32515 # This file is a shell script that caches the results of configure
32516 # tests run on this system so they can be shared between configure
32517 # scripts and configure runs, see configure's option --config-cache.
32518 # It is not useful on other systems. If it contains results you don't
32519 # want to keep, you may remove or edit it.
32521 # config.status only pays attention to the cache file if you give it
32522 # the --recheck option to rerun configure.
32524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32526 # following values.
32528 _ACEOF
32530 # The following way of writing the cache mishandles newlines in values,
32531 # but we know of no workaround that is simple, portable, and efficient.
32532 # So, we kill variables containing newlines.
32533 # Ultrix sh set writes to stderr and can't be redirected directly,
32534 # and sets the high bit in the cache file unless we assign to the vars.
32536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32537 eval ac_val=\$$ac_var
32538 case $ac_val in #(
32539 *${as_nl}*)
32540 case $ac_var in #(
32541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32543 esac
32544 case $ac_var in #(
32545 _ | IFS | as_nl) ;; #(
32546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32547 *) { eval $ac_var=; unset $ac_var;} ;;
32548 esac ;;
32549 esac
32550 done
32552 (set) 2>&1 |
32553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32554 *${as_nl}ac_space=\ *)
32555 # `set' does not quote correctly, so add quotes: double-quote
32556 # substitution turns \\\\ into \\, and sed turns \\ into \.
32557 sed -n \
32558 "s/'/'\\\\''/g;
32559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32560 ;; #(
32562 # `set' quotes correctly as required by POSIX, so do not add quotes.
32563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32565 esac |
32566 sort
32568 sed '
32569 /^ac_cv_env_/b end
32570 t clear
32571 :clear
32572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32573 t end
32574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32575 :end' >>confcache
32576 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32577 if test -w "$cache_file"; then
32578 if test "x$cache_file" != "x/dev/null"; then
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32580 $as_echo "$as_me: updating cache $cache_file" >&6;}
32581 if test ! -f "$cache_file" || test -h "$cache_file"; then
32582 cat confcache >"$cache_file"
32583 else
32584 case $cache_file in #(
32585 */* | ?:*)
32586 mv -f confcache "$cache_file"$$ &&
32587 mv -f "$cache_file"$$ "$cache_file" ;; #(
32589 mv -f confcache "$cache_file" ;;
32590 esac
32593 else
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32595 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32598 rm -f confcache
32600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32601 # Let make expand exec_prefix.
32602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32604 DEFS=-DHAVE_CONFIG_H
32606 ac_libobjs=
32607 ac_ltlibobjs=
32609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32610 # 1. Remove the extension, and $U if already installed.
32611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32614 # will be set to the directory where LIBOBJS objects are built.
32615 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32616 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32617 done
32618 LIBOBJS=$ac_libobjs
32620 LTLIBOBJS=$ac_ltlibobjs
32625 : "${CONFIG_STATUS=./config.status}"
32626 ac_write_fail=0
32627 ac_clean_files_save=$ac_clean_files
32628 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32630 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32631 as_write_fail=0
32632 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32633 #! $SHELL
32634 # Generated by $as_me.
32635 # Run this file to recreate the current configuration.
32636 # Compiler output produced by configure, useful for debugging
32637 # configure, is in config.log if it exists.
32639 debug=false
32640 ac_cs_recheck=false
32641 ac_cs_silent=false
32643 SHELL=\${CONFIG_SHELL-$SHELL}
32644 export SHELL
32645 _ASEOF
32646 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32647 ## -------------------- ##
32648 ## M4sh Initialization. ##
32649 ## -------------------- ##
32651 # Be more Bourne compatible
32652 DUALCASE=1; export DUALCASE # for MKS sh
32653 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32654 emulate sh
32655 NULLCMD=:
32656 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32657 # is contrary to our usage. Disable this feature.
32658 alias -g '${1+"$@"}'='"$@"'
32659 setopt NO_GLOB_SUBST
32660 else
32661 case `(set -o) 2>/dev/null` in #(
32662 *posix*) :
32663 set -o posix ;; #(
32664 *) :
32666 esac
32670 as_nl='
32672 export as_nl
32673 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32674 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32677 # Prefer a ksh shell builtin over an external printf program on Solaris,
32678 # but without wasting forks for bash or zsh.
32679 if test -z "$BASH_VERSION$ZSH_VERSION" \
32680 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32681 as_echo='print -r --'
32682 as_echo_n='print -rn --'
32683 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32684 as_echo='printf %s\n'
32685 as_echo_n='printf %s'
32686 else
32687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32688 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32689 as_echo_n='/usr/ucb/echo -n'
32690 else
32691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32692 as_echo_n_body='eval
32693 arg=$1;
32694 case $arg in #(
32695 *"$as_nl"*)
32696 expr "X$arg" : "X\\(.*\\)$as_nl";
32697 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32698 esac;
32699 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32701 export as_echo_n_body
32702 as_echo_n='sh -c $as_echo_n_body as_echo'
32704 export as_echo_body
32705 as_echo='sh -c $as_echo_body as_echo'
32708 # The user is always right.
32709 if test "${PATH_SEPARATOR+set}" != set; then
32710 PATH_SEPARATOR=:
32711 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32712 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32713 PATH_SEPARATOR=';'
32718 # IFS
32719 # We need space, tab and new line, in precisely that order. Quoting is
32720 # there to prevent editors from complaining about space-tab.
32721 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32722 # splitting by setting IFS to empty value.)
32723 IFS=" "" $as_nl"
32725 # Find who we are. Look in the path if we contain no directory separator.
32726 as_myself=
32727 case $0 in #((
32728 *[\\/]* ) as_myself=$0 ;;
32729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32730 for as_dir in $PATH
32732 IFS=$as_save_IFS
32733 test -z "$as_dir" && as_dir=.
32734 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32735 done
32736 IFS=$as_save_IFS
32739 esac
32740 # We did not find ourselves, most probably we were run as `sh COMMAND'
32741 # in which case we are not to be found in the path.
32742 if test "x$as_myself" = x; then
32743 as_myself=$0
32745 if test ! -f "$as_myself"; then
32746 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32747 exit 1
32750 # Unset variables that we do not need and which cause bugs (e.g. in
32751 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32752 # suppresses any "Segmentation fault" message there. '((' could
32753 # trigger a bug in pdksh 5.2.14.
32754 for as_var in BASH_ENV ENV MAIL MAILPATH
32755 do eval test x\${$as_var+set} = xset \
32756 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32757 done
32758 PS1='$ '
32759 PS2='> '
32760 PS4='+ '
32762 # NLS nuisances.
32763 LC_ALL=C
32764 export LC_ALL
32765 LANGUAGE=C
32766 export LANGUAGE
32768 # CDPATH.
32769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32772 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32773 # ----------------------------------------
32774 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32775 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32776 # script with STATUS, using 1 if that was 0.
32777 as_fn_error ()
32779 as_status=$1; test $as_status -eq 0 && as_status=1
32780 if test "$4"; then
32781 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32782 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32784 $as_echo "$as_me: error: $2" >&2
32785 as_fn_exit $as_status
32786 } # as_fn_error
32789 # as_fn_set_status STATUS
32790 # -----------------------
32791 # Set $? to STATUS, without forking.
32792 as_fn_set_status ()
32794 return $1
32795 } # as_fn_set_status
32797 # as_fn_exit STATUS
32798 # -----------------
32799 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32800 as_fn_exit ()
32802 set +e
32803 as_fn_set_status $1
32804 exit $1
32805 } # as_fn_exit
32807 # as_fn_unset VAR
32808 # ---------------
32809 # Portably unset VAR.
32810 as_fn_unset ()
32812 { eval $1=; unset $1;}
32814 as_unset=as_fn_unset
32815 # as_fn_append VAR VALUE
32816 # ----------------------
32817 # Append the text in VALUE to the end of the definition contained in VAR. Take
32818 # advantage of any shell optimizations that allow amortized linear growth over
32819 # repeated appends, instead of the typical quadratic growth present in naive
32820 # implementations.
32821 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32822 eval 'as_fn_append ()
32824 eval $1+=\$2
32826 else
32827 as_fn_append ()
32829 eval $1=\$$1\$2
32831 fi # as_fn_append
32833 # as_fn_arith ARG...
32834 # ------------------
32835 # Perform arithmetic evaluation on the ARGs, and store the result in the
32836 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32837 # must be portable across $(()) and expr.
32838 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32839 eval 'as_fn_arith ()
32841 as_val=$(( $* ))
32843 else
32844 as_fn_arith ()
32846 as_val=`expr "$@" || test $? -eq 1`
32848 fi # as_fn_arith
32851 if expr a : '\(a\)' >/dev/null 2>&1 &&
32852 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32853 as_expr=expr
32854 else
32855 as_expr=false
32858 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32859 as_basename=basename
32860 else
32861 as_basename=false
32864 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32865 as_dirname=dirname
32866 else
32867 as_dirname=false
32870 as_me=`$as_basename -- "$0" ||
32871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32872 X"$0" : 'X\(//\)$' \| \
32873 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32874 $as_echo X/"$0" |
32875 sed '/^.*\/\([^/][^/]*\)\/*$/{
32876 s//\1/
32879 /^X\/\(\/\/\)$/{
32880 s//\1/
32883 /^X\/\(\/\).*/{
32884 s//\1/
32887 s/.*/./; q'`
32889 # Avoid depending upon Character Ranges.
32890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32893 as_cr_digits='0123456789'
32894 as_cr_alnum=$as_cr_Letters$as_cr_digits
32896 ECHO_C= ECHO_N= ECHO_T=
32897 case `echo -n x` in #(((((
32898 -n*)
32899 case `echo 'xy\c'` in
32900 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32901 xy) ECHO_C='\c';;
32902 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32903 ECHO_T=' ';;
32904 esac;;
32906 ECHO_N='-n';;
32907 esac
32909 rm -f conf$$ conf$$.exe conf$$.file
32910 if test -d conf$$.dir; then
32911 rm -f conf$$.dir/conf$$.file
32912 else
32913 rm -f conf$$.dir
32914 mkdir conf$$.dir 2>/dev/null
32916 if (echo >conf$$.file) 2>/dev/null; then
32917 if ln -s conf$$.file conf$$ 2>/dev/null; then
32918 as_ln_s='ln -s'
32919 # ... but there are two gotchas:
32920 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32921 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32922 # In both cases, we have to default to `cp -pR'.
32923 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32924 as_ln_s='cp -pR'
32925 elif ln conf$$.file conf$$ 2>/dev/null; then
32926 as_ln_s=ln
32927 else
32928 as_ln_s='cp -pR'
32930 else
32931 as_ln_s='cp -pR'
32933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32934 rmdir conf$$.dir 2>/dev/null
32937 # as_fn_mkdir_p
32938 # -------------
32939 # Create "$as_dir" as a directory, including parents if necessary.
32940 as_fn_mkdir_p ()
32943 case $as_dir in #(
32944 -*) as_dir=./$as_dir;;
32945 esac
32946 test -d "$as_dir" || eval $as_mkdir_p || {
32947 as_dirs=
32948 while :; do
32949 case $as_dir in #(
32950 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32951 *) as_qdir=$as_dir;;
32952 esac
32953 as_dirs="'$as_qdir' $as_dirs"
32954 as_dir=`$as_dirname -- "$as_dir" ||
32955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32956 X"$as_dir" : 'X\(//\)[^/]' \| \
32957 X"$as_dir" : 'X\(//\)$' \| \
32958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32959 $as_echo X"$as_dir" |
32960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32961 s//\1/
32964 /^X\(\/\/\)[^/].*/{
32965 s//\1/
32968 /^X\(\/\/\)$/{
32969 s//\1/
32972 /^X\(\/\).*/{
32973 s//\1/
32976 s/.*/./; q'`
32977 test -d "$as_dir" && break
32978 done
32979 test -z "$as_dirs" || eval "mkdir $as_dirs"
32980 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32983 } # as_fn_mkdir_p
32984 if mkdir -p . 2>/dev/null; then
32985 as_mkdir_p='mkdir -p "$as_dir"'
32986 else
32987 test -d ./-p && rmdir ./-p
32988 as_mkdir_p=false
32992 # as_fn_executable_p FILE
32993 # -----------------------
32994 # Test if FILE is an executable regular file.
32995 as_fn_executable_p ()
32997 test -f "$1" && test -x "$1"
32998 } # as_fn_executable_p
32999 as_test_x='test -x'
33000 as_executable_p=as_fn_executable_p
33002 # Sed expression to map a string onto a valid CPP name.
33003 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33005 # Sed expression to map a string onto a valid variable name.
33006 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33009 exec 6>&1
33010 ## ----------------------------------- ##
33011 ## Main body of $CONFIG_STATUS script. ##
33012 ## ----------------------------------- ##
33013 _ASEOF
33014 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33017 # Save the log message, to keep $0 and so on meaningful, and to
33018 # report actual input values of CONFIG_FILES etc. instead of their
33019 # values after options handling.
33020 ac_log="
33021 This file was extended by $as_me, which was
33022 generated by GNU Autoconf 2.69. Invocation command line was
33024 CONFIG_FILES = $CONFIG_FILES
33025 CONFIG_HEADERS = $CONFIG_HEADERS
33026 CONFIG_LINKS = $CONFIG_LINKS
33027 CONFIG_COMMANDS = $CONFIG_COMMANDS
33028 $ $0 $@
33030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33033 _ACEOF
33035 case $ac_config_files in *"
33036 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33037 esac
33039 case $ac_config_headers in *"
33040 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33041 esac
33044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33045 # Files that config.status was made for.
33046 config_files="$ac_config_files"
33047 config_headers="$ac_config_headers"
33048 config_links="$ac_config_links"
33049 config_commands="$ac_config_commands"
33051 _ACEOF
33053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33054 ac_cs_usage="\
33055 \`$as_me' instantiates files and other configuration actions
33056 from templates according to the current configuration. Unless the files
33057 and actions are specified as TAGs, all are instantiated by default.
33059 Usage: $0 [OPTION]... [TAG]...
33061 -h, --help print this help, then exit
33062 -V, --version print version number and configuration settings, then exit
33063 --config print configuration, then exit
33064 -q, --quiet, --silent
33065 do not print progress messages
33066 -d, --debug don't remove temporary files
33067 --recheck update $as_me by reconfiguring in the same conditions
33068 --file=FILE[:TEMPLATE]
33069 instantiate the configuration file FILE
33070 --header=FILE[:TEMPLATE]
33071 instantiate the configuration header FILE
33073 Configuration files:
33074 $config_files
33076 Configuration headers:
33077 $config_headers
33079 Configuration links:
33080 $config_links
33082 Configuration commands:
33083 $config_commands
33085 Report bugs to the package provider."
33087 _ACEOF
33088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33089 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33090 ac_cs_version="\\
33091 config.status
33092 configured by $0, generated by GNU Autoconf 2.69,
33093 with options \\"\$ac_cs_config\\"
33095 Copyright (C) 2012 Free Software Foundation, Inc.
33096 This config.status script is free software; the Free Software Foundation
33097 gives unlimited permission to copy, distribute and modify it."
33099 ac_pwd='$ac_pwd'
33100 srcdir='$srcdir'
33101 AWK='$AWK'
33102 test -n "\$AWK" || AWK=awk
33103 _ACEOF
33105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33106 # The default lists apply if the user does not specify any file.
33107 ac_need_defaults=:
33108 while test $# != 0
33110 case $1 in
33111 --*=?*)
33112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33113 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33114 ac_shift=:
33116 --*=)
33117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33118 ac_optarg=
33119 ac_shift=:
33122 ac_option=$1
33123 ac_optarg=$2
33124 ac_shift=shift
33126 esac
33128 case $ac_option in
33129 # Handling of the options.
33130 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33131 ac_cs_recheck=: ;;
33132 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33133 $as_echo "$ac_cs_version"; exit ;;
33134 --config | --confi | --conf | --con | --co | --c )
33135 $as_echo "$ac_cs_config"; exit ;;
33136 --debug | --debu | --deb | --de | --d | -d )
33137 debug=: ;;
33138 --file | --fil | --fi | --f )
33139 $ac_shift
33140 case $ac_optarg in
33141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33142 '') as_fn_error $? "missing file argument" ;;
33143 esac
33144 as_fn_append CONFIG_FILES " '$ac_optarg'"
33145 ac_need_defaults=false;;
33146 --header | --heade | --head | --hea )
33147 $ac_shift
33148 case $ac_optarg in
33149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33150 esac
33151 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33152 ac_need_defaults=false;;
33153 --he | --h)
33154 # Conflict between --help and --header
33155 as_fn_error $? "ambiguous option: \`$1'
33156 Try \`$0 --help' for more information.";;
33157 --help | --hel | -h )
33158 $as_echo "$ac_cs_usage"; exit ;;
33159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33161 ac_cs_silent=: ;;
33163 # This is an error.
33164 -*) as_fn_error $? "unrecognized option: \`$1'
33165 Try \`$0 --help' for more information." ;;
33167 *) as_fn_append ac_config_targets " $1"
33168 ac_need_defaults=false ;;
33170 esac
33171 shift
33172 done
33174 ac_configure_extra_args=
33176 if $ac_cs_silent; then
33177 exec 6>/dev/null
33178 ac_configure_extra_args="$ac_configure_extra_args --silent"
33181 _ACEOF
33182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33183 if \$ac_cs_recheck; then
33184 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33185 shift
33186 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33187 CONFIG_SHELL='$SHELL'
33188 export CONFIG_SHELL
33189 exec "\$@"
33192 _ACEOF
33193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33194 exec 5>>config.log
33196 echo
33197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33198 ## Running $as_me. ##
33199 _ASBOX
33200 $as_echo "$ac_log"
33201 } >&5
33203 _ACEOF
33204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33206 # INIT-COMMANDS
33208 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33209 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33210 subdirs='$subdirs'
33212 _ACEOF
33214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33216 # Handling of arguments.
33217 for ac_config_target in $ac_config_targets
33219 case $ac_config_target in
33220 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33221 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33222 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33223 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33224 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33225 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33226 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33227 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33228 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33229 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33231 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33232 esac
33233 done
33236 # If the user did not use the arguments to specify the items to instantiate,
33237 # then the envvar interface is used. Set only those that are not.
33238 # We use the long form for the default assignment because of an extremely
33239 # bizarre bug on SunOS 4.1.3.
33240 if $ac_need_defaults; then
33241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33243 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33247 # Have a temporary directory for convenience. Make it in the build tree
33248 # simply because there is no reason against having it here, and in addition,
33249 # creating and moving files from /tmp can sometimes cause problems.
33250 # Hook for its removal unless debugging.
33251 # Note that there is a small window in which the directory will not be cleaned:
33252 # after its creation but before its name has been assigned to `$tmp'.
33253 $debug ||
33255 tmp= ac_tmp=
33256 trap 'exit_status=$?
33257 : "${ac_tmp:=$tmp}"
33258 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33260 trap 'as_fn_exit 1' 1 2 13 15
33262 # Create a (secure) tmp directory for tmp files.
33265 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33266 test -d "$tmp"
33267 } ||
33269 tmp=./conf$$-$RANDOM
33270 (umask 077 && mkdir "$tmp")
33271 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33272 ac_tmp=$tmp
33274 # Set up the scripts for CONFIG_FILES section.
33275 # No need to generate them if there are no CONFIG_FILES.
33276 # This happens for instance with `./config.status config.h'.
33277 if test -n "$CONFIG_FILES"; then
33279 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33280 ac_cs_awk_getline=:
33281 ac_cs_awk_pipe_init=
33282 ac_cs_awk_read_file='
33283 while ((getline aline < (F[key])) > 0)
33284 print(aline)
33285 close(F[key])'
33286 ac_cs_awk_pipe_fini=
33287 else
33288 ac_cs_awk_getline=false
33289 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33290 ac_cs_awk_read_file='
33291 print "|#_!!_#|"
33292 print "cat " F[key] " &&"
33293 '$ac_cs_awk_pipe_init
33294 # The final `:' finishes the AND list.
33295 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33297 ac_cr=`echo X | tr X '\015'`
33298 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33299 # But we know of no other shell where ac_cr would be empty at this
33300 # point, so we can use a bashism as a fallback.
33301 if test "x$ac_cr" = x; then
33302 eval ac_cr=\$\'\\r\'
33304 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33305 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33306 ac_cs_awk_cr='\\r'
33307 else
33308 ac_cs_awk_cr=$ac_cr
33311 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33312 _ACEOF
33314 # Create commands to substitute file output variables.
33316 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33317 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33318 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33319 echo "_ACAWK" &&
33320 echo "_ACEOF"
33321 } >conf$$files.sh &&
33322 . ./conf$$files.sh ||
33323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33324 rm -f conf$$files.sh
33327 echo "cat >conf$$subs.awk <<_ACEOF" &&
33328 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33329 echo "_ACEOF"
33330 } >conf$$subs.sh ||
33331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33333 ac_delim='%!_!# '
33334 for ac_last_try in false false false false false :; do
33335 . ./conf$$subs.sh ||
33336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33338 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33339 if test $ac_delim_n = $ac_delim_num; then
33340 break
33341 elif $ac_last_try; then
33342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33343 else
33344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33346 done
33347 rm -f conf$$subs.sh
33349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33350 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33351 _ACEOF
33352 sed -n '
33354 s/^/S["/; s/!.*/"]=/
33357 s/^[^!]*!//
33358 :repl
33359 t repl
33360 s/'"$ac_delim"'$//
33361 t delim
33364 s/\(.\{148\}\)..*/\1/
33365 t more1
33366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33369 b repl
33370 :more1
33371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33374 s/.\{148\}//
33375 t nl
33376 :delim
33378 s/\(.\{148\}\)..*/\1/
33379 t more2
33380 s/["\\]/\\&/g; s/^/"/; s/$/"/
33383 :more2
33384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33387 s/.\{148\}//
33388 t delim
33389 ' <conf$$subs.awk | sed '
33390 /^[^""]/{
33392 s/\n//
33394 ' >>$CONFIG_STATUS || ac_write_fail=1
33395 rm -f conf$$subs.awk
33396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33397 _ACAWK
33398 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33399 for (key in S) S_is_set[key] = 1
33400 FS = "\a"
33401 \$ac_cs_awk_pipe_init
33404 line = $ 0
33405 nfields = split(line, field, "@")
33406 substed = 0
33407 len = length(field[1])
33408 for (i = 2; i < nfields; i++) {
33409 key = field[i]
33410 keylen = length(key)
33411 if (S_is_set[key]) {
33412 value = S[key]
33413 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33414 len += length(value) + length(field[++i])
33415 substed = 1
33416 } else
33417 len += 1 + keylen
33419 if (nfields == 3 && !substed) {
33420 key = field[2]
33421 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33422 \$ac_cs_awk_read_file
33423 next
33426 print line
33428 \$ac_cs_awk_pipe_fini
33429 _ACAWK
33430 _ACEOF
33431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33432 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33433 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33434 else
33436 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33437 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33438 _ACEOF
33440 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33441 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33442 # trailing colons and then remove the whole line if VPATH becomes empty
33443 # (actually we leave an empty line to preserve line numbers).
33444 if test "x$srcdir" = x.; then
33445 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33447 s///
33448 s/^/:/
33449 s/[ ]*$/:/
33450 s/:\$(srcdir):/:/g
33451 s/:\${srcdir}:/:/g
33452 s/:@srcdir@:/:/g
33453 s/^:*//
33454 s/:*$//
33456 s/\(=[ ]*\).*/\1/
33458 s/\n//
33459 s/^[^=]*=[ ]*$//
33463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33464 fi # test -n "$CONFIG_FILES"
33466 # Set up the scripts for CONFIG_HEADERS section.
33467 # No need to generate them if there are no CONFIG_HEADERS.
33468 # This happens for instance with `./config.status Makefile'.
33469 if test -n "$CONFIG_HEADERS"; then
33470 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33471 BEGIN {
33472 _ACEOF
33474 # Transform confdefs.h into an awk script `defines.awk', embedded as
33475 # here-document in config.status, that substitutes the proper values into
33476 # config.h.in to produce config.h.
33478 # Create a delimiter string that does not exist in confdefs.h, to ease
33479 # handling of long lines.
33480 ac_delim='%!_!# '
33481 for ac_last_try in false false :; do
33482 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33483 if test -z "$ac_tt"; then
33484 break
33485 elif $ac_last_try; then
33486 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33487 else
33488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33490 done
33492 # For the awk script, D is an array of macro values keyed by name,
33493 # likewise P contains macro parameters if any. Preserve backslash
33494 # newline sequences.
33496 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33497 sed -n '
33498 s/.\{148\}/&'"$ac_delim"'/g
33499 t rset
33500 :rset
33501 s/^[ ]*#[ ]*define[ ][ ]*/ /
33502 t def
33504 :def
33505 s/\\$//
33506 t bsnl
33507 s/["\\]/\\&/g
33508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33509 D["\1"]=" \3"/p
33510 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33512 :bsnl
33513 s/["\\]/\\&/g
33514 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33515 D["\1"]=" \3\\\\\\n"\\/p
33516 t cont
33517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33518 t cont
33520 :cont
33522 s/.\{148\}/&'"$ac_delim"'/g
33523 t clear
33524 :clear
33525 s/\\$//
33526 t bsnlc
33527 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33529 :bsnlc
33530 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33531 b cont
33532 ' <confdefs.h | sed '
33533 s/'"$ac_delim"'/"\\\
33534 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33537 for (key in D) D_is_set[key] = 1
33538 FS = "\a"
33540 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33541 line = \$ 0
33542 split(line, arg, " ")
33543 if (arg[1] == "#") {
33544 defundef = arg[2]
33545 mac1 = arg[3]
33546 } else {
33547 defundef = substr(arg[1], 2)
33548 mac1 = arg[2]
33550 split(mac1, mac2, "(") #)
33551 macro = mac2[1]
33552 prefix = substr(line, 1, index(line, defundef) - 1)
33553 if (D_is_set[macro]) {
33554 # Preserve the white space surrounding the "#".
33555 print prefix "define", macro P[macro] D[macro]
33556 next
33557 } else {
33558 # Replace #undef with comments. This is necessary, for example,
33559 # in the case of _POSIX_SOURCE, which is predefined and required
33560 # on some systems where configure will not decide to define it.
33561 if (defundef == "undef") {
33562 print "/*", prefix defundef, macro, "*/"
33563 next
33567 { print }
33568 _ACAWK
33569 _ACEOF
33570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33571 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33572 fi # test -n "$CONFIG_HEADERS"
33575 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33576 shift
33577 for ac_tag
33579 case $ac_tag in
33580 :[FHLC]) ac_mode=$ac_tag; continue;;
33581 esac
33582 case $ac_mode$ac_tag in
33583 :[FHL]*:*);;
33584 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33585 :[FH]-) ac_tag=-:-;;
33586 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33587 esac
33588 ac_save_IFS=$IFS
33589 IFS=:
33590 set x $ac_tag
33591 IFS=$ac_save_IFS
33592 shift
33593 ac_file=$1
33594 shift
33596 case $ac_mode in
33597 :L) ac_source=$1;;
33598 :[FH])
33599 ac_file_inputs=
33600 for ac_f
33602 case $ac_f in
33603 -) ac_f="$ac_tmp/stdin";;
33604 *) # Look for the file first in the build tree, then in the source tree
33605 # (if the path is not absolute). The absolute path cannot be DOS-style,
33606 # because $ac_f cannot contain `:'.
33607 test -f "$ac_f" ||
33608 case $ac_f in
33609 [\\/$]*) false;;
33610 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33611 esac ||
33612 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33613 esac
33614 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33615 as_fn_append ac_file_inputs " '$ac_f'"
33616 done
33618 # Let's still pretend it is `configure' which instantiates (i.e., don't
33619 # use $as_me), people would be surprised to read:
33620 # /* config.h. Generated by config.status. */
33621 configure_input='Generated from '`
33622 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33623 `' by configure.'
33624 if test x"$ac_file" != x-; then
33625 configure_input="$ac_file. $configure_input"
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33627 $as_echo "$as_me: creating $ac_file" >&6;}
33629 # Neutralize special characters interpreted by sed in replacement strings.
33630 case $configure_input in #(
33631 *\&* | *\|* | *\\* )
33632 ac_sed_conf_input=`$as_echo "$configure_input" |
33633 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33634 *) ac_sed_conf_input=$configure_input;;
33635 esac
33637 case $ac_tag in
33638 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33640 esac
33642 esac
33644 ac_dir=`$as_dirname -- "$ac_file" ||
33645 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33646 X"$ac_file" : 'X\(//\)[^/]' \| \
33647 X"$ac_file" : 'X\(//\)$' \| \
33648 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33649 $as_echo X"$ac_file" |
33650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33651 s//\1/
33654 /^X\(\/\/\)[^/].*/{
33655 s//\1/
33658 /^X\(\/\/\)$/{
33659 s//\1/
33662 /^X\(\/\).*/{
33663 s//\1/
33666 s/.*/./; q'`
33667 as_dir="$ac_dir"; as_fn_mkdir_p
33668 ac_builddir=.
33670 case "$ac_dir" in
33671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33674 # A ".." for each directory in $ac_dir_suffix.
33675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33676 case $ac_top_builddir_sub in
33677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33679 esac ;;
33680 esac
33681 ac_abs_top_builddir=$ac_pwd
33682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33683 # for backward compatibility:
33684 ac_top_builddir=$ac_top_build_prefix
33686 case $srcdir in
33687 .) # We are building in place.
33688 ac_srcdir=.
33689 ac_top_srcdir=$ac_top_builddir_sub
33690 ac_abs_top_srcdir=$ac_pwd ;;
33691 [\\/]* | ?:[\\/]* ) # Absolute name.
33692 ac_srcdir=$srcdir$ac_dir_suffix;
33693 ac_top_srcdir=$srcdir
33694 ac_abs_top_srcdir=$srcdir ;;
33695 *) # Relative name.
33696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33697 ac_top_srcdir=$ac_top_build_prefix$srcdir
33698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33699 esac
33700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33703 case $ac_mode in
33706 # CONFIG_FILE
33709 _ACEOF
33711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33712 # If the template does not know about datarootdir, expand it.
33713 # FIXME: This hack should be removed a few years after 2.60.
33714 ac_datarootdir_hack=; ac_datarootdir_seen=
33715 ac_sed_dataroot='
33716 /datarootdir/ {
33720 /@datadir@/p
33721 /@docdir@/p
33722 /@infodir@/p
33723 /@localedir@/p
33724 /@mandir@/p'
33725 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33726 *datarootdir*) ac_datarootdir_seen=yes;;
33727 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33729 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33730 _ACEOF
33731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33732 ac_datarootdir_hack='
33733 s&@datadir@&$datadir&g
33734 s&@docdir@&$docdir&g
33735 s&@infodir@&$infodir&g
33736 s&@localedir@&$localedir&g
33737 s&@mandir@&$mandir&g
33738 s&\\\${datarootdir}&$datarootdir&g' ;;
33739 esac
33740 _ACEOF
33742 # Neutralize VPATH when `$srcdir' = `.'.
33743 # Shell code in configure.ac might set extrasub.
33744 # FIXME: do we really want to maintain this feature?
33745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33746 ac_sed_extra="$ac_vpsub
33747 $extrasub
33748 _ACEOF
33749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33752 s|@configure_input@|$ac_sed_conf_input|;t t
33753 s&@top_builddir@&$ac_top_builddir_sub&;t t
33754 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33755 s&@srcdir@&$ac_srcdir&;t t
33756 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33757 s&@top_srcdir@&$ac_top_srcdir&;t t
33758 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33759 s&@builddir@&$ac_builddir&;t t
33760 s&@abs_builddir@&$ac_abs_builddir&;t t
33761 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33762 $ac_datarootdir_hack
33764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33765 if $ac_cs_awk_getline; then
33766 $AWK -f "$ac_tmp/subs.awk"
33767 else
33768 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33769 fi \
33770 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33773 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33775 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33777 which seems to be undefined. Please make sure it is defined" >&5
33778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33779 which seems to be undefined. Please make sure it is defined" >&2;}
33781 rm -f "$ac_tmp/stdin"
33782 case $ac_file in
33783 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33784 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33785 esac \
33786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33790 # CONFIG_HEADER
33792 if test x"$ac_file" != x-; then
33794 $as_echo "/* $configure_input */" \
33795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33796 } >"$ac_tmp/config.h" \
33797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33798 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33799 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33801 else
33802 rm -f "$ac_file"
33803 mv "$ac_tmp/config.h" "$ac_file" \
33804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33806 else
33807 $as_echo "/* $configure_input */" \
33808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33809 || as_fn_error $? "could not create -" "$LINENO" 5
33814 # CONFIG_LINK
33817 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33819 else
33820 # Prefer the file from the source tree if names are identical.
33821 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33822 ac_source=$srcdir/$ac_source
33825 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33826 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33828 if test ! -r "$ac_source"; then
33829 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33831 rm -f "$ac_file"
33833 # Try a relative symlink, then a hard link, then a copy.
33834 case $ac_source in
33835 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33836 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33837 esac
33838 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33839 ln "$ac_source" "$ac_file" 2>/dev/null ||
33840 cp -p "$ac_source" "$ac_file" ||
33841 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33844 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33845 $as_echo "$as_me: executing $ac_file commands" >&6;}
33847 esac
33850 case $ac_file$ac_mode in
33851 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33852 "gccdepdir":C)
33853 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33854 for lang in $subdirs c-family common analyzer rtl-ssa
33856 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33857 done ;;
33858 "as":F) chmod +x as ;;
33859 "collect-ld":F) chmod +x collect-ld ;;
33860 "nm":F) chmod +x nm ;;
33861 "dsymutil":F) chmod +x dsymutil ;;
33862 "default":C)
33863 case ${CONFIG_HEADERS} in
33864 *auto-host.h:config.in*)
33865 echo > cstamp-h ;;
33866 esac
33867 # Make sure all the subdirs exist.
33868 for d in $subdirs doc build common c-family
33870 test -d $d || mkdir $d
33871 done
33874 esac
33875 done # for ac_tag
33878 as_fn_exit 0
33879 _ACEOF
33880 ac_clean_files=$ac_clean_files_save
33882 test $ac_write_fail = 0 ||
33883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33886 # configure is writing to config.log, and then calls config.status.
33887 # config.status does its own redirection, appending to config.log.
33888 # Unfortunately, on DOS this fails, as config.log is still kept open
33889 # by configure, so config.status won't be able to write to it; its
33890 # output is simply discarded. So we exec the FD to /dev/null,
33891 # effectively closing config.log, so it can be properly (re)opened and
33892 # appended to by config.status. When coming back to configure, we
33893 # need to make the FD available again.
33894 if test "$no_create" != yes; then
33895 ac_cs_success=:
33896 ac_config_status_args=
33897 test "$silent" = yes &&
33898 ac_config_status_args="$ac_config_status_args --quiet"
33899 exec 5>/dev/null
33900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33901 exec 5>>config.log
33902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33903 # would make configure fail if this is the last instruction.
33904 $ac_cs_success || as_fn_exit 1
33906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}