Support TI mode and soft float on PA64
[official-gcc.git] / gcc / configure
blob920868bcd33d59b1abf346c851a3f6e613638dd0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 MAINT
718 zlibinc
719 zlibdir
720 HOST_LIBS
721 enable_default_ssp
722 thin_archive_support
723 ld_soname_option
724 ld_version_script_option
725 libgcc_visibility
726 ORIGINAL_DSYMUTIL_FOR_TARGET
727 gcc_cv_dsymutil
728 gcc_cv_otool
729 gcc_cv_readelf
730 gcc_cv_objdump
731 ORIGINAL_NM_FOR_TARGET
732 gcc_cv_nm
733 ORIGINAL_LD_GOLD_FOR_TARGET
734 ORIGINAL_LD_BFD_FOR_TARGET
735 ORIGINAL_LD_FOR_TARGET
736 ORIGINAL_PLUGIN_LD_FOR_TARGET
737 gcc_cv_ld
738 ORIGINAL_AS_FOR_TARGET
739 gcc_cv_as
740 enable_fast_install
741 objdir
742 OTOOL64
743 OTOOL
744 LIPO
745 NMEDIT
746 DSYMUTIL
747 STRIP
748 OBJDUMP
749 ac_ct_DUMPBIN
750 DUMPBIN
752 FGREP
754 LIBTOOL
755 collect2
756 STMP_FIXINC
757 BUILD_LDFLAGS
758 BUILD_CXXFLAGS
759 BUILD_CFLAGS
760 CXX_FOR_BUILD
761 CC_FOR_BUILD
762 inhibit_libc
763 BUILD_SYSTEM_HEADER_DIR
764 SYSTEM_HEADER_DIR
766 CROSS
767 CATOBJEXT
768 GENCAT
769 INSTOBJEXT
770 DATADIRNAME
771 CATALOGS
772 POSUB
773 GMSGFMT
774 XGETTEXT
775 INCINTL
776 LIBINTL_DEP
777 LIBINTL
778 USE_NLS
779 get_gcc_base_ver
780 HAVE_AUTO_BUILD
781 extra_opt_files
782 extra_modes_file
783 NATIVE_SYSTEM_HEADER_DIR
784 objext
785 manext
786 LIBICONV_DEP
787 LTLIBICONV
788 LIBICONV
789 ZSTD_LDFLAGS
790 ZSTD_CPPFLAGS
791 ZSTD_LIB
792 ZSTD_INCLUDE
793 DL_LIB
794 LDEXP_LIB
795 NETLIBS
796 EXTRA_GCC_LIBS
797 GNAT_LIBEXC
798 COLLECT2_LIBS
799 CXXDEPMODE
800 DEPDIR
801 am__leading_dot
802 doc_build_sys
805 BISON
806 FLEX
807 GENERATED_MANPAGES
808 BUILD_INFO
809 MAKEINFO
810 have_mktemp_command
811 make_compare_target
812 INSTALL_DATA
813 INSTALL_PROGRAM
814 INSTALL
815 ranlib_flags
816 RANLIB
818 LN_S
820 SET_MAKE
821 omp_device_property_deps
822 omp_device_properties
823 accel_dir_suffix
824 real_target_noncanonical
825 enable_as_accelerator
826 gnat_install_lib
827 REPORT_BUGS_TEXI
828 REPORT_BUGS_TO
829 PKGVERSION
830 CONFIGURE_SPECS
831 enable_gcov
832 enable_shared
833 enable_fixed_point
834 enable_decimal_float
835 with_float
836 with_cpu
837 enable_multiarch
838 enable_multilib
839 coverage_flags
840 valgrind_command
841 valgrind_path_defines
842 valgrind_path
843 TREECHECKING
844 nocommon_flag
845 noexception_flags
846 warn_cxxflags
847 warn_cflags
848 c_strict_warn
849 strict_warn
850 c_loose_warn
851 loose_warn
852 aliasing_flags
854 EGREP
855 GREP
856 CXXCPP
857 PICFLAG_FOR_TARGET
858 GNATMAKE
859 GNATBIND
860 ac_ct_CXX
861 CXXFLAGS
863 OBJEXT
864 EXEEXT
865 ac_ct_CC
866 CPPFLAGS
867 LDFLAGS
868 CFLAGS
870 GENINSRC
871 CROSS_SYSTEM_HEADER_DIR
872 TARGET_SYSTEM_ROOT_DEFINE
873 TARGET_SYSTEM_ROOT
874 SYSROOT_CFLAGS_FOR_TARGET
875 target_subdir
876 host_subdir
877 build_subdir
878 build_libsubdir
879 target_noncanonical
880 host_noncanonical
881 target_os
882 target_vendor
883 target_cpu
884 target
885 host_os
886 host_vendor
887 host_cpu
888 host
889 build_os
890 build_vendor
891 build_cpu
892 build
893 target_alias
894 host_alias
895 build_alias
896 LIBS
897 ECHO_T
898 ECHO_N
899 ECHO_C
900 DEFS
901 mandir
902 localedir
903 libdir
904 psdir
905 pdfdir
906 dvidir
907 htmldir
908 infodir
909 docdir
910 oldincludedir
911 includedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_URL
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL'
931 ac_subst_files='option_includes
932 language_hooks'
933 ac_user_opts='
934 enable_option_checking
935 with_build_libsubdir
936 with_local_prefix
937 with_native_system_header_dir
938 with_build_sysroot
939 with_sysroot
940 with_gxx_include_dir
941 with_gxx_libcxx_include_dir
942 with_cpp_install_dir
943 enable_generated_files_in_srcdir
944 with_gnu_ld
945 with_ld
946 with_demangler_in_ld
947 with_dsymutil
948 with_gnu_as
949 with_as
950 enable_largefile
951 enable_build_format_warnings
952 enable_werror_always
953 enable_checking
954 enable_coverage
955 enable_gather_detailed_mem_stats
956 enable_valgrind_annotations
957 enable_multilib
958 enable_multiarch
959 with_stack_clash_protection_guard_size
960 enable___cxa_atexit
961 enable_decimal_float
962 enable_fixed_point
963 enable_threads
964 enable_tls
965 enable_vtable_verify
966 enable_analyzer
967 enable_objc_gc
968 with_dwarf2
969 enable_shared
970 enable_gcov
971 with_specs
972 with_pkgversion
973 with_bugurl
974 with_documentation_root_url
975 with_changes_root_url
976 enable_languages
977 with_multilib_list
978 with_multilib_generator
979 with_zstd
980 with_zstd_include
981 with_zstd_lib
982 enable_rpath
983 with_libiconv_prefix
984 with_libiconv_type
985 enable_sjlj_exceptions
986 with_gcc_major_version_only
987 enable_secureplt
988 enable_mingw_wildcard
989 enable_large_address_aware
990 enable_leading_mingw64_underscores
991 enable_cld
992 enable_frame_pointer
993 enable_win32_registry
994 enable_static
995 with_pic
996 enable_fast_install
997 enable_libtool_lock
998 enable_ld
999 enable_gold
1000 with_plugin_ld
1001 enable_gnu_indirect_function
1002 enable_initfini_array
1003 enable_comdat
1004 enable_newlib_nano_formatted_io
1005 enable_standard_branch_protection
1006 enable_fix_cortex_a53_835769
1007 enable_fix_cortex_a53_843419
1008 with_glibc_version
1009 enable_gnu_unique_object
1010 enable_linker_build_id
1011 enable_libssp
1012 enable_default_ssp
1013 with_long_double_128
1014 with_long_double_format
1015 with_gc
1016 with_system_zlib
1017 enable_maintainer_mode
1018 enable_link_mutex
1019 enable_link_serialization
1020 enable_version_specific_runtime_libs
1021 enable_plugin
1022 enable_host_shared
1023 enable_libquadmath_support
1024 with_linker_hash_style
1025 with_diagnostics_color
1026 with_diagnostics_urls
1027 enable_default_pie
1028 enable_cet
1029 enable_s390_excess_float_precision
1031 ac_precious_vars='build_alias
1032 host_alias
1033 target_alias
1035 CFLAGS
1036 LDFLAGS
1037 LIBS
1038 CPPFLAGS
1040 CXXFLAGS
1042 CXXCPP
1044 GMPLIBS
1045 GMPINC
1046 ISLLIBS
1047 ISLINC'
1050 # Initialize some variables set by options.
1051 ac_init_help=
1052 ac_init_version=false
1053 ac_unrecognized_opts=
1054 ac_unrecognized_sep=
1055 # The variables have the same names as the options, with
1056 # dashes changed to underlines.
1057 cache_file=/dev/null
1058 exec_prefix=NONE
1059 no_create=
1060 no_recursion=
1061 prefix=NONE
1062 program_prefix=NONE
1063 program_suffix=NONE
1064 program_transform_name=s,x,x,
1065 silent=
1066 site=
1067 srcdir=
1068 verbose=
1069 x_includes=NONE
1070 x_libraries=NONE
1072 # Installation directory options.
1073 # These are left unexpanded so users can "make install exec_prefix=/foo"
1074 # and all the variables that are supposed to be based on exec_prefix
1075 # by default will actually change.
1076 # Use braces instead of parens because sh, perl, etc. also accept them.
1077 # (The list follows the same order as the GNU Coding Standards.)
1078 bindir='${exec_prefix}/bin'
1079 sbindir='${exec_prefix}/sbin'
1080 libexecdir='${exec_prefix}/libexec'
1081 datarootdir='${prefix}/share'
1082 datadir='${datarootdir}'
1083 sysconfdir='${prefix}/etc'
1084 sharedstatedir='${prefix}/com'
1085 localstatedir='${prefix}/var'
1086 includedir='${prefix}/include'
1087 oldincludedir='/usr/include'
1088 docdir='${datarootdir}/doc/${PACKAGE}'
1089 infodir='${datarootdir}/info'
1090 htmldir='${docdir}'
1091 dvidir='${docdir}'
1092 pdfdir='${docdir}'
1093 psdir='${docdir}'
1094 libdir='${exec_prefix}/lib'
1095 localedir='${datarootdir}/locale'
1096 mandir='${datarootdir}/man'
1098 ac_prev=
1099 ac_dashdash=
1100 for ac_option
1102 # If the previous option needs an argument, assign it.
1103 if test -n "$ac_prev"; then
1104 eval $ac_prev=\$ac_option
1105 ac_prev=
1106 continue
1109 case $ac_option in
1110 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1111 *=) ac_optarg= ;;
1112 *) ac_optarg=yes ;;
1113 esac
1115 # Accept the important Cygnus configure options, so we can diagnose typos.
1117 case $ac_dashdash$ac_option in
1119 ac_dashdash=yes ;;
1121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1122 ac_prev=bindir ;;
1123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1124 bindir=$ac_optarg ;;
1126 -build | --build | --buil | --bui | --bu)
1127 ac_prev=build_alias ;;
1128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1129 build_alias=$ac_optarg ;;
1131 -cache-file | --cache-file | --cache-fil | --cache-fi \
1132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1133 ac_prev=cache_file ;;
1134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1136 cache_file=$ac_optarg ;;
1138 --config-cache | -C)
1139 cache_file=config.cache ;;
1141 -datadir | --datadir | --datadi | --datad)
1142 ac_prev=datadir ;;
1143 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1144 datadir=$ac_optarg ;;
1146 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1147 | --dataroo | --dataro | --datar)
1148 ac_prev=datarootdir ;;
1149 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1150 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1151 datarootdir=$ac_optarg ;;
1153 -disable-* | --disable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "enable_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval enable_$ac_useropt=no ;;
1169 -docdir | --docdir | --docdi | --doc | --do)
1170 ac_prev=docdir ;;
1171 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1172 docdir=$ac_optarg ;;
1174 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1175 ac_prev=dvidir ;;
1176 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1177 dvidir=$ac_optarg ;;
1179 -enable-* | --enable-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid feature name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "enable_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval enable_$ac_useropt=\$ac_optarg ;;
1195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197 | --exec | --exe | --ex)
1198 ac_prev=exec_prefix ;;
1199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201 | --exec=* | --exe=* | --ex=*)
1202 exec_prefix=$ac_optarg ;;
1204 -gas | --gas | --ga | --g)
1205 # Obsolete; use --with-gas.
1206 with_gas=yes ;;
1208 -help | --help | --hel | --he | -h)
1209 ac_init_help=long ;;
1210 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211 ac_init_help=recursive ;;
1212 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213 ac_init_help=short ;;
1215 -host | --host | --hos | --ho)
1216 ac_prev=host_alias ;;
1217 -host=* | --host=* | --hos=* | --ho=*)
1218 host_alias=$ac_optarg ;;
1220 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1221 ac_prev=htmldir ;;
1222 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1223 | --ht=*)
1224 htmldir=$ac_optarg ;;
1226 -includedir | --includedir | --includedi | --included | --include \
1227 | --includ | --inclu | --incl | --inc)
1228 ac_prev=includedir ;;
1229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230 | --includ=* | --inclu=* | --incl=* | --inc=*)
1231 includedir=$ac_optarg ;;
1233 -infodir | --infodir | --infodi | --infod | --info | --inf)
1234 ac_prev=infodir ;;
1235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236 infodir=$ac_optarg ;;
1238 -libdir | --libdir | --libdi | --libd)
1239 ac_prev=libdir ;;
1240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241 libdir=$ac_optarg ;;
1243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244 | --libexe | --libex | --libe)
1245 ac_prev=libexecdir ;;
1246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247 | --libexe=* | --libex=* | --libe=*)
1248 libexecdir=$ac_optarg ;;
1250 -localedir | --localedir | --localedi | --localed | --locale)
1251 ac_prev=localedir ;;
1252 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253 localedir=$ac_optarg ;;
1255 -localstatedir | --localstatedir | --localstatedi | --localstated \
1256 | --localstate | --localstat | --localsta | --localst | --locals)
1257 ac_prev=localstatedir ;;
1258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260 localstatedir=$ac_optarg ;;
1262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1263 ac_prev=mandir ;;
1264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265 mandir=$ac_optarg ;;
1267 -nfp | --nfp | --nf)
1268 # Obsolete; use --without-fp.
1269 with_fp=no ;;
1271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272 | --no-cr | --no-c | -n)
1273 no_create=yes ;;
1275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1277 no_recursion=yes ;;
1279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281 | --oldin | --oldi | --old | --ol | --o)
1282 ac_prev=oldincludedir ;;
1283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286 oldincludedir=$ac_optarg ;;
1288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1289 ac_prev=prefix ;;
1290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291 prefix=$ac_optarg ;;
1293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294 | --program-pre | --program-pr | --program-p)
1295 ac_prev=program_prefix ;;
1296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298 program_prefix=$ac_optarg ;;
1300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301 | --program-suf | --program-su | --program-s)
1302 ac_prev=program_suffix ;;
1303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305 program_suffix=$ac_optarg ;;
1307 -program-transform-name | --program-transform-name \
1308 | --program-transform-nam | --program-transform-na \
1309 | --program-transform-n | --program-transform- \
1310 | --program-transform | --program-transfor \
1311 | --program-transfo | --program-transf \
1312 | --program-trans | --program-tran \
1313 | --progr-tra | --program-tr | --program-t)
1314 ac_prev=program_transform_name ;;
1315 -program-transform-name=* | --program-transform-name=* \
1316 | --program-transform-nam=* | --program-transform-na=* \
1317 | --program-transform-n=* | --program-transform-=* \
1318 | --program-transform=* | --program-transfor=* \
1319 | --program-transfo=* | --program-transf=* \
1320 | --program-trans=* | --program-tran=* \
1321 | --progr-tra=* | --program-tr=* | --program-t=*)
1322 program_transform_name=$ac_optarg ;;
1324 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1325 ac_prev=pdfdir ;;
1326 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327 pdfdir=$ac_optarg ;;
1329 -psdir | --psdir | --psdi | --psd | --ps)
1330 ac_prev=psdir ;;
1331 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1332 psdir=$ac_optarg ;;
1334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335 | -silent | --silent | --silen | --sile | --sil)
1336 silent=yes ;;
1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339 ac_prev=sbindir ;;
1340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341 | --sbi=* | --sb=*)
1342 sbindir=$ac_optarg ;;
1344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346 | --sharedst | --shareds | --shared | --share | --shar \
1347 | --sha | --sh)
1348 ac_prev=sharedstatedir ;;
1349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352 | --sha=* | --sh=*)
1353 sharedstatedir=$ac_optarg ;;
1355 -site | --site | --sit)
1356 ac_prev=site ;;
1357 -site=* | --site=* | --sit=*)
1358 site=$ac_optarg ;;
1360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361 ac_prev=srcdir ;;
1362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363 srcdir=$ac_optarg ;;
1365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366 | --syscon | --sysco | --sysc | --sys | --sy)
1367 ac_prev=sysconfdir ;;
1368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370 sysconfdir=$ac_optarg ;;
1372 -target | --target | --targe | --targ | --tar | --ta | --t)
1373 ac_prev=target_alias ;;
1374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375 target_alias=$ac_optarg ;;
1377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378 verbose=yes ;;
1380 -version | --version | --versio | --versi | --vers | -V)
1381 ac_init_version=: ;;
1383 -with-* | --with-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387 as_fn_error $? "invalid package name: $ac_useropt"
1388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1392 "with_$ac_useropt"
1393 "*) ;;
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1396 esac
1397 eval with_$ac_useropt=\$ac_optarg ;;
1399 -without-* | --without-*)
1400 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 as_fn_error $? "invalid package name: $ac_useropt"
1404 ac_useropt_orig=$ac_useropt
1405 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1408 "with_$ac_useropt"
1409 "*) ;;
1410 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1411 ac_unrecognized_sep=', ';;
1412 esac
1413 eval with_$ac_useropt=no ;;
1415 --x)
1416 # Obsolete; use --with-x.
1417 with_x=yes ;;
1419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1420 | --x-incl | --x-inc | --x-in | --x-i)
1421 ac_prev=x_includes ;;
1422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1424 x_includes=$ac_optarg ;;
1426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1428 ac_prev=x_libraries ;;
1429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1431 x_libraries=$ac_optarg ;;
1433 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1434 Try \`$0 --help' for more information"
1437 *=*)
1438 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1439 # Reject names that are not valid shell variable names.
1440 case $ac_envvar in #(
1441 '' | [0-9]* | *[!_$as_cr_alnum]* )
1442 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1443 esac
1444 eval $ac_envvar=\$ac_optarg
1445 export $ac_envvar ;;
1448 # FIXME: should be removed in autoconf 3.0.
1449 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1450 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1451 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1452 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1455 esac
1456 done
1458 if test -n "$ac_prev"; then
1459 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1460 as_fn_error $? "missing argument to $ac_option"
1463 if test -n "$ac_unrecognized_opts"; then
1464 case $enable_option_checking in
1465 no) ;;
1466 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1467 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1468 esac
1471 # Check all directory arguments for consistency.
1472 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1473 datadir sysconfdir sharedstatedir localstatedir includedir \
1474 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1475 libdir localedir mandir
1477 eval ac_val=\$$ac_var
1478 # Remove trailing slashes.
1479 case $ac_val in
1480 */ )
1481 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1482 eval $ac_var=\$ac_val;;
1483 esac
1484 # Be sure to have absolute directory names.
1485 case $ac_val in
1486 [\\/$]* | ?:[\\/]* ) continue;;
1487 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1488 esac
1489 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1490 done
1492 # There might be people who depend on the old broken behavior: `$host'
1493 # used to hold the argument of --host etc.
1494 # FIXME: To remove some day.
1495 build=$build_alias
1496 host=$host_alias
1497 target=$target_alias
1499 # FIXME: To remove some day.
1500 if test "x$host_alias" != x; then
1501 if test "x$build_alias" = x; then
1502 cross_compiling=maybe
1503 elif test "x$build_alias" != "x$host_alias"; then
1504 cross_compiling=yes
1508 ac_tool_prefix=
1509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1511 test "$silent" = yes && exec 6>/dev/null
1514 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1515 ac_ls_di=`ls -di .` &&
1516 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1517 as_fn_error $? "working directory cannot be determined"
1518 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1519 as_fn_error $? "pwd does not report name of working directory"
1522 # Find the source files, if location was not specified.
1523 if test -z "$srcdir"; then
1524 ac_srcdir_defaulted=yes
1525 # Try the directory containing this script, then the parent directory.
1526 ac_confdir=`$as_dirname -- "$as_myself" ||
1527 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1528 X"$as_myself" : 'X\(//\)[^/]' \| \
1529 X"$as_myself" : 'X\(//\)$' \| \
1530 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1531 $as_echo X"$as_myself" |
1532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1533 s//\1/
1536 /^X\(\/\/\)[^/].*/{
1537 s//\1/
1540 /^X\(\/\/\)$/{
1541 s//\1/
1544 /^X\(\/\).*/{
1545 s//\1/
1548 s/.*/./; q'`
1549 srcdir=$ac_confdir
1550 if test ! -r "$srcdir/$ac_unique_file"; then
1551 srcdir=..
1553 else
1554 ac_srcdir_defaulted=no
1556 if test ! -r "$srcdir/$ac_unique_file"; then
1557 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1558 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1560 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1561 ac_abs_confdir=`(
1562 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1563 pwd)`
1564 # When building in place, set srcdir=.
1565 if test "$ac_abs_confdir" = "$ac_pwd"; then
1566 srcdir=.
1568 # Remove unnecessary trailing slashes from srcdir.
1569 # Double slashes in file names in object file debugging info
1570 # mess up M-x gdb in Emacs.
1571 case $srcdir in
1572 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1573 esac
1574 for ac_var in $ac_precious_vars; do
1575 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1576 eval ac_env_${ac_var}_value=\$${ac_var}
1577 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1578 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1579 done
1582 # Report the --help message.
1584 if test "$ac_init_help" = "long"; then
1585 # Omit some internal or obsolete options to make the list less imposing.
1586 # This message is too long to be a string in the A/UX 3.1 sh.
1587 cat <<_ACEOF
1588 \`configure' configures this package to adapt to many kinds of systems.
1590 Usage: $0 [OPTION]... [VAR=VALUE]...
1592 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1593 VAR=VALUE. See below for descriptions of some of the useful variables.
1595 Defaults for the options are specified in brackets.
1597 Configuration:
1598 -h, --help display this help and exit
1599 --help=short display options specific to this package
1600 --help=recursive display the short help of all the included packages
1601 -V, --version display version information and exit
1602 -q, --quiet, --silent do not print \`checking ...' messages
1603 --cache-file=FILE cache test results in FILE [disabled]
1604 -C, --config-cache alias for \`--cache-file=config.cache'
1605 -n, --no-create do not create output files
1606 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1608 Installation directories:
1609 --prefix=PREFIX install architecture-independent files in PREFIX
1610 [$ac_default_prefix]
1611 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1612 [PREFIX]
1614 By default, \`make install' will install all the files in
1615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1616 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1617 for instance \`--prefix=\$HOME'.
1619 For better control, use the options below.
1621 Fine tuning of the installation directories:
1622 --bindir=DIR user executables [EPREFIX/bin]
1623 --sbindir=DIR system admin executables [EPREFIX/sbin]
1624 --libexecdir=DIR program executables [EPREFIX/libexec]
1625 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1626 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1627 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1628 --libdir=DIR object code libraries [EPREFIX/lib]
1629 --includedir=DIR C header files [PREFIX/include]
1630 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1631 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1632 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1633 --infodir=DIR info documentation [DATAROOTDIR/info]
1634 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1635 --mandir=DIR man documentation [DATAROOTDIR/man]
1636 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1637 --htmldir=DIR html documentation [DOCDIR]
1638 --dvidir=DIR dvi documentation [DOCDIR]
1639 --pdfdir=DIR pdf documentation [DOCDIR]
1640 --psdir=DIR ps documentation [DOCDIR]
1641 _ACEOF
1643 cat <<\_ACEOF
1645 Program names:
1646 --program-prefix=PREFIX prepend PREFIX to installed program names
1647 --program-suffix=SUFFIX append SUFFIX to installed program names
1648 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1650 System types:
1651 --build=BUILD configure for building on BUILD [guessed]
1652 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1653 --target=TARGET configure for building compilers for TARGET [HOST]
1654 _ACEOF
1657 if test -n "$ac_init_help"; then
1659 cat <<\_ACEOF
1661 Optional Features:
1662 --disable-option-checking ignore unrecognized --enable/--with options
1663 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1664 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1665 --enable-generated-files-in-srcdir
1666 put copies of generated files in source dir intended
1667 for creating source tarballs for users without
1668 texinfo bison or flex
1669 --disable-largefile omit support for large files
1670 --disable-build-format-warnings
1671 don't use -Wformat while building GCC
1672 --enable-werror-always enable -Werror despite compiler version
1673 --enable-checking[=LIST]
1674 enable expensive run-time checks. With LIST, enable
1675 only specific categories of checks. Categories are:
1676 yes,no,all,none,release. Flags are:
1677 assert,df,extra,fold,gc,gcac,gimple,misc,
1678 rtlflag,rtl,runtime,tree,valgrind,types
1679 --enable-coverage[=LEVEL]
1680 enable compiler's code coverage collection. Use to
1681 measure compiler performance and locate unused parts
1682 of the compiler. With LEVEL, specify optimization.
1683 Values are opt, noopt, default is noopt
1684 --enable-gather-detailed-mem-stats
1685 enable detailed memory allocation stats gathering
1686 --enable-valgrind-annotations
1687 enable valgrind runtime interaction
1688 --enable-multilib enable library support for multiple ABIs
1689 --enable-multiarch enable support for multiarch paths
1690 --enable-__cxa_atexit enable __cxa_atexit for C++
1691 --enable-decimal-float={no,yes,bid,dpd}
1692 enable decimal float extension to C. Selecting 'bid'
1693 or 'dpd' choses which decimal floating point format
1694 to use
1695 --enable-fixed-point enable fixed-point arithmetic extension to C
1696 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1697 package
1698 --enable-tls enable or disable generation of tls code overriding
1699 the assembler check for tls support
1700 --enable-vtable-verify enable vtable verification feature
1701 --disable-analyzer disable -fanalyzer static analyzer
1702 --enable-objc-gc enable the use of Boehm's garbage collector with the
1703 GNU Objective-C runtime
1704 --disable-shared don't provide a shared libgcc
1705 --disable-gcov don't provide libgcov and related host tools
1706 --enable-languages=LIST specify which front-ends to build
1707 --disable-rpath do not hardcode runtime library paths
1708 --enable-sjlj-exceptions
1709 arrange to use setjmp/longjmp exception handling
1710 --enable-secureplt enable -msecure-plt by default for PowerPC
1711 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1712 Default to platform configuration
1713 --enable-large-address-aware
1714 Link mingw executables with --large-address-aware
1715 --enable-leading-mingw64-underscores
1716 enable leading underscores on 64 bit mingw targets
1717 --enable-cld enable -mcld by default for 32bit x86
1718 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1719 --disable-win32-registry
1720 disable lookup of installation paths in the Registry
1721 on Windows hosts
1722 --enable-win32-registry enable registry lookup (default)
1723 --enable-win32-registry=KEY
1724 use KEY instead of GCC version as the last portion
1725 of the registry key
1726 --enable-shared[=PKGS] build shared libraries [default=yes]
1727 --enable-static[=PKGS] build static libraries [default=yes]
1728 --enable-fast-install[=PKGS]
1729 optimize for fast installation [default=yes]
1730 --disable-libtool-lock avoid locking (might break parallel builds)
1731 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1732 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1733 --enable-gnu-indirect-function
1734 enable the use of the @gnu_indirect_function to
1735 glibc systems
1736 --enable-initfini-array use .init_array/.fini_array sections
1737 --enable-comdat enable COMDAT group support
1738 --enable-newlib-nano-formatted-io
1739 Use nano version formatted IO
1741 --enable-standard-branch-protection
1742 enable Branch Target Identification Mechanism and
1743 Return Address Signing by default for AArch64
1744 --disable-standard-branch-protection
1745 disable Branch Target Identification Mechanism and
1746 Return Address Signing by default for AArch64
1749 --enable-fix-cortex-a53-835769
1750 enable workaround for AArch64 Cortex-A53 erratum
1751 835769 by default
1752 --disable-fix-cortex-a53-835769
1753 disable workaround for AArch64 Cortex-A53 erratum
1754 835769 by default
1757 --enable-fix-cortex-a53-843419
1758 enable workaround for AArch64 Cortex-A53 erratum
1759 843419 by default
1760 --disable-fix-cortex-a53-843419
1761 disable workaround for AArch64 Cortex-A53 erratum
1762 843419 by default
1764 --enable-gnu-unique-object
1765 enable the use of the @gnu_unique_object ELF
1766 extension on glibc systems
1767 --enable-linker-build-id
1768 compiler will always pass --build-id to linker
1769 --enable-libssp enable linking against libssp
1770 --enable-default-ssp enable Stack Smashing Protection as default
1771 --enable-maintainer-mode
1772 enable make rules and dependencies not useful (and
1773 sometimes confusing) to the casual installer
1774 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1775 thrashing on the build machine
1776 --enable-link-serialization
1777 avoid linking multiple GCC front-ends at once using
1778 make dependencies to avoid thrashing on the build
1779 machine
1780 --enable-version-specific-runtime-libs
1781 specify that runtime libraries should be installed
1782 in a compiler-specific directory
1783 --enable-plugin enable plugin support
1784 --enable-host-shared build host code as shared libraries
1785 --disable-libquadmath-support
1786 disable libquadmath support for Fortran
1787 --enable-default-pie enable Position Independent Executable as default
1788 --enable-cet enable Intel CET in host libraries [default=auto]
1789 --enable-s390-excess-float-precision
1790 on s390 targets, evaluate float with double
1791 precision when in standards-conforming mode
1793 Optional Packages:
1794 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1795 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1796 --with-build-libsubdir=DIR Directory where to find libraries for build system
1797 --with-local-prefix=DIR specifies directory to put local include
1798 --with-native-system-header-dir=dir
1799 use dir as the directory to look for standard
1800 system header files in. Defaults to /usr/include.
1801 --with-build-sysroot=sysroot
1802 use sysroot as the system root during the build
1803 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1804 --with-gxx-include-dir=DIR
1805 specifies directory to put g++ header files
1806 --with-gxx-libcxx-include-dir=DIR
1807 specifies directory to find libc++ header files
1808 --with-cpp-install-dir=DIR
1809 install the user visible C preprocessor in DIR
1810 (relative to PREFIX) as well as PREFIX/bin
1811 --with-gnu-ld arrange to work with GNU ld
1812 --with-ld arrange to use the specified ld (full pathname)
1813 --with-demangler-in-ld try to use demangler in GNU ld
1814 --with-dsymutil arrange to use the specified dsymutil (full
1815 pathname)
1816 --with-gnu-as arrange to work with GNU as
1817 --with-as arrange to use the specified as (full pathname)
1818 --with-stack-clash-protection-guard-size=size
1819 Set the default stack clash protection guard size
1820 for specific targets as a power of two in bytes.
1821 --with-dwarf2 force the default debug format to be DWARF 2
1822 --with-specs=SPECS add SPECS to driver command-line processing
1823 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1824 --with-bugurl=URL Direct users to URL to report a bug
1825 --with-documentation-root-url=URL
1826 Root for documentation URLs
1827 --with-changes-root-url=URL
1828 Root for GCC changes URLs
1829 --with-multilib-list select multilibs (AArch64, ARM, OR1K, RISC-V, SH and
1830 x86-64 only)
1831 --with-multilib-generator
1832 Multi-libs configuration string (RISC-V only)
1833 --with-zstd=PATH specify prefix directory for installed zstd library.
1834 Equivalent to --with-zstd-include=PATH/include plus
1835 --with-zstd-lib=PATH/lib
1836 --with-zstd-include=PATH
1837 specify directory for installed zstd include files
1838 --with-zstd-lib=PATH specify directory for the installed zstd library
1839 --with-gnu-ld assume the C compiler uses GNU ld default=no
1840 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1841 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1842 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1843 --with-gcc-major-version-only
1844 use only GCC major number in filesystem paths
1845 --with-pic try to use only PIC/non-PIC objects [default=use
1846 both]
1847 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1848 --with-plugin-ld=[ARG] specify the plugin linker
1849 --with-glibc-version=M.N
1850 assume GCC used with glibc version M.N or later
1851 --with-long-double-128 use 128-bit long double by default
1852 --with-long-double-format={ieee,ibm}
1853 Specify whether PowerPC long double uses IEEE or IBM format
1855 --with-gc={page,zone} this option is not supported anymore. It used to
1856 choose the garbage collection mechanism to use with
1857 the compiler
1858 --with-system-zlib use installed libz
1859 --with-linker-hash-style={sysv,gnu,both}
1860 specify the linker hash style
1861 --with-diagnostics-color={never,auto,auto-if-env,always}
1862 specify the default of -fdiagnostics-color option
1863 auto-if-env stands for -fdiagnostics-color=auto if
1864 GCC_COLOR environment variable is present and
1865 -fdiagnostics-color=never otherwise
1866 --with-diagnostics-urls={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-urls option
1868 auto-if-env stands for -fdiagnostics-urls=auto if
1869 GCC_URLS or TERM_URLS environment variable is
1870 present and -fdiagnostics-urls=never otherwise
1872 Some influential environment variables:
1873 CC C compiler command
1874 CFLAGS C compiler flags
1875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1876 nonstandard directory <lib dir>
1877 LIBS libraries to pass to the linker, e.g. -l<library>
1878 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1879 you have headers in a nonstandard directory <include dir>
1880 CXX C++ compiler command
1881 CXXFLAGS C++ compiler flags
1882 CXXCPP C++ preprocessor
1883 CPP C preprocessor
1884 GMPLIBS How to link GMP
1885 GMPINC How to find GMP include files
1886 ISLLIBS How to link isl
1887 ISLINC How to find isl include files
1889 Use these variables to override the choices made by `configure' or to help
1890 it to find libraries and programs with nonstandard names/locations.
1892 Report bugs to the package provider.
1893 _ACEOF
1894 ac_status=$?
1897 if test "$ac_init_help" = "recursive"; then
1898 # If there are subdirs, report their specific --help.
1899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1900 test -d "$ac_dir" ||
1901 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1902 continue
1903 ac_builddir=.
1905 case "$ac_dir" in
1906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1909 # A ".." for each directory in $ac_dir_suffix.
1910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1911 case $ac_top_builddir_sub in
1912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1914 esac ;;
1915 esac
1916 ac_abs_top_builddir=$ac_pwd
1917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1918 # for backward compatibility:
1919 ac_top_builddir=$ac_top_build_prefix
1921 case $srcdir in
1922 .) # We are building in place.
1923 ac_srcdir=.
1924 ac_top_srcdir=$ac_top_builddir_sub
1925 ac_abs_top_srcdir=$ac_pwd ;;
1926 [\\/]* | ?:[\\/]* ) # Absolute name.
1927 ac_srcdir=$srcdir$ac_dir_suffix;
1928 ac_top_srcdir=$srcdir
1929 ac_abs_top_srcdir=$srcdir ;;
1930 *) # Relative name.
1931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1932 ac_top_srcdir=$ac_top_build_prefix$srcdir
1933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1934 esac
1935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1937 cd "$ac_dir" || { ac_status=$?; continue; }
1938 # Check for guested configure.
1939 if test -f "$ac_srcdir/configure.gnu"; then
1940 echo &&
1941 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1942 elif test -f "$ac_srcdir/configure"; then
1943 echo &&
1944 $SHELL "$ac_srcdir/configure" --help=recursive
1945 else
1946 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1947 fi || ac_status=$?
1948 cd "$ac_pwd" || { ac_status=$?; break; }
1949 done
1952 test -n "$ac_init_help" && exit $ac_status
1953 if $ac_init_version; then
1954 cat <<\_ACEOF
1955 configure
1956 generated by GNU Autoconf 2.69
1958 Copyright (C) 2012 Free Software Foundation, Inc.
1959 This configure script is free software; the Free Software Foundation
1960 gives unlimited permission to copy, distribute and modify it.
1961 _ACEOF
1962 exit
1965 ## ------------------------ ##
1966 ## Autoconf initialization. ##
1967 ## ------------------------ ##
1969 # ac_fn_c_try_compile LINENO
1970 # --------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext
1976 if { { ac_try="$ac_compile"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_compile") 2>conftest.err
1984 ac_status=$?
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest.$ac_objext; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2000 ac_retval=1
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_compile
2007 # ac_fn_cxx_try_compile LINENO
2008 # ----------------------------
2009 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_cxx_try_compile ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 rm -f conftest.$ac_objext
2014 if { { ac_try="$ac_compile"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_compile") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && {
2030 test -z "$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 } && test -s conftest.$ac_objext; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2038 ac_retval=1
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2043 } # ac_fn_cxx_try_compile
2045 # ac_fn_cxx_try_cpp LINENO
2046 # ------------------------
2047 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_cxx_try_cpp ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_cpp conftest.$ac_ext"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } > conftest.i && {
2067 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 }; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_retval=1
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_cxx_try_cpp
2082 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085 # the include files in INCLUDES and setting the cache variable VAR
2086 # accordingly.
2087 ac_fn_cxx_check_header_mongrel ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if eval \${$3+:} false; then :
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 else
2100 # Is the header compilable?
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102 $as_echo_n "checking $2 usability... " >&6; }
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2106 #include <$2>
2107 _ACEOF
2108 if ac_fn_cxx_try_compile "$LINENO"; then :
2109 ac_header_compiler=yes
2110 else
2111 ac_header_compiler=no
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115 $as_echo "$ac_header_compiler" >&6; }
2117 # Is the header present?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119 $as_echo_n "checking $2 presence... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_cxx_try_cpp "$LINENO"; then :
2125 ac_header_preproc=yes
2126 else
2127 ac_header_preproc=no
2129 rm -f conftest.err conftest.i conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131 $as_echo "$ac_header_preproc" >&6; }
2133 # So? What about this header?
2134 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2135 yes:no: )
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141 no:yes:* )
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2145 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2149 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 esac
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 eval "$3=\$ac_header_compiler"
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_cxx_check_header_mongrel
2169 # ac_fn_cxx_try_run LINENO
2170 # ------------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2173 ac_fn_cxx_try_run ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if { { ac_try="$ac_link"
2177 case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_link") 2>&5
2184 ac_status=$?
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187 { { case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_try") 2>&5
2194 ac_status=$?
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; }; }; then :
2197 ac_retval=0
2198 else
2199 $as_echo "$as_me: program exited with status $ac_status" >&5
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 ac_retval=$ac_status
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_cxx_try_run
2211 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2212 # ---------------------------------------------------------
2213 # Tests whether HEADER exists and can be compiled using the include files in
2214 # INCLUDES, setting the cache variable VAR accordingly.
2215 ac_fn_cxx_check_header_compile ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \${$3+:} false; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2226 #include <$2>
2227 _ACEOF
2228 if ac_fn_cxx_try_compile "$LINENO"; then :
2229 eval "$3=yes"
2230 else
2231 eval "$3=no"
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 } # ac_fn_cxx_check_header_compile
2242 # ac_fn_c_try_cpp LINENO
2243 # ----------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245 ac_fn_c_try_cpp ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { { ac_try="$ac_cpp conftest.$ac_ext"
2249 case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2256 ac_status=$?
2257 if test -s conftest.err; then
2258 grep -v '^ *+' conftest.err >conftest.er1
2259 cat conftest.er1 >&5
2260 mv -f conftest.er1 conftest.err
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } > conftest.i && {
2264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265 test ! -s conftest.err
2266 }; then :
2267 ac_retval=0
2268 else
2269 $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2272 ac_retval=1
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2277 } # ac_fn_c_try_cpp
2279 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2280 # ----------------------------------------------
2281 # Tries to find the compile-time value of EXPR in a program that includes
2282 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2283 # computed
2284 ac_fn_cxx_compute_int ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 if test "$cross_compiling" = yes; then
2288 # Depending upon the size, compute the lo and hi bounds.
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2293 main ()
2295 static int test_array [1 - 2 * !(($2) >= 0)];
2296 test_array [0] = 0;
2297 return test_array [0];
2300 return 0;
2302 _ACEOF
2303 if ac_fn_cxx_try_compile "$LINENO"; then :
2304 ac_lo=0 ac_mid=0
2305 while :; do
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2310 main ()
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2313 test_array [0] = 0;
2314 return test_array [0];
2317 return 0;
2319 _ACEOF
2320 if ac_fn_cxx_try_compile "$LINENO"; then :
2321 ac_hi=$ac_mid; break
2322 else
2323 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2324 if test $ac_lo -le $ac_mid; then
2325 ac_lo= ac_hi=
2326 break
2328 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 done
2332 else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2337 main ()
2339 static int test_array [1 - 2 * !(($2) < 0)];
2340 test_array [0] = 0;
2341 return test_array [0];
2344 return 0;
2346 _ACEOF
2347 if ac_fn_cxx_try_compile "$LINENO"; then :
2348 ac_hi=-1 ac_mid=-1
2349 while :; do
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2354 main ()
2356 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2357 test_array [0] = 0;
2358 return test_array [0];
2361 return 0;
2363 _ACEOF
2364 if ac_fn_cxx_try_compile "$LINENO"; then :
2365 ac_lo=$ac_mid; break
2366 else
2367 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2368 if test $ac_mid -le $ac_hi; then
2369 ac_lo= ac_hi=
2370 break
2372 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 done
2376 else
2377 ac_lo= ac_hi=
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 # Binary search between lo and hi bounds.
2383 while test "x$ac_lo" != "x$ac_hi"; do
2384 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2389 main ()
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392 test_array [0] = 0;
2393 return test_array [0];
2396 return 0;
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 ac_hi=$ac_mid
2401 else
2402 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 done
2406 case $ac_lo in #((
2407 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2408 '') ac_retval=1 ;;
2409 esac
2410 else
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2414 static long int longval () { return $2; }
2415 static unsigned long int ulongval () { return $2; }
2416 #include <stdio.h>
2417 #include <stdlib.h>
2419 main ()
2422 FILE *f = fopen ("conftest.val", "w");
2423 if (! f)
2424 return 1;
2425 if (($2) < 0)
2427 long int i = longval ();
2428 if (i != ($2))
2429 return 1;
2430 fprintf (f, "%ld", i);
2432 else
2434 unsigned long int i = ulongval ();
2435 if (i != ($2))
2436 return 1;
2437 fprintf (f, "%lu", i);
2439 /* Do not output a trailing newline, as this causes \r\n confusion
2440 on some platforms. */
2441 return ferror (f) || fclose (f) != 0;
2444 return 0;
2446 _ACEOF
2447 if ac_fn_cxx_try_run "$LINENO"; then :
2448 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2449 else
2450 ac_retval=1
2452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2453 conftest.$ac_objext conftest.beam conftest.$ac_ext
2454 rm -f conftest.val
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 as_fn_set_status $ac_retval
2460 } # ac_fn_cxx_compute_int
2462 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2463 # ---------------------------------------------
2464 # Tests whether TYPE exists after having included INCLUDES, setting cache
2465 # variable VAR accordingly.
2466 ac_fn_cxx_check_type ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if eval \${$3+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 eval "$3=no"
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 main ()
2481 if (sizeof ($2))
2482 return 0;
2484 return 0;
2486 _ACEOF
2487 if ac_fn_cxx_try_compile "$LINENO"; then :
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2492 main ()
2494 if (sizeof (($2)))
2495 return 0;
2497 return 0;
2499 _ACEOF
2500 if ac_fn_cxx_try_compile "$LINENO"; then :
2502 else
2503 eval "$3=yes"
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 eval ac_res=\$$3
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511 $as_echo "$ac_res" >&6; }
2512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514 } # ac_fn_cxx_check_type
2516 # ac_fn_c_find_intX_t LINENO BITS VAR
2517 # -----------------------------------
2518 # Finds a signed integer type with width BITS, setting cache variable VAR
2519 # accordingly.
2520 ac_fn_c_find_intX_t ()
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2524 $as_echo_n "checking for int$2_t... " >&6; }
2525 if eval \${$3+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 eval "$3=no"
2529 # Order is important - never check a type that is potentially smaller
2530 # than half of the expected target width.
2531 for ac_type in int$2_t 'int' 'long int' \
2532 'long long int' 'short int' 'signed char'; do
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 enum { N = $2 / 2 - 1 };
2538 main ()
2540 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2541 test_array [0] = 0;
2542 return test_array [0];
2545 return 0;
2547 _ACEOF
2548 if ac_fn_cxx_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 $ac_includes_default
2552 enum { N = $2 / 2 - 1 };
2554 main ()
2556 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2557 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2558 test_array [0] = 0;
2559 return test_array [0];
2562 return 0;
2564 _ACEOF
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2567 else
2568 case $ac_type in #(
2569 int$2_t) :
2570 eval "$3=yes" ;; #(
2571 *) :
2572 eval "$3=\$ac_type" ;;
2573 esac
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 if eval test \"x\$"$3"\" = x"no"; then :
2580 else
2581 break
2583 done
2585 eval ac_res=\$$3
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590 } # ac_fn_c_find_intX_t
2592 # ac_fn_cxx_try_link LINENO
2593 # -------------------------
2594 # Try to link conftest.$ac_ext, and return whether this succeeded.
2595 ac_fn_cxx_try_link ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 rm -f conftest.$ac_objext conftest$ac_exeext
2599 if { { ac_try="$ac_link"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2605 $as_echo "$ac_try_echo"; } >&5
2606 (eval "$ac_link") 2>conftest.err
2607 ac_status=$?
2608 if test -s conftest.err; then
2609 grep -v '^ *+' conftest.err >conftest.er1
2610 cat conftest.er1 >&5
2611 mv -f conftest.er1 conftest.err
2613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2614 test $ac_status = 0; } && {
2615 test -z "$ac_cxx_werror_flag" ||
2616 test ! -s conftest.err
2617 } && test -s conftest$ac_exeext && {
2618 test "$cross_compiling" = yes ||
2619 test -x conftest$ac_exeext
2620 }; then :
2621 ac_retval=0
2622 else
2623 $as_echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 ac_retval=1
2628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2630 # interfere with the next link command; also delete a directory that is
2631 # left behind by Apple's compiler. We do this before executing the actions.
2632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634 as_fn_set_status $ac_retval
2636 } # ac_fn_cxx_try_link
2638 # ac_fn_c_find_uintX_t LINENO BITS VAR
2639 # ------------------------------------
2640 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2641 # accordingly.
2642 ac_fn_c_find_uintX_t ()
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2646 $as_echo_n "checking for uint$2_t... " >&6; }
2647 if eval \${$3+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 eval "$3=no"
2651 # Order is important - never check a type that is potentially smaller
2652 # than half of the expected target width.
2653 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2654 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2657 $ac_includes_default
2659 main ()
2661 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2662 test_array [0] = 0;
2663 return test_array [0];
2666 return 0;
2668 _ACEOF
2669 if ac_fn_cxx_try_compile "$LINENO"; then :
2670 case $ac_type in #(
2671 uint$2_t) :
2672 eval "$3=yes" ;; #(
2673 *) :
2674 eval "$3=\$ac_type" ;;
2675 esac
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 if eval test \"x\$"$3"\" = x"no"; then :
2680 else
2681 break
2683 done
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_find_uintX_t
2692 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2693 # ------------------------------------------------
2694 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2695 ac_fn_cxx_check_header_preproc ()
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2699 $as_echo_n "checking for $2... " >&6; }
2700 if eval \${$3+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2705 #include <$2>
2706 _ACEOF
2707 if ac_fn_cxx_try_cpp "$LINENO"; then :
2708 eval "$3=yes"
2709 else
2710 eval "$3=no"
2712 rm -f conftest.err conftest.i conftest.$ac_ext
2714 eval ac_res=\$$3
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719 } # ac_fn_cxx_check_header_preproc
2721 # ac_fn_cxx_check_func LINENO FUNC VAR
2722 # ------------------------------------
2723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2724 ac_fn_cxx_check_func ()
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2736 #define $2 innocuous_$2
2738 /* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $2 (); below.
2740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741 <limits.h> exists even on freestanding compilers. */
2743 #ifdef __STDC__
2744 # include <limits.h>
2745 #else
2746 # include <assert.h>
2747 #endif
2749 #undef $2
2751 /* Override any GCC internal prototype to avoid an error.
2752 Use char because int might match the return type of a GCC
2753 builtin and then its argument prototype would still apply. */
2754 #ifdef __cplusplus
2755 extern "C"
2756 #endif
2757 char $2 ();
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined __stub_$2 || defined __stub___$2
2762 choke me
2763 #endif
2766 main ()
2768 return $2 ();
2770 return 0;
2772 _ACEOF
2773 if ac_fn_cxx_try_link "$LINENO"; then :
2774 eval "$3=yes"
2775 else
2776 eval "$3=no"
2778 rm -f core conftest.err conftest.$ac_objext \
2779 conftest$ac_exeext conftest.$ac_ext
2781 eval ac_res=\$$3
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2786 } # ac_fn_cxx_check_func
2788 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2789 # -----------------------------------------------
2790 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2791 # accordingly.
2792 ac_fn_cxx_check_decl ()
2794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2795 as_decl_name=`echo $2|sed 's/ *(.*//'`
2796 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2798 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2799 if eval \${$3+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2806 main ()
2808 #ifndef $as_decl_name
2809 #ifdef __cplusplus
2810 (void) $as_decl_use;
2811 #else
2812 (void) $as_decl_name;
2813 #endif
2814 #endif
2817 return 0;
2819 _ACEOF
2820 if ac_fn_cxx_try_compile "$LINENO"; then :
2821 eval "$3=yes"
2822 else
2823 eval "$3=no"
2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2832 } # ac_fn_cxx_check_decl
2834 # ac_fn_c_try_link LINENO
2835 # -----------------------
2836 # Try to link conftest.$ac_ext, and return whether this succeeded.
2837 ac_fn_c_try_link ()
2839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840 rm -f conftest.$ac_objext conftest$ac_exeext
2841 if { { ac_try="$ac_link"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link") 2>conftest.err
2849 ac_status=$?
2850 if test -s conftest.err; then
2851 grep -v '^ *+' conftest.err >conftest.er1
2852 cat conftest.er1 >&5
2853 mv -f conftest.er1 conftest.err
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest$ac_exeext && {
2860 test "$cross_compiling" = yes ||
2861 test -x conftest$ac_exeext
2862 }; then :
2863 ac_retval=0
2864 else
2865 $as_echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_retval=1
2870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2872 # interfere with the next link command; also delete a directory that is
2873 # left behind by Apple's compiler. We do this before executing the actions.
2874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2876 as_fn_set_status $ac_retval
2878 } # ac_fn_c_try_link
2880 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2881 # ----------------------------------------------
2882 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2883 ac_fn_c_check_header_preproc ()
2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2887 $as_echo_n "checking for $2... " >&6; }
2888 if eval \${$3+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2893 #include <$2>
2894 _ACEOF
2895 if ac_fn_c_try_cpp "$LINENO"; then :
2896 eval "$3=yes"
2897 else
2898 eval "$3=no"
2900 rm -f conftest.err conftest.i conftest.$ac_ext
2902 eval ac_res=\$$3
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904 $as_echo "$ac_res" >&6; }
2905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2907 } # ac_fn_c_check_header_preproc
2909 # ac_fn_c_check_func LINENO FUNC VAR
2910 # ----------------------------------
2911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2912 ac_fn_c_check_func ()
2914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2916 $as_echo_n "checking for $2... " >&6; }
2917 if eval \${$3+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2924 #define $2 innocuous_$2
2926 /* System header to define __stub macros and hopefully few prototypes,
2927 which can conflict with char $2 (); below.
2928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 <limits.h> exists even on freestanding compilers. */
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2937 #undef $2
2939 /* Override any GCC internal prototype to avoid an error.
2940 Use char because int might match the return type of a GCC
2941 builtin and then its argument prototype would still apply. */
2942 #ifdef __cplusplus
2943 extern "C"
2944 #endif
2945 char $2 ();
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined __stub_$2 || defined __stub___$2
2950 choke me
2951 #endif
2954 main ()
2956 return $2 ();
2958 return 0;
2960 _ACEOF
2961 if ac_fn_c_try_link "$LINENO"; then :
2962 eval "$3=yes"
2963 else
2964 eval "$3=no"
2966 rm -f core conftest.err conftest.$ac_objext \
2967 conftest$ac_exeext conftest.$ac_ext
2969 eval ac_res=\$$3
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2971 $as_echo "$ac_res" >&6; }
2972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2974 } # ac_fn_c_check_func
2975 cat >config.log <<_ACEOF
2976 This file contains any messages produced by compilers while
2977 running configure, to aid debugging if configure makes a mistake.
2979 It was created by $as_me, which was
2980 generated by GNU Autoconf 2.69. Invocation command line was
2982 $ $0 $@
2984 _ACEOF
2985 exec 5>>config.log
2987 cat <<_ASUNAME
2988 ## --------- ##
2989 ## Platform. ##
2990 ## --------- ##
2992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3009 _ASUNAME
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 $as_echo "PATH: $as_dir"
3017 done
3018 IFS=$as_save_IFS
3020 } >&5
3022 cat >&5 <<_ACEOF
3025 ## ----------- ##
3026 ## Core tests. ##
3027 ## ----------- ##
3029 _ACEOF
3032 # Keep a trace of the command line.
3033 # Strip out --no-create and --no-recursion so they do not pile up.
3034 # Strip out --silent because we don't want to record it for future runs.
3035 # Also quote any args containing shell meta-characters.
3036 # Make two passes to allow for proper duplicate-argument suppression.
3037 ac_configure_args=
3038 ac_configure_args0=
3039 ac_configure_args1=
3040 ac_must_keep_next=false
3041 for ac_pass in 1 2
3043 for ac_arg
3045 case $ac_arg in
3046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3048 | -silent | --silent | --silen | --sile | --sil)
3049 continue ;;
3050 *\'*)
3051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3052 esac
3053 case $ac_pass in
3054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3056 as_fn_append ac_configure_args1 " '$ac_arg'"
3057 if test $ac_must_keep_next = true; then
3058 ac_must_keep_next=false # Got value, back to normal.
3059 else
3060 case $ac_arg in
3061 *=* | --config-cache | -C | -disable-* | --disable-* \
3062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3064 | -with-* | --with-* | -without-* | --without-* | --x)
3065 case "$ac_configure_args0 " in
3066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3067 esac
3069 -* ) ac_must_keep_next=true ;;
3070 esac
3072 as_fn_append ac_configure_args " '$ac_arg'"
3074 esac
3075 done
3076 done
3077 { ac_configure_args0=; unset ac_configure_args0;}
3078 { ac_configure_args1=; unset ac_configure_args1;}
3080 # When interrupted or exit'd, cleanup temporary files, and complete
3081 # config.log. We remove comments because anyway the quotes in there
3082 # would cause problems or look ugly.
3083 # WARNING: Use '\'' to represent an apostrophe within the trap.
3084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3085 trap 'exit_status=$?
3086 # Save into config.log some information that might help in debugging.
3088 echo
3090 $as_echo "## ---------------- ##
3091 ## Cache variables. ##
3092 ## ---------------- ##"
3093 echo
3094 # The following way of writing the cache mishandles newlines in values,
3096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3097 eval ac_val=\$$ac_var
3098 case $ac_val in #(
3099 *${as_nl}*)
3100 case $ac_var in #(
3101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3103 esac
3104 case $ac_var in #(
3105 _ | IFS | as_nl) ;; #(
3106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3107 *) { eval $ac_var=; unset $ac_var;} ;;
3108 esac ;;
3109 esac
3110 done
3111 (set) 2>&1 |
3112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3113 *${as_nl}ac_space=\ *)
3114 sed -n \
3115 "s/'\''/'\''\\\\'\'''\''/g;
3116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3117 ;; #(
3119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3121 esac |
3122 sort
3124 echo
3126 $as_echo "## ----------------- ##
3127 ## Output variables. ##
3128 ## ----------------- ##"
3129 echo
3130 for ac_var in $ac_subst_vars
3132 eval ac_val=\$$ac_var
3133 case $ac_val in
3134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3135 esac
3136 $as_echo "$ac_var='\''$ac_val'\''"
3137 done | sort
3138 echo
3140 if test -n "$ac_subst_files"; then
3141 $as_echo "## ------------------- ##
3142 ## File substitutions. ##
3143 ## ------------------- ##"
3144 echo
3145 for ac_var in $ac_subst_files
3147 eval ac_val=\$$ac_var
3148 case $ac_val in
3149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3150 esac
3151 $as_echo "$ac_var='\''$ac_val'\''"
3152 done | sort
3153 echo
3156 if test -s confdefs.h; then
3157 $as_echo "## ----------- ##
3158 ## confdefs.h. ##
3159 ## ----------- ##"
3160 echo
3161 cat confdefs.h
3162 echo
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3167 } >&5
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3170 exit $exit_status
3172 for ac_signal in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3174 done
3175 ac_signal=0
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest* confdefs.h
3180 $as_echo "/* confdefs.h */" > confdefs.h
3182 # Predefined preprocessor variables.
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3186 _ACEOF
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3190 _ACEOF
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3194 _ACEOF
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3198 _ACEOF
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3202 _ACEOF
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3206 _ACEOF
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3211 ac_site_file1=NONE
3212 ac_site_file2=NONE
3213 if test -n "$CONFIG_SITE"; then
3214 # We do not want a PATH search for config.site.
3215 case $CONFIG_SITE in #((
3216 -*) ac_site_file1=./$CONFIG_SITE;;
3217 */*) ac_site_file1=$CONFIG_SITE;;
3218 *) ac_site_file1=./$CONFIG_SITE;;
3219 esac
3220 elif test "x$prefix" != xNONE; then
3221 ac_site_file1=$prefix/share/config.site
3222 ac_site_file2=$prefix/etc/config.site
3223 else
3224 ac_site_file1=$ac_default_prefix/share/config.site
3225 ac_site_file2=$ac_default_prefix/etc/config.site
3227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3229 test "x$ac_site_file" = xNONE && continue
3230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233 sed 's/^/| /' "$ac_site_file" >&5
3234 . "$ac_site_file" \
3235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "failed to load site script $ac_site_file
3238 See \`config.log' for more details" "$LINENO" 5; }
3240 done
3242 if test -r "$cache_file"; then
3243 # Some versions of bash will fail to source /dev/null (special files
3244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3247 $as_echo "$as_me: loading cache $cache_file" >&6;}
3248 case $cache_file in
3249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3250 *) . "./$cache_file";;
3251 esac
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3255 $as_echo "$as_me: creating cache $cache_file" >&6;}
3256 >$cache_file
3259 # Check that the precious variables saved in the cache have kept the same
3260 # value.
3261 ac_cache_corrupted=false
3262 for ac_var in $ac_precious_vars; do
3263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3264 eval ac_new_set=\$ac_env_${ac_var}_set
3265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3266 eval ac_new_val=\$ac_env_${ac_var}_value
3267 case $ac_old_set,$ac_new_set in
3268 set,)
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3271 ac_cache_corrupted=: ;;
3272 ,set)
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3275 ac_cache_corrupted=: ;;
3276 ,);;
3278 if test "x$ac_old_val" != "x$ac_new_val"; then
3279 # differences in whitespace do not lead to failure.
3280 ac_old_val_w=`echo x $ac_old_val`
3281 ac_new_val_w=`echo x $ac_new_val`
3282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3285 ac_cache_corrupted=:
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3289 eval $ac_var=\$ac_old_val
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3295 fi;;
3296 esac
3297 # Pass precious variables to config.status.
3298 if test "$ac_new_set" = set; then
3299 case $ac_new_val in
3300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3301 *) ac_arg=$ac_var=$ac_new_val ;;
3302 esac
3303 case " $ac_configure_args " in
3304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3306 esac
3308 done
3309 if $ac_cache_corrupted; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3316 ## -------------------- ##
3317 ## Main body of script. ##
3318 ## -------------------- ##
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3334 gcc_version=`cat $srcdir/BASE-VER`
3336 # Determine the host, build, and target systems
3337 ac_aux_dir=
3338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3339 if test -f "$ac_dir/install-sh"; then
3340 ac_aux_dir=$ac_dir
3341 ac_install_sh="$ac_aux_dir/install-sh -c"
3342 break
3343 elif test -f "$ac_dir/install.sh"; then
3344 ac_aux_dir=$ac_dir
3345 ac_install_sh="$ac_aux_dir/install.sh -c"
3346 break
3347 elif test -f "$ac_dir/shtool"; then
3348 ac_aux_dir=$ac_dir
3349 ac_install_sh="$ac_aux_dir/shtool install -c"
3350 break
3352 done
3353 if test -z "$ac_aux_dir"; then
3354 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3357 # These three variables are undocumented and unsupported,
3358 # and are intended to be withdrawn in a future Autoconf release.
3359 # They can cause serious problems if a builder's source tree is in a directory
3360 # whose full name contains unusual characters.
3361 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3362 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3363 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3366 # Make sure we can run config.sub.
3367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3368 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3371 $as_echo_n "checking build system type... " >&6; }
3372 if ${ac_cv_build+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 ac_build_alias=$build_alias
3376 test "x$ac_build_alias" = x &&
3377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378 test "x$ac_build_alias" = x &&
3379 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3385 $as_echo "$ac_cv_build" >&6; }
3386 case $ac_cv_build in
3387 *-*-*) ;;
3388 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3389 esac
3390 build=$ac_cv_build
3391 ac_save_IFS=$IFS; IFS='-'
3392 set x $ac_cv_build
3393 shift
3394 build_cpu=$1
3395 build_vendor=$2
3396 shift; shift
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3399 build_os=$*
3400 IFS=$ac_save_IFS
3401 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3405 $as_echo_n "checking host system type... " >&6; }
3406 if ${ac_cv_host+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test "x$host_alias" = x; then
3410 ac_cv_host=$ac_cv_build
3411 else
3412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3418 $as_echo "$ac_cv_host" >&6; }
3419 case $ac_cv_host in
3420 *-*-*) ;;
3421 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3422 esac
3423 host=$ac_cv_host
3424 ac_save_IFS=$IFS; IFS='-'
3425 set x $ac_cv_host
3426 shift
3427 host_cpu=$1
3428 host_vendor=$2
3429 shift; shift
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3432 host_os=$*
3433 IFS=$ac_save_IFS
3434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3438 $as_echo_n "checking target system type... " >&6; }
3439 if ${ac_cv_target+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test "x$target_alias" = x; then
3443 ac_cv_target=$ac_cv_host
3444 else
3445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3451 $as_echo "$ac_cv_target" >&6; }
3452 case $ac_cv_target in
3453 *-*-*) ;;
3454 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3455 esac
3456 target=$ac_cv_target
3457 ac_save_IFS=$IFS; IFS='-'
3458 set x $ac_cv_target
3459 shift
3460 target_cpu=$1
3461 target_vendor=$2
3462 shift; shift
3463 # Remember, the first character of IFS is used to create $*,
3464 # except with old shells:
3465 target_os=$*
3466 IFS=$ac_save_IFS
3467 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3470 # The aliases save the names the user supplied, while $host etc.
3471 # will get canonicalized.
3472 test -n "$target_alias" &&
3473 test "$program_prefix$program_suffix$program_transform_name" = \
3474 NONENONEs,x,x, &&
3475 program_prefix=${target_alias}-
3477 # Determine the noncanonical host name, for Ada.
3478 case ${build_alias} in
3479 "") build_noncanonical=${build} ;;
3480 *) build_noncanonical=${build_alias} ;;
3481 esac
3483 case ${host_alias} in
3484 "") host_noncanonical=${build_noncanonical} ;;
3485 *) host_noncanonical=${host_alias} ;;
3486 esac
3491 # Determine the noncanonical target name, for directory use.
3492 case ${target_alias} in
3493 "") target_noncanonical=${host_noncanonical} ;;
3494 *) target_noncanonical=${target_alias} ;;
3495 esac
3500 # Used for constructing correct paths for offload compilers.
3501 real_target_noncanonical=${target_noncanonical}
3502 accel_dir_suffix=
3504 # Determine the target- and build-specific subdirectories
3506 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3507 # have matching libraries, they should use host libraries: Makefile.tpl
3508 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3509 # However, they still use the build modules, because the corresponding
3510 # host modules (e.g. bison) are only built for the host when bootstrap
3511 # finishes. So:
3512 # - build_subdir is where we find build modules, and never changes.
3513 # - build_libsubdir is where we find build libraries, and can be overridden.
3515 # Prefix 'build-' so this never conflicts with target_subdir.
3516 build_subdir="build-${build_noncanonical}"
3518 # Check whether --with-build-libsubdir was given.
3519 if test "${with_build_libsubdir+set}" = set; then :
3520 withval=$with_build_libsubdir; build_libsubdir="$withval"
3521 else
3522 build_libsubdir="$build_subdir"
3525 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3526 if ( test $srcdir = . && test -d gcc ) \
3527 || test -d $srcdir/../host-${host_noncanonical}; then
3528 host_subdir="host-${host_noncanonical}"
3529 else
3530 host_subdir=.
3532 # No prefix.
3533 target_subdir=${target_noncanonical}
3536 # Set program_transform_name
3537 test "$program_prefix" != NONE &&
3538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3539 # Use a double $ so make ignores it.
3540 test "$program_suffix" != NONE &&
3541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3542 # Double any \ or $.
3543 # By default was `s,x,x', remove it if useless.
3544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3548 # Check for bogus environment variables.
3549 # Test if LIBRARY_PATH contains the notation for the current directory
3550 # since this would lead to problems installing/building glibc.
3551 # LIBRARY_PATH contains the current directory if one of the following
3552 # is true:
3553 # - one of the terminals (":" and ";") is the first or last sign
3554 # - two terminals occur directly after each other
3555 # - the path contains an element with a dot in it
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3557 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3558 case ${LIBRARY_PATH} in
3559 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560 library_path_setting="contains current directory"
3563 library_path_setting="ok"
3565 esac
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3567 $as_echo "$library_path_setting" >&6; }
3568 if test "$library_path_setting" != "ok"; then
3569 as_fn_error $? "
3570 *** LIBRARY_PATH shouldn't contain the current directory when
3571 *** building gcc. Please change the environment variable
3572 *** and run configure again." "$LINENO" 5
3575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3576 # since this would lead to problems installing/building glibc.
3577 # GCC_EXEC_PREFIX contains the current directory if one of the following
3578 # is true:
3579 # - one of the terminals (":" and ";") is the first or last sign
3580 # - two terminals occur directly after each other
3581 # - the path contains an element with a dot in it
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3583 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3584 case ${GCC_EXEC_PREFIX} in
3585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3586 gcc_exec_prefix_setting="contains current directory"
3589 gcc_exec_prefix_setting="ok"
3591 esac
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3593 $as_echo "$gcc_exec_prefix_setting" >&6; }
3594 if test "$gcc_exec_prefix_setting" != "ok"; then
3595 as_fn_error $? "
3596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3597 *** building gcc. Please change the environment variable
3598 *** and run configure again." "$LINENO" 5
3601 # -----------
3602 # Directories
3603 # -----------
3605 # Specify the local prefix
3606 local_prefix=
3608 # Check whether --with-local-prefix was given.
3609 if test "${with_local_prefix+set}" = set; then :
3610 withval=$with_local_prefix; case "${withval}" in
3611 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3612 no) ;;
3613 *) local_prefix=$with_local_prefix ;;
3614 esac
3618 # Default local prefix if it is empty
3619 if test x$local_prefix = x; then
3620 local_prefix=/usr/local
3624 # Check whether --with-native-system-header-dir was given.
3625 if test "${with_native_system_header_dir+set}" = set; then :
3626 withval=$with_native_system_header_dir;
3627 case ${with_native_system_header_dir} in
3628 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3629 /* | [A-Za-z]:[\\/]*) ;;
3630 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3631 esac
3632 configured_native_system_header_dir="${withval}"
3634 else
3635 configured_native_system_header_dir=
3640 # Check whether --with-build-sysroot was given.
3641 if test "${with_build_sysroot+set}" = set; then :
3642 withval=$with_build_sysroot; if test x"$withval" != x ; then
3643 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3645 else
3646 SYSROOT_CFLAGS_FOR_TARGET=
3651 if test "x$prefix" = xNONE; then
3652 test_prefix=/usr/local
3653 else
3654 test_prefix=$prefix
3656 if test "x$exec_prefix" = xNONE; then
3657 test_exec_prefix=$test_prefix
3658 else
3659 test_exec_prefix=$exec_prefix
3663 # Check whether --with-sysroot was given.
3664 if test "${with_sysroot+set}" = set; then :
3665 withval=$with_sysroot;
3666 case ${with_sysroot} in
3667 /) ;;
3668 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3669 esac
3670 case ${with_sysroot} in
3671 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3672 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3673 esac
3675 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3676 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3678 case ${TARGET_SYSTEM_ROOT} in
3679 "${test_prefix}"|"${test_prefix}/"*|\
3680 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3681 '${prefix}'|'${prefix}/'*|\
3682 '${exec_prefix}'|'${exec_prefix}/'*)
3683 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3684 TARGET_SYSTEM_ROOT_DEFINE="$t"
3686 esac
3688 else
3690 TARGET_SYSTEM_ROOT=
3691 TARGET_SYSTEM_ROOT_DEFINE=
3692 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3700 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3701 # passed in by the toplevel make and thus we'd get different behavior
3702 # depending on where we built the sources.
3703 gcc_gxx_include_dir=
3704 # Specify the g++ header file directory
3706 # Check whether --with-gxx-include-dir was given.
3707 if test "${with_gxx_include_dir+set}" = set; then :
3708 withval=$with_gxx_include_dir; case "${withval}" in
3709 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3710 no) ;;
3711 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3712 esac
3716 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3717 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3718 # relative to the sysroot.
3719 gcc_gxx_include_dir_add_sysroot=0
3721 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3722 if test x${gcc_gxx_include_dir} = x; then
3723 if test x${enable_version_specific_runtime_libs} = xyes; then
3724 gcc_gxx_include_dir='${libsubdir}/include/c++'
3725 else
3726 libstdcxx_incdir='include/c++/$(version)'
3727 if test x$host != x$target; then
3728 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3730 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3732 elif test "${with_sysroot+set}" = set; then
3733 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3734 if test "${gcc_gxx_without_sysroot}"; then
3735 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3736 gcc_gxx_include_dir_add_sysroot=1
3740 # Configuration for an alternate set of C++ headers.
3741 gcc_gxx_libcxx_include_dir=
3742 # Specify the alternate g++ header file directory
3744 # Check whether --with-gxx-libcxx-include-dir was given.
3745 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3746 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3747 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3748 no) ;;
3749 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3750 esac
3754 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3755 # check to see if the latter starts with the former and, upon success, compute
3756 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3757 gcc_gxx_libcxx_include_dir_add_sysroot=0
3759 if test x${gcc_gxx_libcxx_include_dir} != x; then
3761 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3763 else
3764 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3767 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3768 if test x${gcc_gxx_libcxx_include_dir} = x; then
3769 if test x${enable_version_specific_runtime_libs} = xyes; then
3770 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3771 else
3772 libcxx_incdir='libc++_include/c++/$(version)/v1'
3773 if test x$host != x$target; then
3774 libcxx_incdir="$target_alias/$libcxx_incdir"
3776 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3778 elif test "${with_sysroot+set}" = set; then
3779 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3780 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3781 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3782 gcc_gxx_libcxx_include_dir_add_sysroot=1
3787 # Check whether --with-cpp_install_dir was given.
3788 if test "${with_cpp_install_dir+set}" = set; then :
3789 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3790 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3791 elif test x$withval != xno; then
3792 cpp_install_dir=$withval
3797 # We would like to our source tree to be readonly. However when releases or
3798 # pre-releases are generated, the flex/bison generated files as well as the
3799 # various formats of manuals need to be included along with the rest of the
3800 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3801 # just that.
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3804 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3805 # Check whether --enable-generated-files-in-srcdir was given.
3806 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3807 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3808 else
3809 generated_files_in_srcdir=no
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3814 $as_echo "$generated_files_in_srcdir" >&6; }
3816 if test "$generated_files_in_srcdir" = "yes"; then
3817 GENINSRC=''
3818 else
3819 GENINSRC='#'
3823 # -------------------
3824 # Find default linker
3825 # -------------------
3827 # With GNU ld
3829 # Check whether --with-gnu-ld was given.
3830 if test "${with_gnu_ld+set}" = set; then :
3831 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3832 else
3833 gnu_ld_flag=no
3837 case $target in
3838 *darwin*)
3839 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3840 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3843 ld64_flag=no
3844 dsymutil_flag=no
3846 esac
3848 # With pre-defined ld
3850 # Check whether --with-ld was given.
3851 if test "${with_ld+set}" = set; then :
3852 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3855 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3856 if test ! -x "$DEFAULT_LINKER"; then
3857 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3858 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3859 gnu_ld_flag=yes
3860 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3861 ld64_flag=yes
3864 cat >>confdefs.h <<_ACEOF
3865 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3866 _ACEOF
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3871 $as_echo_n "checking whether a default linker was specified... " >&6; }
3872 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3873 if test x"$gnu_ld_flag" = x"no"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3875 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3876 else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3878 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3885 # With demangler in GNU ld
3887 # Check whether --with-demangler-in-ld was given.
3888 if test "${with_demangler_in_ld+set}" = set; then :
3889 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3890 else
3891 demangler_in_ld=yes
3895 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3897 # Check whether --with-dsymutil was given.
3898 if test "${with_dsymutil+set}" = set; then :
3899 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3903 dsymutil_vers=
3904 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3905 if test ! -x "$DEFAULT_DSYMUTIL"; then
3906 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3907 else
3908 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3909 dsymutil_flag=yes
3913 cat >>confdefs.h <<_ACEOF
3914 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3915 _ACEOF
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3920 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3921 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3923 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 # ----------------------
3930 # Find default assembler
3931 # ----------------------
3933 # With GNU as
3935 # Check whether --with-gnu-as was given.
3936 if test "${with_gnu_as+set}" = set; then :
3937 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3938 else
3939 gas_flag=no
3944 # Check whether --with-as was given.
3945 if test "${with_as+set}" = set; then :
3946 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3949 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3950 if test ! -x "$DEFAULT_ASSEMBLER"; then
3951 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3952 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3953 gas_flag=yes
3956 cat >>confdefs.h <<_ACEOF
3957 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3958 _ACEOF
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3963 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3964 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3965 if test x"$gas_flag" = x"no"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3967 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3970 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3972 else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3977 # ---------------
3978 # Find C compiler
3979 # ---------------
3981 # If a non-executable a.out is present (e.g. created by GNU as above even if
3982 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3983 # file, even when creating an executable, so an execution test fails.
3984 # Remove possible default executable files to avoid this.
3986 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3987 # Autoconf includes it.
3988 rm -f a.out a.exe b.out
3990 # Find the native compiler
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_CC+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4018 done
4019 done
4020 IFS=$as_save_IFS
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4035 if test -z "$ac_cv_prog_CC"; then
4036 ac_ct_CC=$CC
4037 # Extract the first word of "gcc", so it can be a program name with args.
4038 set dummy gcc; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_CC="gcc"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4058 done
4059 done
4060 IFS=$as_save_IFS
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 $as_echo "$ac_ct_CC" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082 CC=$ac_ct_CC
4084 else
4085 CC="$ac_cv_prog_CC"
4088 if test -z "$CC"; then
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}cc; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_CC+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_CC="${ac_tool_prefix}cc"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4111 done
4112 done
4113 IFS=$as_save_IFS
4117 CC=$ac_cv_prog_CC
4118 if test -n "$CC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4120 $as_echo "$CC" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4129 if test -z "$CC"; then
4130 # Extract the first word of "cc", so it can be a program name with args.
4131 set dummy cc; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_CC+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 ac_prog_rejected=no
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4149 ac_prog_rejected=yes
4150 continue
4152 ac_cv_prog_CC="cc"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4156 done
4157 done
4158 IFS=$as_save_IFS
4160 if test $ac_prog_rejected = yes; then
4161 # We found a bogon in the path, so make sure we never use it.
4162 set dummy $ac_cv_prog_CC
4163 shift
4164 if test $# != 0; then
4165 # We chose a different compiler from the bogus one.
4166 # However, it has the same basename, so the bogon will be chosen
4167 # first if we set CC to just the basename; use the full file name.
4168 shift
4169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4174 CC=$ac_cv_prog_CC
4175 if test -n "$CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 $as_echo "$CC" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 for ac_prog in cl.exe
4189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_CC+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4226 test -n "$CC" && break
4227 done
4229 if test -z "$CC"; then
4230 ac_ct_CC=$CC
4231 for ac_prog in cl.exe
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$ac_ct_CC"; then
4241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_ac_ct_CC="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4254 done
4255 done
4256 IFS=$as_save_IFS
4260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4261 if test -n "$ac_ct_CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4263 $as_echo "$ac_ct_CC" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$ac_ct_CC" && break
4271 done
4273 if test "x$ac_ct_CC" = x; then
4274 CC=""
4275 else
4276 case $cross_compiling:$ac_tool_warned in
4277 yes:)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280 ac_tool_warned=yes ;;
4281 esac
4282 CC=$ac_ct_CC
4289 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291 as_fn_error $? "no acceptable C compiler found in \$PATH
4292 See \`config.log' for more details" "$LINENO" 5; }
4294 # Provide some information about the compiler.
4295 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4296 set X $ac_compile
4297 ac_compiler=$2
4298 for ac_option in --version -v -V -qversion; do
4299 { { ac_try="$ac_compiler $ac_option >&5"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4307 ac_status=$?
4308 if test -s conftest.err; then
4309 sed '10a\
4310 ... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317 done
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4323 main ()
4327 return 0;
4329 _ACEOF
4330 ac_clean_files_save=$ac_clean_files
4331 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4332 # Try to create an executable without -o first, disregard a.out.
4333 # It will help us diagnose broken compilers, and finding out an intuition
4334 # of exeext.
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4336 $as_echo_n "checking whether the C compiler works... " >&6; }
4337 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4339 # The possible output files:
4340 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4342 ac_rmfiles=
4343 for ac_file in $ac_files
4345 case $ac_file in
4346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4347 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4348 esac
4349 done
4350 rm -f $ac_rmfiles
4352 if { { ac_try="$ac_link_default"
4353 case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358 $as_echo "$ac_try_echo"; } >&5
4359 (eval "$ac_link_default") 2>&5
4360 ac_status=$?
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }; then :
4363 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4365 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4366 # so that the user can short-circuit this test for compilers unknown to
4367 # Autoconf.
4368 for ac_file in $ac_files ''
4370 test -f "$ac_file" || continue
4371 case $ac_file in
4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4374 [ab].out )
4375 # We found the default executable, but exeext='' is most
4376 # certainly right.
4377 break;;
4378 *.* )
4379 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4380 then :; else
4381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383 # We set ac_cv_exeext here because the later test for it is not
4384 # safe: cross compilers may not add the suffix if given an `-o'
4385 # argument, so we may need to know it at that point already.
4386 # Even if this section looks crufty: it has the advantage of
4387 # actually working.
4388 break;;
4390 break;;
4391 esac
4392 done
4393 test "$ac_cv_exeext" = no && ac_cv_exeext=
4395 else
4396 ac_file=''
4398 if test -z "$ac_file"; then :
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 $as_echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error 77 "C compiler cannot create executables
4407 See \`config.log' for more details" "$LINENO" 5; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410 $as_echo "yes" >&6; }
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4413 $as_echo_n "checking for C compiler default output file name... " >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4415 $as_echo "$ac_file" >&6; }
4416 ac_exeext=$ac_cv_exeext
4418 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4419 ac_clean_files=$ac_clean_files_save
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4421 $as_echo_n "checking for suffix of executables... " >&6; }
4422 if { { ac_try="$ac_link"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_link") 2>&5
4430 ac_status=$?
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }; then :
4433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4435 # work properly (i.e., refer to `conftest.exe'), while it won't with
4436 # `rm'.
4437 for ac_file in conftest.exe conftest conftest.*; do
4438 test -f "$ac_file" || continue
4439 case $ac_file in
4440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4442 break;;
4443 * ) break;;
4444 esac
4445 done
4446 else
4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4449 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4450 See \`config.log' for more details" "$LINENO" 5; }
4452 rm -f conftest conftest$ac_cv_exeext
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4454 $as_echo "$ac_cv_exeext" >&6; }
4456 rm -f conftest.$ac_ext
4457 EXEEXT=$ac_cv_exeext
4458 ac_exeext=$EXEEXT
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <stdio.h>
4463 main ()
4465 FILE *f = fopen ("conftest.out", "w");
4466 return ferror (f) || fclose (f) != 0;
4469 return 0;
4471 _ACEOF
4472 ac_clean_files="$ac_clean_files conftest.out"
4473 # Check that the compiler produces executables we can run. If not, either
4474 # the compiler is broken, or we cross compile.
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4476 $as_echo_n "checking whether we are cross compiling... " >&6; }
4477 if test "$cross_compiling" != yes; then
4478 { { ac_try="$ac_link"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_link") 2>&5
4486 ac_status=$?
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4489 if { ac_try='./conftest$ac_cv_exeext'
4490 { { case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 $as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_try") 2>&5
4497 ac_status=$?
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; }; then
4500 cross_compiling=no
4501 else
4502 if test "$cross_compiling" = maybe; then
4503 cross_compiling=yes
4504 else
4505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4507 as_fn_error $? "cannot run C compiled programs.
4508 If you meant to cross compile, use \`--host'.
4509 See \`config.log' for more details" "$LINENO" 5; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4514 $as_echo "$cross_compiling" >&6; }
4516 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4517 ac_clean_files=$ac_clean_files_save
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4519 $as_echo_n "checking for suffix of object files... " >&6; }
4520 if ${ac_cv_objext+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4531 return 0;
4533 _ACEOF
4534 rm -f conftest.o conftest.obj
4535 if { { ac_try="$ac_compile"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_compile") 2>&5
4543 ac_status=$?
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
4546 for ac_file in conftest.o conftest.obj conftest.*; do
4547 test -f "$ac_file" || continue;
4548 case $ac_file in
4549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4550 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4551 break;;
4552 esac
4553 done
4554 else
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error $? "cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details" "$LINENO" 5; }
4563 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4566 $as_echo "$ac_cv_objext" >&6; }
4567 OBJEXT=$ac_cv_objext
4568 ac_objext=$OBJEXT
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4570 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4571 if ${ac_cv_c_compiler_gnu+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4580 #ifndef __GNUC__
4581 choke me
4582 #endif
4585 return 0;
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_compiler_gnu=yes
4590 else
4591 ac_compiler_gnu=no
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4598 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4599 if test $ac_compiler_gnu = yes; then
4600 GCC=yes
4601 else
4602 GCC=
4604 ac_test_CFLAGS=${CFLAGS+set}
4605 ac_save_CFLAGS=$CFLAGS
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4607 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4608 if ${ac_cv_prog_cc_g+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 ac_save_c_werror_flag=$ac_c_werror_flag
4612 ac_c_werror_flag=yes
4613 ac_cv_prog_cc_g=no
4614 CFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4619 main ()
4623 return 0;
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_prog_cc_g=yes
4628 else
4629 CFLAGS=""
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 main ()
4638 return 0;
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4643 else
4644 ac_c_werror_flag=$ac_save_c_werror_flag
4645 CFLAGS="-g"
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4650 main ()
4654 return 0;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_prog_cc_g=yes
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_c_werror_flag=$ac_save_c_werror_flag
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4668 $as_echo "$ac_cv_prog_cc_g" >&6; }
4669 if test "$ac_test_CFLAGS" = set; then
4670 CFLAGS=$ac_save_CFLAGS
4671 elif test $ac_cv_prog_cc_g = yes; then
4672 if test "$GCC" = yes; then
4673 CFLAGS="-g -O2"
4674 else
4675 CFLAGS="-g"
4677 else
4678 if test "$GCC" = yes; then
4679 CFLAGS="-O2"
4680 else
4681 CFLAGS=
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4685 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4686 if ${ac_cv_prog_cc_c89+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 ac_cv_prog_cc_c89=no
4690 ac_save_CC=$CC
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 #include <stdarg.h>
4694 #include <stdio.h>
4695 struct stat;
4696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4697 struct buf { int x; };
4698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4699 static char *e (p, i)
4700 char **p;
4701 int i;
4703 return p[i];
4705 static char *f (char * (*g) (char **, int), char **p, ...)
4707 char *s;
4708 va_list v;
4709 va_start (v,p);
4710 s = g (p, va_arg (v,int));
4711 va_end (v);
4712 return s;
4715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4716 function prototypes and stuff, but not '\xHH' hex character constants.
4717 These don't provoke an error unfortunately, instead are silently treated
4718 as 'x'. The following induces an error, until -std is added to get
4719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4720 array size at least. It's necessary to write '\x00'==0 to get something
4721 that's true only with -std. */
4722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4725 inside strings and character constants. */
4726 #define FOO(x) 'x'
4727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4729 int test (int i, double x);
4730 struct s1 {int (*f) (int a);};
4731 struct s2 {int (*f) (double a);};
4732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4733 int argc;
4734 char **argv;
4736 main ()
4738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4740 return 0;
4742 _ACEOF
4743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4746 CC="$ac_save_CC $ac_arg"
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_prog_cc_c89=$ac_arg
4750 rm -f core conftest.err conftest.$ac_objext
4751 test "x$ac_cv_prog_cc_c89" != "xno" && break
4752 done
4753 rm -f conftest.$ac_ext
4754 CC=$ac_save_CC
4757 # AC_CACHE_VAL
4758 case "x$ac_cv_prog_cc_c89" in
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4761 $as_echo "none needed" >&6; } ;;
4762 xno)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764 $as_echo "unsupported" >&6; } ;;
4766 CC="$CC $ac_cv_prog_cc_c89"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4768 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4769 esac
4770 if test "x$ac_cv_prog_cc_c89" != xno; then :
4774 ac_ext=c
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780 ac_ext=cpp
4781 ac_cpp='$CXXCPP $CPPFLAGS'
4782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4785 if test -z "$CXX"; then
4786 if test -n "$CCC"; then
4787 CXX=$CCC
4788 else
4789 if test -n "$ac_tool_prefix"; then
4790 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_CXX+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$CXX"; then
4800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 CXX=$ac_cv_prog_CXX
4820 if test -n "$CXX"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4822 $as_echo "$CXX" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4829 test -n "$CXX" && break
4830 done
4832 if test -z "$CXX"; then
4833 ac_ct_CXX=$CXX
4834 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837 set dummy $ac_prog; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$ac_ct_CXX"; then
4844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_CXX="$ac_prog"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4859 IFS=$as_save_IFS
4863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4864 if test -n "$ac_ct_CXX"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4866 $as_echo "$ac_ct_CXX" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4873 test -n "$ac_ct_CXX" && break
4874 done
4876 if test "x$ac_ct_CXX" = x; then
4877 CXX="g++"
4878 else
4879 case $cross_compiling:$ac_tool_warned in
4880 yes:)
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883 ac_tool_warned=yes ;;
4884 esac
4885 CXX=$ac_ct_CXX
4891 # Provide some information about the compiler.
4892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4893 set X $ac_compile
4894 ac_compiler=$2
4895 for ac_option in --version -v -V -qversion; do
4896 { { ac_try="$ac_compiler $ac_option >&5"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4902 $as_echo "$ac_try_echo"; } >&5
4903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4904 ac_status=$?
4905 if test -s conftest.err; then
4906 sed '10a\
4907 ... rest of stderr output deleted ...
4908 10q' conftest.err >conftest.er1
4909 cat conftest.er1 >&5
4911 rm -f conftest.er1 conftest.err
4912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }
4914 done
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4917 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4918 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4925 main ()
4927 #ifndef __GNUC__
4928 choke me
4929 #endif
4932 return 0;
4934 _ACEOF
4935 if ac_fn_cxx_try_compile "$LINENO"; then :
4936 ac_compiler_gnu=yes
4937 else
4938 ac_compiler_gnu=no
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4945 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4946 if test $ac_compiler_gnu = yes; then
4947 GXX=yes
4948 else
4949 GXX=
4951 ac_test_CXXFLAGS=${CXXFLAGS+set}
4952 ac_save_CXXFLAGS=$CXXFLAGS
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4954 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4955 if ${ac_cv_prog_cxx_g+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4959 ac_cxx_werror_flag=yes
4960 ac_cv_prog_cxx_g=no
4961 CXXFLAGS="-g"
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4966 main ()
4970 return 0;
4972 _ACEOF
4973 if ac_fn_cxx_try_compile "$LINENO"; then :
4974 ac_cv_prog_cxx_g=yes
4975 else
4976 CXXFLAGS=""
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4981 main ()
4985 return 0;
4987 _ACEOF
4988 if ac_fn_cxx_try_compile "$LINENO"; then :
4990 else
4991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4992 CXXFLAGS="-g"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 main ()
5001 return 0;
5003 _ACEOF
5004 if ac_fn_cxx_try_compile "$LINENO"; then :
5005 ac_cv_prog_cxx_g=yes
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5015 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5016 if test "$ac_test_CXXFLAGS" = set; then
5017 CXXFLAGS=$ac_save_CXXFLAGS
5018 elif test $ac_cv_prog_cxx_g = yes; then
5019 if test "$GXX" = yes; then
5020 CXXFLAGS="-g -O2"
5021 else
5022 CXXFLAGS="-g"
5024 else
5025 if test "$GXX" = yes; then
5026 CXXFLAGS="-O2"
5027 else
5028 CXXFLAGS=
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_GNATBIND+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$GNATBIND"; then
5049 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 GNATBIND=$ac_cv_prog_GNATBIND
5069 if test -n "$GNATBIND"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5071 $as_echo "$GNATBIND" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5079 if test -z "$ac_cv_prog_GNATBIND"; then
5080 ac_ct_GNATBIND=$GNATBIND
5081 # Extract the first word of "gnatbind", so it can be a program name with args.
5082 set dummy gnatbind; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$ac_ct_GNATBIND"; then
5089 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5109 if test -n "$ac_ct_GNATBIND"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5111 $as_echo "$ac_ct_GNATBIND" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5117 if test "x$ac_ct_GNATBIND" = x; then
5118 GNATBIND="no"
5119 else
5120 case $cross_compiling:$ac_tool_warned in
5121 yes:)
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5125 esac
5126 GNATBIND=$ac_ct_GNATBIND
5128 else
5129 GNATBIND="$ac_cv_prog_GNATBIND"
5132 if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5134 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_GNATMAKE+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$GNATMAKE"; then
5141 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5154 done
5155 done
5156 IFS=$as_save_IFS
5160 GNATMAKE=$ac_cv_prog_GNATMAKE
5161 if test -n "$GNATMAKE"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5163 $as_echo "$GNATMAKE" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5171 if test -z "$ac_cv_prog_GNATMAKE"; then
5172 ac_ct_GNATMAKE=$GNATMAKE
5173 # Extract the first word of "gnatmake", so it can be a program name with args.
5174 set dummy gnatmake; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$ac_ct_GNATMAKE"; then
5181 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5194 done
5195 done
5196 IFS=$as_save_IFS
5200 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5201 if test -n "$ac_ct_GNATMAKE"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5203 $as_echo "$ac_ct_GNATMAKE" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5209 if test "x$ac_ct_GNATMAKE" = x; then
5210 GNATMAKE="no"
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213 yes:)
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5217 esac
5218 GNATMAKE=$ac_ct_GNATMAKE
5220 else
5221 GNATMAKE="$ac_cv_prog_GNATMAKE"
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5225 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5226 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 cat >conftest.adb <<EOF
5230 procedure conftest is begin null; end conftest;
5232 acx_cv_cc_gcc_supports_ada=no
5233 # There is a bug in old released versions of GCC which causes the
5234 # driver to exit successfully when the appropriate language module
5235 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5236 # Therefore we must check for the error message as well as an
5237 # unsuccessful exit.
5238 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5239 # given a .adb file, but produce no object file. So we must check
5240 # if an object file was really produced to guard against this.
5241 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5242 if test x"$errors" = x && test -f conftest.$ac_objext; then
5243 acx_cv_cc_gcc_supports_ada=yes
5245 rm -f conftest.*
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5248 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5250 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5251 have_gnat=yes
5252 else
5253 have_gnat=no
5257 # Do configure tests with the C++ compiler, since that's what we build with.
5258 ac_ext=cpp
5259 ac_cpp='$CXXCPP $CPPFLAGS'
5260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5265 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5266 # optimizations to be activated explicitly by the toplevel.
5267 case "$CC" in
5268 */prev-gcc/xgcc*) ;;
5269 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5270 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5271 esac
5275 # Determine PICFLAG for target gnatlib.
5280 case "${target}" in
5281 # PIC is the default on some targets or must not be used.
5282 *-*-darwin*)
5283 # For darwin, common symbols are not allowed in MH_DYLIB files
5284 case "${CFLAGS}" in
5285 # If we are using a compiler supporting mdynamic-no-pic
5286 # and the option has been tested as safe to add, then cancel
5287 # it here, since the code generated is incompatible with shared
5288 # libs.
5289 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5290 *) PICFLAG_FOR_TARGET=-fno-common ;;
5291 esac
5293 alpha*-dec-osf5*)
5294 # PIC is the default.
5296 hppa*64*-*-hpux*)
5297 # PIC is the default for 64-bit PA HP-UX.
5299 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5301 i[34567]86-*-mingw* | x86_64-*-mingw*)
5303 i[34567]86-*-interix[3-9]*)
5304 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5305 # Instead, we relocate shared libraries at runtime.
5307 i[34567]86-*-nto-qnx*)
5308 # QNX uses GNU C++, but need to define -shared option too, otherwise
5309 # it will coredump.
5310 PICFLAG_FOR_TARGET='-fPIC -shared'
5312 i[34567]86-pc-msdosdjgpp*)
5313 # DJGPP does not support shared libraries at all.
5315 ia64*-*-hpux*)
5316 # On IA64 HP-UX, PIC is the default but the pic flag
5317 # sets the default TLS model and affects inlining.
5318 PICFLAG_FOR_TARGET=-fPIC
5320 mips-sgi-irix6*)
5321 # PIC is the default.
5323 rs6000-ibm-aix* | powerpc-ibm-aix*)
5324 # All AIX code is PIC.
5327 # Some targets support both -fPIC and -fpic, but prefer the latter.
5328 # FIXME: Why?
5329 i[34567]86-*-* | x86_64-*-*)
5330 PICFLAG_FOR_TARGET=-fpic
5332 # FIXME: Override -fPIC default in libgcc only?
5333 sh-*-linux* | sh[2346lbe]*-*-linux*)
5334 PICFLAG_FOR_TARGET=-fpic
5336 # FIXME: Simplify to sh*-*-netbsd*?
5337 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5338 sh64-*-netbsd* | sh64l*-*-netbsd*)
5339 PICFLAG_FOR_TARGET=-fpic
5341 # Default to -fPIC unless specified otherwise.
5343 PICFLAG_FOR_TARGET=-fPIC
5345 esac
5347 # If the user explicitly uses -fpic/-fPIC, keep that.
5348 case "${CFLAGS_FOR_TARGET}" in
5349 *-fpic*)
5350 PICFLAG_FOR_TARGET=-fpic
5352 *-fPIC*)
5353 PICFLAG_FOR_TARGET=-fPIC
5355 esac
5359 # -------------------------
5360 # Check C compiler features
5361 # -------------------------
5364 ac_ext=cpp
5365 ac_cpp='$CXXCPP $CPPFLAGS'
5366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5370 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5371 if test -z "$CXXCPP"; then
5372 if ${ac_cv_prog_CXXCPP+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 # Double quotes because CXXCPP needs to be expanded
5376 for CXXCPP in "$CXX -E" "/lib/cpp"
5378 ac_preproc_ok=false
5379 for ac_cxx_preproc_warn_flag in '' yes
5381 # Use a header file that comes with gcc, so configuring glibc
5382 # with a fresh cross-compiler works.
5383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5384 # <limits.h> exists even on freestanding compilers.
5385 # On the NeXT, cc -E runs the code through the compiler's parser,
5386 # not just through cpp. "Syntax error" is here to catch this case.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #ifdef __STDC__
5390 # include <limits.h>
5391 #else
5392 # include <assert.h>
5393 #endif
5394 Syntax error
5395 _ACEOF
5396 if ac_fn_cxx_try_cpp "$LINENO"; then :
5398 else
5399 # Broken: fails on valid input.
5400 continue
5402 rm -f conftest.err conftest.i conftest.$ac_ext
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <ac_nonexistent.h>
5409 _ACEOF
5410 if ac_fn_cxx_try_cpp "$LINENO"; then :
5411 # Broken: success on invalid input.
5412 continue
5413 else
5414 # Passes both tests.
5415 ac_preproc_ok=:
5416 break
5418 rm -f conftest.err conftest.i conftest.$ac_ext
5420 done
5421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5422 rm -f conftest.i conftest.err conftest.$ac_ext
5423 if $ac_preproc_ok; then :
5424 break
5427 done
5428 ac_cv_prog_CXXCPP=$CXXCPP
5431 CXXCPP=$ac_cv_prog_CXXCPP
5432 else
5433 ac_cv_prog_CXXCPP=$CXXCPP
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5436 $as_echo "$CXXCPP" >&6; }
5437 ac_preproc_ok=false
5438 for ac_cxx_preproc_warn_flag in '' yes
5440 # Use a header file that comes with gcc, so configuring glibc
5441 # with a fresh cross-compiler works.
5442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443 # <limits.h> exists even on freestanding compilers.
5444 # On the NeXT, cc -E runs the code through the compiler's parser,
5445 # not just through cpp. "Syntax error" is here to catch this case.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #ifdef __STDC__
5449 # include <limits.h>
5450 #else
5451 # include <assert.h>
5452 #endif
5453 Syntax error
5454 _ACEOF
5455 if ac_fn_cxx_try_cpp "$LINENO"; then :
5457 else
5458 # Broken: fails on valid input.
5459 continue
5461 rm -f conftest.err conftest.i conftest.$ac_ext
5463 # OK, works on sane cases. Now check whether nonexistent headers
5464 # can be detected and how.
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <ac_nonexistent.h>
5468 _ACEOF
5469 if ac_fn_cxx_try_cpp "$LINENO"; then :
5470 # Broken: success on invalid input.
5471 continue
5472 else
5473 # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5477 rm -f conftest.err conftest.i conftest.$ac_ext
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.i conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then :
5484 else
5485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5487 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5488 See \`config.log' for more details" "$LINENO" 5; }
5491 ac_ext=cpp
5492 ac_cpp='$CXXCPP $CPPFLAGS'
5493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5499 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5500 if ${ac_cv_path_GREP+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -z "$GREP"; then
5504 ac_path_GREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in grep ggrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5514 as_fn_executable_p "$ac_path_GREP" || continue
5515 # Check for GNU ac_path_GREP and select it if it is found.
5516 # Check for GNU $ac_path_GREP
5517 case `"$ac_path_GREP" --version 2>&1` in
5518 *GNU*)
5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5521 ac_count=0
5522 $as_echo_n 0123456789 >"conftest.in"
5523 while :
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo 'GREP' >> "conftest.nl"
5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_GREP="$ac_path_GREP"
5535 ac_path_GREP_max=$ac_count
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5539 done
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541 esac
5543 $ac_path_GREP_found && break 3
5544 done
5545 done
5546 done
5547 IFS=$as_save_IFS
5548 if test -z "$ac_cv_path_GREP"; then
5549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5551 else
5552 ac_cv_path_GREP=$GREP
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5557 $as_echo "$ac_cv_path_GREP" >&6; }
5558 GREP="$ac_cv_path_GREP"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5562 $as_echo_n "checking for egrep... " >&6; }
5563 if ${ac_cv_path_EGREP+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5567 then ac_cv_path_EGREP="$GREP -E"
5568 else
5569 if test -z "$EGREP"; then
5570 ac_path_EGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in egrep; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5580 as_fn_executable_p "$ac_path_EGREP" || continue
5581 # Check for GNU ac_path_EGREP and select it if it is found.
5582 # Check for GNU $ac_path_EGREP
5583 case `"$ac_path_EGREP" --version 2>&1` in
5584 *GNU*)
5585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5587 ac_count=0
5588 $as_echo_n 0123456789 >"conftest.in"
5589 while :
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo 'EGREP' >> "conftest.nl"
5595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_EGREP="$ac_path_EGREP"
5601 ac_path_EGREP_max=$ac_count
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607 esac
5609 $ac_path_EGREP_found && break 3
5610 done
5611 done
5612 done
5613 IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_EGREP"; then
5615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5617 else
5618 ac_cv_path_EGREP=$EGREP
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5624 $as_echo "$ac_cv_path_EGREP" >&6; }
5625 EGREP="$ac_cv_path_EGREP"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5629 $as_echo_n "checking for ANSI C header files... " >&6; }
5630 if ${ac_cv_header_stdc+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <stdlib.h>
5636 #include <stdarg.h>
5637 #include <string.h>
5638 #include <float.h>
5641 main ()
5645 return 0;
5647 _ACEOF
5648 if ac_fn_cxx_try_compile "$LINENO"; then :
5649 ac_cv_header_stdc=yes
5650 else
5651 ac_cv_header_stdc=no
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 if test $ac_cv_header_stdc = yes; then
5656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <string.h>
5661 _ACEOF
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "memchr" >/dev/null 2>&1; then :
5665 else
5666 ac_cv_header_stdc=no
5668 rm -f conftest*
5672 if test $ac_cv_header_stdc = yes; then
5673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <stdlib.h>
5678 _ACEOF
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "free" >/dev/null 2>&1; then :
5682 else
5683 ac_cv_header_stdc=no
5685 rm -f conftest*
5689 if test $ac_cv_header_stdc = yes; then
5690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5691 if test "$cross_compiling" = yes; then :
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <ctype.h>
5697 #include <stdlib.h>
5698 #if ((' ' & 0x0FF) == 0x020)
5699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5701 #else
5702 # define ISLOWER(c) \
5703 (('a' <= (c) && (c) <= 'i') \
5704 || ('j' <= (c) && (c) <= 'r') \
5705 || ('s' <= (c) && (c) <= 'z'))
5706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707 #endif
5709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5711 main ()
5713 int i;
5714 for (i = 0; i < 256; i++)
5715 if (XOR (islower (i), ISLOWER (i))
5716 || toupper (i) != TOUPPER (i))
5717 return 2;
5718 return 0;
5720 _ACEOF
5721 if ac_fn_cxx_try_run "$LINENO"; then :
5723 else
5724 ac_cv_header_stdc=no
5726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5727 conftest.$ac_objext conftest.beam conftest.$ac_ext
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5733 $as_echo "$ac_cv_header_stdc" >&6; }
5734 if test $ac_cv_header_stdc = yes; then
5736 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5742 inttypes.h stdint.h unistd.h
5743 do :
5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5748 cat >>confdefs.h <<_ACEOF
5749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 _ACEOF
5754 done
5758 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5759 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5760 MINIX=yes
5761 else
5762 MINIX=
5766 if test "$MINIX" = yes; then
5768 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5771 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5774 $as_echo "#define _MINIX 1" >>confdefs.h
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5780 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5781 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5787 # define __EXTENSIONS__ 1
5788 $ac_includes_default
5790 main ()
5794 return 0;
5796 _ACEOF
5797 if ac_fn_cxx_try_compile "$LINENO"; then :
5798 ac_cv_safe_to_define___extensions__=yes
5799 else
5800 ac_cv_safe_to_define___extensions__=no
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5805 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5806 test $ac_cv_safe_to_define___extensions__ = yes &&
5807 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5809 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5811 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5813 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5815 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5819 ac_ext=c
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5826 # On Suns, sometimes $CPP names a directory.
5827 if test -n "$CPP" && test -d "$CPP"; then
5828 CPP=
5830 if test -z "$CPP"; then
5831 if ${ac_cv_prog_CPP+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 # Double quotes because CPP needs to be expanded
5835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5837 ac_preproc_ok=false
5838 for ac_c_preproc_warn_flag in '' yes
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843 # <limits.h> exists even on freestanding compilers.
5844 # On the NeXT, cc -E runs the code through the compiler's parser,
5845 # not just through cpp. "Syntax error" is here to catch this case.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #ifdef __STDC__
5849 # include <limits.h>
5850 #else
5851 # include <assert.h>
5852 #endif
5853 Syntax error
5854 _ACEOF
5855 if ac_fn_c_try_cpp "$LINENO"; then :
5857 else
5858 # Broken: fails on valid input.
5859 continue
5861 rm -f conftest.err conftest.i conftest.$ac_ext
5863 # OK, works on sane cases. Now check whether nonexistent headers
5864 # can be detected and how.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <ac_nonexistent.h>
5868 _ACEOF
5869 if ac_fn_c_try_cpp "$LINENO"; then :
5870 # Broken: success on invalid input.
5871 continue
5872 else
5873 # Passes both tests.
5874 ac_preproc_ok=:
5875 break
5877 rm -f conftest.err conftest.i conftest.$ac_ext
5879 done
5880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881 rm -f conftest.i conftest.err conftest.$ac_ext
5882 if $ac_preproc_ok; then :
5883 break
5886 done
5887 ac_cv_prog_CPP=$CPP
5890 CPP=$ac_cv_prog_CPP
5891 else
5892 ac_cv_prog_CPP=$CPP
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5895 $as_echo "$CPP" >&6; }
5896 ac_preproc_ok=false
5897 for ac_c_preproc_warn_flag in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912 Syntax error
5913 _ACEOF
5914 if ac_fn_c_try_cpp "$LINENO"; then :
5916 else
5917 # Broken: fails on valid input.
5918 continue
5920 rm -f conftest.err conftest.i conftest.$ac_ext
5922 # OK, works on sane cases. Now check whether nonexistent headers
5923 # can be detected and how.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <ac_nonexistent.h>
5927 _ACEOF
5928 if ac_fn_c_try_cpp "$LINENO"; then :
5929 # Broken: success on invalid input.
5930 continue
5931 else
5932 # Passes both tests.
5933 ac_preproc_ok=:
5934 break
5936 rm -f conftest.err conftest.i conftest.$ac_ext
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.i conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then :
5943 else
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5947 See \`config.log' for more details" "$LINENO" 5; }
5950 ac_ext=cpp
5951 ac_cpp='$CXXCPP $CPPFLAGS'
5952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5957 $as_echo_n "checking for inline... " >&6; }
5958 if ${ac_cv_c_inline+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 ac_cv_c_inline=no
5962 for ac_kw in inline __inline__ __inline; do
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 #ifndef __cplusplus
5966 typedef int foo_t;
5967 static $ac_kw foo_t static_foo () {return 0; }
5968 $ac_kw foo_t foo () {return 0; }
5969 #endif
5971 _ACEOF
5972 if ac_fn_cxx_try_compile "$LINENO"; then :
5973 ac_cv_c_inline=$ac_kw
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 test "$ac_cv_c_inline" != no && break
5977 done
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5981 $as_echo "$ac_cv_c_inline" >&6; }
5983 case $ac_cv_c_inline in
5984 inline | yes) ;;
5986 case $ac_cv_c_inline in
5987 no) ac_val=;;
5988 *) ac_val=$ac_cv_c_inline;;
5989 esac
5990 cat >>confdefs.h <<_ACEOF
5991 #ifndef __cplusplus
5992 #define inline $ac_val
5993 #endif
5994 _ACEOF
5996 esac
5999 # Check whether --enable-largefile was given.
6000 if test "${enable_largefile+set}" = set; then :
6001 enableval=$enable_largefile;
6004 if test "$enable_largefile" != no; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6007 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6008 if ${ac_cv_sys_largefile_CC+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 ac_cv_sys_largefile_CC=no
6012 if test "$GCC" != yes; then
6013 ac_save_CC=$CC
6014 while :; do
6015 # IRIX 6.2 and later do not support large files by default,
6016 # so use the C compiler's -n32 option if that helps.
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #include <sys/types.h>
6020 /* Check that off_t can represent 2**63 - 1 correctly.
6021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6022 since some C++ compilers masquerading as C compilers
6023 incorrectly reject 9223372036854775807. */
6024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6026 && LARGE_OFF_T % 2147483647 == 1)
6027 ? 1 : -1];
6029 main ()
6033 return 0;
6035 _ACEOF
6036 if ac_fn_cxx_try_compile "$LINENO"; then :
6037 break
6039 rm -f core conftest.err conftest.$ac_objext
6040 CC="$CC -n32"
6041 if ac_fn_cxx_try_compile "$LINENO"; then :
6042 ac_cv_sys_largefile_CC=' -n32'; break
6044 rm -f core conftest.err conftest.$ac_objext
6045 break
6046 done
6047 CC=$ac_save_CC
6048 rm -f conftest.$ac_ext
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6052 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6053 if test "$ac_cv_sys_largefile_CC" != no; then
6054 CC=$CC$ac_cv_sys_largefile_CC
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6058 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6059 if ${ac_cv_sys_file_offset_bits+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 while :; do
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #include <sys/types.h>
6066 /* Check that off_t can represent 2**63 - 1 correctly.
6067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6068 since some C++ compilers masquerading as C compilers
6069 incorrectly reject 9223372036854775807. */
6070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6072 && LARGE_OFF_T % 2147483647 == 1)
6073 ? 1 : -1];
6075 main ()
6079 return 0;
6081 _ACEOF
6082 if ac_fn_cxx_try_compile "$LINENO"; then :
6083 ac_cv_sys_file_offset_bits=no; break
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #define _FILE_OFFSET_BITS 64
6089 #include <sys/types.h>
6090 /* Check that off_t can represent 2**63 - 1 correctly.
6091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6092 since some C++ compilers masquerading as C compilers
6093 incorrectly reject 9223372036854775807. */
6094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6096 && LARGE_OFF_T % 2147483647 == 1)
6097 ? 1 : -1];
6099 main ()
6103 return 0;
6105 _ACEOF
6106 if ac_fn_cxx_try_compile "$LINENO"; then :
6107 ac_cv_sys_file_offset_bits=64; break
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 ac_cv_sys_file_offset_bits=unknown
6111 break
6112 done
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6115 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6116 case $ac_cv_sys_file_offset_bits in #(
6117 no | unknown) ;;
6119 cat >>confdefs.h <<_ACEOF
6120 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6121 _ACEOF
6123 esac
6124 rm -rf conftest*
6125 if test $ac_cv_sys_file_offset_bits = unknown; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6127 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6128 if ${ac_cv_sys_large_files+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 while :; do
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <sys/types.h>
6135 /* Check that off_t can represent 2**63 - 1 correctly.
6136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6137 since some C++ compilers masquerading as C compilers
6138 incorrectly reject 9223372036854775807. */
6139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6141 && LARGE_OFF_T % 2147483647 == 1)
6142 ? 1 : -1];
6144 main ()
6148 return 0;
6150 _ACEOF
6151 if ac_fn_cxx_try_compile "$LINENO"; then :
6152 ac_cv_sys_large_files=no; break
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #define _LARGE_FILES 1
6158 #include <sys/types.h>
6159 /* Check that off_t can represent 2**63 - 1 correctly.
6160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6161 since some C++ compilers masquerading as C compilers
6162 incorrectly reject 9223372036854775807. */
6163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6165 && LARGE_OFF_T % 2147483647 == 1)
6166 ? 1 : -1];
6168 main ()
6172 return 0;
6174 _ACEOF
6175 if ac_fn_cxx_try_compile "$LINENO"; then :
6176 ac_cv_sys_large_files=1; break
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_cv_sys_large_files=unknown
6180 break
6181 done
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6184 $as_echo "$ac_cv_sys_large_files" >&6; }
6185 case $ac_cv_sys_large_files in #(
6186 no | unknown) ;;
6188 cat >>confdefs.h <<_ACEOF
6189 #define _LARGE_FILES $ac_cv_sys_large_files
6190 _ACEOF
6192 esac
6193 rm -rf conftest*
6200 # sizeof(char) is 1 by definition.
6201 # The cast to long int works around a bug in the HP C Compiler
6202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6204 # This bug is HP SR number 8606223364.
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6206 $as_echo_n "checking size of void *... " >&6; }
6207 if ${ac_cv_sizeof_void_p+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6212 else
6213 if test "$ac_cv_type_void_p" = yes; then
6214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6216 as_fn_error 77 "cannot compute sizeof (void *)
6217 See \`config.log' for more details" "$LINENO" 5; }
6218 else
6219 ac_cv_sizeof_void_p=0
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6225 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6229 cat >>confdefs.h <<_ACEOF
6230 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6231 _ACEOF
6234 # The cast to long int works around a bug in the HP C Compiler
6235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6237 # This bug is HP SR number 8606223364.
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6239 $as_echo_n "checking size of short... " >&6; }
6240 if ${ac_cv_sizeof_short+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6245 else
6246 if test "$ac_cv_type_short" = yes; then
6247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6249 as_fn_error 77 "cannot compute sizeof (short)
6250 See \`config.log' for more details" "$LINENO" 5; }
6251 else
6252 ac_cv_sizeof_short=0
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6258 $as_echo "$ac_cv_sizeof_short" >&6; }
6262 cat >>confdefs.h <<_ACEOF
6263 #define SIZEOF_SHORT $ac_cv_sizeof_short
6264 _ACEOF
6267 # The cast to long int works around a bug in the HP C Compiler
6268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6270 # This bug is HP SR number 8606223364.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6272 $as_echo_n "checking size of int... " >&6; }
6273 if ${ac_cv_sizeof_int+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6278 else
6279 if test "$ac_cv_type_int" = yes; then
6280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6282 as_fn_error 77 "cannot compute sizeof (int)
6283 See \`config.log' for more details" "$LINENO" 5; }
6284 else
6285 ac_cv_sizeof_int=0
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6291 $as_echo "$ac_cv_sizeof_int" >&6; }
6295 cat >>confdefs.h <<_ACEOF
6296 #define SIZEOF_INT $ac_cv_sizeof_int
6297 _ACEOF
6300 # The cast to long int works around a bug in the HP C Compiler
6301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6303 # This bug is HP SR number 8606223364.
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6305 $as_echo_n "checking size of long... " >&6; }
6306 if ${ac_cv_sizeof_long+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6311 else
6312 if test "$ac_cv_type_long" = yes; then
6313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6315 as_fn_error 77 "cannot compute sizeof (long)
6316 See \`config.log' for more details" "$LINENO" 5; }
6317 else
6318 ac_cv_sizeof_long=0
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6324 $as_echo "$ac_cv_sizeof_long" >&6; }
6328 cat >>confdefs.h <<_ACEOF
6329 #define SIZEOF_LONG $ac_cv_sizeof_long
6330 _ACEOF
6333 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6334 if test "x$ac_cv_type_long_long" = xyes; then :
6336 cat >>confdefs.h <<_ACEOF
6337 #define HAVE_LONG_LONG 1
6338 _ACEOF
6340 # The cast to long int works around a bug in the HP C Compiler
6341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343 # This bug is HP SR number 8606223364.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6345 $as_echo_n "checking size of long long... " >&6; }
6346 if ${ac_cv_sizeof_long_long+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6351 else
6352 if test "$ac_cv_type_long_long" = yes; then
6353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6355 as_fn_error 77 "cannot compute sizeof (long long)
6356 See \`config.log' for more details" "$LINENO" 5; }
6357 else
6358 ac_cv_sizeof_long_long=0
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6364 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6368 cat >>confdefs.h <<_ACEOF
6369 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6370 _ACEOF
6375 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6376 case $ac_cv_c_int8_t in #(
6377 no|yes) ;; #(
6380 cat >>confdefs.h <<_ACEOF
6381 #define int8_t $ac_cv_c_int8_t
6382 _ACEOF
6384 esac
6386 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6387 case $ac_cv_c_int16_t in #(
6388 no|yes) ;; #(
6391 cat >>confdefs.h <<_ACEOF
6392 #define int16_t $ac_cv_c_int16_t
6393 _ACEOF
6395 esac
6397 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6398 case $ac_cv_c_int32_t in #(
6399 no|yes) ;; #(
6402 cat >>confdefs.h <<_ACEOF
6403 #define int32_t $ac_cv_c_int32_t
6404 _ACEOF
6406 esac
6408 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6409 case $ac_cv_c_int64_t in #(
6410 no|yes) ;; #(
6413 cat >>confdefs.h <<_ACEOF
6414 #define int64_t $ac_cv_c_int64_t
6415 _ACEOF
6417 esac
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6421 $as_echo_n "checking for unsigned long long int... " >&6; }
6422 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 ac_cv_type_unsigned_long_long_int=yes
6426 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6430 /* For now, do not test the preprocessor; as of 2007 there are too many
6431 implementations with broken preprocessors. Perhaps this can
6432 be revisited in 2012. In the meantime, code should not expect
6433 #if to work with literals wider than 32 bits. */
6434 /* Test literals. */
6435 long long int ll = 9223372036854775807ll;
6436 long long int nll = -9223372036854775807LL;
6437 unsigned long long int ull = 18446744073709551615ULL;
6438 /* Test constant expressions. */
6439 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6440 ? 1 : -1)];
6441 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6442 ? 1 : -1)];
6443 int i = 63;
6445 main ()
6447 /* Test availability of runtime routines for shift and division. */
6448 long long int llmax = 9223372036854775807ll;
6449 unsigned long long int ullmax = 18446744073709551615ull;
6450 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6451 | (llmax / ll) | (llmax % ll)
6452 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6453 | (ullmax / ull) | (ullmax % ull));
6455 return 0;
6458 _ACEOF
6459 if ac_fn_cxx_try_link "$LINENO"; then :
6461 else
6462 ac_cv_type_unsigned_long_long_int=no
6464 rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6469 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6470 if test $ac_cv_type_unsigned_long_long_int = yes; then
6472 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6479 $as_echo_n "checking for long long int... " >&6; }
6480 if ${ac_cv_type_long_long_int+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 ac_cv_type_long_long_int=yes
6484 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6485 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6486 if test $ac_cv_type_long_long_int = yes; then
6487 if test "$cross_compiling" = yes; then :
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #include <limits.h>
6493 #ifndef LLONG_MAX
6494 # define HALF \
6495 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6496 # define LLONG_MAX (HALF - 1 + HALF)
6497 #endif
6499 main ()
6501 long long int n = 1;
6502 int i;
6503 for (i = 0; ; i++)
6505 long long int m = n << i;
6506 if (m >> i != n)
6507 return 1;
6508 if (LLONG_MAX / 2 < m)
6509 break;
6511 return 0;
6513 return 0;
6515 _ACEOF
6516 if ac_fn_cxx_try_run "$LINENO"; then :
6518 else
6519 ac_cv_type_long_long_int=no
6521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6522 conftest.$ac_objext conftest.beam conftest.$ac_ext
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6529 $as_echo "$ac_cv_type_long_long_int" >&6; }
6530 if test $ac_cv_type_long_long_int = yes; then
6532 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6538 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6539 if test "x$ac_cv_type_intmax_t" = xyes; then :
6541 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6543 else
6544 test $ac_cv_type_long_long_int = yes \
6545 && ac_type='long long int' \
6546 || ac_type='long int'
6548 cat >>confdefs.h <<_ACEOF
6549 #define intmax_t $ac_type
6550 _ACEOF
6556 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6557 if test "x$ac_cv_type_intptr_t" = xyes; then :
6559 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6561 else
6562 for ac_type in 'int' 'long int' 'long long int'; do
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565 $ac_includes_default
6567 main ()
6569 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6570 test_array [0] = 0;
6571 return test_array [0];
6574 return 0;
6576 _ACEOF
6577 if ac_fn_cxx_try_compile "$LINENO"; then :
6579 cat >>confdefs.h <<_ACEOF
6580 #define intptr_t $ac_type
6581 _ACEOF
6583 ac_type=
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 test -z "$ac_type" && break
6587 done
6591 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6592 case $ac_cv_c_uint8_t in #(
6593 no|yes) ;; #(
6596 $as_echo "#define _UINT8_T 1" >>confdefs.h
6599 cat >>confdefs.h <<_ACEOF
6600 #define uint8_t $ac_cv_c_uint8_t
6601 _ACEOF
6603 esac
6605 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6606 case $ac_cv_c_uint16_t in #(
6607 no|yes) ;; #(
6611 cat >>confdefs.h <<_ACEOF
6612 #define uint16_t $ac_cv_c_uint16_t
6613 _ACEOF
6615 esac
6617 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6618 case $ac_cv_c_uint32_t in #(
6619 no|yes) ;; #(
6622 $as_echo "#define _UINT32_T 1" >>confdefs.h
6625 cat >>confdefs.h <<_ACEOF
6626 #define uint32_t $ac_cv_c_uint32_t
6627 _ACEOF
6629 esac
6631 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6632 case $ac_cv_c_uint64_t in #(
6633 no|yes) ;; #(
6636 $as_echo "#define _UINT64_T 1" >>confdefs.h
6639 cat >>confdefs.h <<_ACEOF
6640 #define uint64_t $ac_cv_c_uint64_t
6641 _ACEOF
6643 esac
6647 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6648 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6650 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6652 else
6653 test $ac_cv_type_unsigned_long_long_int = yes \
6654 && ac_type='unsigned long long int' \
6655 || ac_type='unsigned long int'
6657 cat >>confdefs.h <<_ACEOF
6658 #define uintmax_t $ac_type
6659 _ACEOF
6665 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6666 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6668 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6670 else
6671 for ac_type in 'unsigned int' 'unsigned long int' \
6672 'unsigned long long int'; do
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675 $ac_includes_default
6677 main ()
6679 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6680 test_array [0] = 0;
6681 return test_array [0];
6684 return 0;
6686 _ACEOF
6687 if ac_fn_cxx_try_compile "$LINENO"; then :
6689 cat >>confdefs.h <<_ACEOF
6690 #define uintptr_t $ac_type
6691 _ACEOF
6693 ac_type=
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 test -z "$ac_type" && break
6697 done
6713 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6714 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6717 # check what underlying integer type int64_t uses
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6719 $as_echo_n "checking for int64_t underlying type... " >&6; }
6720 if ${ac_cv_int64_t_type+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6727 #ifdef HAVE_STDINT_H
6728 #include <stdint.h>
6729 #endif
6730 template <typename T> struct X { };
6731 template <>
6732 struct X<long> { typedef long t; };
6735 main ()
6737 X<int64_t>::t x;
6739 return 0;
6741 _ACEOF
6742 if ac_fn_cxx_try_compile "$LINENO"; then :
6743 ac_cv_int64_t_type=long
6744 else
6745 ac_cv_int64_t_type="long long"
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6750 $as_echo "$ac_cv_int64_t_type" >&6; }
6751 if test "$ac_cv_int64_t_type" = "long"; then
6753 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6759 #ifdef HAVE_STDINT_H
6760 #include <stdint.h>
6761 #endif
6762 template <typename T> struct X { };
6763 template <>
6764 struct X<long long> { typedef long long t; };
6767 main ()
6769 X<int64_t>::t x;
6771 return 0;
6773 _ACEOF
6774 if ac_fn_cxx_try_compile "$LINENO"; then :
6776 else
6777 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6783 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6784 if ${ac_cv_std_swap_in_utility+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6791 #include <utility>
6794 main ()
6796 int a, b; std::swap(a,b);
6798 return 0;
6800 _ACEOF
6801 if ac_fn_cxx_try_compile "$LINENO"; then :
6802 ac_cv_std_swap_in_utility=yes
6803 else
6804 ac_cv_std_swap_in_utility=no
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6809 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6810 if test $ac_cv_std_swap_in_utility = yes; then
6812 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6816 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6817 # If the host compiler is affected by the bug, and we build with optimization
6818 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6819 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6820 # Since there is no reliable feature check for the presence of this bug,
6821 # we simply use a GCC version number check. (This should never trigger for
6822 # stages 2 or 3 of a native bootstrap.)
6823 aliasing_flags=
6824 if test "$GCC" = yes; then
6825 saved_CXXFLAGS="$CXXFLAGS"
6827 # The following test compilation will succeed if and only if $CXX accepts
6828 # -fno-strict-aliasing *and* is older than GCC 4.3.
6829 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6831 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6835 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6836 #error compiler not affected by placement new aliasing bug
6837 #endif
6839 _ACEOF
6840 if ac_fn_cxx_try_compile "$LINENO"; then :
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6842 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 CXXFLAGS="$saved_CXXFLAGS"
6855 # ---------------------
6856 # Warnings and checking
6857 # ---------------------
6859 # Check $CC warning features (if it's GCC).
6860 # We want to use -pedantic, but we don't want warnings about
6861 # * 'long long'
6862 # * variadic macros
6863 # * overlong strings
6864 # * C++11 narrowing conversions in { }
6865 # So, we only use -pedantic if we can disable those warnings.
6867 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6868 # Check whether --enable-build-format-warnings was given.
6869 if test "${enable_build_format_warnings+set}" = set; then :
6870 enableval=$enable_build_format_warnings;
6871 else
6872 enable_build_format_warnings=yes
6875 if test $enable_build_format_warnings = no; then :
6876 wf_opt=-Wno-format
6877 else
6878 wf_opt=
6880 ac_ext=cpp
6881 ac_cpp='$CXXCPP $CPPFLAGS'
6882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6886 loose_warn=
6887 save_CXXFLAGS="$CXXFLAGS"
6888 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6889 # Do the check with the no- prefix removed since gcc silently
6890 # accepts any -Wno-* option on purpose
6891 case $real_option in
6892 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6893 *) option=$real_option ;;
6894 esac
6895 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6898 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6899 if eval \${$as_acx_Woption+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 CXXFLAGS="$option"
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6907 main ()
6911 return 0;
6913 _ACEOF
6914 if ac_fn_cxx_try_compile "$LINENO"; then :
6915 eval "$as_acx_Woption=yes"
6916 else
6917 eval "$as_acx_Woption=no"
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 eval ac_res=\$$as_acx_Woption
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6924 $as_echo "$ac_res" >&6; }
6925 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6926 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6928 done
6929 CXXFLAGS="$save_CXXFLAGS"
6930 ac_ext=cpp
6931 ac_cpp='$CXXCPP $CPPFLAGS'
6932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6938 ac_ext=c
6939 ac_cpp='$CPP $CPPFLAGS'
6940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944 c_loose_warn=
6945 save_CFLAGS="$CFLAGS"
6946 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6947 # Do the check with the no- prefix removed since gcc silently
6948 # accepts any -Wno-* option on purpose
6949 case $real_option in
6950 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6951 *) option=$real_option ;;
6952 esac
6953 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6956 $as_echo_n "checking whether $CC supports $option... " >&6; }
6957 if eval \${$as_acx_Woption+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 CFLAGS="$option"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6965 main ()
6969 return 0;
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 eval "$as_acx_Woption=yes"
6974 else
6975 eval "$as_acx_Woption=no"
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 eval ac_res=\$$as_acx_Woption
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6982 $as_echo "$ac_res" >&6; }
6983 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6984 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6986 done
6987 CFLAGS="$save_CFLAGS"
6988 ac_ext=cpp
6989 ac_cpp='$CXXCPP $CPPFLAGS'
6990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6995 ac_ext=cpp
6996 ac_cpp='$CXXCPP $CPPFLAGS'
6997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7001 strict_warn=
7002 save_CXXFLAGS="$CXXFLAGS"
7003 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7004 # Do the check with the no- prefix removed since gcc silently
7005 # accepts any -Wno-* option on purpose
7006 case $real_option in
7007 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7008 *) option=$real_option ;;
7009 esac
7010 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7013 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7014 if eval \${$as_acx_Woption+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 CXXFLAGS="$option"
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7022 main ()
7026 return 0;
7028 _ACEOF
7029 if ac_fn_cxx_try_compile "$LINENO"; then :
7030 eval "$as_acx_Woption=yes"
7031 else
7032 eval "$as_acx_Woption=no"
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 eval ac_res=\$$as_acx_Woption
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7039 $as_echo "$ac_res" >&6; }
7040 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7041 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7043 done
7044 CXXFLAGS="$save_CXXFLAGS"
7045 ac_ext=cpp
7046 ac_cpp='$CXXCPP $CPPFLAGS'
7047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058 c_strict_warn=
7059 save_CFLAGS="$CFLAGS"
7060 for real_option in -Wold-style-definition -Wc++-compat; do
7061 # Do the check with the no- prefix removed since gcc silently
7062 # accepts any -Wno-* option on purpose
7063 case $real_option in
7064 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7065 *) option=$real_option ;;
7066 esac
7067 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7070 $as_echo_n "checking whether $CC supports $option... " >&6; }
7071 if eval \${$as_acx_Woption+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 CFLAGS="$option"
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7079 main ()
7083 return 0;
7085 _ACEOF
7086 if ac_fn_c_try_compile "$LINENO"; then :
7087 eval "$as_acx_Woption=yes"
7088 else
7089 eval "$as_acx_Woption=no"
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 eval ac_res=\$$as_acx_Woption
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7097 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7098 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7100 done
7101 CFLAGS="$save_CFLAGS"
7102 ac_ext=cpp
7103 ac_cpp='$CXXCPP $CPPFLAGS'
7104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7109 ac_ext=cpp
7110 ac_cpp='$CXXCPP $CPPFLAGS'
7111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7115 # Do the check with the no- prefix removed from the warning options
7116 # since gcc silently accepts any -Wno-* option on purpose
7117 if test "$GXX" = yes; then :
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7119 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7120 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 save_CXXFLAGS="$CXXFLAGS"
7124 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7129 main ()
7133 return 0;
7135 _ACEOF
7136 if ac_fn_cxx_try_compile "$LINENO"; then :
7137 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7138 else
7139 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 CXXFLAGS="$save_CXXFLAGS"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7145 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7146 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7147 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7151 ac_ext=cpp
7152 ac_cpp='$CXXCPP $CPPFLAGS'
7153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7158 ac_ext=cpp
7159 ac_cpp='$CXXCPP $CPPFLAGS'
7160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7164 # Check whether --enable-werror-always was given.
7165 if test "${enable_werror_always+set}" = set; then :
7166 enableval=$enable_werror_always;
7167 else
7168 enable_werror_always=no
7171 if test $enable_werror_always = yes; then :
7172 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7175 ac_ext=cpp
7176 ac_cpp='$CXXCPP $CPPFLAGS'
7177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7183 # The above macros do nothing if the compiler is not GCC. However, the
7184 # Makefile has more goo to add other flags, so these variables are used
7185 # to enable warnings only for GCC.
7186 warn_cflags=
7187 warn_cxxflags=
7188 if test "x$GCC" = "xyes"; then
7189 warn_cflags='$(GCC_WARN_CFLAGS)'
7190 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7195 # Disable exceptions and RTTI if building with g++
7196 ac_ext=c
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202 noexception_flags=
7203 save_CFLAGS="$CFLAGS"
7204 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7205 # Do the check with the no- prefix removed since gcc silently
7206 # accepts any -Wno-* option on purpose
7207 case $real_option in
7208 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7209 *) option=$real_option ;;
7210 esac
7211 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7214 $as_echo_n "checking whether $CC supports $option... " >&6; }
7215 if eval \${$as_acx_Woption+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 CFLAGS="$option"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7223 main ()
7227 return 0;
7229 _ACEOF
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 eval "$as_acx_Woption=yes"
7232 else
7233 eval "$as_acx_Woption=no"
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 eval ac_res=\$$as_acx_Woption
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7240 $as_echo "$ac_res" >&6; }
7241 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7242 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7244 done
7245 CFLAGS="$save_CFLAGS"
7246 ac_ext=cpp
7247 ac_cpp='$CXXCPP $CPPFLAGS'
7248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7254 # Enable expensive internal checks
7255 is_release=
7256 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7257 is_release=yes
7260 # Check whether --enable-checking was given.
7261 if test "${enable_checking+set}" = set; then :
7262 enableval=$enable_checking; ac_checking_flags="${enableval}"
7263 else
7265 # Determine the default checks.
7266 if test x$is_release = x ; then
7267 ac_checking_flags=yes,extra
7268 else
7269 ac_checking_flags=release
7273 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7274 for check in release $ac_checking_flags
7276 case $check in
7277 # these set all the flags to specific states
7278 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7279 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7280 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7281 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7282 ac_tree_checking=1 ; ac_valgrind_checking= ;
7283 ac_types_checking=1 ;;
7284 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7285 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7286 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7287 ac_rtlflag_checking= ; ac_runtime_checking= ;
7288 ac_tree_checking= ; ac_valgrind_checking= ;
7289 ac_types_checking= ;;
7290 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7291 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7292 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7293 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7294 ac_tree_checking=1 ; ac_valgrind_checking= ;
7295 ac_types_checking=1 ;;
7296 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7297 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7298 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7299 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7300 ac_tree_checking= ; ac_valgrind_checking= ;
7301 ac_types_checking= ;;
7302 # these enable particular checks
7303 assert) ac_assert_checking=1 ;;
7304 df) ac_df_checking=1 ;;
7305 extra) ac_extra_checking=1 ;;
7306 fold) ac_fold_checking=1 ;;
7307 gc) ac_gc_checking=1 ;;
7308 gcac) ac_gc_always_collect=1 ;;
7309 gimple) ac_gimple_checking=1 ;;
7310 misc) ac_checking=1 ;;
7311 rtl) ac_rtl_checking=1 ;;
7312 rtlflag) ac_rtlflag_checking=1 ;;
7313 runtime) ac_runtime_checking=1 ;;
7314 tree) ac_tree_checking=1 ;;
7315 types) ac_types_checking=1 ;;
7316 valgrind) ac_valgrind_checking=1 ;;
7317 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7318 esac
7319 done
7320 IFS="$ac_save_IFS"
7322 nocommon_flag=""
7323 if test x$ac_checking != x ; then
7325 $as_echo "#define CHECKING_P 1" >>confdefs.h
7327 nocommon_flag=-fno-common
7328 else
7329 $as_echo "#define CHECKING_P 0" >>confdefs.h
7333 if test x$ac_extra_checking != x ; then
7335 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7337 else
7338 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7341 if test x$ac_df_checking != x ; then
7343 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7346 if test x$ac_assert_checking != x ; then
7348 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7351 if test x$ac_gimple_checking != x ; then
7353 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7357 if test x$ac_runtime_checking != x ; then
7359 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7362 if test x$ac_tree_checking != x ; then
7364 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7366 TREECHECKING=yes
7368 if test x$ac_types_checking != x ; then
7370 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7374 if test x$ac_rtl_checking != x ; then
7376 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7379 if test x$ac_rtlflag_checking != x ; then
7381 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7384 if test x$ac_gc_checking != x ; then
7386 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7389 if test x$ac_gc_always_collect != x ; then
7391 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7394 if test x$ac_fold_checking != x ; then
7396 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7399 valgrind_path_defines=
7400 valgrind_command=
7402 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7403 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7404 have_valgrind_h=yes
7405 else
7406 have_valgrind_h=no
7411 # It is certainly possible that there's valgrind but no valgrind.h.
7412 # GCC relies on making annotations so we must have both.
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7414 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <valgrind/memcheck.h>
7418 #ifndef VALGRIND_DISCARD
7419 #error VALGRIND_DISCARD not defined
7420 #endif
7421 _ACEOF
7422 if ac_fn_cxx_try_cpp "$LINENO"; then :
7423 gcc_cv_header_valgrind_memcheck_h=yes
7424 else
7425 gcc_cv_header_valgrind_memcheck_h=no
7427 rm -f conftest.err conftest.i conftest.$ac_ext
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7429 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7431 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 #include <memcheck.h>
7435 #ifndef VALGRIND_DISCARD
7436 #error VALGRIND_DISCARD not defined
7437 #endif
7438 _ACEOF
7439 if ac_fn_cxx_try_cpp "$LINENO"; then :
7440 gcc_cv_header_memcheck_h=yes
7441 else
7442 gcc_cv_header_memcheck_h=no
7444 rm -f conftest.err conftest.i conftest.$ac_ext
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7446 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7447 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7449 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7452 if test $gcc_cv_header_memcheck_h = yes; then
7454 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7458 if test x$ac_valgrind_checking != x ; then
7460 # Prepare PATH_SEPARATOR.
7461 # The user is always right.
7462 if test "${PATH_SEPARATOR+set}" != set; then
7463 echo "#! /bin/sh" >conf$$.sh
7464 echo "exit 0" >>conf$$.sh
7465 chmod +x conf$$.sh
7466 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7467 PATH_SEPARATOR=';'
7468 else
7469 PATH_SEPARATOR=:
7471 rm -f conf$$.sh
7474 # Find out how to test for executable files. Don't use a zero-byte file,
7475 # as systems may use methods other than mode bits to determine executability.
7476 cat >conf$$.file <<_ASEOF
7477 #! /bin/sh
7478 exit 0
7479 _ASEOF
7480 chmod +x conf$$.file
7481 if test -x conf$$.file >/dev/null 2>&1; then
7482 ac_executable_p="test -x"
7483 else
7484 ac_executable_p="test -f"
7486 rm -f conf$$.file
7488 # Extract the first word of "valgrind", so it can be a program name with args.
7489 set dummy valgrind; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_path_valgrind_path+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 case "$valgrind_path" in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7500 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7501 for ac_dir in $PATH; do
7502 IFS="$ac_save_IFS"
7503 test -z "$ac_dir" && ac_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7506 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7507 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7508 break 2
7511 done
7512 done
7513 IFS="$ac_save_IFS"
7515 esac
7517 valgrind_path="$ac_cv_path_valgrind_path"
7518 if test -n "$valgrind_path"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7520 $as_echo "$valgrind_path" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7526 if test "x$valgrind_path" = "x" \
7527 || (test $have_valgrind_h = no \
7528 && test $gcc_cv_header_memcheck_h = no \
7529 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7530 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7532 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7533 valgrind_command="$valgrind_path -q"
7535 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7541 # Enable code coverage collection
7542 # Check whether --enable-coverage was given.
7543 if test "${enable_coverage+set}" = set; then :
7544 enableval=$enable_coverage; case "${enableval}" in
7545 yes|noopt)
7546 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7548 opt)
7549 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7552 # a.k.a. --disable-coverage
7553 coverage_flags=""
7556 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7558 esac
7559 else
7560 coverage_flags=""
7565 # Check whether --enable-gather-detailed-mem-stats was given.
7566 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7567 enableval=$enable_gather_detailed_mem_stats;
7568 else
7569 enable_gather_detailed_mem_stats=no
7572 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7574 cat >>confdefs.h <<_ACEOF
7575 #define GATHER_STATISTICS $gather_stats
7576 _ACEOF
7579 # Check whether --enable-valgrind-annotations was given.
7580 if test "${enable_valgrind_annotations+set}" = set; then :
7581 enableval=$enable_valgrind_annotations;
7582 else
7583 enable_valgrind_annotations=no
7586 if test x$enable_valgrind_annotations != xno \
7587 || test x$ac_valgrind_checking != x; then
7588 if (test $have_valgrind_h = no \
7589 && test $gcc_cv_header_memcheck_h = no \
7590 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7591 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7594 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7598 # -------------------------------
7599 # Miscenalleous configure options
7600 # -------------------------------
7602 # Determine whether or not multilibs are enabled.
7603 # Check whether --enable-multilib was given.
7604 if test "${enable_multilib+set}" = set; then :
7605 enableval=$enable_multilib;
7606 else
7607 enable_multilib=yes
7612 # Determine whether or not multiarch is enabled.
7613 # Check whether --enable-multiarch was given.
7614 if test "${enable_multiarch+set}" = set; then :
7615 enableval=$enable_multiarch; case "${enableval}" in
7616 yes|no|auto) enable_multiarch=$enableval;;
7617 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7618 esac
7619 else
7620 enable_multiarch=auto
7623 if test x${enable_multiarch} = xauto; then
7624 if test x${with_native_system_header_dir} != x; then
7625 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7626 enable_multiarch=no
7628 if test x$host != x$target && test "x$with_sysroot" = x; then
7629 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7630 enable_multiarch=no
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7634 $as_echo_n "checking for multiarch configuration... " >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7637 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7639 # needed for setting the multiarch name for soft-float/hard-float ABIs
7643 # default stack clash protection guard size as power of twos in bytes.
7644 # Please keep these in sync with params.def.
7645 stk_clash_min=12
7646 stk_clash_max=30
7648 # Keep the default value when the option is not used to 0, this allows us to
7649 # distinguish between the cases where the user specifially set a value via
7650 # configure and when the normal default value is used.
7652 # Check whether --with-stack-clash-protection-guard-size was given.
7653 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7654 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7655 else
7656 DEFAULT_STK_CLASH_GUARD_SIZE=0
7659 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7660 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7661 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7662 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
7666 cat >>confdefs.h <<_ACEOF
7667 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7668 _ACEOF
7671 # Enable __cxa_atexit for C++.
7672 # Check whether --enable-__cxa_atexit was given.
7673 if test "${enable___cxa_atexit+set}" = set; then :
7674 enableval=$enable___cxa_atexit;
7678 # Enable C extension for decimal float if target supports it.
7680 # Check whether --enable-decimal-float was given.
7681 if test "${enable_decimal_float+set}" = set; then :
7682 enableval=$enable_decimal_float;
7683 case $enable_decimal_float in
7684 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7685 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7686 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7687 esac
7689 else
7691 case $target in
7692 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7693 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7694 i?86*-*-mingw* | x86_64*-*-mingw* | \
7695 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7696 enable_decimal_float=yes
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7700 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7701 enable_decimal_float=no
7703 esac
7708 # x86's use BID format instead of DPD
7709 case x$enable_decimal_float in
7710 xyes)
7711 case $target in
7712 i?86*-*-* | x86_64*-*-*)
7713 enable_decimal_float=bid
7716 enable_decimal_float=dpd
7718 esac
7719 default_decimal_float=$enable_decimal_float
7721 xno)
7722 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7723 # dependency on libdecnumber.
7724 default_decimal_float=dpd
7726 esac
7731 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7733 cat >>confdefs.h <<_ACEOF
7734 #define ENABLE_DECIMAL_FLOAT $dfp
7735 _ACEOF
7738 # Use default_decimal_float for dependency.
7739 enable_decimal_float=$default_decimal_float
7741 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7743 cat >>confdefs.h <<_ACEOF
7744 #define ENABLE_DECIMAL_BID_FORMAT $bid
7745 _ACEOF
7748 # Enable C extension for fixed-point arithmetic.
7749 # Check whether --enable-fixed-point was given.
7750 if test "${enable_fixed_point+set}" = set; then :
7751 enableval=$enable_fixed_point;
7752 else
7754 case $target in
7755 arm*)
7756 enable_fixed_point=yes
7759 mips*-*-*)
7760 enable_fixed_point=yes
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7764 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7765 enable_fixed_point=no
7767 esac
7773 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7775 cat >>confdefs.h <<_ACEOF
7776 #define ENABLE_FIXED_POINT $fixedpoint
7777 _ACEOF
7780 # Enable threads
7781 # Pass with no value to take the default
7782 # Pass with a value to specify a thread package
7783 # Check whether --enable-threads was given.
7784 if test "${enable_threads+set}" = set; then :
7785 enableval=$enable_threads;
7786 else
7787 enable_threads=''
7791 # Check whether --enable-tls was given.
7792 if test "${enable_tls+set}" = set; then :
7793 enableval=$enable_tls;
7794 case $enable_tls in
7795 yes | no) ;;
7796 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7797 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7798 esac
7800 else
7801 enable_tls=''
7805 # Check whether --enable-vtable-verify was given.
7806 if test "${enable_vtable_verify+set}" = set; then :
7807 enableval=$enable_vtable_verify;
7808 else
7809 enable_vtable_verify=no
7812 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7814 cat >>confdefs.h <<_ACEOF
7815 #define ENABLE_VTABLE_VERIFY $vtable_verify
7816 _ACEOF
7819 # Check whether --enable-analyzer was given.
7820 if test "${enable_analyzer+set}" = set; then :
7821 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7822 analyzer=0
7823 else
7824 analyzer=1
7826 else
7827 analyzer=1
7831 cat >>confdefs.h <<_ACEOF
7832 #define ENABLE_ANALYZER $analyzer
7833 _ACEOF
7836 # Check whether --enable-objc-gc was given.
7837 if test "${enable_objc_gc+set}" = set; then :
7838 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7839 objc_boehm_gc=''
7840 else
7841 objc_boehm_gc=1
7843 else
7844 objc_boehm_gc=''
7849 # Check whether --with-dwarf2 was given.
7850 if test "${with_dwarf2+set}" = set; then :
7851 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7852 else
7853 dwarf2=no
7857 # Check whether --enable-shared was given.
7858 if test "${enable_shared+set}" = set; then :
7859 enableval=$enable_shared;
7860 case $enable_shared in
7861 yes | no) ;;
7863 enable_shared=no
7864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7865 for pkg in $enableval; do
7866 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7867 enable_shared=yes
7869 done
7870 IFS="$ac_save_ifs"
7872 esac
7874 else
7875 enable_shared=yes
7880 # Check whether --enable-gcov was given.
7881 if test "${enable_gcov+set}" = set; then :
7882 enableval=$enable_gcov;
7883 else
7884 enable_gcov=yes
7890 # Check whether --with-specs was given.
7891 if test "${with_specs+set}" = set; then :
7892 withval=$with_specs; CONFIGURE_SPECS=$withval
7893 else
7894 CONFIGURE_SPECS=
7902 # Check whether --with-pkgversion was given.
7903 if test "${with_pkgversion+set}" = set; then :
7904 withval=$with_pkgversion; case "$withval" in
7905 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7906 no) PKGVERSION= ;;
7907 *) PKGVERSION="($withval) " ;;
7908 esac
7909 else
7910 PKGVERSION="(GCC) "
7918 # Check whether --with-bugurl was given.
7919 if test "${with_bugurl+set}" = set; then :
7920 withval=$with_bugurl; case "$withval" in
7921 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7922 no) BUGURL=
7924 *) BUGURL="$withval"
7926 esac
7927 else
7928 BUGURL="https://gcc.gnu.org/bugs/"
7932 case ${BUGURL} in
7934 REPORT_BUGS_TO=
7935 REPORT_BUGS_TEXI=
7938 REPORT_BUGS_TO="<$BUGURL>"
7939 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7941 esac;
7946 # Allow overriding the default URL for documentation
7948 # Check whether --with-documentation-root-url was given.
7949 if test "${with_documentation_root_url+set}" = set; then :
7950 withval=$with_documentation_root_url; case "$withval" in
7951 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7952 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7953 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7954 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7955 esac
7956 else
7957 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7962 cat >>confdefs.h <<_ACEOF
7963 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7964 _ACEOF
7967 # Allow overriding the default URL for GCC changes
7969 # Check whether --with-changes-root-url was given.
7970 if test "${with_changes_root_url+set}" = set; then :
7971 withval=$with_changes_root_url; case "$withval" in
7972 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7973 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7974 */) CHANGES_ROOT_URL="$withval" ;;
7975 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7976 esac
7977 else
7978 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7983 cat >>confdefs.h <<_ACEOF
7984 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7985 _ACEOF
7988 # Sanity check enable_languages in case someone does not run the toplevel
7989 # configure # script.
7990 # Check whether --enable-languages was given.
7991 if test "${enable_languages+set}" = set; then :
7992 enableval=$enable_languages; case ,${enable_languages}, in
7993 ,,|,yes,)
7994 # go safe -- we cannot be much sure without the toplevel
7995 # configure's
7996 # analysis of which target libs are present and usable
7997 enable_languages=c
7999 *,all,*)
8000 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8002 *,c,*)
8005 enable_languages=c,${enable_languages}
8007 esac
8008 else
8009 enable_languages=c
8013 # If top-level libada has been disabled, then wire in install-gnatlib
8014 # invocation with `make install', so that one can build and install
8015 # the library manually with `make -C gcc all gnatlib gnattools install'.
8016 if test x"$enable_libada" = xno; then
8017 gnat_install_lib=gnat-install-lib
8018 else
8019 gnat_install_lib=
8023 if test x"$enable_as_accelerator_for" != x; then
8025 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8027 enable_as_accelerator=yes
8028 case "${target}" in
8029 *-intelmicemul-*)
8030 # In this case we expect offload compiler to be built as native, so we
8031 # need to rename the driver to avoid clashes with host's drivers.
8032 program_transform_name="s&^&${target}-&" ;;
8033 esac
8034 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8035 program_transform_name=`echo $program_transform_name | sed $sedscript`
8036 accel_dir_suffix=/accel/${target_noncanonical}
8037 real_target_noncanonical=${enable_as_accelerator_for}
8043 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8044 tgt=`echo $tgt | sed 's/=.*//'`
8046 enable_offloading=1
8047 case "$tgt" in
8048 *-intelmic-* | *-intelmicemul-*)
8049 omp_device_property=omp-device-properties-i386
8050 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8052 amdgcn*)
8053 omp_device_property=omp-device-properties-gcn
8054 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8056 nvptx*)
8057 omp_device_property=omp-device-properties-nvptx
8058 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8061 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8063 esac
8064 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8065 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8067 if test x"$offload_targets" = x; then
8068 offload_targets=$tgt
8069 else
8070 offload_targets="$offload_targets,$tgt"
8072 done
8077 cat >>confdefs.h <<_ACEOF
8078 #define OFFLOAD_TARGETS "$offload_targets"
8079 _ACEOF
8081 if test x"$enable_offloading" != x; then
8083 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8085 else
8087 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8091 if test "x$enable_offload_defaulted" = xyes; then
8093 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8098 # Check whether --with-multilib-list was given.
8099 if test "${with_multilib_list+set}" = set; then :
8100 withval=$with_multilib_list; :
8101 else
8102 with_multilib_list=default
8107 # Check whether --with-multilib-generator was given.
8108 if test "${with_multilib_generator+set}" = set; then :
8109 withval=$with_multilib_generator; :
8110 else
8111 with_multilib_generator=default
8115 # -------------------------
8116 # Checks for other programs
8117 # -------------------------
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8120 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8121 set x ${MAKE-make}
8122 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8123 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 cat >conftest.make <<\_ACEOF
8127 SHELL = /bin/sh
8128 all:
8129 @echo '@@@%%%=$(MAKE)=@@@%%%'
8130 _ACEOF
8131 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8132 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8133 *@@@%%%=?*=@@@%%%*)
8134 eval ac_cv_prog_make_${ac_make}_set=yes;;
8136 eval ac_cv_prog_make_${ac_make}_set=no;;
8137 esac
8138 rm -f conftest.make
8140 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8142 $as_echo "yes" >&6; }
8143 SET_MAKE=
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 SET_MAKE="MAKE=${MAKE-make}"
8151 # Find some useful tools
8152 for ac_prog in gawk mawk nawk awk
8154 # Extract the first word of "$ac_prog", so it can be a program name with args.
8155 set dummy $ac_prog; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if ${ac_cv_prog_AWK+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 if test -n "$AWK"; then
8162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171 ac_cv_prog_AWK="$ac_prog"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8175 done
8176 done
8177 IFS=$as_save_IFS
8181 AWK=$ac_cv_prog_AWK
8182 if test -n "$AWK"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8184 $as_echo "$AWK" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8191 test -n "$AWK" && break
8192 done
8194 # We need awk to create options.c and options.h.
8195 # Bail out if it's missing.
8196 case ${AWK} in
8197 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8198 esac
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8201 $as_echo_n "checking whether ln -s works... " >&6; }
8202 if ${gcc_cv_prog_LN_S+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 rm -f conftestdata_t
8206 echo >conftestdata_f
8207 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8208 then
8209 gcc_cv_prog_LN_S="ln -s"
8210 else
8211 if ln conftestdata_f conftestdata_t 2>/dev/null
8212 then
8213 gcc_cv_prog_LN_S=ln
8214 else
8215 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8216 then
8217 gcc_cv_prog_LN_S="cp -p"
8218 else
8219 gcc_cv_prog_LN_S=cp
8223 rm -f conftestdata_f conftestdata_t
8226 LN_S="$gcc_cv_prog_LN_S"
8227 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8229 $as_echo "yes" >&6; }
8230 else
8231 if test "$gcc_cv_prog_LN_S" = "ln"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8233 $as_echo "no, using ln" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8236 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8241 $as_echo_n "checking whether ln works... " >&6; }
8242 if ${acx_cv_prog_LN+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 rm -f conftestdata_t
8246 echo >conftestdata_f
8247 if ln conftestdata_f conftestdata_t 2>/dev/null
8248 then
8249 acx_cv_prog_LN=ln
8250 else
8251 acx_cv_prog_LN=no
8253 rm -f conftestdata_f conftestdata_t
8256 if test $acx_cv_prog_LN = no; then
8257 LN="$LN_S"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8259 $as_echo "no, using $LN" >&6; }
8260 else
8261 LN="$acx_cv_prog_LN"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8263 $as_echo "yes" >&6; }
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if ${ac_cv_prog_RANLIB+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test -n "$RANLIB"; then
8275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8288 done
8289 done
8290 IFS=$as_save_IFS
8294 RANLIB=$ac_cv_prog_RANLIB
8295 if test -n "$RANLIB"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8297 $as_echo "$RANLIB" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8305 if test -z "$ac_cv_prog_RANLIB"; then
8306 ac_ct_RANLIB=$RANLIB
8307 # Extract the first word of "ranlib", so it can be a program name with args.
8308 set dummy ranlib; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test -n "$ac_ct_RANLIB"; then
8315 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_ac_ct_RANLIB="ranlib"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8328 done
8329 done
8330 IFS=$as_save_IFS
8334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8335 if test -n "$ac_ct_RANLIB"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8337 $as_echo "$ac_ct_RANLIB" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8343 if test "x$ac_ct_RANLIB" = x; then
8344 RANLIB=":"
8345 else
8346 case $cross_compiling:$ac_tool_warned in
8347 yes:)
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8350 ac_tool_warned=yes ;;
8351 esac
8352 RANLIB=$ac_ct_RANLIB
8354 else
8355 RANLIB="$ac_cv_prog_RANLIB"
8358 ranlib_flags=""
8361 # Find a good install program. We prefer a C program (faster),
8362 # so one script is as good as another. But avoid the broken or
8363 # incompatible versions:
8364 # SysV /etc/install, /usr/sbin/install
8365 # SunOS /usr/etc/install
8366 # IRIX /sbin/install
8367 # AIX /bin/install
8368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8370 # ./install, which can be erroneously created by make from ./install.sh.
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8372 $as_echo_n "checking for a BSD compatible install... " >&6; }
8373 if test -z "$INSTALL"; then
8374 if ${ac_cv_path_install+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8378 for ac_dir in $PATH; do
8379 # Account for people who put trailing slashes in PATH elements.
8380 case "$ac_dir/" in
8381 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8383 # OSF1 and SCO ODT 3.0 have their own names for install.
8384 for ac_prog in ginstall scoinst install; do
8385 if test -f $ac_dir/$ac_prog; then
8386 if test $ac_prog = install &&
8387 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8388 # AIX install. It has an incompatible calling convention.
8389 # OSF/1 installbsd also uses dspmsg, but is usable.
8391 else
8392 ac_cv_path_install="$ac_dir/$ac_prog -c"
8393 break 2
8396 done
8398 esac
8399 done
8400 IFS="$ac_save_IFS"
8403 if test "${ac_cv_path_install+set}" = set; then
8404 INSTALL="$ac_cv_path_install"
8405 else
8406 # As a last resort, use the slow shell script. We don't cache a
8407 # path for INSTALL within a source directory, because that will
8408 # break other packages using the cache if that directory is
8409 # removed, or if the path is relative.
8410 INSTALL="$ac_install_sh"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8414 $as_echo "$INSTALL" >&6; }
8416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8417 # It thinks the first close brace ends the variable substitution.
8418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8423 # See if cmp has --ignore-initial.
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8425 $as_echo_n "checking for cmp's capabilities... " >&6; }
8426 if ${gcc_cv_prog_cmp_skip+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 echo abfoo >t1
8430 echo cdfoo >t2
8431 gcc_cv_prog_cmp_skip=slowcompare
8432 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8433 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8435 else
8436 gcc_cv_prog_cmp_skip=gnucompare
8439 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8440 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8441 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8443 else
8444 gcc_cv_prog_cmp_skip=fastcompare
8448 rm t1 t2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8452 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8453 make_compare_target=$gcc_cv_prog_cmp_skip
8457 # See if we have the mktemp command.
8458 # Extract the first word of "mktemp", so it can be a program name with args.
8459 set dummy mktemp; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test -n "$have_mktemp_command"; then
8466 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_have_mktemp_command="yes"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8479 done
8480 done
8481 IFS=$as_save_IFS
8483 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8486 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8487 if test -n "$have_mktemp_command"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8489 $as_echo "$have_mktemp_command" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8497 # See if makeinfo has been installed and is modern enough
8498 # that we can use it.
8500 # Extract the first word of "makeinfo", so it can be a program name with args.
8501 set dummy makeinfo; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_MAKEINFO+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 if test -n "$MAKEINFO"; then
8508 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_MAKEINFO="makeinfo"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8521 done
8522 done
8523 IFS=$as_save_IFS
8527 MAKEINFO=$ac_cv_prog_MAKEINFO
8528 if test -n "$MAKEINFO"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8530 $as_echo "$MAKEINFO" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8537 if test -n "$MAKEINFO"; then
8538 # Found it, now check the version.
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8540 $as_echo_n "checking for modern makeinfo... " >&6; }
8541 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8545 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8547 case $ac_prog_version in
8548 '') gcc_cv_prog_makeinfo_modern=no;;
8549 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8550 *) gcc_cv_prog_makeinfo_modern=no;;
8551 esac
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8555 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8556 else
8557 gcc_cv_prog_makeinfo_modern=no
8559 if test $gcc_cv_prog_makeinfo_modern = no; then
8560 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8563 if test $gcc_cv_prog_makeinfo_modern = no; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8565 *** Makeinfo is missing or too old.
8566 *** Info documentation will not be built." >&5
8567 $as_echo "$as_me: WARNING:
8568 *** Makeinfo is missing or too old.
8569 *** Info documentation will not be built." >&2;}
8570 BUILD_INFO=
8571 else
8572 BUILD_INFO=info
8576 # Is pod2man recent enough to regenerate manpages?
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8578 $as_echo_n "checking for recent Pod::Man... " >&6; }
8579 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8581 $as_echo "yes" >&6; }
8582 GENERATED_MANPAGES=generated-manpages
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 GENERATED_MANPAGES=
8590 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8592 # How about lex?
8593 for ac_prog in flex
8595 # Extract the first word of "$ac_prog", so it can be a program name with args.
8596 set dummy $ac_prog; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if ${ac_cv_prog_FLEX+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 if test -n "$FLEX"; then
8603 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_FLEX="$ac_prog"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8616 done
8617 done
8618 IFS=$as_save_IFS
8622 FLEX=$ac_cv_prog_FLEX
8623 if test -n "$FLEX"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8625 $as_echo "$FLEX" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8632 test -n "$FLEX" && break
8633 done
8634 test -n "$FLEX" || FLEX="$MISSING flex"
8637 # Bison?
8638 for ac_prog in bison
8640 # Extract the first word of "$ac_prog", so it can be a program name with args.
8641 set dummy $ac_prog; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if ${ac_cv_prog_BISON+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 if test -n "$BISON"; then
8648 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8649 else
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 for as_dir in $PATH
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657 ac_cv_prog_BISON="$ac_prog"
8658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 break 2
8661 done
8662 done
8663 IFS=$as_save_IFS
8667 BISON=$ac_cv_prog_BISON
8668 if test -n "$BISON"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8670 $as_echo "$BISON" >&6; }
8671 else
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8677 test -n "$BISON" && break
8678 done
8679 test -n "$BISON" || BISON="$MISSING bison"
8682 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8683 # check for build == host before using them.
8685 # NM
8686 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8687 && test -d ../binutils ; then
8688 NM='${objdir}/../binutils/nm-new'
8689 else
8690 # Extract the first word of "nm", so it can be a program name with args.
8691 set dummy nm; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_NM+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$NM"; then
8698 ac_cv_prog_NM="$NM" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_NM="nm"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8715 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8718 NM=$ac_cv_prog_NM
8719 if test -n "$NM"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8721 $as_echo "$NM" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8730 # AR
8731 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8732 && test -d ../binutils ; then
8733 AR='${objdir}/../binutils/ar'
8734 else
8735 # Extract the first word of "ar", so it can be a program name with args.
8736 set dummy ar; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if ${ac_cv_prog_AR+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$AR"; then
8743 ac_cv_prog_AR="$AR" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_AR="ar"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8760 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8763 AR=$ac_cv_prog_AR
8764 if test -n "$AR"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8766 $as_echo "$AR" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8775 # The jit documentation looks better if built with sphinx, but can be
8776 # built with texinfo if sphinx is not available.
8777 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8778 # Extract the first word of "sphinx-build", so it can be a program name with args.
8779 set dummy sphinx-build; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_doc_build_sys+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$doc_build_sys"; then
8786 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_doc_build_sys="sphinx"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8803 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8806 doc_build_sys=$ac_cv_prog_doc_build_sys
8807 if test -n "$doc_build_sys"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8809 $as_echo "$doc_build_sys" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 # --------------------
8818 # Checks for C headers
8819 # --------------------
8821 # Need to reject headers which give warnings, so that the -Werror bootstrap
8822 # works later. *sigh* This needs to come before all header checks.
8824 ac_c_preproc_warn_flag=yes
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8827 $as_echo_n "checking for ANSI C header files... " >&6; }
8828 if ${ac_cv_header_stdc+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <stdlib.h>
8834 #include <stdarg.h>
8835 #include <string.h>
8836 #include <float.h>
8839 main ()
8843 return 0;
8845 _ACEOF
8846 if ac_fn_cxx_try_compile "$LINENO"; then :
8847 ac_cv_header_stdc=yes
8848 else
8849 ac_cv_header_stdc=no
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 if test $ac_cv_header_stdc = yes; then
8854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #include <string.h>
8859 _ACEOF
8860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8861 $EGREP "memchr" >/dev/null 2>&1; then :
8863 else
8864 ac_cv_header_stdc=no
8866 rm -f conftest*
8870 if test $ac_cv_header_stdc = yes; then
8871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #include <stdlib.h>
8876 _ACEOF
8877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8878 $EGREP "free" >/dev/null 2>&1; then :
8880 else
8881 ac_cv_header_stdc=no
8883 rm -f conftest*
8887 if test $ac_cv_header_stdc = yes; then
8888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8889 if test "$cross_compiling" = yes; then :
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 #include <ctype.h>
8895 #include <stdlib.h>
8896 #if ((' ' & 0x0FF) == 0x020)
8897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8899 #else
8900 # define ISLOWER(c) \
8901 (('a' <= (c) && (c) <= 'i') \
8902 || ('j' <= (c) && (c) <= 'r') \
8903 || ('s' <= (c) && (c) <= 'z'))
8904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8905 #endif
8907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8909 main ()
8911 int i;
8912 for (i = 0; i < 256; i++)
8913 if (XOR (islower (i), ISLOWER (i))
8914 || toupper (i) != TOUPPER (i))
8915 return 2;
8916 return 0;
8918 _ACEOF
8919 if ac_fn_cxx_try_run "$LINENO"; then :
8921 else
8922 ac_cv_header_stdc=no
8924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8925 conftest.$ac_objext conftest.beam conftest.$ac_ext
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8931 $as_echo "$ac_cv_header_stdc" >&6; }
8932 if test $ac_cv_header_stdc = yes; then
8934 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8939 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8940 if ${ac_cv_header_time+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 #include <sys/time.h>
8947 #include <time.h>
8950 main ()
8952 if ((struct tm *) 0)
8953 return 0;
8955 return 0;
8957 _ACEOF
8958 if ac_fn_cxx_try_compile "$LINENO"; then :
8959 ac_cv_header_time=yes
8960 else
8961 ac_cv_header_time=no
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8966 $as_echo "$ac_cv_header_time" >&6; }
8967 if test $ac_cv_header_time = yes; then
8969 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8974 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8975 if ${gcc_cv_header_string+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 #include <string.h>
8981 #include <strings.h>
8983 main ()
8987 return 0;
8989 _ACEOF
8990 if ac_fn_cxx_try_compile "$LINENO"; then :
8991 gcc_cv_header_string=yes
8992 else
8993 gcc_cv_header_string=no
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8998 $as_echo "$gcc_cv_header_string" >&6; }
8999 if test $gcc_cv_header_string = yes; then
9001 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9006 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9007 if ${ac_cv_header_sys_wait_h+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 #include <sys/types.h>
9013 #include <sys/wait.h>
9014 #ifndef WEXITSTATUS
9015 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9016 #endif
9017 #ifndef WIFEXITED
9018 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9019 #endif
9022 main ()
9024 int s;
9025 wait (&s);
9026 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9028 return 0;
9030 _ACEOF
9031 if ac_fn_cxx_try_compile "$LINENO"; then :
9032 ac_cv_header_sys_wait_h=yes
9033 else
9034 ac_cv_header_sys_wait_h=no
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9039 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9040 if test $ac_cv_header_sys_wait_h = yes; then
9042 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9047 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9048 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #include <sys/types.h>
9054 #include <termios.h>
9055 #ifdef TIOCGWINSZ
9057 #endif
9059 _ACEOF
9060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9061 $EGREP "yes" >/dev/null 2>&1; then :
9062 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9063 else
9064 ac_cv_sys_tiocgwinsz_in_termios_h=no
9066 rm -f conftest*
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9070 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9072 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9074 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9075 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #include <sys/types.h>
9081 #include <sys/ioctl.h>
9082 #ifdef TIOCGWINSZ
9084 #endif
9086 _ACEOF
9087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9088 $EGREP "yes" >/dev/null 2>&1; then :
9089 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9090 else
9091 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9093 rm -f conftest*
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9097 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9099 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9101 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9106 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9107 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9108 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9109 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9110 do :
9111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9112 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9113 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9114 cat >>confdefs.h <<_ACEOF
9115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9116 _ACEOF
9119 done
9122 # Check for thread headers.
9123 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9124 if test "x$ac_cv_header_thread_h" = xyes; then :
9125 have_thread_h=yes
9126 else
9127 have_thread_h=
9130 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9131 if test "x$ac_cv_header_pthread_h" = xyes; then :
9132 have_pthread_h=yes
9133 else
9134 have_pthread_h=
9138 # These tests can't be done till we know if we have limits.h.
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9140 $as_echo_n "checking for CHAR_BIT... " >&6; }
9141 if ${gcc_cv_decl_char_bit+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #ifdef HAVE_LIMITS_H
9147 #include <limits.h>
9148 #endif
9149 #ifdef CHAR_BIT
9150 found
9151 #endif
9152 _ACEOF
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154 $EGREP "found" >/dev/null 2>&1; then :
9155 gcc_cv_decl_char_bit=yes
9156 else
9157 gcc_cv_decl_char_bit=no
9159 rm -f conftest*
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9164 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9165 if test $gcc_cv_decl_char_bit = no; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9167 $as_echo_n "checking number of bits in a byte... " >&6; }
9168 if ${gcc_cv_c_nbby+:} false; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9172 gcc_cv_c_nbby=
9173 while test $i -lt 65; do
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9178 main ()
9180 switch(0) {
9181 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9182 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9185 return 0;
9187 _ACEOF
9188 if ac_fn_cxx_try_compile "$LINENO"; then :
9189 gcc_cv_c_nbby=$i; break
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192 i=`expr $i + 1`
9193 done
9194 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9198 $as_echo "$gcc_cv_c_nbby" >&6; }
9199 if test $gcc_cv_c_nbby = failed; then
9200 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9201 else
9203 cat >>confdefs.h <<_ACEOF
9204 #define CHAR_BIT $gcc_cv_c_nbby
9205 _ACEOF
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9210 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9211 if ${ac_cv_c_bigendian+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 ac_cv_c_bigendian=unknown
9215 # See if we're dealing with a universal compiler.
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 #ifndef __APPLE_CC__
9219 not a universal capable compiler
9220 #endif
9221 typedef int dummy;
9223 _ACEOF
9224 if ac_fn_cxx_try_compile "$LINENO"; then :
9226 # Check for potential -arch flags. It is not universal unless
9227 # there are at least two -arch flags with different values.
9228 ac_arch=
9229 ac_prev=
9230 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9231 if test -n "$ac_prev"; then
9232 case $ac_word in
9233 i?86 | x86_64 | ppc | ppc64)
9234 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9235 ac_arch=$ac_word
9236 else
9237 ac_cv_c_bigendian=universal
9238 break
9241 esac
9242 ac_prev=
9243 elif test "x$ac_word" = "x-arch"; then
9244 ac_prev=arch
9246 done
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 if test $ac_cv_c_bigendian = unknown; then
9250 # See if sys/param.h defines the BYTE_ORDER macro.
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <sys/types.h>
9254 #include <sys/param.h>
9257 main ()
9259 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9260 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9261 && LITTLE_ENDIAN)
9262 bogus endian macros
9263 #endif
9266 return 0;
9268 _ACEOF
9269 if ac_fn_cxx_try_compile "$LINENO"; then :
9270 # It does; now see whether it defined to BIG_ENDIAN or not.
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <sys/types.h>
9274 #include <sys/param.h>
9277 main ()
9279 #if BYTE_ORDER != BIG_ENDIAN
9280 not big endian
9281 #endif
9284 return 0;
9286 _ACEOF
9287 if ac_fn_cxx_try_compile "$LINENO"; then :
9288 ac_cv_c_bigendian=yes
9289 else
9290 ac_cv_c_bigendian=no
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 if test $ac_cv_c_bigendian = unknown; then
9297 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include <limits.h>
9303 main ()
9305 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9306 bogus endian macros
9307 #endif
9310 return 0;
9312 _ACEOF
9313 if ac_fn_cxx_try_compile "$LINENO"; then :
9314 # It does; now see whether it defined to _BIG_ENDIAN or not.
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 #include <limits.h>
9320 main ()
9322 #ifndef _BIG_ENDIAN
9323 not big endian
9324 #endif
9327 return 0;
9329 _ACEOF
9330 if ac_fn_cxx_try_compile "$LINENO"; then :
9331 ac_cv_c_bigendian=yes
9332 else
9333 ac_cv_c_bigendian=no
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 if test $ac_cv_c_bigendian = unknown; then
9340 # Compile a test program.
9341 if test "$cross_compiling" = yes; then :
9342 # Try to guess by grepping values from an object file.
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 short int ascii_mm[] =
9346 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9347 short int ascii_ii[] =
9348 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9349 int use_ascii (int i) {
9350 return ascii_mm[i] + ascii_ii[i];
9352 short int ebcdic_ii[] =
9353 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9354 short int ebcdic_mm[] =
9355 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9356 int use_ebcdic (int i) {
9357 return ebcdic_mm[i] + ebcdic_ii[i];
9359 extern int foo;
9362 main ()
9364 return use_ascii (foo) == use_ebcdic (foo);
9366 return 0;
9368 _ACEOF
9369 if ac_fn_cxx_try_compile "$LINENO"; then :
9370 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9371 ac_cv_c_bigendian=yes
9373 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9374 if test "$ac_cv_c_bigendian" = unknown; then
9375 ac_cv_c_bigendian=no
9376 else
9377 # finding both strings is unlikely to happen, but who knows?
9378 ac_cv_c_bigendian=unknown
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 $ac_includes_default
9388 main ()
9391 /* Are we little or big endian? From Harbison&Steele. */
9392 union
9394 long int l;
9395 char c[sizeof (long int)];
9396 } u;
9397 u.l = 1;
9398 return u.c[sizeof (long int) - 1] == 1;
9401 return 0;
9403 _ACEOF
9404 if ac_fn_cxx_try_run "$LINENO"; then :
9405 ac_cv_c_bigendian=no
9406 else
9407 ac_cv_c_bigendian=yes
9409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9410 conftest.$ac_objext conftest.beam conftest.$ac_ext
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9416 $as_echo "$ac_cv_c_bigendian" >&6; }
9417 case $ac_cv_c_bigendian in #(
9418 yes)
9419 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9420 ;; #(
9422 ;; #(
9423 universal)
9425 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9427 ;; #(
9429 as_fn_error $? "unknown endianness
9430 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9431 esac
9434 # ----------------------
9435 # Checks for C++ headers
9436 # ----------------------
9438 ac_ext=cpp
9439 ac_cpp='$CXXCPP $CPPFLAGS'
9440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9444 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9445 if test -z "$CXXCPP"; then
9446 if ${ac_cv_prog_CXXCPP+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 # Double quotes because CXXCPP needs to be expanded
9450 for CXXCPP in "$CXX -E" "/lib/cpp"
9452 ac_preproc_ok=false
9453 for ac_cxx_preproc_warn_flag in '' yes
9455 # Use a header file that comes with gcc, so configuring glibc
9456 # with a fresh cross-compiler works.
9457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 # <limits.h> exists even on freestanding compilers.
9459 # On the NeXT, cc -E runs the code through the compiler's parser,
9460 # not just through cpp. "Syntax error" is here to catch this case.
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 #ifdef __STDC__
9464 # include <limits.h>
9465 #else
9466 # include <assert.h>
9467 #endif
9468 Syntax error
9469 _ACEOF
9470 if ac_fn_cxx_try_cpp "$LINENO"; then :
9472 else
9473 # Broken: fails on valid input.
9474 continue
9476 rm -f conftest.err conftest.i conftest.$ac_ext
9478 # OK, works on sane cases. Now check whether nonexistent headers
9479 # can be detected and how.
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <ac_nonexistent.h>
9483 _ACEOF
9484 if ac_fn_cxx_try_cpp "$LINENO"; then :
9485 # Broken: success on invalid input.
9486 continue
9487 else
9488 # Passes both tests.
9489 ac_preproc_ok=:
9490 break
9492 rm -f conftest.err conftest.i conftest.$ac_ext
9494 done
9495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9496 rm -f conftest.i conftest.err conftest.$ac_ext
9497 if $ac_preproc_ok; then :
9498 break
9501 done
9502 ac_cv_prog_CXXCPP=$CXXCPP
9505 CXXCPP=$ac_cv_prog_CXXCPP
9506 else
9507 ac_cv_prog_CXXCPP=$CXXCPP
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9510 $as_echo "$CXXCPP" >&6; }
9511 ac_preproc_ok=false
9512 for ac_cxx_preproc_warn_flag in '' yes
9514 # Use a header file that comes with gcc, so configuring glibc
9515 # with a fresh cross-compiler works.
9516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 # <limits.h> exists even on freestanding compilers.
9518 # On the NeXT, cc -E runs the code through the compiler's parser,
9519 # not just through cpp. "Syntax error" is here to catch this case.
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #ifdef __STDC__
9523 # include <limits.h>
9524 #else
9525 # include <assert.h>
9526 #endif
9527 Syntax error
9528 _ACEOF
9529 if ac_fn_cxx_try_cpp "$LINENO"; then :
9531 else
9532 # Broken: fails on valid input.
9533 continue
9535 rm -f conftest.err conftest.i conftest.$ac_ext
9537 # OK, works on sane cases. Now check whether nonexistent headers
9538 # can be detected and how.
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #include <ac_nonexistent.h>
9542 _ACEOF
9543 if ac_fn_cxx_try_cpp "$LINENO"; then :
9544 # Broken: success on invalid input.
9545 continue
9546 else
9547 # Passes both tests.
9548 ac_preproc_ok=:
9549 break
9551 rm -f conftest.err conftest.i conftest.$ac_ext
9553 done
9554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9555 rm -f conftest.i conftest.err conftest.$ac_ext
9556 if $ac_preproc_ok; then :
9558 else
9559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9562 See \`config.log' for more details" >&5
9563 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9564 See \`config.log' for more details" >&2;}; }
9567 ac_ext=cpp
9568 ac_cpp='$CXXCPP $CPPFLAGS'
9569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9574 for ac_header in unordered_map
9575 do :
9576 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9577 if test "x$ac_cv_header_unordered_map" = xyes; then :
9578 cat >>confdefs.h <<_ACEOF
9579 #define HAVE_UNORDERED_MAP 1
9580 _ACEOF
9583 done
9585 for ac_header in tr1/unordered_map
9586 do :
9587 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9588 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9589 cat >>confdefs.h <<_ACEOF
9590 #define HAVE_TR1_UNORDERED_MAP 1
9591 _ACEOF
9594 done
9596 for ac_header in ext/hash_map
9597 do :
9598 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9599 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9600 cat >>confdefs.h <<_ACEOF
9601 #define HAVE_EXT_HASH_MAP 1
9602 _ACEOF
9605 done
9608 # --------
9609 # Dependency checking.
9610 # --------
9612 rm -rf .tst 2>/dev/null
9613 mkdir .tst 2>/dev/null
9614 if test -d .tst; then
9615 am__leading_dot=.
9616 else
9617 am__leading_dot=_
9619 rmdir .tst 2>/dev/null
9621 DEPDIR="${am__leading_dot}deps"
9623 ac_config_commands="$ac_config_commands depdir"
9626 ac_config_commands="$ac_config_commands gccdepdir"
9629 depcc="$CXX" am_compiler_list=
9631 am_depcomp=$ac_aux_dir/depcomp
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9633 $as_echo_n "checking dependency style of $depcc... " >&6; }
9634 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test -f "$am_depcomp"; then
9638 # We make a subdir and do the tests there. Otherwise we can end up
9639 # making bogus files that we don't know about and never remove. For
9640 # instance it was reported that on HP-UX the gcc test will end up
9641 # making a dummy file named `D' -- because `-MD' means `put the output
9642 # in D'.
9643 mkdir conftest.dir
9644 # Copy depcomp to subdir because otherwise we won't find it if we're
9645 # using a relative directory.
9646 cp "$am_depcomp" conftest.dir
9647 cd conftest.dir
9648 # We will build objects and dependencies in a subdirectory because
9649 # it helps to detect inapplicable dependency modes. For instance
9650 # both Tru64's cc and ICC support -MD to output dependencies as a
9651 # side effect of compilation, but ICC will put the dependencies in
9652 # the current directory while Tru64 will put them in the object
9653 # directory.
9654 mkdir sub
9656 am_cv_CXX_dependencies_compiler_type=none
9657 if test "$am_compiler_list" = ""; then
9658 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9660 for depmode in $am_compiler_list; do
9661 if test $depmode = none; then break; fi
9663 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9664 # Setup a source with many dependencies, because some compilers
9665 # like to wrap large dependency lists on column 80 (with \), and
9666 # we should not choose a depcomp mode which is confused by this.
9668 # We need to recreate these files for each test, as the compiler may
9669 # overwrite some of them when testing with obscure command lines.
9670 # This happens at least with the AIX C compiler.
9671 : > sub/conftest.c
9672 for i in 1 2 3 4 5 6; do
9673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9675 # Solaris 8's {/usr,}/bin/sh.
9676 touch sub/conftst$i.h
9677 done
9678 echo "include sub/conftest.Po" > confmf
9680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9681 # mode. It turns out that the SunPro C++ compiler does not properly
9682 # handle `-M -o', and we need to detect this.
9683 depcmd="depmode=$depmode \
9684 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9686 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9687 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9688 if env $depcmd > conftest.err 2>&1 &&
9689 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9690 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9691 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9692 # icc doesn't choke on unknown options, it will just issue warnings
9693 # or remarks (even with -Werror). So we grep stderr for any message
9694 # that says an option was ignored or not supported.
9695 # When given -MP, icc 7.0 and 7.1 complain thusly:
9696 # icc: Command line warning: ignoring option '-M'; no argument required
9697 # The diagnosis changed in icc 8.0:
9698 # icc: Command line remark: option '-MP' not supported
9699 if (grep 'ignoring option' conftest.err ||
9700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9701 am_cv_CXX_dependencies_compiler_type=$depmode
9702 $as_echo "$as_me:$LINENO: success" >&5
9703 break
9706 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9707 sed -e 's/^/| /' < conftest.err >&5
9708 done
9710 cd ..
9711 rm -rf conftest.dir
9712 else
9713 am_cv_CXX_dependencies_compiler_type=none
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9718 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9719 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9720 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9721 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9726 # --------
9727 # UNSORTED
9728 # --------
9731 # These libraries may be used by collect2.
9732 # We may need a special search path to get them linked.
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9734 $as_echo_n "checking for collect2 libraries... " >&6; }
9735 if ${gcc_cv_collect2_libs+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 save_LIBS="$LIBS"
9739 for libs in '' -lld -lmld \
9740 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9741 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9743 LIBS="$libs"
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9747 /* Override any GCC internal prototype to avoid an error.
9748 Use char because int might match the return type of a GCC
9749 builtin and then its argument prototype would still apply. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 #endif
9753 char ldopen ();
9755 main ()
9757 return ldopen ();
9759 return 0;
9761 _ACEOF
9762 if ac_fn_cxx_try_link "$LINENO"; then :
9763 gcc_cv_collect2_libs="$libs"; break
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 done
9768 LIBS="$save_LIBS"
9769 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9772 $as_echo "$gcc_cv_collect2_libs" >&6; }
9773 case $gcc_cv_collect2_libs in
9774 "none required") ;;
9775 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9776 esac
9779 # When building Ada code on Alpha, we need exc_resume which is usually in
9780 # -lexc. So test for it.
9781 save_LIBS="$LIBS"
9782 LIBS=
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9784 $as_echo_n "checking for library containing exc_resume... " >&6; }
9785 if ${ac_cv_search_exc_resume+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 ac_func_search_save_LIBS=$LIBS
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char exc_resume ();
9800 main ()
9802 return exc_resume ();
9804 return 0;
9806 _ACEOF
9807 for ac_lib in '' exc; do
9808 if test -z "$ac_lib"; then
9809 ac_res="none required"
9810 else
9811 ac_res=-l$ac_lib
9812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9814 if ac_fn_cxx_try_link "$LINENO"; then :
9815 ac_cv_search_exc_resume=$ac_res
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext
9819 if ${ac_cv_search_exc_resume+:} false; then :
9820 break
9822 done
9823 if ${ac_cv_search_exc_resume+:} false; then :
9825 else
9826 ac_cv_search_exc_resume=no
9828 rm conftest.$ac_ext
9829 LIBS=$ac_func_search_save_LIBS
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9832 $as_echo "$ac_cv_search_exc_resume" >&6; }
9833 ac_res=$ac_cv_search_exc_resume
9834 if test "$ac_res" != no; then :
9835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9839 GNAT_LIBEXC="$LIBS"
9840 LIBS="$save_LIBS"
9843 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9844 save_LIBS="$LIBS"
9845 LIBS=
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9847 $as_echo_n "checking for library containing kstat_open... " >&6; }
9848 if ${ac_cv_search_kstat_open+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 ac_func_search_save_LIBS=$LIBS
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9855 /* Override any GCC internal prototype to avoid an error.
9856 Use char because int might match the return type of a GCC
9857 builtin and then its argument prototype would still apply. */
9858 #ifdef __cplusplus
9859 extern "C"
9860 #endif
9861 char kstat_open ();
9863 main ()
9865 return kstat_open ();
9867 return 0;
9869 _ACEOF
9870 for ac_lib in '' kstat; do
9871 if test -z "$ac_lib"; then
9872 ac_res="none required"
9873 else
9874 ac_res=-l$ac_lib
9875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9877 if ac_fn_cxx_try_link "$LINENO"; then :
9878 ac_cv_search_kstat_open=$ac_res
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext
9882 if ${ac_cv_search_kstat_open+:} false; then :
9883 break
9885 done
9886 if ${ac_cv_search_kstat_open+:} false; then :
9888 else
9889 ac_cv_search_kstat_open=no
9891 rm conftest.$ac_ext
9892 LIBS=$ac_func_search_save_LIBS
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9895 $as_echo "$ac_cv_search_kstat_open" >&6; }
9896 ac_res=$ac_cv_search_kstat_open
9897 if test "$ac_res" != no; then :
9898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9902 EXTRA_GCC_LIBS="$LIBS"
9903 LIBS="$save_LIBS"
9906 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9907 # C++ needs those for libcody.
9908 save_LIBS="$LIBS"
9909 LIBS=
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9912 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9913 if ${ac_cv_search_gethostbyname+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 ac_func_search_save_LIBS=$LIBS
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char gethostbyname ();
9928 main ()
9930 return gethostbyname ();
9932 return 0;
9934 _ACEOF
9935 for ac_lib in '' nsl; do
9936 if test -z "$ac_lib"; then
9937 ac_res="none required"
9938 else
9939 ac_res=-l$ac_lib
9940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9942 if ac_fn_cxx_try_link "$LINENO"; then :
9943 ac_cv_search_gethostbyname=$ac_res
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext
9947 if ${ac_cv_search_gethostbyname+:} false; then :
9948 break
9950 done
9951 if ${ac_cv_search_gethostbyname+:} false; then :
9953 else
9954 ac_cv_search_gethostbyname=no
9956 rm conftest.$ac_ext
9957 LIBS=$ac_func_search_save_LIBS
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9960 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9961 ac_res=$ac_cv_search_gethostbyname
9962 if test "$ac_res" != no; then :
9963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9968 $as_echo_n "checking for library containing socket... " >&6; }
9969 if ${ac_cv_search_socket+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_func_search_save_LIBS=$LIBS
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char socket ();
9984 main ()
9986 return socket ();
9988 return 0;
9990 _ACEOF
9991 for ac_lib in '' socket; do
9992 if test -z "$ac_lib"; then
9993 ac_res="none required"
9994 else
9995 ac_res=-l$ac_lib
9996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9998 if ac_fn_cxx_try_link "$LINENO"; then :
9999 ac_cv_search_socket=$ac_res
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext
10003 if ${ac_cv_search_socket+:} false; then :
10004 break
10006 done
10007 if ${ac_cv_search_socket+:} false; then :
10009 else
10010 ac_cv_search_socket=no
10012 rm conftest.$ac_ext
10013 LIBS=$ac_func_search_save_LIBS
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10016 $as_echo "$ac_cv_search_socket" >&6; }
10017 ac_res=$ac_cv_search_socket
10018 if test "$ac_res" != no; then :
10019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10021 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10024 $as_echo_n "checking for socket in -lsocket... " >&6; }
10025 if ${ac_cv_lib_socket_socket+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-lsocket -lnsl $LIBS"
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char socket ();
10041 main ()
10043 return socket ();
10045 return 0;
10047 _ACEOF
10048 if ac_fn_cxx_try_link "$LINENO"; then :
10049 ac_cv_lib_socket_socket=yes
10050 else
10051 ac_cv_lib_socket_socket=no
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10058 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10059 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10060 LIBS="-lsocket -lnsl $LIBS"
10066 NETLIBS="$LIBS"
10067 LIBS="$save_LIBS"
10070 # Some systems put ldexp and frexp in libm instead of libc; assume
10071 # they're both in the same place. jcf-dump needs them.
10072 save_LIBS="$LIBS"
10073 LIBS=
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10075 $as_echo_n "checking for library containing ldexp... " >&6; }
10076 if ${ac_cv_search_ldexp+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_func_search_save_LIBS=$LIBS
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char ldexp ();
10091 main ()
10093 return ldexp ();
10095 return 0;
10097 _ACEOF
10098 for ac_lib in '' m; do
10099 if test -z "$ac_lib"; then
10100 ac_res="none required"
10101 else
10102 ac_res=-l$ac_lib
10103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10105 if ac_fn_cxx_try_link "$LINENO"; then :
10106 ac_cv_search_ldexp=$ac_res
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext
10110 if ${ac_cv_search_ldexp+:} false; then :
10111 break
10113 done
10114 if ${ac_cv_search_ldexp+:} false; then :
10116 else
10117 ac_cv_search_ldexp=no
10119 rm conftest.$ac_ext
10120 LIBS=$ac_func_search_save_LIBS
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10123 $as_echo "$ac_cv_search_ldexp" >&6; }
10124 ac_res=$ac_cv_search_ldexp
10125 if test "$ac_res" != no; then :
10126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10130 LDEXP_LIB="$LIBS"
10131 LIBS="$save_LIBS"
10134 # Some systems need dlopen
10135 save_LIBS="$LIBS"
10136 LIBS=
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10138 $as_echo_n "checking for library containing dlopen... " >&6; }
10139 if ${ac_cv_search_dlopen+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 ac_func_search_save_LIBS=$LIBS
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char dlopen ();
10154 main ()
10156 return dlopen ();
10158 return 0;
10160 _ACEOF
10161 for ac_lib in '' dl; do
10162 if test -z "$ac_lib"; then
10163 ac_res="none required"
10164 else
10165 ac_res=-l$ac_lib
10166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10168 if ac_fn_cxx_try_link "$LINENO"; then :
10169 ac_cv_search_dlopen=$ac_res
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext
10173 if ${ac_cv_search_dlopen+:} false; then :
10174 break
10176 done
10177 if ${ac_cv_search_dlopen+:} false; then :
10179 else
10180 ac_cv_search_dlopen=no
10182 rm conftest.$ac_ext
10183 LIBS=$ac_func_search_save_LIBS
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10186 $as_echo "$ac_cv_search_dlopen" >&6; }
10187 ac_res=$ac_cv_search_dlopen
10188 if test "$ac_res" != no; then :
10189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10193 DL_LIB="$LIBS"
10194 LIBS="$save_LIBS"
10197 # Use <inttypes.h> only if it exists,
10198 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10199 # PRId64
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10201 $as_echo_n "checking for inttypes.h... " >&6; }
10202 if ${gcc_cv_header_inttypes_h+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 #define __STDC_FORMAT_MACROS
10208 #include <sys/types.h>
10209 #include <inttypes.h>
10211 main ()
10213 intmax_t i = -1;
10214 #ifndef PRId64
10215 choke me
10216 #endif
10218 return 0;
10220 _ACEOF
10221 if ac_fn_cxx_try_compile "$LINENO"; then :
10222 gcc_cv_header_inttypes_h=yes
10223 else
10224 gcc_cv_header_inttypes_h=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10230 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10231 if test $gcc_cv_header_inttypes_h = yes; then
10233 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10237 # Look for the ZSTD package.
10238 ZSTD_INCLUDE=
10239 ZSTD_LIB=
10242 ZSTD_CPPFLAGS=
10243 ZSTD_LDFLAGS=
10247 # Check whether --with-zstd was given.
10248 if test "${with_zstd+set}" = set; then :
10249 withval=$with_zstd;
10253 # Check whether --with-zstd-include was given.
10254 if test "${with_zstd_include+set}" = set; then :
10255 withval=$with_zstd_include;
10259 # Check whether --with-zstd-lib was given.
10260 if test "${with_zstd_lib+set}" = set; then :
10261 withval=$with_zstd_lib;
10264 case "x$with_zstd" in
10265 x) ;;
10266 xno)
10267 ZSTD_INCLUDE=
10268 ZSTD_LIB=
10270 *) ZSTD_INCLUDE=$with_zstd/include
10271 ZSTD_LIB=$with_zstd/lib
10273 esac
10275 if test "x$with_zstd" != xno; then
10276 if test "x$with_zstd_include" != x; then
10277 ZSTD_INCLUDE=$with_zstd_include
10279 if test "x$with_zstd_lib" != x; then
10280 ZSTD_LIB=$with_zstd_lib
10282 if test "x$ZSTD_INCLUDE" != x \
10283 && test "x$ZSTD_INCLUDE" != xno; then
10284 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10286 if test "x$ZSTD_LIB" != x \
10287 && test "x$ZSTD_LIB" != xno; then
10288 ZSTD_LDFLAGS=-L$ZSTD_LIB
10291 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10292 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10295 $as_echo_n "checking for zstd.h... " >&6; }
10296 if ${gcc_cv_header_zstd_h+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 # We require version 1.3.0 or later. This is the first version that has
10300 # ZSTD_getFrameContentSize.
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 #include <zstd.h>
10304 #if ZSTD_VERSION_NUMBER < 10300
10305 #error "need zstd 1.3.0 or better"
10306 #endif
10308 main ()
10312 return 0;
10314 _ACEOF
10315 if ac_fn_cxx_try_compile "$LINENO"; then :
10316 gcc_cv_header_zstd_h=yes
10317 else
10318 gcc_cv_header_zstd_h=no
10320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10324 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10325 if test $gcc_cv_header_zstd_h = yes; then
10327 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10329 elif test "x$with_zstd" != x; then
10330 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10333 # LTO can use zstd compression algorithm
10334 save_LIBS="$LIBS"
10335 LIBS=
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10337 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10338 if ${ac_cv_search_ZSTD_compress+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 ac_func_search_save_LIBS=$LIBS
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char ZSTD_compress ();
10353 main ()
10355 return ZSTD_compress ();
10357 return 0;
10359 _ACEOF
10360 for ac_lib in '' zstd; do
10361 if test -z "$ac_lib"; then
10362 ac_res="none required"
10363 else
10364 ac_res=-l$ac_lib
10365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10367 if ac_fn_cxx_try_link "$LINENO"; then :
10368 ac_cv_search_ZSTD_compress=$ac_res
10370 rm -f core conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext
10372 if ${ac_cv_search_ZSTD_compress+:} false; then :
10373 break
10375 done
10376 if ${ac_cv_search_ZSTD_compress+:} false; then :
10378 else
10379 ac_cv_search_ZSTD_compress=no
10381 rm conftest.$ac_ext
10382 LIBS=$ac_func_search_save_LIBS
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10385 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10386 ac_res=$ac_cv_search_ZSTD_compress
10387 if test "$ac_res" != no; then :
10388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10392 ZSTD_LIB="$LIBS"
10393 LIBS="$save_LIBS"
10399 for ac_func in times clock kill getrlimit setrlimit atoq \
10400 popen sysconf strsignal getrusage nl_langinfo \
10401 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10402 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
10403 do :
10404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10405 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10409 _ACEOF
10412 done
10415 if test x$ac_cv_func_mbstowcs = xyes; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10417 $as_echo_n "checking whether mbstowcs works... " >&6; }
10418 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 if test "$cross_compiling" = yes; then :
10422 gcc_cv_func_mbstowcs_works=yes
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #include <stdlib.h>
10427 int main()
10429 mbstowcs(0, "", 0);
10430 return 0;
10432 _ACEOF
10433 if ac_fn_cxx_try_run "$LINENO"; then :
10434 gcc_cv_func_mbstowcs_works=yes
10435 else
10436 gcc_cv_func_mbstowcs_works=no
10438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10439 conftest.$ac_objext conftest.beam conftest.$ac_ext
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10444 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10445 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10447 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10452 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10453 if test "x$ac_cv_type_ssize_t" = xyes; then :
10455 else
10457 cat >>confdefs.h <<_ACEOF
10458 #define ssize_t int
10459 _ACEOF
10463 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10464 if test "x$ac_cv_type_caddr_t" = xyes; then :
10466 else
10468 cat >>confdefs.h <<_ACEOF
10469 #define caddr_t char *
10470 _ACEOF
10474 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10476 if test "x$ac_cv_type_sighander_t" = xyes; then :
10478 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10484 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10485 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10486 gcc_header_sys_mman_h=yes
10487 else
10488 gcc_header_sys_mman_h=no
10491 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10492 if test "x$ac_cv_func_mmap" = xyes; then :
10493 gcc_func_mmap=yes
10494 else
10495 gcc_func_mmap=no
10498 if test "$gcc_header_sys_mman_h" != yes \
10499 || test "$gcc_func_mmap" != yes; then
10500 gcc_cv_func_mmap_file=no
10501 gcc_cv_func_mmap_dev_zero=no
10502 gcc_cv_func_mmap_anon=no
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10505 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10506 if ${gcc_cv_func_mmap_file+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 # Add a system to this blacklist if
10510 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10511 # memory area containing the same data that you'd get if you applied
10512 # read() to the same fd. The only system known to have a problem here
10513 # is VMS, where text files have record structure.
10514 case "$host_os" in
10515 *vms* | ultrix*)
10516 gcc_cv_func_mmap_file=no ;;
10518 gcc_cv_func_mmap_file=yes;;
10519 esac
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10522 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10524 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10525 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 # Add a system to this blacklist if it has mmap() but /dev/zero
10529 # does not exist, or if mmapping /dev/zero does not give anonymous
10530 # zeroed pages with both the following properties:
10531 # 1. If you map N consecutive pages in with one call, and then
10532 # unmap any subset of those pages, the pages that were not
10533 # explicitly unmapped remain accessible.
10534 # 2. If you map two adjacent blocks of memory and then unmap them
10535 # both at once, they must both go away.
10536 # Systems known to be in this category are Windows (all variants),
10537 # VMS, and Darwin.
10538 case "$host_os" in
10539 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10540 gcc_cv_func_mmap_dev_zero=no ;;
10542 gcc_cv_func_mmap_dev_zero=yes;;
10543 esac
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10546 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10548 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10550 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10551 if ${gcc_cv_decl_map_anon+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 #include <sys/types.h>
10557 #include <sys/mman.h>
10558 #include <unistd.h>
10560 #ifndef MAP_ANONYMOUS
10561 #define MAP_ANONYMOUS MAP_ANON
10562 #endif
10565 main ()
10567 int n = MAP_ANONYMOUS;
10569 return 0;
10571 _ACEOF
10572 if ac_fn_cxx_try_compile "$LINENO"; then :
10573 gcc_cv_decl_map_anon=yes
10574 else
10575 gcc_cv_decl_map_anon=no
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10580 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10582 if test $gcc_cv_decl_map_anon = no; then
10583 gcc_cv_func_mmap_anon=no
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10586 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10587 if ${gcc_cv_func_mmap_anon+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10591 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10592 # doesn't give anonymous zeroed pages with the same properties listed
10593 # above for use of /dev/zero.
10594 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10595 case "$host_os" in
10596 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10597 gcc_cv_func_mmap_anon=no ;;
10599 gcc_cv_func_mmap_anon=yes;;
10600 esac
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10603 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10607 if test $gcc_cv_func_mmap_file = yes; then
10609 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10612 if test $gcc_cv_func_mmap_dev_zero = yes; then
10614 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10617 if test $gcc_cv_func_mmap_anon = yes; then
10619 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10624 case "${host}" in
10625 *-*-*vms*)
10626 # Under VMS, vfork works very differently than on Unix. The standard test
10627 # won't work, and it isn't easily adaptable. It makes more sense to
10628 # just force it.
10629 ac_cv_func_vfork_works=yes
10631 esac
10632 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10633 if test "x$ac_cv_type_pid_t" = xyes; then :
10635 else
10637 cat >>confdefs.h <<_ACEOF
10638 #define pid_t int
10639 _ACEOF
10643 for ac_header in vfork.h
10644 do :
10645 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10646 if test "x$ac_cv_header_vfork_h" = xyes; then :
10647 cat >>confdefs.h <<_ACEOF
10648 #define HAVE_VFORK_H 1
10649 _ACEOF
10652 done
10654 for ac_func in fork vfork
10655 do :
10656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10657 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10659 cat >>confdefs.h <<_ACEOF
10660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10661 _ACEOF
10664 done
10666 if test "x$ac_cv_func_fork" = xyes; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10668 $as_echo_n "checking for working fork... " >&6; }
10669 if ${ac_cv_func_fork_works+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 if test "$cross_compiling" = yes; then :
10673 ac_cv_func_fork_works=cross
10674 else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 $ac_includes_default
10679 main ()
10682 /* By Ruediger Kuhlmann. */
10683 return fork () < 0;
10686 return 0;
10688 _ACEOF
10689 if ac_fn_cxx_try_run "$LINENO"; then :
10690 ac_cv_func_fork_works=yes
10691 else
10692 ac_cv_func_fork_works=no
10694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10695 conftest.$ac_objext conftest.beam conftest.$ac_ext
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10700 $as_echo "$ac_cv_func_fork_works" >&6; }
10702 else
10703 ac_cv_func_fork_works=$ac_cv_func_fork
10705 if test "x$ac_cv_func_fork_works" = xcross; then
10706 case $host in
10707 *-*-amigaos* | *-*-msdosdjgpp*)
10708 # Override, as these systems have only a dummy fork() stub
10709 ac_cv_func_fork_works=no
10712 ac_cv_func_fork_works=yes
10714 esac
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10716 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10718 ac_cv_func_vfork_works=$ac_cv_func_vfork
10719 if test "x$ac_cv_func_vfork" = xyes; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10721 $as_echo_n "checking for working vfork... " >&6; }
10722 if ${ac_cv_func_vfork_works+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 if test "$cross_compiling" = yes; then :
10726 ac_cv_func_vfork_works=cross
10727 else
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 /* Thanks to Paul Eggert for this test. */
10731 $ac_includes_default
10732 #include <sys/wait.h>
10733 #ifdef HAVE_VFORK_H
10734 # include <vfork.h>
10735 #endif
10736 /* On some sparc systems, changes by the child to local and incoming
10737 argument registers are propagated back to the parent. The compiler
10738 is told about this with #include <vfork.h>, but some compilers
10739 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10740 static variable whose address is put into a register that is
10741 clobbered by the vfork. */
10742 static void
10743 #ifdef __cplusplus
10744 sparc_address_test (int arg)
10745 # else
10746 sparc_address_test (arg) int arg;
10747 #endif
10749 static pid_t child;
10750 if (!child) {
10751 child = vfork ();
10752 if (child < 0) {
10753 perror ("vfork");
10754 _exit(2);
10756 if (!child) {
10757 arg = getpid();
10758 write(-1, "", 0);
10759 _exit (arg);
10765 main ()
10767 pid_t parent = getpid ();
10768 pid_t child;
10770 sparc_address_test (0);
10772 child = vfork ();
10774 if (child == 0) {
10775 /* Here is another test for sparc vfork register problems. This
10776 test uses lots of local variables, at least as many local
10777 variables as main has allocated so far including compiler
10778 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10779 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10780 reuse the register of parent for one of the local variables,
10781 since it will think that parent can't possibly be used any more
10782 in this routine. Assigning to the local variable will thus
10783 munge parent in the parent process. */
10784 pid_t
10785 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10786 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10787 /* Convince the compiler that p..p7 are live; otherwise, it might
10788 use the same hardware register for all 8 local variables. */
10789 if (p != p1 || p != p2 || p != p3 || p != p4
10790 || p != p5 || p != p6 || p != p7)
10791 _exit(1);
10793 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10794 from child file descriptors. If the child closes a descriptor
10795 before it execs or exits, this munges the parent's descriptor
10796 as well. Test for this by closing stdout in the child. */
10797 _exit(close(fileno(stdout)) != 0);
10798 } else {
10799 int status;
10800 struct stat st;
10802 while (wait(&status) != child)
10804 return (
10805 /* Was there some problem with vforking? */
10806 child < 0
10808 /* Did the child fail? (This shouldn't happen.) */
10809 || status
10811 /* Did the vfork/compiler bug occur? */
10812 || parent != getpid()
10814 /* Did the file descriptor bug occur? */
10815 || fstat(fileno(stdout), &st) != 0
10819 _ACEOF
10820 if ac_fn_cxx_try_run "$LINENO"; then :
10821 ac_cv_func_vfork_works=yes
10822 else
10823 ac_cv_func_vfork_works=no
10825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10826 conftest.$ac_objext conftest.beam conftest.$ac_ext
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10831 $as_echo "$ac_cv_func_vfork_works" >&6; }
10834 if test "x$ac_cv_func_fork_works" = xcross; then
10835 ac_cv_func_vfork_works=$ac_cv_func_vfork
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10837 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10840 if test "x$ac_cv_func_vfork_works" = xyes; then
10842 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10844 else
10846 $as_echo "#define vfork fork" >>confdefs.h
10849 if test "x$ac_cv_func_fork_works" = xyes; then
10851 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10857 if test "X$prefix" = "XNONE"; then
10858 acl_final_prefix="$ac_default_prefix"
10859 else
10860 acl_final_prefix="$prefix"
10862 if test "X$exec_prefix" = "XNONE"; then
10863 acl_final_exec_prefix='${prefix}'
10864 else
10865 acl_final_exec_prefix="$exec_prefix"
10867 acl_save_prefix="$prefix"
10868 prefix="$acl_final_prefix"
10869 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10870 prefix="$acl_save_prefix"
10873 # Check whether --with-gnu-ld was given.
10874 if test "${with_gnu_ld+set}" = set; then :
10875 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10876 else
10877 with_gnu_ld=no
10880 # Prepare PATH_SEPARATOR.
10881 # The user is always right.
10882 if test "${PATH_SEPARATOR+set}" != set; then
10883 echo "#! /bin/sh" >conf$$.sh
10884 echo "exit 0" >>conf$$.sh
10885 chmod +x conf$$.sh
10886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10887 PATH_SEPARATOR=';'
10888 else
10889 PATH_SEPARATOR=:
10891 rm -f conf$$.sh
10893 ac_prog=ld
10894 if test "$GCC" = yes; then
10895 # Check if gcc -print-prog-name=ld gives a path.
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10897 $as_echo_n "checking for ld used by GCC... " >&6; }
10898 case $host in
10899 *-*-mingw*)
10900 # gcc leaves a trailing carriage return which upsets mingw
10901 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10903 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10904 esac
10905 case $ac_prog in
10906 # Accept absolute paths.
10907 [\\/]* | [A-Za-z]:[\\/]*)
10908 re_direlt='/[^/][^/]*/\.\./'
10909 # Canonicalize the path of ld
10910 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10911 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10912 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10913 done
10914 test -z "$LD" && LD="$ac_prog"
10917 # If it fails, then pretend we aren't using GCC.
10918 ac_prog=ld
10921 # If it is relative, then search for the first ld in PATH.
10922 with_gnu_ld=unknown
10924 esac
10925 elif test "$with_gnu_ld" = yes; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10927 $as_echo_n "checking for GNU ld... " >&6; }
10928 else
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10930 $as_echo_n "checking for non-GNU ld... " >&6; }
10932 if ${acl_cv_path_LD+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 if test -z "$LD"; then
10936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10937 for ac_dir in $PATH; do
10938 test -z "$ac_dir" && ac_dir=.
10939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10940 acl_cv_path_LD="$ac_dir/$ac_prog"
10941 # Check to see if the program is GNU ld. I'd rather use --version,
10942 # but apparently some GNU ld's only accept -v.
10943 # Break only if it was the GNU/non-GNU ld that we prefer.
10944 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10945 test "$with_gnu_ld" != no && break
10946 else
10947 test "$with_gnu_ld" != yes && break
10950 done
10951 IFS="$ac_save_ifs"
10952 else
10953 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10957 LD="$acl_cv_path_LD"
10958 if test -n "$LD"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10960 $as_echo "$LD" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10965 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10967 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10968 if ${acl_cv_prog_gnu_ld+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10972 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10973 acl_cv_prog_gnu_ld=yes
10974 else
10975 acl_cv_prog_gnu_ld=no
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10979 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10980 with_gnu_ld=$acl_cv_prog_gnu_ld
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10985 $as_echo_n "checking for shared library run path origin... " >&6; }
10986 if ${acl_cv_rpath+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10990 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10991 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10992 . ./conftest.sh
10993 rm -f ./conftest.sh
10994 acl_cv_rpath=done
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10998 $as_echo "$acl_cv_rpath" >&6; }
10999 wl="$acl_cv_wl"
11000 libext="$acl_cv_libext"
11001 shlibext="$acl_cv_shlibext"
11002 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11003 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11004 hardcode_direct="$acl_cv_hardcode_direct"
11005 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11006 # Check whether --enable-rpath was given.
11007 if test "${enable_rpath+set}" = set; then :
11008 enableval=$enable_rpath; :
11009 else
11010 enable_rpath=yes
11020 use_additional=yes
11022 acl_save_prefix="$prefix"
11023 prefix="$acl_final_prefix"
11024 acl_save_exec_prefix="$exec_prefix"
11025 exec_prefix="$acl_final_exec_prefix"
11027 eval additional_includedir=\"$includedir\"
11028 eval additional_libdir=\"$libdir\"
11030 exec_prefix="$acl_save_exec_prefix"
11031 prefix="$acl_save_prefix"
11034 # Check whether --with-libiconv-prefix was given.
11035 if test "${with_libiconv_prefix+set}" = set; then :
11036 withval=$with_libiconv_prefix;
11037 if test "X$withval" = "Xno"; then
11038 use_additional=no
11039 else
11040 if test "X$withval" = "X"; then
11042 acl_save_prefix="$prefix"
11043 prefix="$acl_final_prefix"
11044 acl_save_exec_prefix="$exec_prefix"
11045 exec_prefix="$acl_final_exec_prefix"
11047 eval additional_includedir=\"$includedir\"
11048 eval additional_libdir=\"$libdir\"
11050 exec_prefix="$acl_save_exec_prefix"
11051 prefix="$acl_save_prefix"
11053 else
11054 additional_includedir="$withval/include"
11055 additional_libdir="$withval/lib"
11062 # Check whether --with-libiconv-type was given.
11063 if test "${with_libiconv_type+set}" = set; then :
11064 withval=$with_libiconv_type; with_libiconv_type=$withval
11065 else
11066 with_libiconv_type=auto
11069 lib_type=`eval echo \$with_libiconv_type`
11071 LIBICONV=
11072 LTLIBICONV=
11073 INCICONV=
11074 rpathdirs=
11075 ltrpathdirs=
11076 names_already_handled=
11077 names_next_round='iconv '
11078 while test -n "$names_next_round"; do
11079 names_this_round="$names_next_round"
11080 names_next_round=
11081 for name in $names_this_round; do
11082 already_handled=
11083 for n in $names_already_handled; do
11084 if test "$n" = "$name"; then
11085 already_handled=yes
11086 break
11088 done
11089 if test -z "$already_handled"; then
11090 names_already_handled="$names_already_handled $name"
11091 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11092 eval value=\"\$HAVE_LIB$uppername\"
11093 if test -n "$value"; then
11094 if test "$value" = yes; then
11095 eval value=\"\$LIB$uppername\"
11096 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11097 eval value=\"\$LTLIB$uppername\"
11098 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11099 else
11102 else
11103 found_dir=
11104 found_la=
11105 found_so=
11106 found_a=
11107 if test $use_additional = yes; then
11108 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11109 found_dir="$additional_libdir"
11110 found_so="$additional_libdir/lib$name.$shlibext"
11111 if test -f "$additional_libdir/lib$name.la"; then
11112 found_la="$additional_libdir/lib$name.la"
11114 elif test x$lib_type != xshared; then
11115 if test -f "$additional_libdir/lib$name.$libext"; then
11116 found_dir="$additional_libdir"
11117 found_a="$additional_libdir/lib$name.$libext"
11118 if test -f "$additional_libdir/lib$name.la"; then
11119 found_la="$additional_libdir/lib$name.la"
11124 if test "X$found_dir" = "X"; then
11125 for x in $LDFLAGS $LTLIBICONV; do
11127 acl_save_prefix="$prefix"
11128 prefix="$acl_final_prefix"
11129 acl_save_exec_prefix="$exec_prefix"
11130 exec_prefix="$acl_final_exec_prefix"
11131 eval x=\"$x\"
11132 exec_prefix="$acl_save_exec_prefix"
11133 prefix="$acl_save_prefix"
11135 case "$x" in
11136 -L*)
11137 dir=`echo "X$x" | sed -e 's/^X-L//'`
11138 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11139 found_dir="$dir"
11140 found_so="$dir/lib$name.$shlibext"
11141 if test -f "$dir/lib$name.la"; then
11142 found_la="$dir/lib$name.la"
11144 elif test x$lib_type != xshared; then
11145 if test -f "$dir/lib$name.$libext"; then
11146 found_dir="$dir"
11147 found_a="$dir/lib$name.$libext"
11148 if test -f "$dir/lib$name.la"; then
11149 found_la="$dir/lib$name.la"
11154 esac
11155 if test "X$found_dir" != "X"; then
11156 break
11158 done
11160 if test "X$found_dir" != "X"; then
11161 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11162 if test "X$found_so" != "X"; then
11163 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11164 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11165 else
11166 haveit=
11167 for x in $ltrpathdirs; do
11168 if test "X$x" = "X$found_dir"; then
11169 haveit=yes
11170 break
11172 done
11173 if test -z "$haveit"; then
11174 ltrpathdirs="$ltrpathdirs $found_dir"
11176 if test "$hardcode_direct" = yes; then
11177 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11178 else
11179 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11180 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11181 haveit=
11182 for x in $rpathdirs; do
11183 if test "X$x" = "X$found_dir"; then
11184 haveit=yes
11185 break
11187 done
11188 if test -z "$haveit"; then
11189 rpathdirs="$rpathdirs $found_dir"
11191 else
11192 haveit=
11193 for x in $LDFLAGS $LIBICONV; do
11195 acl_save_prefix="$prefix"
11196 prefix="$acl_final_prefix"
11197 acl_save_exec_prefix="$exec_prefix"
11198 exec_prefix="$acl_final_exec_prefix"
11199 eval x=\"$x\"
11200 exec_prefix="$acl_save_exec_prefix"
11201 prefix="$acl_save_prefix"
11203 if test "X$x" = "X-L$found_dir"; then
11204 haveit=yes
11205 break
11207 done
11208 if test -z "$haveit"; then
11209 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11211 if test "$hardcode_minus_L" != no; then
11212 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11213 else
11214 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11219 else
11220 if test "X$found_a" != "X"; then
11221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11222 else
11223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11226 additional_includedir=
11227 case "$found_dir" in
11228 */lib | */lib/)
11229 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11230 additional_includedir="$basedir/include"
11232 esac
11233 if test "X$additional_includedir" != "X"; then
11234 if test "X$additional_includedir" != "X/usr/include"; then
11235 haveit=
11236 if test "X$additional_includedir" = "X/usr/local/include"; then
11237 if test -n "$GCC"; then
11238 case $host_os in
11239 linux*) haveit=yes;;
11240 esac
11243 if test -z "$haveit"; then
11244 for x in $CPPFLAGS $INCICONV; do
11246 acl_save_prefix="$prefix"
11247 prefix="$acl_final_prefix"
11248 acl_save_exec_prefix="$exec_prefix"
11249 exec_prefix="$acl_final_exec_prefix"
11250 eval x=\"$x\"
11251 exec_prefix="$acl_save_exec_prefix"
11252 prefix="$acl_save_prefix"
11254 if test "X$x" = "X-I$additional_includedir"; then
11255 haveit=yes
11256 break
11258 done
11259 if test -z "$haveit"; then
11260 if test -d "$additional_includedir"; then
11261 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11267 if test -n "$found_la"; then
11268 save_libdir="$libdir"
11269 case "$found_la" in
11270 */* | *\\*) . "$found_la" ;;
11271 *) . "./$found_la" ;;
11272 esac
11273 libdir="$save_libdir"
11274 for dep in $dependency_libs; do
11275 case "$dep" in
11276 -L*)
11277 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11278 if test "X$additional_libdir" != "X/usr/lib"; then
11279 haveit=
11280 if test "X$additional_libdir" = "X/usr/local/lib"; then
11281 if test -n "$GCC"; then
11282 case $host_os in
11283 linux*) haveit=yes;;
11284 esac
11287 if test -z "$haveit"; then
11288 haveit=
11289 for x in $LDFLAGS $LIBICONV; do
11291 acl_save_prefix="$prefix"
11292 prefix="$acl_final_prefix"
11293 acl_save_exec_prefix="$exec_prefix"
11294 exec_prefix="$acl_final_exec_prefix"
11295 eval x=\"$x\"
11296 exec_prefix="$acl_save_exec_prefix"
11297 prefix="$acl_save_prefix"
11299 if test "X$x" = "X-L$additional_libdir"; then
11300 haveit=yes
11301 break
11303 done
11304 if test -z "$haveit"; then
11305 if test -d "$additional_libdir"; then
11306 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11309 haveit=
11310 for x in $LDFLAGS $LTLIBICONV; do
11312 acl_save_prefix="$prefix"
11313 prefix="$acl_final_prefix"
11314 acl_save_exec_prefix="$exec_prefix"
11315 exec_prefix="$acl_final_exec_prefix"
11316 eval x=\"$x\"
11317 exec_prefix="$acl_save_exec_prefix"
11318 prefix="$acl_save_prefix"
11320 if test "X$x" = "X-L$additional_libdir"; then
11321 haveit=yes
11322 break
11324 done
11325 if test -z "$haveit"; then
11326 if test -d "$additional_libdir"; then
11327 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11333 -R*)
11334 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11335 if test "$enable_rpath" != no; then
11336 haveit=
11337 for x in $rpathdirs; do
11338 if test "X$x" = "X$dir"; then
11339 haveit=yes
11340 break
11342 done
11343 if test -z "$haveit"; then
11344 rpathdirs="$rpathdirs $dir"
11346 haveit=
11347 for x in $ltrpathdirs; do
11348 if test "X$x" = "X$dir"; then
11349 haveit=yes
11350 break
11352 done
11353 if test -z "$haveit"; then
11354 ltrpathdirs="$ltrpathdirs $dir"
11358 -l*)
11359 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11361 *.la)
11362 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11365 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11368 esac
11369 done
11371 else
11372 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11373 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11375 else
11376 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11377 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11382 done
11383 done
11384 if test "X$rpathdirs" != "X"; then
11385 if test -n "$hardcode_libdir_separator"; then
11386 alldirs=
11387 for found_dir in $rpathdirs; do
11388 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11389 done
11390 acl_save_libdir="$libdir"
11391 libdir="$alldirs"
11392 eval flag=\"$hardcode_libdir_flag_spec\"
11393 libdir="$acl_save_libdir"
11394 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11395 else
11396 for found_dir in $rpathdirs; do
11397 acl_save_libdir="$libdir"
11398 libdir="$found_dir"
11399 eval flag=\"$hardcode_libdir_flag_spec\"
11400 libdir="$acl_save_libdir"
11401 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11402 done
11405 if test "X$ltrpathdirs" != "X"; then
11406 for found_dir in $ltrpathdirs; do
11407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11408 done
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11418 $as_echo_n "checking for iconv... " >&6; }
11419 if ${am_cv_func_iconv+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11423 am_cv_func_iconv="no, consider installing GNU libiconv"
11424 am_cv_lib_iconv=no
11425 am_save_CPPFLAGS="$CPPFLAGS"
11426 CPPFLAGS="$CPPFLAGS $INCICONV"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 #include <stdlib.h>
11430 #include <iconv.h>
11432 main ()
11434 iconv_t cd = iconv_open("","");
11435 iconv(cd,NULL,NULL,NULL,NULL);
11436 iconv_close(cd);
11438 return 0;
11440 _ACEOF
11441 if ac_fn_cxx_try_link "$LINENO"; then :
11442 am_cv_func_iconv=yes
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 CPPFLAGS="$am_save_CPPFLAGS"
11448 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11449 for _libs in .libs _libs; do
11450 am_save_CPPFLAGS="$CPPFLAGS"
11451 am_save_LIBS="$LIBS"
11452 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11453 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456 #include <stdlib.h>
11457 #include <iconv.h>
11459 main ()
11461 iconv_t cd = iconv_open("","");
11462 iconv(cd,NULL,NULL,NULL,NULL);
11463 iconv_close(cd);
11465 return 0;
11467 _ACEOF
11468 if ac_fn_cxx_try_link "$LINENO"; then :
11469 INCICONV="-I../libiconv/include"
11470 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11471 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11472 am_cv_lib_iconv=yes
11473 am_cv_func_iconv=yes
11475 rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 CPPFLAGS="$am_save_CPPFLAGS"
11478 LIBS="$am_save_LIBS"
11479 if test "$am_cv_func_iconv" = "yes"; then
11480 break
11482 done
11485 if test "$am_cv_func_iconv" != yes; then
11486 am_save_CPPFLAGS="$CPPFLAGS"
11487 am_save_LIBS="$LIBS"
11488 CPPFLAGS="$CPPFLAGS $INCICONV"
11489 LIBS="$LIBS $LIBICONV"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492 #include <stdlib.h>
11493 #include <iconv.h>
11495 main ()
11497 iconv_t cd = iconv_open("","");
11498 iconv(cd,NULL,NULL,NULL,NULL);
11499 iconv_close(cd);
11501 return 0;
11503 _ACEOF
11504 if ac_fn_cxx_try_link "$LINENO"; then :
11505 am_cv_lib_iconv=yes
11506 am_cv_func_iconv=yes
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 CPPFLAGS="$am_save_CPPFLAGS"
11511 LIBS="$am_save_LIBS"
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11516 $as_echo "$am_cv_func_iconv" >&6; }
11517 if test "$am_cv_func_iconv" = yes; then
11519 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11522 if test "$am_cv_lib_iconv" = yes; then
11524 for element in $INCICONV; do
11525 haveit=
11526 for x in $CPPFLAGS; do
11528 acl_save_prefix="$prefix"
11529 prefix="$acl_final_prefix"
11530 acl_save_exec_prefix="$exec_prefix"
11531 exec_prefix="$acl_final_exec_prefix"
11532 eval x=\"$x\"
11533 exec_prefix="$acl_save_exec_prefix"
11534 prefix="$acl_save_prefix"
11536 if test "X$x" = "X$element"; then
11537 haveit=yes
11538 break
11540 done
11541 if test -z "$haveit"; then
11542 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11544 done
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11547 $as_echo_n "checking how to link with libiconv... " >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11549 $as_echo "$LIBICONV" >&6; }
11550 else
11551 LIBICONV=
11552 LTLIBICONV=
11557 if test "$am_cv_func_iconv" = yes; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11559 $as_echo_n "checking for iconv declaration... " >&6; }
11560 if ${am_cv_proto_iconv+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11567 #include <stdlib.h>
11568 #include <iconv.h>
11569 extern
11570 #ifdef __cplusplus
11572 #endif
11573 #if defined(__STDC__) || defined(__cplusplus)
11574 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11575 #else
11576 size_t iconv();
11577 #endif
11580 main ()
11584 return 0;
11586 _ACEOF
11587 if ac_fn_cxx_try_compile "$LINENO"; then :
11588 am_cv_proto_iconv_arg1=""
11589 else
11590 am_cv_proto_iconv_arg1="const"
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 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);"
11596 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11598 }$am_cv_proto_iconv" >&5
11599 $as_echo "${ac_t:-
11600 }$am_cv_proto_iconv" >&6; }
11602 cat >>confdefs.h <<_ACEOF
11603 #define ICONV_CONST $am_cv_proto_iconv_arg1
11604 _ACEOF
11609 # Until we have in-tree GNU iconv:
11610 LIBICONV_DEP=
11611 if test -f "$LTLIBICONV"; then
11612 LIBICONV_DEP=$LTLIBICONV
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11618 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11619 if ${am_cv_val_LC_MESSAGES+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624 #include <locale.h>
11626 main ()
11628 return LC_MESSAGES
11630 return 0;
11632 _ACEOF
11633 if ac_fn_cxx_try_link "$LINENO"; then :
11634 am_cv_val_LC_MESSAGES=yes
11635 else
11636 am_cv_val_LC_MESSAGES=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11642 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11643 if test $am_cv_val_LC_MESSAGES = yes; then
11645 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11652 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11653 if ${am_cv_langinfo_codeset+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11658 #include <langinfo.h>
11660 main ()
11662 char* cs = nl_langinfo(CODESET);
11664 return 0;
11666 _ACEOF
11667 if ac_fn_cxx_try_link "$LINENO"; then :
11668 am_cv_langinfo_codeset=yes
11669 else
11670 am_cv_langinfo_codeset=no
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11677 $as_echo "$am_cv_langinfo_codeset" >&6; }
11678 if test $am_cv_langinfo_codeset = yes; then
11680 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11685 # We will need to find libiberty.h and ansidecl.h
11686 saved_CFLAGS="$CFLAGS"
11687 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11688 saved_CXXFLAGS="$CXXFLAGS"
11689 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11691 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11692 # normal autoconf function for these. But force definition of
11693 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11694 # basename handling in libiberty.h.
11695 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11696 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11697 #undef HAVE_DECL_BASENAME
11698 #define HAVE_DECL_BASENAME 1
11699 #include \"ansidecl.h\"
11700 #include \"system.h\"
11702 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11703 ac_have_decl=1
11704 else
11705 ac_have_decl=0
11708 cat >>confdefs.h <<_ACEOF
11709 #define HAVE_DECL_BASENAME $ac_have_decl
11710 _ACEOF
11711 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11712 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11713 #undef HAVE_DECL_BASENAME
11714 #define HAVE_DECL_BASENAME 1
11715 #include \"ansidecl.h\"
11716 #include \"system.h\"
11718 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11719 ac_have_decl=1
11720 else
11721 ac_have_decl=0
11724 cat >>confdefs.h <<_ACEOF
11725 #define HAVE_DECL_STRSTR $ac_have_decl
11726 _ACEOF
11729 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11730 madvise stpcpy strnlen strsignal strverscmp \
11731 strtol strtoul strtoll strtoull setenv unsetenv \
11732 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11733 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
11735 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11737 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11738 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11743 #undef $ac_tr_decl
11744 #define $ac_tr_decl 1
11746 #include "ansidecl.h"
11747 #include "system.h"
11750 main ()
11752 #ifndef $ac_func
11753 char *(*pfn) = (char *(*)) $ac_func ;
11754 #endif
11756 return 0;
11758 _ACEOF
11759 if ac_fn_cxx_try_compile "$LINENO"; then :
11760 eval "gcc_cv_have_decl_$ac_func=yes"
11761 else
11762 eval "gcc_cv_have_decl_$ac_func=no"
11764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11769 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11770 #define $ac_tr_decl 1
11771 _ACEOF
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11776 #define $ac_tr_decl 0
11777 _ACEOF
11781 done
11784 for ac_func in getrlimit setrlimit getrusage
11786 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11788 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11789 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 #undef $ac_tr_decl
11795 #define $ac_tr_decl 1
11797 #include "ansidecl.h"
11798 #include "system.h"
11799 #ifdef HAVE_SYS_RESOURCE_H
11800 #include <sys/resource.h>
11801 #endif
11805 main ()
11807 #ifndef $ac_func
11808 char *(*pfn) = (char *(*)) $ac_func ;
11809 #endif
11811 return 0;
11813 _ACEOF
11814 if ac_fn_cxx_try_compile "$LINENO"; then :
11815 eval "gcc_cv_have_decl_$ac_func=yes"
11816 else
11817 eval "gcc_cv_have_decl_$ac_func=no"
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11824 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11825 #define $ac_tr_decl 1
11826 _ACEOF
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11831 #define $ac_tr_decl 0
11832 _ACEOF
11836 done
11839 for ac_func in mallinfo mallinfo2
11841 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11843 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11844 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11849 #undef $ac_tr_decl
11850 #define $ac_tr_decl 1
11852 #include "ansidecl.h"
11853 #include "system.h"
11854 #ifdef HAVE_MALLOC_H
11855 #include <malloc.h>
11856 #endif
11860 main ()
11862 #ifndef $ac_func
11863 char *(*pfn) = (char *(*)) $ac_func ;
11864 #endif
11866 return 0;
11868 _ACEOF
11869 if ac_fn_cxx_try_compile "$LINENO"; then :
11870 eval "gcc_cv_have_decl_$ac_func=yes"
11871 else
11872 eval "gcc_cv_have_decl_$ac_func=no"
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11880 #define $ac_tr_decl 1
11881 _ACEOF
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11886 #define $ac_tr_decl 0
11887 _ACEOF
11891 done
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 #include "ansidecl.h"
11898 #include "system.h"
11899 #ifdef HAVE_SYS_RESOURCE_H
11900 #include <sys/resource.h>
11901 #endif
11904 main ()
11906 rlim_t l = 0;
11908 return 0;
11910 _ACEOF
11911 if ac_fn_cxx_try_compile "$LINENO"; then :
11913 else
11915 $as_echo "#define rlim_t long" >>confdefs.h
11918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11921 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11922 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11923 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11924 for ac_func in ldgetname
11926 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11928 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11929 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 #undef $ac_tr_decl
11935 #define $ac_tr_decl 1
11937 #include "ansidecl.h"
11938 #include "system.h"
11939 #ifdef HAVE_LDFCN_H
11940 #undef FREAD
11941 #undef FWRITE
11942 #include <ldfcn.h>
11943 #endif
11947 main ()
11949 #ifndef $ac_func
11950 char *(*pfn) = (char *(*)) $ac_func ;
11951 #endif
11953 return 0;
11955 _ACEOF
11956 if ac_fn_cxx_try_compile "$LINENO"; then :
11957 eval "gcc_cv_have_decl_$ac_func=yes"
11958 else
11959 eval "gcc_cv_have_decl_$ac_func=no"
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11967 #define $ac_tr_decl 1
11968 _ACEOF
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11973 #define $ac_tr_decl 0
11974 _ACEOF
11978 done
11981 for ac_func in times
11983 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11985 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11986 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 #undef $ac_tr_decl
11992 #define $ac_tr_decl 1
11994 #include "ansidecl.h"
11995 #include "system.h"
11996 #ifdef HAVE_SYS_TIMES_H
11997 #include <sys/times.h>
11998 #endif
12002 main ()
12004 #ifndef $ac_func
12005 char *(*pfn) = (char *(*)) $ac_func ;
12006 #endif
12008 return 0;
12010 _ACEOF
12011 if ac_fn_cxx_try_compile "$LINENO"; then :
12012 eval "gcc_cv_have_decl_$ac_func=yes"
12013 else
12014 eval "gcc_cv_have_decl_$ac_func=no"
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12021 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12022 #define $ac_tr_decl 1
12023 _ACEOF
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12028 #define $ac_tr_decl 0
12029 _ACEOF
12033 done
12036 for ac_func in sigaltstack
12038 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12040 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12041 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 #undef $ac_tr_decl
12047 #define $ac_tr_decl 1
12049 #include "ansidecl.h"
12050 #include "system.h"
12051 #include <signal.h>
12055 main ()
12057 #ifndef $ac_func
12058 char *(*pfn) = (char *(*)) $ac_func ;
12059 #endif
12061 return 0;
12063 _ACEOF
12064 if ac_fn_cxx_try_compile "$LINENO"; then :
12065 eval "gcc_cv_have_decl_$ac_func=yes"
12066 else
12067 eval "gcc_cv_have_decl_$ac_func=no"
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12074 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12075 #define $ac_tr_decl 1
12076 _ACEOF
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12081 #define $ac_tr_decl 0
12082 _ACEOF
12086 done
12089 # More time-related stuff.
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12091 $as_echo_n "checking for struct tms... " >&6; }
12092 if ${ac_cv_struct_tms+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 #include "ansidecl.h"
12100 #include "system.h"
12101 #ifdef HAVE_SYS_TIMES_H
12102 #include <sys/times.h>
12103 #endif
12106 main ()
12108 struct tms tms;
12110 return 0;
12112 _ACEOF
12113 if ac_fn_cxx_try_compile "$LINENO"; then :
12114 ac_cv_struct_tms=yes
12115 else
12116 ac_cv_struct_tms=no
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12121 $as_echo "$ac_cv_struct_tms" >&6; }
12122 if test $ac_cv_struct_tms = yes; then
12124 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12128 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12129 # revisit after autoconf 2.50.
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12131 $as_echo_n "checking for clock_t... " >&6; }
12132 if ${gcc_cv_type_clock_t+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12139 #include "ansidecl.h"
12140 #include "system.h"
12143 main ()
12145 clock_t x;
12147 return 0;
12149 _ACEOF
12150 if ac_fn_cxx_try_compile "$LINENO"; then :
12151 gcc_cv_type_clock_t=yes
12152 else
12153 gcc_cv_type_clock_t=no
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12158 $as_echo "$gcc_cv_type_clock_t" >&6; }
12159 if test $gcc_cv_type_clock_t = yes; then
12161 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12165 # Check if F_SETLKW is supported by fcntl.
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12167 $as_echo_n "checking for F_SETLKW... " >&6; }
12168 if ${ac_cv_f_setlkw+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12175 #include <fcntl.h>
12177 main ()
12180 struct flock fl;
12181 fl.l_whence = 0;
12182 fl.l_start = 0;
12183 fl.l_len = 0;
12184 fl.l_pid = 0;
12185 return fcntl (1, F_SETLKW, &fl);
12187 return 0;
12189 _ACEOF
12190 if ac_fn_cxx_try_compile "$LINENO"; then :
12191 ac_cv_f_setlkw=yes
12192 else
12193 ac_cv_f_setlkw=no
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12198 $as_echo "$ac_cv_f_setlkw" >&6; }
12199 if test $ac_cv_f_setlkw = yes; then
12201 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12205 # Check if O_CLOEXEC is defined by fcntl
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12207 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12208 if ${ac_cv_o_cloexec+:} false; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 #include <fcntl.h>
12217 main ()
12220 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12222 return 0;
12224 _ACEOF
12225 if ac_fn_cxx_try_compile "$LINENO"; then :
12226 ac_cv_o_cloexec=yes
12227 else
12228 ac_cv_o_cloexec=no
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12233 $as_echo "$ac_cv_o_cloexec" >&6; }
12234 if test $ac_cv_o_cloexec = yes; then
12236 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12240 # C++ Modules would like some networking features to provide the mapping
12241 # server. You can still use modules without them though.
12242 # The following network-related checks could probably do with some
12243 # Windows and other non-linux defenses and checking.
12245 # Local socket connectivity wants AF_UNIX networking
12246 # Check for AF_UNIX networking
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12248 $as_echo_n "checking for AF_UNIX... " >&6; }
12249 if ${ac_cv_af_unix+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 #include <sys/types.h>
12257 #include <sys/socket.h>
12258 #include <sys/un.h>
12259 #include <netinet/in.h>
12261 main ()
12264 sockaddr_un un;
12265 un.sun_family = AF_UNSPEC;
12266 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12267 connect (fd, (sockaddr *)&un, sizeof (un));
12269 return 0;
12271 _ACEOF
12272 if ac_fn_cxx_try_compile "$LINENO"; then :
12273 ac_cv_af_unix=yes
12274 else
12275 ac_cv_af_unix=no
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12280 $as_echo "$ac_cv_af_unix" >&6; }
12281 if test $ac_cv_af_unix = yes; then
12283 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12287 # Remote socket connectivity wants AF_INET6 networking
12288 # Check for AF_INET6 networking
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12290 $as_echo_n "checking for AF_INET6... " >&6; }
12291 if ${ac_cv_af_inet6+:} false; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12298 #include <sys/types.h>
12299 #include <sys/socket.h>
12300 #include <netinet/in.h>
12301 #include <netdb.h>
12303 main ()
12306 sockaddr_in6 in6;
12307 in6.sin6_family = AF_UNSPEC;
12308 struct addrinfo *addrs = 0;
12309 struct addrinfo hints;
12310 hints.ai_flags = 0;
12311 hints.ai_family = AF_INET6;
12312 hints.ai_socktype = SOCK_STREAM;
12313 hints.ai_protocol = 0;
12314 hints.ai_canonname = 0;
12315 hints.ai_addr = 0;
12316 hints.ai_next = 0;
12317 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12318 const char *str = gai_strerror (e);
12319 freeaddrinfo (addrs);
12320 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12321 connect (fd, (sockaddr *)&in6, sizeof (in6));
12323 return 0;
12325 _ACEOF
12326 if ac_fn_cxx_try_compile "$LINENO"; then :
12327 ac_cv_af_inet6=yes
12328 else
12329 ac_cv_af_inet6=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12334 $as_echo "$ac_cv_af_inet6" >&6; }
12335 if test $ac_cv_af_inet6 = yes; then
12337 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12341 # Check if _LK_LOCK is supported by _locking
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12343 $as_echo_n "checking for _LK_LOCK... " >&6; }
12344 if ${ac_cv_lk_lock+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12351 #include <io.h>
12352 #include <sys/locking.h>
12354 main ()
12357 int fd;
12358 return _locking (fd, _LK_LOCK, 0);
12360 return 0;
12362 _ACEOF
12363 if ac_fn_cxx_try_compile "$LINENO"; then :
12364 ac_cv_lk_lock=yes
12365 else
12366 ac_cv_lk_lock=no
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12371 $as_echo "$ac_cv_lk_lock" >&6; }
12372 if test $ac_cv_lk_lock = yes; then
12374 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12378 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12379 CFLAGS="$saved_CFLAGS"
12380 CXXFLAGS="$saved_CXXFLAGS"
12382 # mkdir takes a single argument on some systems.
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12384 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12385 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12391 #include <sys/types.h>
12392 #ifdef HAVE_SYS_STAT_H
12393 # include <sys/stat.h>
12394 #endif
12395 #ifdef HAVE_UNISTD_H
12396 # include <unistd.h>
12397 #endif
12398 #ifdef HAVE_DIRECT_H
12399 # include <direct.h>
12400 #endif
12402 main ()
12404 mkdir ("foo", 0);
12406 return 0;
12408 _ACEOF
12409 if ac_fn_cxx_try_compile "$LINENO"; then :
12410 gcc_cv_mkdir_takes_one_arg=no
12411 else
12412 gcc_cv_mkdir_takes_one_arg=yes
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12417 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12418 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12420 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12425 # File extensions
12426 manext='.1'
12427 objext='.o'
12431 # With Setjmp/Longjmp based exception handling.
12432 # Check whether --enable-sjlj-exceptions was given.
12433 if test "${enable_sjlj_exceptions+set}" = set; then :
12434 enableval=$enable_sjlj_exceptions; case $target in
12435 *-*-hpux10*)
12436 if test $enableval != yes; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12438 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12439 enableval=yes
12442 esac
12443 force_sjlj_exceptions=yes
12444 else
12445 case $target in
12446 *-*-hpux10*)
12447 force_sjlj_exceptions=yes
12448 enableval=yes
12450 lm32*-*-*)
12451 force_sjlj_exceptions=yes
12452 enableval=yes
12455 force_sjlj_exceptions=no
12457 esac
12460 if test $force_sjlj_exceptions = yes; then
12461 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12463 cat >>confdefs.h <<_ACEOF
12464 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12465 _ACEOF
12469 # --------------------------------------------------------
12470 # Build, host, and target specific configuration fragments
12471 # --------------------------------------------------------
12473 # Collect build-machine-specific information.
12474 . ${srcdir}/config.build || exit 1
12476 # Collect host-machine-specific information.
12477 . ${srcdir}/config.host || exit 1
12479 target_gtfiles=
12481 # Collect target-machine-specific information.
12482 . ${srcdir}/config.gcc || exit 1
12484 extra_objs="${host_extra_objs} ${extra_objs}"
12485 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12487 # Default the target-machine variables that were not explicitly set.
12488 if test x"$tm_file" = x
12489 then tm_file=$cpu_type/$cpu_type.h; fi
12491 if test x"$extra_headers" = x
12492 then extra_headers=; fi
12494 if test x$md_file = x
12495 then md_file=$cpu_type/$cpu_type.md; fi
12497 if test x$out_file = x
12498 then out_file=$cpu_type/$cpu_type.c; fi
12500 if test x"$tmake_file" = x
12501 then tmake_file=$cpu_type/t-$cpu_type
12504 # Support --enable-initfini-array.
12505 if test x$enable_initfini_array != xno; then
12506 tm_file="${tm_file} initfini-array.h"
12509 if test x"$dwarf2" = xyes
12510 then tm_file="$tm_file tm-dwarf2.h"
12513 # Say what files are being used for the output code and MD file.
12514 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12515 echo "Using \`$srcdir/config/$md_file' as machine description file."
12517 # If any of the xm_file variables contain nonexistent files, warn
12518 # about them and drop them.
12521 for x in $build_xm_file; do
12522 if test -f $srcdir/config/$x
12523 then bx="$bx $x"
12524 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12525 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12527 done
12528 build_xm_file="$bx"
12531 for x in $host_xm_file; do
12532 if test -f $srcdir/config/$x
12533 then hx="$hx $x"
12534 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12535 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12537 done
12538 host_xm_file="$hx"
12541 for x in $xm_file; do
12542 if test -f $srcdir/config/$x
12543 then tx="$tx $x"
12544 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12545 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12547 done
12548 xm_file="$tx"
12550 count=a
12551 for f in $tm_file; do
12552 count=${count}x
12553 done
12554 if test $count = ax; then
12555 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12556 else
12557 echo "Using the following target machine macro files:"
12558 for f in $tm_file; do
12559 echo " $srcdir/config/$f"
12560 done
12563 if test x$use_long_long_for_widest_fast_int = xyes; then
12565 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12569 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_GNU_LD $gnu_ld_bool
12573 _ACEOF
12576 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_GNU_AS $gnu_as_bool
12580 _ACEOF
12583 count=a
12584 for f in $host_xm_file; do
12585 count=${count}x
12586 done
12587 if test $count = a; then
12589 elif test $count = ax; then
12590 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12591 else
12592 echo "Using the following host machine macro files:"
12593 for f in $host_xm_file; do
12594 echo " $srcdir/config/$f"
12595 done
12597 echo "Using ${out_host_hook_obj} for host machine hooks."
12599 if test "$host_xm_file" != "$build_xm_file"; then
12600 count=a
12601 for f in $build_xm_file; do
12602 count=${count}x
12603 done
12604 if test $count = a; then
12606 elif test $count = ax; then
12607 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12608 else
12609 echo "Using the following build machine macro files:"
12610 for f in $build_xm_file; do
12611 echo " $srcdir/config/$f"
12612 done
12616 if test -n "$configured_native_system_header_dir"; then
12617 native_system_header_dir=$configured_native_system_header_dir
12619 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12622 case ${host} in
12623 powerpc*-*-darwin*)
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12625 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12626 if ${gcc_cv_mcontext_underscores+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 #include <sys/cdefs.h>
12633 #include <sys/signal.h>
12634 #include <ucontext.h>
12635 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12637 _ACEOF
12638 if ac_fn_cxx_try_compile "$LINENO"; then :
12639 gcc_cv_mcontext_underscores=no
12640 else
12641 gcc_cv_mcontext_underscores=yes
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12646 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12647 if test $gcc_cv_mcontext_underscores = yes; then
12649 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12653 esac
12655 # ---------
12656 # Threading
12657 # ---------
12659 # Check if a valid thread package
12660 case ${enable_threads} in
12661 "" | no)
12662 # No threads
12663 target_thread_file='single'
12665 yes)
12666 # default
12667 target_thread_file='single'
12669 aix | dce | lynx | mipssde | posix | rtems | \
12670 single | tpf | vxworks | win32)
12671 target_thread_file=${enable_threads}
12674 echo "${enable_threads} is an unknown thread package" 1>&2
12675 exit 1
12677 esac
12679 if test x${thread_file} = x; then
12680 # No thread file set by target-specific clauses in config.gcc,
12681 # so use file chosen by default logic above
12682 thread_file=${target_thread_file}
12685 # --------
12686 # UNSORTED
12687 # --------
12689 use_cxa_atexit=no
12690 if test x$enable___cxa_atexit = xyes || \
12691 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12692 if test x$host = x$target; then
12693 case $host in
12694 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12695 # keyed to flag_use_cxa_atexit
12696 *-*-mingw32*)
12697 use_cxa_atexit=yes
12699 powerpc-ibm-aix*)
12700 use_cxa_atexit=yes
12703 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12704 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12705 use_cxa_atexit=yes
12706 else
12707 echo "__cxa_atexit can't be enabled on this target"
12711 esac
12712 else
12713 # We can't check for __cxa_atexit when building a cross, so assume
12714 # it is available
12715 use_cxa_atexit=yes
12717 if test x$use_cxa_atexit = xyes; then
12719 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12724 # Look for a file containing extra machine modes.
12725 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12726 extra_modes_file='$(srcdir)'/config/${extra_modes}
12729 cat >>confdefs.h <<_ACEOF
12730 #define EXTRA_MODES_FILE "config/$extra_modes"
12731 _ACEOF
12735 # Convert extra_options into a form suitable for Makefile use.
12736 extra_opt_files=
12737 all_opt_files=
12738 for f in $extra_options; do
12739 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12740 all_opt_files="$all_opt_files $srcdir/config/$f"
12741 done
12744 # auto-host.h is the file containing items generated by autoconf and is
12745 # the first file included by config.h.
12746 # If host=build, it is correct to have bconfig include auto-host.h
12747 # as well. If host!=build, we are in error and need to do more
12748 # work to find out the build config parameters.
12749 if test x$host = x$build
12750 then
12751 build_auto=auto-host.h
12752 HAVE_AUTO_BUILD='# '
12753 else
12754 # We create a subdir, then run autoconf in the subdir.
12755 # To prevent recursion we set host and build for the new
12756 # invocation of configure to the build for this invocation
12757 # of configure.
12758 tempdir=build.$$
12759 rm -rf $tempdir
12760 mkdir $tempdir
12761 cd $tempdir
12762 case ${srcdir} in
12763 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12764 *) realsrcdir=../${srcdir};;
12765 esac
12766 # Clearing GMPINC is necessary to prevent host headers being
12767 # used by the build compiler. Defining GENERATOR_FILE stops
12768 # system.h from including gmp.h.
12769 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12770 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12771 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12772 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12773 ${realsrcdir}/configure \
12774 --enable-languages=${enable_languages-all} \
12775 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12776 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12777 --target=$target_alias --host=$build_alias \
12778 --build=$build_alias || exit # retaining $tempdir
12780 # We just finished tests for the build machine, so rename
12781 # the file auto-build.h in the gcc directory.
12782 mv auto-host.h ../auto-build.h
12783 cd ..
12784 rm -rf $tempdir
12785 build_auto=auto-build.h
12786 HAVE_AUTO_BUILD=
12791 tm_file="${tm_file} defaults.h"
12792 tm_p_file="${tm_p_file} tm-preds.h"
12793 tm_d_file="${tm_d_file} defaults.h"
12794 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12795 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12796 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12797 # put this back in temporarily.
12798 xm_file="auto-host.h ansidecl.h ${xm_file}"
12800 # --------
12801 # UNSORTED
12802 # --------
12804 # Compile in configure arguments.
12805 if test -f configargs.h ; then
12806 # Being re-configured.
12807 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12808 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12809 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12810 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12812 else
12813 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12816 # Double all backslashes and backslash all quotes to turn
12817 # gcc_config_arguments into a C string.
12818 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12819 $gcc_config_arguments
12821 gcc_config_arguments_str=`cat conftest.out`
12822 rm -f conftest.out
12824 cat > configargs.h <<EOF
12825 /* Generated automatically. */
12826 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12827 static const char thread_model[] = "$thread_file";
12829 static const struct {
12830 const char *name, *value;
12831 } configure_default_options[] = $configure_default_options;
12834 gcc_BASEVER=`cat $srcdir/BASE-VER`
12835 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12836 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12837 if test -f $srcdir/REVISION ; then
12838 gcc_REVISION=`cat $srcdir/REVISION`
12839 else
12840 gcc_REVISION=""
12842 cat > plugin-version.h <<EOF
12843 #include "configargs.h"
12845 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12846 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12847 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12848 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12850 static char basever[] = "$gcc_BASEVER";
12851 static char datestamp[] = "$gcc_DATESTAMP";
12852 static char devphase[] = "$gcc_DEVPHASE";
12853 static char revision[] = "$gcc_REVISION";
12855 /* FIXME plugins: We should make the version information more precise.
12856 One way to do is to add a checksum. */
12858 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12859 devphase, revision,
12860 configuration_arguments};
12863 # Determine what GCC version number to use in filesystem paths.
12865 get_gcc_base_ver="cat"
12867 # Check whether --with-gcc-major-version-only was given.
12868 if test "${with_gcc_major_version_only+set}" = set; then :
12869 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12870 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12878 # Internationalization
12879 # If we haven't got the data from the intl directory,
12880 # assume NLS is disabled.
12881 USE_NLS=no
12882 LIBINTL=
12883 LIBINTL_DEP=
12884 INCINTL=
12885 XGETTEXT=
12886 GMSGFMT=
12887 POSUB=
12889 if test -f ../intl/config.intl; then
12890 . ../intl/config.intl
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12893 $as_echo_n "checking whether NLS is requested... " >&6; }
12894 if test x"$USE_NLS" != xyes; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12899 $as_echo "yes" >&6; }
12901 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12905 $as_echo_n "checking for catalogs to be installed... " >&6; }
12906 # Look for .po and .gmo files in the source directory.
12907 CATALOGS=
12908 XLINGUAS=
12909 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12910 # If there aren't any .gmo files the shell will give us the
12911 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12912 # weeded out.
12913 case "$cat" in *\**)
12914 continue;;
12915 esac
12916 # The quadruple backslash is collapsed to a double backslash
12917 # by the backticks, then collapsed again by the double quotes,
12918 # leaving us with one backslash in the sed expression (right
12919 # before the dot that mustn't act as a wildcard).
12920 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12921 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12922 # The user is allowed to set LINGUAS to a list of languages to
12923 # install catalogs for. If it's empty that means "all of them."
12924 if test "x$LINGUAS" = x; then
12925 CATALOGS="$CATALOGS $cat"
12926 XLINGUAS="$XLINGUAS $lang"
12927 else
12928 case "$LINGUAS" in *$lang*)
12929 CATALOGS="$CATALOGS $cat"
12930 XLINGUAS="$XLINGUAS $lang"
12932 esac
12934 done
12935 LINGUAS="$XLINGUAS"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12937 $as_echo "$LINGUAS" >&6; }
12940 DATADIRNAME=share
12942 INSTOBJEXT=.mo
12944 GENCAT=gencat
12946 CATOBJEXT=.gmo
12950 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12951 # -liconv on the link line twice.
12952 case "$LIBINTL" in *$LIBICONV*)
12953 LIBICONV= ;;
12954 esac
12956 # Check whether --enable-secureplt was given.
12957 if test "${enable_secureplt+set}" = set; then :
12958 enableval=$enable_secureplt;
12962 # Check whether --enable-mingw-wildcard was given.
12963 if test "${enable_mingw_wildcard+set}" = set; then :
12964 enableval=$enable_mingw_wildcard;
12965 else
12966 enable_mingw_wildcard=platform
12969 if test x"$enable_mingw_wildcard" != xplatform ; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12973 _ACEOF
12977 # Check whether --enable-large-address-aware was given.
12978 if test "${enable_large_address_aware+set}" = set; then :
12979 enableval=$enable_large_address_aware;
12982 if test x"$enable_large_address_aware" = xyes; then :
12984 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12988 # Check whether --enable-leading-mingw64-underscores was given.
12989 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12990 enableval=$enable_leading_mingw64_underscores;
12993 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12995 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12999 # Check whether --enable-cld was given.
13000 if test "${enable_cld+set}" = set; then :
13001 enableval=$enable_cld;
13002 else
13003 enable_cld=no
13007 # Check whether --enable-frame-pointer was given.
13008 if test "${enable_frame_pointer+set}" = set; then :
13009 enableval=$enable_frame_pointer;
13010 else
13012 case $target_os in
13013 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13014 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13015 enable_frame_pointer=no
13018 enable_frame_pointer=yes
13020 esac
13025 case $target in
13026 i[34567]86-*-* | x86_64-*-*)
13027 if test "x$enable_cld" = xyes; then
13028 tm_defines="${tm_defines} USE_IX86_CLD=1"
13030 if test "x$enable_frame_pointer" = xyes; then
13031 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13034 esac
13036 # Windows32 Registry support for specifying GCC installation paths.
13037 # Check whether --enable-win32-registry was given.
13038 if test "${enable_win32_registry+set}" = set; then :
13039 enableval=$enable_win32_registry;
13043 case $host_os in
13044 win32 | pe | cygwin* | mingw32*)
13045 if test "x$enable_win32_registry" != xno; then
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13047 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13048 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 ac_func_search_save_LIBS=$LIBS
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char RegOpenKeyExA ();
13063 main ()
13065 return RegOpenKeyExA ();
13067 return 0;
13069 _ACEOF
13070 for ac_lib in '' advapi32; do
13071 if test -z "$ac_lib"; then
13072 ac_res="none required"
13073 else
13074 ac_res=-l$ac_lib
13075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13077 if ac_fn_cxx_try_link "$LINENO"; then :
13078 ac_cv_search_RegOpenKeyExA=$ac_res
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext
13082 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13083 break
13085 done
13086 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13088 else
13089 ac_cv_search_RegOpenKeyExA=no
13091 rm conftest.$ac_ext
13092 LIBS=$ac_func_search_save_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13095 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13096 ac_res=$ac_cv_search_RegOpenKeyExA
13097 if test "$ac_res" != no; then :
13098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13100 else
13101 enable_win32_registry=no
13106 if test "x$enable_win32_registry" != xno; then
13108 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13111 if test "x$enable_win32_registry" != xyes \
13112 && test "x$enable_win32_registry" != x; then
13114 cat >>confdefs.h <<_ACEOF
13115 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13116 _ACEOF
13121 esac
13123 # Get an absolute path to the GCC top-level source directory
13124 holddir=`${PWDCMD-pwd}`
13125 cd $srcdir
13126 topdir=`${PWDCMD-pwd}`
13127 cd $holddir
13129 # Conditionalize the makefile for this host machine.
13130 xmake_file=
13131 for f in ${host_xmake_file}
13133 if test -f ${srcdir}/config/$f
13134 then
13135 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13137 done
13139 # Conditionalize the makefile for this target machine.
13140 tmake_file_=
13141 for f in ${tmake_file}
13143 if test -f ${srcdir}/config/$f
13144 then
13145 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13147 done
13148 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13150 out_object_file=`basename $out_file .c`.o
13151 common_out_object_file=`basename $common_out_file .c`.o
13153 tm_file_list="options.h"
13154 tm_include_list="options.h insn-constants.h"
13155 for f in $tm_file; do
13156 case $f in
13157 ./* )
13158 f=`echo $f | sed 's/^..//'`
13159 tm_file_list="${tm_file_list} $f"
13160 tm_include_list="${tm_include_list} $f"
13162 defaults.h )
13163 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13164 tm_include_list="${tm_include_list} $f"
13167 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13168 tm_include_list="${tm_include_list} config/$f"
13170 esac
13171 done
13173 tm_p_file_list=
13174 tm_p_include_list=
13175 for f in $tm_p_file; do
13176 case $f in
13177 tm-preds.h )
13178 tm_p_file_list="${tm_p_file_list} $f"
13179 tm_p_include_list="${tm_p_include_list} $f"
13182 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13183 tm_p_include_list="${tm_p_include_list} config/$f"
13184 esac
13185 done
13187 tm_d_file_list=
13188 tm_d_include_list="options.h insn-constants.h"
13189 for f in $tm_d_file; do
13190 case $f in
13191 defaults.h )
13192 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13193 tm_d_include_list="${tm_d_include_list} $f"
13196 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13197 tm_d_include_list="${tm_d_include_list} config/$f"
13199 esac
13200 done
13202 xm_file_list=
13203 xm_include_list=
13204 for f in $xm_file; do
13205 case $f in
13206 ansidecl.h )
13207 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13208 xm_include_list="${xm_include_list} $f"
13210 auto-host.h )
13211 xm_file_list="${xm_file_list} $f"
13212 xm_include_list="${xm_include_list} $f"
13215 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13216 xm_include_list="${xm_include_list} config/$f"
13218 esac
13219 done
13221 host_xm_file_list=
13222 host_xm_include_list=
13223 for f in $host_xm_file; do
13224 case $f in
13225 ansidecl.h )
13226 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13227 host_xm_include_list="${host_xm_include_list} $f"
13229 auto-host.h )
13230 host_xm_file_list="${host_xm_file_list} $f"
13231 host_xm_include_list="${host_xm_include_list} $f"
13234 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13235 host_xm_include_list="${host_xm_include_list} config/$f"
13237 esac
13238 done
13240 build_xm_file_list=
13241 for f in $build_xm_file; do
13242 case $f in
13243 ansidecl.h )
13244 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13245 build_xm_include_list="${build_xm_include_list} $f"
13247 auto-build.h | auto-host.h )
13248 build_xm_file_list="${build_xm_file_list} $f"
13249 build_xm_include_list="${build_xm_include_list} $f"
13252 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13253 build_xm_include_list="${build_xm_include_list} config/$f"
13255 esac
13256 done
13258 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13259 # cross-compiler which does not use the native headers and libraries.
13260 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13261 CROSS=
13262 ALL=all.internal
13263 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13264 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13266 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13267 test x$build != x$host || test "x$with_build_sysroot" != x; then
13268 if test "x$with_build_sysroot" != x; then
13269 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13270 else
13271 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13274 if test x$host != x$target
13275 then
13276 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13277 ALL=all.cross
13278 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13279 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13280 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13283 if test "x$with_build_sysroot" != "x"; then
13284 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13285 elif test "x$with_sysroot" = x; then
13286 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13287 elif test "x$with_sysroot" = xyes; then
13288 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13289 else
13290 target_header_dir="${with_sysroot}${native_system_header_dir}"
13292 else
13293 target_header_dir=${native_system_header_dir}
13296 # If this is a cross-compiler that does not
13297 # have its own set of headers then define
13298 # inhibit_libc
13300 # If this is using newlib, without having the headers available now,
13301 # then define inhibit_libc in LIBGCC2_CFLAGS.
13302 # This prevents libgcc2 from containing any code which requires libc
13303 # support.
13304 : ${inhibit_libc=false}
13305 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13306 test x$with_newlib = xyes ; } &&
13307 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13308 inhibit_libc=true
13312 # When building gcc with a cross-compiler, we need to adjust things so
13313 # that the generator programs are still built with the native compiler.
13314 # Also, we cannot run fixincludes.
13316 # These are the normal (build=host) settings:
13317 CC_FOR_BUILD='$(CC)'
13318 CXX_FOR_BUILD='$(CXX)'
13319 BUILD_CFLAGS='$(ALL_CFLAGS)'
13320 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13321 BUILD_LDFLAGS='$(LDFLAGS)'
13322 STMP_FIXINC=stmp-fixinc
13324 # And these apply if build != host, or we are generating coverage data
13325 if test x$build != x$host || test "x$coverage_flags" != x
13326 then
13327 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13328 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13329 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13332 # Expand extra_headers to include complete path.
13333 # This substitutes for lots of t-* files.
13334 extra_headers_list=
13335 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13336 for file in ${extra_headers} ; do
13337 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13338 done
13340 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13341 if test x"$use_gcc_tgmath" = xyes
13342 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13345 # Define collect2 in Makefile.
13346 case $host_can_use_collect2 in
13347 no) collect2= ;;
13348 *) collect2='collect2$(exeext)' ;;
13349 esac
13352 # Add a definition of USE_COLLECT2 if system wants one.
13353 case $use_collect2 in
13354 no) use_collect2= ;;
13355 "") ;;
13357 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13358 xm_defines="${xm_defines} USE_COLLECT2"
13359 case $host_can_use_collect2 in
13361 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13363 esac
13365 esac
13368 cat >>confdefs.h <<_ACEOF
13369 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13370 _ACEOF
13373 # ---------------------------
13374 # Assembler & linker features
13375 # ---------------------------
13377 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13378 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13379 # However when ld-new is first executed from the build tree, libtool will
13380 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13381 # to the build tree. While doing this we need to use the previous-stage
13382 # linker, or we have an infinite loop. The presence of a shell script as
13383 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13384 # the gcc/collect-ld script. So we need to know how libtool works, or
13385 # exec-tool will fail.
13388 case `pwd` in
13389 *\ * | *\ *)
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13391 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13392 esac
13396 macro_version='2.2.7a'
13397 macro_revision='1.3134'
13411 ltmain="$ac_aux_dir/ltmain.sh"
13413 # Backslashify metacharacters that are still active within
13414 # double-quoted strings.
13415 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13417 # Same as above, but do not quote variable references.
13418 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13420 # Sed substitution to delay expansion of an escaped shell variable in a
13421 # double_quote_subst'ed string.
13422 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13424 # Sed substitution to delay expansion of an escaped single quote.
13425 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13427 # Sed substitution to avoid accidental globbing in evaled expressions
13428 no_glob_subst='s/\*/\\\*/g'
13430 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13435 $as_echo_n "checking how to print strings... " >&6; }
13436 # Test print first, because it will be a builtin if present.
13437 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13438 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13439 ECHO='print -r --'
13440 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13441 ECHO='printf %s\n'
13442 else
13443 # Use this function as a fallback that always works.
13444 func_fallback_echo ()
13446 eval 'cat <<_LTECHO_EOF
13448 _LTECHO_EOF'
13450 ECHO='func_fallback_echo'
13453 # func_echo_all arg...
13454 # Invoke $ECHO with all args, space-separated.
13455 func_echo_all ()
13457 $ECHO ""
13460 case "$ECHO" in
13461 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13462 $as_echo "printf" >&6; } ;;
13463 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13464 $as_echo "print -r" >&6; } ;;
13465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13466 $as_echo "cat" >&6; } ;;
13467 esac
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13483 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13484 if ${ac_cv_path_SED+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13488 for ac_i in 1 2 3 4 5 6 7; do
13489 ac_script="$ac_script$as_nl$ac_script"
13490 done
13491 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13492 { ac_script=; unset ac_script;}
13493 if test -z "$SED"; then
13494 ac_path_SED_found=false
13495 # Loop through the user's path and test for each of PROGNAME-LIST
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_prog in sed gsed; do
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13504 as_fn_executable_p "$ac_path_SED" || continue
13505 # Check for GNU ac_path_SED and select it if it is found.
13506 # Check for GNU $ac_path_SED
13507 case `"$ac_path_SED" --version 2>&1` in
13508 *GNU*)
13509 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13511 ac_count=0
13512 $as_echo_n 0123456789 >"conftest.in"
13513 while :
13515 cat "conftest.in" "conftest.in" >"conftest.tmp"
13516 mv "conftest.tmp" "conftest.in"
13517 cp "conftest.in" "conftest.nl"
13518 $as_echo '' >> "conftest.nl"
13519 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13521 as_fn_arith $ac_count + 1 && ac_count=$as_val
13522 if test $ac_count -gt ${ac_path_SED_max-0}; then
13523 # Best one so far, save it but keep looking for a better one
13524 ac_cv_path_SED="$ac_path_SED"
13525 ac_path_SED_max=$ac_count
13527 # 10*(2^10) chars as input seems more than enough
13528 test $ac_count -gt 10 && break
13529 done
13530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13531 esac
13533 $ac_path_SED_found && break 3
13534 done
13535 done
13536 done
13537 IFS=$as_save_IFS
13538 if test -z "$ac_cv_path_SED"; then
13539 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13541 else
13542 ac_cv_path_SED=$SED
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13547 $as_echo "$ac_cv_path_SED" >&6; }
13548 SED="$ac_cv_path_SED"
13549 rm -f conftest.sed
13551 test -z "$SED" && SED=sed
13552 Xsed="$SED -e 1s/^X//"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13565 $as_echo_n "checking for fgrep... " >&6; }
13566 if ${ac_cv_path_FGREP+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13570 then ac_cv_path_FGREP="$GREP -F"
13571 else
13572 if test -z "$FGREP"; then
13573 ac_path_FGREP_found=false
13574 # Loop through the user's path and test for each of PROGNAME-LIST
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13578 IFS=$as_save_IFS
13579 test -z "$as_dir" && as_dir=.
13580 for ac_prog in fgrep; do
13581 for ac_exec_ext in '' $ac_executable_extensions; do
13582 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13583 as_fn_executable_p "$ac_path_FGREP" || continue
13584 # Check for GNU ac_path_FGREP and select it if it is found.
13585 # Check for GNU $ac_path_FGREP
13586 case `"$ac_path_FGREP" --version 2>&1` in
13587 *GNU*)
13588 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13590 ac_count=0
13591 $as_echo_n 0123456789 >"conftest.in"
13592 while :
13594 cat "conftest.in" "conftest.in" >"conftest.tmp"
13595 mv "conftest.tmp" "conftest.in"
13596 cp "conftest.in" "conftest.nl"
13597 $as_echo 'FGREP' >> "conftest.nl"
13598 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13600 as_fn_arith $ac_count + 1 && ac_count=$as_val
13601 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13602 # Best one so far, save it but keep looking for a better one
13603 ac_cv_path_FGREP="$ac_path_FGREP"
13604 ac_path_FGREP_max=$ac_count
13606 # 10*(2^10) chars as input seems more than enough
13607 test $ac_count -gt 10 && break
13608 done
13609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13610 esac
13612 $ac_path_FGREP_found && break 3
13613 done
13614 done
13615 done
13616 IFS=$as_save_IFS
13617 if test -z "$ac_cv_path_FGREP"; then
13618 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13620 else
13621 ac_cv_path_FGREP=$FGREP
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13627 $as_echo "$ac_cv_path_FGREP" >&6; }
13628 FGREP="$ac_cv_path_FGREP"
13631 test -z "$GREP" && GREP=grep
13651 # Check whether --with-gnu-ld was given.
13652 if test "${with_gnu_ld+set}" = set; then :
13653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13654 else
13655 with_gnu_ld=no
13658 ac_prog=ld
13659 if test "$GCC" = yes; then
13660 # Check if gcc -print-prog-name=ld gives a path.
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13662 $as_echo_n "checking for ld used by $CC... " >&6; }
13663 case $host in
13664 *-*-mingw*)
13665 # gcc leaves a trailing carriage return which upsets mingw
13666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13669 esac
13670 case $ac_prog in
13671 # Accept absolute paths.
13672 [\\/]* | ?:[\\/]*)
13673 re_direlt='/[^/][^/]*/\.\./'
13674 # Canonicalize the pathname of ld
13675 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13676 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13677 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13678 done
13679 test -z "$LD" && LD="$ac_prog"
13682 # If it fails, then pretend we aren't using GCC.
13683 ac_prog=ld
13686 # If it is relative, then search for the first ld in PATH.
13687 with_gnu_ld=unknown
13689 esac
13690 elif test "$with_gnu_ld" = yes; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13692 $as_echo_n "checking for GNU ld... " >&6; }
13693 else
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13695 $as_echo_n "checking for non-GNU ld... " >&6; }
13697 if ${lt_cv_path_LD+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 if test -z "$LD"; then
13701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13702 for ac_dir in $PATH; do
13703 IFS="$lt_save_ifs"
13704 test -z "$ac_dir" && ac_dir=.
13705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13706 lt_cv_path_LD="$ac_dir/$ac_prog"
13707 # Check to see if the program is GNU ld. I'd rather use --version,
13708 # but apparently some variants of GNU ld only accept -v.
13709 # Break only if it was the GNU/non-GNU ld that we prefer.
13710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13711 *GNU* | *'with BFD'*)
13712 test "$with_gnu_ld" != no && break
13715 test "$with_gnu_ld" != yes && break
13717 esac
13719 done
13720 IFS="$lt_save_ifs"
13721 else
13722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13726 LD="$lt_cv_path_LD"
13727 if test -n "$LD"; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13729 $as_echo "$LD" >&6; }
13730 else
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13734 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13736 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13737 if ${lt_cv_prog_gnu_ld+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13741 case `$LD -v 2>&1 </dev/null` in
13742 *GNU* | *'with BFD'*)
13743 lt_cv_prog_gnu_ld=yes
13746 lt_cv_prog_gnu_ld=no
13748 esac
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13751 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13752 with_gnu_ld=$lt_cv_prog_gnu_ld
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13763 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13764 if ${lt_cv_path_NM+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 if test -n "$NM"; then
13768 # Let the user override the test.
13769 lt_cv_path_NM="$NM"
13770 else
13771 lt_nm_to_check="${ac_tool_prefix}nm"
13772 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13773 lt_nm_to_check="$lt_nm_to_check nm"
13775 for lt_tmp_nm in $lt_nm_to_check; do
13776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13777 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13778 IFS="$lt_save_ifs"
13779 test -z "$ac_dir" && ac_dir=.
13780 tmp_nm="$ac_dir/$lt_tmp_nm"
13781 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13782 # Check to see if the nm accepts a BSD-compat flag.
13783 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13784 # nm: unknown option "B" ignored
13785 # Tru64's nm complains that /dev/null is an invalid object file
13786 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13787 */dev/null* | *'Invalid file or object type'*)
13788 lt_cv_path_NM="$tmp_nm -B"
13789 break
13792 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13793 */dev/null*)
13794 lt_cv_path_NM="$tmp_nm -p"
13795 break
13798 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13799 continue # so that we can try to find one that supports BSD flags
13801 esac
13803 esac
13805 done
13806 IFS="$lt_save_ifs"
13807 done
13808 : ${lt_cv_path_NM=no}
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13812 $as_echo "$lt_cv_path_NM" >&6; }
13813 if test "$lt_cv_path_NM" != "no"; then
13814 NM="$lt_cv_path_NM"
13815 else
13816 # Didn't find any BSD compatible name lister, look for dumpbin.
13817 if test -n "$DUMPBIN"; then :
13818 # Let the user override the test.
13819 else
13820 if test -n "$ac_tool_prefix"; then
13821 for ac_prog in dumpbin "link -dump"
13823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if ${ac_cv_prog_DUMPBIN+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 if test -n "$DUMPBIN"; then
13831 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13836 IFS=$as_save_IFS
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13840 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842 break 2
13844 done
13845 done
13846 IFS=$as_save_IFS
13850 DUMPBIN=$ac_cv_prog_DUMPBIN
13851 if test -n "$DUMPBIN"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13853 $as_echo "$DUMPBIN" >&6; }
13854 else
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13860 test -n "$DUMPBIN" && break
13861 done
13863 if test -z "$DUMPBIN"; then
13864 ac_ct_DUMPBIN=$DUMPBIN
13865 for ac_prog in dumpbin "link -dump"
13867 # Extract the first word of "$ac_prog", so it can be a program name with args.
13868 set dummy $ac_prog; ac_word=$2
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870 $as_echo_n "checking for $ac_word... " >&6; }
13871 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 if test -n "$ac_ct_DUMPBIN"; then
13875 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13876 else
13877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13878 for as_dir in $PATH
13880 IFS=$as_save_IFS
13881 test -z "$as_dir" && as_dir=.
13882 for ac_exec_ext in '' $ac_executable_extensions; do
13883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13884 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13886 break 2
13888 done
13889 done
13890 IFS=$as_save_IFS
13894 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13895 if test -n "$ac_ct_DUMPBIN"; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13897 $as_echo "$ac_ct_DUMPBIN" >&6; }
13898 else
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13904 test -n "$ac_ct_DUMPBIN" && break
13905 done
13907 if test "x$ac_ct_DUMPBIN" = x; then
13908 DUMPBIN=":"
13909 else
13910 case $cross_compiling:$ac_tool_warned in
13911 yes:)
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13914 ac_tool_warned=yes ;;
13915 esac
13916 DUMPBIN=$ac_ct_DUMPBIN
13920 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13921 *COFF*)
13922 DUMPBIN="$DUMPBIN -symbols"
13925 DUMPBIN=:
13927 esac
13930 if test "$DUMPBIN" != ":"; then
13931 NM="$DUMPBIN"
13934 test -z "$NM" && NM=nm
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13942 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13943 if ${lt_cv_nm_interface+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 lt_cv_nm_interface="BSD nm"
13947 echo "int some_variable = 0;" > conftest.$ac_ext
13948 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13949 (eval "$ac_compile" 2>conftest.err)
13950 cat conftest.err >&5
13951 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13952 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13953 cat conftest.err >&5
13954 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13955 cat conftest.out >&5
13956 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13957 lt_cv_nm_interface="MS dumpbin"
13959 rm -f conftest*
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13962 $as_echo "$lt_cv_nm_interface" >&6; }
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13965 $as_echo_n "checking whether ln -s works... " >&6; }
13966 LN_S=$as_ln_s
13967 if test "$LN_S" = "ln -s"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13970 else
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13972 $as_echo "no, using $LN_S" >&6; }
13975 # find the maximum length of command line arguments
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13977 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13978 if ${lt_cv_sys_max_cmd_len+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13982 teststring="ABCD"
13984 case $build_os in
13985 msdosdjgpp*)
13986 # On DJGPP, this test can blow up pretty badly due to problems in libc
13987 # (any single argument exceeding 2000 bytes causes a buffer overrun
13988 # during glob expansion). Even if it were fixed, the result of this
13989 # check would be larger than it should be.
13990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13993 gnu*)
13994 # Under GNU Hurd, this test is not required because there is
13995 # no limit to the length of command line arguments.
13996 # Libtool will interpret -1 as no limit whatsoever
13997 lt_cv_sys_max_cmd_len=-1;
14000 cygwin* | mingw* | cegcc*)
14001 # On Win9x/ME, this test blows up -- it succeeds, but takes
14002 # about 5 minutes as the teststring grows exponentially.
14003 # Worse, since 9x/ME are not pre-emptively multitasking,
14004 # you end up with a "frozen" computer, even though with patience
14005 # the test eventually succeeds (with a max line length of 256k).
14006 # Instead, let's just punt: use the minimum linelength reported by
14007 # all of the supported platforms: 8192 (on NT/2K/XP).
14008 lt_cv_sys_max_cmd_len=8192;
14011 mint*)
14012 # On MiNT this can take a long time and run out of memory.
14013 lt_cv_sys_max_cmd_len=8192;
14016 amigaos*)
14017 # On AmigaOS with pdksh, this test takes hours, literally.
14018 # So we just punt and use a minimum line length of 8192.
14019 lt_cv_sys_max_cmd_len=8192;
14022 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14023 # This has been around since 386BSD, at least. Likely further.
14024 if test -x /sbin/sysctl; then
14025 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14026 elif test -x /usr/sbin/sysctl; then
14027 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14028 else
14029 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14031 # And add a safety zone
14032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14036 interix*)
14037 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14038 lt_cv_sys_max_cmd_len=196608
14041 osf*)
14042 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14043 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14044 # nice to cause kernel panics so lets avoid the loop below.
14045 # First set a reasonable default.
14046 lt_cv_sys_max_cmd_len=16384
14048 if test -x /sbin/sysconfig; then
14049 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14050 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14051 esac
14054 sco3.2v5*)
14055 lt_cv_sys_max_cmd_len=102400
14057 sysv5* | sco5v6* | sysv4.2uw2*)
14058 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14059 if test -n "$kargmax"; then
14060 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14061 else
14062 lt_cv_sys_max_cmd_len=32768
14066 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14067 if test -n "$lt_cv_sys_max_cmd_len"; then
14068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14070 else
14071 # Make teststring a little bigger before we do anything with it.
14072 # a 1K string should be a reasonable start.
14073 for i in 1 2 3 4 5 6 7 8 ; do
14074 teststring=$teststring$teststring
14075 done
14076 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14077 # If test is not a shell built-in, we'll probably end up computing a
14078 # maximum length that is only half of the actual maximum length, but
14079 # we can't tell.
14080 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14081 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14082 test $i != 17 # 1/2 MB should be enough
14084 i=`expr $i + 1`
14085 teststring=$teststring$teststring
14086 done
14087 # Only check the string length outside the loop.
14088 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14089 teststring=
14090 # Add a significant safety factor because C++ compilers can tack on
14091 # massive amounts of additional arguments before passing them to the
14092 # linker. It appears as though 1/2 is a usable value.
14093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14096 esac
14100 if test -n $lt_cv_sys_max_cmd_len ; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14102 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14103 else
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14105 $as_echo "none" >&6; }
14107 max_cmd_len=$lt_cv_sys_max_cmd_len
14114 : ${CP="cp -f"}
14115 : ${MV="mv -f"}
14116 : ${RM="rm -f"}
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14119 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14120 # Try some XSI features
14121 xsi_shell=no
14122 ( _lt_dummy="a/b/c"
14123 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14124 = c,a/b,, \
14125 && eval 'test $(( 1 + 1 )) -eq 2 \
14126 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14127 && xsi_shell=yes
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14129 $as_echo "$xsi_shell" >&6; }
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14133 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14134 lt_shell_append=no
14135 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14136 >/dev/null 2>&1 \
14137 && lt_shell_append=yes
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14139 $as_echo "$lt_shell_append" >&6; }
14142 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14143 lt_unset=unset
14144 else
14145 lt_unset=false
14152 # test EBCDIC or ASCII
14153 case `echo X|tr X '\101'` in
14154 A) # ASCII based system
14155 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14156 lt_SP2NL='tr \040 \012'
14157 lt_NL2SP='tr \015\012 \040\040'
14159 *) # EBCDIC based system
14160 lt_SP2NL='tr \100 \n'
14161 lt_NL2SP='tr \r\n \100\100'
14163 esac
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14174 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14175 if ${lt_cv_ld_reload_flag+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 lt_cv_ld_reload_flag='-r'
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14181 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14182 reload_flag=$lt_cv_ld_reload_flag
14183 case $reload_flag in
14184 "" | " "*) ;;
14185 *) reload_flag=" $reload_flag" ;;
14186 esac
14187 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14188 case $host_os in
14189 darwin*)
14190 if test "$GCC" = yes; then
14191 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14192 else
14193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14196 esac
14206 if test -n "$ac_tool_prefix"; then
14207 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14208 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210 $as_echo_n "checking for $ac_word... " >&6; }
14211 if ${ac_cv_prog_OBJDUMP+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 if test -n "$OBJDUMP"; then
14215 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14216 else
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14224 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 break 2
14228 done
14229 done
14230 IFS=$as_save_IFS
14234 OBJDUMP=$ac_cv_prog_OBJDUMP
14235 if test -n "$OBJDUMP"; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14237 $as_echo "$OBJDUMP" >&6; }
14238 else
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240 $as_echo "no" >&6; }
14245 if test -z "$ac_cv_prog_OBJDUMP"; then
14246 ac_ct_OBJDUMP=$OBJDUMP
14247 # Extract the first word of "objdump", so it can be a program name with args.
14248 set dummy objdump; ac_word=$2
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14250 $as_echo_n "checking for $ac_word... " >&6; }
14251 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 if test -n "$ac_ct_OBJDUMP"; then
14255 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14256 else
14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 for as_dir in $PATH
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14268 done
14269 done
14270 IFS=$as_save_IFS
14274 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14275 if test -n "$ac_ct_OBJDUMP"; then
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14277 $as_echo "$ac_ct_OBJDUMP" >&6; }
14278 else
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 $as_echo "no" >&6; }
14283 if test "x$ac_ct_OBJDUMP" = x; then
14284 OBJDUMP="false"
14285 else
14286 case $cross_compiling:$ac_tool_warned in
14287 yes:)
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290 ac_tool_warned=yes ;;
14291 esac
14292 OBJDUMP=$ac_ct_OBJDUMP
14294 else
14295 OBJDUMP="$ac_cv_prog_OBJDUMP"
14298 test -z "$OBJDUMP" && OBJDUMP=objdump
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14309 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14310 if ${lt_cv_deplibs_check_method+:} false; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 lt_cv_file_magic_cmd='$MAGIC_CMD'
14314 lt_cv_file_magic_test_file=
14315 lt_cv_deplibs_check_method='unknown'
14316 # Need to set the preceding variable on all platforms that support
14317 # interlibrary dependencies.
14318 # 'none' -- dependencies not supported.
14319 # `unknown' -- same as none, but documents that we really don't know.
14320 # 'pass_all' -- all dependencies passed with no checks.
14321 # 'test_compile' -- check by making test program.
14322 # 'file_magic [[regex]]' -- check by looking for files in library path
14323 # which responds to the $file_magic_cmd with a given extended regex.
14324 # If you have `file' or equivalent on your system and you're not sure
14325 # whether `pass_all' will *always* work, you probably want this one.
14327 case $host_os in
14328 aix[4-9]*)
14329 lt_cv_deplibs_check_method=pass_all
14332 beos*)
14333 lt_cv_deplibs_check_method=pass_all
14336 bsdi[45]*)
14337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14338 lt_cv_file_magic_cmd='/usr/bin/file -L'
14339 lt_cv_file_magic_test_file=/shlib/libc.so
14342 cygwin*)
14343 # func_win32_libid is a shell function defined in ltmain.sh
14344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14345 lt_cv_file_magic_cmd='func_win32_libid'
14348 mingw* | pw32*)
14349 # Base MSYS/MinGW do not provide the 'file' command needed by
14350 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14351 # unless we find 'file', for example because we are cross-compiling.
14352 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14353 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14355 lt_cv_file_magic_cmd='func_win32_libid'
14356 else
14357 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14358 lt_cv_file_magic_cmd='$OBJDUMP -f'
14362 cegcc*)
14363 # use the weaker test based on 'objdump'. See mingw*.
14364 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14365 lt_cv_file_magic_cmd='$OBJDUMP -f'
14368 darwin* | rhapsody*)
14369 lt_cv_deplibs_check_method=pass_all
14372 freebsd* | dragonfly*)
14373 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14374 case $host_cpu in
14375 i*86 )
14376 # Not sure whether the presence of OpenBSD here was a mistake.
14377 # Let's accept both of them until this is cleared up.
14378 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14379 lt_cv_file_magic_cmd=/usr/bin/file
14380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14382 esac
14383 else
14384 lt_cv_deplibs_check_method=pass_all
14388 gnu*)
14389 lt_cv_deplibs_check_method=pass_all
14392 haiku*)
14393 lt_cv_deplibs_check_method=pass_all
14396 hpux10.20* | hpux11*)
14397 lt_cv_file_magic_cmd=/usr/bin/file
14398 case $host_cpu in
14399 ia64*)
14400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14401 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14403 hppa*64*)
14404 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]'
14405 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14408 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14409 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14411 esac
14414 interix[3-9]*)
14415 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14419 irix5* | irix6* | nonstopux*)
14420 case $LD in
14421 *-32|*"-32 ") libmagic=32-bit;;
14422 *-n32|*"-n32 ") libmagic=N32;;
14423 *-64|*"-64 ") libmagic=64-bit;;
14424 *) libmagic=never-match;;
14425 esac
14426 lt_cv_deplibs_check_method=pass_all
14429 # This must be Linux ELF.
14430 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14431 lt_cv_deplibs_check_method=pass_all
14434 netbsd*)
14435 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14437 else
14438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14442 newos6*)
14443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14444 lt_cv_file_magic_cmd=/usr/bin/file
14445 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14448 *nto* | *qnx*)
14449 lt_cv_deplibs_check_method=pass_all
14452 openbsd*)
14453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14455 else
14456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14460 osf3* | osf4* | osf5*)
14461 lt_cv_deplibs_check_method=pass_all
14464 rdos*)
14465 lt_cv_deplibs_check_method=pass_all
14468 solaris*)
14469 lt_cv_deplibs_check_method=pass_all
14472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14473 lt_cv_deplibs_check_method=pass_all
14476 sysv4 | sysv4.3*)
14477 case $host_vendor in
14478 motorola)
14479 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]'
14480 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14482 ncr)
14483 lt_cv_deplibs_check_method=pass_all
14485 sequent)
14486 lt_cv_file_magic_cmd='/bin/file'
14487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14489 sni)
14490 lt_cv_file_magic_cmd='/bin/file'
14491 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14492 lt_cv_file_magic_test_file=/lib/libc.so
14494 siemens)
14495 lt_cv_deplibs_check_method=pass_all
14498 lt_cv_deplibs_check_method=pass_all
14500 esac
14503 tpf*)
14504 lt_cv_deplibs_check_method=pass_all
14506 esac
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14510 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14511 file_magic_cmd=$lt_cv_file_magic_cmd
14512 deplibs_check_method=$lt_cv_deplibs_check_method
14513 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14526 if test -n "$ac_tool_prefix"; then
14527 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14528 set dummy ${ac_tool_prefix}ar; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530 $as_echo_n "checking for $ac_word... " >&6; }
14531 if ${ac_cv_prog_AR+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 if test -n "$AR"; then
14535 ac_cv_prog_AR="$AR" # Let the user override the test.
14536 else
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $PATH
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14544 ac_cv_prog_AR="${ac_tool_prefix}ar"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 break 2
14548 done
14549 done
14550 IFS=$as_save_IFS
14554 AR=$ac_cv_prog_AR
14555 if test -n "$AR"; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14557 $as_echo "$AR" >&6; }
14558 else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560 $as_echo "no" >&6; }
14565 if test -z "$ac_cv_prog_AR"; then
14566 ac_ct_AR=$AR
14567 # Extract the first word of "ar", so it can be a program name with args.
14568 set dummy ar; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573 else
14574 if test -n "$ac_ct_AR"; then
14575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14576 else
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14580 IFS=$as_save_IFS
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_ac_ct_AR="ar"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14586 break 2
14588 done
14589 done
14590 IFS=$as_save_IFS
14594 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14595 if test -n "$ac_ct_AR"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14597 $as_echo "$ac_ct_AR" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14603 if test "x$ac_ct_AR" = x; then
14604 AR="false"
14605 else
14606 case $cross_compiling:$ac_tool_warned in
14607 yes:)
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14610 ac_tool_warned=yes ;;
14611 esac
14612 AR=$ac_ct_AR
14614 else
14615 AR="$ac_cv_prog_AR"
14618 test -z "$AR" && AR=ar
14619 test -z "$AR_FLAGS" && AR_FLAGS=cru
14631 if test -n "$ac_tool_prefix"; then
14632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14633 set dummy ${ac_tool_prefix}strip; ac_word=$2
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14635 $as_echo_n "checking for $ac_word... " >&6; }
14636 if ${ac_cv_prog_STRIP+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 if test -n "$STRIP"; then
14640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14641 else
14642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH
14645 IFS=$as_save_IFS
14646 test -z "$as_dir" && as_dir=.
14647 for ac_exec_ext in '' $ac_executable_extensions; do
14648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14651 break 2
14653 done
14654 done
14655 IFS=$as_save_IFS
14659 STRIP=$ac_cv_prog_STRIP
14660 if test -n "$STRIP"; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14662 $as_echo "$STRIP" >&6; }
14663 else
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14670 if test -z "$ac_cv_prog_STRIP"; then
14671 ac_ct_STRIP=$STRIP
14672 # Extract the first word of "strip", so it can be a program name with args.
14673 set dummy strip; ac_word=$2
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14675 $as_echo_n "checking for $ac_word... " >&6; }
14676 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 if test -n "$ac_ct_STRIP"; then
14680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14681 else
14682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in $PATH
14685 IFS=$as_save_IFS
14686 test -z "$as_dir" && as_dir=.
14687 for ac_exec_ext in '' $ac_executable_extensions; do
14688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14689 ac_cv_prog_ac_ct_STRIP="strip"
14690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14691 break 2
14693 done
14694 done
14695 IFS=$as_save_IFS
14699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14700 if test -n "$ac_ct_STRIP"; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14702 $as_echo "$ac_ct_STRIP" >&6; }
14703 else
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14705 $as_echo "no" >&6; }
14708 if test "x$ac_ct_STRIP" = x; then
14709 STRIP=":"
14710 else
14711 case $cross_compiling:$ac_tool_warned in
14712 yes:)
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14715 ac_tool_warned=yes ;;
14716 esac
14717 STRIP=$ac_ct_STRIP
14719 else
14720 STRIP="$ac_cv_prog_STRIP"
14723 test -z "$STRIP" && STRIP=:
14730 if test -n "$ac_tool_prefix"; then
14731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14734 $as_echo_n "checking for $ac_word... " >&6; }
14735 if ${ac_cv_prog_RANLIB+:} false; then :
14736 $as_echo_n "(cached) " >&6
14737 else
14738 if test -n "$RANLIB"; then
14739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14740 else
14741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 for as_dir in $PATH
14744 IFS=$as_save_IFS
14745 test -z "$as_dir" && as_dir=.
14746 for ac_exec_ext in '' $ac_executable_extensions; do
14747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14750 break 2
14752 done
14753 done
14754 IFS=$as_save_IFS
14758 RANLIB=$ac_cv_prog_RANLIB
14759 if test -n "$RANLIB"; then
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14761 $as_echo "$RANLIB" >&6; }
14762 else
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14769 if test -z "$ac_cv_prog_RANLIB"; then
14770 ac_ct_RANLIB=$RANLIB
14771 # Extract the first word of "ranlib", so it can be a program name with args.
14772 set dummy ranlib; ac_word=$2
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14774 $as_echo_n "checking for $ac_word... " >&6; }
14775 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 if test -n "$ac_ct_RANLIB"; then
14779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14780 else
14781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782 for as_dir in $PATH
14784 IFS=$as_save_IFS
14785 test -z "$as_dir" && as_dir=.
14786 for ac_exec_ext in '' $ac_executable_extensions; do
14787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14788 ac_cv_prog_ac_ct_RANLIB="ranlib"
14789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14790 break 2
14792 done
14793 done
14794 IFS=$as_save_IFS
14798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14799 if test -n "$ac_ct_RANLIB"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14801 $as_echo "$ac_ct_RANLIB" >&6; }
14802 else
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804 $as_echo "no" >&6; }
14807 if test "x$ac_ct_RANLIB" = x; then
14808 RANLIB=":"
14809 else
14810 case $cross_compiling:$ac_tool_warned in
14811 yes:)
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14814 ac_tool_warned=yes ;;
14815 esac
14816 RANLIB=$ac_ct_RANLIB
14818 else
14819 RANLIB="$ac_cv_prog_RANLIB"
14822 test -z "$RANLIB" && RANLIB=:
14829 # Determine commands to create old-style static archives.
14830 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14831 old_postinstall_cmds='chmod 644 $oldlib'
14832 old_postuninstall_cmds=
14834 if test -n "$RANLIB"; then
14835 case $host_os in
14836 openbsd*)
14837 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14840 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14842 esac
14843 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14846 case $host_os in
14847 darwin*)
14848 lock_old_archive_extraction=yes ;;
14850 lock_old_archive_extraction=no ;;
14851 esac
14891 # If no C compiler was specified, use CC.
14892 LTCC=${LTCC-"$CC"}
14894 # If no C compiler flags were specified, use CFLAGS.
14895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14897 # Allow CC to be a program name with arguments.
14898 compiler=$CC
14901 # Check for command to grab the raw symbol name followed by C symbol from nm.
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14903 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14904 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14905 $as_echo_n "(cached) " >&6
14906 else
14908 # These are sane defaults that work on at least a few old systems.
14909 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14911 # Character class describing NM global symbol codes.
14912 symcode='[BCDEGRST]'
14914 # Regexp to match symbols that can be accessed directly from C.
14915 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14917 # Define system-specific variables.
14918 case $host_os in
14919 aix*)
14920 symcode='[BCDT]'
14922 cygwin* | mingw* | pw32* | cegcc*)
14923 symcode='[ABCDGISTW]'
14925 hpux*)
14926 if test "$host_cpu" = ia64; then
14927 symcode='[ABCDEGRST]'
14930 irix* | nonstopux*)
14931 symcode='[BCDEGRST]'
14933 osf*)
14934 symcode='[BCDEGQRST]'
14936 solaris*)
14937 symcode='[BDRT]'
14939 sco3.2v5*)
14940 symcode='[DT]'
14942 sysv4.2uw2*)
14943 symcode='[DT]'
14945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14946 symcode='[ABDT]'
14948 sysv4)
14949 symcode='[DFNSTU]'
14951 esac
14953 # If we're using GNU nm, then use its standard symbol codes.
14954 case `$NM -V 2>&1` in
14955 *GNU* | *'with BFD'*)
14956 symcode='[ABCDGIRSTW]' ;;
14957 esac
14959 # Transform an extracted symbol line into a proper C declaration.
14960 # Some systems (esp. on ia64) link data and code symbols differently,
14961 # so use this general approach.
14962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14964 # Transform an extracted symbol line into symbol name and symbol address
14965 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14966 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'"
14968 # Handle CRLF in mingw tool chain
14969 opt_cr=
14970 case $build_os in
14971 mingw*)
14972 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14974 esac
14976 # Try without a prefix underscore, then with it.
14977 for ac_symprfx in "" "_"; do
14979 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14980 symxfrm="\\1 $ac_symprfx\\2 \\2"
14982 # Write the raw and C identifiers.
14983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14984 # Fake it for dumpbin and say T for any non-static function
14985 # and D for any global variable.
14986 # Also find C++ and __fastcall symbols from MSVC++,
14987 # which start with @ or ?.
14988 lt_cv_sys_global_symbol_pipe="$AWK '"\
14989 " {last_section=section; section=\$ 3};"\
14990 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14991 " \$ 0!~/External *\|/{next};"\
14992 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14993 " {if(hide[section]) next};"\
14994 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14995 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14996 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14997 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14998 " ' prfx=^$ac_symprfx"
14999 else
15000 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15003 # Check to see that the pipe works correctly.
15004 pipe_works=no
15006 rm -f conftest*
15007 cat > conftest.$ac_ext <<_LT_EOF
15008 #ifdef __cplusplus
15009 extern "C" {
15010 #endif
15011 char nm_test_var;
15012 void nm_test_func(void);
15013 void nm_test_func(void){}
15014 #ifdef __cplusplus
15016 #endif
15017 int main(){nm_test_var='a';nm_test_func();return(0);}
15018 _LT_EOF
15020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15021 (eval $ac_compile) 2>&5
15022 ac_status=$?
15023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15024 test $ac_status = 0; }; then
15025 # Now try to grab the symbols.
15026 nlist=conftest.nm
15027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15028 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15029 ac_status=$?
15030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031 test $ac_status = 0; } && test -s "$nlist"; then
15032 # Try sorting and uniquifying the output.
15033 if sort "$nlist" | uniq > "$nlist"T; then
15034 mv -f "$nlist"T "$nlist"
15035 else
15036 rm -f "$nlist"T
15039 # Make sure that we snagged all the symbols we need.
15040 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15041 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15042 cat <<_LT_EOF > conftest.$ac_ext
15043 #ifdef __cplusplus
15044 extern "C" {
15045 #endif
15047 _LT_EOF
15048 # Now generate the symbol file.
15049 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15051 cat <<_LT_EOF >> conftest.$ac_ext
15053 /* The mapping between symbol names and symbols. */
15054 const struct {
15055 const char *name;
15056 void *address;
15058 lt__PROGRAM__LTX_preloaded_symbols[] =
15060 { "@PROGRAM@", (void *) 0 },
15061 _LT_EOF
15062 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15063 cat <<\_LT_EOF >> conftest.$ac_ext
15064 {0, (void *) 0}
15067 /* This works around a problem in FreeBSD linker */
15068 #ifdef FREEBSD_WORKAROUND
15069 static const void *lt_preloaded_setup() {
15070 return lt__PROGRAM__LTX_preloaded_symbols;
15072 #endif
15074 #ifdef __cplusplus
15076 #endif
15077 _LT_EOF
15078 # Now try linking the two files.
15079 mv conftest.$ac_objext conftstm.$ac_objext
15080 lt_save_LIBS="$LIBS"
15081 lt_save_CFLAGS="$CFLAGS"
15082 LIBS="conftstm.$ac_objext"
15083 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15085 (eval $ac_link) 2>&5
15086 ac_status=$?
15087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15089 pipe_works=yes
15091 LIBS="$lt_save_LIBS"
15092 CFLAGS="$lt_save_CFLAGS"
15093 else
15094 echo "cannot find nm_test_func in $nlist" >&5
15096 else
15097 echo "cannot find nm_test_var in $nlist" >&5
15099 else
15100 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15102 else
15103 echo "$progname: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15106 rm -rf conftest* conftst*
15108 # Do not use the global_symbol_pipe unless it works.
15109 if test "$pipe_works" = yes; then
15110 break
15111 else
15112 lt_cv_sys_global_symbol_pipe=
15114 done
15118 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15119 lt_cv_sys_global_symbol_to_cdecl=
15121 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15123 $as_echo "failed" >&6; }
15124 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15126 $as_echo "ok" >&6; }
15150 # Check whether --enable-libtool-lock was given.
15151 if test "${enable_libtool_lock+set}" = set; then :
15152 enableval=$enable_libtool_lock;
15155 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15157 # Some flags need to be propagated to the compiler or linker for good
15158 # libtool support.
15159 case $host in
15160 ia64-*-hpux*)
15161 # Find out which ABI we are using.
15162 echo 'int i;' > conftest.$ac_ext
15163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15164 (eval $ac_compile) 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }; then
15168 case `/usr/bin/file conftest.$ac_objext` in
15169 *ELF-32*)
15170 HPUX_IA64_MODE="32"
15172 *ELF-64*)
15173 HPUX_IA64_MODE="64"
15175 esac
15177 rm -rf conftest*
15179 *-*-irix6*)
15180 # Find out which ABI we are using.
15181 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15183 (eval $ac_compile) 2>&5
15184 ac_status=$?
15185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15186 test $ac_status = 0; }; then
15187 if test "$lt_cv_prog_gnu_ld" = yes; then
15188 case `/usr/bin/file conftest.$ac_objext` in
15189 *32-bit*)
15190 LD="${LD-ld} -melf32bsmip"
15192 *N32*)
15193 LD="${LD-ld} -melf32bmipn32"
15195 *64-bit*)
15196 LD="${LD-ld} -melf64bmip"
15198 esac
15199 else
15200 case `/usr/bin/file conftest.$ac_objext` in
15201 *32-bit*)
15202 LD="${LD-ld} -32"
15204 *N32*)
15205 LD="${LD-ld} -n32"
15207 *64-bit*)
15208 LD="${LD-ld} -64"
15210 esac
15213 rm -rf conftest*
15216 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15217 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15218 # Find out which ABI we are using.
15219 echo 'int i;' > conftest.$ac_ext
15220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15221 (eval $ac_compile) 2>&5
15222 ac_status=$?
15223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15224 test $ac_status = 0; }; then
15225 case `/usr/bin/file conftest.o` in
15226 *32-bit*)
15227 case $host in
15228 x86_64-*kfreebsd*-gnu)
15229 LD="${LD-ld} -m elf_i386_fbsd"
15231 x86_64-*linux*)
15232 case `/usr/bin/file conftest.o` in
15233 *x86-64*)
15234 LD="${LD-ld} -m elf32_x86_64"
15237 LD="${LD-ld} -m elf_i386"
15239 esac
15241 powerpc64le-*linux*)
15242 LD="${LD-ld} -m elf32lppclinux"
15244 powerpc64-*linux*)
15245 LD="${LD-ld} -m elf32ppclinux"
15247 s390x-*linux*)
15248 LD="${LD-ld} -m elf_s390"
15250 sparc64-*linux*)
15251 LD="${LD-ld} -m elf32_sparc"
15253 esac
15255 *64-bit*)
15256 case $host in
15257 x86_64-*kfreebsd*-gnu)
15258 LD="${LD-ld} -m elf_x86_64_fbsd"
15260 x86_64-*linux*)
15261 LD="${LD-ld} -m elf_x86_64"
15263 powerpcle-*linux*)
15264 LD="${LD-ld} -m elf64lppc"
15266 powerpc-*linux*)
15267 LD="${LD-ld} -m elf64ppc"
15269 s390*-*linux*|s390*-*tpf*)
15270 LD="${LD-ld} -m elf64_s390"
15272 sparc*-*linux*)
15273 LD="${LD-ld} -m elf64_sparc"
15275 esac
15277 esac
15279 rm -rf conftest*
15282 *-*-sco3.2v5*)
15283 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15284 SAVE_CFLAGS="$CFLAGS"
15285 CFLAGS="$CFLAGS -belf"
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15287 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15288 if ${lt_cv_cc_needs_belf+:} false; then :
15289 $as_echo_n "(cached) " >&6
15290 else
15291 ac_ext=c
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15301 main ()
15305 return 0;
15307 _ACEOF
15308 if ac_fn_c_try_link "$LINENO"; then :
15309 lt_cv_cc_needs_belf=yes
15310 else
15311 lt_cv_cc_needs_belf=no
15313 rm -f core conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
15315 ac_ext=c
15316 ac_cpp='$CPP $CPPFLAGS'
15317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15323 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15326 CFLAGS="$SAVE_CFLAGS"
15329 sparc*-*solaris*)
15330 # Find out which ABI we are using.
15331 echo 'int i;' > conftest.$ac_ext
15332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15333 (eval $ac_compile) 2>&5
15334 ac_status=$?
15335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15336 test $ac_status = 0; }; then
15337 case `/usr/bin/file conftest.o` in
15338 *64-bit*)
15339 case $lt_cv_prog_gnu_ld in
15340 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15342 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15343 LD="${LD-ld} -64"
15346 esac
15348 esac
15350 rm -rf conftest*
15352 esac
15354 need_locks="$enable_libtool_lock"
15357 case $host_os in
15358 rhapsody* | darwin*)
15359 if test -n "$ac_tool_prefix"; then
15360 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15361 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15363 $as_echo_n "checking for $ac_word... " >&6; }
15364 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 if test -n "$DSYMUTIL"; then
15368 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15369 else
15370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15371 for as_dir in $PATH
15373 IFS=$as_save_IFS
15374 test -z "$as_dir" && as_dir=.
15375 for ac_exec_ext in '' $ac_executable_extensions; do
15376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15377 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15379 break 2
15381 done
15382 done
15383 IFS=$as_save_IFS
15387 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15388 if test -n "$DSYMUTIL"; then
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15390 $as_echo "$DSYMUTIL" >&6; }
15391 else
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15393 $as_echo "no" >&6; }
15398 if test -z "$ac_cv_prog_DSYMUTIL"; then
15399 ac_ct_DSYMUTIL=$DSYMUTIL
15400 # Extract the first word of "dsymutil", so it can be a program name with args.
15401 set dummy dsymutil; ac_word=$2
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15403 $as_echo_n "checking for $ac_word... " >&6; }
15404 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15405 $as_echo_n "(cached) " >&6
15406 else
15407 if test -n "$ac_ct_DSYMUTIL"; then
15408 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15409 else
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15419 break 2
15421 done
15422 done
15423 IFS=$as_save_IFS
15427 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15428 if test -n "$ac_ct_DSYMUTIL"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15430 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433 $as_echo "no" >&6; }
15436 if test "x$ac_ct_DSYMUTIL" = x; then
15437 DSYMUTIL=":"
15438 else
15439 case $cross_compiling:$ac_tool_warned in
15440 yes:)
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15443 ac_tool_warned=yes ;;
15444 esac
15445 DSYMUTIL=$ac_ct_DSYMUTIL
15447 else
15448 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15451 if test -n "$ac_tool_prefix"; then
15452 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15453 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15455 $as_echo_n "checking for $ac_word... " >&6; }
15456 if ${ac_cv_prog_NMEDIT+:} false; then :
15457 $as_echo_n "(cached) " >&6
15458 else
15459 if test -n "$NMEDIT"; then
15460 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15461 else
15462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15463 for as_dir in $PATH
15465 IFS=$as_save_IFS
15466 test -z "$as_dir" && as_dir=.
15467 for ac_exec_ext in '' $ac_executable_extensions; do
15468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15469 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15471 break 2
15473 done
15474 done
15475 IFS=$as_save_IFS
15479 NMEDIT=$ac_cv_prog_NMEDIT
15480 if test -n "$NMEDIT"; then
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15482 $as_echo "$NMEDIT" >&6; }
15483 else
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15490 if test -z "$ac_cv_prog_NMEDIT"; then
15491 ac_ct_NMEDIT=$NMEDIT
15492 # Extract the first word of "nmedit", so it can be a program name with args.
15493 set dummy nmedit; ac_word=$2
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15495 $as_echo_n "checking for $ac_word... " >&6; }
15496 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15497 $as_echo_n "(cached) " >&6
15498 else
15499 if test -n "$ac_ct_NMEDIT"; then
15500 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15501 else
15502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15503 for as_dir in $PATH
15505 IFS=$as_save_IFS
15506 test -z "$as_dir" && as_dir=.
15507 for ac_exec_ext in '' $ac_executable_extensions; do
15508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15509 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15511 break 2
15513 done
15514 done
15515 IFS=$as_save_IFS
15519 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15520 if test -n "$ac_ct_NMEDIT"; then
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15522 $as_echo "$ac_ct_NMEDIT" >&6; }
15523 else
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15525 $as_echo "no" >&6; }
15528 if test "x$ac_ct_NMEDIT" = x; then
15529 NMEDIT=":"
15530 else
15531 case $cross_compiling:$ac_tool_warned in
15532 yes:)
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15535 ac_tool_warned=yes ;;
15536 esac
15537 NMEDIT=$ac_ct_NMEDIT
15539 else
15540 NMEDIT="$ac_cv_prog_NMEDIT"
15543 if test -n "$ac_tool_prefix"; then
15544 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15547 $as_echo_n "checking for $ac_word... " >&6; }
15548 if ${ac_cv_prog_LIPO+:} false; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 if test -n "$LIPO"; then
15552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15553 else
15554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15555 for as_dir in $PATH
15557 IFS=$as_save_IFS
15558 test -z "$as_dir" && as_dir=.
15559 for ac_exec_ext in '' $ac_executable_extensions; do
15560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15563 break 2
15565 done
15566 done
15567 IFS=$as_save_IFS
15571 LIPO=$ac_cv_prog_LIPO
15572 if test -n "$LIPO"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15574 $as_echo "$LIPO" >&6; }
15575 else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15582 if test -z "$ac_cv_prog_LIPO"; then
15583 ac_ct_LIPO=$LIPO
15584 # Extract the first word of "lipo", so it can be a program name with args.
15585 set dummy lipo; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587 $as_echo_n "checking for $ac_word... " >&6; }
15588 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 if test -n "$ac_ct_LIPO"; then
15592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15593 else
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15597 IFS=$as_save_IFS
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601 ac_cv_prog_ac_ct_LIPO="lipo"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 break 2
15605 done
15606 done
15607 IFS=$as_save_IFS
15611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15612 if test -n "$ac_ct_LIPO"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15614 $as_echo "$ac_ct_LIPO" >&6; }
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15620 if test "x$ac_ct_LIPO" = x; then
15621 LIPO=":"
15622 else
15623 case $cross_compiling:$ac_tool_warned in
15624 yes:)
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15627 ac_tool_warned=yes ;;
15628 esac
15629 LIPO=$ac_ct_LIPO
15631 else
15632 LIPO="$ac_cv_prog_LIPO"
15635 if test -n "$ac_tool_prefix"; then
15636 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15637 set dummy ${ac_tool_prefix}otool; ac_word=$2
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15639 $as_echo_n "checking for $ac_word... " >&6; }
15640 if ${ac_cv_prog_OTOOL+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 if test -n "$OTOOL"; then
15644 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15645 else
15646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15649 IFS=$as_save_IFS
15650 test -z "$as_dir" && as_dir=.
15651 for ac_exec_ext in '' $ac_executable_extensions; do
15652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655 break 2
15657 done
15658 done
15659 IFS=$as_save_IFS
15663 OTOOL=$ac_cv_prog_OTOOL
15664 if test -n "$OTOOL"; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15666 $as_echo "$OTOOL" >&6; }
15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15674 if test -z "$ac_cv_prog_OTOOL"; then
15675 ac_ct_OTOOL=$OTOOL
15676 # Extract the first word of "otool", so it can be a program name with args.
15677 set dummy otool; ac_word=$2
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679 $as_echo_n "checking for $ac_word... " >&6; }
15680 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 if test -n "$ac_ct_OTOOL"; then
15684 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15685 else
15686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15687 for as_dir in $PATH
15689 IFS=$as_save_IFS
15690 test -z "$as_dir" && as_dir=.
15691 for ac_exec_ext in '' $ac_executable_extensions; do
15692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15693 ac_cv_prog_ac_ct_OTOOL="otool"
15694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15695 break 2
15697 done
15698 done
15699 IFS=$as_save_IFS
15703 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15704 if test -n "$ac_ct_OTOOL"; then
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15706 $as_echo "$ac_ct_OTOOL" >&6; }
15707 else
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15709 $as_echo "no" >&6; }
15712 if test "x$ac_ct_OTOOL" = x; then
15713 OTOOL=":"
15714 else
15715 case $cross_compiling:$ac_tool_warned in
15716 yes:)
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15719 ac_tool_warned=yes ;;
15720 esac
15721 OTOOL=$ac_ct_OTOOL
15723 else
15724 OTOOL="$ac_cv_prog_OTOOL"
15727 if test -n "$ac_tool_prefix"; then
15728 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15729 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15731 $as_echo_n "checking for $ac_word... " >&6; }
15732 if ${ac_cv_prog_OTOOL64+:} false; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 if test -n "$OTOOL64"; then
15736 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15737 else
15738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739 for as_dir in $PATH
15741 IFS=$as_save_IFS
15742 test -z "$as_dir" && as_dir=.
15743 for ac_exec_ext in '' $ac_executable_extensions; do
15744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15745 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15747 break 2
15749 done
15750 done
15751 IFS=$as_save_IFS
15755 OTOOL64=$ac_cv_prog_OTOOL64
15756 if test -n "$OTOOL64"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15758 $as_echo "$OTOOL64" >&6; }
15759 else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15761 $as_echo "no" >&6; }
15766 if test -z "$ac_cv_prog_OTOOL64"; then
15767 ac_ct_OTOOL64=$OTOOL64
15768 # Extract the first word of "otool64", so it can be a program name with args.
15769 set dummy otool64; ac_word=$2
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15771 $as_echo_n "checking for $ac_word... " >&6; }
15772 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 if test -n "$ac_ct_OTOOL64"; then
15776 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15777 else
15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 for as_dir in $PATH
15781 IFS=$as_save_IFS
15782 test -z "$as_dir" && as_dir=.
15783 for ac_exec_ext in '' $ac_executable_extensions; do
15784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15785 ac_cv_prog_ac_ct_OTOOL64="otool64"
15786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15787 break 2
15789 done
15790 done
15791 IFS=$as_save_IFS
15795 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15796 if test -n "$ac_ct_OTOOL64"; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15798 $as_echo "$ac_ct_OTOOL64" >&6; }
15799 else
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801 $as_echo "no" >&6; }
15804 if test "x$ac_ct_OTOOL64" = x; then
15805 OTOOL64=":"
15806 else
15807 case $cross_compiling:$ac_tool_warned in
15808 yes:)
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15811 ac_tool_warned=yes ;;
15812 esac
15813 OTOOL64=$ac_ct_OTOOL64
15815 else
15816 OTOOL64="$ac_cv_prog_OTOOL64"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15846 $as_echo_n "checking for -single_module linker flag... " >&6; }
15847 if ${lt_cv_apple_cc_single_mod+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 lt_cv_apple_cc_single_mod=no
15851 if test -z "${LT_MULTI_MODULE}"; then
15852 # By default we will add the -single_module flag. You can override
15853 # by either setting the environment variable LT_MULTI_MODULE
15854 # non-empty at configure time, or by adding -multi_module to the
15855 # link flags.
15856 rm -rf libconftest.dylib*
15857 echo "int foo(void){return 1;}" > conftest.c
15858 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15859 -dynamiclib -Wl,-single_module conftest.c" >&5
15860 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15861 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15862 _lt_result=$?
15863 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15864 lt_cv_apple_cc_single_mod=yes
15865 else
15866 cat conftest.err >&5
15868 rm -rf libconftest.dylib*
15869 rm -f conftest.*
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15873 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15875 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15876 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 lt_cv_ld_exported_symbols_list=no
15880 save_LDFLAGS=$LDFLAGS
15881 echo "_main" > conftest.sym
15882 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15887 main ()
15891 return 0;
15893 _ACEOF
15894 if ac_fn_c_try_link "$LINENO"; then :
15895 lt_cv_ld_exported_symbols_list=yes
15896 else
15897 lt_cv_ld_exported_symbols_list=no
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LDFLAGS="$save_LDFLAGS"
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15905 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15907 $as_echo_n "checking for -force_load linker flag... " >&6; }
15908 if ${lt_cv_ld_force_load+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 lt_cv_ld_force_load=no
15912 cat > conftest.c << _LT_EOF
15913 int forced_loaded() { return 2;}
15914 _LT_EOF
15915 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15916 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15917 echo "$AR cru libconftest.a conftest.o" >&5
15918 $AR cru libconftest.a conftest.o 2>&5
15919 cat > conftest.c << _LT_EOF
15920 int main() { return 0;}
15921 _LT_EOF
15922 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15923 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15924 _lt_result=$?
15925 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15926 lt_cv_ld_force_load=yes
15927 else
15928 cat conftest.err >&5
15930 rm -f conftest.err libconftest.a conftest conftest.c
15931 rm -rf conftest.dSYM
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15935 $as_echo "$lt_cv_ld_force_load" >&6; }
15936 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15937 # build without first building modern cctools / linker.
15938 case $host_cpu-$host_os in
15939 *-rhapsody* | *-darwin1.[012])
15940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15941 *-darwin1.*)
15942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15943 *-darwin*)
15944 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15945 # deployment target is forced to an earlier version.
15946 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15947 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15949 10.[012][,.]*)
15950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15954 esac
15956 esac
15957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15958 _lt_dar_single_mod='$single_module'
15960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15962 else
15963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15966 _lt_dsymutil='~$DSYMUTIL $lib || :'
15967 else
15968 _lt_dsymutil=
15971 esac
15974 for ac_header in dlfcn.h
15975 do :
15976 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15977 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15978 cat >>confdefs.h <<_ACEOF
15979 #define HAVE_DLFCN_H 1
15980 _ACEOF
15983 done
15989 # Set options
15993 enable_dlopen=no
15996 enable_win32_dll=no
15999 # Check whether --enable-shared was given.
16000 if test "${enable_shared+set}" = set; then :
16001 enableval=$enable_shared; p=${PACKAGE-default}
16002 case $enableval in
16003 yes) enable_shared=yes ;;
16004 no) enable_shared=no ;;
16006 enable_shared=no
16007 # Look at the argument we got. We use all the common list separators.
16008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16009 for pkg in $enableval; do
16010 IFS="$lt_save_ifs"
16011 if test "X$pkg" = "X$p"; then
16012 enable_shared=yes
16014 done
16015 IFS="$lt_save_ifs"
16017 esac
16018 else
16019 enable_shared=yes
16030 # Check whether --enable-static was given.
16031 if test "${enable_static+set}" = set; then :
16032 enableval=$enable_static; p=${PACKAGE-default}
16033 case $enableval in
16034 yes) enable_static=yes ;;
16035 no) enable_static=no ;;
16037 enable_static=no
16038 # Look at the argument we got. We use all the common list separators.
16039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16040 for pkg in $enableval; do
16041 IFS="$lt_save_ifs"
16042 if test "X$pkg" = "X$p"; then
16043 enable_static=yes
16045 done
16046 IFS="$lt_save_ifs"
16048 esac
16049 else
16050 enable_static=yes
16062 # Check whether --with-pic was given.
16063 if test "${with_pic+set}" = set; then :
16064 withval=$with_pic; pic_mode="$withval"
16065 else
16066 pic_mode=default
16070 test -z "$pic_mode" && pic_mode=default
16078 # Check whether --enable-fast-install was given.
16079 if test "${enable_fast_install+set}" = set; then :
16080 enableval=$enable_fast_install; p=${PACKAGE-default}
16081 case $enableval in
16082 yes) enable_fast_install=yes ;;
16083 no) enable_fast_install=no ;;
16085 enable_fast_install=no
16086 # Look at the argument we got. We use all the common list separators.
16087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16088 for pkg in $enableval; do
16089 IFS="$lt_save_ifs"
16090 if test "X$pkg" = "X$p"; then
16091 enable_fast_install=yes
16093 done
16094 IFS="$lt_save_ifs"
16096 esac
16097 else
16098 enable_fast_install=yes
16111 # This can be used to rebuild libtool when needed
16112 LIBTOOL_DEPS="$ltmain"
16114 # Always use our own libtool.
16115 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16142 test -z "$LN_S" && LN_S="ln -s"
16157 if test -n "${ZSH_VERSION+set}" ; then
16158 setopt NO_GLOB_SUBST
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16162 $as_echo_n "checking for objdir... " >&6; }
16163 if ${lt_cv_objdir+:} false; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 rm -f .libs 2>/dev/null
16167 mkdir .libs 2>/dev/null
16168 if test -d .libs; then
16169 lt_cv_objdir=.libs
16170 else
16171 # MS-DOS does not allow filenames that begin with a dot.
16172 lt_cv_objdir=_libs
16174 rmdir .libs 2>/dev/null
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16177 $as_echo "$lt_cv_objdir" >&6; }
16178 objdir=$lt_cv_objdir
16184 cat >>confdefs.h <<_ACEOF
16185 #define LT_OBJDIR "$lt_cv_objdir/"
16186 _ACEOF
16191 case $host_os in
16192 aix3*)
16193 # AIX sometimes has problems with the GCC collect2 program. For some
16194 # reason, if we set the COLLECT_NAMES environment variable, the problems
16195 # vanish in a puff of smoke.
16196 if test "X${COLLECT_NAMES+set}" != Xset; then
16197 COLLECT_NAMES=
16198 export COLLECT_NAMES
16201 esac
16203 # Global variables:
16204 ofile=libtool
16205 can_build_shared=yes
16207 # All known linkers require a `.a' archive for static linking (except MSVC,
16208 # which needs '.lib').
16209 libext=a
16211 with_gnu_ld="$lt_cv_prog_gnu_ld"
16213 old_CC="$CC"
16214 old_CFLAGS="$CFLAGS"
16216 # Set sane defaults for various variables
16217 test -z "$CC" && CC=cc
16218 test -z "$LTCC" && LTCC=$CC
16219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16220 test -z "$LD" && LD=ld
16221 test -z "$ac_objext" && ac_objext=o
16223 for cc_temp in $compiler""; do
16224 case $cc_temp in
16225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16227 \-*) ;;
16228 *) break;;
16229 esac
16230 done
16231 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16234 # Only perform the check for file, if the check method requires it
16235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16236 case $deplibs_check_method in
16237 file_magic*)
16238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16240 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16242 $as_echo_n "(cached) " >&6
16243 else
16244 case $MAGIC_CMD in
16245 [\\/*] | ?:[\\/]*)
16246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16249 lt_save_MAGIC_CMD="$MAGIC_CMD"
16250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16252 for ac_dir in $ac_dummy; do
16253 IFS="$lt_save_ifs"
16254 test -z "$ac_dir" && ac_dir=.
16255 if test -f $ac_dir/${ac_tool_prefix}file; then
16256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16257 if test -n "$file_magic_test_file"; then
16258 case $deplibs_check_method in
16259 "file_magic "*)
16260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16263 $EGREP "$file_magic_regex" > /dev/null; then
16265 else
16266 cat <<_LT_EOF 1>&2
16268 *** Warning: the command libtool uses to detect shared libraries,
16269 *** $file_magic_cmd, produces output that libtool cannot recognize.
16270 *** The result is that libtool may fail to recognize shared libraries
16271 *** as such. This will affect the creation of libtool libraries that
16272 *** depend on shared libraries, but programs linked with such libtool
16273 *** libraries will work regardless of this problem. Nevertheless, you
16274 *** may want to report the problem to your system manager and/or to
16275 *** bug-libtool@gnu.org
16277 _LT_EOF
16278 fi ;;
16279 esac
16281 break
16283 done
16284 IFS="$lt_save_ifs"
16285 MAGIC_CMD="$lt_save_MAGIC_CMD"
16287 esac
16290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16291 if test -n "$MAGIC_CMD"; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16293 $as_echo "$MAGIC_CMD" >&6; }
16294 else
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296 $as_echo "no" >&6; }
16303 if test -z "$lt_cv_path_MAGIC_CMD"; then
16304 if test -n "$ac_tool_prefix"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16306 $as_echo_n "checking for file... " >&6; }
16307 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 case $MAGIC_CMD in
16311 [\\/*] | ?:[\\/]*)
16312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16315 lt_save_MAGIC_CMD="$MAGIC_CMD"
16316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16318 for ac_dir in $ac_dummy; do
16319 IFS="$lt_save_ifs"
16320 test -z "$ac_dir" && ac_dir=.
16321 if test -f $ac_dir/file; then
16322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16323 if test -n "$file_magic_test_file"; then
16324 case $deplibs_check_method in
16325 "file_magic "*)
16326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16329 $EGREP "$file_magic_regex" > /dev/null; then
16331 else
16332 cat <<_LT_EOF 1>&2
16334 *** Warning: the command libtool uses to detect shared libraries,
16335 *** $file_magic_cmd, produces output that libtool cannot recognize.
16336 *** The result is that libtool may fail to recognize shared libraries
16337 *** as such. This will affect the creation of libtool libraries that
16338 *** depend on shared libraries, but programs linked with such libtool
16339 *** libraries will work regardless of this problem. Nevertheless, you
16340 *** may want to report the problem to your system manager and/or to
16341 *** bug-libtool@gnu.org
16343 _LT_EOF
16344 fi ;;
16345 esac
16347 break
16349 done
16350 IFS="$lt_save_ifs"
16351 MAGIC_CMD="$lt_save_MAGIC_CMD"
16353 esac
16356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16357 if test -n "$MAGIC_CMD"; then
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16359 $as_echo "$MAGIC_CMD" >&6; }
16360 else
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362 $as_echo "no" >&6; }
16366 else
16367 MAGIC_CMD=:
16373 esac
16375 # Use C for the default configuration in the libtool script
16377 lt_save_CC="$CC"
16378 ac_ext=c
16379 ac_cpp='$CPP $CPPFLAGS'
16380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16385 # Source file extension for C test sources.
16386 ac_ext=c
16388 # Object file extension for compiled C test sources.
16389 objext=o
16390 objext=$objext
16392 # Code to be used in simple compile tests
16393 lt_simple_compile_test_code="int some_variable = 0;"
16395 # Code to be used in simple link tests
16396 lt_simple_link_test_code='int main(){return(0);}'
16404 # If no C compiler was specified, use CC.
16405 LTCC=${LTCC-"$CC"}
16407 # If no C compiler flags were specified, use CFLAGS.
16408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16410 # Allow CC to be a program name with arguments.
16411 compiler=$CC
16413 # Save the default compiler, since it gets overwritten when the other
16414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16415 compiler_DEFAULT=$CC
16417 # save warnings/boilerplate of simple test code
16418 ac_outfile=conftest.$ac_objext
16419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16421 _lt_compiler_boilerplate=`cat conftest.err`
16422 $RM conftest*
16424 ac_outfile=conftest.$ac_objext
16425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16427 _lt_linker_boilerplate=`cat conftest.err`
16428 $RM -r conftest*
16431 ## CAVEAT EMPTOR:
16432 ## There is no encapsulation within the following macros, do not change
16433 ## the running order or otherwise move them around unless you know exactly
16434 ## what you are doing...
16435 if test -n "$compiler"; then
16437 lt_prog_compiler_no_builtin_flag=
16439 if test "$GCC" = yes; then
16440 case $cc_basename in
16441 nvcc*)
16442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16445 esac
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16449 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16450 $as_echo_n "(cached) " >&6
16451 else
16452 lt_cv_prog_compiler_rtti_exceptions=no
16453 ac_outfile=conftest.$ac_objext
16454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16455 lt_compiler_flag="-fno-rtti -fno-exceptions"
16456 # Insert the option either (1) after the last *FLAGS variable, or
16457 # (2) before a word containing "conftest.", or (3) at the end.
16458 # Note that $ac_compile itself does not contain backslashes and begins
16459 # with a dollar sign (not a hyphen), so the echo should work correctly.
16460 # The option is referenced via a variable to avoid confusing sed.
16461 lt_compile=`echo "$ac_compile" | $SED \
16462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16464 -e 's:$: $lt_compiler_flag:'`
16465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16466 (eval "$lt_compile" 2>conftest.err)
16467 ac_status=$?
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 if (exit $ac_status) && test -s "$ac_outfile"; then
16471 # The compiler can only warn and ignore the option if not recognized
16472 # So say no if there are warnings other than the usual output.
16473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16476 lt_cv_prog_compiler_rtti_exceptions=yes
16479 $RM conftest*
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16487 else
16498 lt_prog_compiler_wl=
16499 lt_prog_compiler_pic=
16500 lt_prog_compiler_static=
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16505 if test "$GCC" = yes; then
16506 lt_prog_compiler_wl='-Wl,'
16507 lt_prog_compiler_static='-static'
16509 case $host_os in
16510 aix*)
16511 # All AIX code is PIC.
16512 if test "$host_cpu" = ia64; then
16513 # AIX 5 now supports IA64 processor
16514 lt_prog_compiler_static='-Bstatic'
16516 lt_prog_compiler_pic='-fPIC'
16519 amigaos*)
16520 case $host_cpu in
16521 powerpc)
16522 # see comment about AmigaOS4 .so support
16523 lt_prog_compiler_pic='-fPIC'
16525 m68k)
16526 # FIXME: we need at least 68020 code to build shared libraries, but
16527 # adding the `-m68020' flag to GCC prevents building anything better,
16528 # like `-m68040'.
16529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16531 esac
16534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16535 # PIC is the default for these OSes.
16538 mingw* | cygwin* | pw32* | os2* | cegcc*)
16539 # This hack is so that the source file can tell whether it is being
16540 # built for inclusion in a dll (and should export symbols for example).
16541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16542 # (--disable-auto-import) libraries
16543 lt_prog_compiler_pic='-DDLL_EXPORT'
16546 darwin* | rhapsody*)
16547 # PIC is the default on this platform
16548 # Common symbols not allowed in MH_DYLIB files
16549 lt_prog_compiler_pic='-fno-common'
16552 haiku*)
16553 # PIC is the default for Haiku.
16554 # The "-static" flag exists, but is broken.
16555 lt_prog_compiler_static=
16558 hpux*)
16559 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16560 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16561 # sets the default TLS model and affects inlining.
16562 case $host_cpu in
16563 hppa*64*)
16564 # +Z the default
16567 lt_prog_compiler_pic='-fPIC'
16569 esac
16572 interix[3-9]*)
16573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16574 # Instead, we relocate shared libraries at runtime.
16577 msdosdjgpp*)
16578 # Just because we use GCC doesn't mean we suddenly get shared libraries
16579 # on systems that don't support them.
16580 lt_prog_compiler_can_build_shared=no
16581 enable_shared=no
16584 *nto* | *qnx*)
16585 # QNX uses GNU C++, but need to define -shared option too, otherwise
16586 # it will coredump.
16587 lt_prog_compiler_pic='-fPIC -shared'
16590 sysv4*MP*)
16591 if test -d /usr/nec; then
16592 lt_prog_compiler_pic=-Kconform_pic
16597 lt_prog_compiler_pic='-fPIC'
16599 esac
16601 case $cc_basename in
16602 nvcc*) # Cuda Compiler Driver 2.2
16603 lt_prog_compiler_wl='-Xlinker '
16604 lt_prog_compiler_pic='-Xcompiler -fPIC'
16606 esac
16607 else
16608 # PORTME Check for flag to pass linker flags through the system compiler.
16609 case $host_os in
16610 aix*)
16611 lt_prog_compiler_wl='-Wl,'
16612 if test "$host_cpu" = ia64; then
16613 # AIX 5 now supports IA64 processor
16614 lt_prog_compiler_static='-Bstatic'
16615 else
16616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16620 mingw* | cygwin* | pw32* | os2* | cegcc*)
16621 # This hack is so that the source file can tell whether it is being
16622 # built for inclusion in a dll (and should export symbols for example).
16623 lt_prog_compiler_pic='-DDLL_EXPORT'
16626 hpux9* | hpux10* | hpux11*)
16627 lt_prog_compiler_wl='-Wl,'
16628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16629 # not for PA HP-UX.
16630 case $host_cpu in
16631 hppa*64*|ia64*)
16632 # +Z the default
16635 lt_prog_compiler_pic='+Z'
16637 esac
16638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16639 lt_prog_compiler_static='${wl}-a ${wl}archive'
16642 irix5* | irix6* | nonstopux*)
16643 lt_prog_compiler_wl='-Wl,'
16644 # PIC (with -KPIC) is the default.
16645 lt_prog_compiler_static='-non_shared'
16648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16649 case $cc_basename in
16650 # old Intel for x86_64 which still supported -KPIC.
16651 ecc*)
16652 lt_prog_compiler_wl='-Wl,'
16653 lt_prog_compiler_pic='-KPIC'
16654 lt_prog_compiler_static='-static'
16656 # icc used to be incompatible with GCC.
16657 # ICC 10 doesn't accept -KPIC any more.
16658 icc* | ifort*)
16659 lt_prog_compiler_wl='-Wl,'
16660 lt_prog_compiler_pic='-fPIC'
16661 lt_prog_compiler_static='-static'
16663 # Lahey Fortran 8.1.
16664 lf95*)
16665 lt_prog_compiler_wl='-Wl,'
16666 lt_prog_compiler_pic='--shared'
16667 lt_prog_compiler_static='--static'
16669 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16670 # Portland Group compilers (*not* the Pentium gcc compiler,
16671 # which looks to be a dead project)
16672 lt_prog_compiler_wl='-Wl,'
16673 lt_prog_compiler_pic='-fpic'
16674 lt_prog_compiler_static='-Bstatic'
16676 ccc*)
16677 lt_prog_compiler_wl='-Wl,'
16678 # All Alpha code is PIC.
16679 lt_prog_compiler_static='-non_shared'
16681 xl* | bgxl* | bgf* | mpixl*)
16682 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16683 lt_prog_compiler_wl='-Wl,'
16684 lt_prog_compiler_pic='-qpic'
16685 lt_prog_compiler_static='-qstaticlink'
16688 case `$CC -V 2>&1 | sed 5q` in
16689 *Sun\ F* | *Sun*Fortran*)
16690 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16691 lt_prog_compiler_pic='-KPIC'
16692 lt_prog_compiler_static='-Bstatic'
16693 lt_prog_compiler_wl=''
16695 *Sun\ C*)
16696 # Sun C 5.9
16697 lt_prog_compiler_pic='-KPIC'
16698 lt_prog_compiler_static='-Bstatic'
16699 lt_prog_compiler_wl='-Wl,'
16701 esac
16703 esac
16706 newsos6)
16707 lt_prog_compiler_pic='-KPIC'
16708 lt_prog_compiler_static='-Bstatic'
16711 *nto* | *qnx*)
16712 # QNX uses GNU C++, but need to define -shared option too, otherwise
16713 # it will coredump.
16714 lt_prog_compiler_pic='-fPIC -shared'
16717 osf3* | osf4* | osf5*)
16718 lt_prog_compiler_wl='-Wl,'
16719 # All OSF/1 code is PIC.
16720 lt_prog_compiler_static='-non_shared'
16723 rdos*)
16724 lt_prog_compiler_static='-non_shared'
16727 solaris*)
16728 lt_prog_compiler_pic='-KPIC'
16729 lt_prog_compiler_static='-Bstatic'
16730 case $cc_basename in
16731 f77* | f90* | f95*)
16732 lt_prog_compiler_wl='-Qoption ld ';;
16734 lt_prog_compiler_wl='-Wl,';;
16735 esac
16738 sunos4*)
16739 lt_prog_compiler_wl='-Qoption ld '
16740 lt_prog_compiler_pic='-PIC'
16741 lt_prog_compiler_static='-Bstatic'
16744 sysv4 | sysv4.2uw2* | sysv4.3*)
16745 lt_prog_compiler_wl='-Wl,'
16746 lt_prog_compiler_pic='-KPIC'
16747 lt_prog_compiler_static='-Bstatic'
16750 sysv4*MP*)
16751 if test -d /usr/nec ;then
16752 lt_prog_compiler_pic='-Kconform_pic'
16753 lt_prog_compiler_static='-Bstatic'
16757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16758 lt_prog_compiler_wl='-Wl,'
16759 lt_prog_compiler_pic='-KPIC'
16760 lt_prog_compiler_static='-Bstatic'
16763 unicos*)
16764 lt_prog_compiler_wl='-Wl,'
16765 lt_prog_compiler_can_build_shared=no
16768 uts4*)
16769 lt_prog_compiler_pic='-pic'
16770 lt_prog_compiler_static='-Bstatic'
16774 lt_prog_compiler_can_build_shared=no
16776 esac
16779 case $host_os in
16780 # For platforms which do not support PIC, -DPIC is meaningless:
16781 *djgpp*)
16782 lt_prog_compiler_pic=
16785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16787 esac
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16789 $as_echo "$lt_prog_compiler_pic" >&6; }
16797 # Check to make sure the PIC flag actually works.
16799 if test -n "$lt_prog_compiler_pic"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16802 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16805 lt_cv_prog_compiler_pic_works=no
16806 ac_outfile=conftest.$ac_objext
16807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16809 # Insert the option either (1) after the last *FLAGS variable, or
16810 # (2) before a word containing "conftest.", or (3) at the end.
16811 # Note that $ac_compile itself does not contain backslashes and begins
16812 # with a dollar sign (not a hyphen), so the echo should work correctly.
16813 # The option is referenced via a variable to avoid confusing sed.
16814 lt_compile=`echo "$ac_compile" | $SED \
16815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16817 -e 's:$: $lt_compiler_flag:'`
16818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16819 (eval "$lt_compile" 2>conftest.err)
16820 ac_status=$?
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 if (exit $ac_status) && test -s "$ac_outfile"; then
16824 # The compiler can only warn and ignore the option if not recognized
16825 # So say no if there are warnings other than the usual output.
16826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16829 lt_cv_prog_compiler_pic_works=yes
16832 $RM conftest*
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16839 case $lt_prog_compiler_pic in
16840 "" | " "*) ;;
16841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16842 esac
16843 else
16844 lt_prog_compiler_pic=
16845 lt_prog_compiler_can_build_shared=no
16856 # Check to make sure the static flag actually works.
16858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16860 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16861 if ${lt_cv_prog_compiler_static_works+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863 else
16864 lt_cv_prog_compiler_static_works=no
16865 save_LDFLAGS="$LDFLAGS"
16866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16869 # The linker can only warn and ignore the option if not recognized
16870 # So say no if there are warnings
16871 if test -s conftest.err; then
16872 # Append any errors to the config.log.
16873 cat conftest.err 1>&5
16874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16876 if diff conftest.exp conftest.er2 >/dev/null; then
16877 lt_cv_prog_compiler_static_works=yes
16879 else
16880 lt_cv_prog_compiler_static_works=yes
16883 $RM -r conftest*
16884 LDFLAGS="$save_LDFLAGS"
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16890 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16892 else
16893 lt_prog_compiler_static=
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16904 if ${lt_cv_prog_compiler_c_o+:} false; then :
16905 $as_echo_n "(cached) " >&6
16906 else
16907 lt_cv_prog_compiler_c_o=no
16908 $RM -r conftest 2>/dev/null
16909 mkdir conftest
16910 cd conftest
16911 mkdir out
16912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16914 lt_compiler_flag="-o out/conftest2.$ac_objext"
16915 # Insert the option either (1) after the last *FLAGS variable, or
16916 # (2) before a word containing "conftest.", or (3) at the end.
16917 # Note that $ac_compile itself does not contain backslashes and begins
16918 # with a dollar sign (not a hyphen), so the echo should work correctly.
16919 lt_compile=`echo "$ac_compile" | $SED \
16920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16922 -e 's:$: $lt_compiler_flag:'`
16923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16924 (eval "$lt_compile" 2>out/conftest.err)
16925 ac_status=$?
16926 cat out/conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16929 then
16930 # The compiler can only warn and ignore the option if not recognized
16931 # So say no if there are warnings
16932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16935 lt_cv_prog_compiler_c_o=yes
16938 chmod u+w . 2>&5
16939 $RM conftest*
16940 # SGI C++ compiler will create directory out/ii_files/ for
16941 # template instantiation
16942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16943 $RM out/* && rmdir out
16944 cd ..
16945 $RM -r conftest
16946 $RM conftest*
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16959 if ${lt_cv_prog_compiler_c_o+:} false; then :
16960 $as_echo_n "(cached) " >&6
16961 else
16962 lt_cv_prog_compiler_c_o=no
16963 $RM -r conftest 2>/dev/null
16964 mkdir conftest
16965 cd conftest
16966 mkdir out
16967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16969 lt_compiler_flag="-o out/conftest2.$ac_objext"
16970 # Insert the option either (1) after the last *FLAGS variable, or
16971 # (2) before a word containing "conftest.", or (3) at the end.
16972 # Note that $ac_compile itself does not contain backslashes and begins
16973 # with a dollar sign (not a hyphen), so the echo should work correctly.
16974 lt_compile=`echo "$ac_compile" | $SED \
16975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16977 -e 's:$: $lt_compiler_flag:'`
16978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16979 (eval "$lt_compile" 2>out/conftest.err)
16980 ac_status=$?
16981 cat out/conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16984 then
16985 # The compiler can only warn and ignore the option if not recognized
16986 # So say no if there are warnings
16987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16990 lt_cv_prog_compiler_c_o=yes
16993 chmod u+w . 2>&5
16994 $RM conftest*
16995 # SGI C++ compiler will create directory out/ii_files/ for
16996 # template instantiation
16997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16998 $RM out/* && rmdir out
16999 cd ..
17000 $RM -r conftest
17001 $RM conftest*
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17010 hard_links="nottested"
17011 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17012 # do not overwrite the value of need_locks provided by the user
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17014 $as_echo_n "checking if we can lock with hard links... " >&6; }
17015 hard_links=yes
17016 $RM conftest*
17017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17018 touch conftest.a
17019 ln conftest.a conftest.b 2>&5 || hard_links=no
17020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17022 $as_echo "$hard_links" >&6; }
17023 if test "$hard_links" = no; then
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17026 need_locks=warn
17028 else
17029 need_locks=no
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17040 runpath_var=
17041 allow_undefined_flag=
17042 always_export_symbols=no
17043 archive_cmds=
17044 archive_expsym_cmds=
17045 compiler_needs_object=no
17046 enable_shared_with_static_runtimes=no
17047 export_dynamic_flag_spec=
17048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17049 hardcode_automatic=no
17050 hardcode_direct=no
17051 hardcode_direct_absolute=no
17052 hardcode_libdir_flag_spec=
17053 hardcode_libdir_flag_spec_ld=
17054 hardcode_libdir_separator=
17055 hardcode_minus_L=no
17056 hardcode_shlibpath_var=unsupported
17057 inherit_rpath=no
17058 link_all_deplibs=unknown
17059 module_cmds=
17060 module_expsym_cmds=
17061 old_archive_from_new_cmds=
17062 old_archive_from_expsyms_cmds=
17063 thread_safe_flag_spec=
17064 whole_archive_flag_spec=
17065 # include_expsyms should be a list of space-separated symbols to be *always*
17066 # included in the symbol list
17067 include_expsyms=
17068 # exclude_expsyms can be an extended regexp of symbols to exclude
17069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17071 # as well as any symbol that contains `d'.
17072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17074 # platforms (ab)use it in PIC code, but their linkers get confused if
17075 # the symbol is explicitly referenced. Since portable code cannot
17076 # rely on this symbol name, it's probably fine to never include it in
17077 # preloaded symbol tables.
17078 # Exclude shared library initialization/finalization symbols.
17079 extract_expsyms_cmds=
17081 case $host_os in
17082 cygwin* | mingw* | pw32* | cegcc*)
17083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17084 # When not using gcc, we currently assume that we are using
17085 # Microsoft Visual C++.
17086 if test "$GCC" != yes; then
17087 with_gnu_ld=no
17090 interix*)
17091 # we just hope/assume this is gcc and not c89 (= MSVC++)
17092 with_gnu_ld=yes
17094 openbsd*)
17095 with_gnu_ld=no
17097 esac
17099 ld_shlibs=yes
17101 # On some targets, GNU ld is compatible enough with the native linker
17102 # that we're better off using the native interface for both.
17103 lt_use_gnu_ld_interface=no
17104 if test "$with_gnu_ld" = yes; then
17105 case $host_os in
17106 aix*)
17107 # The AIX port of GNU ld has always aspired to compatibility
17108 # with the native linker. However, as the warning in the GNU ld
17109 # block says, versions before 2.19.5* couldn't really create working
17110 # shared libraries, regardless of the interface used.
17111 case `$LD -v 2>&1` in
17112 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17113 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17114 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17116 lt_use_gnu_ld_interface=yes
17118 esac
17121 lt_use_gnu_ld_interface=yes
17123 esac
17126 if test "$lt_use_gnu_ld_interface" = yes; then
17127 # If archive_cmds runs LD, not CC, wlarc should be empty
17128 wlarc='${wl}'
17130 # Set some defaults for GNU ld with shared library support. These
17131 # are reset later if shared libraries are not supported. Putting them
17132 # here allows them to be overridden if necessary.
17133 runpath_var=LD_RUN_PATH
17134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17135 export_dynamic_flag_spec='${wl}--export-dynamic'
17136 # ancient GNU ld didn't support --whole-archive et. al.
17137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17139 else
17140 whole_archive_flag_spec=
17142 supports_anon_versioning=no
17143 case `$LD -v 2>&1` in
17144 *GNU\ gold*) supports_anon_versioning=yes ;;
17145 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17146 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17147 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17148 *\ 2.11.*) ;; # other 2.11 versions
17149 *) supports_anon_versioning=yes ;;
17150 esac
17152 # See if GNU ld supports shared libraries.
17153 case $host_os in
17154 aix[3-9]*)
17155 # On AIX/PPC, the GNU linker is very broken
17156 if test "$host_cpu" != ia64; then
17157 ld_shlibs=no
17158 cat <<_LT_EOF 1>&2
17160 *** Warning: the GNU linker, at least up to release 2.19, is reported
17161 *** to be unable to reliably create shared libraries on AIX.
17162 *** Therefore, libtool is disabling shared libraries support. If you
17163 *** really care for shared libraries, you may want to install binutils
17164 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17165 *** You will then need to restart the configuration process.
17167 _LT_EOF
17171 amigaos*)
17172 case $host_cpu in
17173 powerpc)
17174 # see comment about AmigaOS4 .so support
17175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17176 archive_expsym_cmds=''
17178 m68k)
17179 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)'
17180 hardcode_libdir_flag_spec='-L$libdir'
17181 hardcode_minus_L=yes
17183 esac
17186 beos*)
17187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17188 allow_undefined_flag=unsupported
17189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17190 # support --undefined. This deserves some investigation. FIXME
17191 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17192 else
17193 ld_shlibs=no
17197 cygwin* | mingw* | pw32* | cegcc*)
17198 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17199 # as there is no search path for DLLs.
17200 hardcode_libdir_flag_spec='-L$libdir'
17201 export_dynamic_flag_spec='${wl}--export-all-symbols'
17202 allow_undefined_flag=unsupported
17203 always_export_symbols=no
17204 enable_shared_with_static_runtimes=yes
17205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17209 # If the export-symbols file already is a .def file (1st line
17210 # is EXPORTS), use it as is; otherwise, prepend...
17211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17212 cp $export_symbols $output_objdir/$soname.def;
17213 else
17214 echo EXPORTS > $output_objdir/$soname.def;
17215 cat $export_symbols >> $output_objdir/$soname.def;
17217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17218 else
17219 ld_shlibs=no
17223 haiku*)
17224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17225 link_all_deplibs=yes
17228 interix[3-9]*)
17229 hardcode_direct=no
17230 hardcode_shlibpath_var=no
17231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17232 export_dynamic_flag_spec='${wl}-E'
17233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17234 # Instead, shared libraries are loaded at an image base (0x10000000 by
17235 # default) and relocated if they conflict, which is a slow very memory
17236 # consuming and fragmenting process. To avoid this, we pick a random,
17237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17240 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'
17243 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17244 tmp_diet=no
17245 if test "$host_os" = linux-dietlibc; then
17246 case $cc_basename in
17247 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17248 esac
17250 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17251 && test "$tmp_diet" = no
17252 then
17253 tmp_addflag=' $pic_flag'
17254 tmp_sharedflag='-shared'
17255 case $cc_basename,$host_cpu in
17256 pgcc*) # Portland Group C compiler
17257 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'
17258 tmp_addflag=' $pic_flag'
17260 pgf77* | pgf90* | pgf95* | pgfortran*)
17261 # Portland Group f77 and f90 compilers
17262 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'
17263 tmp_addflag=' $pic_flag -Mnomain' ;;
17264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17265 tmp_addflag=' -i_dynamic' ;;
17266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17267 tmp_addflag=' -i_dynamic -nofor_main' ;;
17268 ifc* | ifort*) # Intel Fortran compiler
17269 tmp_addflag=' -nofor_main' ;;
17270 lf95*) # Lahey Fortran 8.1
17271 whole_archive_flag_spec=
17272 tmp_sharedflag='--shared' ;;
17273 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17274 tmp_sharedflag='-qmkshrobj'
17275 tmp_addflag= ;;
17276 nvcc*) # Cuda Compiler Driver 2.2
17277 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'
17278 compiler_needs_object=yes
17280 esac
17281 case `$CC -V 2>&1 | sed 5q` in
17282 *Sun\ C*) # Sun C 5.9
17283 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'
17284 compiler_needs_object=yes
17285 tmp_sharedflag='-G' ;;
17286 *Sun\ F*) # Sun Fortran 8.3
17287 tmp_sharedflag='-G' ;;
17288 esac
17289 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17291 if test "x$supports_anon_versioning" = xyes; then
17292 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17294 echo "local: *; };" >> $output_objdir/$libname.ver~
17295 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17298 case $cc_basename in
17299 xlf* | bgf* | bgxlf* | mpixlf*)
17300 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17301 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17302 hardcode_libdir_flag_spec=
17303 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17304 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17305 if test "x$supports_anon_versioning" = xyes; then
17306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17308 echo "local: *; };" >> $output_objdir/$libname.ver~
17309 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17312 esac
17313 else
17314 ld_shlibs=no
17318 netbsd*)
17319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17320 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17321 wlarc=
17322 else
17323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17328 solaris*)
17329 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17330 ld_shlibs=no
17331 cat <<_LT_EOF 1>&2
17333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17334 *** create shared libraries on Solaris systems. Therefore, libtool
17335 *** is disabling shared libraries support. We urge you to upgrade GNU
17336 *** binutils to release 2.9.1 or newer. Another option is to modify
17337 *** your PATH or compiler configuration so that the native linker is
17338 *** used, and then restart.
17340 _LT_EOF
17341 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17344 else
17345 ld_shlibs=no
17349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17350 case `$LD -v 2>&1` in
17351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17352 ld_shlibs=no
17353 cat <<_LT_EOF 1>&2
17355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17356 *** reliably create shared libraries on SCO systems. Therefore, libtool
17357 *** is disabling shared libraries support. We urge you to upgrade GNU
17358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17359 *** your PATH or compiler configuration so that the native linker is
17360 *** used, and then restart.
17362 _LT_EOF
17365 # For security reasons, it is highly recommended that you always
17366 # use absolute paths for naming shared libraries, and exclude the
17367 # DT_RUNPATH tag from executables and libraries. But doing so
17368 # requires that you compile everything twice, which is a pain.
17369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17373 else
17374 ld_shlibs=no
17377 esac
17380 sunos4*)
17381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17382 wlarc=
17383 hardcode_direct=yes
17384 hardcode_shlibpath_var=no
17388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17391 else
17392 ld_shlibs=no
17395 esac
17397 if test "$ld_shlibs" = no; then
17398 runpath_var=
17399 hardcode_libdir_flag_spec=
17400 export_dynamic_flag_spec=
17401 whole_archive_flag_spec=
17403 else
17404 # PORTME fill in a description of your system's linker (not GNU ld)
17405 case $host_os in
17406 aix3*)
17407 allow_undefined_flag=unsupported
17408 always_export_symbols=yes
17409 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'
17410 # Note: this linker hardcodes the directories in LIBPATH if there
17411 # are no directories specified by -L.
17412 hardcode_minus_L=yes
17413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17414 # Neither direct hardcoding nor static linking is supported with a
17415 # broken collect2.
17416 hardcode_direct=unsupported
17420 aix[4-9]*)
17421 if test "$host_cpu" = ia64; then
17422 # On IA64, the linker does run time linking by default, so we don't
17423 # have to do anything special.
17424 aix_use_runtimelinking=no
17425 exp_sym_flag='-Bexport'
17426 no_entry_flag=""
17427 else
17428 # If we're using GNU nm, then we don't want the "-C" option.
17429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17430 # Also, AIX nm treats weak defined symbols like other global
17431 # defined symbols, whereas GNU nm marks them as "W".
17432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17433 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'
17434 else
17435 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'
17437 aix_use_runtimelinking=no
17439 # Test if we are trying to use run time linking or normal
17440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17441 # need to do runtime linking.
17442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17443 for ld_flag in $LDFLAGS; do
17444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17445 aix_use_runtimelinking=yes
17446 break
17448 done
17450 esac
17452 exp_sym_flag='-bexport'
17453 no_entry_flag='-bnoentry'
17456 # When large executables or shared objects are built, AIX ld can
17457 # have problems creating the table of contents. If linking a library
17458 # or program results in "error TOC overflow" add -mminimal-toc to
17459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17462 archive_cmds=''
17463 hardcode_direct=yes
17464 hardcode_direct_absolute=yes
17465 hardcode_libdir_separator=':'
17466 link_all_deplibs=yes
17467 file_list_spec='${wl}-f,'
17469 if test "$GCC" = yes; then
17470 case $host_os in aix4.[012]|aix4.[012].*)
17471 # We only want to do this on AIX 4.2 and lower, the check
17472 # below for broken collect2 doesn't work under 4.3+
17473 collect2name=`${CC} -print-prog-name=collect2`
17474 if test -f "$collect2name" &&
17475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17476 then
17477 # We have reworked collect2
17479 else
17480 # We have old collect2
17481 hardcode_direct=unsupported
17482 # It fails to find uninstalled libraries when the uninstalled
17483 # path is not listed in the libpath. Setting hardcode_minus_L
17484 # to unsupported forces relinking
17485 hardcode_minus_L=yes
17486 hardcode_libdir_flag_spec='-L$libdir'
17487 hardcode_libdir_separator=
17490 esac
17491 shared_flag='-shared'
17492 if test "$aix_use_runtimelinking" = yes; then
17493 shared_flag="$shared_flag "'${wl}-G'
17495 else
17496 # not using gcc
17497 if test "$host_cpu" = ia64; then
17498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17499 # chokes on -Wl,-G. The following line is correct:
17500 shared_flag='-G'
17501 else
17502 if test "$aix_use_runtimelinking" = yes; then
17503 shared_flag='${wl}-G'
17504 else
17505 shared_flag='${wl}-bM:SRE'
17510 export_dynamic_flag_spec='${wl}-bexpall'
17511 # It seems that -bexpall does not export symbols beginning with
17512 # underscore (_), so it is better to generate a list of symbols to export.
17513 always_export_symbols=yes
17514 if test "$aix_use_runtimelinking" = yes; then
17515 # Warning - without using the other runtime loading flags (-brtl),
17516 # -berok will link without error, but may produce a broken library.
17517 allow_undefined_flag='-berok'
17518 # Determine the default libpath from the value encoded in an
17519 # empty executable.
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17524 main ()
17528 return 0;
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17533 lt_aix_libpath_sed='
17534 /Import File Strings/,/^$/ {
17535 /^0/ {
17536 s/^0 *\(.*\)$/\1/
17540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17541 # Check for a 64-bit object if we didn't find anything.
17542 if test -z "$aix_libpath"; then
17543 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17550 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17551 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"
17552 else
17553 if test "$host_cpu" = ia64; then
17554 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17555 allow_undefined_flag="-z nodefs"
17556 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"
17557 else
17558 # Determine the default libpath from the value encoded in an
17559 # empty executable.
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17564 main ()
17568 return 0;
17570 _ACEOF
17571 if ac_fn_c_try_link "$LINENO"; then :
17573 lt_aix_libpath_sed='
17574 /Import File Strings/,/^$/ {
17575 /^0/ {
17576 s/^0 *\(.*\)$/\1/
17580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17581 # Check for a 64-bit object if we didn't find anything.
17582 if test -z "$aix_libpath"; then
17583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17586 rm -f core conftest.err conftest.$ac_objext \
17587 conftest$ac_exeext conftest.$ac_ext
17588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17591 # Warning - without using the other run time loading flags,
17592 # -berok will link without error, but may produce a broken library.
17593 no_undefined_flag=' ${wl}-bernotok'
17594 allow_undefined_flag=' ${wl}-berok'
17595 if test "$with_gnu_ld" = yes; then
17596 # We only use this code for GNU lds that support --whole-archive.
17597 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17598 else
17599 # Exported symbols can be pulled into shared objects from archives
17600 whole_archive_flag_spec='$convenience'
17602 archive_cmds_need_lc=yes
17603 # This is similar to how AIX traditionally builds its shared libraries.
17604 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'
17609 amigaos*)
17610 case $host_cpu in
17611 powerpc)
17612 # see comment about AmigaOS4 .so support
17613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614 archive_expsym_cmds=''
17616 m68k)
17617 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)'
17618 hardcode_libdir_flag_spec='-L$libdir'
17619 hardcode_minus_L=yes
17621 esac
17624 bsdi[45]*)
17625 export_dynamic_flag_spec=-rdynamic
17628 cygwin* | mingw* | pw32* | cegcc*)
17629 # When not using gcc, we currently assume that we are using
17630 # Microsoft Visual C++.
17631 # hardcode_libdir_flag_spec is actually meaningless, as there is
17632 # no search path for DLLs.
17633 hardcode_libdir_flag_spec=' '
17634 allow_undefined_flag=unsupported
17635 # Tell ltmain to make .lib files, not .a files.
17636 libext=lib
17637 # Tell ltmain to make .dll files, not .so files.
17638 shrext_cmds=".dll"
17639 # FIXME: Setting linknames here is a bad hack.
17640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17641 # The linker will automatically build a .lib file if we build a DLL.
17642 old_archive_from_new_cmds='true'
17643 # FIXME: Should let the user specify the lib program.
17644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17645 fix_srcfile_path='`cygpath -w "$srcfile"`'
17646 enable_shared_with_static_runtimes=yes
17649 darwin* | rhapsody*)
17652 archive_cmds_need_lc=no
17653 hardcode_direct=no
17654 hardcode_automatic=yes
17655 hardcode_shlibpath_var=unsupported
17656 if test "$lt_cv_ld_force_load" = "yes"; then
17657 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\"`'
17658 else
17659 whole_archive_flag_spec=''
17661 link_all_deplibs=yes
17662 allow_undefined_flag="$_lt_dar_allow_undefined"
17663 case $cc_basename in
17664 ifort*) _lt_dar_can_shared=yes ;;
17665 *) _lt_dar_can_shared=$GCC ;;
17666 esac
17667 if test "$_lt_dar_can_shared" = "yes"; then
17668 output_verbose_link_cmd=func_echo_all
17669 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17670 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17671 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}"
17672 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}"
17674 else
17675 ld_shlibs=no
17680 dgux*)
17681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_libdir_flag_spec='-L$libdir'
17683 hardcode_shlibpath_var=no
17686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17687 # support. Future versions do this automatically, but an explicit c++rt0.o
17688 # does not break anything, and helps significantly (at the cost of a little
17689 # extra space).
17690 freebsd2.2*)
17691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17692 hardcode_libdir_flag_spec='-R$libdir'
17693 hardcode_direct=yes
17694 hardcode_shlibpath_var=no
17697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17698 freebsd2.*)
17699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17700 hardcode_direct=yes
17701 hardcode_minus_L=yes
17702 hardcode_shlibpath_var=no
17705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17706 freebsd* | dragonfly*)
17707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17708 hardcode_libdir_flag_spec='-R$libdir'
17709 hardcode_direct=yes
17710 hardcode_shlibpath_var=no
17713 hpux9*)
17714 if test "$GCC" = yes; then
17715 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'
17716 else
17717 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'
17719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17720 hardcode_libdir_separator=:
17721 hardcode_direct=yes
17723 # hardcode_minus_L: Not really in the search PATH,
17724 # but as the default location of the library.
17725 hardcode_minus_L=yes
17726 export_dynamic_flag_spec='${wl}-E'
17729 hpux10*)
17730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17732 else
17733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17735 if test "$with_gnu_ld" = no; then
17736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17737 hardcode_libdir_flag_spec_ld='+b $libdir'
17738 hardcode_libdir_separator=:
17739 hardcode_direct=yes
17740 hardcode_direct_absolute=yes
17741 export_dynamic_flag_spec='${wl}-E'
17742 # hardcode_minus_L: Not really in the search PATH,
17743 # but as the default location of the library.
17744 hardcode_minus_L=yes
17748 hpux11*)
17749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17750 case $host_cpu in
17751 hppa*64*)
17752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17754 ia64*)
17755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17760 esac
17761 else
17762 case $host_cpu in
17763 hppa*64*)
17764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17766 ia64*)
17767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17771 # Older versions of the 11.00 compiler do not understand -b yet
17772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17774 $as_echo_n "checking if $CC understands -b... " >&6; }
17775 if ${lt_cv_prog_compiler__b+:} false; then :
17776 $as_echo_n "(cached) " >&6
17777 else
17778 lt_cv_prog_compiler__b=no
17779 save_LDFLAGS="$LDFLAGS"
17780 LDFLAGS="$LDFLAGS -b"
17781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17783 # The linker can only warn and ignore the option if not recognized
17784 # So say no if there are warnings
17785 if test -s conftest.err; then
17786 # Append any errors to the config.log.
17787 cat conftest.err 1>&5
17788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17790 if diff conftest.exp conftest.er2 >/dev/null; then
17791 lt_cv_prog_compiler__b=yes
17793 else
17794 lt_cv_prog_compiler__b=yes
17797 $RM -r conftest*
17798 LDFLAGS="$save_LDFLAGS"
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17804 if test x"$lt_cv_prog_compiler__b" = xyes; then
17805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17806 else
17807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17811 esac
17813 if test "$with_gnu_ld" = no; then
17814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17815 hardcode_libdir_separator=:
17817 case $host_cpu in
17818 hppa*64*|ia64*)
17819 hardcode_direct=no
17820 hardcode_shlibpath_var=no
17823 hardcode_direct=yes
17824 hardcode_direct_absolute=yes
17825 export_dynamic_flag_spec='${wl}-E'
17827 # hardcode_minus_L: Not really in the search PATH,
17828 # but as the default location of the library.
17829 hardcode_minus_L=yes
17831 esac
17835 irix5* | irix6* | nonstopux*)
17836 if test "$GCC" = yes; then
17837 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'
17838 # Try to use the -exported_symbol ld option, if it does not
17839 # work, assume that -exports_file does not work either and
17840 # implicitly export all symbols.
17841 save_LDFLAGS="$LDFLAGS"
17842 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17845 int foo(void) {}
17846 _ACEOF
17847 if ac_fn_c_try_link "$LINENO"; then :
17848 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'
17851 rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17853 LDFLAGS="$save_LDFLAGS"
17854 else
17855 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'
17856 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'
17858 archive_cmds_need_lc='no'
17859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17860 hardcode_libdir_separator=:
17861 inherit_rpath=yes
17862 link_all_deplibs=yes
17865 netbsd*)
17866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17868 else
17869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17871 hardcode_libdir_flag_spec='-R$libdir'
17872 hardcode_direct=yes
17873 hardcode_shlibpath_var=no
17876 newsos6)
17877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17878 hardcode_direct=yes
17879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17880 hardcode_libdir_separator=:
17881 hardcode_shlibpath_var=no
17884 *nto* | *qnx*)
17887 openbsd*)
17888 if test -f /usr/libexec/ld.so; then
17889 hardcode_direct=yes
17890 hardcode_shlibpath_var=no
17891 hardcode_direct_absolute=yes
17892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17896 export_dynamic_flag_spec='${wl}-E'
17897 else
17898 case $host_os in
17899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17901 hardcode_libdir_flag_spec='-R$libdir'
17904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17907 esac
17909 else
17910 ld_shlibs=no
17914 os2*)
17915 hardcode_libdir_flag_spec='-L$libdir'
17916 hardcode_minus_L=yes
17917 allow_undefined_flag=unsupported
17918 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'
17919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17922 osf3*)
17923 if test "$GCC" = yes; then
17924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17925 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'
17926 else
17927 allow_undefined_flag=' -expect_unresolved \*'
17928 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'
17930 archive_cmds_need_lc='no'
17931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17932 hardcode_libdir_separator=:
17935 osf4* | osf5*) # as osf3* with the addition of -msym flag
17936 if test "$GCC" = yes; then
17937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17938 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'
17939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17940 else
17941 allow_undefined_flag=' -expect_unresolved \*'
17942 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'
17943 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~
17944 $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'
17946 # Both c and cxx compiler support -rpath directly
17947 hardcode_libdir_flag_spec='-rpath $libdir'
17949 archive_cmds_need_lc='no'
17950 hardcode_libdir_separator=:
17953 solaris*)
17954 no_undefined_flag=' -z defs'
17955 if test "$GCC" = yes; then
17956 wlarc='${wl}'
17957 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17960 else
17961 case `$CC -V 2>&1` in
17962 *"Compilers 5.0"*)
17963 wlarc=''
17964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17969 wlarc='${wl}'
17970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17974 esac
17976 hardcode_libdir_flag_spec='-R$libdir'
17977 hardcode_shlibpath_var=no
17978 case $host_os in
17979 solaris2.[0-5] | solaris2.[0-5].*) ;;
17981 # The compiler driver will combine and reorder linker options,
17982 # but understands `-z linker_flag'. GCC discards it without `$wl',
17983 # but is careful enough not to reorder.
17984 # Supported since Solaris 2.6 (maybe 2.5.1?)
17985 if test "$GCC" = yes; then
17986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17987 else
17988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17991 esac
17992 link_all_deplibs=yes
17995 sunos4*)
17996 if test "x$host_vendor" = xsequent; then
17997 # Use $CC to link under sequent, because it throws in some extra .o
17998 # files that make .init and .fini sections work.
17999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18000 else
18001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18003 hardcode_libdir_flag_spec='-L$libdir'
18004 hardcode_direct=yes
18005 hardcode_minus_L=yes
18006 hardcode_shlibpath_var=no
18009 sysv4)
18010 case $host_vendor in
18011 sni)
18012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18013 hardcode_direct=yes # is this really true???
18015 siemens)
18016 ## LD is ld it makes a PLAMLIB
18017 ## CC just makes a GrossModule.
18018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18019 reload_cmds='$CC -r -o $output$reload_objs'
18020 hardcode_direct=no
18022 motorola)
18023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18026 esac
18027 runpath_var='LD_RUN_PATH'
18028 hardcode_shlibpath_var=no
18031 sysv4.3*)
18032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033 hardcode_shlibpath_var=no
18034 export_dynamic_flag_spec='-Bexport'
18037 sysv4*MP*)
18038 if test -d /usr/nec; then
18039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18040 hardcode_shlibpath_var=no
18041 runpath_var=LD_RUN_PATH
18042 hardcode_runpath_var=yes
18043 ld_shlibs=yes
18047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18048 no_undefined_flag='${wl}-z,text'
18049 archive_cmds_need_lc=no
18050 hardcode_shlibpath_var=no
18051 runpath_var='LD_RUN_PATH'
18053 if test "$GCC" = yes; then
18054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18056 else
18057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062 sysv5* | sco3.2v5* | sco5v6*)
18063 # Note: We can NOT use -z defs as we might desire, because we do not
18064 # link with -lc, and that would cause any symbols used from libc to
18065 # always be unresolved, which means just about no library would
18066 # ever link correctly. If we're not using GNU ld we use -z text
18067 # though, which does catch some bad symbols but isn't as heavy-handed
18068 # as -z defs.
18069 no_undefined_flag='${wl}-z,text'
18070 allow_undefined_flag='${wl}-z,nodefs'
18071 archive_cmds_need_lc=no
18072 hardcode_shlibpath_var=no
18073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18074 hardcode_libdir_separator=':'
18075 link_all_deplibs=yes
18076 export_dynamic_flag_spec='${wl}-Bexport'
18077 runpath_var='LD_RUN_PATH'
18079 if test "$GCC" = yes; then
18080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18082 else
18083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18088 uts4*)
18089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090 hardcode_libdir_flag_spec='-L$libdir'
18091 hardcode_shlibpath_var=no
18095 ld_shlibs=no
18097 esac
18099 if test x$host_vendor = xsni; then
18100 case $host in
18101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18102 export_dynamic_flag_spec='${wl}-Blargedynsym'
18104 esac
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18109 $as_echo "$ld_shlibs" >&6; }
18110 test "$ld_shlibs" = no && can_build_shared=no
18112 with_gnu_ld=$with_gnu_ld
18129 # Do we need to explicitly link libc?
18131 case "x$archive_cmds_need_lc" in
18132 x|xyes)
18133 # Assume -lc should be added
18134 archive_cmds_need_lc=yes
18136 if test "$enable_shared" = yes && test "$GCC" = yes; then
18137 case $archive_cmds in
18138 *'~'*)
18139 # FIXME: we may have to deal with multi-command sequences.
18141 '$CC '*)
18142 # Test whether the compiler implicitly links with -lc since on some
18143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18144 # to ld, don't add -lc before -lgcc.
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18147 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18150 $RM conftest*
18151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18154 (eval $ac_compile) 2>&5
18155 ac_status=$?
18156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18157 test $ac_status = 0; } 2>conftest.err; then
18158 soname=conftest
18159 lib=conftest
18160 libobjs=conftest.$ac_objext
18161 deplibs=
18162 wl=$lt_prog_compiler_wl
18163 pic_flag=$lt_prog_compiler_pic
18164 compiler_flags=-v
18165 linker_flags=-v
18166 verstring=
18167 output_objdir=.
18168 libname=conftest
18169 lt_save_allow_undefined_flag=$allow_undefined_flag
18170 allow_undefined_flag=
18171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18173 ac_status=$?
18174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18175 test $ac_status = 0; }
18176 then
18177 lt_cv_archive_cmds_need_lc=no
18178 else
18179 lt_cv_archive_cmds_need_lc=yes
18181 allow_undefined_flag=$lt_save_allow_undefined_flag
18182 else
18183 cat conftest.err 1>&5
18185 $RM conftest*
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18192 esac
18195 esac
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18356 if test "$GCC" = yes; then
18357 case $host_os in
18358 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18359 *) lt_awk_arg="/^libraries:/" ;;
18360 esac
18361 case $host_os in
18362 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18363 *) lt_sed_strip_eq="s,=/,/,g" ;;
18364 esac
18365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18366 case $lt_search_path_spec in
18367 *\;*)
18368 # if the path contains ";" then we assume it to be the separator
18369 # otherwise default to the standard path separator (i.e. ":") - it is
18370 # assumed that no part of a normal pathname contains ";" but that should
18371 # okay in the real world where ";" in dirpaths is itself problematic.
18372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18377 esac
18378 # Ok, now we have the path, separated by spaces, we can step through it
18379 # and add multilib dir if necessary.
18380 lt_tmp_lt_search_path_spec=
18381 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18382 for lt_sys_path in $lt_search_path_spec; do
18383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18385 else
18386 test -d "$lt_sys_path" && \
18387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18389 done
18390 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18391 BEGIN {RS=" "; FS="/|\n";} {
18392 lt_foo="";
18393 lt_count=0;
18394 for (lt_i = NF; lt_i > 0; lt_i--) {
18395 if ($lt_i != "" && $lt_i != ".") {
18396 if ($lt_i == "..") {
18397 lt_count++;
18398 } else {
18399 if (lt_count == 0) {
18400 lt_foo="/" $lt_i lt_foo;
18401 } else {
18402 lt_count--;
18407 if (lt_foo != "") { lt_freq[lt_foo]++; }
18408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18410 # AWK program above erroneously prepends '/' to C:/dos/paths
18411 # for these hosts.
18412 case $host_os in
18413 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18415 esac
18416 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18417 else
18418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18420 library_names_spec=
18421 libname_spec='lib$name'
18422 soname_spec=
18423 shrext_cmds=".so"
18424 postinstall_cmds=
18425 postuninstall_cmds=
18426 finish_cmds=
18427 finish_eval=
18428 shlibpath_var=
18429 shlibpath_overrides_runpath=unknown
18430 version_type=none
18431 dynamic_linker="$host_os ld.so"
18432 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18433 need_lib_prefix=unknown
18434 hardcode_into_libs=no
18436 # when you set need_version to no, make sure it does not cause -set_version
18437 # flags to be left without arguments
18438 need_version=unknown
18440 case $host_os in
18441 aix3*)
18442 version_type=linux
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18444 shlibpath_var=LIBPATH
18446 # AIX 3 has no versioning support, so we append a major version to the name.
18447 soname_spec='${libname}${release}${shared_ext}$major'
18450 aix[4-9]*)
18451 version_type=linux
18452 need_lib_prefix=no
18453 need_version=no
18454 hardcode_into_libs=yes
18455 if test "$host_cpu" = ia64; then
18456 # AIX 5 supports IA64
18457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 else
18460 # With GCC up to 2.95.x, collect2 would create an import file
18461 # for dependence libraries. The import file would start with
18462 # the line `#! .'. This would cause the generated library to
18463 # depend on `.', always an invalid library. This was fixed in
18464 # development snapshots of GCC prior to 3.0.
18465 case $host_os in
18466 aix4 | aix4.[01] | aix4.[01].*)
18467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18468 echo ' yes '
18469 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18471 else
18472 can_build_shared=no
18475 esac
18476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18477 # soname into executable. Probably we can add versioning support to
18478 # collect2, so additional links can be useful in future.
18479 if test "$aix_use_runtimelinking" = yes; then
18480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18481 # instead of lib<name>.a to let people know that these are not
18482 # typical AIX shared libraries.
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484 else
18485 # We preserve .a as extension for shared libraries through AIX4.2
18486 # and later when we are not doing run time linking.
18487 library_names_spec='${libname}${release}.a $libname.a'
18488 soname_spec='${libname}${release}${shared_ext}$major'
18490 shlibpath_var=LIBPATH
18494 amigaos*)
18495 case $host_cpu in
18496 powerpc)
18497 # Since July 2007 AmigaOS4 officially supports .so libraries.
18498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18501 m68k)
18502 library_names_spec='$libname.ixlibrary $libname.a'
18503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18504 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'
18506 esac
18509 beos*)
18510 library_names_spec='${libname}${shared_ext}'
18511 dynamic_linker="$host_os ld.so"
18512 shlibpath_var=LIBRARY_PATH
18515 bsdi[45]*)
18516 version_type=linux
18517 need_version=no
18518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18519 soname_spec='${libname}${release}${shared_ext}$major'
18520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18521 shlibpath_var=LD_LIBRARY_PATH
18522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18524 # the default ld.so.conf also contains /usr/contrib/lib and
18525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18526 # libtool to hard-code these into programs
18529 cygwin* | mingw* | pw32* | cegcc*)
18530 version_type=windows
18531 shrext_cmds=".dll"
18532 need_version=no
18533 need_lib_prefix=no
18535 case $GCC,$host_os in
18536 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18537 library_names_spec='$libname.dll.a'
18538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18539 postinstall_cmds='base_file=`basename \${file}`~
18540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18541 dldir=$destdir/`dirname \$dlpath`~
18542 test -d \$dldir || mkdir -p \$dldir~
18543 $install_prog $dir/$dlname \$dldir/$dlname~
18544 chmod a+x \$dldir/$dlname~
18545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18549 dlpath=$dir/\$dldll~
18550 $RM \$dlpath'
18551 shlibpath_overrides_runpath=yes
18553 case $host_os in
18554 cygwin*)
18555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18560 mingw* | cegcc*)
18561 # MinGW DLLs use traditional 'lib' prefix
18562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18564 pw32*)
18565 # pw32 DLLs use 'pw' prefix rather than 'lib'
18566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18568 esac
18572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18574 esac
18575 dynamic_linker='Win32 ld.exe'
18576 # FIXME: first we should search . and the directory the executable is in
18577 shlibpath_var=PATH
18580 darwin* | rhapsody*)
18581 dynamic_linker="$host_os dyld"
18582 version_type=darwin
18583 need_lib_prefix=no
18584 need_version=no
18585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18586 soname_spec='${libname}${release}${major}$shared_ext'
18587 shlibpath_overrides_runpath=yes
18588 shlibpath_var=DYLD_LIBRARY_PATH
18589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18595 dgux*)
18596 version_type=linux
18597 need_lib_prefix=no
18598 need_version=no
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 shlibpath_var=LD_LIBRARY_PATH
18604 freebsd* | dragonfly*)
18605 # DragonFly does not have aout. When/if they implement a new
18606 # versioning mechanism, adjust this.
18607 if test -x /usr/bin/objformat; then
18608 objformat=`/usr/bin/objformat`
18609 else
18610 case $host_os in
18611 freebsd[23].*) objformat=aout ;;
18612 *) objformat=elf ;;
18613 esac
18615 version_type=freebsd-$objformat
18616 case $version_type in
18617 freebsd-elf*)
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18619 need_version=no
18620 need_lib_prefix=no
18622 freebsd-*)
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18624 need_version=yes
18626 esac
18627 shlibpath_var=LD_LIBRARY_PATH
18628 case $host_os in
18629 freebsd2.*)
18630 shlibpath_overrides_runpath=yes
18632 freebsd3.[01]* | freebsdelf3.[01]*)
18633 shlibpath_overrides_runpath=yes
18634 hardcode_into_libs=yes
18636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18638 shlibpath_overrides_runpath=no
18639 hardcode_into_libs=yes
18641 *) # from 4.6 on, and DragonFly
18642 shlibpath_overrides_runpath=yes
18643 hardcode_into_libs=yes
18645 esac
18648 haiku*)
18649 version_type=linux
18650 need_lib_prefix=no
18651 need_version=no
18652 dynamic_linker="$host_os runtime_loader"
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 shlibpath_var=LIBRARY_PATH
18656 shlibpath_overrides_runpath=yes
18657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18658 hardcode_into_libs=yes
18661 hpux9* | hpux10* | hpux11*)
18662 # Give a soname corresponding to the major version so that dld.sl refuses to
18663 # link against other versions.
18664 version_type=sunos
18665 need_lib_prefix=no
18666 need_version=no
18667 case $host_cpu in
18668 ia64*)
18669 shrext_cmds='.so'
18670 hardcode_into_libs=yes
18671 dynamic_linker="$host_os dld.so"
18672 shlibpath_var=LD_LIBRARY_PATH
18673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 if test "X$HPUX_IA64_MODE" = X32; then
18677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18678 else
18679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18683 hppa*64*)
18684 shrext_cmds='.sl'
18685 hardcode_into_libs=yes
18686 dynamic_linker="$host_os dld.sl"
18687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18695 shrext_cmds='.sl'
18696 dynamic_linker="$host_os dld.sl"
18697 shlibpath_var=SHLIB_PATH
18698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 soname_spec='${libname}${release}${shared_ext}$major'
18702 esac
18703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18704 postinstall_cmds='chmod 555 $lib'
18705 # or fails outright, so override atomically:
18706 install_override_mode=555
18709 interix[3-9]*)
18710 version_type=linux
18711 need_lib_prefix=no
18712 need_version=no
18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18714 soname_spec='${libname}${release}${shared_ext}$major'
18715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18716 shlibpath_var=LD_LIBRARY_PATH
18717 shlibpath_overrides_runpath=no
18718 hardcode_into_libs=yes
18721 irix5* | irix6* | nonstopux*)
18722 case $host_os in
18723 nonstopux*) version_type=nonstopux ;;
18725 if test "$lt_cv_prog_gnu_ld" = yes; then
18726 version_type=linux
18727 else
18728 version_type=irix
18729 fi ;;
18730 esac
18731 need_lib_prefix=no
18732 need_version=no
18733 soname_spec='${libname}${release}${shared_ext}$major'
18734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18735 case $host_os in
18736 irix5* | nonstopux*)
18737 libsuff= shlibsuff=
18740 case $LD in # libtool.m4 will add one of these switches to LD
18741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18742 libsuff= shlibsuff= libmagic=32-bit;;
18743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18744 libsuff=32 shlibsuff=N32 libmagic=N32;;
18745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18747 *) libsuff= shlibsuff= libmagic=never-match;;
18748 esac
18750 esac
18751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18752 shlibpath_overrides_runpath=no
18753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18755 hardcode_into_libs=yes
18758 # No shared lib support for Linux oldld, aout, or coff.
18759 linux*oldld* | linux*aout* | linux*coff*)
18760 dynamic_linker=no
18763 # This must be Linux ELF.
18765 # uclinux* changes (here and below) have been submitted to the libtool
18766 # project, but have not yet been accepted: they are GCC-local changes
18767 # for the time being. (See
18768 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18769 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18770 version_type=linux
18771 need_lib_prefix=no
18772 need_version=no
18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 shlibpath_overrides_runpath=no
18779 # Some binutils ld are patched to set DT_RUNPATH
18780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18781 $as_echo_n "(cached) " >&6
18782 else
18783 lt_cv_shlibpath_overrides_runpath=no
18784 save_LDFLAGS=$LDFLAGS
18785 save_libdir=$libdir
18786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18792 main ()
18796 return 0;
18798 _ACEOF
18799 if ac_fn_c_try_link "$LINENO"; then :
18800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18801 lt_cv_shlibpath_overrides_runpath=yes
18804 rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18806 LDFLAGS=$save_LDFLAGS
18807 libdir=$save_libdir
18811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18813 # This implies no fast_install, which is unacceptable.
18814 # Some rework will be needed to allow for fast_install
18815 # before this can be enabled.
18816 hardcode_into_libs=yes
18818 # Append ld.so.conf contents to the search path
18819 if test -f /etc/ld.so.conf; then
18820 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' ' '`
18821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18824 # We used to test for /lib/ld.so.1 and disable shared libraries on
18825 # powerpc, because MkLinux only supported shared libraries with the
18826 # GNU dynamic linker. Since this was broken with cross compilers,
18827 # most powerpc-linux boxes support dynamic linking these days and
18828 # people can always --disable-shared, the test was removed, and we
18829 # assume the GNU/Linux dynamic linker is in use.
18830 dynamic_linker='GNU/Linux ld.so'
18833 netbsd*)
18834 version_type=sunos
18835 need_lib_prefix=no
18836 need_version=no
18837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18840 dynamic_linker='NetBSD (a.out) ld.so'
18841 else
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18843 soname_spec='${libname}${release}${shared_ext}$major'
18844 dynamic_linker='NetBSD ld.elf_so'
18846 shlibpath_var=LD_LIBRARY_PATH
18847 shlibpath_overrides_runpath=yes
18848 hardcode_into_libs=yes
18851 newsos6)
18852 version_type=linux
18853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 shlibpath_overrides_runpath=yes
18858 *nto* | *qnx*)
18859 version_type=qnx
18860 need_lib_prefix=no
18861 need_version=no
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 shlibpath_overrides_runpath=no
18866 hardcode_into_libs=yes
18867 dynamic_linker='ldqnx.so'
18870 openbsd*)
18871 version_type=sunos
18872 sys_lib_dlsearch_path_spec="/usr/lib"
18873 need_lib_prefix=no
18874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18875 case $host_os in
18876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18877 *) need_version=no ;;
18878 esac
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18881 shlibpath_var=LD_LIBRARY_PATH
18882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18883 case $host_os in
18884 openbsd2.[89] | openbsd2.[89].*)
18885 shlibpath_overrides_runpath=no
18888 shlibpath_overrides_runpath=yes
18890 esac
18891 else
18892 shlibpath_overrides_runpath=yes
18896 os2*)
18897 libname_spec='$name'
18898 shrext_cmds=".dll"
18899 need_lib_prefix=no
18900 library_names_spec='$libname${shared_ext} $libname.a'
18901 dynamic_linker='OS/2 ld.exe'
18902 shlibpath_var=LIBPATH
18905 osf3* | osf4* | osf5*)
18906 version_type=osf
18907 need_lib_prefix=no
18908 need_version=no
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911 shlibpath_var=LD_LIBRARY_PATH
18912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18916 rdos*)
18917 dynamic_linker=no
18920 solaris*)
18921 version_type=linux
18922 need_lib_prefix=no
18923 need_version=no
18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 shlibpath_var=LD_LIBRARY_PATH
18927 shlibpath_overrides_runpath=yes
18928 hardcode_into_libs=yes
18929 # ldd complains unless libraries are executable
18930 postinstall_cmds='chmod +x $lib'
18933 sunos4*)
18934 version_type=sunos
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18937 shlibpath_var=LD_LIBRARY_PATH
18938 shlibpath_overrides_runpath=yes
18939 if test "$with_gnu_ld" = yes; then
18940 need_lib_prefix=no
18942 need_version=yes
18945 sysv4 | sysv4.3*)
18946 version_type=linux
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 shlibpath_var=LD_LIBRARY_PATH
18950 case $host_vendor in
18951 sni)
18952 shlibpath_overrides_runpath=no
18953 need_lib_prefix=no
18954 runpath_var=LD_RUN_PATH
18956 siemens)
18957 need_lib_prefix=no
18959 motorola)
18960 need_lib_prefix=no
18961 need_version=no
18962 shlibpath_overrides_runpath=no
18963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18965 esac
18968 sysv4*MP*)
18969 if test -d /usr/nec ;then
18970 version_type=linux
18971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18972 soname_spec='$libname${shared_ext}.$major'
18973 shlibpath_var=LD_LIBRARY_PATH
18977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18978 version_type=freebsd-elf
18979 need_lib_prefix=no
18980 need_version=no
18981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18982 soname_spec='${libname}${release}${shared_ext}$major'
18983 shlibpath_var=LD_LIBRARY_PATH
18984 shlibpath_overrides_runpath=yes
18985 hardcode_into_libs=yes
18986 if test "$with_gnu_ld" = yes; then
18987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18988 else
18989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18990 case $host_os in
18991 sco3.2v5*)
18992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18994 esac
18996 sys_lib_dlsearch_path_spec='/usr/lib'
18999 tpf*)
19000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19001 version_type=linux
19002 need_lib_prefix=no
19003 need_version=no
19004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19005 shlibpath_var=LD_LIBRARY_PATH
19006 shlibpath_overrides_runpath=no
19007 hardcode_into_libs=yes
19010 uts4*)
19011 version_type=linux
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 shlibpath_var=LD_LIBRARY_PATH
19018 dynamic_linker=no
19020 esac
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19022 $as_echo "$dynamic_linker" >&6; }
19023 test "$dynamic_linker" = no && can_build_shared=no
19025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19026 if test "$GCC" = yes; then
19027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19031 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19033 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19129 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19130 hardcode_action=
19131 if test -n "$hardcode_libdir_flag_spec" ||
19132 test -n "$runpath_var" ||
19133 test "X$hardcode_automatic" = "Xyes" ; then
19135 # We can hardcode non-existent directories.
19136 if test "$hardcode_direct" != no &&
19137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19138 # have to relink, otherwise we might link with an installed library
19139 # when we should be linking with a yet-to-be-installed one
19140 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19141 test "$hardcode_minus_L" != no; then
19142 # Linking always hardcodes the temporary library directory.
19143 hardcode_action=relink
19144 else
19145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19146 hardcode_action=immediate
19148 else
19149 # We cannot hardcode anything, or else we can only hardcode existing
19150 # directories.
19151 hardcode_action=unsupported
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19154 $as_echo "$hardcode_action" >&6; }
19156 if test "$hardcode_action" = relink ||
19157 test "$inherit_rpath" = yes; then
19158 # Fast installation is not supported
19159 enable_fast_install=no
19160 elif test "$shlibpath_overrides_runpath" = yes ||
19161 test "$enable_shared" = no; then
19162 # Fast installation is not necessary
19163 enable_fast_install=needless
19171 if test "x$enable_dlopen" != xyes; then
19172 enable_dlopen=unknown
19173 enable_dlopen_self=unknown
19174 enable_dlopen_self_static=unknown
19175 else
19176 lt_cv_dlopen=no
19177 lt_cv_dlopen_libs=
19179 case $host_os in
19180 beos*)
19181 lt_cv_dlopen="load_add_on"
19182 lt_cv_dlopen_libs=
19183 lt_cv_dlopen_self=yes
19186 mingw* | pw32* | cegcc*)
19187 lt_cv_dlopen="LoadLibrary"
19188 lt_cv_dlopen_libs=
19191 cygwin*)
19192 lt_cv_dlopen="dlopen"
19193 lt_cv_dlopen_libs=
19196 darwin*)
19197 # if libdl is installed we need to link against it
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19199 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19200 if ${ac_cv_lib_dl_dlopen+:} false; then :
19201 $as_echo_n "(cached) " >&6
19202 else
19203 ac_check_lib_save_LIBS=$LIBS
19204 LIBS="-ldl $LIBS"
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h. */
19208 /* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 char dlopen ();
19216 main ()
19218 return dlopen ();
19220 return 0;
19222 _ACEOF
19223 if ac_fn_c_try_link "$LINENO"; then :
19224 ac_cv_lib_dl_dlopen=yes
19225 else
19226 ac_cv_lib_dl_dlopen=no
19228 rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_lib_save_LIBS
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19234 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19236 else
19238 lt_cv_dlopen="dyld"
19239 lt_cv_dlopen_libs=
19240 lt_cv_dlopen_self=yes
19247 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19248 if test "x$ac_cv_func_shl_load" = xyes; then :
19249 lt_cv_dlopen="shl_load"
19250 else
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19252 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19253 if ${ac_cv_lib_dld_shl_load+:} false; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256 ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-ldld $LIBS"
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char shl_load ();
19269 main ()
19271 return shl_load ();
19273 return 0;
19275 _ACEOF
19276 if ac_fn_c_try_link "$LINENO"; then :
19277 ac_cv_lib_dld_shl_load=yes
19278 else
19279 ac_cv_lib_dld_shl_load=no
19281 rm -f core conftest.err conftest.$ac_objext \
19282 conftest$ac_exeext conftest.$ac_ext
19283 LIBS=$ac_check_lib_save_LIBS
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19286 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19287 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19289 else
19290 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19291 if test "x$ac_cv_func_dlopen" = xyes; then :
19292 lt_cv_dlopen="dlopen"
19293 else
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19295 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19296 if ${ac_cv_lib_dl_dlopen+:} false; then :
19297 $as_echo_n "(cached) " >&6
19298 else
19299 ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-ldl $LIBS"
19301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302 /* end confdefs.h. */
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19307 #ifdef __cplusplus
19308 extern "C"
19309 #endif
19310 char dlopen ();
19312 main ()
19314 return dlopen ();
19316 return 0;
19318 _ACEOF
19319 if ac_fn_c_try_link "$LINENO"; then :
19320 ac_cv_lib_dl_dlopen=yes
19321 else
19322 ac_cv_lib_dl_dlopen=no
19324 rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19326 LIBS=$ac_check_lib_save_LIBS
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19329 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19330 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19332 else
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19334 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19335 if ${ac_cv_lib_svld_dlopen+:} false; then :
19336 $as_echo_n "(cached) " >&6
19337 else
19338 ac_check_lib_save_LIBS=$LIBS
19339 LIBS="-lsvld $LIBS"
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char dlopen ();
19351 main ()
19353 return dlopen ();
19355 return 0;
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"; then :
19359 ac_cv_lib_svld_dlopen=yes
19360 else
19361 ac_cv_lib_svld_dlopen=no
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19368 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19369 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19371 else
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19373 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19374 if ${ac_cv_lib_dld_dld_link+:} false; then :
19375 $as_echo_n "(cached) " >&6
19376 else
19377 ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-ldld $LIBS"
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19382 /* Override any GCC internal prototype to avoid an error.
19383 Use char because int might match the return type of a GCC
19384 builtin and then its argument prototype would still apply. */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char dld_link ();
19390 main ()
19392 return dld_link ();
19394 return 0;
19396 _ACEOF
19397 if ac_fn_c_try_link "$LINENO"; then :
19398 ac_cv_lib_dld_dld_link=yes
19399 else
19400 ac_cv_lib_dld_dld_link=no
19402 rm -f core conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19407 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19408 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19428 esac
19430 if test "x$lt_cv_dlopen" != xno; then
19431 enable_dlopen=yes
19432 else
19433 enable_dlopen=no
19436 case $lt_cv_dlopen in
19437 dlopen)
19438 save_CPPFLAGS="$CPPFLAGS"
19439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19441 save_LDFLAGS="$LDFLAGS"
19442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19444 save_LIBS="$LIBS"
19445 LIBS="$lt_cv_dlopen_libs $LIBS"
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19448 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19449 if ${lt_cv_dlopen_self+:} false; then :
19450 $as_echo_n "(cached) " >&6
19451 else
19452 if test "$cross_compiling" = yes; then :
19453 lt_cv_dlopen_self=cross
19454 else
19455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19456 lt_status=$lt_dlunknown
19457 cat > conftest.$ac_ext <<_LT_EOF
19458 #line 19458 "configure"
19459 #include "confdefs.h"
19461 #if HAVE_DLFCN_H
19462 #include <dlfcn.h>
19463 #endif
19465 #include <stdio.h>
19467 #ifdef RTLD_GLOBAL
19468 # define LT_DLGLOBAL RTLD_GLOBAL
19469 #else
19470 # ifdef DL_GLOBAL
19471 # define LT_DLGLOBAL DL_GLOBAL
19472 # else
19473 # define LT_DLGLOBAL 0
19474 # endif
19475 #endif
19477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19478 find out it does not work in some platform. */
19479 #ifndef LT_DLLAZY_OR_NOW
19480 # ifdef RTLD_LAZY
19481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19482 # else
19483 # ifdef DL_LAZY
19484 # define LT_DLLAZY_OR_NOW DL_LAZY
19485 # else
19486 # ifdef RTLD_NOW
19487 # define LT_DLLAZY_OR_NOW RTLD_NOW
19488 # else
19489 # ifdef DL_NOW
19490 # define LT_DLLAZY_OR_NOW DL_NOW
19491 # else
19492 # define LT_DLLAZY_OR_NOW 0
19493 # endif
19494 # endif
19495 # endif
19496 # endif
19497 #endif
19499 /* When -fvisbility=hidden is used, assume the code has been annotated
19500 correspondingly for the symbols needed. */
19501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19502 void fnord () __attribute__((visibility("default")));
19503 #endif
19505 void fnord () { int i=42; }
19506 int main ()
19508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19509 int status = $lt_dlunknown;
19511 if (self)
19513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19514 else
19516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19517 else puts (dlerror ());
19519 /* dlclose (self); */
19521 else
19522 puts (dlerror ());
19524 return status;
19526 _LT_EOF
19527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19528 (eval $ac_link) 2>&5
19529 ac_status=$?
19530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19532 (./conftest; exit; ) >&5 2>/dev/null
19533 lt_status=$?
19534 case x$lt_status in
19535 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19536 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19537 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19538 esac
19539 else :
19540 # compilation failed
19541 lt_cv_dlopen_self=no
19544 rm -fr conftest*
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19549 $as_echo "$lt_cv_dlopen_self" >&6; }
19551 if test "x$lt_cv_dlopen_self" = xyes; then
19552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19554 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19555 if ${lt_cv_dlopen_self_static+:} false; then :
19556 $as_echo_n "(cached) " >&6
19557 else
19558 if test "$cross_compiling" = yes; then :
19559 lt_cv_dlopen_self_static=cross
19560 else
19561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19562 lt_status=$lt_dlunknown
19563 cat > conftest.$ac_ext <<_LT_EOF
19564 #line 19564 "configure"
19565 #include "confdefs.h"
19567 #if HAVE_DLFCN_H
19568 #include <dlfcn.h>
19569 #endif
19571 #include <stdio.h>
19573 #ifdef RTLD_GLOBAL
19574 # define LT_DLGLOBAL RTLD_GLOBAL
19575 #else
19576 # ifdef DL_GLOBAL
19577 # define LT_DLGLOBAL DL_GLOBAL
19578 # else
19579 # define LT_DLGLOBAL 0
19580 # endif
19581 #endif
19583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19584 find out it does not work in some platform. */
19585 #ifndef LT_DLLAZY_OR_NOW
19586 # ifdef RTLD_LAZY
19587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19588 # else
19589 # ifdef DL_LAZY
19590 # define LT_DLLAZY_OR_NOW DL_LAZY
19591 # else
19592 # ifdef RTLD_NOW
19593 # define LT_DLLAZY_OR_NOW RTLD_NOW
19594 # else
19595 # ifdef DL_NOW
19596 # define LT_DLLAZY_OR_NOW DL_NOW
19597 # else
19598 # define LT_DLLAZY_OR_NOW 0
19599 # endif
19600 # endif
19601 # endif
19602 # endif
19603 #endif
19605 /* When -fvisbility=hidden is used, assume the code has been annotated
19606 correspondingly for the symbols needed. */
19607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19608 void fnord () __attribute__((visibility("default")));
19609 #endif
19611 void fnord () { int i=42; }
19612 int main ()
19614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19615 int status = $lt_dlunknown;
19617 if (self)
19619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19620 else
19622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19623 else puts (dlerror ());
19625 /* dlclose (self); */
19627 else
19628 puts (dlerror ());
19630 return status;
19632 _LT_EOF
19633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19634 (eval $ac_link) 2>&5
19635 ac_status=$?
19636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19638 (./conftest; exit; ) >&5 2>/dev/null
19639 lt_status=$?
19640 case x$lt_status in
19641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19644 esac
19645 else :
19646 # compilation failed
19647 lt_cv_dlopen_self_static=no
19650 rm -fr conftest*
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19655 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19658 CPPFLAGS="$save_CPPFLAGS"
19659 LDFLAGS="$save_LDFLAGS"
19660 LIBS="$save_LIBS"
19662 esac
19664 case $lt_cv_dlopen_self in
19665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19666 *) enable_dlopen_self=unknown ;;
19667 esac
19669 case $lt_cv_dlopen_self_static in
19670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19671 *) enable_dlopen_self_static=unknown ;;
19672 esac
19691 striplib=
19692 old_striplib=
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19694 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19695 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19699 $as_echo "yes" >&6; }
19700 else
19701 # FIXME - insert some real tests, host_os isn't really good enough
19702 case $host_os in
19703 darwin*)
19704 if test -n "$STRIP" ; then
19705 striplib="$STRIP -x"
19706 old_striplib="$STRIP -S"
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19708 $as_echo "yes" >&6; }
19709 else
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19711 $as_echo "no" >&6; }
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19716 $as_echo "no" >&6; }
19718 esac
19732 # Report which library types will actually be built
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19734 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19736 $as_echo "$can_build_shared" >&6; }
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19739 $as_echo_n "checking whether to build shared libraries... " >&6; }
19740 test "$can_build_shared" = "no" && enable_shared=no
19742 # On AIX, shared libraries and static libraries use the same namespace, and
19743 # are all built from PIC.
19744 case $host_os in
19745 aix3*)
19746 test "$enable_shared" = yes && enable_static=no
19747 if test -n "$RANLIB"; then
19748 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19749 postinstall_cmds='$RANLIB $lib'
19753 aix[4-9]*)
19754 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19755 test "$enable_shared" = yes && enable_static=no
19758 esac
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19760 $as_echo "$enable_shared" >&6; }
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19763 $as_echo_n "checking whether to build static libraries... " >&6; }
19764 # Make sure either enable_shared or enable_static is yes.
19765 test "$enable_shared" = yes || enable_static=yes
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19767 $as_echo "$enable_static" >&6; }
19773 ac_ext=cpp
19774 ac_cpp='$CXXCPP $CPPFLAGS'
19775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19779 CC="$lt_save_CC"
19781 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19782 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19783 (test "X$CXX" != "Xg++"))) ; then
19784 ac_ext=cpp
19785 ac_cpp='$CXXCPP $CPPFLAGS'
19786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19790 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19791 if test -z "$CXXCPP"; then
19792 if ${ac_cv_prog_CXXCPP+:} false; then :
19793 $as_echo_n "(cached) " >&6
19794 else
19795 # Double quotes because CXXCPP needs to be expanded
19796 for CXXCPP in "$CXX -E" "/lib/cpp"
19798 ac_preproc_ok=false
19799 for ac_cxx_preproc_warn_flag in '' yes
19801 # Use a header file that comes with gcc, so configuring glibc
19802 # with a fresh cross-compiler works.
19803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19804 # <limits.h> exists even on freestanding compilers.
19805 # On the NeXT, cc -E runs the code through the compiler's parser,
19806 # not just through cpp. "Syntax error" is here to catch this case.
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19809 #ifdef __STDC__
19810 # include <limits.h>
19811 #else
19812 # include <assert.h>
19813 #endif
19814 Syntax error
19815 _ACEOF
19816 if ac_fn_cxx_try_cpp "$LINENO"; then :
19818 else
19819 # Broken: fails on valid input.
19820 continue
19822 rm -f conftest.err conftest.i conftest.$ac_ext
19824 # OK, works on sane cases. Now check whether nonexistent headers
19825 # can be detected and how.
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19828 #include <ac_nonexistent.h>
19829 _ACEOF
19830 if ac_fn_cxx_try_cpp "$LINENO"; then :
19831 # Broken: success on invalid input.
19832 continue
19833 else
19834 # Passes both tests.
19835 ac_preproc_ok=:
19836 break
19838 rm -f conftest.err conftest.i conftest.$ac_ext
19840 done
19841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19842 rm -f conftest.i conftest.err conftest.$ac_ext
19843 if $ac_preproc_ok; then :
19844 break
19847 done
19848 ac_cv_prog_CXXCPP=$CXXCPP
19851 CXXCPP=$ac_cv_prog_CXXCPP
19852 else
19853 ac_cv_prog_CXXCPP=$CXXCPP
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19856 $as_echo "$CXXCPP" >&6; }
19857 ac_preproc_ok=false
19858 for ac_cxx_preproc_warn_flag in '' yes
19860 # Use a header file that comes with gcc, so configuring glibc
19861 # with a fresh cross-compiler works.
19862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19863 # <limits.h> exists even on freestanding compilers.
19864 # On the NeXT, cc -E runs the code through the compiler's parser,
19865 # not just through cpp. "Syntax error" is here to catch this case.
19866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19868 #ifdef __STDC__
19869 # include <limits.h>
19870 #else
19871 # include <assert.h>
19872 #endif
19873 Syntax error
19874 _ACEOF
19875 if ac_fn_cxx_try_cpp "$LINENO"; then :
19877 else
19878 # Broken: fails on valid input.
19879 continue
19881 rm -f conftest.err conftest.i conftest.$ac_ext
19883 # OK, works on sane cases. Now check whether nonexistent headers
19884 # can be detected and how.
19885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19887 #include <ac_nonexistent.h>
19888 _ACEOF
19889 if ac_fn_cxx_try_cpp "$LINENO"; then :
19890 # Broken: success on invalid input.
19891 continue
19892 else
19893 # Passes both tests.
19894 ac_preproc_ok=:
19895 break
19897 rm -f conftest.err conftest.i conftest.$ac_ext
19899 done
19900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19901 rm -f conftest.i conftest.err conftest.$ac_ext
19902 if $ac_preproc_ok; then :
19904 else
19905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19907 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19908 See \`config.log' for more details" "$LINENO" 5; }
19911 ac_ext=cpp
19912 ac_cpp='$CXXCPP $CPPFLAGS'
19913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19917 else
19918 _lt_caught_CXX_error=yes
19921 ac_ext=cpp
19922 ac_cpp='$CXXCPP $CPPFLAGS'
19923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19927 archive_cmds_need_lc_CXX=no
19928 allow_undefined_flag_CXX=
19929 always_export_symbols_CXX=no
19930 archive_expsym_cmds_CXX=
19931 compiler_needs_object_CXX=no
19932 export_dynamic_flag_spec_CXX=
19933 hardcode_direct_CXX=no
19934 hardcode_direct_absolute_CXX=no
19935 hardcode_libdir_flag_spec_CXX=
19936 hardcode_libdir_flag_spec_ld_CXX=
19937 hardcode_libdir_separator_CXX=
19938 hardcode_minus_L_CXX=no
19939 hardcode_shlibpath_var_CXX=unsupported
19940 hardcode_automatic_CXX=no
19941 inherit_rpath_CXX=no
19942 module_cmds_CXX=
19943 module_expsym_cmds_CXX=
19944 link_all_deplibs_CXX=unknown
19945 old_archive_cmds_CXX=$old_archive_cmds
19946 reload_flag_CXX=$reload_flag
19947 reload_cmds_CXX=$reload_cmds
19948 no_undefined_flag_CXX=
19949 whole_archive_flag_spec_CXX=
19950 enable_shared_with_static_runtimes_CXX=no
19952 # Source file extension for C++ test sources.
19953 ac_ext=cpp
19955 # Object file extension for compiled C++ test sources.
19956 objext=o
19957 objext_CXX=$objext
19959 # No sense in running all these tests if we already determined that
19960 # the CXX compiler isn't working. Some variables (like enable_shared)
19961 # are currently assumed to apply to all compilers on this platform,
19962 # and will be corrupted by setting them based on a non-working compiler.
19963 if test "$_lt_caught_CXX_error" != yes; then
19964 # Code to be used in simple compile tests
19965 lt_simple_compile_test_code="int some_variable = 0;"
19967 # Code to be used in simple link tests
19968 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19977 # If no C compiler was specified, use CC.
19978 LTCC=${LTCC-"$CC"}
19980 # If no C compiler flags were specified, use CFLAGS.
19981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19983 # Allow CC to be a program name with arguments.
19984 compiler=$CC
19987 # save warnings/boilerplate of simple test code
19988 ac_outfile=conftest.$ac_objext
19989 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19991 _lt_compiler_boilerplate=`cat conftest.err`
19992 $RM conftest*
19994 ac_outfile=conftest.$ac_objext
19995 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19997 _lt_linker_boilerplate=`cat conftest.err`
19998 $RM -r conftest*
20001 # Allow CC to be a program name with arguments.
20002 lt_save_CC=$CC
20003 lt_save_LD=$LD
20004 lt_save_GCC=$GCC
20005 GCC=$GXX
20006 lt_save_with_gnu_ld=$with_gnu_ld
20007 lt_save_path_LD=$lt_cv_path_LD
20008 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20009 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20010 else
20011 $as_unset lt_cv_prog_gnu_ld
20013 if test -n "${lt_cv_path_LDCXX+set}"; then
20014 lt_cv_path_LD=$lt_cv_path_LDCXX
20015 else
20016 $as_unset lt_cv_path_LD
20018 test -z "${LDCXX+set}" || LD=$LDCXX
20019 CC=${CXX-"c++"}
20020 compiler=$CC
20021 compiler_CXX=$CC
20022 for cc_temp in $compiler""; do
20023 case $cc_temp in
20024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20026 \-*) ;;
20027 *) break;;
20028 esac
20029 done
20030 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20033 if test -n "$compiler"; then
20034 # We don't want -fno-exception when compiling C++ code, so set the
20035 # no_builtin_flag separately
20036 if test "$GXX" = yes; then
20037 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20038 else
20039 lt_prog_compiler_no_builtin_flag_CXX=
20042 if test "$GXX" = yes; then
20043 # Set up default GNU C++ configuration
20047 # Check whether --with-gnu-ld was given.
20048 if test "${with_gnu_ld+set}" = set; then :
20049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20050 else
20051 with_gnu_ld=no
20054 ac_prog=ld
20055 if test "$GCC" = yes; then
20056 # Check if gcc -print-prog-name=ld gives a path.
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20058 $as_echo_n "checking for ld used by $CC... " >&6; }
20059 case $host in
20060 *-*-mingw*)
20061 # gcc leaves a trailing carriage return which upsets mingw
20062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20065 esac
20066 case $ac_prog in
20067 # Accept absolute paths.
20068 [\\/]* | ?:[\\/]*)
20069 re_direlt='/[^/][^/]*/\.\./'
20070 # Canonicalize the pathname of ld
20071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20074 done
20075 test -z "$LD" && LD="$ac_prog"
20078 # If it fails, then pretend we aren't using GCC.
20079 ac_prog=ld
20082 # If it is relative, then search for the first ld in PATH.
20083 with_gnu_ld=unknown
20085 esac
20086 elif test "$with_gnu_ld" = yes; then
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20088 $as_echo_n "checking for GNU ld... " >&6; }
20089 else
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20091 $as_echo_n "checking for non-GNU ld... " >&6; }
20093 if ${lt_cv_path_LD+:} false; then :
20094 $as_echo_n "(cached) " >&6
20095 else
20096 if test -z "$LD"; then
20097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20098 for ac_dir in $PATH; do
20099 IFS="$lt_save_ifs"
20100 test -z "$ac_dir" && ac_dir=.
20101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20102 lt_cv_path_LD="$ac_dir/$ac_prog"
20103 # Check to see if the program is GNU ld. I'd rather use --version,
20104 # but apparently some variants of GNU ld only accept -v.
20105 # Break only if it was the GNU/non-GNU ld that we prefer.
20106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20107 *GNU* | *'with BFD'*)
20108 test "$with_gnu_ld" != no && break
20111 test "$with_gnu_ld" != yes && break
20113 esac
20115 done
20116 IFS="$lt_save_ifs"
20117 else
20118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20122 LD="$lt_cv_path_LD"
20123 if test -n "$LD"; then
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20125 $as_echo "$LD" >&6; }
20126 else
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20128 $as_echo "no" >&6; }
20130 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20132 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20133 if ${lt_cv_prog_gnu_ld+:} false; then :
20134 $as_echo_n "(cached) " >&6
20135 else
20136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20137 case `$LD -v 2>&1 </dev/null` in
20138 *GNU* | *'with BFD'*)
20139 lt_cv_prog_gnu_ld=yes
20142 lt_cv_prog_gnu_ld=no
20144 esac
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20147 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20148 with_gnu_ld=$lt_cv_prog_gnu_ld
20156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20157 # archiving commands below assume that GNU ld is being used.
20158 if test "$with_gnu_ld" = yes; then
20159 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20160 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'
20162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20165 # If archive_cmds runs LD, not CC, wlarc should be empty
20166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20167 # investigate it a little bit more. (MM)
20168 wlarc='${wl}'
20170 # ancient GNU ld didn't support --whole-archive et. al.
20171 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20172 $GREP 'no-whole-archive' > /dev/null; then
20173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20174 else
20175 whole_archive_flag_spec_CXX=
20177 else
20178 with_gnu_ld=no
20179 wlarc=
20181 # A generic and very simple default shared library creation
20182 # command for GNU C++ for the case where it uses the native
20183 # linker, instead of GNU ld. If possible, this setting should
20184 # overridden to take advantage of the native linker features on
20185 # the platform it is being used on.
20186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20189 # Commands to make compiler produce verbose output that lists
20190 # what "hidden" libraries, object files and flags are used when
20191 # linking a shared library.
20192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20194 else
20195 GXX=no
20196 with_gnu_ld=no
20197 wlarc=
20200 # PORTME: fill in a description of your system's C++ link characteristics
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20202 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20203 ld_shlibs_CXX=yes
20204 case $host_os in
20205 aix3*)
20206 # FIXME: insert proper C++ library support
20207 ld_shlibs_CXX=no
20209 aix[4-9]*)
20210 if test "$host_cpu" = ia64; then
20211 # On IA64, the linker does run time linking by default, so we don't
20212 # have to do anything special.
20213 aix_use_runtimelinking=no
20214 exp_sym_flag='-Bexport'
20215 no_entry_flag=""
20216 else
20217 aix_use_runtimelinking=no
20219 # Test if we are trying to use run time linking or normal
20220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20221 # need to do runtime linking.
20222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20223 for ld_flag in $LDFLAGS; do
20224 case $ld_flag in
20225 *-brtl*)
20226 aix_use_runtimelinking=yes
20227 break
20229 esac
20230 done
20232 esac
20234 exp_sym_flag='-bexport'
20235 no_entry_flag='-bnoentry'
20238 # When large executables or shared objects are built, AIX ld can
20239 # have problems creating the table of contents. If linking a library
20240 # or program results in "error TOC overflow" add -mminimal-toc to
20241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20244 archive_cmds_CXX=''
20245 hardcode_direct_CXX=yes
20246 hardcode_direct_absolute_CXX=yes
20247 hardcode_libdir_separator_CXX=':'
20248 link_all_deplibs_CXX=yes
20249 file_list_spec_CXX='${wl}-f,'
20251 if test "$GXX" = yes; then
20252 case $host_os in aix4.[012]|aix4.[012].*)
20253 # We only want to do this on AIX 4.2 and lower, the check
20254 # below for broken collect2 doesn't work under 4.3+
20255 collect2name=`${CC} -print-prog-name=collect2`
20256 if test -f "$collect2name" &&
20257 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20258 then
20259 # We have reworked collect2
20261 else
20262 # We have old collect2
20263 hardcode_direct_CXX=unsupported
20264 # It fails to find uninstalled libraries when the uninstalled
20265 # path is not listed in the libpath. Setting hardcode_minus_L
20266 # to unsupported forces relinking
20267 hardcode_minus_L_CXX=yes
20268 hardcode_libdir_flag_spec_CXX='-L$libdir'
20269 hardcode_libdir_separator_CXX=
20271 esac
20272 shared_flag='-shared'
20273 if test "$aix_use_runtimelinking" = yes; then
20274 shared_flag="$shared_flag "'${wl}-G'
20276 else
20277 # not using gcc
20278 if test "$host_cpu" = ia64; then
20279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20280 # chokes on -Wl,-G. The following line is correct:
20281 shared_flag='-G'
20282 else
20283 if test "$aix_use_runtimelinking" = yes; then
20284 shared_flag='${wl}-G'
20285 else
20286 shared_flag='${wl}-bM:SRE'
20291 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20292 # It seems that -bexpall does not export symbols beginning with
20293 # underscore (_), so it is better to generate a list of symbols to
20294 # export.
20295 always_export_symbols_CXX=yes
20296 if test "$aix_use_runtimelinking" = yes; then
20297 # Warning - without using the other runtime loading flags (-brtl),
20298 # -berok will link without error, but may produce a broken library.
20299 allow_undefined_flag_CXX='-berok'
20300 # Determine the default libpath from the value encoded in an empty
20301 # executable.
20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303 /* end confdefs.h. */
20306 main ()
20310 return 0;
20312 _ACEOF
20313 if ac_fn_cxx_try_link "$LINENO"; then :
20315 lt_aix_libpath_sed='
20316 /Import File Strings/,/^$/ {
20317 /^0/ {
20318 s/^0 *\(.*\)$/\1/
20322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20323 # Check for a 64-bit object if we didn't find anything.
20324 if test -z "$aix_libpath"; then
20325 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20328 rm -f core conftest.err conftest.$ac_objext \
20329 conftest$ac_exeext conftest.$ac_ext
20330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20334 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"
20335 else
20336 if test "$host_cpu" = ia64; then
20337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20338 allow_undefined_flag_CXX="-z nodefs"
20339 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"
20340 else
20341 # Determine the default libpath from the value encoded in an
20342 # empty executable.
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20347 main ()
20351 return 0;
20353 _ACEOF
20354 if ac_fn_cxx_try_link "$LINENO"; then :
20356 lt_aix_libpath_sed='
20357 /Import File Strings/,/^$/ {
20358 /^0/ {
20359 s/^0 *\(.*\)$/\1/
20363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20364 # Check for a 64-bit object if we didn't find anything.
20365 if test -z "$aix_libpath"; then
20366 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20369 rm -f core conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext conftest.$ac_ext
20371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20374 # Warning - without using the other run time loading flags,
20375 # -berok will link without error, but may produce a broken library.
20376 no_undefined_flag_CXX=' ${wl}-bernotok'
20377 allow_undefined_flag_CXX=' ${wl}-berok'
20378 if test "$with_gnu_ld" = yes; then
20379 # We only use this code for GNU lds that support --whole-archive.
20380 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20381 else
20382 # Exported symbols can be pulled into shared objects from archives
20383 whole_archive_flag_spec_CXX='$convenience'
20385 archive_cmds_need_lc_CXX=yes
20386 # This is similar to how AIX traditionally builds its shared
20387 # libraries.
20388 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'
20393 beos*)
20394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20395 allow_undefined_flag_CXX=unsupported
20396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20397 # support --undefined. This deserves some investigation. FIXME
20398 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20399 else
20400 ld_shlibs_CXX=no
20404 chorus*)
20405 case $cc_basename in
20407 # FIXME: insert proper C++ library support
20408 ld_shlibs_CXX=no
20410 esac
20413 cygwin* | mingw* | pw32* | cegcc*)
20414 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20415 # as there is no search path for DLLs.
20416 hardcode_libdir_flag_spec_CXX='-L$libdir'
20417 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20418 allow_undefined_flag_CXX=unsupported
20419 always_export_symbols_CXX=no
20420 enable_shared_with_static_runtimes_CXX=yes
20422 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20423 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'
20424 # If the export-symbols file already is a .def file (1st line
20425 # is EXPORTS), use it as is; otherwise, prepend...
20426 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20427 cp $export_symbols $output_objdir/$soname.def;
20428 else
20429 echo EXPORTS > $output_objdir/$soname.def;
20430 cat $export_symbols >> $output_objdir/$soname.def;
20432 $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'
20433 else
20434 ld_shlibs_CXX=no
20437 darwin* | rhapsody*)
20440 archive_cmds_need_lc_CXX=no
20441 hardcode_direct_CXX=no
20442 hardcode_automatic_CXX=yes
20443 hardcode_shlibpath_var_CXX=unsupported
20444 if test "$lt_cv_ld_force_load" = "yes"; then
20445 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\"`'
20446 else
20447 whole_archive_flag_spec_CXX=''
20449 link_all_deplibs_CXX=yes
20450 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20451 case $cc_basename in
20452 ifort*) _lt_dar_can_shared=yes ;;
20453 *) _lt_dar_can_shared=$GCC ;;
20454 esac
20455 if test "$_lt_dar_can_shared" = "yes"; then
20456 output_verbose_link_cmd=func_echo_all
20457 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}"
20458 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20459 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}"
20460 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}"
20461 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20462 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}"
20463 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}"
20466 else
20467 ld_shlibs_CXX=no
20472 dgux*)
20473 case $cc_basename in
20474 ec++*)
20475 # FIXME: insert proper C++ library support
20476 ld_shlibs_CXX=no
20478 ghcx*)
20479 # Green Hills C++ Compiler
20480 # FIXME: insert proper C++ library support
20481 ld_shlibs_CXX=no
20484 # FIXME: insert proper C++ library support
20485 ld_shlibs_CXX=no
20487 esac
20490 freebsd2.*)
20491 # C++ shared libraries reported to be fairly broken before
20492 # switch to ELF
20493 ld_shlibs_CXX=no
20496 freebsd-elf*)
20497 archive_cmds_need_lc_CXX=no
20500 freebsd* | dragonfly*)
20501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20502 # conventions
20503 ld_shlibs_CXX=yes
20506 gnu*)
20509 haiku*)
20510 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20511 link_all_deplibs_CXX=yes
20514 hpux9*)
20515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20516 hardcode_libdir_separator_CXX=:
20517 export_dynamic_flag_spec_CXX='${wl}-E'
20518 hardcode_direct_CXX=yes
20519 hardcode_minus_L_CXX=yes # Not in the search PATH,
20520 # but as the default
20521 # location of the library.
20523 case $cc_basename in
20524 CC*)
20525 # FIXME: insert proper C++ library support
20526 ld_shlibs_CXX=no
20528 aCC*)
20529 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'
20530 # Commands to make compiler produce verbose output that lists
20531 # what "hidden" libraries, object files and flags are used when
20532 # linking a shared library.
20534 # There doesn't appear to be a way to prevent this compiler from
20535 # explicitly linking system object files so we need to strip them
20536 # from the output so that they don't get included in the library
20537 # dependencies.
20538 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"'
20541 if test "$GXX" = yes; then
20542 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'
20543 else
20544 # FIXME: insert proper C++ library support
20545 ld_shlibs_CXX=no
20548 esac
20551 hpux10*|hpux11*)
20552 if test $with_gnu_ld = no; then
20553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20554 hardcode_libdir_separator_CXX=:
20556 case $host_cpu in
20557 hppa*64*|ia64*)
20560 export_dynamic_flag_spec_CXX='${wl}-E'
20562 esac
20564 case $host_cpu in
20565 hppa*64*|ia64*)
20566 hardcode_direct_CXX=no
20567 hardcode_shlibpath_var_CXX=no
20570 hardcode_direct_CXX=yes
20571 hardcode_direct_absolute_CXX=yes
20572 hardcode_minus_L_CXX=yes # Not in the search PATH,
20573 # but as the default
20574 # location of the library.
20576 esac
20578 case $cc_basename in
20579 CC*)
20580 # FIXME: insert proper C++ library support
20581 ld_shlibs_CXX=no
20583 aCC*)
20584 case $host_cpu in
20585 hppa*64*)
20586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20588 ia64*)
20589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20594 esac
20595 # Commands to make compiler produce verbose output that lists
20596 # what "hidden" libraries, object files and flags are used when
20597 # linking a shared library.
20599 # There doesn't appear to be a way to prevent this compiler from
20600 # explicitly linking system object files so we need to strip them
20601 # from the output so that they don't get included in the library
20602 # dependencies.
20603 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"'
20606 if test "$GXX" = yes; then
20607 if test $with_gnu_ld = no; then
20608 case $host_cpu in
20609 hppa*64*)
20610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20612 ia64*)
20613 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20616 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'
20618 esac
20620 else
20621 # FIXME: insert proper C++ library support
20622 ld_shlibs_CXX=no
20625 esac
20628 interix[3-9]*)
20629 hardcode_direct_CXX=no
20630 hardcode_shlibpath_var_CXX=no
20631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20632 export_dynamic_flag_spec_CXX='${wl}-E'
20633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20634 # Instead, shared libraries are loaded at an image base (0x10000000 by
20635 # default) and relocated if they conflict, which is a slow very memory
20636 # consuming and fragmenting process. To avoid this, we pick a random,
20637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20639 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'
20640 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'
20642 irix5* | irix6*)
20643 case $cc_basename in
20644 CC*)
20645 # SGI C++
20646 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'
20648 # Archives containing C++ object files must be created using
20649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20650 # necessary to make sure instantiated templates are included
20651 # in the archive.
20652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20655 if test "$GXX" = yes; then
20656 if test "$with_gnu_ld" = no; then
20657 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'
20658 else
20659 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'
20662 link_all_deplibs_CXX=yes
20664 esac
20665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20666 hardcode_libdir_separator_CXX=:
20667 inherit_rpath_CXX=yes
20670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20671 case $cc_basename in
20672 KCC*)
20673 # Kuck and Associates, Inc. (KAI) C++ Compiler
20675 # KCC will only create a shared library if the output file
20676 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20677 # to its proper name (with version) after linking.
20678 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'
20679 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'
20680 # Commands to make compiler produce verbose output that lists
20681 # what "hidden" libraries, object files and flags are used when
20682 # linking a shared library.
20684 # There doesn't appear to be a way to prevent this compiler from
20685 # explicitly linking system object files so we need to strip them
20686 # from the output so that they don't get included in the library
20687 # dependencies.
20688 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"'
20690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20693 # Archives containing C++ object files must be created using
20694 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20697 icpc* | ecpc* )
20698 # Intel C++
20699 with_gnu_ld=yes
20700 # version 8.0 and above of icpc choke on multiply defined symbols
20701 # if we add $predep_objects and $postdep_objects, however 7.1 and
20702 # earlier do not add the objects themselves.
20703 case `$CC -V 2>&1` in
20704 *"Version 7."*)
20705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20706 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'
20708 *) # Version 8.0 or newer
20709 tmp_idyn=
20710 case $host_cpu in
20711 ia64*) tmp_idyn=' -i_dynamic';;
20712 esac
20713 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20714 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'
20716 esac
20717 archive_cmds_need_lc_CXX=no
20718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20720 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20722 pgCC* | pgcpp*)
20723 # Portland Group C++ compiler
20724 case `$CC -V` in
20725 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20726 prelink_cmds_CXX='tpldir=Template.dir~
20727 rm -rf $tpldir~
20728 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20729 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20730 old_archive_cmds_CXX='tpldir=Template.dir~
20731 rm -rf $tpldir~
20732 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20733 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20734 $RANLIB $oldlib'
20735 archive_cmds_CXX='tpldir=Template.dir~
20736 rm -rf $tpldir~
20737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20738 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20739 archive_expsym_cmds_CXX='tpldir=Template.dir~
20740 rm -rf $tpldir~
20741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20742 $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'
20744 *) # Version 6 and above use weak symbols
20745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20746 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'
20748 esac
20750 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20752 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'
20754 cxx*)
20755 # Compaq C++
20756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20757 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'
20759 runpath_var=LD_RUN_PATH
20760 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20761 hardcode_libdir_separator_CXX=:
20763 # Commands to make compiler produce verbose output that lists
20764 # what "hidden" libraries, object files and flags are used when
20765 # linking a shared library.
20767 # There doesn't appear to be a way to prevent this compiler from
20768 # explicitly linking system object files so we need to strip them
20769 # from the output so that they don't get included in the library
20770 # dependencies.
20771 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'
20773 xl* | mpixl* | bgxl*)
20774 # IBM XL 8.0 on PPC, with GNU ld
20775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20777 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20778 if test "x$supports_anon_versioning" = xyes; then
20779 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20781 echo "local: *; };" >> $output_objdir/$libname.ver~
20782 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20786 case `$CC -V 2>&1 | sed 5q` in
20787 *Sun\ C*)
20788 # Sun C++ 5.9
20789 no_undefined_flag_CXX=' -zdefs'
20790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20791 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'
20792 hardcode_libdir_flag_spec_CXX='-R$libdir'
20793 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'
20794 compiler_needs_object_CXX=yes
20796 # Not sure whether something based on
20797 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20798 # would be better.
20799 output_verbose_link_cmd='func_echo_all'
20801 # Archives containing C++ object files must be created using
20802 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20803 # necessary to make sure instantiated templates are included
20804 # in the archive.
20805 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20807 esac
20809 esac
20812 lynxos*)
20813 # FIXME: insert proper C++ library support
20814 ld_shlibs_CXX=no
20817 m88k*)
20818 # FIXME: insert proper C++ library support
20819 ld_shlibs_CXX=no
20822 mvs*)
20823 case $cc_basename in
20824 cxx*)
20825 # FIXME: insert proper C++ library support
20826 ld_shlibs_CXX=no
20829 # FIXME: insert proper C++ library support
20830 ld_shlibs_CXX=no
20832 esac
20835 netbsd*)
20836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20837 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20838 wlarc=
20839 hardcode_libdir_flag_spec_CXX='-R$libdir'
20840 hardcode_direct_CXX=yes
20841 hardcode_shlibpath_var_CXX=no
20843 # Workaround some broken pre-1.5 toolchains
20844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20847 *nto* | *qnx*)
20848 ld_shlibs_CXX=yes
20851 openbsd2*)
20852 # C++ shared libraries are fairly broken
20853 ld_shlibs_CXX=no
20856 openbsd*)
20857 if test -f /usr/libexec/ld.so; then
20858 hardcode_direct_CXX=yes
20859 hardcode_shlibpath_var_CXX=no
20860 hardcode_direct_absolute_CXX=yes
20861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20865 export_dynamic_flag_spec_CXX='${wl}-E'
20866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20868 output_verbose_link_cmd=func_echo_all
20869 else
20870 ld_shlibs_CXX=no
20874 osf3* | osf4* | osf5*)
20875 case $cc_basename in
20876 KCC*)
20877 # Kuck and Associates, Inc. (KAI) C++ Compiler
20879 # KCC will only create a shared library if the output file
20880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20881 # to its proper name (with version) after linking.
20882 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'
20884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20885 hardcode_libdir_separator_CXX=:
20887 # Archives containing C++ object files must be created using
20888 # the KAI C++ compiler.
20889 case $host in
20890 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20891 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20892 esac
20894 RCC*)
20895 # Rational C++ 2.4.1
20896 # FIXME: insert proper C++ library support
20897 ld_shlibs_CXX=no
20899 cxx*)
20900 case $host in
20901 osf3*)
20902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20903 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'
20904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20907 allow_undefined_flag_CXX=' -expect_unresolved \*'
20908 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'
20909 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20910 echo "-hidden">> $lib.exp~
20911 $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~
20912 $RM $lib.exp'
20913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20915 esac
20917 hardcode_libdir_separator_CXX=:
20919 # Commands to make compiler produce verbose output that lists
20920 # what "hidden" libraries, object files and flags are used when
20921 # linking a shared library.
20923 # There doesn't appear to be a way to prevent this compiler from
20924 # explicitly linking system object files so we need to strip them
20925 # from the output so that they don't get included in the library
20926 # dependencies.
20927 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"'
20930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20932 case $host in
20933 osf3*)
20934 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'
20937 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'
20939 esac
20941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20942 hardcode_libdir_separator_CXX=:
20944 # Commands to make compiler produce verbose output that lists
20945 # what "hidden" libraries, object files and flags are used when
20946 # linking a shared library.
20947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20949 else
20950 # FIXME: insert proper C++ library support
20951 ld_shlibs_CXX=no
20954 esac
20957 psos*)
20958 # FIXME: insert proper C++ library support
20959 ld_shlibs_CXX=no
20962 sunos4*)
20963 case $cc_basename in
20964 CC*)
20965 # Sun C++ 4.x
20966 # FIXME: insert proper C++ library support
20967 ld_shlibs_CXX=no
20969 lcc*)
20970 # Lucid
20971 # FIXME: insert proper C++ library support
20972 ld_shlibs_CXX=no
20975 # FIXME: insert proper C++ library support
20976 ld_shlibs_CXX=no
20978 esac
20981 solaris*)
20982 case $cc_basename in
20983 CC*)
20984 # Sun C++ 4.2, 5.x and Centerline C++
20985 archive_cmds_need_lc_CXX=yes
20986 no_undefined_flag_CXX=' -zdefs'
20987 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20989 $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'
20991 hardcode_libdir_flag_spec_CXX='-R$libdir'
20992 hardcode_shlibpath_var_CXX=no
20993 case $host_os in
20994 solaris2.[0-5] | solaris2.[0-5].*) ;;
20996 # The compiler driver will combine and reorder linker options,
20997 # but understands `-z linker_flag'.
20998 # Supported since Solaris 2.6 (maybe 2.5.1?)
20999 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21001 esac
21002 link_all_deplibs_CXX=yes
21004 output_verbose_link_cmd='func_echo_all'
21006 # Archives containing C++ object files must be created using
21007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21008 # necessary to make sure instantiated templates are included
21009 # in the archive.
21010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21012 gcx*)
21013 # Green Hills C++ Compiler
21014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21016 # The C++ compiler must be used to create the archive.
21017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21020 # GNU C++ compiler with Solaris linker
21021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21023 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21024 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21026 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21028 # Commands to make compiler produce verbose output that lists
21029 # what "hidden" libraries, object files and flags are used when
21030 # linking a shared library.
21031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21032 else
21033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21034 # platform.
21035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21039 # Commands to make compiler produce verbose output that lists
21040 # what "hidden" libraries, object files and flags are used when
21041 # linking a shared library.
21042 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21046 case $host_os in
21047 solaris2.[0-5] | solaris2.[0-5].*) ;;
21049 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21051 esac
21054 esac
21057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21058 no_undefined_flag_CXX='${wl}-z,text'
21059 archive_cmds_need_lc_CXX=no
21060 hardcode_shlibpath_var_CXX=no
21061 runpath_var='LD_RUN_PATH'
21063 case $cc_basename in
21064 CC*)
21065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21072 esac
21075 sysv5* | sco3.2v5* | sco5v6*)
21076 # Note: We can NOT use -z defs as we might desire, because we do not
21077 # link with -lc, and that would cause any symbols used from libc to
21078 # always be unresolved, which means just about no library would
21079 # ever link correctly. If we're not using GNU ld we use -z text
21080 # though, which does catch some bad symbols but isn't as heavy-handed
21081 # as -z defs.
21082 no_undefined_flag_CXX='${wl}-z,text'
21083 allow_undefined_flag_CXX='${wl}-z,nodefs'
21084 archive_cmds_need_lc_CXX=no
21085 hardcode_shlibpath_var_CXX=no
21086 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21087 hardcode_libdir_separator_CXX=':'
21088 link_all_deplibs_CXX=yes
21089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21090 runpath_var='LD_RUN_PATH'
21092 case $cc_basename in
21093 CC*)
21094 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21096 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21097 '"$old_archive_cmds_CXX"
21098 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21099 '"$reload_cmds_CXX"
21102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21105 esac
21108 tandem*)
21109 case $cc_basename in
21110 NCC*)
21111 # NonStop-UX NCC 3.20
21112 # FIXME: insert proper C++ library support
21113 ld_shlibs_CXX=no
21116 # FIXME: insert proper C++ library support
21117 ld_shlibs_CXX=no
21119 esac
21122 vxworks*)
21123 # FIXME: insert proper C++ library support
21124 ld_shlibs_CXX=no
21128 # FIXME: insert proper C++ library support
21129 ld_shlibs_CXX=no
21131 esac
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21134 $as_echo "$ld_shlibs_CXX" >&6; }
21135 test "$ld_shlibs_CXX" = no && can_build_shared=no
21137 GCC_CXX="$GXX"
21138 LD_CXX="$LD"
21140 ## CAVEAT EMPTOR:
21141 ## There is no encapsulation within the following macros, do not change
21142 ## the running order or otherwise move them around unless you know exactly
21143 ## what you are doing...
21144 # Dependencies to place before and after the object being linked:
21145 predep_objects_CXX=
21146 postdep_objects_CXX=
21147 predeps_CXX=
21148 postdeps_CXX=
21149 compiler_lib_search_path_CXX=
21151 cat > conftest.$ac_ext <<_LT_EOF
21152 class Foo
21154 public:
21155 Foo (void) { a = 0; }
21156 private:
21157 int a;
21159 _LT_EOF
21161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21162 (eval $ac_compile) 2>&5
21163 ac_status=$?
21164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21165 test $ac_status = 0; }; then
21166 # Parse the compiler output and extract the necessary
21167 # objects, libraries and library flags.
21169 # Sentinel used to keep track of whether or not we are before
21170 # the conftest object file.
21171 pre_test_object_deps_done=no
21173 for p in `eval "$output_verbose_link_cmd"`; do
21174 case $p in
21176 -L* | -R* | -l*)
21177 # Some compilers place space between "-{L,R}" and the path.
21178 # Remove the space.
21179 if test $p = "-L" ||
21180 test $p = "-R"; then
21181 prev=$p
21182 continue
21183 else
21184 prev=
21187 if test "$pre_test_object_deps_done" = no; then
21188 case $p in
21189 -L* | -R*)
21190 # Internal compiler library paths should come after those
21191 # provided the user. The postdeps already come after the
21192 # user supplied libs so there is no need to process them.
21193 if test -z "$compiler_lib_search_path_CXX"; then
21194 compiler_lib_search_path_CXX="${prev}${p}"
21195 else
21196 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21199 # The "-l" case would never come before the object being
21200 # linked, so don't bother handling this case.
21201 esac
21202 else
21203 if test -z "$postdeps_CXX"; then
21204 postdeps_CXX="${prev}${p}"
21205 else
21206 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21211 *.$objext)
21212 # This assumes that the test object file only shows up
21213 # once in the compiler output.
21214 if test "$p" = "conftest.$objext"; then
21215 pre_test_object_deps_done=yes
21216 continue
21219 if test "$pre_test_object_deps_done" = no; then
21220 if test -z "$predep_objects_CXX"; then
21221 predep_objects_CXX="$p"
21222 else
21223 predep_objects_CXX="$predep_objects_CXX $p"
21225 else
21226 if test -z "$postdep_objects_CXX"; then
21227 postdep_objects_CXX="$p"
21228 else
21229 postdep_objects_CXX="$postdep_objects_CXX $p"
21234 *) ;; # Ignore the rest.
21236 esac
21237 done
21239 # Clean up.
21240 rm -f a.out a.exe
21241 else
21242 echo "libtool.m4: error: problem compiling CXX test program"
21245 $RM -f confest.$objext
21247 # PORTME: override above test on systems where it is broken
21248 case $host_os in
21249 interix[3-9]*)
21250 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21251 # hack all around it, let's just trust "g++" to DTRT.
21252 predep_objects_CXX=
21253 postdep_objects_CXX=
21254 postdeps_CXX=
21257 linux*)
21258 case `$CC -V 2>&1 | sed 5q` in
21259 *Sun\ C*)
21260 # Sun C++ 5.9
21262 # The more standards-conforming stlport4 library is
21263 # incompatible with the Cstd library. Avoid specifying
21264 # it if it's in CXXFLAGS. Ignore libCrun as
21265 # -library=stlport4 depends on it.
21266 case " $CXX $CXXFLAGS " in
21267 *" -library=stlport4 "*)
21268 solaris_use_stlport4=yes
21270 esac
21272 if test "$solaris_use_stlport4" != yes; then
21273 postdeps_CXX='-library=Cstd -library=Crun'
21276 esac
21279 solaris*)
21280 case $cc_basename in
21281 CC*)
21282 # The more standards-conforming stlport4 library is
21283 # incompatible with the Cstd library. Avoid specifying
21284 # it if it's in CXXFLAGS. Ignore libCrun as
21285 # -library=stlport4 depends on it.
21286 case " $CXX $CXXFLAGS " in
21287 *" -library=stlport4 "*)
21288 solaris_use_stlport4=yes
21290 esac
21292 # Adding this requires a known-good setup of shared libraries for
21293 # Sun compiler versions before 5.6, else PIC objects from an old
21294 # archive will be linked into the output, leading to subtle bugs.
21295 if test "$solaris_use_stlport4" != yes; then
21296 postdeps_CXX='-library=Cstd -library=Crun'
21299 esac
21301 esac
21304 case " $postdeps_CXX " in
21305 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21306 esac
21307 compiler_lib_search_dirs_CXX=
21308 if test -n "${compiler_lib_search_path_CXX}"; then
21309 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21342 lt_prog_compiler_wl_CXX=
21343 lt_prog_compiler_pic_CXX=
21344 lt_prog_compiler_static_CXX=
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21349 # C++ specific cases for pic, static, wl, etc.
21350 if test "$GXX" = yes; then
21351 lt_prog_compiler_wl_CXX='-Wl,'
21352 lt_prog_compiler_static_CXX='-static'
21354 case $host_os in
21355 aix*)
21356 # All AIX code is PIC.
21357 if test "$host_cpu" = ia64; then
21358 # AIX 5 now supports IA64 processor
21359 lt_prog_compiler_static_CXX='-Bstatic'
21361 lt_prog_compiler_pic_CXX='-fPIC'
21364 amigaos*)
21365 case $host_cpu in
21366 powerpc)
21367 # see comment about AmigaOS4 .so support
21368 lt_prog_compiler_pic_CXX='-fPIC'
21370 m68k)
21371 # FIXME: we need at least 68020 code to build shared libraries, but
21372 # adding the `-m68020' flag to GCC prevents building anything better,
21373 # like `-m68040'.
21374 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21376 esac
21379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21380 # PIC is the default for these OSes.
21382 mingw* | cygwin* | os2* | pw32* | cegcc*)
21383 # This hack is so that the source file can tell whether it is being
21384 # built for inclusion in a dll (and should export symbols for example).
21385 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21386 # (--disable-auto-import) libraries
21387 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21389 darwin* | rhapsody*)
21390 # PIC is the default on this platform
21391 # Common symbols not allowed in MH_DYLIB files
21392 lt_prog_compiler_pic_CXX='-fno-common'
21394 *djgpp*)
21395 # DJGPP does not support shared libraries at all
21396 lt_prog_compiler_pic_CXX=
21398 haiku*)
21399 # PIC is the default for Haiku.
21400 # The "-static" flag exists, but is broken.
21401 lt_prog_compiler_static_CXX=
21403 interix[3-9]*)
21404 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21405 # Instead, we relocate shared libraries at runtime.
21407 sysv4*MP*)
21408 if test -d /usr/nec; then
21409 lt_prog_compiler_pic_CXX=-Kconform_pic
21412 hpux*)
21413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21415 # sets the default TLS model and affects inlining.
21416 case $host_cpu in
21417 hppa*64*)
21420 lt_prog_compiler_pic_CXX='-fPIC'
21422 esac
21424 *qnx* | *nto*)
21425 # QNX uses GNU C++, but need to define -shared option too, otherwise
21426 # it will coredump.
21427 lt_prog_compiler_pic_CXX='-fPIC -shared'
21430 lt_prog_compiler_pic_CXX='-fPIC'
21432 esac
21433 else
21434 case $host_os in
21435 aix[4-9]*)
21436 # All AIX code is PIC.
21437 if test "$host_cpu" = ia64; then
21438 # AIX 5 now supports IA64 processor
21439 lt_prog_compiler_static_CXX='-Bstatic'
21440 else
21441 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21444 chorus*)
21445 case $cc_basename in
21446 cxch68*)
21447 # Green Hills C++ Compiler
21448 # _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"
21450 esac
21452 dgux*)
21453 case $cc_basename in
21454 ec++*)
21455 lt_prog_compiler_pic_CXX='-KPIC'
21457 ghcx*)
21458 # Green Hills C++ Compiler
21459 lt_prog_compiler_pic_CXX='-pic'
21463 esac
21465 freebsd* | dragonfly*)
21466 # FreeBSD uses GNU C++
21468 hpux9* | hpux10* | hpux11*)
21469 case $cc_basename in
21470 CC*)
21471 lt_prog_compiler_wl_CXX='-Wl,'
21472 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21473 if test "$host_cpu" != ia64; then
21474 lt_prog_compiler_pic_CXX='+Z'
21477 aCC*)
21478 lt_prog_compiler_wl_CXX='-Wl,'
21479 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21480 case $host_cpu in
21481 hppa*64*|ia64*)
21482 # +Z the default
21485 lt_prog_compiler_pic_CXX='+Z'
21487 esac
21491 esac
21493 interix*)
21494 # This is c89, which is MS Visual C++ (no shared libs)
21495 # Anyone wants to do a port?
21497 irix5* | irix6* | nonstopux*)
21498 case $cc_basename in
21499 CC*)
21500 lt_prog_compiler_wl_CXX='-Wl,'
21501 lt_prog_compiler_static_CXX='-non_shared'
21502 # CC pic flag -KPIC is the default.
21506 esac
21508 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21509 case $cc_basename in
21510 KCC*)
21511 # KAI C++ Compiler
21512 lt_prog_compiler_wl_CXX='--backend -Wl,'
21513 lt_prog_compiler_pic_CXX='-fPIC'
21515 ecpc* )
21516 # old Intel C++ for x86_64 which still supported -KPIC.
21517 lt_prog_compiler_wl_CXX='-Wl,'
21518 lt_prog_compiler_pic_CXX='-KPIC'
21519 lt_prog_compiler_static_CXX='-static'
21521 icpc* )
21522 # Intel C++, used to be incompatible with GCC.
21523 # ICC 10 doesn't accept -KPIC any more.
21524 lt_prog_compiler_wl_CXX='-Wl,'
21525 lt_prog_compiler_pic_CXX='-fPIC'
21526 lt_prog_compiler_static_CXX='-static'
21528 pgCC* | pgcpp*)
21529 # Portland Group C++ compiler
21530 lt_prog_compiler_wl_CXX='-Wl,'
21531 lt_prog_compiler_pic_CXX='-fpic'
21532 lt_prog_compiler_static_CXX='-Bstatic'
21534 cxx*)
21535 # Compaq C++
21536 # Make sure the PIC flag is empty. It appears that all Alpha
21537 # Linux and Compaq Tru64 Unix objects are PIC.
21538 lt_prog_compiler_pic_CXX=
21539 lt_prog_compiler_static_CXX='-non_shared'
21541 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21542 # IBM XL 8.0, 9.0 on PPC and BlueGene
21543 lt_prog_compiler_wl_CXX='-Wl,'
21544 lt_prog_compiler_pic_CXX='-qpic'
21545 lt_prog_compiler_static_CXX='-qstaticlink'
21548 case `$CC -V 2>&1 | sed 5q` in
21549 *Sun\ C*)
21550 # Sun C++ 5.9
21551 lt_prog_compiler_pic_CXX='-KPIC'
21552 lt_prog_compiler_static_CXX='-Bstatic'
21553 lt_prog_compiler_wl_CXX='-Qoption ld '
21555 esac
21557 esac
21559 lynxos*)
21561 m88k*)
21563 mvs*)
21564 case $cc_basename in
21565 cxx*)
21566 lt_prog_compiler_pic_CXX='-W c,exportall'
21570 esac
21572 netbsd*)
21574 *qnx* | *nto*)
21575 # QNX uses GNU C++, but need to define -shared option too, otherwise
21576 # it will coredump.
21577 lt_prog_compiler_pic_CXX='-fPIC -shared'
21579 osf3* | osf4* | osf5*)
21580 case $cc_basename in
21581 KCC*)
21582 lt_prog_compiler_wl_CXX='--backend -Wl,'
21584 RCC*)
21585 # Rational C++ 2.4.1
21586 lt_prog_compiler_pic_CXX='-pic'
21588 cxx*)
21589 # Digital/Compaq C++
21590 lt_prog_compiler_wl_CXX='-Wl,'
21591 # Make sure the PIC flag is empty. It appears that all Alpha
21592 # Linux and Compaq Tru64 Unix objects are PIC.
21593 lt_prog_compiler_pic_CXX=
21594 lt_prog_compiler_static_CXX='-non_shared'
21598 esac
21600 psos*)
21602 solaris*)
21603 case $cc_basename in
21604 CC*)
21605 # Sun C++ 4.2, 5.x and Centerline C++
21606 lt_prog_compiler_pic_CXX='-KPIC'
21607 lt_prog_compiler_static_CXX='-Bstatic'
21608 lt_prog_compiler_wl_CXX='-Qoption ld '
21610 gcx*)
21611 # Green Hills C++ Compiler
21612 lt_prog_compiler_pic_CXX='-PIC'
21616 esac
21618 sunos4*)
21619 case $cc_basename in
21620 CC*)
21621 # Sun C++ 4.x
21622 lt_prog_compiler_pic_CXX='-pic'
21623 lt_prog_compiler_static_CXX='-Bstatic'
21625 lcc*)
21626 # Lucid
21627 lt_prog_compiler_pic_CXX='-pic'
21631 esac
21633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21634 case $cc_basename in
21635 CC*)
21636 lt_prog_compiler_wl_CXX='-Wl,'
21637 lt_prog_compiler_pic_CXX='-KPIC'
21638 lt_prog_compiler_static_CXX='-Bstatic'
21640 esac
21642 tandem*)
21643 case $cc_basename in
21644 NCC*)
21645 # NonStop-UX NCC 3.20
21646 lt_prog_compiler_pic_CXX='-KPIC'
21650 esac
21652 vxworks*)
21655 lt_prog_compiler_can_build_shared_CXX=no
21657 esac
21660 case $host_os in
21661 # For platforms which do not support PIC, -DPIC is meaningless:
21662 *djgpp*)
21663 lt_prog_compiler_pic_CXX=
21666 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21668 esac
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21670 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21675 # Check to make sure the PIC flag actually works.
21677 if test -n "$lt_prog_compiler_pic_CXX"; then
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21680 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21681 $as_echo_n "(cached) " >&6
21682 else
21683 lt_cv_prog_compiler_pic_works_CXX=no
21684 ac_outfile=conftest.$ac_objext
21685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21686 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21687 # Insert the option either (1) after the last *FLAGS variable, or
21688 # (2) before a word containing "conftest.", or (3) at the end.
21689 # Note that $ac_compile itself does not contain backslashes and begins
21690 # with a dollar sign (not a hyphen), so the echo should work correctly.
21691 # The option is referenced via a variable to avoid confusing sed.
21692 lt_compile=`echo "$ac_compile" | $SED \
21693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21695 -e 's:$: $lt_compiler_flag:'`
21696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21697 (eval "$lt_compile" 2>conftest.err)
21698 ac_status=$?
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 if (exit $ac_status) && test -s "$ac_outfile"; then
21702 # The compiler can only warn and ignore the option if not recognized
21703 # So say no if there are warnings other than the usual output.
21704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21707 lt_cv_prog_compiler_pic_works_CXX=yes
21710 $RM conftest*
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21714 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21716 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21717 case $lt_prog_compiler_pic_CXX in
21718 "" | " "*) ;;
21719 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21720 esac
21721 else
21722 lt_prog_compiler_pic_CXX=
21723 lt_prog_compiler_can_build_shared_CXX=no
21731 # Check to make sure the static flag actually works.
21733 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21735 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21736 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21737 $as_echo_n "(cached) " >&6
21738 else
21739 lt_cv_prog_compiler_static_works_CXX=no
21740 save_LDFLAGS="$LDFLAGS"
21741 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21744 # The linker can only warn and ignore the option if not recognized
21745 # So say no if there are warnings
21746 if test -s conftest.err; then
21747 # Append any errors to the config.log.
21748 cat conftest.err 1>&5
21749 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21751 if diff conftest.exp conftest.er2 >/dev/null; then
21752 lt_cv_prog_compiler_static_works_CXX=yes
21754 else
21755 lt_cv_prog_compiler_static_works_CXX=yes
21758 $RM -r conftest*
21759 LDFLAGS="$save_LDFLAGS"
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21763 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21765 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21767 else
21768 lt_prog_compiler_static_CXX=
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21776 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21777 $as_echo_n "(cached) " >&6
21778 else
21779 lt_cv_prog_compiler_c_o_CXX=no
21780 $RM -r conftest 2>/dev/null
21781 mkdir conftest
21782 cd conftest
21783 mkdir out
21784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21786 lt_compiler_flag="-o out/conftest2.$ac_objext"
21787 # Insert the option either (1) after the last *FLAGS variable, or
21788 # (2) before a word containing "conftest.", or (3) at the end.
21789 # Note that $ac_compile itself does not contain backslashes and begins
21790 # with a dollar sign (not a hyphen), so the echo should work correctly.
21791 lt_compile=`echo "$ac_compile" | $SED \
21792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21794 -e 's:$: $lt_compiler_flag:'`
21795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21796 (eval "$lt_compile" 2>out/conftest.err)
21797 ac_status=$?
21798 cat out/conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21801 then
21802 # The compiler can only warn and ignore the option if not recognized
21803 # So say no if there are warnings
21804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21807 lt_cv_prog_compiler_c_o_CXX=yes
21810 chmod u+w . 2>&5
21811 $RM conftest*
21812 # SGI C++ compiler will create directory out/ii_files/ for
21813 # template instantiation
21814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21815 $RM out/* && rmdir out
21816 cd ..
21817 $RM -r conftest
21818 $RM conftest*
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21822 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21827 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21828 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21829 $as_echo_n "(cached) " >&6
21830 else
21831 lt_cv_prog_compiler_c_o_CXX=no
21832 $RM -r conftest 2>/dev/null
21833 mkdir conftest
21834 cd conftest
21835 mkdir out
21836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21838 lt_compiler_flag="-o out/conftest2.$ac_objext"
21839 # Insert the option either (1) after the last *FLAGS variable, or
21840 # (2) before a word containing "conftest.", or (3) at the end.
21841 # Note that $ac_compile itself does not contain backslashes and begins
21842 # with a dollar sign (not a hyphen), so the echo should work correctly.
21843 lt_compile=`echo "$ac_compile" | $SED \
21844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21846 -e 's:$: $lt_compiler_flag:'`
21847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21848 (eval "$lt_compile" 2>out/conftest.err)
21849 ac_status=$?
21850 cat out/conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21853 then
21854 # The compiler can only warn and ignore the option if not recognized
21855 # So say no if there are warnings
21856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21859 lt_cv_prog_compiler_c_o_CXX=yes
21862 chmod u+w . 2>&5
21863 $RM conftest*
21864 # SGI C++ compiler will create directory out/ii_files/ for
21865 # template instantiation
21866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21867 $RM out/* && rmdir out
21868 cd ..
21869 $RM -r conftest
21870 $RM conftest*
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21874 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21879 hard_links="nottested"
21880 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21881 # do not overwrite the value of need_locks provided by the user
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21883 $as_echo_n "checking if we can lock with hard links... " >&6; }
21884 hard_links=yes
21885 $RM conftest*
21886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21887 touch conftest.a
21888 ln conftest.a conftest.b 2>&5 || hard_links=no
21889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21891 $as_echo "$hard_links" >&6; }
21892 if test "$hard_links" = no; then
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21894 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21895 need_locks=warn
21897 else
21898 need_locks=no
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21904 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21906 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21907 case $host_os in
21908 aix[4-9]*)
21909 # If we're using GNU nm, then we don't want the "-C" option.
21910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21911 # Also, AIX nm treats weak defined symbols like other global defined
21912 # symbols, whereas GNU nm marks them as "W".
21913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21914 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'
21915 else
21916 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'
21919 pw32*)
21920 export_symbols_cmds_CXX="$ltdll_cmds"
21922 cygwin* | mingw* | cegcc*)
21923 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'
21926 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21928 esac
21929 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21932 $as_echo "$ld_shlibs_CXX" >&6; }
21933 test "$ld_shlibs_CXX" = no && can_build_shared=no
21935 with_gnu_ld_CXX=$with_gnu_ld
21943 # Do we need to explicitly link libc?
21945 case "x$archive_cmds_need_lc_CXX" in
21946 x|xyes)
21947 # Assume -lc should be added
21948 archive_cmds_need_lc_CXX=yes
21950 if test "$enable_shared" = yes && test "$GCC" = yes; then
21951 case $archive_cmds_CXX in
21952 *'~'*)
21953 # FIXME: we may have to deal with multi-command sequences.
21955 '$CC '*)
21956 # Test whether the compiler implicitly links with -lc since on some
21957 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21958 # to ld, don't add -lc before -lgcc.
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21960 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21961 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21962 $as_echo_n "(cached) " >&6
21963 else
21964 $RM conftest*
21965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21968 (eval $ac_compile) 2>&5
21969 ac_status=$?
21970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21971 test $ac_status = 0; } 2>conftest.err; then
21972 soname=conftest
21973 lib=conftest
21974 libobjs=conftest.$ac_objext
21975 deplibs=
21976 wl=$lt_prog_compiler_wl_CXX
21977 pic_flag=$lt_prog_compiler_pic_CXX
21978 compiler_flags=-v
21979 linker_flags=-v
21980 verstring=
21981 output_objdir=.
21982 libname=conftest
21983 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21984 allow_undefined_flag_CXX=
21985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21986 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21987 ac_status=$?
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }
21990 then
21991 lt_cv_archive_cmds_need_lc_CXX=no
21992 else
21993 lt_cv_archive_cmds_need_lc_CXX=yes
21995 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21996 else
21997 cat conftest.err 1>&5
21999 $RM conftest*
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22003 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22004 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22006 esac
22009 esac
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22075 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22077 library_names_spec=
22078 libname_spec='lib$name'
22079 soname_spec=
22080 shrext_cmds=".so"
22081 postinstall_cmds=
22082 postuninstall_cmds=
22083 finish_cmds=
22084 finish_eval=
22085 shlibpath_var=
22086 shlibpath_overrides_runpath=unknown
22087 version_type=none
22088 dynamic_linker="$host_os ld.so"
22089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22090 need_lib_prefix=unknown
22091 hardcode_into_libs=no
22093 # when you set need_version to no, make sure it does not cause -set_version
22094 # flags to be left without arguments
22095 need_version=unknown
22097 case $host_os in
22098 aix3*)
22099 version_type=linux
22100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22101 shlibpath_var=LIBPATH
22103 # AIX 3 has no versioning support, so we append a major version to the name.
22104 soname_spec='${libname}${release}${shared_ext}$major'
22107 aix[4-9]*)
22108 version_type=linux
22109 need_lib_prefix=no
22110 need_version=no
22111 hardcode_into_libs=yes
22112 if test "$host_cpu" = ia64; then
22113 # AIX 5 supports IA64
22114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22115 shlibpath_var=LD_LIBRARY_PATH
22116 else
22117 # With GCC up to 2.95.x, collect2 would create an import file
22118 # for dependence libraries. The import file would start with
22119 # the line `#! .'. This would cause the generated library to
22120 # depend on `.', always an invalid library. This was fixed in
22121 # development snapshots of GCC prior to 3.0.
22122 case $host_os in
22123 aix4 | aix4.[01] | aix4.[01].*)
22124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22125 echo ' yes '
22126 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22128 else
22129 can_build_shared=no
22132 esac
22133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22134 # soname into executable. Probably we can add versioning support to
22135 # collect2, so additional links can be useful in future.
22136 if test "$aix_use_runtimelinking" = yes; then
22137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22138 # instead of lib<name>.a to let people know that these are not
22139 # typical AIX shared libraries.
22140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22141 else
22142 # We preserve .a as extension for shared libraries through AIX4.2
22143 # and later when we are not doing run time linking.
22144 library_names_spec='${libname}${release}.a $libname.a'
22145 soname_spec='${libname}${release}${shared_ext}$major'
22147 shlibpath_var=LIBPATH
22151 amigaos*)
22152 case $host_cpu in
22153 powerpc)
22154 # Since July 2007 AmigaOS4 officially supports .so libraries.
22155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22158 m68k)
22159 library_names_spec='$libname.ixlibrary $libname.a'
22160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22161 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'
22163 esac
22166 beos*)
22167 library_names_spec='${libname}${shared_ext}'
22168 dynamic_linker="$host_os ld.so"
22169 shlibpath_var=LIBRARY_PATH
22172 bsdi[45]*)
22173 version_type=linux
22174 need_version=no
22175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22176 soname_spec='${libname}${release}${shared_ext}$major'
22177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22178 shlibpath_var=LD_LIBRARY_PATH
22179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22181 # the default ld.so.conf also contains /usr/contrib/lib and
22182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22183 # libtool to hard-code these into programs
22186 cygwin* | mingw* | pw32* | cegcc*)
22187 version_type=windows
22188 shrext_cmds=".dll"
22189 need_version=no
22190 need_lib_prefix=no
22192 case $GCC,$host_os in
22193 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22194 library_names_spec='$libname.dll.a'
22195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22196 postinstall_cmds='base_file=`basename \${file}`~
22197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22198 dldir=$destdir/`dirname \$dlpath`~
22199 test -d \$dldir || mkdir -p \$dldir~
22200 $install_prog $dir/$dlname \$dldir/$dlname~
22201 chmod a+x \$dldir/$dlname~
22202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22206 dlpath=$dir/\$dldll~
22207 $RM \$dlpath'
22208 shlibpath_overrides_runpath=yes
22210 case $host_os in
22211 cygwin*)
22212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22216 mingw* | cegcc*)
22217 # MinGW DLLs use traditional 'lib' prefix
22218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22220 pw32*)
22221 # pw32 DLLs use 'pw' prefix rather than 'lib'
22222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22224 esac
22228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22230 esac
22231 dynamic_linker='Win32 ld.exe'
22232 # FIXME: first we should search . and the directory the executable is in
22233 shlibpath_var=PATH
22236 darwin* | rhapsody*)
22237 dynamic_linker="$host_os dyld"
22238 version_type=darwin
22239 need_lib_prefix=no
22240 need_version=no
22241 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22242 soname_spec='${libname}${release}${major}$shared_ext'
22243 shlibpath_overrides_runpath=yes
22244 shlibpath_var=DYLD_LIBRARY_PATH
22245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22250 dgux*)
22251 version_type=linux
22252 need_lib_prefix=no
22253 need_version=no
22254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22255 soname_spec='${libname}${release}${shared_ext}$major'
22256 shlibpath_var=LD_LIBRARY_PATH
22259 freebsd* | dragonfly*)
22260 # DragonFly does not have aout. When/if they implement a new
22261 # versioning mechanism, adjust this.
22262 if test -x /usr/bin/objformat; then
22263 objformat=`/usr/bin/objformat`
22264 else
22265 case $host_os in
22266 freebsd[23].*) objformat=aout ;;
22267 *) objformat=elf ;;
22268 esac
22270 version_type=freebsd-$objformat
22271 case $version_type in
22272 freebsd-elf*)
22273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22274 need_version=no
22275 need_lib_prefix=no
22277 freebsd-*)
22278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22279 need_version=yes
22281 esac
22282 shlibpath_var=LD_LIBRARY_PATH
22283 case $host_os in
22284 freebsd2.*)
22285 shlibpath_overrides_runpath=yes
22287 freebsd3.[01]* | freebsdelf3.[01]*)
22288 shlibpath_overrides_runpath=yes
22289 hardcode_into_libs=yes
22291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22293 shlibpath_overrides_runpath=no
22294 hardcode_into_libs=yes
22296 *) # from 4.6 on, and DragonFly
22297 shlibpath_overrides_runpath=yes
22298 hardcode_into_libs=yes
22300 esac
22303 haiku*)
22304 version_type=linux
22305 need_lib_prefix=no
22306 need_version=no
22307 dynamic_linker="$host_os runtime_loader"
22308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22309 soname_spec='${libname}${release}${shared_ext}$major'
22310 shlibpath_var=LIBRARY_PATH
22311 shlibpath_overrides_runpath=yes
22312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22313 hardcode_into_libs=yes
22316 hpux9* | hpux10* | hpux11*)
22317 # Give a soname corresponding to the major version so that dld.sl refuses to
22318 # link against other versions.
22319 version_type=sunos
22320 need_lib_prefix=no
22321 need_version=no
22322 case $host_cpu in
22323 ia64*)
22324 shrext_cmds='.so'
22325 hardcode_into_libs=yes
22326 dynamic_linker="$host_os dld.so"
22327 shlibpath_var=LD_LIBRARY_PATH
22328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22330 soname_spec='${libname}${release}${shared_ext}$major'
22331 if test "X$HPUX_IA64_MODE" = X32; then
22332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22333 else
22334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22338 hppa*64*)
22339 shrext_cmds='.sl'
22340 hardcode_into_libs=yes
22341 dynamic_linker="$host_os dld.sl"
22342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22345 soname_spec='${libname}${release}${shared_ext}$major'
22346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22350 shrext_cmds='.sl'
22351 dynamic_linker="$host_os dld.sl"
22352 shlibpath_var=SHLIB_PATH
22353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22355 soname_spec='${libname}${release}${shared_ext}$major'
22357 esac
22358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22359 postinstall_cmds='chmod 555 $lib'
22360 # or fails outright, so override atomically:
22361 install_override_mode=555
22364 interix[3-9]*)
22365 version_type=linux
22366 need_lib_prefix=no
22367 need_version=no
22368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22369 soname_spec='${libname}${release}${shared_ext}$major'
22370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22371 shlibpath_var=LD_LIBRARY_PATH
22372 shlibpath_overrides_runpath=no
22373 hardcode_into_libs=yes
22376 irix5* | irix6* | nonstopux*)
22377 case $host_os in
22378 nonstopux*) version_type=nonstopux ;;
22380 if test "$lt_cv_prog_gnu_ld" = yes; then
22381 version_type=linux
22382 else
22383 version_type=irix
22384 fi ;;
22385 esac
22386 need_lib_prefix=no
22387 need_version=no
22388 soname_spec='${libname}${release}${shared_ext}$major'
22389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22390 case $host_os in
22391 irix5* | nonstopux*)
22392 libsuff= shlibsuff=
22395 case $LD in # libtool.m4 will add one of these switches to LD
22396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22397 libsuff= shlibsuff= libmagic=32-bit;;
22398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22399 libsuff=32 shlibsuff=N32 libmagic=N32;;
22400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22402 *) libsuff= shlibsuff= libmagic=never-match;;
22403 esac
22405 esac
22406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22407 shlibpath_overrides_runpath=no
22408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22410 hardcode_into_libs=yes
22413 # No shared lib support for Linux oldld, aout, or coff.
22414 linux*oldld* | linux*aout* | linux*coff*)
22415 dynamic_linker=no
22418 # This must be Linux ELF.
22420 # uclinux* changes (here and below) have been submitted to the libtool
22421 # project, but have not yet been accepted: they are GCC-local changes
22422 # for the time being. (See
22423 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22424 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22425 version_type=linux
22426 need_lib_prefix=no
22427 need_version=no
22428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22429 soname_spec='${libname}${release}${shared_ext}$major'
22430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22431 shlibpath_var=LD_LIBRARY_PATH
22432 shlibpath_overrides_runpath=no
22434 # Some binutils ld are patched to set DT_RUNPATH
22435 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22436 $as_echo_n "(cached) " >&6
22437 else
22438 lt_cv_shlibpath_overrides_runpath=no
22439 save_LDFLAGS=$LDFLAGS
22440 save_libdir=$libdir
22441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22447 main ()
22451 return 0;
22453 _ACEOF
22454 if ac_fn_cxx_try_link "$LINENO"; then :
22455 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22456 lt_cv_shlibpath_overrides_runpath=yes
22459 rm -f core conftest.err conftest.$ac_objext \
22460 conftest$ac_exeext conftest.$ac_ext
22461 LDFLAGS=$save_LDFLAGS
22462 libdir=$save_libdir
22466 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22468 # This implies no fast_install, which is unacceptable.
22469 # Some rework will be needed to allow for fast_install
22470 # before this can be enabled.
22471 hardcode_into_libs=yes
22473 # Append ld.so.conf contents to the search path
22474 if test -f /etc/ld.so.conf; then
22475 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' ' '`
22476 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22479 # We used to test for /lib/ld.so.1 and disable shared libraries on
22480 # powerpc, because MkLinux only supported shared libraries with the
22481 # GNU dynamic linker. Since this was broken with cross compilers,
22482 # most powerpc-linux boxes support dynamic linking these days and
22483 # people can always --disable-shared, the test was removed, and we
22484 # assume the GNU/Linux dynamic linker is in use.
22485 dynamic_linker='GNU/Linux ld.so'
22488 netbsd*)
22489 version_type=sunos
22490 need_lib_prefix=no
22491 need_version=no
22492 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22495 dynamic_linker='NetBSD (a.out) ld.so'
22496 else
22497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22498 soname_spec='${libname}${release}${shared_ext}$major'
22499 dynamic_linker='NetBSD ld.elf_so'
22501 shlibpath_var=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath=yes
22503 hardcode_into_libs=yes
22506 newsos6)
22507 version_type=linux
22508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22509 shlibpath_var=LD_LIBRARY_PATH
22510 shlibpath_overrides_runpath=yes
22513 *nto* | *qnx*)
22514 version_type=qnx
22515 need_lib_prefix=no
22516 need_version=no
22517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22518 soname_spec='${libname}${release}${shared_ext}$major'
22519 shlibpath_var=LD_LIBRARY_PATH
22520 shlibpath_overrides_runpath=no
22521 hardcode_into_libs=yes
22522 dynamic_linker='ldqnx.so'
22525 openbsd*)
22526 version_type=sunos
22527 sys_lib_dlsearch_path_spec="/usr/lib"
22528 need_lib_prefix=no
22529 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22530 case $host_os in
22531 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22532 *) need_version=no ;;
22533 esac
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22536 shlibpath_var=LD_LIBRARY_PATH
22537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22538 case $host_os in
22539 openbsd2.[89] | openbsd2.[89].*)
22540 shlibpath_overrides_runpath=no
22543 shlibpath_overrides_runpath=yes
22545 esac
22546 else
22547 shlibpath_overrides_runpath=yes
22551 os2*)
22552 libname_spec='$name'
22553 shrext_cmds=".dll"
22554 need_lib_prefix=no
22555 library_names_spec='$libname${shared_ext} $libname.a'
22556 dynamic_linker='OS/2 ld.exe'
22557 shlibpath_var=LIBPATH
22560 osf3* | osf4* | osf5*)
22561 version_type=osf
22562 need_lib_prefix=no
22563 need_version=no
22564 soname_spec='${libname}${release}${shared_ext}$major'
22565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22566 shlibpath_var=LD_LIBRARY_PATH
22567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22571 rdos*)
22572 dynamic_linker=no
22575 solaris*)
22576 version_type=linux
22577 need_lib_prefix=no
22578 need_version=no
22579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22580 soname_spec='${libname}${release}${shared_ext}$major'
22581 shlibpath_var=LD_LIBRARY_PATH
22582 shlibpath_overrides_runpath=yes
22583 hardcode_into_libs=yes
22584 # ldd complains unless libraries are executable
22585 postinstall_cmds='chmod +x $lib'
22588 sunos4*)
22589 version_type=sunos
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22592 shlibpath_var=LD_LIBRARY_PATH
22593 shlibpath_overrides_runpath=yes
22594 if test "$with_gnu_ld" = yes; then
22595 need_lib_prefix=no
22597 need_version=yes
22600 sysv4 | sysv4.3*)
22601 version_type=linux
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22604 shlibpath_var=LD_LIBRARY_PATH
22605 case $host_vendor in
22606 sni)
22607 shlibpath_overrides_runpath=no
22608 need_lib_prefix=no
22609 runpath_var=LD_RUN_PATH
22611 siemens)
22612 need_lib_prefix=no
22614 motorola)
22615 need_lib_prefix=no
22616 need_version=no
22617 shlibpath_overrides_runpath=no
22618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22620 esac
22623 sysv4*MP*)
22624 if test -d /usr/nec ;then
22625 version_type=linux
22626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22627 soname_spec='$libname${shared_ext}.$major'
22628 shlibpath_var=LD_LIBRARY_PATH
22632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22633 version_type=freebsd-elf
22634 need_lib_prefix=no
22635 need_version=no
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22637 soname_spec='${libname}${release}${shared_ext}$major'
22638 shlibpath_var=LD_LIBRARY_PATH
22639 shlibpath_overrides_runpath=yes
22640 hardcode_into_libs=yes
22641 if test "$with_gnu_ld" = yes; then
22642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22643 else
22644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22645 case $host_os in
22646 sco3.2v5*)
22647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22649 esac
22651 sys_lib_dlsearch_path_spec='/usr/lib'
22654 tpf*)
22655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22656 version_type=linux
22657 need_lib_prefix=no
22658 need_version=no
22659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22660 shlibpath_var=LD_LIBRARY_PATH
22661 shlibpath_overrides_runpath=no
22662 hardcode_into_libs=yes
22665 uts4*)
22666 version_type=linux
22667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22668 soname_spec='${libname}${release}${shared_ext}$major'
22669 shlibpath_var=LD_LIBRARY_PATH
22673 dynamic_linker=no
22675 esac
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22677 $as_echo "$dynamic_linker" >&6; }
22678 test "$dynamic_linker" = no && can_build_shared=no
22680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22681 if test "$GCC" = yes; then
22682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22685 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22686 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22688 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22689 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22730 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22731 hardcode_action_CXX=
22732 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22733 test -n "$runpath_var_CXX" ||
22734 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22736 # We can hardcode non-existent directories.
22737 if test "$hardcode_direct_CXX" != no &&
22738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22739 # have to relink, otherwise we might link with an installed library
22740 # when we should be linking with a yet-to-be-installed one
22741 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22742 test "$hardcode_minus_L_CXX" != no; then
22743 # Linking always hardcodes the temporary library directory.
22744 hardcode_action_CXX=relink
22745 else
22746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22747 hardcode_action_CXX=immediate
22749 else
22750 # We cannot hardcode anything, or else we can only hardcode existing
22751 # directories.
22752 hardcode_action_CXX=unsupported
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22755 $as_echo "$hardcode_action_CXX" >&6; }
22757 if test "$hardcode_action_CXX" = relink ||
22758 test "$inherit_rpath_CXX" = yes; then
22759 # Fast installation is not supported
22760 enable_fast_install=no
22761 elif test "$shlibpath_overrides_runpath" = yes ||
22762 test "$enable_shared" = no; then
22763 # Fast installation is not necessary
22764 enable_fast_install=needless
22773 fi # test -n "$compiler"
22775 CC=$lt_save_CC
22776 LDCXX=$LD
22777 LD=$lt_save_LD
22778 GCC=$lt_save_GCC
22779 with_gnu_ld=$lt_save_with_gnu_ld
22780 lt_cv_path_LDCXX=$lt_cv_path_LD
22781 lt_cv_path_LD=$lt_save_path_LD
22782 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22783 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22784 fi # test "$_lt_caught_CXX_error" != yes
22786 ac_ext=cpp
22787 ac_cpp='$CXXCPP $CPPFLAGS'
22788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22807 # Only expand once:
22813 # Identify the assembler which will work hand-in-glove with the newly
22814 # built GCC, so that we can examine its features. This is the assembler
22815 # which will be driven by the driver program.
22817 # If build != host, and we aren't building gas in-tree, we identify a
22818 # build->target assembler and hope that it will have the same features
22819 # as the host->target assembler we'll be using.
22820 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22822 if ${gcc_cv_as+:} false; then :
22824 else
22826 if test -x "$DEFAULT_ASSEMBLER"; then
22827 gcc_cv_as="$DEFAULT_ASSEMBLER"
22828 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22829 && test -f ../gas/Makefile \
22830 && test x$build = x$host; then
22831 gcc_cv_as=../gas/as-new$build_exeext
22832 elif test -x as$build_exeext; then
22833 # Build using assembler in the current directory.
22834 gcc_cv_as=./as$build_exeext
22835 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22836 gcc_cv_as="$AS_FOR_TARGET"
22837 else
22838 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22839 set dummy $AS_FOR_TARGET; ac_word=$2
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22841 $as_echo_n "checking for $ac_word... " >&6; }
22842 if ${ac_cv_path_gcc_cv_as+:} false; then :
22843 $as_echo_n "(cached) " >&6
22844 else
22845 case $gcc_cv_as in
22846 [\\/]* | ?:[\\/]*)
22847 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22851 for as_dir in $PATH
22853 IFS=$as_save_IFS
22854 test -z "$as_dir" && as_dir=.
22855 for ac_exec_ext in '' $ac_executable_extensions; do
22856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22857 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22859 break 2
22861 done
22862 done
22863 IFS=$as_save_IFS
22866 esac
22868 gcc_cv_as=$ac_cv_path_gcc_cv_as
22869 if test -n "$gcc_cv_as"; then
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22871 $as_echo "$gcc_cv_as" >&6; }
22872 else
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 $as_echo "no" >&6; }
22881 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22883 case "$ORIGINAL_AS_FOR_TARGET" in
22884 ./as | ./as$build_exeext) ;;
22885 *) ac_config_files="$ac_config_files as:exec-tool.in"
22887 esac
22889 default_ld=
22890 # Check whether --enable-ld was given.
22891 if test "${enable_ld+set}" = set; then :
22892 enableval=$enable_ld; case "${enableval}" in
22894 default_ld=ld.gold
22896 esac
22900 install_gold_as_default=no
22901 # Check whether --enable-gold was given.
22902 if test "${enable_gold+set}" = set; then :
22903 enableval=$enable_gold; case "${enableval}" in
22904 default)
22905 install_gold_as_default=yes
22907 yes)
22908 if test x${default_ld} != x; then
22909 install_gold_as_default=yes
22915 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22917 esac
22921 # Identify the linker which will work hand-in-glove with the newly
22922 # built GCC, so that we can examine its features. This is the linker
22923 # which will be driven by the driver program.
22925 # If build != host, and we aren't building gas in-tree, we identify a
22926 # build->target linker and hope that it will have the same features
22927 # as the host->target linker we'll be using.
22928 gcc_cv_gld_major_version=
22929 gcc_cv_gld_minor_version=
22930 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22931 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22932 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22934 if ${gcc_cv_ld+:} false; then :
22936 else
22938 if test -x "$DEFAULT_LINKER"; then
22939 gcc_cv_ld="$DEFAULT_LINKER"
22940 elif test $install_gold_as_default = yes \
22941 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22942 && test -f ../gold/Makefile \
22943 && test x$build = x$host; then
22944 gcc_cv_ld=../gold/ld-new$build_exeext
22945 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22946 && test -f ../ld/Makefile \
22947 && test x$build = x$host; then
22948 gcc_cv_ld=../ld/ld-new$build_exeext
22949 elif test -x collect-ld$build_exeext; then
22950 # Build using linker in the current directory.
22951 gcc_cv_ld=./collect-ld$build_exeext
22952 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22953 gcc_cv_ld="$LD_FOR_TARGET"
22954 else
22955 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22956 set dummy $LD_FOR_TARGET; ac_word=$2
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22958 $as_echo_n "checking for $ac_word... " >&6; }
22959 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22960 $as_echo_n "(cached) " >&6
22961 else
22962 case $gcc_cv_ld in
22963 [\\/]* | ?:[\\/]*)
22964 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22970 IFS=$as_save_IFS
22971 test -z "$as_dir" && as_dir=.
22972 for ac_exec_ext in '' $ac_executable_extensions; do
22973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22974 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22976 break 2
22978 done
22979 done
22980 IFS=$as_save_IFS
22983 esac
22985 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22986 if test -n "$gcc_cv_ld"; then
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22988 $as_echo "$gcc_cv_ld" >&6; }
22989 else
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22991 $as_echo "no" >&6; }
22998 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22999 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23000 # if the PLUGIN_LD is set ld-new, just have it as ld
23001 # as that is the installed named.
23002 if test x$PLUGIN_LD_SUFFIX = xld-new \
23003 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23004 PLUGIN_LD_SUFFIX=ld
23007 # Check whether --with-plugin-ld was given.
23008 if test "${with_plugin_ld+set}" = set; then :
23009 withval=$with_plugin_ld; if test x"$withval" != x; then
23010 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23011 PLUGIN_LD_SUFFIX="$withval"
23017 cat >>confdefs.h <<_ACEOF
23018 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23019 _ACEOF
23022 # Check to see if we are using gold instead of ld
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23024 $as_echo_n "checking whether we are using gold... " >&6; }
23025 ld_is_gold=no
23026 if test x$gcc_cv_ld != x; then
23027 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23028 | grep "GNU gold" > /dev/null; then
23029 ld_is_gold=yes
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23033 $as_echo "$ld_is_gold" >&6; }
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23036 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23037 # Check to see if default ld is not gold, but gold is
23038 # available and has support for split stack. If gcc was configured
23039 # with gold then no checking is done.
23041 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23043 # For platforms other than powerpc64*, enable as appropriate.
23045 gold_non_default=no
23046 ld_gold=`which ${gcc_cv_ld}.gold`
23047 # Make sure this gold has minimal split stack support
23048 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23049 ld_vers=`$ld_gold --version | sed 1q`
23050 gold_vers=`echo $ld_vers | sed -n \
23051 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23052 case $target in
23053 # check that the gold version contains the complete split stack support
23054 # on powerpc64 big and little endian
23055 powerpc64*-*-*)
23056 case "$gold_vers" in
23057 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23059 *) gold_non_default=no
23061 esac
23063 esac
23065 if test $gold_non_default = yes; then
23067 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23072 $as_echo "$gold_non_default" >&6; }
23074 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23076 case "$ORIGINAL_LD_FOR_TARGET" in
23077 ./collect-ld | ./collect-ld$build_exeext) ;;
23078 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23080 esac
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23083 $as_echo_n "checking what linker to use... " >&6; }
23084 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23085 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23086 # Single tree build which includes ld. We want to prefer it
23087 # over whatever linker top-level may have detected, since
23088 # we'll use what we're building after installation anyway.
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23090 $as_echo "newly built ld" >&6; }
23091 in_tree_ld=yes
23092 in_tree_ld_is_elf=no
23093 if (grep 'EMUL = .*elf' ../ld/Makefile \
23094 || grep 'EMUL = .*linux' ../ld/Makefile \
23095 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23096 in_tree_ld_is_elf=yes
23097 elif test "$ld_is_gold" = yes; then
23098 in_tree_ld_is_elf=yes
23100 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
23102 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23103 if test x$gcc_cv_gld_version != x; then
23104 break
23106 done
23107 case $gcc_cv_gld_version in
23108 VERSION=[0-9]*) ;;
23109 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23110 esac
23111 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23112 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23113 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23114 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23115 else
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23117 $as_echo "$gcc_cv_ld" >&6; }
23118 in_tree_ld=no
23119 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23120 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23121 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23127 # Figure out what nm we will be using.
23128 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23129 if ${gcc_cv_nm+:} false; then :
23131 else
23133 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23134 && test -f ../binutils/Makefile \
23135 && test x$build = x$host; then
23136 gcc_cv_nm=../binutils/nm-new$build_exeext
23137 elif test -x nm$build_exeext; then
23138 gcc_cv_nm=./nm$build_exeext
23139 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23140 gcc_cv_nm="$NM_FOR_TARGET"
23141 else
23142 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23143 set dummy $NM_FOR_TARGET; ac_word=$2
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23145 $as_echo_n "checking for $ac_word... " >&6; }
23146 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23147 $as_echo_n "(cached) " >&6
23148 else
23149 case $gcc_cv_nm in
23150 [\\/]* | ?:[\\/]*)
23151 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23155 for as_dir in $PATH
23157 IFS=$as_save_IFS
23158 test -z "$as_dir" && as_dir=.
23159 for ac_exec_ext in '' $ac_executable_extensions; do
23160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23161 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23163 break 2
23165 done
23166 done
23167 IFS=$as_save_IFS
23170 esac
23172 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23173 if test -n "$gcc_cv_nm"; then
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23175 $as_echo "$gcc_cv_nm" >&6; }
23176 else
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23178 $as_echo "no" >&6; }
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23186 $as_echo_n "checking what nm to use... " >&6; }
23187 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23188 # Single tree build which includes binutils.
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23190 $as_echo "newly built nm" >&6; }
23191 in_tree_nm=yes
23192 else
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23194 $as_echo "$gcc_cv_nm" >&6; }
23195 in_tree_nm=no
23198 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23200 case "$ORIGINAL_NM_FOR_TARGET" in
23201 ./nm | ./nm$build_exeext) ;;
23202 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23204 esac
23207 # Figure out what objdump we will be using.
23208 if ${gcc_cv_objdump+:} false; then :
23210 else
23212 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23213 && test -f ../binutils/Makefile \
23214 && test x$build = x$host; then
23215 # Single tree build which includes binutils.
23216 gcc_cv_objdump=../binutils/objdump$build_exeext
23217 elif test -x objdump$build_exeext; then
23218 gcc_cv_objdump=./objdump$build_exeext
23219 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23220 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23221 else
23222 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23223 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23225 $as_echo_n "checking for $ac_word... " >&6; }
23226 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23227 $as_echo_n "(cached) " >&6
23228 else
23229 case $gcc_cv_objdump in
23230 [\\/]* | ?:[\\/]*)
23231 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23235 for as_dir in $PATH
23237 IFS=$as_save_IFS
23238 test -z "$as_dir" && as_dir=.
23239 for ac_exec_ext in '' $ac_executable_extensions; do
23240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23241 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23243 break 2
23245 done
23246 done
23247 IFS=$as_save_IFS
23250 esac
23252 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23253 if test -n "$gcc_cv_objdump"; then
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23255 $as_echo "$gcc_cv_objdump" >&6; }
23256 else
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23258 $as_echo "no" >&6; }
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23266 $as_echo_n "checking what objdump to use... " >&6; }
23267 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23268 # Single tree build which includes binutils.
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23270 $as_echo "newly built objdump" >&6; }
23271 elif test x$gcc_cv_objdump = x; then
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23273 $as_echo "not found" >&6; }
23274 else
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23276 $as_echo "$gcc_cv_objdump" >&6; }
23279 # Figure out what readelf we will be using.
23280 if ${gcc_cv_readelf+:} false; then :
23282 else
23284 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23285 && test -f ../binutils/Makefile \
23286 && test x$build = x$host; then
23287 # Single tree build which includes binutils.
23288 gcc_cv_readelf=../binutils/readelf$build_exeext
23289 elif test -x readelf$build_exeext; then
23290 gcc_cv_readelf=./readelf$build_exeext
23291 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23292 gcc_cv_readelf="$READELF_FOR_TARGET"
23293 else
23294 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23295 set dummy $READELF_FOR_TARGET; ac_word=$2
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23297 $as_echo_n "checking for $ac_word... " >&6; }
23298 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23299 $as_echo_n "(cached) " >&6
23300 else
23301 case $gcc_cv_readelf in
23302 [\\/]* | ?:[\\/]*)
23303 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23307 for as_dir in $PATH
23309 IFS=$as_save_IFS
23310 test -z "$as_dir" && as_dir=.
23311 for ac_exec_ext in '' $ac_executable_extensions; do
23312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23313 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23315 break 2
23317 done
23318 done
23319 IFS=$as_save_IFS
23322 esac
23324 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23325 if test -n "$gcc_cv_readelf"; then
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23327 $as_echo "$gcc_cv_readelf" >&6; }
23328 else
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23338 $as_echo_n "checking what readelf to use... " >&6; }
23339 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23340 # Single tree build which includes binutils.
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23342 $as_echo "newly built readelf" >&6; }
23343 elif test x$gcc_cv_readelf = x; then
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23345 $as_echo "not found" >&6; }
23346 else
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23348 $as_echo "$gcc_cv_readelf" >&6; }
23351 # Figure out what otool we will be using.
23352 if ${gcc_cv_otool+:} false; then :
23354 else
23356 if test -x otool$build_exeext; then
23357 gcc_cv_otool=./otool$build_exeext
23358 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23359 gcc_cv_otool="$OTOOL_FOR_TARGET"
23360 else
23361 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23362 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23364 $as_echo_n "checking for $ac_word... " >&6; }
23365 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23366 $as_echo_n "(cached) " >&6
23367 else
23368 case $gcc_cv_otool in
23369 [\\/]* | ?:[\\/]*)
23370 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23374 for as_dir in $PATH
23376 IFS=$as_save_IFS
23377 test -z "$as_dir" && as_dir=.
23378 for ac_exec_ext in '' $ac_executable_extensions; do
23379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23380 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23382 break 2
23384 done
23385 done
23386 IFS=$as_save_IFS
23389 esac
23391 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23392 if test -n "$gcc_cv_otool"; then
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23394 $as_echo "$gcc_cv_otool" >&6; }
23395 else
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23397 $as_echo "no" >&6; }
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23405 $as_echo_n "checking what otool to use... " >&6; }
23406 if test x$gcc_cv_otool = x; then
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23408 $as_echo "not found" >&6; }
23409 else
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23411 $as_echo "$gcc_cv_otool" >&6; }
23414 # Figure out the dsymutil we will use.
23415 if ${gcc_cv_dsymutil+:} false; then :
23417 else
23419 if test -x "$DEFAULT_DSYMUTIL"; then
23420 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23421 elif test -x dsymutil$build_exeext; then
23422 gcc_cv_dsymutil=./dsymutil$build_exeext
23423 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23424 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23425 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23426 gcc_cv_dsymutil=$DSYMUTIL
23427 else
23428 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23429 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23431 $as_echo_n "checking for $ac_word... " >&6; }
23432 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23433 $as_echo_n "(cached) " >&6
23434 else
23435 case $gcc_cv_dsymutil in
23436 [\\/]* | ?:[\\/]*)
23437 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23441 for as_dir in $PATH
23443 IFS=$as_save_IFS
23444 test -z "$as_dir" && as_dir=.
23445 for ac_exec_ext in '' $ac_executable_extensions; do
23446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23447 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23449 break 2
23451 done
23452 done
23453 IFS=$as_save_IFS
23456 esac
23458 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23459 if test -n "$gcc_cv_dsymutil"; then
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23461 $as_echo "$gcc_cv_dsymutil" >&6; }
23462 else
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23464 $as_echo "no" >&6; }
23471 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23473 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23474 ./dsymutil | ./dsymutil$build_exeext) ;;
23475 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23477 esac
23479 # Figure out what assembler alignment features are present.
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23481 $as_echo_n "checking assembler flags... " >&6; }
23482 if ${gcc_cv_as_flags+:} false; then :
23483 $as_echo_n "(cached) " >&6
23484 else
23485 case "$target" in
23486 i[34567]86-*-linux*)
23487 gcc_cv_as_flags=--32
23489 x86_64-*-linux-gnux32)
23490 gcc_cv_as_flags=--x32
23492 x86_64-*-linux*)
23493 gcc_cv_as_flags=--64
23495 powerpc*-*-darwin*)
23496 gcc_cv_as_flags="-arch ppc"
23499 gcc_cv_as_flags=" "
23501 esac
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23504 $as_echo "$gcc_cv_as_flags" >&6; }
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23507 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23508 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23509 $as_echo_n "(cached) " >&6
23510 else
23511 gcc_cv_as_balign_and_p2align=no
23512 if test x$gcc_cv_as != x; then
23513 $as_echo '.balign 4
23514 .p2align 2' > conftest.s
23515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23517 (eval $ac_try) 2>&5
23518 ac_status=$?
23519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23520 test $ac_status = 0; }; }
23521 then
23522 gcc_cv_as_balign_and_p2align=yes
23523 else
23524 echo "configure: failed program was" >&5
23525 cat conftest.s >&5
23527 rm -f conftest.o conftest.s
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23531 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23532 if test $gcc_cv_as_balign_and_p2align = yes; then
23534 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23540 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23541 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23542 $as_echo_n "(cached) " >&6
23543 else
23544 gcc_cv_as_max_skip_p2align=no
23545 if test x$gcc_cv_as != x; then
23546 $as_echo '.p2align 4,,7' > conftest.s
23547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23553 then
23554 gcc_cv_as_max_skip_p2align=yes
23555 else
23556 echo "configure: failed program was" >&5
23557 cat conftest.s >&5
23559 rm -f conftest.o conftest.s
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23563 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23564 if test $gcc_cv_as_max_skip_p2align = yes; then
23566 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23572 $as_echo_n "checking assembler for .literal16... " >&6; }
23573 if ${gcc_cv_as_literal16+:} false; then :
23574 $as_echo_n "(cached) " >&6
23575 else
23576 gcc_cv_as_literal16=no
23577 if test x$gcc_cv_as != x; then
23578 $as_echo '.literal16' > conftest.s
23579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23585 then
23586 gcc_cv_as_literal16=yes
23587 else
23588 echo "configure: failed program was" >&5
23589 cat conftest.s >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23595 $as_echo "$gcc_cv_as_literal16" >&6; }
23596 if test $gcc_cv_as_literal16 = yes; then
23598 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23604 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23605 if ${gcc_cv_as_subsection_m1+:} false; then :
23606 $as_echo_n "(cached) " >&6
23607 else
23608 gcc_cv_as_subsection_m1=no
23609 if test x$gcc_cv_as != x; then
23610 $as_echo 'conftest_label1: .word 0
23611 .subsection -1
23612 conftest_label2: .word 0
23613 .previous' > conftest.s
23614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23620 then
23621 if test x$gcc_cv_nm != x; then
23622 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23623 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23624 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23625 then :
23626 else gcc_cv_as_subsection_m1=yes
23628 rm -f conftest.nm1 conftest.nm2
23630 else
23631 echo "configure: failed program was" >&5
23632 cat conftest.s >&5
23634 rm -f conftest.o conftest.s
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23638 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23639 if test $gcc_cv_as_subsection_m1 = yes; then
23641 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23647 $as_echo_n "checking assembler for .weak... " >&6; }
23648 if ${gcc_cv_as_weak+:} false; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 gcc_cv_as_weak=no
23652 if test x$gcc_cv_as != x; then
23653 $as_echo ' .weak foobar' > conftest.s
23654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; }
23660 then
23661 gcc_cv_as_weak=yes
23662 else
23663 echo "configure: failed program was" >&5
23664 cat conftest.s >&5
23666 rm -f conftest.o conftest.s
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23670 $as_echo "$gcc_cv_as_weak" >&6; }
23671 if test $gcc_cv_as_weak = yes; then
23673 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23679 $as_echo_n "checking assembler for .weakref... " >&6; }
23680 if ${gcc_cv_as_weakref+:} false; then :
23681 $as_echo_n "(cached) " >&6
23682 else
23683 gcc_cv_as_weakref=no
23684 if test x$gcc_cv_as != x; then
23685 $as_echo ' .weakref foobar, barfnot' > conftest.s
23686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23688 (eval $ac_try) 2>&5
23689 ac_status=$?
23690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23691 test $ac_status = 0; }; }
23692 then
23693 gcc_cv_as_weakref=yes
23694 else
23695 echo "configure: failed program was" >&5
23696 cat conftest.s >&5
23698 rm -f conftest.o conftest.s
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23702 $as_echo "$gcc_cv_as_weakref" >&6; }
23703 if test $gcc_cv_as_weakref = yes; then
23705 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23711 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23712 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23713 $as_echo_n "(cached) " >&6
23714 else
23715 gcc_cv_as_nsubspa_comdat=no
23716 if test x$gcc_cv_as != x; then
23717 $as_echo ' .SPACE $TEXT$
23718 .NSUBSPA $CODE$,COMDAT' > conftest.s
23719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724 test $ac_status = 0; }; }
23725 then
23726 gcc_cv_as_nsubspa_comdat=yes
23727 else
23728 echo "configure: failed program was" >&5
23729 cat conftest.s >&5
23731 rm -f conftest.o conftest.s
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23735 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23736 if test $gcc_cv_as_nsubspa_comdat = yes; then
23738 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23743 # .hidden needs to be supported in both the assembler and the linker,
23744 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23745 # This is irritatingly difficult to feature test for; we have to check the
23746 # date string after the version number. If we've got an in-tree
23747 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23748 # to be safe.
23749 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23750 case "${target}" in
23751 *-*-aix*)
23752 conftest_s=' .globl foobar,hidden'
23755 conftest_s=' .hidden foobar
23756 foobar:'
23758 esac
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23760 $as_echo_n "checking assembler for .hidden... " >&6; }
23761 if ${gcc_cv_as_hidden+:} false; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 gcc_cv_as_hidden=no
23765 if test x$gcc_cv_as != x; then
23766 $as_echo "$conftest_s" > conftest.s
23767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23772 test $ac_status = 0; }; }
23773 then
23774 gcc_cv_as_hidden=yes
23775 else
23776 echo "configure: failed program was" >&5
23777 cat conftest.s >&5
23779 rm -f conftest.o conftest.s
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23783 $as_echo "$gcc_cv_as_hidden" >&6; }
23786 case "${target}" in
23787 *-*-darwin*)
23788 # Darwin as has some visibility support, though with a different syntax.
23789 gcc_cv_as_hidden=yes
23791 esac
23793 # gnu_indirect_function type is an extension proposed at
23794 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23795 # selection of function implementation
23796 # Check whether --enable-gnu-indirect-function was given.
23797 if test "${enable_gnu_indirect_function+set}" = set; then :
23798 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23799 yes | no) ;;
23800 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23801 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23802 esac
23803 else
23804 enable_gnu_indirect_function="$default_gnu_indirect_function"
23808 case "${target}" in
23809 riscv*-*-linux*)
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23811 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23812 cat > conftest.s <<EOF
23813 .text
23814 .type foo_resolver, @function
23815 foo_resolver:
23817 .size foo_resolver, .-foo_resolver
23819 .globl foo
23820 .type foo, %gnu_indirect_function
23821 .set foo, foo_resolver
23823 .globl bar
23824 .type bar, @function
23825 bar:
23826 call foo
23828 .size bar, .-bar
23830 if test x$gcc_cv_as != x \
23831 && test x$gcc_cv_ld != x \
23832 && test x$gcc_cv_readelf != x \
23833 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23834 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23835 && $gcc_cv_readelf --relocs --wide conftest \
23836 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23837 enable_gnu_indirect_function=yes
23839 rm -f conftest conftest.o conftest.s
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23841 $as_echo "$enable_gnu_indirect_function" >&6; }
23843 esac
23845 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23847 cat >>confdefs.h <<_ACEOF
23848 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23849 _ACEOF
23853 if test $in_tree_ld != yes ; then
23854 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23855 if echo "$ld_ver" | grep GNU > /dev/null; then
23856 if test x"$ld_is_gold" = xyes; then
23857 # GNU gold --version looks like this:
23859 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23861 # We extract the binutils version which is more familiar and specific
23862 # than the gold version.
23863 ld_vers=`echo $ld_ver | sed -n \
23864 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23865 else
23866 # GNU ld --version looks like this:
23868 # GNU ld (GNU Binutils) 2.21.51.20110225
23869 ld_vers=`echo $ld_ver | sed -n \
23870 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23872 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'`
23873 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23874 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23875 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23876 else
23877 case "${target}" in
23878 *-*-solaris2*)
23879 # Solaris 2 ld -V output looks like this for a regular version:
23881 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23883 # but test versions add stuff at the end:
23885 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23887 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23888 # numbers can be used in ld.so.1 feature checks even if a different
23889 # linker is configured.
23890 ld_ver=`$gcc_cv_ld -V 2>&1`
23891 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23892 ld_vers=`echo $ld_ver | sed -n \
23893 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23894 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23895 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23898 esac
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23903 $as_echo_n "checking linker for .hidden support... " >&6; }
23904 if ${gcc_cv_ld_hidden+:} false; then :
23905 $as_echo_n "(cached) " >&6
23906 else
23907 if test $in_tree_ld = yes ; then
23908 gcc_cv_ld_hidden=no
23909 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 \
23910 && test $in_tree_ld_is_elf = yes; then
23911 gcc_cv_ld_hidden=yes
23913 else
23914 gcc_cv_ld_hidden=yes
23915 if test x"$ld_is_gold" = xyes; then
23917 elif echo "$ld_ver" | grep GNU > /dev/null; then
23918 if test 0"$ld_date" -lt 20020404; then
23919 if test -n "$ld_date"; then
23920 # If there was date string, but was earlier than 2002-04-04, fail
23921 gcc_cv_ld_hidden=no
23922 elif test -z "$ld_vers"; then
23923 # If there was no date string nor ld version number, something is wrong
23924 gcc_cv_ld_hidden=no
23925 else
23926 test -z "$ld_vers_patch" && ld_vers_patch=0
23927 if test "$ld_vers_major" -lt 2; then
23928 gcc_cv_ld_hidden=no
23929 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23930 gcc_cv_ld_hidden="no"
23931 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23932 gcc_cv_ld_hidden=no
23936 else
23937 case "${target}" in
23938 *-*-aix[789]*)
23939 gcc_cv_ld_hidden=yes
23941 *-*-darwin*)
23942 # Darwin ld has some visibility support.
23943 gcc_cv_ld_hidden=yes
23945 hppa64*-*-hpux* | ia64*-*-hpux*)
23946 gcc_cv_ld_hidden=yes
23948 *-*-solaris2*)
23949 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23950 # .symbolic was only added in Solaris 9 12/02.
23951 gcc_cv_ld_hidden=yes
23954 gcc_cv_ld_hidden=no
23956 esac
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23961 $as_echo "$gcc_cv_ld_hidden" >&6; }
23962 libgcc_visibility=no
23965 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23966 libgcc_visibility=yes
23968 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23973 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23974 gcc_cv_ld_ro_rw_mix=unknown
23975 if test $in_tree_ld = yes ; then
23976 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 \
23977 && test $in_tree_ld_is_elf = yes; then
23978 gcc_cv_ld_ro_rw_mix=read-write
23980 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23981 echo '.section myfoosect, "a"' > conftest1.s
23982 echo '.section myfoosect, "aw"' > conftest2.s
23983 echo '.byte 1' >> conftest2.s
23984 echo '.section myfoosect, "a"' > conftest3.s
23985 echo '.byte 0' >> conftest3.s
23986 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23987 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23988 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23989 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23990 conftest2.o conftest3.o > /dev/null 2>&1; then
23991 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23992 | sed -e '/myfoosect/!d' -e N`
23993 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23994 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23995 gcc_cv_ld_ro_rw_mix=read-only
23996 else
23997 gcc_cv_ld_ro_rw_mix=read-write
24001 rm -f conftest.* conftest[123].*
24003 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24005 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24009 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24011 # Check whether --enable-initfini-array was given.
24012 if test "${enable_initfini_array+set}" = set; then :
24013 enableval=$enable_initfini_array;
24014 else
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24017 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24018 if ${gcc_cv_initfini_array+:} false; then :
24019 $as_echo_n "(cached) " >&6
24020 else
24021 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24022 case "${target}" in
24023 ia64-*)
24024 if test "$cross_compiling" = yes; then :
24025 gcc_cv_initfini_array=no
24026 else
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h. */
24030 #ifndef __ELF__
24031 #error Not an ELF OS
24032 #endif
24033 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24034 if it can be used. */
24035 static int x = -1;
24036 int main (void) { return x; }
24037 int foo (void) { x = 0; }
24038 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24040 _ACEOF
24041 if ac_fn_cxx_try_run "$LINENO"; then :
24042 gcc_cv_initfini_array=yes
24043 else
24044 gcc_cv_initfini_array=no
24046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24047 conftest.$ac_objext conftest.beam conftest.$ac_ext
24051 gcc_cv_initfini_array=no
24052 if test $in_tree_ld = yes ; then
24053 if test "$gcc_cv_gld_major_version" -eq 2 \
24054 -a "$gcc_cv_gld_minor_version" -ge 22 \
24055 -o "$gcc_cv_gld_major_version" -gt 2 \
24056 && test $in_tree_ld_is_elf = yes; then
24057 gcc_cv_initfini_array=yes
24059 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24060 case $target:$gas in
24061 *:yes)
24062 sh_flags='"a"'
24063 sh_type='%progbits'
24065 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24066 sh_flags='"a"'
24067 sh_type='@progbits'
24069 sparc*-*-solaris2*:no)
24070 sh_flags='#alloc'
24071 sh_type='#progbits'
24072 sh_quote='"'
24074 esac
24075 case "$target:$gnu_ld" in
24076 *:yes)
24077 cat > conftest.s <<EOF
24078 .section .dtors,$sh_flags,$sh_type
24079 .balign 4
24080 .byte 'A', 'A', 'A', 'A'
24081 .section .ctors,$sh_flags,$sh_type
24082 .balign 4
24083 .byte 'B', 'B', 'B', 'B'
24084 .section .fini_array.65530,$sh_flags,$sh_type
24085 .balign 4
24086 .byte 'C', 'C', 'C', 'C'
24087 .section .init_array.65530,$sh_flags,$sh_type
24088 .balign 4
24089 .byte 'D', 'D', 'D', 'D'
24090 .section .dtors.64528,$sh_flags,$sh_type
24091 .balign 4
24092 .byte 'E', 'E', 'E', 'E'
24093 .section .ctors.64528,$sh_flags,$sh_type
24094 .balign 4
24095 .byte 'F', 'F', 'F', 'F'
24096 .section .fini_array.01005,$sh_flags,$sh_type
24097 .balign 4
24098 .byte 'G', 'G', 'G', 'G'
24099 .section .init_array.01005,$sh_flags,$sh_type
24100 .balign 4
24101 .byte 'H', 'H', 'H', 'H'
24102 .text
24103 .globl _start
24104 _start:
24106 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24107 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24108 && $gcc_cv_objdump -s -j .init_array conftest \
24109 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24110 && $gcc_cv_objdump -s -j .fini_array conftest \
24111 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24112 gcc_cv_initfini_array=yes
24115 *-*-solaris2*:no)
24116 # When Solaris ld added constructor priority support, it was
24117 # decided to only handle .init_array.N/.fini_array.N since
24118 # there was no need for backwards compatibility with
24119 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24120 # sections with correct execution order resp. to
24121 # .init_array/.fini_array, while gld merges them into
24122 # .init_array/.fini_array.
24123 cat > conftest.s <<EOF
24124 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24125 .align 4
24126 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24127 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24128 .align 4
24129 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24130 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24131 .align 4
24132 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24133 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24134 .align 4
24135 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24136 .text
24137 .globl _start
24138 _start:
24140 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24141 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24142 && $gcc_cv_objdump -s -j .init_array conftest \
24143 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24144 && $gcc_cv_objdump -s -j .fini_array conftest \
24145 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24146 gcc_cv_initfini_array=yes
24149 esac
24150 rm -f conftest conftest.*
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24155 #ifndef __ELF__
24156 # error Not an ELF OS
24157 #endif
24158 #include <stdlib.h>
24159 #if defined __GLIBC_PREREQ
24160 # if __GLIBC_PREREQ (2, 4)
24161 # else
24162 # error GLIBC 2.4 required
24163 # endif
24164 #else
24165 # if defined __sun__ && defined __svr4__
24166 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24167 # else
24168 # error The C library not known to support .init_array/.fini_array
24169 # endif
24170 #endif
24172 _ACEOF
24173 if ac_fn_cxx_try_cpp "$LINENO"; then :
24175 else
24176 gcc_cv_initfini_array=no
24178 rm -f conftest.err conftest.i conftest.$ac_ext;;
24179 esac
24180 else
24181 case "${target}" in
24182 aarch64*-linux-gnu*)
24183 # AArch64 postdates glibc support for .init_array/.fini_array,
24184 # so we don't need the preprocessor test above.
24185 gcc_cv_initfini_array=yes
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24190 $as_echo_n "checking cross compile... guessing... " >&6; }
24191 gcc_cv_initfini_array=no
24193 esac
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24197 $as_echo "$gcc_cv_initfini_array" >&6; }
24198 enable_initfini_array=$gcc_cv_initfini_array
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24205 _ACEOF
24209 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24210 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24211 # these directives, even when they appear to accept them.
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24213 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24214 if ${gcc_cv_as_leb128+:} false; then :
24215 $as_echo_n "(cached) " >&6
24216 else
24217 gcc_cv_as_leb128=no
24218 if test x$gcc_cv_as != x; then
24219 $as_echo ' .data
24220 .uleb128 L2 - L1
24222 .uleb128 1280
24223 .sleb128 -1010
24225 .uleb128 0x8000000000000000
24226 ' > conftest.s
24227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24229 (eval $ac_try) 2>&5
24230 ac_status=$?
24231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24232 test $ac_status = 0; }; }
24233 then
24235 if test "x$gcc_cv_objdump" != x; then
24236 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24237 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24238 gcc_cv_as_leb128=yes
24240 elif test "x$gcc_cv_otool" != x; then
24241 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24242 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24243 gcc_cv_as_leb128=yes
24245 else
24246 # play safe, assume the assembler is broken.
24250 else
24251 echo "configure: failed program was" >&5
24252 cat conftest.s >&5
24254 rm -f conftest.o conftest.s
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24258 $as_echo "$gcc_cv_as_leb128" >&6; }
24259 if test $gcc_cv_as_leb128 = yes; then
24261 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24264 if test $gcc_cv_as_leb128 != yes; then
24266 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24270 # Determine if an .eh_frame section is read-only.
24271 gcc_fn_eh_frame_ro () {
24272 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24273 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24274 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24277 # Check if we have assembler support for unwind directives.
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24279 $as_echo_n "checking assembler for cfi directives... " >&6; }
24280 if ${gcc_cv_as_cfi_directive+:} false; then :
24281 $as_echo_n "(cached) " >&6
24282 else
24283 gcc_cv_as_cfi_directive=no
24284 if test x$gcc_cv_as != x; then
24285 $as_echo ' .text
24286 .cfi_startproc
24287 .cfi_offset 0, 0
24288 .cfi_same_value 1
24289 .cfi_def_cfa 1, 2
24290 .cfi_escape 1, 2, 3, 4, 5
24291 .cfi_endproc' > conftest.s
24292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24297 test $ac_status = 0; }; }
24298 then
24299 case "$target" in
24300 *-*-solaris*)
24301 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24302 # read-only and read-write sections, we need to make sure that the
24303 # assembler used emits read-write .eh_frame sections.
24304 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24305 gcc_cv_as_cfi_directive=yes
24306 elif test "x$gcc_cv_objdump" = x; then
24307 # No objdump, err on the side of caution.
24308 gcc_cv_as_cfi_directive=no
24309 else
24310 if test x$gas = xyes; then
24311 as_32_opt="--32"
24312 as_64_opt="--64"
24313 else
24314 as_32_opt="-m32"
24315 as_64_opt="-m64"
24317 case "$target" in
24318 sparc*-*-solaris2.*)
24319 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24320 if gcc_fn_eh_frame_ro $as_32_opt \
24321 || gcc_fn_eh_frame_ro $as_64_opt; then
24322 gcc_cv_as_cfi_directive=no
24323 else
24324 gcc_cv_as_cfi_directive=yes
24327 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24328 # On Solaris/x86, make sure that GCC and assembler agree on using
24329 # read-only .eh_frame sections for 64-bit.
24330 if gcc_fn_eh_frame_ro $as_32_opt; then
24331 gcc_cv_as_cfi_directive=no
24332 elif gcc_fn_eh_frame_ro $as_64_opt; then
24333 gcc_cv_as_cfi_directive=yes
24334 else
24335 gcc_cv_as_cfi_directive=no
24338 esac
24341 *-*-*)
24342 gcc_cv_as_cfi_directive=yes
24344 esac
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24353 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24356 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24358 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24359 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24360 $as_echo_n "(cached) " >&6
24361 else
24362 gcc_cv_as_cfi_advance_working=no
24363 if test x$gcc_cv_as != x; then
24364 $as_echo ' .text
24365 .cfi_startproc
24366 .cfi_adjust_cfa_offset 64
24367 .skip 75040, 0
24368 .cfi_adjust_cfa_offset 128
24369 .cfi_endproc' > conftest.s
24370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24372 (eval $ac_try) 2>&5
24373 ac_status=$?
24374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24375 test $ac_status = 0; }; }
24376 then
24378 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24379 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24380 gcc_cv_as_cfi_advance_working=yes
24383 else
24384 echo "configure: failed program was" >&5
24385 cat conftest.s >&5
24387 rm -f conftest.o conftest.s
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24391 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24394 else
24395 # no objdump, err on the side of caution
24396 gcc_cv_as_cfi_advance_working=no
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24402 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24403 _ACEOF
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24408 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24409 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24410 $as_echo_n "(cached) " >&6
24411 else
24412 gcc_cv_as_cfi_personality_directive=no
24413 if test x$gcc_cv_as != x; then
24414 $as_echo ' .text
24415 .cfi_startproc
24416 .cfi_personality 0, symbol
24417 .cfi_endproc' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24424 then
24425 gcc_cv_as_cfi_personality_directive=yes
24426 else
24427 echo "configure: failed program was" >&5
24428 cat conftest.s >&5
24430 rm -f conftest.o conftest.s
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24434 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24438 cat >>confdefs.h <<_ACEOF
24439 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24440 _ACEOF
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24444 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24445 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24446 $as_echo_n "(cached) " >&6
24447 else
24448 gcc_cv_as_cfi_sections_directive=no
24449 if test x$gcc_cv_as != x; then
24450 $as_echo ' .text
24451 .cfi_sections .debug_frame, .eh_frame
24452 .cfi_startproc
24453 .cfi_endproc' > conftest.s
24454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24459 test $ac_status = 0; }; }
24460 then
24461 case $target_os in
24462 win32 | pe | cygwin* | mingw32*)
24463 # Need to check that we generated the correct relocation for the
24464 # .debug_frame section. This was fixed for binutils 2.21.
24465 gcc_cv_as_cfi_sections_directive=no
24466 if test "x$gcc_cv_objdump" != x; then
24467 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24468 grep secrel > /dev/null; then
24469 gcc_cv_as_cfi_sections_directive=yes
24474 gcc_cv_as_cfi_sections_directive=yes
24476 esac
24477 else
24478 echo "configure: failed program was" >&5
24479 cat conftest.s >&5
24481 rm -f conftest.o conftest.s
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24485 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24490 cat >>confdefs.h <<_ACEOF
24491 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24492 _ACEOF
24495 # GAS versions up to and including 2.11.0 may mis-optimize
24496 # .eh_frame data.
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24498 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24499 if ${gcc_cv_as_eh_frame+:} false; then :
24500 $as_echo_n "(cached) " >&6
24501 else
24502 gcc_cv_as_eh_frame=no
24503 if test x$gcc_cv_as != x; then
24504 $as_echo ' .text
24505 .LFB1:
24506 .4byte 0
24507 .L1:
24508 .4byte 0
24509 .LFE1:
24510 .section .eh_frame,"aw",@progbits
24511 __FRAME_BEGIN__:
24512 .4byte .LECIE1-.LSCIE1
24513 .LSCIE1:
24514 .4byte 0x0
24515 .byte 0x1
24516 .ascii "z\0"
24517 .byte 0x1
24518 .byte 0x78
24519 .byte 0x1a
24520 .byte 0x0
24521 .byte 0x4
24522 .4byte 1
24523 .p2align 1
24524 .LECIE1:
24525 .LSFDE1:
24526 .4byte .LEFDE1-.LASFDE1
24527 .LASFDE1:
24528 .4byte .LASFDE1-__FRAME_BEGIN__
24529 .4byte .LFB1
24530 .4byte .LFE1-.LFB1
24531 .byte 0x4
24532 .4byte .LFE1-.LFB1
24533 .byte 0x4
24534 .4byte .L1-.LFB1
24535 .LEFDE1:' > conftest.s
24536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24541 test $ac_status = 0; }; }
24542 then
24543 cat > conftest.lit <<EOF
24544 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24545 0010 01000000 12000000 18000000 00000000 ................
24546 0020 08000000 04080000 0044 .........D
24548 cat > conftest.big <<EOF
24549 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24550 0010 00000001 00000012 00000018 00000000 ................
24551 0020 00000008 04000000 0844 .........D
24553 # If the assembler didn't choke, and we can objdump,
24554 # and we got the correct data, then succeed.
24555 # The text in the here-document typically retains its unix-style line
24556 # endings, while the output of objdump will use host line endings.
24557 # Therefore, use diff -b for the comparisons.
24558 if test x$gcc_cv_objdump != x \
24559 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24560 | tail -3 > conftest.got \
24561 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24562 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24563 then
24564 gcc_cv_as_eh_frame=yes
24565 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }; then
24571 gcc_cv_as_eh_frame=buggy
24572 else
24573 # Uh oh, what do we do now?
24574 gcc_cv_as_eh_frame=no
24576 else
24577 echo "configure: failed program was" >&5
24578 cat conftest.s >&5
24580 rm -f conftest.o conftest.s
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24584 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24588 if test $gcc_cv_as_eh_frame = buggy; then
24590 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24594 # Test if the assembler supports the section flag 'e' or #exclude for
24595 # specifying an excluded section.
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24597 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24598 if ${gcc_cv_as_section_exclude_e+:} false; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_section_exclude_e=no
24602 if test x$gcc_cv_as != x; then
24603 $as_echo '.section foo1,"e"
24604 .byte 0,0,0,0' > conftest.s
24605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }
24611 then
24612 gcc_cv_as_section_exclude_e=yes
24613 else
24614 echo "configure: failed program was" >&5
24615 cat conftest.s >&5
24617 rm -f conftest.o conftest.s
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24621 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24624 if test $gcc_cv_as_section_exclude_e = no; then
24625 case "${target}" in
24626 # Solaris as uses #exclude instead.
24627 *-*-solaris2*)
24628 case "${target}" in
24629 sparc*-*-solaris2*)
24630 conftest_s='.section "foo1", #exclude'
24632 i?86-*-solaris2* | x86_64-*-solaris2*)
24633 conftest_s='.section foo1, #exclude'
24635 esac
24637 esac
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24639 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24640 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24641 $as_echo_n "(cached) " >&6
24642 else
24643 gcc_cv_as_section_exclude_hash=no
24644 if test x$gcc_cv_as != x; then
24645 $as_echo "$conftest_s
24646 .byte 0,0,0,0" > conftest.s
24647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24653 then
24654 gcc_cv_as_section_exclude_hash=yes
24655 else
24656 echo "configure: failed program was" >&5
24657 cat conftest.s >&5
24659 rm -f conftest.o conftest.s
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24663 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24668 cat >>confdefs.h <<_ACEOF
24669 #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`
24670 _ACEOF
24673 # Test if the assembler supports the section flag 'R' for specifying
24674 # section with SHF_GNU_RETAIN.
24675 case "${target}" in
24676 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24677 # assembler supports the section flag 'R', it doesn't mean that
24678 # Solairs ld supports it.
24679 *-*-solaris2*)
24680 gcc_cv_as_shf_gnu_retain=no
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24684 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24685 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24686 $as_echo_n "(cached) " >&6
24687 else
24688 gcc_cv_as_shf_gnu_retain=no
24689 if test x$gcc_cv_as != x; then
24690 $as_echo '.section .foo,"awR",%progbits
24691 .byte 0' > conftest.s
24692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24698 then
24699 gcc_cv_as_shf_gnu_retain=yes
24700 else
24701 echo "configure: failed program was" >&5
24702 cat conftest.s >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24708 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24712 esac
24714 cat >>confdefs.h <<_ACEOF
24715 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24716 _ACEOF
24719 # Test if the assembler supports the section flag 'o' for specifying
24720 # section with link-order.
24721 case "${target}" in
24722 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24723 # assembler supports the section flag 'o', it doesn't mean that
24724 # Solairs ld supports it.
24725 *-*-solaris2*)
24726 gcc_cv_as_section_link_order=no
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24730 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24731 if ${gcc_cv_as_section_link_order+:} false; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 gcc_cv_as_section_link_order=no
24735 if test x$gcc_cv_as != x; then
24736 $as_echo '.section .foo,"a"
24737 .byte 0
24738 .section __patchable_function_entries,"awo",%progbits,.foo
24739 .byte 0' > conftest.s
24740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24742 (eval $ac_try) 2>&5
24743 ac_status=$?
24744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24745 test $ac_status = 0; }; }
24746 then
24747 gcc_cv_as_section_link_order=yes
24748 else
24749 echo "configure: failed program was" >&5
24750 cat conftest.s >&5
24752 rm -f conftest.o conftest.s
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24756 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24760 esac
24762 cat >>confdefs.h <<_ACEOF
24763 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24764 _ACEOF
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24768 $as_echo_n "checking assembler for section merging support... " >&6; }
24769 if ${gcc_cv_as_shf_merge+:} false; then :
24770 $as_echo_n "(cached) " >&6
24771 else
24772 gcc_cv_as_shf_merge=no
24773 if test x$gcc_cv_as != x; then
24774 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780 test $ac_status = 0; }; }
24781 then
24782 gcc_cv_as_shf_merge=yes
24783 else
24784 echo "configure: failed program was" >&5
24785 cat conftest.s >&5
24787 rm -f conftest.o conftest.s
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24791 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24794 if test $gcc_cv_as_shf_merge = no; then
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24796 $as_echo_n "checking assembler for section merging support... " >&6; }
24797 if ${gcc_cv_as_shf_merge+:} false; then :
24798 $as_echo_n "(cached) " >&6
24799 else
24800 gcc_cv_as_shf_merge=no
24801 if test x$gcc_cv_as != x; then
24802 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24809 then
24810 gcc_cv_as_shf_merge=yes
24811 else
24812 echo "configure: failed program was" >&5
24813 cat conftest.s >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24819 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24824 cat >>confdefs.h <<_ACEOF
24825 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24826 _ACEOF
24829 gcc_cv_ld_aligned_shf_merge=yes
24830 case "$target" in
24831 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24832 # alignment > 1.
24833 sparc*-*-solaris2.11*)
24834 if test x"$gnu_ld" = xno \
24835 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24836 gcc_cv_ld_aligned_shf_merge=no
24839 esac
24841 cat >>confdefs.h <<_ACEOF
24842 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24843 _ACEOF
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24847 $as_echo_n "checking assembler for stabs directive... " >&6; }
24848 if ${gcc_cv_as_stabs_directive+:} false; then :
24849 $as_echo_n "(cached) " >&6
24850 else
24851 gcc_cv_as_stabs_directive=no
24852 if test x$gcc_cv_as != x; then
24853 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24859 test $ac_status = 0; }; }
24860 then
24861 gcc_cv_as_stabs_directive=yes
24862 else
24863 echo "configure: failed program was" >&5
24864 cat conftest.s >&5
24866 rm -f conftest.o conftest.s
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24870 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24871 if test $gcc_cv_as_stabs_directive = yes; then
24873 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24879 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24880 if ${gcc_cv_as_comdat_group+:} false; then :
24881 $as_echo_n "(cached) " >&6
24882 else
24883 gcc_cv_as_comdat_group=no
24884 if test x$gcc_cv_as != x; then
24885 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24889 ac_status=$?
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24892 then
24893 gcc_cv_as_comdat_group=yes
24894 else
24895 echo "configure: failed program was" >&5
24896 cat conftest.s >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24902 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24905 if test $gcc_cv_as_comdat_group = yes; then
24906 gcc_cv_as_comdat_group_percent=no
24907 gcc_cv_as_comdat_group_group=no
24908 else
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24910 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24911 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24912 $as_echo_n "(cached) " >&6
24913 else
24914 gcc_cv_as_comdat_group_percent=no
24915 if test x$gcc_cv_as != x; then
24916 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24923 then
24924 gcc_cv_as_comdat_group_percent=yes
24925 else
24926 echo "configure: failed program was" >&5
24927 cat conftest.s >&5
24929 rm -f conftest.o conftest.s
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24933 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24936 if test $gcc_cv_as_comdat_group_percent = yes; then
24937 gcc_cv_as_comdat_group_group=no
24938 else
24939 case "${target}" in
24940 # Sun as uses a completely different syntax.
24941 *-*-solaris2*)
24942 case "${target}" in
24943 sparc*-*-solaris2*)
24944 conftest_s='
24945 .group foo,".text%foo",#comdat
24946 .section ".text%foo", #alloc,#execinstr,#progbits
24947 .globl foo
24948 foo:
24951 i?86-*-solaris2* | x86_64-*-solaris2*)
24952 conftest_s='
24953 .group foo,.text%foo,#comdat
24954 .section .text%foo, "ax", @progbits
24955 .globl foo
24956 foo:
24959 esac
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24961 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24962 if ${gcc_cv_as_comdat_group_group+:} false; then :
24963 $as_echo_n "(cached) " >&6
24964 else
24965 gcc_cv_as_comdat_group_group=no
24966 if test x$gcc_cv_as != x; then
24967 $as_echo "$conftest_s" > conftest.s
24968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24973 test $ac_status = 0; }; }
24974 then
24975 gcc_cv_as_comdat_group_group=yes
24976 else
24977 echo "configure: failed program was" >&5
24978 cat conftest.s >&5
24980 rm -f conftest.o conftest.s
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24984 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24988 esac
24989 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24990 gcc_cv_as_comdat_group_group=no
24994 if test x"$ld_is_gold" = xyes; then
24995 comdat_group=yes
24996 elif test $in_tree_ld = yes ; then
24997 comdat_group=no
24998 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 \
24999 && test $in_tree_ld_is_elf = yes; then
25000 comdat_group=yes
25002 elif echo "$ld_ver" | grep GNU > /dev/null; then
25003 comdat_group=yes
25004 if test 0"$ld_date" -lt 20050308; then
25005 if test -n "$ld_date"; then
25006 # If there was date string, but was earlier than 2005-03-08, fail
25007 comdat_group=no
25008 elif test "$ld_vers_major" -lt 2; then
25009 comdat_group=no
25010 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25011 comdat_group=no
25014 else
25015 case "${target}" in
25016 *-*-solaris2.1[1-9]*)
25017 comdat_group=no
25018 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25019 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25020 # version 1.688.
25022 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25023 # least ld version 1.2267.
25024 if test "$ld_vers_major" -gt 1; then
25025 comdat_group=yes
25026 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25027 comdat_group=yes
25028 elif test "$ld_vers_minor" -ge 2267; then
25029 comdat_group=yes
25033 # Assume linkers other than GNU ld don't support COMDAT group.
25034 comdat_group=no
25036 esac
25038 # Allow overriding the automatic COMDAT group tests above.
25039 # Check whether --enable-comdat was given.
25040 if test "${enable_comdat+set}" = set; then :
25041 enableval=$enable_comdat; comdat_group="$enable_comdat"
25044 if test $comdat_group = no; then
25045 gcc_cv_as_comdat_group=no
25046 gcc_cv_as_comdat_group_percent=no
25047 gcc_cv_as_comdat_group_group=no
25050 cat >>confdefs.h <<_ACEOF
25051 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25052 || test $gcc_cv_as_comdat_group_percent = yes \
25053 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25054 _ACEOF
25057 # Restrict this test to Solaris/x86: other targets define this statically.
25058 case "${target}" in
25059 i?86-*-solaris2* | x86_64-*-solaris2*)
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25061 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25062 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25063 hidden_linkonce=yes
25064 else
25065 case "${target}" in
25066 # Full support for hidden thunks in linkonce sections only appeared in
25067 # Solaris 11/OpenSolaris.
25068 *-*-solaris2.1[1-9]*)
25069 hidden_linkonce=yes
25072 hidden_linkonce=no
25074 esac
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25077 $as_echo "$hidden_linkonce" >&6; }
25079 cat >>confdefs.h <<_ACEOF
25080 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25081 _ACEOF
25084 esac
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25087 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25088 if ${gcc_cv_as_is_stmt+:} false; then :
25089 $as_echo_n "(cached) " >&6
25090 else
25091 gcc_cv_as_is_stmt=no
25092 if test x$gcc_cv_as != x; then
25093 $as_echo ' .text
25094 .file 1 "conf.c"
25095 .loc 1 1 0 is_stmt 1' > conftest.s
25096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25102 then
25103 gcc_cv_as_is_stmt=yes
25104 else
25105 echo "configure: failed program was" >&5
25106 cat conftest.s >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25112 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25113 if test $gcc_cv_as_is_stmt = yes; then
25115 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25121 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25122 if ${gcc_cv_as_discriminator+:} false; then :
25123 $as_echo_n "(cached) " >&6
25124 else
25125 gcc_cv_as_discriminator=no
25126 if test x$gcc_cv_as != x; then
25127 $as_echo ' .text
25128 .file 1 "conf.c"
25129 .loc 1 1 0 discriminator 1' > conftest.s
25130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25132 (eval $ac_try) 2>&5
25133 ac_status=$?
25134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25135 test $ac_status = 0; }; }
25136 then
25137 gcc_cv_as_discriminator=yes
25138 else
25139 echo "configure: failed program was" >&5
25140 cat conftest.s >&5
25142 rm -f conftest.o conftest.s
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25146 $as_echo "$gcc_cv_as_discriminator" >&6; }
25147 if test $gcc_cv_as_discriminator = yes; then
25149 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25154 # Catch the newlib flag of the same name so we can gate GCC features on it.
25155 # Check whether --enable-newlib-nano-formatted-io was given.
25156 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25157 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25158 yes|no)
25161 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25163 esac
25167 # Thread-local storage - the check is heavily parameterized.
25168 conftest_s=
25169 tls_as_opt=
25170 case "$target" in
25171 alpha*-*-*)
25172 conftest_s='
25173 .section ".tdata","awT",@progbits
25174 foo: .long 25
25175 .text
25176 ldq $27,__tls_get_addr($29) !literal!1
25177 lda $16,foo($29) !tlsgd!1
25178 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25179 ldq $27,__tls_get_addr($29) !literal!2
25180 lda $16,foo($29) !tlsldm!2
25181 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25182 ldq $1,foo($29) !gotdtprel
25183 ldah $2,foo($29) !dtprelhi
25184 lda $3,foo($2) !dtprello
25185 lda $4,foo($29) !dtprel
25186 ldq $1,foo($29) !gottprel
25187 ldah $2,foo($29) !tprelhi
25188 lda $3,foo($2) !tprello
25189 lda $4,foo($29) !tprel'
25190 tls_as_opt=--fatal-warnings
25192 arc*-*-*)
25193 conftest_s='
25194 add_s r0,r0, @foo@tpoff'
25196 cris-*-*|crisv32-*-*)
25197 conftest_s='
25198 .section ".tdata","awT",@progbits
25199 x: .long 25
25200 .text
25201 move.d x:IE,$r10
25202 nop'
25203 tls_as_opt=--fatal-warnings
25205 frv*-*-*)
25206 conftest_s='
25207 .section ".tdata","awT",@progbits
25208 x: .long 25
25209 .text
25210 call #gettlsoff(x)'
25212 hppa*-*-linux*)
25213 conftest_s='
25214 t1: .reg %r20
25215 t2: .reg %r21
25216 gp: .reg %r19
25217 .section ".tdata","awT",@progbits
25218 foo: .long 25
25219 .text
25220 .align 4
25221 addil LT%foo-$tls_gdidx$,gp
25222 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25223 b __tls_get_addr
25225 addil LT%foo-$tls_ldidx$,gp
25226 b __tls_get_addr
25227 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25228 addil LR%foo-$tls_dtpoff$,%ret0
25229 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25230 mfctl %cr27,%t1
25231 addil LT%foo-$tls_ieoff$,gp
25232 ldw RT%foo-$tls_ieoff$(%r1),%t2
25233 add %t1,%t2,%t3
25234 mfctl %cr27,%t1
25235 addil LR%foo-$tls_leoff$,%t1
25236 ldo RR%foo-$tls_leoff$(%r1),%t2'
25237 tls_as_opt=--fatal-warnings
25239 arm*-*-*)
25240 conftest_s='
25241 .section ".tdata","awT",%progbits
25242 foo: .long 25
25243 .text
25244 .word foo(gottpoff)
25245 .word foo(tpoff)
25246 .word foo(tlsgd)
25247 .word foo(tlsldm)
25248 .word foo(tlsldo)'
25250 i[34567]86-*-* | x86_64-*-*)
25251 case "$target" in
25252 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25253 on_solaris=yes
25256 on_solaris=no
25258 esac
25259 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25260 conftest_s='
25261 .section .tdata,"awt",@progbits'
25262 tls_section_flag=t
25264 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25266 else
25267 conftest_s='
25268 .section ".tdata","awT",@progbits'
25269 tls_section_flag=T
25270 tls_as_opt="--fatal-warnings"
25272 case "$target" in
25273 i[34567]86-*-*)
25274 if test x$on_solaris = xyes; then
25275 case $gas_flag in
25276 yes) tls_as_opt="$tls_as_opt --32" ;;
25277 esac
25279 conftest_s="$conftest_s
25280 foo: .long 25
25281 .text
25282 movl %gs:0, %eax
25283 leal foo@tlsgd(,%ebx,1), %eax
25284 leal foo@tlsldm(%ebx), %eax
25285 leal foo@dtpoff(%eax), %edx
25286 movl foo@gottpoff(%ebx), %eax
25287 subl foo@gottpoff(%ebx), %eax
25288 addl foo@gotntpoff(%ebx), %eax
25289 movl foo@indntpoff, %eax
25290 movl \$foo@tpoff, %eax
25291 subl \$foo@tpoff, %eax
25292 leal foo@ntpoff(%ecx), %eax"
25294 x86_64-*-*)
25295 if test x$on_solaris = xyes; then
25296 case $gas_flag in
25297 yes) tls_as_opt="$tls_as_opt --64" ;;
25298 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25299 esac
25301 conftest_s="$conftest_s
25302 foo: .long 25
25303 .text
25304 movq %fs:0, %rax
25305 leaq foo@tlsgd(%rip), %rdi
25306 leaq foo@tlsld(%rip), %rdi
25307 leaq foo@dtpoff(%rax), %rdx
25308 movq foo@gottpoff(%rip), %rax
25309 movq \$foo@tpoff, %rax"
25311 esac
25313 ia64-*-*)
25314 conftest_s='
25315 .section ".tdata","awT",@progbits
25316 foo: data8 25
25317 .text
25318 addl r16 = @ltoff(@dtpmod(foo#)), gp
25319 addl r17 = @ltoff(@dtprel(foo#)), gp
25320 addl r18 = @ltoff(@tprel(foo#)), gp
25321 addl r19 = @dtprel(foo#), gp
25322 adds r21 = @dtprel(foo#), r13
25323 movl r23 = @dtprel(foo#)
25324 addl r20 = @tprel(foo#), gp
25325 adds r22 = @tprel(foo#), r13
25326 movl r24 = @tprel(foo#)'
25327 tls_as_opt=--fatal-warnings
25329 microblaze*-*-*)
25330 conftest_s='
25331 .section .tdata,"awT",@progbits
25333 .word 2
25334 .text
25335 addik r5,r20,x@TLSGD
25336 addik r5,r20,x@TLSLDM'
25337 tls_as_opt='--fatal-warnings'
25339 mips*-*-*)
25340 conftest_s='
25341 .section .tdata,"awT",@progbits
25343 .word 2
25344 .text
25345 addiu $4, $28, %tlsgd(x)
25346 addiu $4, $28, %tlsldm(x)
25347 lui $4, %dtprel_hi(x)
25348 addiu $4, $4, %dtprel_lo(x)
25349 lw $4, %gottprel(x)($28)
25350 lui $4, %tprel_hi(x)
25351 addiu $4, $4, %tprel_lo(x)'
25352 tls_as_opt='-32 --fatal-warnings'
25354 m68k-*-*)
25355 conftest_s='
25356 .section .tdata,"awT",@progbits
25358 .word 2
25359 .text
25360 foo:
25361 move.l x@TLSGD(%a5),%a0
25362 move.l x@TLSLDM(%a5),%a0
25363 move.l x@TLSLDO(%a5),%a0
25364 move.l x@TLSIE(%a5),%a0
25365 move.l x@TLSLE(%a5),%a0'
25366 tls_as_opt='--fatal-warnings'
25368 nios2-*-*)
25369 conftest_s='
25370 .section ".tdata","awT",@progbits'
25371 tls_as_opt="--fatal-warnings"
25373 aarch64*-*-*)
25374 conftest_s='
25375 .section ".tdata","awT",%progbits
25376 foo: .long 25
25377 .text
25378 adrp x0, :tlsgd:x
25379 add x0, x0, #:tlsgd_lo12:x
25380 bl __tls_get_addr
25381 nop'
25382 tls_as_opt='--fatal-warnings'
25384 or1k*-*-*)
25385 conftest_s='
25386 .section ".tdata","awT",@progbits
25387 foo: .long 25
25388 .text
25389 l.movhi r3, tpoffha(foo)
25390 l.add r3, r3, r10
25391 l.lwz r4, tpofflo(foo)(r3)'
25392 tls_as_opt=--fatal-warnings
25394 powerpc-ibm-aix*)
25395 conftest_s='
25396 .extern __get_tpointer
25397 .toc
25398 LC..1:
25399 .tc a[TC],a[TL]@le
25400 .csect .text[PR]
25401 .tlstest:
25402 lwz 9,LC..1(2)
25403 bla __get_tpointer
25404 lwzx 3,9,3
25405 .globl a
25406 .csect a[TL],4
25408 .space 4'
25410 powerpc64*-*-*)
25411 conftest_s='
25412 .section ".tdata","awT",@progbits
25413 .align 3
25414 ld0: .space 8
25415 ld1: .space 8
25416 x1: .space 8
25417 x2: .space 8
25418 x3: .space 8
25419 .text
25420 addi 3,2,ld0@got@tlsgd
25421 bl .__tls_get_addr
25423 addi 3,2,ld1@toc
25424 bl .__tls_get_addr
25426 addi 3,2,x1@got@tlsld
25427 bl .__tls_get_addr
25429 addi 9,3,x1@dtprel
25430 bl .__tls_get_addr
25432 addis 9,3,x2@dtprel@ha
25433 addi 9,9,x2@dtprel@l
25434 bl .__tls_get_addr
25436 ld 9,x3@got@dtprel(2)
25437 add 9,9,3
25438 bl .__tls_get_addr
25439 nop'
25440 tls_as_opt="-a64 --fatal-warnings"
25442 powerpc*-*-*)
25443 conftest_s='
25444 .section ".tdata","awT",@progbits
25445 .align 2
25446 ld0: .space 4
25447 ld1: .space 4
25448 x1: .space 4
25449 x2: .space 4
25450 x3: .space 4
25451 .text
25452 addi 3,31,ld0@got@tlsgd
25453 bl __tls_get_addr
25454 addi 3,31,x1@got@tlsld
25455 bl __tls_get_addr
25456 addi 9,3,x1@dtprel
25457 addis 9,3,x2@dtprel@ha
25458 addi 9,9,x2@dtprel@l
25459 lwz 9,x3@got@tprel(31)
25460 add 9,9,x@tls
25461 addi 9,2,x1@tprel
25462 addis 9,2,x2@tprel@ha
25463 addi 9,9,x2@tprel@l'
25464 tls_as_opt="-a32 --fatal-warnings"
25466 riscv*-*-*)
25467 conftest_s='
25468 .section .tdata,"awT",@progbits
25469 x: .word 2
25470 .text
25471 la.tls.gd a0,x
25472 call __tls_get_addr'
25473 tls_as_opt='--fatal-warnings'
25475 s390-*-*)
25476 conftest_s='
25477 .section ".tdata","awT",@progbits
25478 foo: .long 25
25479 .text
25480 .long foo@TLSGD
25481 .long foo@TLSLDM
25482 .long foo@DTPOFF
25483 .long foo@NTPOFF
25484 .long foo@GOTNTPOFF
25485 .long foo@INDNTPOFF
25486 l %r1,foo@GOTNTPOFF(%r12)
25487 l %r1,0(%r1):tls_load:foo
25488 bas %r14,0(%r1,%r13):tls_gdcall:foo
25489 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25490 tls_as_opt="-m31 --fatal-warnings"
25492 s390x-*-*)
25493 conftest_s='
25494 .section ".tdata","awT",@progbits
25495 foo: .long 25
25496 .text
25497 .quad foo@TLSGD
25498 .quad foo@TLSLDM
25499 .quad foo@DTPOFF
25500 .quad foo@NTPOFF
25501 .quad foo@GOTNTPOFF
25502 lg %r1,foo@GOTNTPOFF(%r12)
25503 larl %r1,foo@INDNTPOFF
25504 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25505 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25506 tls_as_opt="-m64 -Aesame --fatal-warnings"
25508 sh-*-* | sh[123456789lbe]*-*-*)
25509 conftest_s='
25510 .section ".tdata","awT",@progbits
25511 foo: .long 25
25512 .text
25513 .long foo@TLSGD
25514 .long foo@TLSLDM
25515 .long foo@DTPOFF
25516 .long foo@GOTTPOFF
25517 .long foo@TPOFF'
25518 tls_as_opt=--fatal-warnings
25520 sparc*-*-*)
25521 case "$target" in
25522 sparc*-sun-solaris2.*)
25523 on_solaris=yes
25526 on_solaris=no
25528 esac
25529 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25530 conftest_s='
25531 .section ".tdata",#alloc,#write,#tls'
25532 else
25533 conftest_s='
25534 .section ".tdata","awT",@progbits'
25535 tls_as_opt="-32 --fatal-warnings"
25537 conftest_s="$conftest_s
25538 foo: .long 25
25539 .text
25540 sethi %tgd_hi22(foo), %o0
25541 add %o0, %tgd_lo10(foo), %o1
25542 add %l7, %o1, %o0, %tgd_add(foo)
25543 call __tls_get_addr, %tgd_call(foo)
25544 sethi %tldm_hi22(foo), %l1
25545 add %l1, %tldm_lo10(foo), %l2
25546 add %l7, %l2, %o0, %tldm_add(foo)
25547 call __tls_get_addr, %tldm_call(foo)
25548 sethi %tldo_hix22(foo), %l3
25549 xor %l3, %tldo_lox10(foo), %l4
25550 add %o0, %l4, %l5, %tldo_add(foo)
25551 sethi %tie_hi22(foo), %o3
25552 add %o3, %tie_lo10(foo), %o3
25553 ld [%l7 + %o3], %o2, %tie_ld(foo)
25554 add %g7, %o2, %o4, %tie_add(foo)
25555 sethi %tle_hix22(foo), %l1
25556 xor %l1, %tle_lox10(foo), %o5
25557 ld [%g7 + %o5], %o1"
25559 tilepro*-*-*)
25560 conftest_s='
25561 .section ".tdata","awT",@progbits
25562 foo: .long 25
25563 .text
25564 addli r0, zero, tls_gd(foo)
25565 auli r0, zero, tls_gd_ha16(foo)
25566 addli r0, r0, tls_gd_lo16(foo)
25567 jal __tls_get_addr
25568 addli r0, zero, tls_ie(foo)
25569 auli r0, r0, tls_ie_ha16(foo)
25570 addli r0, r0, tls_ie_lo16(foo)'
25571 tls_as_opt="--fatal-warnings"
25573 tilegx*-*-*)
25574 conftest_s='
25575 .section ".tdata","awT",@progbits
25576 foo: .long 25
25577 .text
25578 shl16insli r0, zero, hw0_last_tls_gd(foo)
25579 shl16insli r0, zero, hw1_last_tls_gd(foo)
25580 shl16insli r0, r0, hw0_tls_gd(foo)
25581 jal __tls_get_addr
25582 shl16insli r0, zero, hw1_last_tls_ie(foo)
25583 shl16insli r0, r0, hw0_tls_ie(foo)'
25584 tls_as_opt="--fatal-warnings"
25586 xtensa*-*-*)
25587 conftest_s='
25588 .section ".tdata","awT",@progbits
25589 foo: .long 25
25590 .text
25591 movi a8, foo@TLSFUNC
25592 movi a10, foo@TLSARG
25593 callx8.tls a8, foo@TLSCALL'
25595 esac
25596 set_have_as_tls=no
25597 if test "x$enable_tls" = xno ; then
25598 : # TLS explicitly disabled.
25599 elif test "x$enable_tls" = xyes ; then
25600 set_have_as_tls=yes # TLS explicitly enabled.
25601 elif test -z "$conftest_s"; then
25602 : # If we don't have a check, assume no support.
25603 else
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25605 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25606 if ${gcc_cv_as_tls+:} false; then :
25607 $as_echo_n "(cached) " >&6
25608 else
25609 gcc_cv_as_tls=no
25610 if test x$gcc_cv_as != x; then
25611 $as_echo "$conftest_s" > conftest.s
25612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25618 then
25619 gcc_cv_as_tls=yes
25620 else
25621 echo "configure: failed program was" >&5
25622 cat conftest.s >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25628 $as_echo "$gcc_cv_as_tls" >&6; }
25629 if test $gcc_cv_as_tls = yes; then
25630 set_have_as_tls=yes
25634 if test $set_have_as_tls = yes ; then
25636 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25640 # Target-specific assembler checks.
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25643 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25644 gcc_cv_ld_static_dynamic=no
25645 gcc_cv_ld_static_option='-Bstatic'
25646 gcc_cv_ld_dynamic_option='-Bdynamic'
25647 if test $in_tree_ld = yes ; then
25648 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
25649 gcc_cv_ld_static_dynamic=yes
25651 elif test x$gcc_cv_ld != x; then
25652 # Check if linker supports -Bstatic/-Bdynamic option
25653 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25654 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25655 gcc_cv_ld_static_dynamic=yes
25656 else
25657 case "$target" in
25658 # AIX ld uses -b flags
25659 *-*-aix4.[23]* | *-*-aix[5-9]*)
25660 gcc_cv_ld_static_dynamic=yes
25661 gcc_cv_ld_static_option="-bstatic"
25662 gcc_cv_ld_dynamic_option="-bdynamic"
25664 # HP-UX ld uses -a flags to select between shared and archive.
25665 *-*-hpux*)
25666 if test x"$gnu_ld" = xno; then
25667 gcc_cv_ld_static_dynamic=yes
25668 gcc_cv_ld_static_option="-aarchive_shared"
25669 gcc_cv_ld_dynamic_option="-adefault"
25672 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25673 *-*-solaris2*)
25674 gcc_cv_ld_static_dynamic=yes
25676 esac
25679 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25681 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25684 cat >>confdefs.h <<_ACEOF
25685 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25686 _ACEOF
25689 cat >>confdefs.h <<_ACEOF
25690 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25691 _ACEOF
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25695 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25698 $as_echo_n "checking linker --version-script option... " >&6; }
25699 gcc_cv_ld_version_script=no
25700 ld_version_script_option=''
25701 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25702 gcc_cv_ld_version_script=yes
25703 ld_version_script_option='--version-script'
25704 elif test x$gcc_cv_ld != x; then
25705 case "$target" in
25706 # Solaris 2 ld always supports -M. It also supports a subset of
25707 # --version-script since Solaris 11.4, but requires
25708 # -z gnu-version-script-compat to activate.
25709 *-*-solaris2*)
25710 gcc_cv_ld_version_script=yes
25711 ld_version_script_option='-M'
25713 esac
25715 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25717 $as_echo "$gcc_cv_ld_version_script" >&6; }
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25721 $as_echo_n "checking linker soname option... " >&6; }
25722 gcc_cv_ld_soname=no
25723 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25724 gcc_cv_ld_soname=yes
25725 ld_soname_option='-soname'
25726 elif test x$gcc_cv_ld != x; then
25727 case "$target" in
25728 *-*-darwin*)
25729 gcc_cv_ld_soname=yes
25730 ld_soname_option='-install_name'
25732 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25733 # ld compatiblity since some Solaris 10 update.
25734 *-*-solaris2*)
25735 gcc_cv_ld_soname=yes
25736 ld_soname_option='-h'
25738 esac
25740 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25742 $as_echo "$gcc_cv_ld_soname" >&6; }
25745 if test x"$demangler_in_ld" = xyes; then
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25747 $as_echo_n "checking linker --demangle support... " >&6; }
25748 gcc_cv_ld_demangle=no
25749 if test $in_tree_ld = yes; then
25750 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 \
25751 gcc_cv_ld_demangle=yes
25753 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25754 # Check if the GNU linker supports --demangle option
25755 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25756 gcc_cv_ld_demangle=yes
25759 if test x"$gcc_cv_ld_demangle" = xyes; then
25761 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25765 $as_echo "$gcc_cv_ld_demangle" >&6; }
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25769 $as_echo_n "checking linker plugin support... " >&6; }
25770 gcc_cv_lto_plugin=0
25771 if test -f liblto_plugin.la; then
25772 save_ld_ver="$ld_ver"
25773 save_ld_vers_major="$ld_vers_major"
25774 save_ld_vers_minor="$ld_vers_minor"
25775 save_ld_is_gold="$ld_is_gold"
25777 ld_is_gold=no
25779 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25780 ld_ver="GNU ld"
25781 # FIXME: ld_is_gold?
25782 ld_vers_major="$gcc_cv_gld_major_version"
25783 ld_vers_minor="$gcc_cv_gld_minor_version"
25784 else
25785 # Determine plugin linker version.
25786 # FIXME: Partial duplicate from above, generalize.
25787 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25788 if echo "$ld_ver" | grep GNU > /dev/null; then
25789 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25790 ld_is_gold=yes
25791 ld_vers=`echo $ld_ver | sed -n \
25792 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25793 else
25794 ld_vers=`echo $ld_ver | sed -n \
25795 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25797 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25798 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25802 # Determine plugin support.
25803 if echo "$ld_ver" | grep GNU > /dev/null; then
25804 # Require GNU ld or gold 2.21+ for plugin support by default.
25805 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25806 gcc_cv_lto_plugin=2
25807 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25808 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25809 gcc_cv_lto_plugin=1
25813 ld_ver="$save_ld_ver"
25814 ld_vers_major="$save_ld_vers_major"
25815 ld_vers_minor="$save_ld_vers_minor"
25816 ld_is_gold="$save_ld_is_gold"
25819 cat >>confdefs.h <<_ACEOF
25820 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25821 _ACEOF
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25824 $as_echo "$gcc_cv_lto_plugin" >&6; }
25826 # Target OS-specific assembler checks.
25828 case "$target_os" in
25829 darwin*)
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25831 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25832 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25833 $as_echo_n "(cached) " >&6
25834 else
25835 gcc_cv_as_mmacosx_version_min=no
25836 if test x$gcc_cv_as != x; then
25837 $as_echo '.text' > conftest.s
25838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25844 then
25845 gcc_cv_as_mmacosx_version_min=yes
25846 else
25847 echo "configure: failed program was" >&5
25848 cat conftest.s >&5
25850 rm -f conftest.o conftest.s
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25854 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25855 if test $gcc_cv_as_mmacosx_version_min = yes; then
25857 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25862 esac
25864 # Target CPU-specific assembler checks.
25866 case "$target" in
25867 aarch64*-*-*)
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25869 $as_echo_n "checking assembler for -mabi option... " >&6; }
25870 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 gcc_cv_as_aarch64_mabi=no
25874 if test x$gcc_cv_as != x; then
25875 $as_echo '.text' > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_aarch64_mabi=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25892 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25895 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25897 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25899 else
25900 if test x$with_abi = xilp32; then
25901 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25902 Upgrade the Assembler." "$LINENO" 5
25904 if test x"$with_multilib_list" = xdefault; then
25905 TM_MULTILIB_CONFIG=lp64
25906 else
25907 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25908 for aarch64_multilib in ${aarch64_multilibs}; do
25909 case ${aarch64_multilib} in
25910 ilp32)
25911 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25912 Upgrade the Assembler." "$LINENO" 5
25916 esac
25917 done
25920 # Check if we have binutils support for relocations types needed by -fpic
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25922 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25923 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25924 $as_echo_n "(cached) " >&6
25925 else
25926 gcc_cv_as_aarch64_picreloc=no
25927 if test x$gcc_cv_as != x; then
25928 $as_echo '
25929 .text
25930 ldr x0, [x2, #:gotpage_lo15:globalsym]
25931 ' > conftest.s
25932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25938 then
25939 gcc_cv_as_aarch64_picreloc=yes
25940 else
25941 echo "configure: failed program was" >&5
25942 cat conftest.s >&5
25944 rm -f conftest.o conftest.s
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25948 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25949 if test $gcc_cv_as_aarch64_picreloc = yes; then
25951 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25955 # Enable Branch Target Identification Mechanism and Return Address
25956 # Signing by default.
25957 # Check whether --enable-standard-branch-protection was given.
25958 if test "${enable_standard_branch_protection+set}" = set; then :
25959 enableval=$enable_standard_branch_protection;
25960 case $enableval in
25961 yes)
25962 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25967 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25968 Valid choices are 'yes' and 'no'." "$LINENO" 5
25970 esac
25974 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25975 # Check whether --enable-fix-cortex-a53-835769 was given.
25976 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25977 enableval=$enable_fix_cortex_a53_835769;
25978 case $enableval in
25979 yes)
25980 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25985 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25986 Valid choices are 'yes' and 'no'." "$LINENO" 5
25989 esac
25993 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25994 # Check whether --enable-fix-cortex-a53-843419 was given.
25995 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25996 enableval=$enable_fix_cortex_a53_843419;
25997 case $enableval in
25998 yes)
25999 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26004 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26005 Valid choices are 'yes' and 'no'." "$LINENO" 5
26008 esac
26014 # All TARGET_ABI_OSF targets.
26015 alpha*-*-linux* | alpha*-*-*bsd*)
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26017 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26018 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26019 $as_echo_n "(cached) " >&6
26020 else
26021 gcc_cv_as_alpha_explicit_relocs=no
26022 if test x$gcc_cv_as != x; then
26023 $as_echo ' .set nomacro
26024 .text
26025 extbl $3, $2, $3 !lituse_bytoff!1
26026 ldq $2, a($29) !literal!1
26027 ldq $4, b($29) !literal!2
26028 ldq_u $3, 0($2) !lituse_base!1
26029 ldq $27, f($29) !literal!5
26030 jsr $26, ($27), f !lituse_jsr!5
26031 ldah $29, 0($26) !gpdisp!3
26032 lda $0, c($29) !gprel
26033 ldah $1, d($29) !gprelhigh
26034 lda $1, d($1) !gprellow
26035 lda $29, 0($29) !gpdisp!3' > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26042 then
26043 gcc_cv_as_alpha_explicit_relocs=yes
26044 else
26045 echo "configure: failed program was" >&5
26046 cat conftest.s >&5
26048 rm -f conftest.o conftest.s
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26052 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26053 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26055 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26060 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26061 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26062 $as_echo_n "(cached) " >&6
26063 else
26064 gcc_cv_as_alpha_jsrdirect_relocs=no
26065 if test x$gcc_cv_as != x; then
26066 $as_echo ' .set nomacro
26067 .text
26068 ldq $27, a($29) !literal!1
26069 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26075 test $ac_status = 0; }; }
26076 then
26077 gcc_cv_as_alpha_jsrdirect_relocs=yes
26078 else
26079 echo "configure: failed program was" >&5
26080 cat conftest.s >&5
26082 rm -f conftest.o conftest.s
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26086 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26087 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26089 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26095 avr-*-*)
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26097 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26098 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26099 $as_echo_n "(cached) " >&6
26100 else
26101 gcc_cv_as_avr_mlink_relax=no
26102 if test x$gcc_cv_as != x; then
26103 $as_echo '.text' > conftest.s
26104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26109 test $ac_status = 0; }; }
26110 then
26111 gcc_cv_as_avr_mlink_relax=yes
26112 else
26113 echo "configure: failed program was" >&5
26114 cat conftest.s >&5
26116 rm -f conftest.o conftest.s
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26120 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26121 if test $gcc_cv_as_avr_mlink_relax = yes; then
26123 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26129 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26130 if ${gcc_cv_as_avr_mrmw+:} false; then :
26131 $as_echo_n "(cached) " >&6
26132 else
26133 gcc_cv_as_avr_mrmw=no
26134 if test x$gcc_cv_as != x; then
26135 $as_echo '.text' > conftest.s
26136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; }
26142 then
26143 gcc_cv_as_avr_mrmw=yes
26144 else
26145 echo "configure: failed program was" >&5
26146 cat conftest.s >&5
26148 rm -f conftest.o conftest.s
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26152 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26153 if test $gcc_cv_as_avr_mrmw = yes; then
26155 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26161 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26162 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26163 $as_echo_n "(cached) " >&6
26164 else
26165 gcc_cv_as_avr_mgccisr=no
26166 if test x$gcc_cv_as != x; then
26167 $as_echo '.text
26168 __gcc_isr 1
26169 __gcc_isr 2
26170 __gcc_isr 0,r24
26171 ' > conftest.s
26172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26174 (eval $ac_try) 2>&5
26175 ac_status=$?
26176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26177 test $ac_status = 0; }; }
26178 then
26179 gcc_cv_as_avr_mgccisr=yes
26180 else
26181 echo "configure: failed program was" >&5
26182 cat conftest.s >&5
26184 rm -f conftest.o conftest.s
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26188 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26189 if test $gcc_cv_as_avr_mgccisr = yes; then
26191 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26196 # Check how default linker description file implements .rodata for
26197 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26198 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26200 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26201 cat > conftest.s <<EOF
26202 .section .rodata,"a",@progbits
26203 .global xxvaryy
26204 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26205 xxvaryy:
26206 .word 1
26208 rm -f conftest.nm
26209 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26214 test $ac_status = 0; }; }
26215 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26221 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; }
26227 if test -s conftest.nm
26228 then
26229 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26231 $as_echo "yes" >&6; }
26233 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26235 else
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26237 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26238 echo "$as_me: nm output was" >&5
26239 cat conftest.nm >&5
26240 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26241 { $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
26242 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26244 else
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26246 $as_echo "test failed" >&6; }
26247 echo "$as_me: failed program was" >&5
26248 cat conftest.s >&5
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26250 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26252 rm -f conftest.s conftest.o conftest.elf conftest.nm
26255 cris-*-*)
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26257 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26258 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26259 $as_echo_n "(cached) " >&6
26260 else
26261 gcc_cv_as_cris_no_mul_bug=no
26262 if test x$gcc_cv_as != x; then
26263 $as_echo '.text' > conftest.s
26264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }
26270 then
26271 gcc_cv_as_cris_no_mul_bug=yes
26272 else
26273 echo "configure: failed program was" >&5
26274 cat conftest.s >&5
26276 rm -f conftest.o conftest.s
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26280 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26281 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26283 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26289 sparc*-*-*)
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26291 $as_echo_n "checking assembler for -relax option... " >&6; }
26292 if ${gcc_cv_as_sparc_relax+:} false; then :
26293 $as_echo_n "(cached) " >&6
26294 else
26295 gcc_cv_as_sparc_relax=no
26296 if test x$gcc_cv_as != x; then
26297 $as_echo '.text' > conftest.s
26298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26304 then
26305 gcc_cv_as_sparc_relax=yes
26306 else
26307 echo "configure: failed program was" >&5
26308 cat conftest.s >&5
26310 rm -f conftest.o conftest.s
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26314 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26315 if test $gcc_cv_as_sparc_relax = yes; then
26317 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26323 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26324 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26327 gcc_cv_as_sparc_gotdata_op=no
26328 if test x$gcc_cv_as != x; then
26329 $as_echo '.text
26330 .align 4
26331 foo:
26333 bar:
26334 sethi %gdop_hix22(foo), %g1
26335 xor %g1, %gdop_lox10(foo), %g1
26336 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26343 then
26344 if test x$gcc_cv_ld != x \
26345 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26346 if test x$gcc_cv_objdump != x; then
26347 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26348 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26349 gcc_cv_as_sparc_gotdata_op=no
26350 else
26351 gcc_cv_as_sparc_gotdata_op=yes
26355 rm -f conftest
26356 else
26357 echo "configure: failed program was" >&5
26358 cat conftest.s >&5
26360 rm -f conftest.o conftest.s
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26364 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26365 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26367 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26373 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26374 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26375 $as_echo_n "(cached) " >&6
26376 else
26377 gcc_cv_as_sparc_ua_pcrel=no
26378 if test x$gcc_cv_as != x; then
26379 $as_echo '.text
26380 foo:
26382 .data
26383 .align 4
26384 .byte 0
26385 .uaword %r_disp32(foo)' > conftest.s
26386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26392 then
26393 if test x$gcc_cv_ld != x \
26394 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26395 gcc_cv_as_sparc_ua_pcrel=yes
26397 rm -f conftest
26398 else
26399 echo "configure: failed program was" >&5
26400 cat conftest.s >&5
26402 rm -f conftest.o conftest.s
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26406 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26407 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26409 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26413 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26414 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26417 gcc_cv_as_sparc_ua_pcrel_hidden=no
26418 if test x$gcc_cv_as != x; then
26419 $as_echo '.data
26420 .align 4
26421 .byte 0x31
26422 .uaword %r_disp32(foo)
26423 .byte 0x32, 0x33, 0x34
26424 .global foo
26425 .hidden foo
26426 foo:
26427 .skip 4' > conftest.s
26428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26433 test $ac_status = 0; }; }
26434 then
26435 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26436 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26437 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26438 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26439 if $gcc_cv_objdump -R conftest 2> /dev/null \
26440 | grep 'DISP32' > /dev/null 2>&1; then
26442 else
26443 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26446 rm -f conftest
26447 else
26448 echo "configure: failed program was" >&5
26449 cat conftest.s >&5
26451 rm -f conftest.o conftest.s
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26455 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26456 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26458 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26464 # unaligned pcrel relocs
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26467 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26468 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 gcc_cv_as_sparc_offsetable_lo10=no
26472 if test x$gcc_cv_as != x; then
26473 $as_echo '.text
26474 or %g1, %lo(ab) + 12, %g1
26475 or %g1, %lo(ab + 12), %g1' > conftest.s
26476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26481 test $ac_status = 0; }; }
26482 then
26483 if test x$gcc_cv_objdump != x \
26484 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26485 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26486 gcc_cv_as_sparc_offsetable_lo10=yes
26488 else
26489 echo "configure: failed program was" >&5
26490 cat conftest.s >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26496 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26497 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26499 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26505 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26506 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26507 $as_echo_n "(cached) " >&6
26508 else
26509 gcc_cv_as_sparc_fmaf=no
26510 if test x$gcc_cv_as != x; then
26511 $as_echo '.text
26512 .register %g2, #scratch
26513 .register %g3, #scratch
26514 .align 4
26515 fmaddd %f0, %f2, %f4, %f6
26516 addxccc %g1, %g2, %g3
26517 fsrl32 %f2, %f4, %f8
26518 fnaddd %f10, %f12, %f14' > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 gcc_cv_as_sparc_fmaf=yes
26527 else
26528 echo "configure: failed program was" >&5
26529 cat conftest.s >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26535 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26536 if test $gcc_cv_as_sparc_fmaf = yes; then
26538 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26544 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26545 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26546 $as_echo_n "(cached) " >&6
26547 else
26548 gcc_cv_as_sparc_sparc4=no
26549 if test x$gcc_cv_as != x; then
26550 $as_echo '.text
26551 .register %g2, #scratch
26552 .register %g3, #scratch
26553 .align 4
26554 cxbe %g2, %g3, 1f
26555 1: cwbneg %g2, %g3, 1f
26556 1: sha1
26558 aes_kexpand0 %f4, %f6, %f8
26559 des_round %f38, %f40, %f42, %f44
26560 camellia_f %f54, %f56, %f58, %f60
26561 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26568 then
26569 gcc_cv_as_sparc_sparc4=yes
26570 else
26571 echo "configure: failed program was" >&5
26572 cat conftest.s >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26578 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26579 if test $gcc_cv_as_sparc_sparc4 = yes; then
26581 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26587 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26588 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26589 $as_echo_n "(cached) " >&6
26590 else
26591 gcc_cv_as_sparc_sparc5=no
26592 if test x$gcc_cv_as != x; then
26593 $as_echo '.text
26594 .register %g2, #scratch
26595 .register %g3, #scratch
26596 .align 4
26597 subxc %g1, %g2, %g3
26598 fpadd8 %f0, %f2, %f4' > conftest.s
26599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; }
26605 then
26606 gcc_cv_as_sparc_sparc5=yes
26607 else
26608 echo "configure: failed program was" >&5
26609 cat conftest.s >&5
26611 rm -f conftest.o conftest.s
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26615 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26616 if test $gcc_cv_as_sparc_sparc5 = yes; then
26618 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26624 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26625 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26626 $as_echo_n "(cached) " >&6
26627 else
26628 gcc_cv_as_sparc_sparc6=no
26629 if test x$gcc_cv_as != x; then
26630 $as_echo '.text
26631 .register %g2, #scratch
26632 .register %g3, #scratch
26633 .align 4
26634 rd %entropy, %g1
26635 fpsll64x %f0, %f2, %f4' > conftest.s
26636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26641 test $ac_status = 0; }; }
26642 then
26643 gcc_cv_as_sparc_sparc6=yes
26644 else
26645 echo "configure: failed program was" >&5
26646 cat conftest.s >&5
26648 rm -f conftest.o conftest.s
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26652 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26653 if test $gcc_cv_as_sparc_sparc6 = yes; then
26655 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26661 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26662 if ${gcc_cv_as_sparc_leon+:} false; then :
26663 $as_echo_n "(cached) " >&6
26664 else
26665 gcc_cv_as_sparc_leon=no
26666 if test x$gcc_cv_as != x; then
26667 $as_echo '.text
26668 .register %g2, #scratch
26669 .register %g3, #scratch
26670 .align 4
26671 smac %g2, %g3, %g1
26672 umac %g2, %g3, %g1
26673 casa [%g2] 0xb, %g3, %g1' > conftest.s
26674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26676 (eval $ac_try) 2>&5
26677 ac_status=$?
26678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679 test $ac_status = 0; }; }
26680 then
26681 gcc_cv_as_sparc_leon=yes
26682 else
26683 echo "configure: failed program was" >&5
26684 cat conftest.s >&5
26686 rm -f conftest.o conftest.s
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26690 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26691 if test $gcc_cv_as_sparc_leon = yes; then
26693 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26699 i[34567]86-*-* | x86_64-*-*)
26700 case $target_os in
26701 cygwin*)
26702 # Full C++ conformance when using a shared libstdc++-v3 requires some
26703 # support from the Cygwin DLL, which in more recent versions exports
26704 # wrappers to aid in interposing and redirecting operators new, delete,
26705 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26706 # are configuring for a version of Cygwin that exports the wrappers.
26707 if test x$host = x$target && test x$host_cpu = xi686; then
26708 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26709 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26710 gcc_ac_cygwin_dll_wrappers=yes
26711 else
26712 gcc_ac_cygwin_dll_wrappers=no
26715 else
26716 # Can't check presence of libc functions during cross-compile, so
26717 # we just have to assume we're building for an up-to-date target.
26718 gcc_ac_cygwin_dll_wrappers=yes
26721 cat >>confdefs.h <<_ACEOF
26722 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26723 _ACEOF
26725 esac
26726 case $target_os in
26727 cygwin* | pe | mingw32*)
26728 # Recent binutils allows the three-operand form of ".comm" on PE. This
26729 # definition is used unconditionally to initialise the default state of
26730 # the target option variable that governs usage of the feature.
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26732 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26733 if ${gcc_cv_as_comm_has_align+:} false; then :
26734 $as_echo_n "(cached) " >&6
26735 else
26736 gcc_cv_as_comm_has_align=no
26737 if test x$gcc_cv_as != x; then
26738 $as_echo '.comm foo,1,32' > conftest.s
26739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26741 (eval $ac_try) 2>&5
26742 ac_status=$?
26743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26744 test $ac_status = 0; }; }
26745 then
26746 gcc_cv_as_comm_has_align=yes
26747 else
26748 echo "configure: failed program was" >&5
26749 cat conftest.s >&5
26751 rm -f conftest.o conftest.s
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26755 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26759 cat >>confdefs.h <<_ACEOF
26760 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26761 _ACEOF
26763 # Used for DWARF 2 in PE
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26765 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26766 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26767 $as_echo_n "(cached) " >&6
26768 else
26769 gcc_cv_as_ix86_pe_secrel32=no
26770 if test x$gcc_cv_as != x; then
26771 $as_echo '.text
26772 foo: nop
26773 .data
26774 .secrel32 foo' > conftest.s
26775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26777 (eval $ac_try) 2>&5
26778 ac_status=$?
26779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26780 test $ac_status = 0; }; }
26781 then
26782 if test x$gcc_cv_ld != x \
26783 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26784 gcc_cv_as_ix86_pe_secrel32=yes
26786 rm -f conftest
26787 else
26788 echo "configure: failed program was" >&5
26789 cat conftest.s >&5
26791 rm -f conftest.o conftest.s
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26795 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26796 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26798 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26802 # Test if the assembler supports the extended form of the .section
26803 # directive that specifies section alignment. LTO support uses this,
26804 # but normally only after installation, so we warn but don't fail the
26805 # configure if LTO is enabled but the assembler does not support it.
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26807 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26808 if ${gcc_cv_as_section_has_align+:} false; then :
26809 $as_echo_n "(cached) " >&6
26810 else
26811 gcc_cv_as_section_has_align=no
26812 if test x$gcc_cv_as != x; then
26813 $as_echo '.section lto_test,"dr0"' > conftest.s
26814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26819 test $ac_status = 0; }; }
26820 then
26821 gcc_cv_as_section_has_align=yes
26822 else
26823 echo "configure: failed program was" >&5
26824 cat conftest.s >&5
26826 rm -f conftest.o conftest.s
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26830 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26833 if test x$gcc_cv_as_section_has_align != xyes; then
26834 case ",$enable_languages," in
26835 *,lto,*)
26836 { $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
26837 $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;}
26839 esac
26842 esac
26843 case $target_os in
26844 darwin2[0-9]* | darwin19*)
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
26846 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
26847 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
26848 $as_echo_n "(cached) " >&6
26849 else
26850 gcc_cv_as_mllvm_x86_pad_for_align=no
26851 if test x$gcc_cv_as != x; then
26852 $as_echo '.text' > conftest.s
26853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
26854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26858 test $ac_status = 0; }; }
26859 then
26860 gcc_cv_as_mllvm_x86_pad_for_align=yes
26861 else
26862 echo "configure: failed program was" >&5
26863 cat conftest.s >&5
26865 rm -f conftest.o conftest.s
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
26869 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
26870 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
26872 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
26877 esac
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26880 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26881 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26882 $as_echo_n "(cached) " >&6
26883 else
26884 gcc_cv_as_ix86_xbrace_comment=no
26885 if test x$gcc_cv_as != x; then
26886 $as_echo '.text' > conftest.s
26887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26892 test $ac_status = 0; }; }
26893 then
26894 gcc_cv_as_ix86_xbrace_comment=yes
26895 else
26896 echo "configure: failed program was" >&5
26897 cat conftest.s >&5
26899 rm -f conftest.o conftest.s
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26903 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26904 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26906 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26912 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26913 if ${gcc_cv_as_ix86_filds+:} false; then :
26914 $as_echo_n "(cached) " >&6
26915 else
26916 gcc_cv_as_ix86_filds=no
26917 if test x$gcc_cv_as != x; then
26918 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924 test $ac_status = 0; }; }
26925 then
26926 gcc_cv_as_ix86_filds=yes
26927 else
26928 echo "configure: failed program was" >&5
26929 cat conftest.s >&5
26931 rm -f conftest.o conftest.s
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26935 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26936 if test $gcc_cv_as_ix86_filds = yes; then
26938 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26944 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26945 if ${gcc_cv_as_ix86_fildq+:} false; then :
26946 $as_echo_n "(cached) " >&6
26947 else
26948 gcc_cv_as_ix86_fildq=no
26949 if test x$gcc_cv_as != x; then
26950 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26956 test $ac_status = 0; }; }
26957 then
26958 gcc_cv_as_ix86_fildq=yes
26959 else
26960 echo "configure: failed program was" >&5
26961 cat conftest.s >&5
26963 rm -f conftest.o conftest.s
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26967 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26968 if test $gcc_cv_as_ix86_fildq = yes; then
26970 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26976 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26977 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26978 $as_echo_n "(cached) " >&6
26979 else
26980 gcc_cv_as_ix86_cmov_sun_syntax=no
26981 if test x$gcc_cv_as != x; then
26982 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26985 (eval $ac_try) 2>&5
26986 ac_status=$?
26987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26988 test $ac_status = 0; }; }
26989 then
26990 gcc_cv_as_ix86_cmov_sun_syntax=yes
26991 else
26992 echo "configure: failed program was" >&5
26993 cat conftest.s >&5
26995 rm -f conftest.o conftest.s
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26999 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27000 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27002 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27008 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27009 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27010 $as_echo_n "(cached) " >&6
27011 else
27012 gcc_cv_as_ix86_ffreep=no
27013 if test x$gcc_cv_as != x; then
27014 $as_echo 'ffreep %st(1)' > conftest.s
27015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27017 (eval $ac_try) 2>&5
27018 ac_status=$?
27019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27020 test $ac_status = 0; }; }
27021 then
27022 gcc_cv_as_ix86_ffreep=yes
27023 else
27024 echo "configure: failed program was" >&5
27025 cat conftest.s >&5
27027 rm -f conftest.o conftest.s
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27031 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27032 if test $gcc_cv_as_ix86_ffreep = yes; then
27034 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27040 $as_echo_n "checking assembler for .quad directive... " >&6; }
27041 if ${gcc_cv_as_ix86_quad+:} false; then :
27042 $as_echo_n "(cached) " >&6
27043 else
27044 gcc_cv_as_ix86_quad=no
27045 if test x$gcc_cv_as != x; then
27046 $as_echo '.quad 0' > conftest.s
27047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27052 test $ac_status = 0; }; }
27053 then
27054 gcc_cv_as_ix86_quad=yes
27055 else
27056 echo "configure: failed program was" >&5
27057 cat conftest.s >&5
27059 rm -f conftest.o conftest.s
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27063 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27064 if test $gcc_cv_as_ix86_quad = yes; then
27066 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27072 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27073 if ${gcc_cv_as_ix86_sahf+:} false; then :
27074 $as_echo_n "(cached) " >&6
27075 else
27076 gcc_cv_as_ix86_sahf=no
27077 if test x$gcc_cv_as != x; then
27078 $as_echo '.code64
27079 sahf' > conftest.s
27080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27085 test $ac_status = 0; }; }
27086 then
27087 gcc_cv_as_ix86_sahf=yes
27088 else
27089 echo "configure: failed program was" >&5
27090 cat conftest.s >&5
27092 rm -f conftest.o conftest.s
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27096 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27097 if test $gcc_cv_as_ix86_sahf = yes; then
27099 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27105 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27106 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27107 $as_echo_n "(cached) " >&6
27108 else
27109 gcc_cv_as_ix86_interunit_movq=no
27110 if test x$gcc_cv_as != x; then
27111 $as_echo '.code64
27112 movq %mm0, %rax
27113 movq %rax, %xmm0' > conftest.s
27114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; }
27120 then
27121 gcc_cv_as_ix86_interunit_movq=yes
27122 else
27123 echo "configure: failed program was" >&5
27124 cat conftest.s >&5
27126 rm -f conftest.o conftest.s
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27130 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27134 cat >>confdefs.h <<_ACEOF
27135 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27136 _ACEOF
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27140 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27141 if ${gcc_cv_as_ix86_hle+:} false; then :
27142 $as_echo_n "(cached) " >&6
27143 else
27144 gcc_cv_as_ix86_hle=no
27145 if test x$gcc_cv_as != x; then
27146 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27152 test $ac_status = 0; }; }
27153 then
27154 gcc_cv_as_ix86_hle=yes
27155 else
27156 echo "configure: failed program was" >&5
27157 cat conftest.s >&5
27159 rm -f conftest.o conftest.s
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27163 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27164 if test $gcc_cv_as_ix86_hle = yes; then
27166 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27172 $as_echo_n "checking assembler for swap suffix... " >&6; }
27173 if ${gcc_cv_as_ix86_swap+:} false; then :
27174 $as_echo_n "(cached) " >&6
27175 else
27176 gcc_cv_as_ix86_swap=no
27177 if test x$gcc_cv_as != x; then
27178 $as_echo 'movl.s %esp, %ebp' > conftest.s
27179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27184 test $ac_status = 0; }; }
27185 then
27186 gcc_cv_as_ix86_swap=yes
27187 else
27188 echo "configure: failed program was" >&5
27189 cat conftest.s >&5
27191 rm -f conftest.o conftest.s
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27195 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27196 if test $gcc_cv_as_ix86_swap = yes; then
27198 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27204 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27205 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27206 $as_echo_n "(cached) " >&6
27207 else
27208 gcc_cv_as_ix86_diff_sect_delta=no
27209 if test x$gcc_cv_as != x; then
27210 $as_echo '.section .rodata
27211 .L1:
27212 .long .L2-.L1
27213 .long .L3-.L1
27214 .text
27215 .L3: nop
27216 .L2: nop' > conftest.s
27217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27219 (eval $ac_try) 2>&5
27220 ac_status=$?
27221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27222 test $ac_status = 0; }; }
27223 then
27224 gcc_cv_as_ix86_diff_sect_delta=yes
27225 else
27226 echo "configure: failed program was" >&5
27227 cat conftest.s >&5
27229 rm -f conftest.o conftest.s
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27233 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27234 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27236 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27242 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27243 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27244 $as_echo_n "(cached) " >&6
27245 else
27246 gcc_cv_as_ix86_rep_lock_prefix=no
27247 if test x$gcc_cv_as != x; then
27248 $as_echo 'rep movsl
27249 rep ret
27250 rep nop
27251 rep bsf %ecx, %eax
27252 rep bsr %ecx, %eax
27253 lock addl %edi, (%eax,%esi)
27254 lock orl $0, (%esp)' > conftest.s
27255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27257 (eval $ac_try) 2>&5
27258 ac_status=$?
27259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27260 test $ac_status = 0; }; }
27261 then
27262 gcc_cv_as_ix86_rep_lock_prefix=yes
27263 else
27264 echo "configure: failed program was" >&5
27265 cat conftest.s >&5
27267 rm -f conftest.o conftest.s
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27271 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27272 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27274 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27280 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27281 if ${gcc_cv_as_ix86_ud2+:} false; then :
27282 $as_echo_n "(cached) " >&6
27283 else
27284 gcc_cv_as_ix86_ud2=no
27285 if test x$gcc_cv_as != x; then
27286 $as_echo 'ud2' > conftest.s
27287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27289 (eval $ac_try) 2>&5
27290 ac_status=$?
27291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27292 test $ac_status = 0; }; }
27293 then
27294 gcc_cv_as_ix86_ud2=yes
27295 else
27296 echo "configure: failed program was" >&5
27297 cat conftest.s >&5
27299 rm -f conftest.o conftest.s
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27303 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27304 if test $gcc_cv_as_ix86_ud2 = yes; then
27306 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27311 # Enforce 32-bit output with gas and gld.
27312 if test x$gas = xyes; then
27313 as_ix86_gas_32_opt="--32"
27315 if echo "$ld_ver" | grep GNU > /dev/null; then
27316 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27317 ld_ix86_gld_32_opt="-melf_i386_sol2"
27318 else
27319 ld_ix86_gld_32_opt="-melf_i386"
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27324 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27325 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27326 $as_echo_n "(cached) " >&6
27327 else
27328 gcc_cv_as_ix86_tlsgdplt=no
27329 if test x$gcc_cv_as != x; then
27330 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336 test $ac_status = 0; }; }
27337 then
27338 if test x$gcc_cv_ld != x \
27339 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27340 gcc_cv_as_ix86_tlsgdplt=yes
27342 rm -f conftest
27343 else
27344 echo "configure: failed program was" >&5
27345 cat conftest.s >&5
27347 rm -f conftest.o conftest.s
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27351 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27352 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27354 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27359 conftest_s='
27360 .section .tdata,"aw'$tls_section_flag'",@progbits
27361 tls_ld:
27362 .section .text,"ax",@progbits
27363 call tls_ld@tlsldmplt'
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27366 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27367 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27368 $as_echo_n "(cached) " >&6
27369 else
27370 gcc_cv_as_ix86_tlsldmplt=no
27371 if test x$gcc_cv_as != x; then
27372 $as_echo "$conftest_s" > conftest.s
27373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; }
27379 then
27380 if test x$gcc_cv_ld != x \
27381 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27382 gcc_cv_as_ix86_tlsldmplt=yes
27384 rm -f conftest
27385 else
27386 echo "configure: failed program was" >&5
27387 cat conftest.s >&5
27389 rm -f conftest.o conftest.s
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27393 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27397 cat >>confdefs.h <<_ACEOF
27398 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27399 _ACEOF
27402 conftest_s='
27403 .section .text,"ax",@progbits
27404 .globl _start
27405 .type _start, @function
27406 _start:
27407 leal value@tlsldm(%ebx), %eax
27408 call ___tls_get_addr@plt
27410 .section .tdata,"aw'$tls_section_flag'",@progbits
27411 .type value, @object
27412 value:'
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27414 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27415 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27416 $as_echo_n "(cached) " >&6
27417 else
27418 gcc_cv_as_ix86_tlsldm=no
27419 if test x$gcc_cv_as != x; then
27420 $as_echo "$conftest_s" > conftest.s
27421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27423 (eval $ac_try) 2>&5
27424 ac_status=$?
27425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27426 test $ac_status = 0; }; }
27427 then
27428 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27429 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27430 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27431 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27432 gcc_cv_as_ix86_tlsldm=yes
27435 rm -f conftest
27436 else
27437 echo "configure: failed program was" >&5
27438 cat conftest.s >&5
27440 rm -f conftest.o conftest.s
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27444 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27448 cat >>confdefs.h <<_ACEOF
27449 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27450 _ACEOF
27453 conftest_s='
27454 .data
27455 bar:
27456 .byte 1
27457 .text
27458 .global _start
27459 _start:
27460 cmpl $0, bar@GOT
27461 jmp *_start@GOT'
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27463 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27464 if ${gcc_cv_as_ix86_got32x+:} false; then :
27465 $as_echo_n "(cached) " >&6
27466 else
27467 gcc_cv_as_ix86_got32x=no
27468 if test x$gcc_cv_as != x; then
27469 $as_echo "$conftest_s" > conftest.s
27470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27475 test $ac_status = 0; }; }
27476 then
27477 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27478 && test x$gcc_cv_readelf != x \
27479 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27480 | grep R_386_GOT32X > /dev/null 2>&1 \
27481 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27482 if $gcc_cv_objdump -dw conftest 2>&1 \
27483 | grep 0xffffff > /dev/null 2>&1; then
27484 gcc_cv_as_ix86_got32x=no
27485 else
27486 gcc_cv_as_ix86_got32x=yes
27489 rm -f conftest
27490 else
27491 echo "configure: failed program was" >&5
27492 cat conftest.s >&5
27494 rm -f conftest.o conftest.s
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27498 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27502 cat >>confdefs.h <<_ACEOF
27503 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27504 _ACEOF
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27508 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27509 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27510 $as_echo_n "(cached) " >&6
27511 else
27512 gcc_cv_as_ix86_gotoff_in_data=no
27513 if test x$gcc_cv_as != x; then
27514 $as_echo ' .text
27515 .L0:
27517 .data
27518 .long .L0@GOTOFF' > conftest.s
27519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; }
27525 then
27526 gcc_cv_as_ix86_gotoff_in_data=yes
27527 else
27528 echo "configure: failed program was" >&5
27529 cat conftest.s >&5
27531 rm -f conftest.o conftest.s
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27535 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27539 cat >>confdefs.h <<_ACEOF
27540 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27541 _ACEOF
27544 conftest_s='
27545 .section .text,"ax",@progbits
27546 .globl _start
27547 .type _start, @function
27548 _start:
27549 leal ld@tlsldm(%ecx), %eax
27550 call *___tls_get_addr@GOT(%ecx)
27551 leal gd@tlsgd(%ecx), %eax
27552 call *___tls_get_addr@GOT(%ecx)
27554 .section .tdata,"aw'$tls_section_flag'",@progbits
27555 .type ld, @object
27557 .byte 0
27558 .globl gd
27559 .type gd, @object
27561 .byte 0'
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27563 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27564 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27565 $as_echo_n "(cached) " >&6
27566 else
27567 gcc_cv_as_ix86_tls_get_addr_via_got=no
27568 if test x$gcc_cv_as != x; then
27569 $as_echo "$conftest_s" > conftest.s
27570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27572 (eval $ac_try) 2>&5
27573 ac_status=$?
27574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27575 test $ac_status = 0; }; }
27576 then
27577 if test x$gcc_cv_ld != x \
27578 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27579 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27581 rm -f conftest
27582 else
27583 echo "configure: failed program was" >&5
27584 cat conftest.s >&5
27586 rm -f conftest.o conftest.s
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27590 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27594 cat >>confdefs.h <<_ACEOF
27595 #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`
27596 _ACEOF
27600 ia64*-*-*)
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27602 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27603 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27607 if test x$gcc_cv_as != x; then
27608 $as_echo ' .text
27609 addl r15 = @ltoffx(x#), gp
27611 ld8.mov r16 = [r15], x#
27612 ' > conftest.s
27613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27615 (eval $ac_try) 2>&5
27616 ac_status=$?
27617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27618 test $ac_status = 0; }; }
27619 then
27620 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27621 else
27622 echo "configure: failed program was" >&5
27623 cat conftest.s >&5
27625 rm -f conftest.o conftest.s
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27629 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27630 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27632 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27639 powerpc*-*-*)
27641 case $target in
27642 *-*-darwin*)
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27644 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27645 if ${gcc_cv_as_machine_directive+:} false; then :
27646 $as_echo_n "(cached) " >&6
27647 else
27648 gcc_cv_as_machine_directive=no
27649 if test x$gcc_cv_as != x; then
27650 $as_echo ' .machine ppc7400' > conftest.s
27651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27656 test $ac_status = 0; }; }
27657 then
27658 gcc_cv_as_machine_directive=yes
27659 else
27660 echo "configure: failed program was" >&5
27661 cat conftest.s >&5
27663 rm -f conftest.o conftest.s
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27667 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27670 if test x$gcc_cv_as_machine_directive != xyes; then
27671 echo "*** This target requires an assembler supporting \".machine\"" >&2
27672 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27673 test x$build = x$target && exit 1
27676 esac
27678 case $target in
27679 *-*-aix*) conftest_s=' .machine "pwr5"
27680 .csect .text[PR]
27681 mfcr 3,128';;
27682 *-*-darwin*) conftest_s=' .text
27683 mfcr r3,128';;
27684 *) conftest_s=' .machine power4
27685 .text
27686 mfcr 3,128';;
27687 esac
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27690 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27691 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27692 $as_echo_n "(cached) " >&6
27693 else
27694 gcc_cv_as_powerpc_mfcrf=no
27695 if test x$gcc_cv_as != x; then
27696 $as_echo "$conftest_s" > conftest.s
27697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; }
27703 then
27704 gcc_cv_as_powerpc_mfcrf=yes
27705 else
27706 echo "configure: failed program was" >&5
27707 cat conftest.s >&5
27709 rm -f conftest.o conftest.s
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27713 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27714 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27716 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27721 case $target in
27722 *-*-aix*) conftest_s=' .csect .text[PR]
27723 LCF..0:
27724 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27725 *-*-darwin*)
27726 conftest_s=' .text
27727 LCF0:
27728 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27729 *) conftest_s=' .text
27730 .LCF0:
27731 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27732 esac
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27735 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27736 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27737 $as_echo_n "(cached) " >&6
27738 else
27739 gcc_cv_as_powerpc_rel16=no
27740 if test x$gcc_cv_as != x; then
27741 $as_echo "$conftest_s" > conftest.s
27742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27747 test $ac_status = 0; }; }
27748 then
27749 gcc_cv_as_powerpc_rel16=yes
27750 else
27751 echo "configure: failed program was" >&5
27752 cat conftest.s >&5
27754 rm -f conftest.o conftest.s
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27758 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27759 if test $gcc_cv_as_powerpc_rel16 = yes; then
27761 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27766 case $target in
27767 *-*-aix*) conftest_s=' .machine "pwr7"
27768 .csect .text[PR]
27769 lxvd2x 1,2,3';;
27770 *) conftest_s=' .machine power7
27771 .text
27772 lxvd2x 1,2,3';;
27773 esac
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27776 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27777 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27778 $as_echo_n "(cached) " >&6
27779 else
27780 gcc_cv_as_powerpc_vsx=no
27781 if test x$gcc_cv_as != x; then
27782 $as_echo "$conftest_s" > conftest.s
27783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27785 (eval $ac_try) 2>&5
27786 ac_status=$?
27787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27788 test $ac_status = 0; }; }
27789 then
27790 gcc_cv_as_powerpc_vsx=yes
27791 else
27792 echo "configure: failed program was" >&5
27793 cat conftest.s >&5
27795 rm -f conftest.o conftest.s
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27799 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27800 if test $gcc_cv_as_powerpc_vsx = yes; then
27802 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27808 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27809 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27810 $as_echo_n "(cached) " >&6
27811 else
27812 gcc_cv_as_powerpc_gnu_attribute=no
27813 if test x$gcc_cv_as != x; then
27814 $as_echo '.gnu_attribute 4,1' > conftest.s
27815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27817 (eval $ac_try) 2>&5
27818 ac_status=$?
27819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27820 test $ac_status = 0; }; }
27821 then
27822 gcc_cv_as_powerpc_gnu_attribute=yes
27823 else
27824 echo "configure: failed program was" >&5
27825 cat conftest.s >&5
27827 rm -f conftest.o conftest.s
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27831 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27832 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27834 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27840 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27841 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27842 $as_echo_n "(cached) " >&6
27843 else
27844 gcc_cv_as_powerpc_entry_markers=no
27845 if test x$gcc_cv_as != x; then
27846 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849 (eval $ac_try) 2>&5
27850 ac_status=$?
27851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852 test $ac_status = 0; }; }
27853 then
27854 gcc_cv_as_powerpc_entry_markers=yes
27855 else
27856 echo "configure: failed program was" >&5
27857 cat conftest.s >&5
27859 rm -f conftest.o conftest.s
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27863 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27864 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27866 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27872 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27873 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27874 $as_echo_n "(cached) " >&6
27875 else
27876 gcc_cv_as_powerpc_pltseq_markers=no
27877 if test x$gcc_cv_as != x; then
27878 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27884 test $ac_status = 0; }; }
27885 then
27886 gcc_cv_as_powerpc_pltseq_markers=yes
27887 else
27888 echo "configure: failed program was" >&5
27889 cat conftest.s >&5
27891 rm -f conftest.o conftest.s
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27895 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27896 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27898 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27903 case $target in
27904 *-*-aix*)
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27906 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27907 if ${gcc_cv_as_aix_ref+:} false; then :
27908 $as_echo_n "(cached) " >&6
27909 else
27910 gcc_cv_as_aix_ref=no
27911 if test x$gcc_cv_as != x; then
27912 $as_echo ' .csect stuff[rw]
27913 stuff:
27914 .long 1
27915 .extern sym
27916 .ref sym
27917 ' > conftest.s
27918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27920 (eval $ac_try) 2>&5
27921 ac_status=$?
27922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27923 test $ac_status = 0; }; }
27924 then
27925 gcc_cv_as_aix_ref=yes
27926 else
27927 echo "configure: failed program was" >&5
27928 cat conftest.s >&5
27930 rm -f conftest.o conftest.s
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27934 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27935 if test $gcc_cv_as_aix_ref = yes; then
27937 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27943 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27944 if ${gcc_cv_as_aix_dwloc+:} false; then :
27945 $as_echo_n "(cached) " >&6
27946 else
27947 gcc_cv_as_aix_dwloc=no
27948 if test x$gcc_cv_as != x; then
27949 $as_echo ' .dwsect 0xA0000
27950 Lframe..0:
27951 .vbyte 4,Lframe..0
27952 ' > conftest.s
27953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27955 (eval $ac_try) 2>&5
27956 ac_status=$?
27957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958 test $ac_status = 0; }; }
27959 then
27960 gcc_cv_as_aix_dwloc=yes
27961 else
27962 echo "configure: failed program was" >&5
27963 cat conftest.s >&5
27965 rm -f conftest.o conftest.s
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27969 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27970 if test $gcc_cv_as_aix_dwloc = yes; then
27972 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27977 esac
27980 mips*-*-*)
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27982 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27983 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27984 $as_echo_n "(cached) " >&6
27985 else
27986 gcc_cv_as_mips_explicit_relocs=no
27987 if test x$gcc_cv_as != x; then
27988 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27995 then
27996 gcc_cv_as_mips_explicit_relocs=yes
27997 else
27998 echo "configure: failed program was" >&5
27999 cat conftest.s >&5
28001 rm -f conftest.o conftest.s
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28005 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28006 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28007 if test x$target_cpu_default = x
28008 then target_cpu_default=MASK_EXPLICIT_RELOCS
28009 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28015 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28016 if ${gcc_cv_as_mips_no_shared+:} false; then :
28017 $as_echo_n "(cached) " >&6
28018 else
28019 gcc_cv_as_mips_no_shared=no
28020 if test x$gcc_cv_as != x; then
28021 $as_echo 'nop' > conftest.s
28022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28024 (eval $ac_try) 2>&5
28025 ac_status=$?
28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28027 test $ac_status = 0; }; }
28028 then
28029 gcc_cv_as_mips_no_shared=yes
28030 else
28031 echo "configure: failed program was" >&5
28032 cat conftest.s >&5
28034 rm -f conftest.o conftest.s
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28038 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28039 if test $gcc_cv_as_mips_no_shared = yes; then
28041 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28047 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28048 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28049 $as_echo_n "(cached) " >&6
28050 else
28051 gcc_cv_as_mips_gnu_attribute=no
28052 if test x$gcc_cv_as != x; then
28053 $as_echo '.gnu_attribute 4,1' > conftest.s
28054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28056 (eval $ac_try) 2>&5
28057 ac_status=$?
28058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28059 test $ac_status = 0; }; }
28060 then
28061 gcc_cv_as_mips_gnu_attribute=yes
28062 else
28063 echo "configure: failed program was" >&5
28064 cat conftest.s >&5
28066 rm -f conftest.o conftest.s
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28070 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28071 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28073 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28079 $as_echo_n "checking assembler for .module support... " >&6; }
28080 if ${gcc_cv_as_mips_dot_module+:} false; then :
28081 $as_echo_n "(cached) " >&6
28082 else
28083 gcc_cv_as_mips_dot_module=no
28084 if test x$gcc_cv_as != x; then
28085 $as_echo '.module mips2
28086 .module fp=xx' > conftest.s
28087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28092 test $ac_status = 0; }; }
28093 then
28094 gcc_cv_as_mips_dot_module=yes
28095 else
28096 echo "configure: failed program was" >&5
28097 cat conftest.s >&5
28099 rm -f conftest.o conftest.s
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28103 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28104 if test $gcc_cv_as_mips_dot_module = yes; then
28106 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28110 if test x$gcc_cv_as_mips_dot_module = xno \
28111 && test x$with_fp_32 != x; then
28112 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28116 $as_echo_n "checking assembler for .micromips support... " >&6; }
28117 if ${gcc_cv_as_micromips_support+:} false; then :
28118 $as_echo_n "(cached) " >&6
28119 else
28120 gcc_cv_as_micromips_support=no
28121 if test x$gcc_cv_as != x; then
28122 $as_echo '.set micromips' > conftest.s
28123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28129 then
28130 gcc_cv_as_micromips_support=yes
28131 else
28132 echo "configure: failed program was" >&5
28133 cat conftest.s >&5
28135 rm -f conftest.o conftest.s
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28139 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28140 if test $gcc_cv_as_micromips_support = yes; then
28142 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28148 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28149 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28150 $as_echo_n "(cached) " >&6
28151 else
28152 gcc_cv_as_mips_dtprelword=no
28153 if test x$gcc_cv_as != x; then
28154 $as_echo '.section .tdata,"awT",@progbits
28156 .word 2
28157 .text
28158 .dtprelword x+0x8000' > conftest.s
28159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28161 (eval $ac_try) 2>&5
28162 ac_status=$?
28163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28164 test $ac_status = 0; }; }
28165 then
28166 gcc_cv_as_mips_dtprelword=yes
28167 else
28168 echo "configure: failed program was" >&5
28169 cat conftest.s >&5
28171 rm -f conftest.o conftest.s
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28175 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28176 if test $gcc_cv_as_mips_dtprelword = yes; then
28178 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28184 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28185 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28186 $as_echo_n "(cached) " >&6
28187 else
28188 gcc_cv_as_mips_dspr1_mult=no
28189 if test x$gcc_cv_as != x; then
28190 $as_echo ' .set mips32r2
28191 .set nodspr2
28192 .set dsp
28193 madd $ac3,$4,$5
28194 maddu $ac3,$4,$5
28195 msub $ac3,$4,$5
28196 msubu $ac3,$4,$5
28197 mult $ac3,$4,$5
28198 multu $ac3,$4,$5' > conftest.s
28199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28202 ac_status=$?
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }
28205 then
28206 gcc_cv_as_mips_dspr1_mult=yes
28207 else
28208 echo "configure: failed program was" >&5
28209 cat conftest.s >&5
28211 rm -f conftest.o conftest.s
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28215 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28216 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28218 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28224 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28225 gcc_cv_as_ld_jalr_reloc=no
28226 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28227 if test $in_tree_ld = yes ; then
28228 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 \
28229 && test $in_tree_ld_is_elf = yes; then
28230 gcc_cv_as_ld_jalr_reloc=yes
28232 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28233 echo ' .ent x' > conftest.s
28234 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28235 echo ' lw $25,%call16(y)($28)' >> conftest.s
28236 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28237 echo '1: jalr $25' >> conftest.s
28238 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28239 echo '1: jalr $25' >> conftest.s
28240 echo ' .end x' >> conftest.s
28241 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28242 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28243 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28244 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28245 gcc_cv_as_ld_jalr_reloc=yes
28248 rm -f conftest.*
28251 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28252 if test x$target_cpu_default = x; then
28253 target_cpu_default=MASK_RELAX_PIC_CALLS
28254 else
28255 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28259 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28262 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28263 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28264 $as_echo_n "(cached) " >&6
28265 else
28266 gcc_cv_ld_mips_personality_relaxation=no
28267 if test $in_tree_ld = yes ; then
28268 if test "$gcc_cv_gld_major_version" -eq 2 \
28269 -a "$gcc_cv_gld_minor_version" -ge 21 \
28270 -o "$gcc_cv_gld_major_version" -gt 2; then
28271 gcc_cv_ld_mips_personality_relaxation=yes
28273 elif test x$gcc_cv_as != x \
28274 -a x$gcc_cv_ld != x \
28275 -a x$gcc_cv_readelf != x ; then
28276 cat > conftest.s <<EOF
28277 .cfi_startproc
28278 .cfi_personality 0x80,indirect_ptr
28279 .ent test
28280 test:
28282 .end test
28283 .cfi_endproc
28285 .section .data,"aw",@progbits
28286 indirect_ptr:
28287 .dc.a personality
28289 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28290 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28291 if $gcc_cv_readelf -d conftest 2>&1 \
28292 | grep TEXTREL > /dev/null 2>&1; then
28294 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28295 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28297 else
28298 gcc_cv_ld_mips_personality_relaxation=yes
28302 rm -f conftest.s conftest.o conftest
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28305 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28306 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28308 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28313 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28314 if ${gcc_cv_as_mips_nan+:} false; then :
28315 $as_echo_n "(cached) " >&6
28316 else
28317 gcc_cv_as_mips_nan=no
28318 if test x$gcc_cv_as != x; then
28319 $as_echo '' > conftest.s
28320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28322 (eval $ac_try) 2>&5
28323 ac_status=$?
28324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28325 test $ac_status = 0; }; }
28326 then
28327 gcc_cv_as_mips_nan=yes
28328 else
28329 echo "configure: failed program was" >&5
28330 cat conftest.s >&5
28332 rm -f conftest.o conftest.s
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28336 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28337 if test $gcc_cv_as_mips_nan = yes; then
28339 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28343 if test x$gcc_cv_as_mips_nan = xno \
28344 && test x$with_nan != x; then
28345 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28348 msp430-*-*)
28349 # Earlier GAS versions generically support .gnu_attribute, but the
28350 # msp430 assembler will not do anything with it.
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28352 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28353 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28354 $as_echo_n "(cached) " >&6
28355 else
28356 gcc_cv_as_msp430_gnu_attribute=no
28357 if test x$gcc_cv_as != x; then
28358 $as_echo '.gnu_attribute 4,1' > conftest.s
28359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28361 (eval $ac_try) 2>&5
28362 ac_status=$?
28363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28364 test $ac_status = 0; }; }
28365 then
28366 gcc_cv_as_msp430_gnu_attribute=yes
28367 else
28368 echo "configure: failed program was" >&5
28369 cat conftest.s >&5
28371 rm -f conftest.o conftest.s
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28375 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28376 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28378 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28383 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28384 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28385 $as_echo_n "(cached) " >&6
28386 else
28387 gcc_cv_as_msp430_mspabi_attribute=no
28388 if test x$gcc_cv_as != x; then
28389 $as_echo '.mspabi_attribute 4,2' > conftest.s
28390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28395 test $ac_status = 0; }; }
28396 then
28397 gcc_cv_as_msp430_mspabi_attribute=yes
28398 else
28399 echo "configure: failed program was" >&5
28400 cat conftest.s >&5
28402 rm -f conftest.o conftest.s
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28406 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28407 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28409 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28413 if test x$enable_newlib_nano_formatted_io = xyes; then
28415 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28419 nios2-*-*)
28420 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28421 # syntax that is documented in the ABI specification.
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28423 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28424 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28425 $as_echo_n "(cached) " >&6
28426 else
28427 gcc_cv_as_nios2_gotoff_relocation=no
28428 if test x$gcc_cv_as != x; then
28429 $as_echo ' .extern foo
28430 .data
28431 .long %gotoff(foo)' > conftest.s
28432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28437 test $ac_status = 0; }; }
28438 then
28439 gcc_cv_as_nios2_gotoff_relocation=yes
28440 else
28441 echo "configure: failed program was" >&5
28442 cat conftest.s >&5
28444 rm -f conftest.o conftest.s
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28448 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28449 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28451 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28456 riscv*-*-*)
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28458 $as_echo_n "checking assembler for .attribute support... " >&6; }
28459 if ${gcc_cv_as_riscv_attribute+:} false; then :
28460 $as_echo_n "(cached) " >&6
28461 else
28462 gcc_cv_as_riscv_attribute=no
28463 if test x$gcc_cv_as != x; then
28464 $as_echo '.attribute stack_align,4' > conftest.s
28465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28467 (eval $ac_try) 2>&5
28468 ac_status=$?
28469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28470 test $ac_status = 0; }; }
28471 then
28472 gcc_cv_as_riscv_attribute=yes
28473 else
28474 echo "configure: failed program was" >&5
28475 cat conftest.s >&5
28477 rm -f conftest.o conftest.s
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28481 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28482 if test $gcc_cv_as_riscv_attribute = yes; then
28484 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28489 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28490 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28491 $as_echo_n "(cached) " >&6
28492 else
28493 gcc_cv_as_riscv_isa_spec=no
28494 if test x$gcc_cv_as != x; then
28495 $as_echo '' > conftest.s
28496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28498 (eval $ac_try) 2>&5
28499 ac_status=$?
28500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28501 test $ac_status = 0; }; }
28502 then
28503 gcc_cv_as_riscv_isa_spec=yes
28504 else
28505 echo "configure: failed program was" >&5
28506 cat conftest.s >&5
28508 rm -f conftest.o conftest.s
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28512 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28513 if test $gcc_cv_as_riscv_isa_spec = yes; then
28515 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28520 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28521 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28522 $as_echo_n "(cached) " >&6
28523 else
28524 gcc_cv_as_riscv_march_zifencei=no
28525 if test x$gcc_cv_as != x; then
28526 $as_echo '' > conftest.s
28527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28532 test $ac_status = 0; }; }
28533 then
28534 gcc_cv_as_riscv_march_zifencei=yes
28535 else
28536 echo "configure: failed program was" >&5
28537 cat conftest.s >&5
28539 rm -f conftest.o conftest.s
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28543 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28544 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28546 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28551 s390*-*-*)
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28553 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28554 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28555 $as_echo_n "(cached) " >&6
28556 else
28557 gcc_cv_as_s390_gnu_attribute=no
28558 if test x$gcc_cv_as != x; then
28559 $as_echo '.gnu_attribute 8,1' > conftest.s
28560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28562 (eval $ac_try) 2>&5
28563 ac_status=$?
28564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28565 test $ac_status = 0; }; }
28566 then
28567 gcc_cv_as_s390_gnu_attribute=yes
28568 else
28569 echo "configure: failed program was" >&5
28570 cat conftest.s >&5
28572 rm -f conftest.o conftest.s
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28576 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28577 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28579 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28584 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28585 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28586 $as_echo_n "(cached) " >&6
28587 else
28588 gcc_cv_as_s390_machine_machinemode=no
28589 if test x$gcc_cv_as != x; then
28590 $as_echo ' .machinemode push
28591 .machinemode pop
28592 .machine push
28593 .machine pop' > conftest.s
28594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28599 test $ac_status = 0; }; }
28600 then
28601 gcc_cv_as_s390_machine_machinemode=yes
28602 else
28603 echo "configure: failed program was" >&5
28604 cat conftest.s >&5
28606 rm -f conftest.o conftest.s
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28610 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28611 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28613 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28618 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28619 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28620 $as_echo_n "(cached) " >&6
28621 else
28622 gcc_cv_as_s390_architecture_modifiers=no
28623 if test x$gcc_cv_as != x; then
28624 $as_echo ' .machine z13+vx ' > conftest.s
28625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28630 test $ac_status = 0; }; }
28631 then
28632 gcc_cv_as_s390_architecture_modifiers=yes
28633 else
28634 echo "configure: failed program was" >&5
28635 cat conftest.s >&5
28637 rm -f conftest.o conftest.s
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28641 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28642 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28644 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28649 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28650 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28651 $as_echo_n "(cached) " >&6
28652 else
28653 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28654 if test x$gcc_cv_as != x; then
28655 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28658 (eval $ac_try) 2>&5
28659 ac_status=$?
28660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28661 test $ac_status = 0; }; }
28662 then
28663 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28664 else
28665 echo "configure: failed program was" >&5
28666 cat conftest.s >&5
28668 rm -f conftest.o conftest.s
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28672 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28673 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28675 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28680 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28681 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28682 $as_echo_n "(cached) " >&6
28683 else
28684 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28685 if test x$gcc_cv_as != x; then
28686 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28689 (eval $ac_try) 2>&5
28690 ac_status=$?
28691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28692 test $ac_status = 0; }; }
28693 then
28694 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28695 else
28696 echo "configure: failed program was" >&5
28697 cat conftest.s >&5
28699 rm -f conftest.o conftest.s
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28703 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28704 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28706 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28712 esac
28714 # Mips and HP-UX need the GNU assembler.
28715 # Linux on IA64 might be able to use the Intel assembler.
28717 case "$target" in
28718 mips*-*-* | *-*-hpux* )
28719 if test x$gas_flag = xyes \
28720 || test x"$host" != x"$build" \
28721 || test ! -x "$gcc_cv_as" \
28722 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28724 else
28725 echo "*** This configuration requires the GNU assembler" >&2
28726 exit 1
28729 esac
28731 # This tests if the assembler supports two registers for global_load functions
28732 # (like in LLVM versions <12) or one register (like in LLVM 12).
28733 case "$target" in
28734 amdgcn-* | gcn-*)
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
28736 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
28737 gcc_cv_as_gcn_global_load_fixed=yes
28738 if test x$gcc_cv_as != x; then
28739 cat > conftest.s <<EOF
28740 global_store_dwordx2 v[1:2], v[4:5], s[14:15]
28742 if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
28743 gcc_cv_as_gcn_global_load_fixed=no
28745 rm -f conftest.s conftest.o conftest
28747 global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
28749 cat >>confdefs.h <<_ACEOF
28750 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
28751 _ACEOF
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
28754 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
28756 esac
28758 case "$target" in
28759 amdgcn-* | gcn-*)
28760 # Test the LLVM assembler syntax dialect; they have made a number of
28761 # changes between LLVM 12 & 13 without any backward compatibility.
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v2/3 syntax" >&5
28763 $as_echo_n "checking assembler for assembler amdgcn_target v2/3 syntax... " >&6; }
28764 if ${gcc_cv_as_gcn_asm_v3_syntax+:} false; then :
28765 $as_echo_n "(cached) " >&6
28766 else
28767 gcc_cv_as_gcn_asm_v3_syntax=no
28768 if test x$gcc_cv_as != x; then
28769 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"' > conftest.s
28770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack -o conftest.o conftest.s >&5'
28771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28772 (eval $ac_try) 2>&5
28773 ac_status=$?
28774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28775 test $ac_status = 0; }; }
28776 then
28777 gcc_cv_as_gcn_asm_v3_syntax=yes
28778 else
28779 echo "configure: failed program was" >&5
28780 cat conftest.s >&5
28782 rm -f conftest.o conftest.s
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v3_syntax" >&5
28786 $as_echo "$gcc_cv_as_gcn_asm_v3_syntax" >&6; }
28787 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28789 $as_echo "#define HAVE_GCN_ASM_V3_SYNTAX 1" >>confdefs.h
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler amdgcn_target v4 syntax" >&5
28794 $as_echo_n "checking assembler for assembler amdgcn_target v4 syntax... " >&6; }
28795 if ${gcc_cv_as_gcn_asm_v4_syntax+:} false; then :
28796 $as_echo_n "(cached) " >&6
28797 else
28798 gcc_cv_as_gcn_asm_v4_syntax=no
28799 if test x$gcc_cv_as != x; then
28800 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"' > conftest.s
28801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack -o conftest.o conftest.s >&5'
28802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28803 (eval $ac_try) 2>&5
28804 ac_status=$?
28805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28806 test $ac_status = 0; }; }
28807 then
28808 gcc_cv_as_gcn_asm_v4_syntax=yes
28809 else
28810 echo "configure: failed program was" >&5
28811 cat conftest.s >&5
28813 rm -f conftest.o conftest.s
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_asm_v4_syntax" >&5
28817 $as_echo "$gcc_cv_as_gcn_asm_v4_syntax" >&6; }
28818 if test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28820 $as_echo "#define HAVE_GCN_ASM_V4_SYNTAX 1" >>confdefs.h
28825 # Some attribute names changed in the move to v4 ...
28826 if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
28827 sramopt="+sram-ecc"
28828 sramattr="+sram-ecc"
28829 xnackattr="+xnack"
28830 elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
28831 sramopt="+sramecc"
28832 sramattr=":sramecc+"
28833 xnackattr=":xnack+"
28834 else
28835 as_fn_error $? "Unrecognised assembler version" "$LINENO" 5
28838 # Test whether the LLVM assembler accepts -mattr=+xnack without any
28839 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
28840 # LLVM 12+ throws a warning for GPUs without support.
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for fiji" >&5
28842 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for fiji... " >&6; }
28843 if ${gcc_cv_as_gcn_xnack_ecc_fiji+:} false; then :
28844 $as_echo_n "(cached) " >&6
28845 else
28846 gcc_cv_as_gcn_xnack_ecc_fiji=no
28847 if test x$gcc_cv_as != x; then
28848 $as_echo '' > conftest.s
28849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28851 (eval $ac_try) 2>&5
28852 ac_status=$?
28853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854 test $ac_status = 0; }; }
28855 then
28856 grep "." conftest.err >&5 \
28857 || gcc_cv_as_gcn_xnack_ecc_fiji=yes
28858 else
28859 echo "configure: failed program was" >&5
28860 cat conftest.s >&5
28862 rm -f conftest.o conftest.s
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_fiji" >&5
28866 $as_echo "$gcc_cv_as_gcn_xnack_ecc_fiji" >&6; }
28867 if test $gcc_cv_as_gcn_xnack_ecc_fiji = yes; then
28869 $as_echo "#define HAVE_GCN_XNACK_FIJI 1" >>confdefs.h
28873 rm -f conftest.err
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx900" >&5
28875 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx900... " >&6; }
28876 if ${gcc_cv_as_gcn_xnack_ecc_gfx900+:} false; then :
28877 $as_echo_n "(cached) " >&6
28878 else
28879 gcc_cv_as_gcn_xnack_ecc_gfx900=no
28880 if test x$gcc_cv_as != x; then
28881 $as_echo '' > conftest.s
28882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28884 (eval $ac_try) 2>&5
28885 ac_status=$?
28886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28887 test $ac_status = 0; }; }
28888 then
28889 grep "." conftest.err >&5 \
28890 || gcc_cv_as_gcn_xnack_ecc_gfx900=yes
28891 else
28892 echo "configure: failed program was" >&5
28893 cat conftest.s >&5
28895 rm -f conftest.o conftest.s
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx900" >&5
28899 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx900" >&6; }
28900 if test $gcc_cv_as_gcn_xnack_ecc_gfx900 = yes; then
28902 $as_echo "#define HAVE_GCN_XNACK_GFX900 1" >>confdefs.h
28906 rm -f conftest.err
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx906" >&5
28908 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx906... " >&6; }
28909 if ${gcc_cv_as_gcn_xnack_ecc_gfx906+:} false; then :
28910 $as_echo_n "(cached) " >&6
28911 else
28912 gcc_cv_as_gcn_xnack_ecc_gfx906=no
28913 if test x$gcc_cv_as != x; then
28914 $as_echo '' > conftest.s
28915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28917 (eval $ac_try) 2>&5
28918 ac_status=$?
28919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28920 test $ac_status = 0; }; }
28921 then
28922 grep "." conftest.err >&5 \
28923 || gcc_cv_as_gcn_xnack_ecc_gfx906=yes
28924 else
28925 echo "configure: failed program was" >&5
28926 cat conftest.s >&5
28928 rm -f conftest.o conftest.s
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx906" >&5
28932 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx906" >&6; }
28933 if test $gcc_cv_as_gcn_xnack_ecc_gfx906 = yes; then
28935 $as_echo "#define HAVE_GCN_XNACK_GFX906 1" >>confdefs.h
28939 rm -f conftest.err
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+xnack for gfx908" >&5
28941 $as_echo_n "checking assembler for assembler accepts -mattr=+xnack for gfx908... " >&6; }
28942 if ${gcc_cv_as_gcn_xnack_ecc_gfx908+:} false; then :
28943 $as_echo_n "(cached) " >&6
28944 else
28945 gcc_cv_as_gcn_xnack_ecc_gfx908=no
28946 if test x$gcc_cv_as != x; then
28947 $as_echo '' > conftest.s
28948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err -o conftest.o conftest.s >&5'
28949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28950 (eval $ac_try) 2>&5
28951 ac_status=$?
28952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28953 test $ac_status = 0; }; }
28954 then
28955 grep "." conftest.err >&5 \
28956 || gcc_cv_as_gcn_xnack_ecc_gfx908=yes
28957 else
28958 echo "configure: failed program was" >&5
28959 cat conftest.s >&5
28961 rm -f conftest.o conftest.s
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_xnack_ecc_gfx908" >&5
28965 $as_echo "$gcc_cv_as_gcn_xnack_ecc_gfx908" >&6; }
28966 if test $gcc_cv_as_gcn_xnack_ecc_gfx908 = yes; then
28968 $as_echo "#define HAVE_GCN_XNACK_GFX908 1" >>confdefs.h
28972 rm -f conftest.err
28974 # Test whether the LLVM assembler accepts -mattr=+sramecc without any
28975 # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
28976 # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
28977 # for GPUs without support.
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for fiji" >&5
28979 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for fiji... " >&6; }
28980 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false; then :
28981 $as_echo_n "(cached) " >&6
28982 else
28983 gcc_cv_as_gcn_sram_ecc_fiji=no
28984 if test x$gcc_cv_as != x; then
28985 $as_echo '' > conftest.s
28986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
28987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28991 test $ac_status = 0; }; }
28992 then
28993 grep "." conftest.err >&5 \
28994 || gcc_cv_as_gcn_sram_ecc_fiji=yes
28995 else
28996 echo "configure: failed program was" >&5
28997 cat conftest.s >&5
28999 rm -f conftest.o conftest.s
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
29003 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
29004 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
29006 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
29010 rm -f conftest.err
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx900" >&5
29012 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx900... " >&6; }
29013 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false; then :
29014 $as_echo_n "(cached) " >&6
29015 else
29016 gcc_cv_as_gcn_sram_ecc_gfx900=no
29017 if test x$gcc_cv_as != x; then
29018 $as_echo '' > conftest.s
29019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29024 test $ac_status = 0; }; }
29025 then
29026 grep "." conftest.err >&5 \
29027 || gcc_cv_as_gcn_sram_ecc_gfx900=yes
29028 else
29029 echo "configure: failed program was" >&5
29030 cat conftest.s >&5
29032 rm -f conftest.o conftest.s
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
29036 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
29037 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
29039 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
29043 rm -f conftest.err
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx906" >&5
29045 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx906... " >&6; }
29046 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false; then :
29047 $as_echo_n "(cached) " >&6
29048 else
29049 gcc_cv_as_gcn_sram_ecc_gfx906=no
29050 if test x$gcc_cv_as != x; then
29051 $as_echo '' > conftest.s
29052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29057 test $ac_status = 0; }; }
29058 then
29059 grep "." conftest.err >&5 \
29060 || gcc_cv_as_gcn_sram_ecc_gfx906=yes
29061 else
29062 echo "configure: failed program was" >&5
29063 cat conftest.s >&5
29065 rm -f conftest.o conftest.s
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
29069 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
29070 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
29072 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
29076 rm -f conftest.err
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=$sramopt for gfx908" >&5
29078 $as_echo_n "checking assembler for assembler accepts -mattr=$sramopt for gfx908... " >&6; }
29079 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false; then :
29080 $as_echo_n "(cached) " >&6
29081 else
29082 gcc_cv_as_gcn_sram_ecc_gfx908=no
29083 if test x$gcc_cv_as != x; then
29084 $as_echo '' > conftest.s
29085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err -o conftest.o conftest.s >&5'
29086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29087 (eval $ac_try) 2>&5
29088 ac_status=$?
29089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29090 test $ac_status = 0; }; }
29091 then
29092 grep "." conftest.err >&5 \
29093 || gcc_cv_as_gcn_sram_ecc_gfx908=yes
29094 else
29095 echo "configure: failed program was" >&5
29096 cat conftest.s >&5
29098 rm -f conftest.o conftest.s
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
29102 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
29103 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
29105 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
29109 rm -f conftest.err
29111 arm*)
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29113 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29114 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29115 $as_echo_n "(cached) " >&6
29116 else
29117 gcc_cv_as_arm_option_extensions=no
29118 if test x$gcc_cv_as != x; then
29119 $as_echo '.text
29120 .thumb
29121 .syntax unified
29122 vmov.f32 s0, s1' > conftest.s
29123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29128 test $ac_status = 0; }; }
29129 then
29130 gcc_cv_as_arm_option_extensions=yes
29131 else
29132 echo "configure: failed program was" >&5
29133 cat conftest.s >&5
29135 rm -f conftest.o conftest.s
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29139 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29140 if test $gcc_cv_as_arm_option_extensions = yes; then
29142 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29146 esac
29148 # ??? Not all targets support dwarf2 debug_line, even within a version
29149 # of gas. Moreover, we need to emit a valid instruction to trigger any
29150 # info to the output file. So, as supported targets are added to gas 2.11,
29151 # add some instruction here to (also) show we expect this might work.
29152 # ??? Once 2.11 is released, probably need to add first known working
29153 # version to the per-target configury.
29154 case "$cpu_type" in
29155 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29156 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29157 | tilegx | tilepro | visium | xstormy16 | xtensa)
29158 insn="nop"
29160 ia64 | s390)
29161 insn="nop 0"
29163 mmix)
29164 insn="swym 0"
29166 esac
29167 if test x"$insn" != x; then
29168 conftest_s="\
29169 .file 1 \"conftest.s\"
29170 .loc 1 3 0
29171 $insn"
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29173 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29174 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29175 $as_echo_n "(cached) " >&6
29176 else
29177 gcc_cv_as_dwarf2_debug_line=no
29178 if test x$gcc_cv_as != x; then
29179 $as_echo "$conftest_s" > conftest.s
29180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29182 (eval $ac_try) 2>&5
29183 ac_status=$?
29184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185 test $ac_status = 0; }; }
29186 then
29187 if test x$gcc_cv_objdump != x \
29188 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29189 | grep debug_line > /dev/null 2>&1; then
29190 gcc_cv_as_dwarf2_debug_line=yes
29191 elif test x$gcc_cv_otool != x \
29192 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29193 | grep debug_line > /dev/null 2>&1; then
29194 gcc_cv_as_dwarf2_debug_line=yes
29196 else
29197 echo "configure: failed program was" >&5
29198 cat conftest.s >&5
29200 rm -f conftest.o conftest.s
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29204 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29208 # The .debug_line file table must be in the exact order that
29209 # we specified the files, since these indices are also used
29210 # by DW_AT_decl_file. Approximate this test by testing if
29211 # the assembler bitches if the same index is assigned twice.
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29213 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29214 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29215 $as_echo_n "(cached) " >&6
29216 else
29217 gcc_cv_as_dwarf2_file_buggy=no
29218 if test x$gcc_cv_as != x; then
29219 $as_echo ' .file 1 "foo.s"
29220 .file 1 "bar.s"' > conftest.s
29221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29223 (eval $ac_try) 2>&5
29224 ac_status=$?
29225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29226 test $ac_status = 0; }; }
29227 then
29228 gcc_cv_as_dwarf2_file_buggy=yes
29229 else
29230 echo "configure: failed program was" >&5
29231 cat conftest.s >&5
29233 rm -f conftest.o conftest.s
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29237 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29241 if test $gcc_cv_as_dwarf2_debug_line = yes \
29242 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29244 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29247 if test $gcc_cv_as_leb128 = yes; then
29248 conftest_s="\
29249 .file 1 \"conftest.s\"
29250 .loc 1 3 0 view .LVU1
29251 $insn
29252 .data
29253 .uleb128 .LVU1
29254 .uleb128 .LVU1
29256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29257 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29258 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29259 $as_echo_n "(cached) " >&6
29260 else
29261 gcc_cv_as_dwarf2_debug_view=no
29262 if test x$gcc_cv_as != x; then
29263 $as_echo "$conftest_s" > conftest.s
29264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29266 (eval $ac_try) 2>&5
29267 ac_status=$?
29268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29269 test $ac_status = 0; }; }
29270 then
29271 gcc_cv_as_dwarf2_debug_view=yes
29272 else
29273 echo "configure: failed program was" >&5
29274 cat conftest.s >&5
29276 rm -f conftest.o conftest.s
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29280 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29281 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29283 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29291 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29292 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29293 $as_echo_n "(cached) " >&6
29294 else
29295 gcc_cv_as_gdwarf2_flag=no
29296 if test x$gcc_cv_as != x; then
29297 $as_echo "$insn" > conftest.s
29298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29300 (eval $ac_try) 2>&5
29301 ac_status=$?
29302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29303 test $ac_status = 0; }; }
29304 then
29305 gcc_cv_as_gdwarf2_flag=yes
29306 else
29307 echo "configure: failed program was" >&5
29308 cat conftest.s >&5
29310 rm -f conftest.o conftest.s
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29314 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29315 if test $gcc_cv_as_gdwarf2_flag = yes; then
29317 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29323 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29324 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29325 $as_echo_n "(cached) " >&6
29326 else
29327 gcc_cv_as_gdwarf_5_flag=no
29328 if test x$gcc_cv_as != x; then
29329 $as_echo "$insn" > conftest.s
29330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29332 (eval $ac_try) 2>&5
29333 ac_status=$?
29334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29335 test $ac_status = 0; }; }
29336 then
29337 if test x$gcc_cv_objdump != x \
29338 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29339 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29340 gcc_cv_as_gdwarf_5_flag=yes;
29342 else
29343 echo "configure: failed program was" >&5
29344 cat conftest.s >&5
29346 rm -f conftest.o conftest.s
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29350 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29351 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29353 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29358 case $target_os in
29359 win32 | pe | cygwin* | mingw32*)
29360 section_flags=\"dr\"
29361 function_type=".def foo; .scl 2; .type 32; .endef"
29362 function_size="";;
29364 section_flags=\"\",%progbits
29365 function_type=".type foo, %function"
29366 function_size=".size foo, .-foo";;
29367 esac
29368 dwarf4_debug_info_size=0x46
29369 dwarf4_high_pc_form=7
29370 dwarf4_debug_aranges_size=0x2c
29371 dwarf4_line_sz=9
29372 for dwarf4_addr_size in 8 4; do
29373 conftest_s="\
29374 .file \"a.c\"
29375 .text
29376 .Ltext0:
29377 .p2align 4
29378 .globl foo
29379 $function_type
29380 foo:
29381 .LFB0:
29382 .LM1:
29383 $insn
29384 .LM2:
29385 .LFE0:
29386 $function_size
29387 .Letext0:
29388 .section .debug_info,$section_flags
29389 .Ldebug_info0:
29390 .4byte $dwarf4_debug_info_size
29391 .2byte 0x4
29392 .4byte .Ldebug_abbrev0
29393 .byte 0x$dwarf4_addr_size
29394 .byte 0x1
29395 .ascii \"GNU C17\\0\"
29396 .byte 0xc
29397 .ascii \"a.c\\0\"
29398 .ascii \"/\\0\"
29399 .${dwarf4_addr_size}byte .Ltext0
29400 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29401 .4byte .Ldebug_line0
29402 .byte 0x2
29403 .ascii \"foo\\0\"
29404 .byte 0x1
29405 .byte 0x2
29406 .byte 0x1
29407 .${dwarf4_addr_size}byte .LFB0
29408 .${dwarf4_addr_size}byte .LFE0-.LFB0
29409 .byte 0x1
29410 .byte 0x9c
29411 .byte 0
29412 .section .debug_abbrev,$section_flags
29413 .Ldebug_abbrev0:
29414 .byte 0x1
29415 .byte 0x11
29416 .byte 0x1
29417 .byte 0x25
29418 .byte 0x8
29419 .byte 0x13
29420 .byte 0xb
29421 .byte 0x3
29422 .byte 0x8
29423 .byte 0x1b
29424 .byte 0x8
29425 .byte 0x11
29426 .byte 0x1
29427 .byte 0x12
29428 .byte 0x$dwarf4_high_pc_form
29429 .byte 0x10
29430 .byte 0x17
29431 .byte 0
29432 .byte 0
29433 .byte 0x2
29434 .byte 0x2e
29435 .byte 0
29436 .byte 0x3f
29437 .byte 0x19
29438 .byte 0x3
29439 .byte 0x8
29440 .byte 0x3a
29441 .byte 0xb
29442 .byte 0x3b
29443 .byte 0xb
29444 .byte 0x39
29445 .byte 0xb
29446 .byte 0x11
29447 .byte 0x1
29448 .byte 0x12
29449 .byte 0x$dwarf4_high_pc_form
29450 .byte 0x40
29451 .byte 0x18
29452 .byte 0
29453 .byte 0
29454 .byte 0
29455 .section .debug_aranges,$section_flags
29456 .4byte $dwarf4_debug_aranges_size
29457 .2byte 0x2
29458 .4byte .Ldebug_info0
29459 .byte 0x8
29460 .byte 0
29461 .2byte 0
29462 .2byte 0
29463 .${dwarf4_addr_size}byte .Ltext0
29464 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29465 .${dwarf4_addr_size}byte 0
29466 .${dwarf4_addr_size}byte 0
29467 .section .debug_line,$section_flags
29468 .Ldebug_line0:
29469 .4byte .LELT0-.LSLT0
29470 .LSLT0:
29471 .2byte 0x4
29472 .4byte .LELTP0-.LASLTP0
29473 .LASLTP0:
29474 .byte 0x1
29475 .byte 0x1
29476 .byte 0x1
29477 .byte 0xf6
29478 .byte 0xf2
29479 .byte 0xd
29480 .byte 0
29481 .byte 0x1
29482 .byte 0x1
29483 .byte 0x1
29484 .byte 0x1
29485 .byte 0
29486 .byte 0
29487 .byte 0
29488 .byte 0x1
29489 .byte 0
29490 .byte 0
29491 .byte 0x1
29492 .byte 0
29493 .ascii \"a.c\\0\"
29494 .byte 0
29495 .byte 0
29496 .byte 0
29497 .byte 0
29498 .LELTP0:
29499 .byte 0
29500 .byte 0x$dwarf4_line_sz
29501 .byte 0x2
29502 .${dwarf4_addr_size}byte .LM1
29503 .byte 0x18
29504 .byte 0x5
29505 .byte 0x1
29506 .byte 0
29507 .byte 0x$dwarf4_line_sz
29508 .byte 0x2
29509 .${dwarf4_addr_size}byte .LM2
29510 .byte 0x1
29511 .byte 0x5
29512 .byte 0x1
29513 .byte 0
29514 .byte 0x$dwarf4_line_sz
29515 .byte 0x2
29516 .${dwarf4_addr_size}byte .Letext0
29517 .byte 0
29518 .byte 0x1
29519 .byte 0x1
29520 .LELT0:
29521 .section .debug_str,$section_flags
29522 .ident \"GCC\"
29524 dwarf4_success=no
29525 if test $dwarf4_addr_size = 4; then
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29527 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29528 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29529 $as_echo_n "(cached) " >&6
29530 else
29531 gcc_cv_as_debug_line_32_flag=no
29532 if test x$gcc_cv_as != x; then
29533 $as_echo "$conftest_s" > conftest.s
29534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29536 (eval $ac_try) 2>&5
29537 ac_status=$?
29538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29539 test $ac_status = 0; }; }
29540 then
29541 gcc_cv_as_debug_line_32_flag=yes
29542 else
29543 echo "configure: failed program was" >&5
29544 cat conftest.s >&5
29546 rm -f conftest.o conftest.s
29549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29550 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29551 if test $gcc_cv_as_debug_line_32_flag = yes; then
29552 dwarf4_success=yes
29555 else
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29557 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29558 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29559 $as_echo_n "(cached) " >&6
29560 else
29561 gcc_cv_as_debug_line_64_flag=no
29562 if test x$gcc_cv_as != x; then
29563 $as_echo "$conftest_s" > conftest.s
29564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29566 (eval $ac_try) 2>&5
29567 ac_status=$?
29568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29569 test $ac_status = 0; }; }
29570 then
29571 gcc_cv_as_debug_line_64_flag=yes
29572 else
29573 echo "configure: failed program was" >&5
29574 cat conftest.s >&5
29576 rm -f conftest.o conftest.s
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29580 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29581 if test $gcc_cv_as_debug_line_64_flag = yes; then
29582 dwarf4_success=yes
29586 if test $dwarf4_success = yes; then
29587 dwarf4_success=no
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29589 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29590 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29591 $as_echo_n "(cached) " >&6
29592 else
29593 gcc_cv_as_dwarf_4_debug_line_flag=no
29594 if test x$gcc_cv_as != x; then
29595 $as_echo "$conftest_s" > conftest.s
29596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29598 (eval $ac_try) 2>&5
29599 ac_status=$?
29600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29601 test $ac_status = 0; }; }
29602 then
29603 gcc_cv_as_dwarf_4_debug_line_flag=yes
29604 else
29605 echo "configure: failed program was" >&5
29606 cat conftest.s >&5
29608 rm -f conftest.o conftest.s
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29612 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29613 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29614 dwarf4_success=yes
29617 break
29619 dwarf4_debug_info_size=0x36
29620 dwarf4_high_pc_form=6
29621 dwarf4_debug_aranges_size=0x1c
29622 dwarf4_line_sz=5
29623 done
29625 if test $dwarf4_success = yes; then
29626 conftest_s="\
29627 .file \"foo.c\"
29628 .text
29629 bar:
29630 #APP
29631 # 82 \"xxx.h\" 1
29632 $insn
29633 # 0 \"\" 2
29634 #NO_APP
29635 $insn
29636 foo:
29637 .file 1 \"foo.c\"
29638 $insn
29639 .file 2 \"foo.h\"
29642 dwarf4_success=no
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29644 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29645 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29646 $as_echo_n "(cached) " >&6
29647 else
29648 gcc_cv_as_dwarf_4_app_flag=no
29649 if test x$gcc_cv_as != x; then
29650 $as_echo "$conftest_s" > conftest.s
29651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29656 test $ac_status = 0; }; }
29657 then
29658 gcc_cv_as_dwarf_4_app_flag=yes
29659 else
29660 echo "configure: failed program was" >&5
29661 cat conftest.s >&5
29663 rm -f conftest.o conftest.s
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29667 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29668 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29669 dwarf4_success=yes
29674 if test $dwarf4_success = yes; then
29675 conftest_s="\
29676 .text
29677 .globl foo
29678 $function_type
29679 foo:
29680 $insn
29681 $function_size
29682 .file 1 \"foo.c\"
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29685 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29686 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29687 $as_echo_n "(cached) " >&6
29688 else
29689 gcc_cv_as_working_gdwarf_n_flag=no
29690 if test x$gcc_cv_as != x; then
29691 $as_echo "$conftest_s" > conftest.s
29692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29694 (eval $ac_try) 2>&5
29695 ac_status=$?
29696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29697 test $ac_status = 0; }; }
29698 then
29699 if test x$gcc_cv_objdump != x \
29700 && $gcc_cv_objdump -W conftest.o 2>&1 \
29701 | grep conftest.s > /dev/null 2>&1; then
29702 gcc_cv_as_working_gdwarf_n_flag=no
29703 else
29704 gcc_cv_as_working_gdwarf_n_flag=yes
29706 else
29707 echo "configure: failed program was" >&5
29708 cat conftest.s >&5
29710 rm -f conftest.o conftest.s
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29714 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29717 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29719 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29725 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29726 if ${gcc_cv_as_gstabs_flag+:} false; then :
29727 $as_echo_n "(cached) " >&6
29728 else
29729 gcc_cv_as_gstabs_flag=no
29730 if test x$gcc_cv_as != x; then
29731 $as_echo "$insn" > conftest.s
29732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29734 (eval $ac_try) 2>&5
29735 ac_status=$?
29736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29737 test $ac_status = 0; }; }
29738 then
29739 gcc_cv_as_gstabs_flag=yes
29740 else
29741 echo "configure: failed program was" >&5
29742 cat conftest.s >&5
29744 rm -f conftest.o conftest.s
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29748 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29749 if test $gcc_cv_as_gstabs_flag = yes; then
29751 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29757 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29758 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29759 $as_echo_n "(cached) " >&6
29760 else
29761 gcc_cv_as_debug_prefix_map_flag=no
29762 if test x$gcc_cv_as != x; then
29763 $as_echo "$insn" > conftest.s
29764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29766 (eval $ac_try) 2>&5
29767 ac_status=$?
29768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29769 test $ac_status = 0; }; }
29770 then
29771 gcc_cv_as_debug_prefix_map_flag=yes
29772 else
29773 echo "configure: failed program was" >&5
29774 cat conftest.s >&5
29776 rm -f conftest.o conftest.s
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29780 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29781 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29783 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29790 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29791 if ${gcc_cv_as_compress_debug+:} false; then :
29792 $as_echo_n "(cached) " >&6
29793 else
29794 gcc_cv_as_compress_debug=no
29795 if test x$gcc_cv_as != x; then
29796 $as_echo '' > conftest.s
29797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29799 (eval $ac_try) 2>&5
29800 ac_status=$?
29801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29802 test $ac_status = 0; }; }
29803 then
29804 # gas compiled without zlib cannot compress debug sections and warns
29805 # about it, but still exits successfully. So check for this, too.
29806 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29807 then
29808 gcc_cv_as_compress_debug=0
29809 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29810 # defaulting to the ELF gABI format.
29811 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29812 then
29813 gcc_cv_as_compress_debug=2
29814 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29815 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29816 # Before binutils 2.26, gas only supported --compress-debug-options and
29817 # emitted the traditional GNU format.
29818 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29819 then
29820 gcc_cv_as_compress_debug=1
29821 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29822 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29823 else
29824 gcc_cv_as_compress_debug=0
29826 else
29827 echo "configure: failed program was" >&5
29828 cat conftest.s >&5
29830 rm -f conftest.o conftest.s
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29834 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29838 cat >>confdefs.h <<_ACEOF
29839 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29840 _ACEOF
29843 cat >>confdefs.h <<_ACEOF
29844 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29845 _ACEOF
29848 cat >>confdefs.h <<_ACEOF
29849 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29850 _ACEOF
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29854 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29855 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29856 $as_echo_n "(cached) " >&6
29857 else
29858 gcc_cv_as_lcomm_with_alignment=no
29859 if test x$gcc_cv_as != x; then
29860 $as_echo '.lcomm bar,4,16' > conftest.s
29861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29863 (eval $ac_try) 2>&5
29864 ac_status=$?
29865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29866 test $ac_status = 0; }; }
29867 then
29868 gcc_cv_as_lcomm_with_alignment=yes
29869 else
29870 echo "configure: failed program was" >&5
29871 cat conftest.s >&5
29873 rm -f conftest.o conftest.s
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29877 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29878 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29880 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29885 if test x$with_sysroot = x && test x$host = x$target \
29886 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29887 && test "$prefix" != "NONE"; then
29889 cat >>confdefs.h <<_ACEOF
29890 #define PREFIX_INCLUDE_DIR "$prefix/include"
29891 _ACEOF
29895 # Determine the version of glibc, if any, used on the target.
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29897 $as_echo_n "checking for target glibc version... " >&6; }
29899 # Check whether --with-glibc-version was given.
29900 if test "${with_glibc_version+set}" = set; then :
29901 withval=$with_glibc_version;
29902 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29903 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29904 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29905 else
29906 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29908 else
29910 glibc_version_major=0
29911 glibc_version_minor=0
29912 if test -f $target_header_dir/features.h \
29913 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29914 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29915 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29916 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29921 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29923 cat >>confdefs.h <<_ACEOF
29924 #define TARGET_GLIBC_MAJOR $glibc_version_major
29925 _ACEOF
29928 cat >>confdefs.h <<_ACEOF
29929 #define TARGET_GLIBC_MINOR $glibc_version_minor
29930 _ACEOF
29933 # Check whether --enable-gnu-unique-object was given.
29934 if test "${enable_gnu_unique_object+set}" = set; then :
29935 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29936 yes | no) ;;
29937 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29938 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29939 esac
29940 else
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29942 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29943 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29944 $as_echo_n "(cached) " >&6
29945 else
29946 gcc_cv_as_gnu_unique_object=no
29947 if test x$gcc_cv_as != x; then
29948 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29951 (eval $ac_try) 2>&5
29952 ac_status=$?
29953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29954 test $ac_status = 0; }; }
29955 then
29956 gcc_cv_as_gnu_unique_object=yes
29957 else
29958 echo "configure: failed program was" >&5
29959 cat conftest.s >&5
29961 rm -f conftest.o conftest.s
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29965 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29966 if test $gcc_cv_as_gnu_unique_object = yes; then
29967 # We need to unquote above to to use the definition from config.gcc.
29968 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29970 if test $glibc_version_major -gt 2 \
29971 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29972 enable_gnu_unique_object=yes
29979 if test x$enable_gnu_unique_object = xyes; then
29981 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29986 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29987 if ${gcc_cv_as_line_zero+:} false; then :
29988 $as_echo_n "(cached) " >&6
29989 else
29990 gcc_cv_as_line_zero=no
29991 if test "x$gcc_cv_as" != x; then
29992 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29993 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29995 (eval $ac_try) 2>&5
29996 ac_status=$?
29997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29998 test $ac_status = 0; }; } &&
29999 test "x`cat conftest.out`" = x
30000 then
30001 gcc_cv_as_line_zero=yes
30002 else
30003 echo "configure: failed program was" >&5
30004 cat conftest.s >&5
30005 echo "configure: error output was" >&5
30006 cat conftest.out >&5
30008 rm -f conftest.o conftest.s conftest.out
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30012 $as_echo "$gcc_cv_as_line_zero" >&6; }
30013 if test "x$gcc_cv_as_line_zero" = xyes; then
30015 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30020 $as_echo_n "checking support for thin archives... " >&6; }
30021 thin_archive_support=no
30022 echo 'int main (void) { return 0; }' > conftest.c
30023 if ($AR --version | sed 1q | grep "GNU ar" \
30024 && $CC $CFLAGS -c conftest.c \
30025 && $AR rcT conftest.a conftest.o \
30026 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30027 thin_archive_support=yes
30029 rm -f conftest.c conftest.o conftest.a conftest
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30031 $as_echo "$thin_archive_support" >&6; }
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30035 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30036 gcc_cv_ld_eh_frame_hdr=no
30037 if test $in_tree_ld = yes ; then
30038 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 \
30039 && test $in_tree_ld_is_elf = yes; then
30040 gcc_cv_ld_eh_frame_hdr=yes
30042 elif test x$gcc_cv_ld != x; then
30043 if echo "$ld_ver" | grep GNU > /dev/null; then
30044 # Check if linker supports --eh-frame-hdr option
30045 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30046 gcc_cv_ld_eh_frame_hdr=yes
30048 else
30049 case "$target" in
30050 *-*-solaris2*)
30051 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30052 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30053 gcc_cv_ld_eh_frame_hdr=yes
30056 esac
30060 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30062 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30066 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30069 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30070 gcc_cv_ld_eh_frame_ciev3=no
30071 if test $in_tree_ld = yes ; then
30072 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 \
30073 && test $in_tree_ld_is_elf = yes; then
30074 gcc_cv_ld_eh_frame_ciev3=yes
30076 elif test x$gcc_cv_ld != x; then
30077 if echo "$ld_ver" | grep GNU > /dev/null; then
30078 gcc_cv_ld_eh_frame_ciev3=yes
30079 if test 0"$ld_date" -lt 20040513; then
30080 if test -n "$ld_date"; then
30081 # If there was date string, but was earlier than 2004-05-13, fail
30082 gcc_cv_ld_eh_frame_ciev3=no
30083 elif test "$ld_vers_major" -lt 2; then
30084 gcc_cv_ld_eh_frame_ciev3=no
30085 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30086 gcc_cv_ld_eh_frame_ciev3=no
30089 else
30090 case "$target" in
30091 *-*-solaris2*)
30092 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30093 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30094 gcc_cv_ld_eh_frame_ciev3=yes
30097 esac
30101 cat >>confdefs.h <<_ACEOF
30102 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30103 _ACEOF
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30106 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30109 $as_echo_n "checking linker position independent executable support... " >&6; }
30110 gcc_cv_ld_pie=no
30111 if test $in_tree_ld = yes ; then
30112 case "$target" in
30113 # Full PIE support on Solaris was only introduced in gld 2.26.
30114 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30115 *) gcc_gld_pie_min_version=15 ;;
30116 esac
30117 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 \
30118 && test $in_tree_ld_is_elf = yes; then
30119 gcc_cv_ld_pie=yes
30121 elif test x$gcc_cv_ld != x; then
30122 # Check if linker supports -pie option
30123 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30124 gcc_cv_ld_pie=yes
30125 case "$target" in
30126 *-*-solaris2*)
30127 if echo "$ld_ver" | grep GNU > /dev/null \
30128 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30129 gcc_cv_ld_pie=no
30132 esac
30133 else
30134 case "$target" in
30135 *-*-solaris2.1[1-9]*)
30136 # Solaris 11.3 added PIE support.
30137 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30138 gcc_cv_ld_pie=yes
30141 esac
30144 if test x"$gcc_cv_ld_pie" = xyes; then
30146 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30150 $as_echo "$gcc_cv_ld_pie" >&6; }
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30153 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30154 gcc_cv_ld_pie_copyreloc=no
30155 if test $gcc_cv_ld_pie = yes ; then
30156 if test $in_tree_ld = yes ; then
30157 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
30158 gcc_cv_ld_pie_copyreloc=yes
30160 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30161 # Check if linker supports -pie option with copy reloc
30162 case "$target" in
30163 i?86-*-linux* | x86_64-*-linux*)
30164 cat > conftest1.s <<EOF
30165 .globl a_glob
30166 .data
30167 .type a_glob, @object
30168 .size a_glob, 4
30169 a_glob:
30170 .long 2
30172 cat > conftest2.s <<EOF
30173 .text
30174 .globl main
30175 .type main, @function
30176 main:
30177 movl %eax, a_glob(%rip)
30178 .size main, .-main
30179 .globl ptr
30180 .section .data.rel,"aw",@progbits
30181 .type ptr, @object
30182 ptr:
30183 .quad a_glob
30185 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30186 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30187 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30188 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30189 gcc_cv_ld_pie_copyreloc=yes
30191 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30193 esac
30197 cat >>confdefs.h <<_ACEOF
30198 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30199 _ACEOF
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30202 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30205 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30206 gcc_cv_ld_eh_gc_sections=no
30207 if test $in_tree_ld = yes ; then
30208 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 \
30209 && test $in_tree_ld_is_elf = yes; then
30210 gcc_cv_ld_eh_gc_sections=yes
30212 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30213 cat > conftest.s <<EOF
30214 .section .text
30215 .globl _start
30216 .type _start, @function
30217 _start:
30218 .long foo
30219 .size _start, .-_start
30220 .section .text.foo,"ax",@progbits
30221 .type foo, @function
30222 foo:
30223 .long 0
30224 .size foo, .-foo
30225 .section .gcc_except_table.foo,"a",@progbits
30226 .L0:
30227 .long 0
30228 .section .eh_frame,"a",@progbits
30229 .long .L0
30231 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30232 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30233 | grep "gc-sections option ignored" > /dev/null; then
30234 gcc_cv_ld_eh_gc_sections=no
30235 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30236 | grep gcc_except_table > /dev/null; then
30237 gcc_cv_ld_eh_gc_sections=yes
30238 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30239 if test x$gcc_cv_as_comdat_group != xyes; then
30240 gcc_cv_ld_eh_gc_sections=no
30241 cat > conftest.s <<EOF
30242 .section .text
30243 .globl _start
30244 .type _start, @function
30245 _start:
30246 .long foo
30247 .size _start, .-_start
30248 .section .gnu.linkonce.t.foo,"ax",@progbits
30249 .type foo, @function
30250 foo:
30251 .long 0
30252 .size foo, .-foo
30253 .section .gcc_except_table.foo,"a",@progbits
30254 .L0:
30255 .long 0
30256 .section .eh_frame,"a",@progbits
30257 .long .L0
30259 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30260 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30261 | grep "gc-sections option ignored" > /dev/null; then
30262 gcc_cv_ld_eh_gc_sections=no
30263 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30264 | grep gcc_except_table > /dev/null; then
30265 gcc_cv_ld_eh_gc_sections=yes
30271 rm -f conftest.s conftest.o conftest
30273 case "$target" in
30274 hppa*-*-linux*)
30275 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30276 gcc_cv_ld_eh_gc_sections=no
30278 esac
30279 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30281 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30285 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30288 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30289 gcc_cv_ld_eh_gc_sections_bug=no
30290 if test $in_tree_ld = yes ; then
30291 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 \
30292 && test $in_tree_ld_is_elf = yes; then
30293 gcc_cv_ld_eh_gc_sections_bug=yes
30295 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
30296 gcc_cv_ld_eh_gc_sections_bug=yes
30297 cat > conftest.s <<EOF
30298 .section .text
30299 .globl _start
30300 .type _start, @function
30301 _start:
30302 .long foo
30303 .size _start, .-_start
30304 .section .text.startup.foo,"ax",@progbits
30305 .type foo, @function
30306 foo:
30307 .long 0
30308 .size foo, .-foo
30309 .section .gcc_except_table.foo,"a",@progbits
30310 .L0:
30311 .long 0
30312 .section .eh_frame,"a",@progbits
30313 .long .L0
30315 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30316 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30317 | grep "gc-sections option ignored" > /dev/null; then
30319 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30320 | grep gcc_except_table > /dev/null; then
30321 gcc_cv_ld_eh_gc_sections_bug=no
30324 rm -f conftest.s conftest.o conftest
30326 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30328 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30332 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30335 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30336 # gold/gld support compressed debug sections since binutils 2.19/2.21
30337 # In binutils 2.26, gld gained support for the ELF gABI format.
30338 if test $in_tree_ld = yes ; then
30339 gcc_cv_ld_compress_debug=0
30340 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30341 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30342 gcc_cv_ld_compress_debug=2
30343 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30344 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30345 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30346 gcc_cv_ld_compress_debug=3
30347 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30348 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30349 && test $in_tree_ld_is_elf = yes; then
30350 gcc_cv_ld_compress_debug=1
30352 elif echo "$ld_ver" | grep GNU > /dev/null; then
30353 if test "$ld_vers_major" -lt 2 \
30354 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30355 gcc_cv_ld_compress_debug=0
30356 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30357 gcc_cv_ld_compress_debug=1
30358 else
30359 gcc_cv_ld_compress_debug=3
30360 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30362 if test $ld_is_gold = yes; then
30363 gcc_cv_ld_compress_debug=2
30364 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30366 else
30367 case "${target}" in
30368 *-*-solaris2*)
30369 # Introduced in Solaris 11.2.
30370 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30371 gcc_cv_ld_compress_debug=3
30372 gcc_cv_ld_compress_debug_option="-z compress-sections"
30373 else
30374 gcc_cv_ld_compress_debug=0
30378 # Assume linkers other than GNU ld don't support compessed debug
30379 # sections.
30380 gcc_cv_ld_compress_debug=0
30382 esac
30385 cat >>confdefs.h <<_ACEOF
30386 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30387 _ACEOF
30390 cat >>confdefs.h <<_ACEOF
30391 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30392 _ACEOF
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30395 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30397 if test x"$ld64_flag" = x"yes"; then
30399 # Set defaults for possibly untestable items.
30400 gcc_cv_ld64_export_dynamic=0
30402 if test "$build" = "$host"; then
30403 darwin_try_test=1
30404 else
30405 darwin_try_test=0
30408 # On Darwin, because of FAT library support, it is often possible to execute
30409 # exes from compatible archs even when the host differs from the build system.
30410 case "$build","$host" in
30411 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30412 darwin_try_test=1;;
30413 *) ;;
30414 esac
30416 # If the configurer specified a minimum ld64 version to be supported, then use
30417 # that to determine feature support.
30418 if test x"${gcc_cv_ld64_version}" != x; then
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30420 $as_echo_n "checking ld64 specified version... " >&6; }
30421 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30423 $as_echo "$gcc_cv_ld64_major" >&6; }
30424 if test "$gcc_cv_ld64_major" -ge 236; then
30425 gcc_cv_ld64_export_dynamic=1
30427 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30428 # If the version was not specified, try to find it.
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30430 $as_echo_n "checking linker version... " >&6; }
30431 if test x"${gcc_cv_ld64_version}" = x; then
30432 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30435 $as_echo "$gcc_cv_ld64_version" >&6; }
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30438 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30439 gcc_cv_ld64_export_dynamic=1
30440 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30441 gcc_cv_ld64_export_dynamic=0
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30444 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30447 if test x"${gcc_cv_ld64_version}" != x; then
30449 cat >>confdefs.h <<_ACEOF
30450 #define LD64_VERSION "${gcc_cv_ld64_version}"
30451 _ACEOF
30456 cat >>confdefs.h <<_ACEOF
30457 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30458 _ACEOF
30462 if test x"$dsymutil_flag" = x"yes"; then
30464 # If the user specified a dsymutil path, then we will already have the
30465 # version string, otherwise, pick it up.
30466 if test x"$gcc_cv_dsymutil" = x; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30468 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30469 dsymutil_vers="tool unspecified"
30470 elif test x"$dsymutil_vers" = x; then
30471 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30474 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30476 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30477 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30478 dsymutil_kind=DWARFUTILS
30479 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30480 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30481 dsymutil_kind=CLANG
30482 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30483 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30484 dsymutil_kind=LLVM
30485 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30486 else
30487 dsymutil_kind=UNKNOWN
30488 dsymutil_vers="0.0"
30490 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30491 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30492 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30493 if test x"${dsymutil_minor}" = x; then
30494 dsymutil_minor=0
30496 if test x"${dsymutil_tiny}" = x; then
30497 dsymutil_tiny=0
30500 cat >>confdefs.h <<_ACEOF
30501 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30502 _ACEOF
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30505 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30508 case $target_os in
30509 win32 | pe | cygwin* | mingw32*)
30510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30511 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30512 gcc_cv_ld_broken_pe_dwarf5=yes
30513 if test $in_tree_ld = yes ; then
30514 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30515 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30516 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30517 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30518 gcc_cv_ld_broken_pe_dwarf5=no
30520 else
30521 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30522 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30523 gcc_cv_ld_broken_pe_dwarf5=no
30526 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30528 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30532 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30535 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30536 gcc_cv_ld_disable_dynamicbase=no
30537 if test $in_tree_ld = yes; then
30538 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 \
30539 gcc_cv_ld_disable_dynamicbase=yes
30541 else
30542 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30543 gcc_cv_ld_disable_dynamicbase=yes
30546 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30548 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30552 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30554 esac
30556 # --------
30557 # UNSORTED
30558 # --------
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30561 $as_echo_n "checking linker --as-needed support... " >&6; }
30562 if ${gcc_cv_ld_as_needed+:} false; then :
30563 $as_echo_n "(cached) " >&6
30564 else
30565 gcc_cv_ld_as_needed=no
30566 gcc_cv_ld_as_needed_option='--as-needed'
30567 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30568 if test $in_tree_ld = yes ; then
30569 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 \
30570 && test $in_tree_ld_is_elf = yes; then
30571 gcc_cv_ld_as_needed=yes
30572 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30573 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30574 gcc_cv_ld_no_as_needed_option='--pop-state'
30577 elif test x$gcc_cv_ld != x; then
30578 # Check if linker supports --as-needed and --no-as-needed options
30579 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30580 gcc_cv_ld_as_needed=yes
30581 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30582 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30583 && echo "$ld_ver" | grep GNU > /dev/null \
30584 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30585 # Use these options only when both ld.bfd and ld.gold support
30586 # --push-state/--pop-state, which unfortunately wasn't added
30587 # at the same time.
30588 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30589 gcc_cv_ld_no_as_needed_option='--pop-state'
30592 case "$target:$gnu_ld" in
30593 *-*-solaris2*:no)
30594 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30595 # forms.
30596 gcc_cv_ld_as_needed=yes
30597 gcc_cv_ld_as_needed_option="-z ignore"
30598 gcc_cv_ld_no_as_needed_option="-z record"
30600 esac
30602 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30603 # dl_iterate_phdr, i.e. since Solaris 11.
30604 case "$target" in
30605 *-*-solaris2.1[1-9]*)
30606 case "$target" in
30607 i?86-*-* | x86_64-*-*)
30608 if echo "$ld_ver" | grep GNU > /dev/null; then
30609 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30610 gcc_cv_ld_as_needed=no
30613 esac
30615 *-*-solaris2*)
30616 gcc_cv_ld_as_needed=no
30618 esac
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30622 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30623 if test x"$gcc_cv_ld_as_needed" = xyes; then
30625 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30628 cat >>confdefs.h <<_ACEOF
30629 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30630 _ACEOF
30633 cat >>confdefs.h <<_ACEOF
30634 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30635 _ACEOF
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30640 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30641 saved_LDFLAGS="$LDFLAGS"
30642 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30643 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30645 /* end confdefs.h. */
30646 int main(void) {return 0;}
30647 _ACEOF
30648 if ac_fn_cxx_try_link "$LINENO"; then :
30649 gcc_cv_ld_clearcap=yes; break
30650 else
30651 gcc_cv_ld_clearcap=no
30653 rm -f core conftest.err conftest.$ac_objext \
30654 conftest$ac_exeext conftest.$ac_ext
30655 done
30656 LDFLAGS="$saved_LDFLAGS"
30657 if test "x$gcc_cv_ld_clearcap" = xyes; then
30659 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30661 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30665 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30667 case "$target" in
30668 powerpc*-*-*)
30669 case "$target" in
30670 *le-*-linux*)
30671 emul_name="-melf32lppc"
30674 emul_name="-melf32ppc"
30676 esac
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30678 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30679 if ${gcc_cv_ld_ppc_attr+:} false; then :
30680 $as_echo_n "(cached) " >&6
30681 else
30682 gcc_cv_ld_ppc_attr=no
30683 if test x"$ld_is_gold" = xyes; then
30684 gcc_cv_ld_ppc_attr=yes
30685 elif test $in_tree_ld = yes ; then
30686 if test "$gcc_cv_gld_major_version" -eq 2 \
30687 -a "$gcc_cv_gld_minor_version" -ge 28 \
30688 -o "$gcc_cv_gld_major_version" -gt 2; then
30689 gcc_cv_ld_ppc_attr=yes
30691 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30692 # check that merging the long double .gnu_attribute doesn't warn
30693 cat > conftest1.s <<EOF
30694 .gnu_attribute 4,1
30696 cat > conftest2.s <<EOF
30697 .gnu_attribute 4,9
30699 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30700 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30701 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30702 && test ! -s conftest.err; then
30703 gcc_cv_ld_ppc_attr=yes
30705 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30710 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30711 if test x$gcc_cv_ld_ppc_attr = xyes; then
30713 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30717 esac
30719 case "$target:$tm_file" in
30720 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30721 case "$target" in
30722 *le-*-linux*)
30723 emul_name="-melf64lppc"
30725 *-*-linux*)
30726 emul_name="-melf64ppc"
30728 *le-*-freebsd*)
30729 emul_name="-melf64lppc_fbsd"
30731 *-*-freebsd*)
30732 emul_name="-melf64ppc_fbsd"
30734 esac
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30736 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30737 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30738 $as_echo_n "(cached) " >&6
30739 else
30740 gcc_cv_ld_no_dot_syms=no
30741 if test x"$ld_is_gold" = xyes; then
30742 gcc_cv_ld_no_dot_syms=yes
30743 elif test $in_tree_ld = yes ; then
30744 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
30745 gcc_cv_ld_no_dot_syms=yes
30747 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30748 cat > conftest1.s <<EOF
30749 .text
30750 bl .foo
30752 cat > conftest2.s <<EOF
30753 .section ".opd","aw"
30754 .align 3
30755 .globl foo
30756 .type foo,@function
30757 foo:
30758 .quad .LEfoo,.TOC.@tocbase,0
30759 .text
30760 .LEfoo:
30762 .size foo,.-.LEfoo
30764 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30765 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30766 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30767 gcc_cv_ld_no_dot_syms=yes
30769 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30774 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30775 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30777 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30782 $as_echo_n "checking linker large toc support... " >&6; }
30783 if ${gcc_cv_ld_large_toc+:} false; then :
30784 $as_echo_n "(cached) " >&6
30785 else
30786 gcc_cv_ld_large_toc=no
30787 if test x"$ld_is_gold" = xyes; then
30788 gcc_cv_ld_large_toc=yes
30789 elif test $in_tree_ld = yes ; then
30790 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
30791 gcc_cv_ld_large_toc=yes
30793 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30794 cat > conftest.s <<EOF
30795 .section ".tbss","awT",@nobits
30796 .align 3
30797 ie0: .space 8
30798 .global _start
30799 .text
30800 _start:
30801 addis 9,13,ie0@got@tprel@ha
30802 ld 9,ie0@got@tprel@l(9)
30804 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30805 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30806 gcc_cv_ld_large_toc=yes
30808 rm -f conftest conftest.o conftest.s
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30813 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30814 if test x"$gcc_cv_ld_large_toc" = xyes; then
30816 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30821 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30822 if ${gcc_cv_ld_toc_align+:} false; then :
30823 $as_echo_n "(cached) " >&6
30824 else
30825 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30826 cat > conftest.s <<EOF
30827 .global _start
30828 .text
30829 _start:
30830 addis 9,2,x@got@ha
30831 .section .data.rel.ro,"aw",@progbits
30832 .p2align 16
30833 .space 32768
30834 x: .quad .TOC.
30836 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30837 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30838 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)) }'`
30840 rm -f conftest conftest.o conftest.s
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30845 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30846 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30848 cat >>confdefs.h <<_ACEOF
30849 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30850 _ACEOF
30854 esac
30856 case "$target" in
30857 *-*-aix*)
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30859 $as_echo_n "checking linker large toc support... " >&6; }
30860 if ${gcc_cv_ld_large_toc+:} false; then :
30861 $as_echo_n "(cached) " >&6
30862 else
30863 gcc_cv_ld_large_toc=no
30864 if test x$gcc_cv_as != x ; then
30865 cat > conftest.s <<EOF
30866 .toc
30867 LC..1:
30868 .tc a[TC],a[RW]
30869 .extern a[RW]
30870 .csect .text[PR]
30871 .largetoctest:
30872 addis 9,LC..1@u(2)
30873 ld 3,LC..1@l(9)
30875 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30876 gcc_cv_ld_large_toc=yes
30878 rm -f conftest conftest.o conftest.s
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30883 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30884 if test x"$gcc_cv_ld_large_toc" = xyes; then
30886 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30890 esac
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30893 $as_echo_n "checking linker --build-id support... " >&6; }
30894 if ${gcc_cv_ld_buildid+:} false; then :
30895 $as_echo_n "(cached) " >&6
30896 else
30897 gcc_cv_ld_buildid=no
30898 if test $in_tree_ld = yes ; then
30899 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30900 "$gcc_cv_gld_minor_version" -ge 18 -o \
30901 "$gcc_cv_gld_major_version" -gt 2 \
30902 && test $in_tree_ld_is_elf = yes; then
30903 gcc_cv_ld_buildid=yes
30905 elif test x$gcc_cv_ld != x; then
30906 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30907 gcc_cv_ld_buildid=yes
30911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30912 $as_echo "$gcc_cv_ld_buildid" >&6; }
30913 if test x"$gcc_cv_ld_buildid" = xyes; then
30915 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30919 # Check whether --enable-linker-build-id was given.
30920 if test "${enable_linker_build_id+set}" = set; then :
30921 enableval=$enable_linker_build_id;
30922 else
30923 enable_linker_build_id=no
30927 if test x"$enable_linker_build_id" = xyes; then
30928 if test x"$gcc_cv_ld_buildid" = xyes; then
30930 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30932 else
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30934 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30938 # In binutils 2.21, GNU ld gained support for new emulations fully
30939 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30941 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30942 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30943 $as_echo_n "(cached) " >&6
30944 else
30945 gcc_cv_ld_sol2_emulation=no
30946 if test $in_tree_ld = yes ; then
30947 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30948 "$gcc_cv_gld_minor_version" -ge 21 -o \
30949 "$gcc_cv_gld_major_version" -gt 2 \
30950 && test $in_tree_ld_is_elf = yes; then
30951 gcc_cv_ld_sol2_emulation=yes
30953 elif test x$gcc_cv_ld != x; then
30954 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30955 grep _sol2 > /dev/null; then
30956 gcc_cv_ld_sol2_emulation=yes
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30961 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30962 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30964 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30969 $as_echo_n "checking linker --sysroot support... " >&6; }
30970 if ${gcc_cv_ld_sysroot+:} false; then :
30971 $as_echo_n "(cached) " >&6
30972 else
30973 gcc_cv_ld_sysroot=no
30974 if test $in_tree_ld = yes ; then
30975 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
30976 gcc_cv_ld_sysroot=yes
30978 elif test x$gcc_cv_ld != x; then
30979 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30980 gcc_cv_ld_sysroot=yes
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30985 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30986 if test x"$gcc_cv_ld_sysroot" = xyes; then
30988 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30992 case $target in
30993 *-*-solaris2*)
30994 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30996 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30997 if ${gcc_cv_solaris_crts+:} false; then :
30998 $as_echo_n "(cached) " >&6
30999 else
31000 gcc_cv_solaris_crts=no
31001 if test x$host != x$target; then
31002 if test "x$with_sysroot" = xyes; then
31003 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31004 else
31005 target_sysroot="${with_sysroot}"
31008 target_libdir="$target_sysroot/usr/lib"
31009 # At the time they were added, gcrt1.o became a symlink for backwards
31010 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31011 case $target in
31012 i?86-*-solaris2* | x86_64-*-solaris2*)
31013 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31015 sparc*-*-solaris2*)
31016 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31018 esac
31020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31021 $as_echo "$gcc_cv_solaris_crts" >&6; }
31023 esac
31024 if test x$gcc_cv_solaris_crts = xyes; then
31026 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31030 # Check whether --enable-libssp was given.
31031 if test "${enable_libssp+set}" = set; then :
31032 enableval=$enable_libssp; case "${enableval}" in
31033 yes|no)
31036 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31038 esac
31042 # Test for stack protector support in target C library.
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31044 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31045 if ${gcc_cv_libc_provides_ssp+:} false; then :
31046 $as_echo_n "(cached) " >&6
31047 else
31048 gcc_cv_libc_provides_ssp=no
31049 if test "x$enable_libssp" = "xno"; then
31050 gcc_cv_libc_provides_ssp=yes
31051 elif test "x$enable_libssp" = "xyes"; then
31052 gcc_cv_libc_provides_ssp=no
31053 else
31054 case "$target" in
31055 *-*-musl*)
31056 # All versions of musl provide stack protector
31057 gcc_cv_libc_provides_ssp=yes;;
31058 *-*-linux* | *-*-kfreebsd*-gnu)
31059 # glibc 2.4 and later provides __stack_chk_fail and
31060 # either __stack_chk_guard, or TLS access to stack guard canary.
31062 if test $glibc_version_major -gt 2 \
31063 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31064 gcc_cv_libc_provides_ssp=yes
31065 else
31067 if test -f $target_header_dir/features.h \
31068 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31069 $target_header_dir/features.h > /dev/null; then
31070 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31071 $target_header_dir/features.h > /dev/null && \
31072 test -f $target_header_dir/bits/uClibc_config.h && \
31073 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31074 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31075 gcc_cv_libc_provides_ssp=yes
31077 # all versions of Bionic support stack protector
31078 elif test -f $target_header_dir/sys/cdefs.h \
31079 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31080 $target_header_dir/sys/cdefs.h > /dev/null; then
31081 gcc_cv_libc_provides_ssp=yes
31085 *-*-gnu*)
31086 # Avoid complicated tests (see
31087 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31088 # simply assert that glibc does provide this, which is true for all
31089 # realistically usable GNU/Hurd configurations.
31090 # All supported versions of musl provide it as well
31091 gcc_cv_libc_provides_ssp=yes;;
31092 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31093 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31094 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31095 gcc_cv_libc_provides_ssp=yes
31096 else
31097 echo "no __stack_chk_fail on this target"
31101 *) gcc_cv_libc_provides_ssp=no ;;
31102 esac
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31106 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31108 if test x$gcc_cv_libc_provides_ssp = xyes; then
31110 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31114 # Check whether --enable-default-ssp was given.
31115 # Check whether --enable-default-ssp was given.
31116 if test "${enable_default_ssp+set}" = set; then :
31117 enableval=$enable_default_ssp;
31118 if test x$gcc_cv_libc_provides_ssp = xyes; then
31119 case "$target" in
31120 ia64*-*-*) enable_default_ssp=no ;;
31121 *) enable_default_ssp=$enableval ;;
31122 esac
31123 else
31124 enable_default_ssp=no
31126 else
31127 enable_default_ssp=no
31130 if test x$enable_default_ssp = xyes ; then
31132 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31137 # Test for <sys/sdt.h> on the target.
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31140 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31141 have_sys_sdt_h=no
31142 if test -f $target_header_dir/sys/sdt.h; then
31143 have_sys_sdt_h=yes
31145 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31149 $as_echo "$have_sys_sdt_h" >&6; }
31151 # Check if TFmode long double should be used by default or not.
31152 # Some glibc targets used DFmode long double, but with glibc 2.4
31153 # and later they can use TFmode.
31154 case "$target" in
31155 powerpc*-*-linux* | \
31156 sparc*-*-linux* | \
31157 s390*-*-linux* | \
31158 alpha*-*-linux*)
31160 # Check whether --with-long-double-128 was given.
31161 if test "${with_long_double_128+set}" = set; then :
31162 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31163 else
31165 case "$target" in
31166 s390*-*-linux-musl*)
31167 gcc_cv_target_ldbl128=yes
31169 powerpc*-*-linux-musl*)
31170 gcc_cv_target_ldbl128=no
31174 if test $glibc_version_major -gt 2 \
31175 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31176 gcc_cv_target_ldbl128=yes
31177 else
31179 gcc_cv_target_ldbl128=no
31180 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31181 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31182 && gcc_cv_target_ldbl128=yes
31187 esac
31192 esac
31193 if test x$gcc_cv_target_ldbl128 = xyes; then
31195 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31199 # Check if TFmode long double target should use the IBM extended double or IEEE
31200 # 128-bit floating point formats if long doubles are 128-bits long. The long
31201 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31202 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31203 # libgcc.
31205 # Check whether --with-long-double-format was given.
31206 if test "${with_long_double_format+set}" = set; then :
31207 withval=$with_long_double_format;
31208 case "$target:$with_long_double_format" in
31209 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31212 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31213 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31214 case "$with_cpu" in
31215 power7 | power8 | power9 | power1*)
31219 as_fn_error $? "Configuration option --with-long-double-format is only \
31220 supported if the default cpu is power7 or newer" "$LINENO" 5
31221 with_long_double_format=""
31223 esac
31225 powerpc64*-*-linux*:*)
31226 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31227 with_long_double_format=""
31230 as_fn_error $? "Configure option --with-long-double-format is only supported \
31231 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31232 with_long_double_format=""
31234 esac
31238 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31239 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31240 gcc_cv_libc_provides_hwcap_in_tcb=no
31241 case "$target" in
31242 powerpc*-*-linux*)
31244 if test $glibc_version_major -gt 2 \
31245 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31246 gcc_cv_libc_provides_hwcap_in_tcb=yes
31249 esac
31250 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31252 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31256 # Check if the target LIBC handles PT_GNU_STACK.
31257 gcc_cv_libc_gnustack=unknown
31258 case "$target" in
31259 mips*-*-linux*)
31261 if test $glibc_version_major -gt 2 \
31262 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31263 gcc_cv_libc_gnustack=yes
31266 esac
31267 if test x$gcc_cv_libc_gnustack = xyes; then
31269 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31274 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31275 gcc_cv_target_dl_iterate_phdr=unknown
31276 case "$target" in
31277 *-*-solaris2*)
31278 # <link.h> needs both a dl_iterate_phdr declaration and support for
31279 # compilation with largefile support.
31280 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31281 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31282 gcc_cv_target_dl_iterate_phdr=yes
31283 else
31284 gcc_cv_target_dl_iterate_phdr=no
31287 *-*-dragonfly* | *-*-freebsd*)
31288 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31289 gcc_cv_target_dl_iterate_phdr=yes
31290 else
31291 gcc_cv_target_dl_iterate_phdr=no
31294 *-linux-musl*)
31295 gcc_cv_target_dl_iterate_phdr=yes
31297 esac
31299 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31301 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31305 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31307 # We no longer support different GC mechanisms. Emit an error if
31308 # the user configures with --with-gc.
31310 # Check whether --with-gc was given.
31311 if test "${with_gc+set}" = set; then :
31312 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31316 # Libraries to use on the host. This will normally be set by the top
31317 # level Makefile. Here we simply capture the value for our Makefile.
31318 if test -z "${HOST_LIBS+set}"; then
31319 HOST_LIBS=
31323 # Use the system's zlib library.
31325 # Use the system's zlib library.
31326 zlibdir="-L\$(top_builddir)/../zlib"
31327 zlibinc="-I\$(top_srcdir)/../zlib"
31329 # Check whether --with-system-zlib was given.
31330 if test "${with_system_zlib+set}" = set; then :
31331 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31332 zlibdir=
31333 zlibinc=
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31344 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31345 # Check whether --enable-maintainer-mode was given.
31346 if test "${enable_maintainer_mode+set}" = set; then :
31347 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31348 else
31349 maintainer_mode=no
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31354 $as_echo "$maintainer_mode" >&6; }
31356 if test "$maintainer_mode" = "yes"; then
31357 MAINT=''
31358 else
31359 MAINT='#'
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31364 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31365 # Check whether --enable-link-mutex was given.
31366 if test "${enable_link_mutex+set}" = set; then :
31367 enableval=$enable_link_mutex; do_link_mutex=$enableval
31368 else
31369 do_link_mutex=no
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31373 $as_echo "$do_link_mutex" >&6; }
31375 if test "$do_link_mutex" = "yes"; then
31376 DO_LINK_MUTEX=true
31377 else
31378 DO_LINK_MUTEX=false
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31384 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31385 # Check whether --enable-link-serialization was given.
31386 if test "${enable_link_serialization+set}" = set; then :
31387 enableval=$enable_link_serialization; do_link_serialization=$enableval
31388 else
31389 do_link_serialization=no
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31393 $as_echo "$do_link_serialization" >&6; }
31395 case "$do_link_serialization" in
31396 yes)
31397 DO_LINK_SERIALIZATION=1;;
31398 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31399 DO_LINK_SERIALIZATION=$do_link_serialization;;
31401 DO_LINK_SERIALIZATION=;;
31403 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31404 esac
31407 # --------------
31408 # Language hooks
31409 # --------------
31411 # Make empty files to contain the specs and options for each language.
31412 # Then add #include lines to for a compiler that has specs and/or options.
31414 subdirs=
31415 lang_opt_files=
31416 lang_specs_files=
31417 lang_tree_files=
31418 # These (without "all_") are set in each config-lang.in.
31419 # `language' must be a single word so is spelled singularly.
31420 all_languages=
31421 all_compilers=
31422 all_outputs='Makefile'
31423 # List of language configure and makefile fragments.
31424 all_lang_configurefrags=
31425 all_lang_makefrags=
31426 # Additional files for gengtype
31427 all_gtfiles="$target_gtfiles"
31429 # These are the languages that are set in --enable-languages,
31430 # and are available in the GCC tree.
31431 all_selected_languages=
31433 # Add the language fragments.
31434 # Languages are added via two mechanisms. Some information must be
31435 # recorded in makefile variables, these are defined in config-lang.in.
31436 # We accumulate them and plug them into the main Makefile.
31437 # The other mechanism is a set of hooks for each of the main targets
31438 # like `clean', `install', etc.
31440 language_hooks="Make-hooks"
31442 for lang in ${srcdir}/*/config-lang.in
31444 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31446 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31447 if test "x$lang_alias" = x
31448 then
31449 echo "$lang doesn't set \$language." 1>&2
31450 exit 1
31452 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31453 subdirs="$subdirs $subdir"
31455 # $gcc_subdir is where the gcc integration files are to be found
31456 # for a language, both for internal compiler purposes (compiler
31457 # sources implementing front-end to GCC tree converters), and for
31458 # build infrastructure purposes (Make-lang.in, etc.)
31460 # This will be <subdir> (relative to $srcdir) if a line like
31461 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31462 # is found in <langdir>/config-lang.in, and will remain <langdir>
31463 # otherwise.
31465 # Except for the language alias (fetched above), the regular
31466 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31467 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31468 # only this and the language alias.
31470 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31471 if [ "$gcc_subdir" = "" ]; then
31472 gcc_subdir="$subdir"
31475 case ",$enable_languages," in
31476 *,$lang_alias,*)
31477 all_selected_languages="$all_selected_languages $lang_alias"
31478 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31479 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31482 esac
31484 language=
31485 boot_language=
31486 compilers=
31487 outputs=
31488 gtfiles=
31489 subdir_requires=
31490 . ${srcdir}/$gcc_subdir/config-lang.in
31491 if test "x$language" = x
31492 then
31493 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31494 exit 1
31497 ok=:
31498 case ",$enable_languages," in
31499 *,$lang_alias,*) ;;
31501 for i in $subdir_requires; do
31502 test -f "${srcdir}/$i/config-lang.in" && continue
31503 ok=false
31504 break
31505 done
31507 esac
31508 $ok || continue
31510 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31511 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31512 # Put c/Make-lang.in fragment first to match serialization languages order.
31513 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31514 else
31515 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31517 if test -f $srcdir/$gcc_subdir/lang.opt; then
31518 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31519 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31521 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31522 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31524 all_languages="$all_languages $language"
31525 all_compilers="$all_compilers $compilers"
31526 all_outputs="$all_outputs $outputs"
31527 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31528 case ",$enable_languages," in
31529 *,lto,*)
31531 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31533 enable_lto=yes
31536 *) ;;
31537 esac
31538 done
31540 check_languages=
31541 for language in $all_selected_languages
31543 check_languages="$check_languages check-$language"
31544 done
31546 selftest_languages=
31547 for language in $all_selected_languages
31549 selftest_languages="$selftest_languages selftest-$language"
31550 done
31552 # We link each language in with a set of hooks, reached indirectly via
31553 # lang.${target}. Only do so for selected languages.
31555 rm -f Make-hooks
31556 touch Make-hooks
31557 target_list="all.cross start.encap rest.encap tags \
31558 install-common install-man install-info install-dvi install-pdf \
31559 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31560 mostlyclean clean distclean maintainer-clean install-plugin"
31562 for t in $target_list
31565 for lang in $all_selected_languages
31567 x="$x $lang.$t"
31568 done
31569 echo "lang.$t: $x" >> Make-hooks
31570 done
31572 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31573 echo "SERIAL_LIST =" >> Make-hooks
31574 echo else >> Make-hooks
31575 lang_cnt=0
31576 lang_list=
31577 prev=c
31578 serialization_languages=c
31579 for lang in $all_selected_languages
31581 test $lang = c && continue
31582 if test $lang = lto; then
31583 serialization_languages="$serialization_languages lto1 lto2"
31584 else
31585 serialization_languages="$serialization_languages $lang"
31587 done
31588 for lang in $serialization_languages
31590 test $lang = c && continue
31591 lang_cnt=`expr $lang_cnt + 1`
31592 lang_list=" $prev$lang_list"
31593 prev=${lang}
31594 done
31595 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31596 echo endif >> Make-hooks
31597 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31598 echo "INDEX.c = 0" >> Make-hooks
31599 lang_idx=1
31600 for lang in $serialization_languages
31602 test $lang = c && continue
31603 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31604 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31605 lang_cnt=`expr $lang_cnt - 1`
31606 lang_idx=`expr $lang_idx + 1`
31607 done
31609 # --------
31610 # Option include files
31611 # --------
31613 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31614 option_includes="option-includes.mk"
31617 # --------
31618 # UNSORTED
31619 # --------
31621 # Create .gdbinit.
31623 echo "dir ." > .gdbinit
31624 echo "dir ${srcdir}" >> .gdbinit
31625 if test x$gdb_needs_out_file_path = xyes
31626 then
31627 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31629 if test "x$subdirs" != x; then
31630 for s in $subdirs
31632 echo "dir ${srcdir}/$s" >> .gdbinit
31633 done
31635 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31636 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31638 # Put a breakpoint on __asan_report_error to help with debugging buffer
31639 # overflow.
31640 case "$CFLAGS" in
31641 *-fsanitize=address*)
31642 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31644 esac
31646 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31650 # Find a directory in which to install a shared libgcc.
31652 # Check whether --enable-version-specific-runtime-libs was given.
31653 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31654 enableval=$enable_version_specific_runtime_libs;
31658 # Substitute configuration variables
31728 # Echo link setup.
31729 if test x${build} = x${host} ; then
31730 if test x${host} = x${target} ; then
31731 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31732 else
31733 echo "Links are now set up to build a cross-compiler" 1>&2
31734 echo " from ${host} to ${target}." 1>&2
31736 else
31737 if test x${host} = x${target} ; then
31738 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31739 echo " for ${target}." 1>&2
31740 else
31741 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31742 echo " from ${host} to ${target}." 1>&2
31751 if test "x${ISLLIBS}" != "x" ; then
31753 $as_echo "#define HAVE_isl 1" >>confdefs.h
31757 # Check for plugin support
31758 # Check whether --enable-plugin was given.
31759 if test "${enable_plugin+set}" = set; then :
31760 enableval=$enable_plugin; enable_plugin=$enableval
31761 else
31762 enable_plugin=yes; default_plugin=yes
31766 pluginlibs=
31767 plugin_check=yes
31769 case "${host}" in
31770 *-*-mingw*)
31771 # Since plugin support under MinGW is not as straightforward as on
31772 # other platforms (e.g., we have to link import library, etc), we
31773 # only enable it if explicitly requested.
31774 if test x"$default_plugin" = x"yes"; then
31775 enable_plugin=no
31776 elif test x"$enable_plugin" = x"yes"; then
31777 # Use make's target variable to derive import library name.
31778 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31779 plugin_check=no
31782 *-*-darwin*)
31783 if test x$build = x$host; then
31784 export_sym_check="nm${exeext} -g"
31785 elif test x$host = x$target; then
31786 export_sym_check="$gcc_cv_nm -g"
31787 else
31788 export_sym_check=
31792 if test x$build = x$host; then
31793 export_sym_check="objdump${exeext} -T"
31794 elif test x$host = x$target; then
31795 export_sym_check="$gcc_cv_objdump -T"
31796 else
31797 export_sym_check=
31800 esac
31802 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31805 $as_echo_n "checking for exported symbols... " >&6; }
31806 if test "x$export_sym_check" != x; then
31807 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31808 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31809 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31810 : # No need to use a flag
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31812 $as_echo "yes" >&6; }
31813 else
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31815 $as_echo "yes" >&6; }
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31817 $as_echo_n "checking for -rdynamic... " >&6; }
31818 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31819 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31820 plugin_rdynamic=yes
31821 pluginlibs="-rdynamic"
31822 else
31823 plugin_rdynamic=no
31824 enable_plugin=no
31826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31827 $as_echo "$plugin_rdynamic" >&6; }
31829 else
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31831 $as_echo "unable to check" >&6; }
31834 # Check -ldl
31835 saved_LIBS="$LIBS"
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31837 $as_echo_n "checking for library containing dlopen... " >&6; }
31838 if ${ac_cv_search_dlopen+:} false; then :
31839 $as_echo_n "(cached) " >&6
31840 else
31841 ac_func_search_save_LIBS=$LIBS
31842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31843 /* end confdefs.h. */
31845 /* Override any GCC internal prototype to avoid an error.
31846 Use char because int might match the return type of a GCC
31847 builtin and then its argument prototype would still apply. */
31848 #ifdef __cplusplus
31849 extern "C"
31850 #endif
31851 char dlopen ();
31853 main ()
31855 return dlopen ();
31857 return 0;
31859 _ACEOF
31860 for ac_lib in '' dl; do
31861 if test -z "$ac_lib"; then
31862 ac_res="none required"
31863 else
31864 ac_res=-l$ac_lib
31865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31867 if ac_fn_cxx_try_link "$LINENO"; then :
31868 ac_cv_search_dlopen=$ac_res
31870 rm -f core conftest.err conftest.$ac_objext \
31871 conftest$ac_exeext
31872 if ${ac_cv_search_dlopen+:} false; then :
31873 break
31875 done
31876 if ${ac_cv_search_dlopen+:} false; then :
31878 else
31879 ac_cv_search_dlopen=no
31881 rm conftest.$ac_ext
31882 LIBS=$ac_func_search_save_LIBS
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31885 $as_echo "$ac_cv_search_dlopen" >&6; }
31886 ac_res=$ac_cv_search_dlopen
31887 if test "$ac_res" != no; then :
31888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31892 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31893 pluginlibs="$pluginlibs -ldl"
31895 LIBS="$saved_LIBS"
31897 # Check that we can build shared objects with -fPIC -shared
31898 saved_LDFLAGS="$LDFLAGS"
31899 saved_CFLAGS="$CFLAGS"
31900 case "${host}" in
31901 *-*-darwin*)
31902 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31903 CFLAGS="$CFLAGS -fPIC"
31904 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31907 CFLAGS="$CFLAGS -fPIC"
31908 LDFLAGS="$LDFLAGS -fPIC -shared"
31910 esac
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31912 $as_echo_n "checking for -fPIC -shared... " >&6; }
31913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31914 /* end confdefs.h. */
31915 extern int X;
31917 main ()
31919 return X == 0;
31921 return 0;
31923 _ACEOF
31924 if ac_fn_cxx_try_link "$LINENO"; then :
31925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31926 $as_echo "yes" >&6; }; have_pic_shared=yes
31927 else
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929 $as_echo "no" >&6; }; have_pic_shared=no
31931 rm -f core conftest.err conftest.$ac_objext \
31932 conftest$ac_exeext conftest.$ac_ext
31933 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31934 pluginlibs=
31935 enable_plugin=no
31937 LDFLAGS="$saved_LDFLAGS"
31938 CFLAGS="$saved_CFLAGS"
31940 # If plugin support had been requested but not available, fail.
31941 if test x"$enable_plugin" = x"no" ; then
31942 if test x"$default_plugin" != x"yes"; then
31943 as_fn_error $? "
31944 Building GCC with plugin support requires a host that supports
31945 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31952 if test x"$enable_plugin" = x"yes"; then
31954 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31959 # Enable --enable-host-shared
31960 # Check whether --enable-host-shared was given.
31961 if test "${enable_host_shared+set}" = set; then :
31962 enableval=$enable_host_shared; PICFLAG=-fPIC
31963 else
31964 PICFLAG=
31971 # Check whether --enable-libquadmath-support was given.
31972 if test "${enable_libquadmath_support+set}" = set; then :
31973 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31974 else
31975 ENABLE_LIBQUADMATH_SUPPORT=yes
31978 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31980 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31985 # Specify what hash style to use by default.
31987 # Check whether --with-linker-hash-style was given.
31988 if test "${with_linker_hash_style+set}" = set; then :
31989 withval=$with_linker_hash_style; case x"$withval" in
31990 xsysv)
31991 LINKER_HASH_STYLE=sysv
31993 xgnu)
31994 LINKER_HASH_STYLE=gnu
31996 xboth)
31997 LINKER_HASH_STYLE=both
32000 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32002 esac
32003 else
32004 LINKER_HASH_STYLE=''
32007 if test x"${LINKER_HASH_STYLE}" != x; then
32009 cat >>confdefs.h <<_ACEOF
32010 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32011 _ACEOF
32015 # Specify what should be the default of -fdiagnostics-color option.
32017 # Check whether --with-diagnostics-color was given.
32018 if test "${with_diagnostics_color+set}" = set; then :
32019 withval=$with_diagnostics_color; case x"$withval" in
32020 xnever)
32021 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32023 xauto)
32024 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32026 xauto-if-env)
32027 DIAGNOSTICS_COLOR_DEFAULT=-1
32029 xalways)
32030 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32033 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32035 esac
32036 else
32037 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32041 cat >>confdefs.h <<_ACEOF
32042 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32043 _ACEOF
32046 # Specify what should be the default of -fdiagnostics-urls option.
32048 # Check whether --with-diagnostics-urls was given.
32049 if test "${with_diagnostics_urls+set}" = set; then :
32050 withval=$with_diagnostics_urls; case x"$withval" in
32051 xnever)
32052 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32054 xauto)
32055 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32057 xauto-if-env)
32058 DIAGNOSTICS_URLS_DEFAULT=-1
32060 xalways)
32061 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32064 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32066 esac
32067 else
32068 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32072 cat >>confdefs.h <<_ACEOF
32073 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32074 _ACEOF
32077 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32078 # of jit/jit-playback.c.
32079 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32080 echo "gcc_driver_version: ${gcc_driver_version}"
32081 cat > gcc-driver-name.h <<EOF
32082 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32085 # Check whether --enable-default-pie was given.
32086 # Check whether --enable-default-pie was given.
32087 if test "${enable_default_pie+set}" = set; then :
32088 enableval=$enable_default_pie; enable_default_pie=$enableval
32089 else
32090 enable_default_pie=no
32093 if test x$enable_default_pie = xyes ; then
32095 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32100 # Check if -fno-PIE works.
32101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32102 $as_echo_n "checking for -fno-PIE option... " >&6; }
32103 if ${gcc_cv_c_no_fpie+:} false; then :
32104 $as_echo_n "(cached) " >&6
32105 else
32106 saved_CXXFLAGS="$CXXFLAGS"
32107 CXXFLAGS="$CXXFLAGS -fno-PIE"
32108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32109 /* end confdefs.h. */
32110 int main(void) {return 0;}
32111 _ACEOF
32112 if ac_fn_cxx_try_compile "$LINENO"; then :
32113 gcc_cv_c_no_fpie=yes
32114 else
32115 gcc_cv_c_no_fpie=no
32117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32118 CXXFLAGS="$saved_CXXFLAGS"
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32121 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32122 if test "$gcc_cv_c_no_fpie" = "yes"; then
32123 NO_PIE_CFLAGS="-fno-PIE"
32127 # Check if -no-pie works.
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32129 $as_echo_n "checking for -no-pie option... " >&6; }
32130 if ${gcc_cv_no_pie+:} false; then :
32131 $as_echo_n "(cached) " >&6
32132 else
32133 saved_LDFLAGS="$LDFLAGS"
32134 LDFLAGS="$LDFLAGS -no-pie"
32135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32136 /* end confdefs.h. */
32137 int main(void) {return 0;}
32138 _ACEOF
32139 if ac_fn_cxx_try_link "$LINENO"; then :
32140 gcc_cv_no_pie=yes
32141 else
32142 gcc_cv_no_pie=no
32144 rm -f core conftest.err conftest.$ac_objext \
32145 conftest$ac_exeext conftest.$ac_ext
32146 LDFLAGS="$saved_LDFLAGS"
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32149 $as_echo "$gcc_cv_no_pie" >&6; }
32150 if test "$gcc_cv_no_pie" = "yes"; then
32151 NO_PIE_FLAG="-no-pie"
32155 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32156 # Check whether --enable-cet was given.
32157 if test "${enable_cet+set}" = set; then :
32158 enableval=$enable_cet;
32159 case "$enableval" in
32160 yes|no|auto) ;;
32161 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32162 esac
32164 else
32165 enable_cet=auto
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32170 $as_echo_n "checking for CET support... " >&6; }
32172 case "$host" in
32173 i[34567]86-*-linux* | x86_64-*-linux*)
32174 may_have_cet=yes
32175 cet_save_CFLAGS="$CFLAGS"
32176 CFLAGS="$CFLAGS -fcf-protection"
32177 case "$enable_cet" in
32178 auto)
32179 # Check if target supports multi-byte NOPs
32180 # and if compiler and assembler support CET.
32181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32182 /* end confdefs.h. */
32185 main ()
32188 #if !defined(__SSE2__)
32189 #error target does not support multi-byte NOPs
32190 #else
32191 asm ("setssbsy");
32192 #endif
32195 return 0;
32197 _ACEOF
32198 if ac_fn_cxx_try_compile "$LINENO"; then :
32199 enable_cet=yes
32200 else
32201 enable_cet=no
32203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32205 yes)
32206 # Check if compiler and assembler support CET.
32207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32208 /* end confdefs.h. */
32211 main ()
32213 asm ("setssbsy");
32215 return 0;
32217 _ACEOF
32218 if ac_fn_cxx_try_compile "$LINENO"; then :
32219 support_cet=yes
32220 else
32221 support_cet=no
32223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32224 if test $support_cet = "no"; then
32225 if test x$enable_bootstrap != xno \
32226 && test -z "${with_build_subdir}" \
32227 && (test ! -f ../stage_current \
32228 || test `cat ../stage_current` != "stage1"); then
32229 # Require CET support only for the final GCC build.
32230 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32231 else
32232 # Don't enable CET without CET support for non-bootstrap
32233 # build, in stage1 nor for build support.
32234 enable_cet=no
32238 esac
32239 CFLAGS="$cet_save_CFLAGS"
32242 may_have_cet=no
32243 enable_cet=no
32245 esac
32247 cet_save_CFLAGS="$CFLAGS"
32248 CFLAGS="$CFLAGS -fcf-protection=none"
32249 cet_save_LDFLAGS="$LDFLAGS"
32250 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32251 if test x$may_have_cet = xyes; then
32252 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32254 /* end confdefs.h. */
32257 main ()
32259 return 0;
32261 return 0;
32263 _ACEOF
32264 if ac_fn_cxx_try_link "$LINENO"; then :
32265 may_have_cet=yes
32266 else
32267 may_have_cet=no
32269 rm -f core conftest.err conftest.$ac_objext \
32270 conftest$ac_exeext conftest.$ac_ext
32273 if test x$may_have_cet = xyes; then
32274 if test x$cross_compiling = xno; then
32275 if test "$cross_compiling" = yes; then :
32276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32278 as_fn_error $? "cannot run test program while cross compiling
32279 See \`config.log' for more details" "$LINENO" 5; }
32280 else
32281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32282 /* end confdefs.h. */
32285 main ()
32287 asm ("endbr32");
32288 return 0;
32291 _ACEOF
32292 if ac_fn_cxx_try_run "$LINENO"; then :
32293 have_multi_byte_nop=yes
32294 else
32295 have_multi_byte_nop=no
32297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32298 conftest.$ac_objext conftest.beam conftest.$ac_ext
32301 have_cet=no
32302 if test x$have_multi_byte_nop = xyes; then
32303 if test "$cross_compiling" = yes; then :
32304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32306 as_fn_error $? "cannot run test program while cross compiling
32307 See \`config.log' for more details" "$LINENO" 5; }
32308 else
32309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32310 /* end confdefs.h. */
32312 static void
32313 foo (void)
32317 static void
32318 __attribute__ ((noinline, noclone))
32319 xxx (void (*f) (void))
32321 f ();
32324 static void
32325 __attribute__ ((noinline, noclone))
32326 bar (void)
32328 xxx (foo);
32332 main ()
32334 bar ();
32335 return 0;
32338 _ACEOF
32339 if ac_fn_cxx_try_run "$LINENO"; then :
32340 have_cet=no
32341 else
32342 have_cet=yes
32344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32345 conftest.$ac_objext conftest.beam conftest.$ac_ext
32349 if test x$enable_cet = xno -a x$have_cet = xyes; then
32350 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32353 else
32354 # Enable CET in cross compiler if possible so that it will run on both
32355 # CET and non-CET hosts.
32356 have_cet=yes
32358 if test x$enable_cet = xyes; then
32359 CET_HOST_FLAGS="-fcf-protection"
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32361 $as_echo "yes" >&6; }
32362 else
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32364 $as_echo "no" >&6; }
32366 CFLAGS="$cet_save_CFLAGS"
32367 LDFLAGS="$cet_save_LDFLAGS"
32369 case x$enable_languages in
32370 *jit*)
32373 CET_HOST_FLAGS=
32375 esac
32378 # Check linker supports '-z bndplt'
32379 ld_bndplt_support=no
32380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32381 $as_echo_n "checking linker -z bndplt option... " >&6; }
32382 if test x"$ld_is_gold" = xno; then
32383 if test $in_tree_ld = yes ; then
32384 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
32385 ld_bndplt_support=yes
32387 elif test x$gcc_cv_ld != x; then
32388 # Check if linker supports -a bndplt option
32389 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32390 ld_bndplt_support=yes
32394 if test x"$ld_bndplt_support" = xyes; then
32396 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32400 $as_echo "$ld_bndplt_support" >&6; }
32402 # Check linker supports '--push-state'/'--pop-state'
32403 ld_pushpopstate_support=no
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32405 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32406 if test x"$ld_is_gold" = xno; then
32407 if test $in_tree_ld = yes ; then
32408 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
32409 ld_pushpopstate_support=yes
32411 elif test x$gcc_cv_ld != x; then
32412 # Check if linker supports --push-state/--pop-state options
32413 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32414 ld_pushpopstate_support=yes
32418 if test x"$ld_pushpopstate_support" = xyes; then
32420 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32424 $as_echo "$ld_pushpopstate_support" >&6; }
32426 # On s390, float_t has historically been statically defined as double for no
32427 # good reason. To comply with the C standard in the light of this definition,
32428 # gcc has evaluated float expressions in double precision when in
32429 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32430 # a smooth transition towards the new model used by most architectures, where
32431 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32432 # float_t from that, this behavior can be configured with
32433 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32434 # the old model. When omitted, native builds and cross compiles that have target
32435 # libc headers will detect whether libc clamps float_t to double and in that
32436 # case maintain the old model. Otherwise, they will default to the new model.
32437 # Check whether --enable-s390-excess-float-precision was given.
32438 if test "${enable_s390_excess_float_precision+set}" = set; then :
32439 enableval=$enable_s390_excess_float_precision;
32440 else
32441 enable_s390_excess_float_precision=auto
32445 case $target in
32446 s390*-linux*)
32447 if test x"$enable_s390_excess_float_precision" = xauto; then
32448 # Can we autodetect the behavior of the target libc?
32449 if test "$target" = "$host" -a "$host" = "$build"; then
32450 enable_s390_excess_float_precision=autodetect
32451 elif test "x$with_headers" != xno; then
32452 # cross build. are target headers available?
32453 # carefully coerce the build-system compiler to use target headers
32454 saved_CXXFLAGS="$CXXFLAGS"
32455 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32456 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32457 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32459 /* end confdefs.h. */
32461 #include <math.h>
32463 _ACEOF
32464 if ac_fn_cxx_try_compile "$LINENO"; then :
32465 enable_s390_excess_float_precision=autodetect
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32468 CXXFLAGS="$saved_CXXFLAGS"
32471 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32472 saved_CXXFLAGS="$CXXFLAGS"
32473 if ! test "$target" = "$host" -a "$host" = "$build"; then
32474 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32475 unset CROSS_TEST_CXXFLAGS
32477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32478 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32479 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32480 $as_echo_n "(cached) " >&6
32481 else
32483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32484 /* end confdefs.h. */
32486 #define __FLT_EVAL_METHOD__ 0
32487 #include <math.h>
32488 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32490 _ACEOF
32491 if ac_fn_cxx_try_compile "$LINENO"; then :
32492 gcc_cv_float_t_clamped_to_double=yes
32493 else
32494 gcc_cv_float_t_clamped_to_double=no
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32499 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32500 CXXFLAGS="$saved_CXXFLAGS"
32501 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32502 else
32503 # no way to detect behavior of target libc, default to new model
32504 enable_s390_excess_float_precision=no
32509 if test x"$enable_s390_excess_float_precision" = xyes; then
32511 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32515 esac
32517 # Configure the subdirectories
32518 # AC_CONFIG_SUBDIRS($subdirs)
32520 # Create the Makefile
32521 # and configure language subdirectories
32522 ac_config_files="$ac_config_files $all_outputs"
32525 ac_config_commands="$ac_config_commands default"
32527 cat >confcache <<\_ACEOF
32528 # This file is a shell script that caches the results of configure
32529 # tests run on this system so they can be shared between configure
32530 # scripts and configure runs, see configure's option --config-cache.
32531 # It is not useful on other systems. If it contains results you don't
32532 # want to keep, you may remove or edit it.
32534 # config.status only pays attention to the cache file if you give it
32535 # the --recheck option to rerun configure.
32537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32539 # following values.
32541 _ACEOF
32543 # The following way of writing the cache mishandles newlines in values,
32544 # but we know of no workaround that is simple, portable, and efficient.
32545 # So, we kill variables containing newlines.
32546 # Ultrix sh set writes to stderr and can't be redirected directly,
32547 # and sets the high bit in the cache file unless we assign to the vars.
32549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32550 eval ac_val=\$$ac_var
32551 case $ac_val in #(
32552 *${as_nl}*)
32553 case $ac_var in #(
32554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32556 esac
32557 case $ac_var in #(
32558 _ | IFS | as_nl) ;; #(
32559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32560 *) { eval $ac_var=; unset $ac_var;} ;;
32561 esac ;;
32562 esac
32563 done
32565 (set) 2>&1 |
32566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32567 *${as_nl}ac_space=\ *)
32568 # `set' does not quote correctly, so add quotes: double-quote
32569 # substitution turns \\\\ into \\, and sed turns \\ into \.
32570 sed -n \
32571 "s/'/'\\\\''/g;
32572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32573 ;; #(
32575 # `set' quotes correctly as required by POSIX, so do not add quotes.
32576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32578 esac |
32579 sort
32581 sed '
32582 /^ac_cv_env_/b end
32583 t clear
32584 :clear
32585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32586 t end
32587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32588 :end' >>confcache
32589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32590 if test -w "$cache_file"; then
32591 if test "x$cache_file" != "x/dev/null"; then
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32593 $as_echo "$as_me: updating cache $cache_file" >&6;}
32594 if test ! -f "$cache_file" || test -h "$cache_file"; then
32595 cat confcache >"$cache_file"
32596 else
32597 case $cache_file in #(
32598 */* | ?:*)
32599 mv -f confcache "$cache_file"$$ &&
32600 mv -f "$cache_file"$$ "$cache_file" ;; #(
32602 mv -f confcache "$cache_file" ;;
32603 esac
32606 else
32607 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32608 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32611 rm -f confcache
32613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32614 # Let make expand exec_prefix.
32615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32617 DEFS=-DHAVE_CONFIG_H
32619 ac_libobjs=
32620 ac_ltlibobjs=
32622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32623 # 1. Remove the extension, and $U if already installed.
32624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32627 # will be set to the directory where LIBOBJS objects are built.
32628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32630 done
32631 LIBOBJS=$ac_libobjs
32633 LTLIBOBJS=$ac_ltlibobjs
32638 : "${CONFIG_STATUS=./config.status}"
32639 ac_write_fail=0
32640 ac_clean_files_save=$ac_clean_files
32641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32644 as_write_fail=0
32645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32646 #! $SHELL
32647 # Generated by $as_me.
32648 # Run this file to recreate the current configuration.
32649 # Compiler output produced by configure, useful for debugging
32650 # configure, is in config.log if it exists.
32652 debug=false
32653 ac_cs_recheck=false
32654 ac_cs_silent=false
32656 SHELL=\${CONFIG_SHELL-$SHELL}
32657 export SHELL
32658 _ASEOF
32659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32660 ## -------------------- ##
32661 ## M4sh Initialization. ##
32662 ## -------------------- ##
32664 # Be more Bourne compatible
32665 DUALCASE=1; export DUALCASE # for MKS sh
32666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32667 emulate sh
32668 NULLCMD=:
32669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32670 # is contrary to our usage. Disable this feature.
32671 alias -g '${1+"$@"}'='"$@"'
32672 setopt NO_GLOB_SUBST
32673 else
32674 case `(set -o) 2>/dev/null` in #(
32675 *posix*) :
32676 set -o posix ;; #(
32677 *) :
32679 esac
32683 as_nl='
32685 export as_nl
32686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32690 # Prefer a ksh shell builtin over an external printf program on Solaris,
32691 # but without wasting forks for bash or zsh.
32692 if test -z "$BASH_VERSION$ZSH_VERSION" \
32693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32694 as_echo='print -r --'
32695 as_echo_n='print -rn --'
32696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32697 as_echo='printf %s\n'
32698 as_echo_n='printf %s'
32699 else
32700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32702 as_echo_n='/usr/ucb/echo -n'
32703 else
32704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32705 as_echo_n_body='eval
32706 arg=$1;
32707 case $arg in #(
32708 *"$as_nl"*)
32709 expr "X$arg" : "X\\(.*\\)$as_nl";
32710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32711 esac;
32712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32714 export as_echo_n_body
32715 as_echo_n='sh -c $as_echo_n_body as_echo'
32717 export as_echo_body
32718 as_echo='sh -c $as_echo_body as_echo'
32721 # The user is always right.
32722 if test "${PATH_SEPARATOR+set}" != set; then
32723 PATH_SEPARATOR=:
32724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32726 PATH_SEPARATOR=';'
32731 # IFS
32732 # We need space, tab and new line, in precisely that order. Quoting is
32733 # there to prevent editors from complaining about space-tab.
32734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32735 # splitting by setting IFS to empty value.)
32736 IFS=" "" $as_nl"
32738 # Find who we are. Look in the path if we contain no directory separator.
32739 as_myself=
32740 case $0 in #((
32741 *[\\/]* ) as_myself=$0 ;;
32742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32743 for as_dir in $PATH
32745 IFS=$as_save_IFS
32746 test -z "$as_dir" && as_dir=.
32747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32748 done
32749 IFS=$as_save_IFS
32752 esac
32753 # We did not find ourselves, most probably we were run as `sh COMMAND'
32754 # in which case we are not to be found in the path.
32755 if test "x$as_myself" = x; then
32756 as_myself=$0
32758 if test ! -f "$as_myself"; then
32759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32760 exit 1
32763 # Unset variables that we do not need and which cause bugs (e.g. in
32764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32765 # suppresses any "Segmentation fault" message there. '((' could
32766 # trigger a bug in pdksh 5.2.14.
32767 for as_var in BASH_ENV ENV MAIL MAILPATH
32768 do eval test x\${$as_var+set} = xset \
32769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32770 done
32771 PS1='$ '
32772 PS2='> '
32773 PS4='+ '
32775 # NLS nuisances.
32776 LC_ALL=C
32777 export LC_ALL
32778 LANGUAGE=C
32779 export LANGUAGE
32781 # CDPATH.
32782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32786 # ----------------------------------------
32787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32789 # script with STATUS, using 1 if that was 0.
32790 as_fn_error ()
32792 as_status=$1; test $as_status -eq 0 && as_status=1
32793 if test "$4"; then
32794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32797 $as_echo "$as_me: error: $2" >&2
32798 as_fn_exit $as_status
32799 } # as_fn_error
32802 # as_fn_set_status STATUS
32803 # -----------------------
32804 # Set $? to STATUS, without forking.
32805 as_fn_set_status ()
32807 return $1
32808 } # as_fn_set_status
32810 # as_fn_exit STATUS
32811 # -----------------
32812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32813 as_fn_exit ()
32815 set +e
32816 as_fn_set_status $1
32817 exit $1
32818 } # as_fn_exit
32820 # as_fn_unset VAR
32821 # ---------------
32822 # Portably unset VAR.
32823 as_fn_unset ()
32825 { eval $1=; unset $1;}
32827 as_unset=as_fn_unset
32828 # as_fn_append VAR VALUE
32829 # ----------------------
32830 # Append the text in VALUE to the end of the definition contained in VAR. Take
32831 # advantage of any shell optimizations that allow amortized linear growth over
32832 # repeated appends, instead of the typical quadratic growth present in naive
32833 # implementations.
32834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32835 eval 'as_fn_append ()
32837 eval $1+=\$2
32839 else
32840 as_fn_append ()
32842 eval $1=\$$1\$2
32844 fi # as_fn_append
32846 # as_fn_arith ARG...
32847 # ------------------
32848 # Perform arithmetic evaluation on the ARGs, and store the result in the
32849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32850 # must be portable across $(()) and expr.
32851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32852 eval 'as_fn_arith ()
32854 as_val=$(( $* ))
32856 else
32857 as_fn_arith ()
32859 as_val=`expr "$@" || test $? -eq 1`
32861 fi # as_fn_arith
32864 if expr a : '\(a\)' >/dev/null 2>&1 &&
32865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32866 as_expr=expr
32867 else
32868 as_expr=false
32871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32872 as_basename=basename
32873 else
32874 as_basename=false
32877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32878 as_dirname=dirname
32879 else
32880 as_dirname=false
32883 as_me=`$as_basename -- "$0" ||
32884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32885 X"$0" : 'X\(//\)$' \| \
32886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32887 $as_echo X/"$0" |
32888 sed '/^.*\/\([^/][^/]*\)\/*$/{
32889 s//\1/
32892 /^X\/\(\/\/\)$/{
32893 s//\1/
32896 /^X\/\(\/\).*/{
32897 s//\1/
32900 s/.*/./; q'`
32902 # Avoid depending upon Character Ranges.
32903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32906 as_cr_digits='0123456789'
32907 as_cr_alnum=$as_cr_Letters$as_cr_digits
32909 ECHO_C= ECHO_N= ECHO_T=
32910 case `echo -n x` in #(((((
32911 -n*)
32912 case `echo 'xy\c'` in
32913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32914 xy) ECHO_C='\c';;
32915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32916 ECHO_T=' ';;
32917 esac;;
32919 ECHO_N='-n';;
32920 esac
32922 rm -f conf$$ conf$$.exe conf$$.file
32923 if test -d conf$$.dir; then
32924 rm -f conf$$.dir/conf$$.file
32925 else
32926 rm -f conf$$.dir
32927 mkdir conf$$.dir 2>/dev/null
32929 if (echo >conf$$.file) 2>/dev/null; then
32930 if ln -s conf$$.file conf$$ 2>/dev/null; then
32931 as_ln_s='ln -s'
32932 # ... but there are two gotchas:
32933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32935 # In both cases, we have to default to `cp -pR'.
32936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32937 as_ln_s='cp -pR'
32938 elif ln conf$$.file conf$$ 2>/dev/null; then
32939 as_ln_s=ln
32940 else
32941 as_ln_s='cp -pR'
32943 else
32944 as_ln_s='cp -pR'
32946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32947 rmdir conf$$.dir 2>/dev/null
32950 # as_fn_mkdir_p
32951 # -------------
32952 # Create "$as_dir" as a directory, including parents if necessary.
32953 as_fn_mkdir_p ()
32956 case $as_dir in #(
32957 -*) as_dir=./$as_dir;;
32958 esac
32959 test -d "$as_dir" || eval $as_mkdir_p || {
32960 as_dirs=
32961 while :; do
32962 case $as_dir in #(
32963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32964 *) as_qdir=$as_dir;;
32965 esac
32966 as_dirs="'$as_qdir' $as_dirs"
32967 as_dir=`$as_dirname -- "$as_dir" ||
32968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32969 X"$as_dir" : 'X\(//\)[^/]' \| \
32970 X"$as_dir" : 'X\(//\)$' \| \
32971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32972 $as_echo X"$as_dir" |
32973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32974 s//\1/
32977 /^X\(\/\/\)[^/].*/{
32978 s//\1/
32981 /^X\(\/\/\)$/{
32982 s//\1/
32985 /^X\(\/\).*/{
32986 s//\1/
32989 s/.*/./; q'`
32990 test -d "$as_dir" && break
32991 done
32992 test -z "$as_dirs" || eval "mkdir $as_dirs"
32993 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32996 } # as_fn_mkdir_p
32997 if mkdir -p . 2>/dev/null; then
32998 as_mkdir_p='mkdir -p "$as_dir"'
32999 else
33000 test -d ./-p && rmdir ./-p
33001 as_mkdir_p=false
33005 # as_fn_executable_p FILE
33006 # -----------------------
33007 # Test if FILE is an executable regular file.
33008 as_fn_executable_p ()
33010 test -f "$1" && test -x "$1"
33011 } # as_fn_executable_p
33012 as_test_x='test -x'
33013 as_executable_p=as_fn_executable_p
33015 # Sed expression to map a string onto a valid CPP name.
33016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33018 # Sed expression to map a string onto a valid variable name.
33019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33022 exec 6>&1
33023 ## ----------------------------------- ##
33024 ## Main body of $CONFIG_STATUS script. ##
33025 ## ----------------------------------- ##
33026 _ASEOF
33027 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33030 # Save the log message, to keep $0 and so on meaningful, and to
33031 # report actual input values of CONFIG_FILES etc. instead of their
33032 # values after options handling.
33033 ac_log="
33034 This file was extended by $as_me, which was
33035 generated by GNU Autoconf 2.69. Invocation command line was
33037 CONFIG_FILES = $CONFIG_FILES
33038 CONFIG_HEADERS = $CONFIG_HEADERS
33039 CONFIG_LINKS = $CONFIG_LINKS
33040 CONFIG_COMMANDS = $CONFIG_COMMANDS
33041 $ $0 $@
33043 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33046 _ACEOF
33048 case $ac_config_files in *"
33049 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33050 esac
33052 case $ac_config_headers in *"
33053 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33054 esac
33057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33058 # Files that config.status was made for.
33059 config_files="$ac_config_files"
33060 config_headers="$ac_config_headers"
33061 config_links="$ac_config_links"
33062 config_commands="$ac_config_commands"
33064 _ACEOF
33066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33067 ac_cs_usage="\
33068 \`$as_me' instantiates files and other configuration actions
33069 from templates according to the current configuration. Unless the files
33070 and actions are specified as TAGs, all are instantiated by default.
33072 Usage: $0 [OPTION]... [TAG]...
33074 -h, --help print this help, then exit
33075 -V, --version print version number and configuration settings, then exit
33076 --config print configuration, then exit
33077 -q, --quiet, --silent
33078 do not print progress messages
33079 -d, --debug don't remove temporary files
33080 --recheck update $as_me by reconfiguring in the same conditions
33081 --file=FILE[:TEMPLATE]
33082 instantiate the configuration file FILE
33083 --header=FILE[:TEMPLATE]
33084 instantiate the configuration header FILE
33086 Configuration files:
33087 $config_files
33089 Configuration headers:
33090 $config_headers
33092 Configuration links:
33093 $config_links
33095 Configuration commands:
33096 $config_commands
33098 Report bugs to the package provider."
33100 _ACEOF
33101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33102 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33103 ac_cs_version="\\
33104 config.status
33105 configured by $0, generated by GNU Autoconf 2.69,
33106 with options \\"\$ac_cs_config\\"
33108 Copyright (C) 2012 Free Software Foundation, Inc.
33109 This config.status script is free software; the Free Software Foundation
33110 gives unlimited permission to copy, distribute and modify it."
33112 ac_pwd='$ac_pwd'
33113 srcdir='$srcdir'
33114 AWK='$AWK'
33115 test -n "\$AWK" || AWK=awk
33116 _ACEOF
33118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33119 # The default lists apply if the user does not specify any file.
33120 ac_need_defaults=:
33121 while test $# != 0
33123 case $1 in
33124 --*=?*)
33125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33127 ac_shift=:
33129 --*=)
33130 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33131 ac_optarg=
33132 ac_shift=:
33135 ac_option=$1
33136 ac_optarg=$2
33137 ac_shift=shift
33139 esac
33141 case $ac_option in
33142 # Handling of the options.
33143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33144 ac_cs_recheck=: ;;
33145 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33146 $as_echo "$ac_cs_version"; exit ;;
33147 --config | --confi | --conf | --con | --co | --c )
33148 $as_echo "$ac_cs_config"; exit ;;
33149 --debug | --debu | --deb | --de | --d | -d )
33150 debug=: ;;
33151 --file | --fil | --fi | --f )
33152 $ac_shift
33153 case $ac_optarg in
33154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33155 '') as_fn_error $? "missing file argument" ;;
33156 esac
33157 as_fn_append CONFIG_FILES " '$ac_optarg'"
33158 ac_need_defaults=false;;
33159 --header | --heade | --head | --hea )
33160 $ac_shift
33161 case $ac_optarg in
33162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33163 esac
33164 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33165 ac_need_defaults=false;;
33166 --he | --h)
33167 # Conflict between --help and --header
33168 as_fn_error $? "ambiguous option: \`$1'
33169 Try \`$0 --help' for more information.";;
33170 --help | --hel | -h )
33171 $as_echo "$ac_cs_usage"; exit ;;
33172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33174 ac_cs_silent=: ;;
33176 # This is an error.
33177 -*) as_fn_error $? "unrecognized option: \`$1'
33178 Try \`$0 --help' for more information." ;;
33180 *) as_fn_append ac_config_targets " $1"
33181 ac_need_defaults=false ;;
33183 esac
33184 shift
33185 done
33187 ac_configure_extra_args=
33189 if $ac_cs_silent; then
33190 exec 6>/dev/null
33191 ac_configure_extra_args="$ac_configure_extra_args --silent"
33194 _ACEOF
33195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33196 if \$ac_cs_recheck; then
33197 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33198 shift
33199 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33200 CONFIG_SHELL='$SHELL'
33201 export CONFIG_SHELL
33202 exec "\$@"
33205 _ACEOF
33206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33207 exec 5>>config.log
33209 echo
33210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33211 ## Running $as_me. ##
33212 _ASBOX
33213 $as_echo "$ac_log"
33214 } >&5
33216 _ACEOF
33217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33219 # INIT-COMMANDS
33221 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33222 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33223 subdirs='$subdirs'
33225 _ACEOF
33227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33229 # Handling of arguments.
33230 for ac_config_target in $ac_config_targets
33232 case $ac_config_target in
33233 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33234 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33235 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33236 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33237 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33238 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33239 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33240 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33241 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33242 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33244 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33245 esac
33246 done
33249 # If the user did not use the arguments to specify the items to instantiate,
33250 # then the envvar interface is used. Set only those that are not.
33251 # We use the long form for the default assignment because of an extremely
33252 # bizarre bug on SunOS 4.1.3.
33253 if $ac_need_defaults; then
33254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33256 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33257 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33260 # Have a temporary directory for convenience. Make it in the build tree
33261 # simply because there is no reason against having it here, and in addition,
33262 # creating and moving files from /tmp can sometimes cause problems.
33263 # Hook for its removal unless debugging.
33264 # Note that there is a small window in which the directory will not be cleaned:
33265 # after its creation but before its name has been assigned to `$tmp'.
33266 $debug ||
33268 tmp= ac_tmp=
33269 trap 'exit_status=$?
33270 : "${ac_tmp:=$tmp}"
33271 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33273 trap 'as_fn_exit 1' 1 2 13 15
33275 # Create a (secure) tmp directory for tmp files.
33278 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33279 test -d "$tmp"
33280 } ||
33282 tmp=./conf$$-$RANDOM
33283 (umask 077 && mkdir "$tmp")
33284 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33285 ac_tmp=$tmp
33287 # Set up the scripts for CONFIG_FILES section.
33288 # No need to generate them if there are no CONFIG_FILES.
33289 # This happens for instance with `./config.status config.h'.
33290 if test -n "$CONFIG_FILES"; then
33292 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33293 ac_cs_awk_getline=:
33294 ac_cs_awk_pipe_init=
33295 ac_cs_awk_read_file='
33296 while ((getline aline < (F[key])) > 0)
33297 print(aline)
33298 close(F[key])'
33299 ac_cs_awk_pipe_fini=
33300 else
33301 ac_cs_awk_getline=false
33302 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33303 ac_cs_awk_read_file='
33304 print "|#_!!_#|"
33305 print "cat " F[key] " &&"
33306 '$ac_cs_awk_pipe_init
33307 # The final `:' finishes the AND list.
33308 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33310 ac_cr=`echo X | tr X '\015'`
33311 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33312 # But we know of no other shell where ac_cr would be empty at this
33313 # point, so we can use a bashism as a fallback.
33314 if test "x$ac_cr" = x; then
33315 eval ac_cr=\$\'\\r\'
33317 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33318 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33319 ac_cs_awk_cr='\\r'
33320 else
33321 ac_cs_awk_cr=$ac_cr
33324 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33325 _ACEOF
33327 # Create commands to substitute file output variables.
33329 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33330 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33331 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33332 echo "_ACAWK" &&
33333 echo "_ACEOF"
33334 } >conf$$files.sh &&
33335 . ./conf$$files.sh ||
33336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33337 rm -f conf$$files.sh
33340 echo "cat >conf$$subs.awk <<_ACEOF" &&
33341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33342 echo "_ACEOF"
33343 } >conf$$subs.sh ||
33344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33345 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33346 ac_delim='%!_!# '
33347 for ac_last_try in false false false false false :; do
33348 . ./conf$$subs.sh ||
33349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33352 if test $ac_delim_n = $ac_delim_num; then
33353 break
33354 elif $ac_last_try; then
33355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33356 else
33357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33359 done
33360 rm -f conf$$subs.sh
33362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33363 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33364 _ACEOF
33365 sed -n '
33367 s/^/S["/; s/!.*/"]=/
33370 s/^[^!]*!//
33371 :repl
33372 t repl
33373 s/'"$ac_delim"'$//
33374 t delim
33377 s/\(.\{148\}\)..*/\1/
33378 t more1
33379 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33382 b repl
33383 :more1
33384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33387 s/.\{148\}//
33388 t nl
33389 :delim
33391 s/\(.\{148\}\)..*/\1/
33392 t more2
33393 s/["\\]/\\&/g; s/^/"/; s/$/"/
33396 :more2
33397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33400 s/.\{148\}//
33401 t delim
33402 ' <conf$$subs.awk | sed '
33403 /^[^""]/{
33405 s/\n//
33407 ' >>$CONFIG_STATUS || ac_write_fail=1
33408 rm -f conf$$subs.awk
33409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33410 _ACAWK
33411 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33412 for (key in S) S_is_set[key] = 1
33413 FS = "\a"
33414 \$ac_cs_awk_pipe_init
33417 line = $ 0
33418 nfields = split(line, field, "@")
33419 substed = 0
33420 len = length(field[1])
33421 for (i = 2; i < nfields; i++) {
33422 key = field[i]
33423 keylen = length(key)
33424 if (S_is_set[key]) {
33425 value = S[key]
33426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33427 len += length(value) + length(field[++i])
33428 substed = 1
33429 } else
33430 len += 1 + keylen
33432 if (nfields == 3 && !substed) {
33433 key = field[2]
33434 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33435 \$ac_cs_awk_read_file
33436 next
33439 print line
33441 \$ac_cs_awk_pipe_fini
33442 _ACAWK
33443 _ACEOF
33444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33445 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33446 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33447 else
33449 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33450 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33451 _ACEOF
33453 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33454 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33455 # trailing colons and then remove the whole line if VPATH becomes empty
33456 # (actually we leave an empty line to preserve line numbers).
33457 if test "x$srcdir" = x.; then
33458 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33460 s///
33461 s/^/:/
33462 s/[ ]*$/:/
33463 s/:\$(srcdir):/:/g
33464 s/:\${srcdir}:/:/g
33465 s/:@srcdir@:/:/g
33466 s/^:*//
33467 s/:*$//
33469 s/\(=[ ]*\).*/\1/
33471 s/\n//
33472 s/^[^=]*=[ ]*$//
33476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33477 fi # test -n "$CONFIG_FILES"
33479 # Set up the scripts for CONFIG_HEADERS section.
33480 # No need to generate them if there are no CONFIG_HEADERS.
33481 # This happens for instance with `./config.status Makefile'.
33482 if test -n "$CONFIG_HEADERS"; then
33483 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33484 BEGIN {
33485 _ACEOF
33487 # Transform confdefs.h into an awk script `defines.awk', embedded as
33488 # here-document in config.status, that substitutes the proper values into
33489 # config.h.in to produce config.h.
33491 # Create a delimiter string that does not exist in confdefs.h, to ease
33492 # handling of long lines.
33493 ac_delim='%!_!# '
33494 for ac_last_try in false false :; do
33495 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33496 if test -z "$ac_tt"; then
33497 break
33498 elif $ac_last_try; then
33499 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33500 else
33501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33503 done
33505 # For the awk script, D is an array of macro values keyed by name,
33506 # likewise P contains macro parameters if any. Preserve backslash
33507 # newline sequences.
33509 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33510 sed -n '
33511 s/.\{148\}/&'"$ac_delim"'/g
33512 t rset
33513 :rset
33514 s/^[ ]*#[ ]*define[ ][ ]*/ /
33515 t def
33517 :def
33518 s/\\$//
33519 t bsnl
33520 s/["\\]/\\&/g
33521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33522 D["\1"]=" \3"/p
33523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33525 :bsnl
33526 s/["\\]/\\&/g
33527 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33528 D["\1"]=" \3\\\\\\n"\\/p
33529 t cont
33530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33531 t cont
33533 :cont
33535 s/.\{148\}/&'"$ac_delim"'/g
33536 t clear
33537 :clear
33538 s/\\$//
33539 t bsnlc
33540 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33542 :bsnlc
33543 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33544 b cont
33545 ' <confdefs.h | sed '
33546 s/'"$ac_delim"'/"\\\
33547 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33550 for (key in D) D_is_set[key] = 1
33551 FS = "\a"
33553 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33554 line = \$ 0
33555 split(line, arg, " ")
33556 if (arg[1] == "#") {
33557 defundef = arg[2]
33558 mac1 = arg[3]
33559 } else {
33560 defundef = substr(arg[1], 2)
33561 mac1 = arg[2]
33563 split(mac1, mac2, "(") #)
33564 macro = mac2[1]
33565 prefix = substr(line, 1, index(line, defundef) - 1)
33566 if (D_is_set[macro]) {
33567 # Preserve the white space surrounding the "#".
33568 print prefix "define", macro P[macro] D[macro]
33569 next
33570 } else {
33571 # Replace #undef with comments. This is necessary, for example,
33572 # in the case of _POSIX_SOURCE, which is predefined and required
33573 # on some systems where configure will not decide to define it.
33574 if (defundef == "undef") {
33575 print "/*", prefix defundef, macro, "*/"
33576 next
33580 { print }
33581 _ACAWK
33582 _ACEOF
33583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33584 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33585 fi # test -n "$CONFIG_HEADERS"
33588 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33589 shift
33590 for ac_tag
33592 case $ac_tag in
33593 :[FHLC]) ac_mode=$ac_tag; continue;;
33594 esac
33595 case $ac_mode$ac_tag in
33596 :[FHL]*:*);;
33597 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33598 :[FH]-) ac_tag=-:-;;
33599 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33600 esac
33601 ac_save_IFS=$IFS
33602 IFS=:
33603 set x $ac_tag
33604 IFS=$ac_save_IFS
33605 shift
33606 ac_file=$1
33607 shift
33609 case $ac_mode in
33610 :L) ac_source=$1;;
33611 :[FH])
33612 ac_file_inputs=
33613 for ac_f
33615 case $ac_f in
33616 -) ac_f="$ac_tmp/stdin";;
33617 *) # Look for the file first in the build tree, then in the source tree
33618 # (if the path is not absolute). The absolute path cannot be DOS-style,
33619 # because $ac_f cannot contain `:'.
33620 test -f "$ac_f" ||
33621 case $ac_f in
33622 [\\/$]*) false;;
33623 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33624 esac ||
33625 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33626 esac
33627 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33628 as_fn_append ac_file_inputs " '$ac_f'"
33629 done
33631 # Let's still pretend it is `configure' which instantiates (i.e., don't
33632 # use $as_me), people would be surprised to read:
33633 # /* config.h. Generated by config.status. */
33634 configure_input='Generated from '`
33635 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33636 `' by configure.'
33637 if test x"$ac_file" != x-; then
33638 configure_input="$ac_file. $configure_input"
33639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33640 $as_echo "$as_me: creating $ac_file" >&6;}
33642 # Neutralize special characters interpreted by sed in replacement strings.
33643 case $configure_input in #(
33644 *\&* | *\|* | *\\* )
33645 ac_sed_conf_input=`$as_echo "$configure_input" |
33646 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33647 *) ac_sed_conf_input=$configure_input;;
33648 esac
33650 case $ac_tag in
33651 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33653 esac
33655 esac
33657 ac_dir=`$as_dirname -- "$ac_file" ||
33658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33659 X"$ac_file" : 'X\(//\)[^/]' \| \
33660 X"$ac_file" : 'X\(//\)$' \| \
33661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33662 $as_echo X"$ac_file" |
33663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33664 s//\1/
33667 /^X\(\/\/\)[^/].*/{
33668 s//\1/
33671 /^X\(\/\/\)$/{
33672 s//\1/
33675 /^X\(\/\).*/{
33676 s//\1/
33679 s/.*/./; q'`
33680 as_dir="$ac_dir"; as_fn_mkdir_p
33681 ac_builddir=.
33683 case "$ac_dir" in
33684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33687 # A ".." for each directory in $ac_dir_suffix.
33688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33689 case $ac_top_builddir_sub in
33690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33692 esac ;;
33693 esac
33694 ac_abs_top_builddir=$ac_pwd
33695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33696 # for backward compatibility:
33697 ac_top_builddir=$ac_top_build_prefix
33699 case $srcdir in
33700 .) # We are building in place.
33701 ac_srcdir=.
33702 ac_top_srcdir=$ac_top_builddir_sub
33703 ac_abs_top_srcdir=$ac_pwd ;;
33704 [\\/]* | ?:[\\/]* ) # Absolute name.
33705 ac_srcdir=$srcdir$ac_dir_suffix;
33706 ac_top_srcdir=$srcdir
33707 ac_abs_top_srcdir=$srcdir ;;
33708 *) # Relative name.
33709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33710 ac_top_srcdir=$ac_top_build_prefix$srcdir
33711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33712 esac
33713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33716 case $ac_mode in
33719 # CONFIG_FILE
33722 _ACEOF
33724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33725 # If the template does not know about datarootdir, expand it.
33726 # FIXME: This hack should be removed a few years after 2.60.
33727 ac_datarootdir_hack=; ac_datarootdir_seen=
33728 ac_sed_dataroot='
33729 /datarootdir/ {
33733 /@datadir@/p
33734 /@docdir@/p
33735 /@infodir@/p
33736 /@localedir@/p
33737 /@mandir@/p'
33738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33739 *datarootdir*) ac_datarootdir_seen=yes;;
33740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33743 _ACEOF
33744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33745 ac_datarootdir_hack='
33746 s&@datadir@&$datadir&g
33747 s&@docdir@&$docdir&g
33748 s&@infodir@&$infodir&g
33749 s&@localedir@&$localedir&g
33750 s&@mandir@&$mandir&g
33751 s&\\\${datarootdir}&$datarootdir&g' ;;
33752 esac
33753 _ACEOF
33755 # Neutralize VPATH when `$srcdir' = `.'.
33756 # Shell code in configure.ac might set extrasub.
33757 # FIXME: do we really want to maintain this feature?
33758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33759 ac_sed_extra="$ac_vpsub
33760 $extrasub
33761 _ACEOF
33762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33765 s|@configure_input@|$ac_sed_conf_input|;t t
33766 s&@top_builddir@&$ac_top_builddir_sub&;t t
33767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33768 s&@srcdir@&$ac_srcdir&;t t
33769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33770 s&@top_srcdir@&$ac_top_srcdir&;t t
33771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33772 s&@builddir@&$ac_builddir&;t t
33773 s&@abs_builddir@&$ac_abs_builddir&;t t
33774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33775 $ac_datarootdir_hack
33777 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33778 if $ac_cs_awk_getline; then
33779 $AWK -f "$ac_tmp/subs.awk"
33780 else
33781 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33782 fi \
33783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33788 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33790 which seems to be undefined. Please make sure it is defined" >&5
33791 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33792 which seems to be undefined. Please make sure it is defined" >&2;}
33794 rm -f "$ac_tmp/stdin"
33795 case $ac_file in
33796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33798 esac \
33799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33803 # CONFIG_HEADER
33805 if test x"$ac_file" != x-; then
33807 $as_echo "/* $configure_input */" \
33808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33809 } >"$ac_tmp/config.h" \
33810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33814 else
33815 rm -f "$ac_file"
33816 mv "$ac_tmp/config.h" "$ac_file" \
33817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33819 else
33820 $as_echo "/* $configure_input */" \
33821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33822 || as_fn_error $? "could not create -" "$LINENO" 5
33827 # CONFIG_LINK
33830 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33832 else
33833 # Prefer the file from the source tree if names are identical.
33834 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33835 ac_source=$srcdir/$ac_source
33838 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33839 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33841 if test ! -r "$ac_source"; then
33842 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33844 rm -f "$ac_file"
33846 # Try a relative symlink, then a hard link, then a copy.
33847 case $ac_source in
33848 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33849 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33850 esac
33851 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33852 ln "$ac_source" "$ac_file" 2>/dev/null ||
33853 cp -p "$ac_source" "$ac_file" ||
33854 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33857 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33858 $as_echo "$as_me: executing $ac_file commands" >&6;}
33860 esac
33863 case $ac_file$ac_mode in
33864 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33865 "gccdepdir":C)
33866 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33867 for lang in $subdirs c-family common analyzer rtl-ssa
33869 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33870 done ;;
33871 "as":F) chmod +x as ;;
33872 "collect-ld":F) chmod +x collect-ld ;;
33873 "nm":F) chmod +x nm ;;
33874 "dsymutil":F) chmod +x dsymutil ;;
33875 "default":C)
33876 case ${CONFIG_HEADERS} in
33877 *auto-host.h:config.in*)
33878 echo > cstamp-h ;;
33879 esac
33880 # Make sure all the subdirs exist.
33881 for d in $subdirs doc build common c-family
33883 test -d $d || mkdir $d
33884 done
33887 esac
33888 done # for ac_tag
33891 as_fn_exit 0
33892 _ACEOF
33893 ac_clean_files=$ac_clean_files_save
33895 test $ac_write_fail = 0 ||
33896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33899 # configure is writing to config.log, and then calls config.status.
33900 # config.status does its own redirection, appending to config.log.
33901 # Unfortunately, on DOS this fails, as config.log is still kept open
33902 # by configure, so config.status won't be able to write to it; its
33903 # output is simply discarded. So we exec the FD to /dev/null,
33904 # effectively closing config.log, so it can be properly (re)opened and
33905 # appended to by config.status. When coming back to configure, we
33906 # need to make the FD available again.
33907 if test "$no_create" != yes; then
33908 ac_cs_success=:
33909 ac_config_status_args=
33910 test "$silent" = yes &&
33911 ac_config_status_args="$ac_config_status_args --quiet"
33912 exec 5>/dev/null
33913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33914 exec 5>>config.log
33915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33916 # would make configure fail if this is the last instruction.
33917 $ac_cs_success || as_fn_exit 1
33919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}